:root {
  --paper: #f8f7f2; /* matches the logo background */
  --paper-2: #efece3;
  --card: #fffdf8;
  --ink: #1d1c1a;
  --ink-2: #4c4840;
  --muted: #7d776b;
  --line: #e2dccd;
  --navy: #0a1633; /* the logo's stamp */
  --navy-2: #1d2c52;
  --gold: #a5813e;
  --oxblood: #7a1f2b;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* Header */
.topbar { background: var(--navy); color: #cfd6e2; font-size: 12px; text-align: center; padding: 7px 16px; letter-spacing: .03em; }
.topbar a { color: #fff; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 26px var(--serif); letter-spacing: .02em; }
.brand-sub { font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--gold); }
.header-search { margin-left: auto; }
.header-search input { width: 240px; }

input, select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(36, 56, 90, .12); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid var(--navy); font: 500 14px var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-disabled { background: var(--paper-2); color: var(--muted); border-color: var(--line); cursor: default; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.link-arrow { color: var(--navy); font-weight: 500; text-decoration: none; font-size: 14px; }
.link-arrow::after { content: ' →'; }

/* Hero */
.hero { background: radial-gradient(ellipse at 80% 0%, #fff8e6 0%, transparent 60%), var(--paper-2); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 80px 24px 76px; display: grid; gap: 56px; align-items: center; }
.hero-inner.has-image { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; }
.hero-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(10, 22, 51, .55); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 22px 0 32px; }

/* Home feature block ("We buy stamp collections") */
.promo { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.promo.has-image { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.promo-image img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.promo-copy { padding: 52px 56px; align-self: center; }
.promo-copy h2 { font-size: 2.3rem; margin-bottom: 14px; }
.promo-copy .btn { margin-top: 10px; }

/* Text written in the control panel */
.rich { color: var(--ink-2); font-size: 16px; }
.rich p { margin: 0 0 14px; }
.rich h2, .rich h3, .rich h4 { color: var(--ink); margin: 34px 0 10px; }
.rich h3 { font-size: 1.55rem; }
.rich h4 { font: 600 1.25rem var(--serif); }
.rich ul, .rich ol { margin: 0 0 16px; padding-left: 22px; }
.rich li { margin-bottom: 6px; }
.rich li::marker { color: var(--gold); }
.rich a { color: var(--navy); }
.rich img { margin: 18px 0; border-radius: var(--radius); }
.rich blockquote { margin: 34px 0 10px; padding: 18px 24px; border-left: 3px solid var(--gold); background: var(--paper-2); font: 500 1.3rem/1.5 var(--serif); color: var(--ink); }
.rich > :first-child { margin-top: 0; }

.content-page { padding-top: 44px; padding-bottom: 40px; display: grid; gap: 56px; }
.content-page.has-image { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.content-page .prose { padding: 0; max-width: 720px; }
.content-image { position: sticky; top: 110px; }
.content-image img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.crumb-edit { float: right; font-size: 13px; color: var(--navy); }
.page-title .crumb-edit { float: none; display: inline-block; margin-top: 10px; }

.contact-block { max-width: 720px; margin: 0 0 80px; padding: 36px 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-block h2 { margin-bottom: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.contact-form .btn { align-self: flex-start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(36, 56, 90, .12); }
.hp { position: absolute; left: -9999px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 72px 24px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(27, 42, 65, .45); }
.card-img { aspect-ratio: 4 / 5; background: var(--paper-2); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .eyebrow { margin: 0; }
.card-body h3 { font-size: 1.2rem; font-weight: 600; }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.price { font-weight: 600; font-size: 15px; color: var(--navy); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--oxblood); color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; }
.card.is-sold img { filter: grayscale(.7); opacity: .75; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); text-decoration: none; transition: border-color .15s, background .15s; }
.cat-tile span { font: 600 1.35rem var(--serif); }
.cat-tile small { color: var(--muted); font-size: 12px; }
.cat-tile:hover { background: #fff; border-left-color: var(--navy); }

.assurances { margin-top: 80px; background: var(--navy); color: #dfe4ec; }
.assurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 24px; }
.assurances h3 { color: #f3e7c9; font-size: 1.4rem; margin-bottom: 6px; }
.assurances p { margin: 0; font-size: 14px; }

/* Collections page */
.page-title { padding: 52px 0 36px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 44px; padding-top: 36px; padding-bottom: 72px; }
.filters details { position: sticky; top: 100px; }
.filters summary { font: 600 1.3rem var(--serif); cursor: pointer; list-style: none; margin-bottom: 18px; }
.filters summary::-webkit-details-marker { display: none; }
.filter-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cat-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; }
.cat-list a { display: flex; justify-content: space-between; padding: 6px 10px; margin: 0 -10px; text-decoration: none; color: var(--ink-2); border-radius: var(--radius); font-size: 14px; }
.cat-list a:hover { background: var(--paper-2); color: var(--ink); }
.cat-list a.active { background: var(--navy); color: #fff; }
.cat-list small { opacity: .7; }
.price-range { display: flex; align-items: center; gap: 8px; }
.check, .radio { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input, .radio input { width: auto; accent-color: var(--navy); }
.reset { font-size: 13px; color: var(--muted); text-align: center; }
.results-head { margin-bottom: 18px; font-size: 14px; }
.empty { grid-column: 1 / -1; padding: 40px 0; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { color: var(--navy); font-weight: 500; text-decoration: none; }

/* Product page: everything centred on a 1000px column, photos at a fixed 1000px width */
.product { padding: 36px 0 40px; }
.product-col { width: 1000px; max-width: calc(100% - 32px); margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.product-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.product-head h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.product-meta { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.product-buy { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 250px; }
.price-lg { font: 600 2.2rem var(--serif); color: var(--navy); text-align: right; }
.description { font-size: 16px; color: var(--ink-2); max-width: 760px; padding: 24px 0 4px; }
.description p { margin: 0 0 14px; }
.photos-note { margin: 18px 0 30px; padding: 14px 18px; background: var(--paper-2); border-left: 3px solid var(--gold); font-size: 14px; color: var(--ink-2); }
.photos { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.photos figure { margin: 0; width: 1000px; max-width: calc(100% - 32px); }
.photos img { width: 1000px; max-width: 100%; height: auto; background: var(--paper-2); box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0, 0, 0, .5); }
.photos figcaption { font-size: 12px; color: var(--muted); text-align: right; padding-top: 6px; letter-spacing: .05em; }
.product-end { text-align: center; padding: 44px 0 20px; border-top: 1px solid var(--line); margin-top: 40px; }
.product-end p { font: italic 500 1.4rem var(--serif); color: var(--ink-2); margin: 0 0 18px; }
.end-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 253, 248, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .25s; z-index: 30; }
.sticky-buy.show { transform: none; }
.sticky-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.sticky-title { font: 600 1.15rem var(--serif); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-price { font-weight: 600; color: var(--navy); }

.prose { max-width: 720px; padding-top: 32px; padding-bottom: 80px; font-size: 16px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 52px 24px 32px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 10px; mix-blend-mode: multiply; }
.footer-note { display: block; font-size: 13px; }
.footer-inner h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.footer-inner a { display: block; text-decoration: none; color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
.footer-inner a:hover { color: var(--navy); }
.footer-brand { font: 600 1.6rem var(--serif); }
.footer-base { border-top: 1px solid var(--line); padding: 18px 24px 26px; font-size: 12px; color: var(--muted); }

/* Control panel */
.cp { background: #f3f1ea; }
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.cp-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 600 1.3rem var(--serif); }
.cp-brand img { height: 40px; }
.cp-top-actions { display: flex; gap: 8px; }
.cp-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.cp-nav { display: flex; flex-direction: column; gap: 2px; padding: 24px 14px; border-right: 1px solid var(--line); background: var(--paper); }
.cp-nav a { padding: 9px 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink-2); font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.cp-nav a:hover { background: var(--paper-2); color: var(--ink); }
.cp-nav a.active { background: var(--navy); color: #fff; }
.pill { background: var(--oxblood); color: #fff; font-size: 11px; border-radius: 20px; padding: 1px 8px; }
.cp-main { padding: 32px 40px 80px; max-width: 1180px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cp-main > .alert { margin: 0; }
.cp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.link-arrow.back::after { content: ''; }
.link-arrow.back::before { content: '← '; }
.cp-form { display: flex; flex-direction: column; gap: 20px; }
.cp-form.narrow { max-width: 460px; }
.form-group { font-size: 1.35rem; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); }
.form-group:first-child { border: 0; padding-top: 0; margin-top: 0; }
.help-text { color: var(--muted); font-size: 12.5px; }
.help-text code, .help code { background: var(--paper-2); padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.label-like { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field > label > span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.md-toolbar { display: flex; gap: 4px; }
.md-toolbar button { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 10px; font: 13px var(--sans); cursor: pointer; color: var(--ink-2); }
.md-toolbar button:hover { background: #fff; color: var(--ink); }
.image-row { display: flex; gap: 16px; align-items: flex-start; }
.image-preview { width: 150px; height: 100px; flex: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); display: grid; place-items: center; overflow: hidden; font-size: 12px; color: var(--muted); }
.image-preview img { width: 100%; height: 100%; object-fit: contain; }
.image-controls { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.image-buttons { display: flex; gap: 8px; }
.photo-upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.thumbs figcaption { position: absolute; top: 4px; left: 4px; background: rgba(10, 22, 51, .8); color: #fff; font-size: 10px; padding: 0 5px; border-radius: 3px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.media-item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.media-item img { width: 100%; height: 140px; object-fit: contain; background: var(--paper-2); }
.media-item figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px 0; font-size: 12px; }
.media-item figcaption .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.media-actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; }
.message header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.message p { white-space: normal; margin: 14px 0; }
.message.unread { border-left: 3px solid var(--gold); }
.row-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; font-size: 13px; }
.row-actions form { margin: 0; }
.admin-login { max-width: 380px; padding: 60px 0; }
.admin-login h1 { margin-bottom: 24px; }
.admin-login form { display: flex; flex-direction: column; gap: 16px; }
.cp-shell:has(.admin-login) { grid-template-columns: 1fr; justify-items: center; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h2 { margin-bottom: 6px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px; margin: 18px 0; border: 1.5px dashed #c9bfa6; border-radius: var(--radius); background: var(--paper); cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.dropzone.over, .dropzone:hover { border-color: var(--navy); background: #fff; }
.dz-main { font: 500 1.25rem var(--serif); }
.upload-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.upload-row .btn { margin-left: auto; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-top: 18px; font-size: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-ok { background: #ecf3ea; border: 1px solid #c6dcc1; }
.alert-error { background: #f8e9e9; border: 1px solid #e6c4c4; }
.help { margin-top: 22px; font-size: 14px; }
.help summary { cursor: pointer; font-weight: 500; color: var(--navy); }
.format { border-collapse: collapse; margin: 12px 0; width: 100%; }
.format th { text-align: left; font-family: ui-monospace, Consolas, monospace; font-weight: 500; padding: 8px 18px 8px 0; vertical-align: top; white-space: nowrap; }
.format td { padding: 8px 0; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.format th { border-bottom: 1px solid var(--line); }
.admin-links { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.inventory { width: 100%; border-collapse: collapse; font-size: 14px; }
.inventory th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.inventory td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.inventory a { color: var(--navy); }
.num { text-align: right; }
.status { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--paper-2); color: var(--ink-2); }
.status-available { background: #e6f0e4; color: #2f5d3a; }
.status-sold { background: #f3e1e3; color: var(--oxblood); }
.link-danger { background: none; border: 0; color: var(--oxblood); cursor: pointer; font: inherit; font-size: 13px; }

@media (max-width: 900px) {
  .header-inner { gap: 18px; height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .header-search { order: 3; width: 100%; margin: 0; }
  .header-search input { width: 100%; }
  .main-nav { margin-left: auto; gap: 18px; }
  .shop { grid-template-columns: 1fr; gap: 24px; }
  .filters details { position: static; background: var(--card); border: 1px solid var(--line); padding: 14px 18px; }
  .filters summary { margin: 0; }
  .filters details[open] summary { margin-bottom: 18px; }
  .product-head { grid-template-columns: 1fr; gap: 20px; }
  .price-lg { text-align: left; }
  .assurance-grid, .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner.has-image, .promo.has-image, .content-page.has-image { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .promo-copy { padding: 32px 28px; }
  .promo-image img { max-height: 320px; }
  .content-image { position: static; max-width: 420px; }
  .cp-shell { grid-template-columns: 1fr; }
  .cp-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .cp-nav a { white-space: nowrap; }
  .cp-main { padding: 24px 16px 60px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero-inner { padding: 60px 16px; margin: 0; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 1.05rem; }
  .card-meta .muted { display: none; }
  .main-nav { gap: 14px; }
  .brand-name { font-size: 22px; }
  .sticky-title { display: none; }
  .upload-row .btn { margin-left: 0; width: 100%; }
  .brand-logo { height: 46px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-block { padding: 24px 20px; }
  .image-row { flex-direction: column; }
}
