/* ==========================================================================
   Trades of Bath stylesheet
   Palette: Georgian navy + Bath honey-stone gold on warm off-white.
   ========================================================================== */

:root {
  --navy:        #12233b;
  --navy-700:    #1c3352;
  --navy-800:    #0d1b2e;
  --navy-600:    #24405f;
  --gold:        #e5a743;
  --gold-600:    #cf8f2c;
  --gold-050:    #fbf3e3;
  --stone:       #f6f2ea;
  --stone-200:   #ece5d8;
  --paper:       #ffffff;
  --ink:         #1a2436;
  --ink-600:     #47536a;
  --ink-400:     #75809a;
  --line:        #e6e0d5;
  --green:       #2f8f5b;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 2px rgba(18,35,59,.06), 0 2px 8px rgba(18,35,59,.05);
  --shadow-md:   0 6px 20px rgba(18,35,59,.09), 0 2px 6px rgba(18,35,59,.06);
  --shadow-lg:   0 18px 50px rgba(18,35,59,.16);
  --maxw:        1140px;
  --font-head:   "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 200; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .72em 1.25em; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--navy-700); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .5em .95em; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line); box-shadow: none; background: #fff; }
.btn-ghost:hover { background: #fff; border-color: var(--navy); }
.btn-invert { --bg: var(--gold); --fg: #2a1c05; }
.btn-invert:hover { background: #f0b355; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,242,234,.85); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--gold); box-shadow: var(--shadow-sm); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.24rem; color: var(--navy); }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); }

.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav > a { padding: .5rem .85rem; border-radius: 999px; font-weight: 500; font-size: .97rem; color: var(--ink-600); transition: color .15s, background .15s; }
.site-nav > a:hover { color: var(--navy); background: rgba(18,35,59,.06); }
.site-nav > a.is-active { color: var(--navy); font-weight: 600; }
.nav-cta { color: #fff !important; background: var(--navy); }
.nav-cta:hover { background: var(--navy-700) !important; color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 80% -10%, rgba(229,167,67,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy) 55%, var(--navy-700));
  color: #eef1f6; }
.hero-inner { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.eyebrow .icon { color: var(--gold); }
.hero h1 { color: #fff; max-width: 15ch; margin-inline: auto; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-lead { color: #c5cede; max-width: 60ch; margin: 1.1rem auto 2rem; font-size: 1.12rem; }

.hero-search { display: flex; align-items: center; gap: .4rem; background: #fff; padding: .4rem .4rem .4rem 1rem; border-radius: 999px; max-width: 640px; margin-inline: auto; box-shadow: var(--shadow-lg); }
.hero-search-icon { display: grid; place-items: center; color: var(--ink-400); }
.hero-search input { flex: 1; border: none; outline: none; font: inherit; font-size: 1rem; color: var(--ink); padding: .55rem .4rem; min-width: 0; background: transparent; }
.hero-search .btn { flex: none; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center; margin-top: 2rem; color: #aeb9cd; font-size: .95rem; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #fff; font-weight: 600; }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy); font-size: .97rem; }
.section-link .icon { transition: transform .2s; }
.section-link:hover .icon { transform: translateX(3px); }

/* ---- Category grid ------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.cat-chip { display: flex; align-items: center; gap: .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; transition: .18s; box-shadow: var(--shadow-sm); }
.cat-chip:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--gold-050); color: var(--gold-600); flex: none; }
.cat-icon .icon { width: 22px; height: 22px; }
.cat-name { font-weight: 600; font-size: .95rem; color: var(--navy); line-height: 1.2; flex: 1; }
.cat-count { font-size: .82rem; font-weight: 600; color: var(--ink-400); background: var(--stone); border-radius: 999px; padding: .1rem .5rem; }

/* ---- Card grid ---------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--stone-200); }
.card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.card-media .media-img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.media-badge .icon { width: 40%; height: 40%; opacity: .28; position: absolute; }
.media-initials { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; letter-spacing: .02em; color: #fff; }
.card-cat { position: absolute; left: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .4em; background: rgba(255,255,255,.94); color: var(--navy); font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.card-cat .icon { width: 15px; height: 15px; color: var(--gold-600); }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { font-size: 1.2rem; margin: 0; }
.card-title a:hover { color: var(--gold-600); }
.card-tagline { color: var(--ink-600); font-size: .95rem; margin: 0; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.card-phone { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy); font-size: .95rem; }
.card-phone .icon { width: 16px; height: 16px; color: var(--gold-600); }
.card-phone:hover { color: var(--gold-600); }

/* ---- Why / benefits ----------------------------------------------------- */
.why-grid, .benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.why-item, .benefit { text-align: center; padding: 1rem; }
.benefit { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.why-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--gold-050); color: var(--gold-600); margin-bottom: 1rem; }
.why-icon .icon { width: 28px; height: 28px; }
.why-item h3, .benefit h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.why-item p, .benefit p { color: var(--ink-600); font-size: .97rem; margin: 0; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { background:
    radial-gradient(900px 400px at 90% 120%, rgba(229,167,67,.2), transparent 55%),
    linear-gradient(120deg, var(--navy), var(--navy-700)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-inner p { color: #c5cede; margin: 0; max-width: 48ch; }

/* ---- Breadcrumb --------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .87rem; color: var(--ink-400); padding-top: 1.4rem; }
.breadcrumb a { color: var(--ink-600); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span[aria-current] { color: var(--navy); font-weight: 600; }

/* ---- Listings ----------------------------------------------------------- */
.listings-head { padding-top: 1.2rem; }
.listings-head h1 { margin-bottom: .3rem; }
.listings-sub { color: var(--ink-600); margin-bottom: 1.3rem; }
.filter-search { display: flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .4rem .35rem 1rem; max-width: 560px; box-shadow: var(--shadow-sm); }
.filter-search input { flex: 1; border: none; outline: none; font: inherit; padding: .5rem .3rem; background: transparent; min-width: 0; }
.filter-clear { font-size: .85rem; color: var(--ink-400); padding: 0 .7rem; }
.filter-clear:hover { color: var(--navy); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.4rem; }
.filter-pill { display: inline-flex; align-items: center; gap: .4em; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: .9rem; font-weight: 500; color: var(--ink-600); transition: .15s; }
.filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.filter-pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill-count { font-size: .78rem; opacity: .7; }
.filter-pill.is-active .pill-count { opacity: .85; }

.no-results { text-align: center; color: var(--ink-600); padding: 2rem 0; }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state p { color: var(--ink-600); margin-bottom: 1rem; }

/* ---- Business profile --------------------------------------------------- */
.profile { padding-bottom: 1rem; }
.profile-head { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: center; padding: 1.5rem 0 2rem; }
.profile-media { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--navy); box-shadow: var(--shadow-md); }
.profile-media .media-img { width: 100%; height: 100%; object-fit: cover; }
.profile-media .media-initials { font-size: 3.4rem; }
.profile-cat { display: inline-flex; align-items: center; gap: .45em; color: var(--gold-600); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.profile-intro h1 { margin-bottom: .35rem; }
.profile-tagline { font-size: 1.18rem; color: var(--ink-600); margin-bottom: 1.2rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.profile-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; padding: 1rem 0 2rem; }
.prose h2, .services h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.prose p { color: var(--ink-600); font-size: 1.05rem; }
.services { margin-top: 2rem; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem .9rem; }
.service-list li { display: flex; align-items: center; gap: .55em; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: .7rem .9rem; border-radius: var(--radius-sm); }
.service-list .icon { color: var(--green); width: 18px; height: 18px; flex: none; }

.profile-aside { position: relative; }
.contact-card { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-md); }
.contact-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.contact-dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0 0 1.2rem; font-size: .95rem; }
.contact-dl dt { color: var(--ink-400); font-weight: 500; }
.contact-dl dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.contact-dl dd a { color: var(--navy); }
.contact-dl dd a:hover { color: var(--gold-600); }

/* ---- Latest edition ----------------------------------------------------- */
.edition { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; padding-top: 1.5rem; padding-bottom: 3rem; }
.edition-intro { padding-top: 1rem; }
.edition-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.edition-note { font-size: .95rem; color: var(--ink-600); }
.edition-note a { color: var(--gold-600); font-weight: 600; }
.edition-viewer { aspect-ratio: 419/595; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.edition-viewer object { width: 100%; height: 100%; }
.edition-fallback { display: grid; place-content: center; gap: 1rem; height: 100%; text-align: center; padding: 2rem; }
.lead { font-size: 1.15rem; color: var(--ink-600); max-width: 60ch; }

/* ---- Page hero (about/join/404) ---------------------------------------- */
.page-hero { padding: 2rem 0 1rem; max-width: 780px; }
.page-hero .lead { margin-top: .5rem; }
.benefits { padding-top: 2rem; }

/* ---- Join / form -------------------------------------------------------- */
.join-grid { display: grid; grid-template-columns: 1fr 460px; gap: 3rem; align-items: start; }
.tick-list { display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.tick-list li { display: flex; align-items: flex-start; gap: .6em; color: var(--ink); font-weight: 500; }
.tick-list .icon { color: var(--green); margin-top: .2em; flex: none; }
.deal-card { background: var(--gold-050); border: 1px solid #f0dfbc; border-radius: var(--radius); padding: 1.5rem; }
.deal-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: .5rem; }
.deal-card p { color: #6a5124; font-size: .97rem; margin-bottom: .6rem; }
.deal-card p:last-child { margin-bottom: 0; }

.join-form-wrap { position: sticky; top: 92px; }
.join-form, .form-success { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-md); }
.join-form h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-600); margin-bottom: .35rem; }
.field label .opt { color: var(--ink-400); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--stone); color: var(--ink); transition: border .15s, box-shadow .15s, background .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(229,167,67,.2); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-fineprint { font-size: .82rem; color: var(--ink-400); text-align: center; margin: .9rem 0 0; }
.form-errors { background: #fdecec; border: 1px solid #f4c7c7; color: #9a2828; border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.form-errors ul { display: grid; gap: .25rem; }
.form-errors li { list-style: disc; margin-left: 1rem; }
.form-success { text-align: center; }
.success-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e7f4ec; color: var(--green); margin-bottom: 1rem; }
.success-icon .icon { width: 30px; height: 30px; }

/* ---- 404 ---------------------------------------------------------------- */
.error-page { text-align: center; margin-inline: auto; padding-block: 3rem 4rem; }
.error-code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--gold); line-height: 1; margin: 0; }
.error-page .edition-actions { justify-content: center; }

/* ---- Blog --------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--navy); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.35); }
.post-card-fallback .icon { width: 42px; height: 42px; }
.post-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-tag { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-050); padding: .28rem .6rem; border-radius: 999px; }
.post-card-title { font-size: 1.28rem; margin: 0; line-height: 1.2; }
.post-card-title a:hover { color: var(--gold-600); }
.post-card-excerpt { color: var(--ink-600); font-size: .96rem; margin: 0; flex: 1; }
.post-card-meta { color: var(--ink-400); font-size: .85rem; margin: 0; }

.post { max-width: 760px; padding-bottom: 2rem; }
.post-head { padding: 1rem 0 1.4rem; }
.post-head h1 { margin: .5rem 0 .6rem; }
.post-meta { color: var(--ink-400); font-size: .95rem; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow-md); }
.post-body { font-size: 1.1rem; color: #2a3346; }
.post-body h2 { font-size: 1.6rem; margin: 2rem 0 .6rem; }
.post-body h3 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
.post-body p { margin: 0 0 1.1rem; }
.post-body ul, .post-body ol { margin: 0 0 1.1rem 1.3rem; }
.post-body li { list-style: disc; margin-bottom: .4rem; }
.post-body ol li { list-style: decimal; }
.post-body a { color: var(--gold-600); text-decoration: underline; }
.post-body img { border-radius: var(--radius-sm); margin: 1.2rem 0; }
.post-trades { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.post-trades-label { font-size: .85rem; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: .05em; margin-right: .2rem; }
.trade-tag { display: inline-flex; align-items: center; gap: .4em; background: var(--stone); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: .9rem; font-weight: 600; color: var(--navy); transition: .15s; }
.trade-tag:hover { border-color: var(--gold); color: var(--gold-600); }
.trade-tag .icon { width: 16px; height: 16px; color: var(--gold-600); }
.post-author-card { display: flex; gap: 1.3rem; align-items: center; margin-top: 2.5rem; padding: 1.5rem; background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); }
.post-author-media { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; position: relative; flex: none; background: var(--navy); }
.post-author-media .media-initials { font-size: 1.8rem; }
.post-author-kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); margin: 0; }
.post-author-card h2 { font-size: 1.3rem; margin: .1rem 0 .3rem; }
.post-author-card p { color: var(--ink-600); font-size: .95rem; margin: 0 0 .7rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-800); color: #b9c2d4; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand p { margin: .6rem 0 1rem; font-size: .95rem; max-width: 40ch; }
.footer-email { color: var(--gold); font-weight: 600; }
.footer-col h2 { color: #fff; font-size: .95rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .95rem; color: #b9c2d4; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #7d889f; }
.footer-bottom p { margin: 0; }

/* ---- Privacy / policy page ---------------------------------------------- */
.policy { max-width: 820px; padding-bottom: 3rem; }
.policy-head { padding: 1.5rem 0 1rem; }
.policy-body h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }
.policy-body ul { margin: 0 0 1.1rem 1.3rem; }
.policy-body li { list-style: disc; margin-bottom: .35rem; color: var(--ink-600); }
.policy-body p { color: var(--ink-600); }
.policy-body code { background: var(--stone); padding: .1rem .4rem; border-radius: 5px; font-size: .9em; color: var(--navy); }
.policy-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .95rem; display: block; overflow-x: auto; }
.policy-table th, .policy-table td { text-align: left; padding: .7rem .9rem; border: 1px solid var(--line); vertical-align: top; }
.policy-table th { background: var(--stone); color: var(--navy); font-weight: 600; }
.policy-table td { color: var(--ink-600); }

/* ---- Footer legal + cookie settings ------------------------------------- */
.footer-legal { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.footer-legal a, .linkbtn { color: #b9c2d4; font-size: .85rem; }
.footer-legal a:hover, .linkbtn:hover { color: var(--gold); }
.linkbtn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }

/* ---- Cookie consent (centred modal) ------------------------------------- */
.cookie-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.cookie-modal.is-visible { opacity: 1; visibility: visible; }
.cookie-backdrop { position: absolute; inset: 0; background: rgba(9, 17, 30, .6); backdrop-filter: blur(3px); }
.cookie-card { position: relative; z-index: 1; background: var(--paper); color: var(--ink); width: 100%; max-width: 440px; border-radius: var(--radius); padding: 2rem 1.8rem 1.8rem; text-align: center; box-shadow: 0 30px 80px rgba(9,17,30,.5); border-top: 4px solid var(--gold); transform: translateY(12px) scale(.97); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.cookie-modal.is-visible .cookie-card { transform: translateY(0) scale(1); }
.cookie-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-050); color: var(--gold-600); margin-bottom: 1rem; }
.cookie-icon svg { width: 30px; height: 30px; }
.cookie-card h2 { font-size: 1.4rem; margin: 0 0 .5rem; }
.cookie-card p { margin: 0 0 1.4rem; color: var(--ink-600); font-size: .96rem; }
.cookie-card a { color: var(--gold-600); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.cookie-actions .btn { min-width: 150px; }
@media (max-width: 480px) {
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .profile-head { grid-template-columns: 1fr; }
  .profile-media { max-width: 320px; }
  .profile-grid, .edition, .join-grid { grid-template-columns: 1fr; }
  .contact-card, .join-form-wrap { position: static; }
  .edition-viewer { max-width: 520px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--stone); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow-md); }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav > a { padding: .85rem .5rem; border-radius: 10px; border-bottom: 1px solid var(--line); }
  .site-nav > a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-search { flex-wrap: wrap; border-radius: 20px; padding: .6rem; }
  .hero-search input { width: 100%; text-align: center; }
  .hero-search .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
