/* ==========================================================================
   Quirkvasortledgr — Resume/CV Tools & Templates Guide
   Contemporary Professional Career Editorial design system
   Palette: Burgundy #7A2946 · Terracotta #A66A4C · Gold #C7A15A
            Ivory #F5EFE7 · Porcelain #FFFDFC · Ink #29211E · Muted #8E7F77
   ========================================================================== */

:root {
  --burgundy: #7A2946;
  --burgundy-deep: #5E1F36;
  --terracotta: #A66A4C;
  --gold: #C7A15A;
  --gold-soft: #E6D3AC;
  --ivory: #F5EFE7;
  --porcelain: #FFFDFC;
  --ink: #29211E;
  --muted: #8E7F77;
  --muted-dark: #6B5E57;
  --line: rgba(41, 33, 30, 0.12);
  --line-strong: rgba(41, 33, 30, 0.22);
  --card: rgba(255, 253, 252, 0.84);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(41, 33, 30, 0.06), 0 14px 34px -16px rgba(41, 33, 30, 0.28);
  --shadow-lg: 0 34px 64px -28px rgba(94, 31, 54, 0.42);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  /* Descriptive image variables used in the stylesheet */
  --img-career-workspace-desk: url("https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?auto=format&fit=crop&w=1200&q=80");
  --img-resume-documents-desk: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=80");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--burgundy); color: var(--porcelain); padding: 10px 16px; border-radius: 8px; z-index: 300; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--porcelain); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-surface { background: var(--porcelain); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark h2, .section-dark h3 { color: var(--porcelain); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 52px); max-width: 760px; }
.section-head p { color: var(--muted-dark); font-size: 1.06rem; margin: 0; }
.section-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head-split .section-head { margin-bottom: 0; }
.serif-italic { font-family: var(--serif); font-style: italic; color: var(--burgundy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: 600 0.92rem/1.2 var(--sans); letter-spacing: 0.01em; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--burgundy); color: var(--porcelain); box-shadow: 0 10px 22px -12px rgba(122, 41, 70, 0.7); }
.btn-primary:hover { background: var(--burgundy-deep); color: var(--porcelain); }
.btn-ghost { background: transparent; color: var(--burgundy); border-color: rgba(122, 41, 70, 0.4); }
.btn-ghost:hover { background: rgba(122, 41, 70, 0.07); color: var(--burgundy-deep); border-color: var(--burgundy); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b88f48; color: var(--ink); }
.btn-light { background: var(--porcelain); color: var(--burgundy); }
.btn-light:hover { color: var(--burgundy-deep); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.86rem; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ==========================================================================
   Header — slim, non-sticky (scrolls naturally with the document)
   ========================================================================== */
.site-header {
  position: relative; /* deliberately NOT fixed or sticky */
  z-index: 50;
  background: rgba(255, 253, 252, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--burgundy); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }
.brand-name { font-family: var(--serif); font-size: 1.14rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; line-height: 1; margin-top: 3px; }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 500;
  padding: 10px 12px; border-radius: 8px; position: relative;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-list a:not(.btn):hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--burgundy); }
.header-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--porcelain); display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; flex: 0 0 44px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .primary-nav { margin-left: 0; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--porcelain); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(41, 33, 30, 0.35);
    padding: 8px clamp(16px, 4vw, 40px) 20px; display: none; flex-direction: column; gap: 2px;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-header.nav-open .nav-list { display: flex; animation: navDrop .35s var(--ease); }
  .nav-list a { padding: 14px 8px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta-mobile { padding-top: 14px; }
  .nav-cta-mobile .btn { width: 100%; border-bottom: 0; border-radius: 999px; color: var(--porcelain); }
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
  .header-cta { display: inline-flex; margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-cta-mobile { display: none; }
  .header-cta { margin-left: 8px; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 1rem; }
  .brand-name small { display: none; }
}

/* Breadcrumbs */
.breadcrumbs { padding: 18px 0 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.breadcrumbs a { color: var(--muted-dark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--burgundy); }

/* ==========================================================================
   Hero — Career Document Drift
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 900px); display: flex; align-items: center;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  background:
    radial-gradient(60% 55% at 50% 48%, rgba(245, 239, 231, 0.96) 0%, rgba(245, 239, 231, 0.75) 55%, rgba(245, 239, 231, 0) 100%),
    linear-gradient(160deg, #F7F1EA 0%, #EFE4D8 100%);
}
.drift-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.drift-item { position: absolute; will-change: transform; transition: opacity .6s; }
.drift-float { animation: driftFloat 14s ease-in-out infinite; }
.drift-item:nth-child(2n) .drift-float { animation-duration: 18s; animation-delay: -4s; }
.drift-item:nth-child(3n) .drift-float { animation-duration: 22s; animation-delay: -9s; }
@keyframes driftFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  33% { transform: translate3d(8px, -16px, 0) rotate(calc(var(--rot, 0deg) + 1.5deg)); }
  66% { transform: translate3d(-10px, 10px, 0) rotate(calc(var(--rot, 0deg) - 1.2deg)); }
}
.d1 { left: 3%; top: 10%; --rot: -9deg; }
.d2 { right: 4%; top: 7%; --rot: 7deg; }
.d3 { right: 11%; bottom: 7%; --rot: -5deg; }
.d4 { left: 7%; bottom: 6%; --rot: 6deg; }
.d5 { left: 30%; top: 4%; --rot: 0deg; }
.d6 { right: 30%; bottom: 3%; --rot: 4deg; }
.d7 { left: 22%; bottom: 22%; --rot: 0deg; }
.d1 .drift-float, .d2 .drift-float, .d3 .drift-float, .d4 .drift-float, .d5 .drift-float, .d6 .drift-float, .d7 .drift-float { transform: rotate(var(--rot)); }

.doc-sheet {
  width: clamp(120px, 15vw, 220px); aspect-ratio: 210 / 297;
  background: var(--porcelain); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow-lg); padding: 13% 11%; display: flex; flex-direction: column; gap: 5%;
  position: relative; overflow: hidden;
}
.doc-sheet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.6), transparent 40%); pointer-events: none; }
.ds-head { height: 7%; width: 68%; background: var(--burgundy); border-radius: 2px; }
.ds-sub { height: 2.4%; width: 42%; background: var(--gold); border-radius: 2px; }
.ds-rule { height: 1px; background: var(--line-strong); }
.ds-lines { flex: 1; background: repeating-linear-gradient(to bottom, rgba(41,33,30,.14) 0 2px, transparent 2px 10px); border-radius: 2px; }
.ds-lines.short { flex: 0.6; }
.ds-label { height: 2.4%; width: 30%; background: var(--terracotta); border-radius: 2px; }
.doc-sidebar { flex-direction: row; padding: 0; gap: 0; }
.doc-sidebar .ds-col { width: 34%; background: var(--burgundy); padding: 14% 8%; display: flex; flex-direction: column; gap: 8%; }
.doc-sidebar .ds-avatar { width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--gold); }
.doc-sidebar .ds-col-line { height: 3px; background: rgba(255,253,252,.45); border-radius: 2px; }
.doc-sidebar .ds-main { flex: 1; padding: 14% 9%; display: flex; flex-direction: column; gap: 6%; }

.drift-photo {
  margin: 0; width: clamp(130px, 15vw, 210px); aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid var(--porcelain); background: var(--porcelain);
}
.drift-photo img { width: 100%; height: 100%; object-fit: cover; }
.drift-photo.wide { aspect-ratio: 5 / 4; width: clamp(150px, 17vw, 250px); }
.profile-card {
  width: clamp(150px, 15vw, 210px); background: var(--card); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
}
.profile-card .pc-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: 0 0 40px; border: 2px solid var(--gold); }
.profile-card .pc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .pc-lines { flex: 1; display: grid; gap: 6px; }
.profile-card .pc-lines span { height: 6px; border-radius: 4px; background: rgba(41,33,30,.16); }
.profile-card .pc-lines span:first-child { background: var(--burgundy); width: 80%; }
.profile-card .pc-lines span:last-child { width: 55%; background: var(--gold); }
.gold-form { width: clamp(60px, 7vw, 110px); aspect-ratio: 1; border: 1.5px solid var(--gold); transform: rotate(45deg); position: relative; }
.gold-form::after { content: ""; position: absolute; inset: 22%; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); opacity: .55; }
.gold-ring { width: clamp(70px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--terracotta); }

.hero-inner { position: relative; text-align: center; max-width: 860px; }
.hero-title { font-size: clamp(2.3rem, 7vw, 5.2rem); line-height: 1.02; margin-bottom: 22px; }
.hero-title em { font-style: italic; color: var(--burgundy); }
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.mask > span { display: inline-block; animation: maskUp 1.1s var(--ease) both; }
.mask:nth-child(2) > span { animation-delay: .15s; }
.mask:nth-child(3) > span { animation-delay: .3s; }
@keyframes maskUp { from { transform: translateY(105%); } to { transform: translateY(0); } }
.hero-lede { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--muted-dark); max-width: 640px; margin: 0 auto 30px; animation: fadeUp 1s .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-search {
  display: flex; align-items: center; gap: 6px; max-width: 620px; margin: 0 auto;
  background: var(--porcelain); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px;
  box-shadow: var(--shadow); animation: fadeUp 1s .6s var(--ease) both;
}
.hero-search svg { flex: 0 0 20px; margin-left: 12px; color: var(--muted); }
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: 1rem var(--sans); color: var(--ink); padding: 10px 6px; outline: none;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search:focus-within { border-color: var(--burgundy); }
.hero-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; animation: fadeUp 1s .75s var(--ease) both; }
.hero-quick a { font-size: 0.82rem; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,253,252,.7); color: var(--ink); }
.hero-quick a:hover { border-color: var(--burgundy); color: var(--burgundy); }

.career-badge { position: absolute; right: clamp(12px, 4vw, 48px); bottom: clamp(12px, 4vw, 40px); width: 112px; height: 112px; z-index: 1; display: grid; place-items: center; }
.career-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.career-badge text { font: 700 9.5px var(--sans); letter-spacing: 2.4px; fill: var(--burgundy); text-transform: uppercase; }
.career-badge .badge-core { width: 52px; height: 52px; border-radius: 50%; background: var(--burgundy); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 0.95rem; box-shadow: var(--shadow); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
  .d3, .d5, .d6, .d7 { display: none; }
  .drift-item { opacity: 0.42; }
  .d1 { left: -40px; top: 4%; }
  .d2 { right: -36px; top: 3%; }
  .d4 { left: auto; right: -30px; bottom: 2%; }
  .hero-search { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .hero-search svg { display: none; }
  .hero-search input { flex-basis: 100%; padding: 12px; }
  .hero-search .btn { width: 100%; }
  .career-badge { display: none; }
}

/* Page hero for inner pages */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.8rem); max-width: 900px; }
.page-hero .lede { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted-dark); max-width: 720px; }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.stacked-figures { position: relative; min-height: 300px; }
.stacked-figures figure { margin: 0; position: absolute; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--porcelain); }
.stacked-figures figure img { width: 100%; height: 100%; object-fit: cover; }
.stacked-figures .sf-1 { width: 68%; height: 82%; left: 0; top: 0; transform: rotate(-3deg); }
.stacked-figures .sf-2 { width: 54%; height: 64%; right: 0; bottom: 0; transform: rotate(4deg); }

/* ==========================================================================
   Reveal & wipe effects
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.wipe { position: relative; overflow: hidden; }
.js .wipe::after { content: ""; position: absolute; inset: 0; background: var(--burgundy); transform-origin: right; transform: scaleX(1); transition: transform 1.1s var(--ease); z-index: 2; }
.js .is-visible .wipe::after, .js .wipe.is-visible::after { transform: scaleX(0); }
.js .card-enter .wipe::after { animation: wipeOut 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
@keyframes wipeOut { to { transform: scaleX(0); } }
.card-enter { animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Tool cards — editorial document cards
   ========================================================================== */
.card-grid { display: grid; gap: clamp(20px, 3vw, 34px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
@media (min-width: 1024px) {
  .card-grid.magazine { grid-template-columns: repeat(3, 1fr); }
  .card-grid.magazine > .tool-card:nth-child(3n+2) { margin-top: 48px; }
}
.tool-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tool-card-media { margin: 0; aspect-ratio: 4 / 3; background: var(--gold-soft); position: relative; }
.tool-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tool-card:hover .tool-card-media img { transform: scale(1.06); }
.tool-card-label {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  background: rgba(255,253,252,.94); color: var(--burgundy); font-size: 0.7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(122,41,70,.2);
}
.mini-doc {
  position: absolute; right: 14px; bottom: -26px; z-index: 3; width: 62px; aspect-ratio: 210/297; background: var(--porcelain);
  border-radius: 4px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px 7px; display: flex; flex-direction: column; gap: 4px;
  transform: rotate(5deg); transition: transform .5s var(--ease);
}
.tool-card:hover .mini-doc { transform: rotate(-2deg) translateY(-6px); }
.mini-doc i { display: block; height: 3px; border-radius: 2px; background: rgba(41,33,30,.18); }
.mini-doc i:first-child { height: 6px; width: 70%; background: var(--burgundy); }
.mini-doc i:nth-child(2) { width: 45%; background: var(--gold); }
.tool-card-body { padding: 22px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tool-card-index { font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 600; }
.tool-card-title { margin: 0; font-size: 1.5rem; }
.tool-card-title a { color: inherit; text-decoration: none; }
.tool-card-tagline { color: var(--muted-dark); margin: 0; font-size: 0.95rem; }
.tag-list { list-style: none; padding: 0; margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-size: 0.74rem; padding: 4px 10px; border-radius: 999px; background: rgba(199,161,90,.16); color: #6d5426; border: 1px solid rgba(199,161,90,.35); }
.tag-list li.tag-price { background: rgba(122,41,70,.08); color: var(--burgundy); border-color: rgba(122,41,70,.22); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.card-actions .btn { flex: 1 1 130px; }

/* Compare toggle on cards */
.compare-toggle {
  flex: 1 1 100%; display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font: 600 0.84rem var(--sans); color: var(--muted-dark); text-align: left;
}
.compare-toggle:hover { color: var(--burgundy); }
.compare-toggle .ct-box {
  width: 18px; height: 18px; flex: 0 0 18px; border: 1.5px solid var(--line-strong); border-radius: 5px;
  display: grid; place-items: center; background: var(--porcelain); transition: background .2s, border-color .2s;
}
.compare-toggle[aria-pressed="true"] { color: var(--burgundy); }
.compare-toggle[aria-pressed="true"] .ct-box { background: var(--burgundy); border-color: var(--burgundy); }
.compare-toggle[aria-pressed="true"] .ct-box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--porcelain); border-bottom: 2px solid var(--porcelain); transform: rotate(-45deg) translate(1px, -1px); }

/* Spotlight card (featured) */
.spotlight-list { display: grid; gap: clamp(28px, 4vw, 48px); }
.spotlight {
  display: grid; gap: 0; background: var(--porcelain); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.spotlight:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.spotlight-media { margin: 0; min-height: 260px; position: relative; }
.spotlight-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.spotlight:hover .spotlight-media img { transform: scale(1.05); }
.spotlight-body { padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.spotlight-num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--gold); margin: 0; }
.spotlight-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.spotlight-body .caption { font-family: var(--serif); font-style: italic; color: var(--terracotta); margin: 0; }
@media (min-width: 860px) {
  .spotlight { grid-template-columns: 1fr 1fr; }
  .spotlight:nth-child(even) .spotlight-media { order: 2; }
}

/* Row card (ATS list) */
.row-list { display: grid; gap: 16px; counter-reset: rowcount; }
.row-card {
  display: grid; gap: 16px; align-items: center; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: background .3s, transform .4s var(--ease); counter-increment: rowcount;
}
.row-card:hover { background: var(--porcelain); transform: translateX(4px); }
.row-card-media { margin: 0; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; }
.row-card-media img { width: 100%; height: 100%; object-fit: cover; }
.row-card h3 { margin: 0 0 4px; }
.row-card p { margin: 0; color: var(--muted-dark); font-size: 0.95rem; }
.row-card .card-actions { margin-top: 0; padding-top: 0; }
@media (min-width: 760px) {
  .row-card { grid-template-columns: 150px 1fr auto; }
  .row-card-media { aspect-ratio: 4/3; }
  .row-card .card-actions { flex-direction: column; min-width: 190px; }
  .row-card .compare-toggle { flex: 0 0 auto; }
}

/* Overlap stack (templates) */
.overlap-stack { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .overlap-stack { grid-template-columns: repeat(3, 1fr); gap: 0; align-items: start; }
  .overlap-stack > .tool-card:nth-child(1) { transform: rotate(-2deg); z-index: 1; }
  .overlap-stack > .tool-card:nth-child(2) { margin: 40px -24px 0; z-index: 2; }
  .overlap-stack > .tool-card:nth-child(3) { transform: rotate(2deg); z-index: 1; }
  .overlap-stack > .tool-card:hover { transform: rotate(0) translateY(-8px); z-index: 3; }
}

/* Editorial (guide) cards */
.editorial-grid { display: grid; gap: clamp(20px, 3vw, 30px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.editorial-card {
  display: flex; flex-direction: column; background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.editorial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.editorial-card figure { margin: 0; aspect-ratio: 16 / 10; }
.editorial-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.editorial-card:hover figure img { transform: scale(1.05); }
.editorial-card .ec-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.editorial-card .ec-kicker { font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); margin: 0; }
.editorial-card h3 { margin: 0; }
.editorial-card p { margin: 0; color: var(--muted-dark); font-size: 0.95rem; }
.editorial-card.feature { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .editorial-card.feature { flex-direction: row; }
  .editorial-card.feature figure { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
  .editorial-card.feature .ec-body { padding: 40px; justify-content: center; }
  .editorial-card.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
}

/* Vertical career columns */
.career-columns { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.career-col { background: var(--porcelain); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.career-col .cc-num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.career-col h3 { margin: 0; }
.career-col p { margin: 0; color: var(--muted-dark); font-size: 0.95rem; }
.career-col ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted-dark); font-size: 0.92rem; }
@media (min-width: 768px) { .career-columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .career-columns { grid-template-columns: repeat(4, 1fr); } }

/* Career story / quote block */
.career-story {
  position: relative; border-radius: 20px; overflow: hidden; color: var(--porcelain);
  background-image: linear-gradient(100deg, rgba(41,33,30,.92) 0%, rgba(94,31,54,.82) 55%, rgba(122,41,70,.45) 100%), var(--img-career-workspace-desk);
  background-size: cover; background-position: center;
  padding: clamp(32px, 6vw, 80px);
}
.career-story h2 { color: var(--porcelain); max-width: 680px; }
.career-story p { max-width: 620px; color: rgba(255,253,252,.86); }
.career-story blockquote { margin: 26px 0; padding-left: 20px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 640px; }

.collection-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.collection-item { background: var(--porcelain); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), border-color .3s; }
.collection-item:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--ink); }
.collection-item strong { font-family: var(--serif); font-size: 1.2rem; }
.collection-item span { color: var(--muted-dark); font-size: 0.9rem; }
.collection-item em { font-style: normal; color: var(--burgundy); font-weight: 600; font-size: 0.86rem; margin-top: auto; }

.results-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--muted-dark); font-size: 0.95rem; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: var(--porcelain); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state h3 { margin-bottom: 8px; }

/* ==========================================================================
   Listings / catalog
   ========================================================================== */
.catalog-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 290px 1fr; align-items: start; } }
.filter-panel { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.filter-toggle { width: 100%; justify-content: space-between; }
.filter-body { display: none; margin-top: 18px; }
.filter-panel.open .filter-body { display: block; }
@media (min-width: 1024px) {
  .filter-toggle { display: none; }
  .filter-body { display: block; margin-top: 0; }
}
.filter-group { border: 0; margin: 0 0 20px; padding: 0 0 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group legend, .filter-label { font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); margin-bottom: 10px; padding: 0; display: block; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 0.84rem var(--sans); padding: 8px 14px; min-height: 38px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover { border-color: var(--burgundy); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--burgundy); color: var(--porcelain); border-color: var(--burgundy); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.select, .input, .textarea {
  width: 100%; font: 0.95rem var(--sans); color: var(--ink); background: var(--porcelain);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; min-height: 44px;
}
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(122,41,70,.15); }
.textarea { min-height: 160px; resize: vertical; }
.catalog-toolbar { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 640px) { .catalog-toolbar { grid-template-columns: 1fr 220px; align-items: end; } }
.catalog-search { position: relative; }
.catalog-search .input { padding-left: 40px; }
.catalog-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ==========================================================================
   Downloadable CV templates
   ========================================================================== */
.tpl-section { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 8vw, 100px); scroll-margin-top: 20px; }
.tpl-grid { display: grid; gap: clamp(18px, 3vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tpl-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tpl-thumb {
  position: relative; aspect-ratio: 210 / 297; overflow: hidden; background: #fff; margin: 16px 16px 0;
  border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 24px -16px rgba(41,33,30,.55);
}
.tpl-thumb-page {
  position: absolute; top: 0; left: 0; width: 794px; min-height: 1123px; padding: 60px 64px; background: #fff;
  transform-origin: 0 0; pointer-events: none; user-select: none;
}
.tpl-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-body h3 { margin: 0; font-size: 1.25rem; }
.tpl-body > p { margin: 0; font-size: 0.92rem; color: var(--muted-dark); }
.tpl-page h1, .tpl-page h2, .tpl-thumb-page h1, .tpl-thumb-page h2 { font-family: inherit; line-height: 1.25; }
.tpl-page li, .tpl-thumb-page li { line-height: 1.4; }
.tpl-dialog { max-width: 980px; background: var(--ivory); }
.tpl-toolbar { position: sticky; top: 0; z-index: 3; background: var(--porcelain); border-bottom: 1px solid var(--line); padding: 18px 72px 14px 24px; }
.tpl-toolbar .eyebrow { margin-bottom: 6px; }
.tpl-toolbar h2 { font-size: 1.4rem; margin: 0 0 4px; }
.tpl-hint { font-size: 0.86rem; color: var(--muted-dark); margin: 0 0 12px; }
.tpl-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-status { font-size: 0.86rem; margin: 8px 0 0; min-height: 1.2em; color: var(--burgundy); }
.tpl-canvas { padding: clamp(12px, 3vw, 32px); }
.tpl-page {
  background: #fff; max-width: 794px; margin: 0 auto; min-height: 640px; padding: clamp(24px, 6vw, 64px);
  box-shadow: var(--shadow); border-radius: 4px; outline: none; cursor: text;
}
.tpl-page:focus { box-shadow: 0 0 0 3px rgba(199,161,90,.6), var(--shadow); }
@media (max-width: 640px) { .tpl-toolbar { padding: 16px 64px 12px 16px; } .tpl-tools .btn { flex: 1 1 140px; } }

/* ==========================================================================
   Compare tray & dialog
   ========================================================================== */
.compare-tray {
  position: fixed; right: 16px; bottom: 16px; z-index: 340; width: min(380px, calc(100% - 32px));
  background: var(--porcelain); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 16px; display: none;
}
.compare-tray.show { display: block; animation: fadeUp .4s var(--ease); }
.ct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ct-head strong { font-family: var(--serif); font-size: 1.1rem; }
.ct-count { font-size: 0.8rem; color: var(--muted); }
.ct-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ct-list li { display: inline-flex; align-items: center; gap: 2px; font-size: 0.82rem; padding: 2px 2px 2px 10px; border-radius: 999px; background: rgba(122,41,70,.08); color: var(--burgundy); border: 1px solid rgba(122,41,70,.2); }
.ct-list button { border: 0; background: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: inherit; font-size: 1.05rem; line-height: 1; }
.ct-list button:hover { background: rgba(122,41,70,.12); }
.ct-msg { font-size: 0.82rem; color: var(--muted-dark); margin: 0 0 10px; min-height: 1em; }
.ct-actions { display: flex; gap: 8px; }
.ct-actions .btn { flex: 1; }
body.has-compare .site-footer { padding-bottom: 190px; }
.compare-dialog { max-width: 1120px; }
.cmp-head { position: sticky; top: 0; z-index: 3; background: var(--porcelain); padding: 20px 72px 14px 24px; border-bottom: 1px solid var(--line); }
.cmp-head .eyebrow { margin-bottom: 6px; }
.cmp-head h2 { font-size: 1.5rem; margin: 0; }
.cmp-body { padding: 20px 24px 24px; }
.cmp-table { min-width: 640px; }
.cmp-table th[scope="row"] { width: 160px; background: var(--ivory); font-family: var(--sans); font-size: 0.82rem; font-weight: 700; color: var(--muted-dark); }
.cmp-table thead th { font-size: 1.15rem; vertical-align: bottom; background: var(--porcelain); }
.cmp-table thead td { background: var(--porcelain); }
.cmp-table thead th small { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; margin-bottom: 4px; }
.cmp-table ul { margin: 0; padding-left: 1.1em; }
.cmp-table li { margin-bottom: 4px; }
.cmp-links { display: grid; gap: 6px; }
.cmp-links .btn { width: 100%; }

/* ==========================================================================
   Detail page
   ========================================================================== */
.detail-hero { display: grid; gap: 34px; padding: clamp(28px, 5vw, 56px) 0; align-items: center; }
@media (min-width: 960px) { .detail-hero { grid-template-columns: 1fr 1fr; } }
.detail-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 12px; }
.detail-hero .lede { font-size: 1.12rem; color: var(--muted-dark); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.detail-media { position: relative; padding: 0 0 40px 0; }
.detail-media figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; border: 8px solid var(--porcelain); }
.detail-media figure img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .doc-sheet { position: absolute; left: -10px; bottom: 0; width: clamp(110px, 22vw, 170px); transform: rotate(-6deg); }
.detail-media .doc-caption { position: absolute; right: 8px; bottom: 6px; font-size: 0.78rem; color: var(--muted); font-style: italic; font-family: var(--serif); }
.detail-layout { display: grid; gap: 32px; padding-bottom: clamp(48px, 8vw, 96px); }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.detail-section { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); margin-bottom: 24px; }
.detail-section h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.detail-section p:last-child { margin-bottom: 0; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 10px; position: relative; background: var(--ivory); font-size: 0.95rem; }
.feature-list li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 14px; height: 10px; border-left: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); transform: rotate(-45deg); }
.pros-cons { display: grid; gap: 18px; }
@media (min-width: 700px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons > div { border-radius: 12px; padding: 20px; border: 1px solid var(--line); }
.pros-box { background: rgba(199,161,90,.1); }
.cons-box { background: rgba(166,106,76,.08); }
.pros-cons h3 { font-size: 1.15rem; }
.pros-cons ul { margin: 0; padding-left: 1.1em; }
.pros-cons li { margin-bottom: 8px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; color: var(--muted-dark); }
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gallery-btn { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; display: block; width: 100%; text-align: left; }
.gallery-btn figure { margin: 0; }
.gallery-btn img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-btn:hover img { transform: scale(1.06); }
.gallery-btn figcaption { font-size: 0.82rem; color: var(--muted-dark); padding: 8px 2px; font-style: italic; font-family: var(--serif); }
.example-list { display: grid; gap: 14px; }
.example-item { padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--ivory); border-radius: 0 10px 10px 0; }
.example-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.example-item p { margin: 0 0 8px; font-size: 0.95rem; color: var(--muted-dark); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 600; position: relative; font-family: var(--serif); font-size: 1.08rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--burgundy); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted-dark); padding-bottom: 12px; margin: 0; }
.recommend-panel {
  background: var(--card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) { .recommend-panel { position: sticky; top: 24px; } }
.recommend-panel h2 { font-size: 1.35rem; }
.recommend-panel dl { margin: 0 0 18px; display: grid; gap: 10px; }
.recommend-panel dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--terracotta); font-weight: 700; }
.recommend-panel dd { margin: 0; font-size: 0.94rem; }
.recommend-panel .btn { width: 100%; margin-bottom: 10px; }
.toc-mini { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.toc-mini a { text-decoration: none; font-size: 0.9rem; color: var(--muted-dark); }
.toc-mini a:hover { color: var(--burgundy); }
.disclaimer-note { font-size: 0.85rem; color: var(--muted-dark); background: rgba(199,161,90,.12); border: 1px solid rgba(199,161,90,.3); padding: 12px 14px; border-radius: 10px; }

/* Lightbox modal */
.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(41,33,30,.72); }
.modal.open { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-dialog { background: var(--porcelain); border-radius: 18px; max-width: 920px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--porcelain); color: var(--ink); font-size: 1.5rem; cursor: pointer; z-index: 2; box-shadow: var(--shadow); }
.lightbox-dialog img { width: 100%; max-height: 72vh; object-fit: contain; background: var(--ink); }
.lightbox-dialog p { padding: 14px 20px; margin: 0; font-family: var(--serif); font-style: italic; color: var(--muted-dark); }

/* ==========================================================================
   Guide (editorial) page
   ========================================================================== */
.guide-layout { display: grid; gap: 36px; padding-bottom: clamp(48px, 8vw, 100px); }
@media (min-width: 1024px) { .guide-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.guide-toc { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 1024px) { .guide-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; } }
.guide-toc h2 { font-size: 1.1rem; }
.guide-toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 0.9rem; }
.guide-toc a { text-decoration: none; color: var(--muted-dark); }
.guide-toc a:hover { color: var(--burgundy); }
.chapter-label { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 1.1rem; margin: 40px 0 16px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.chapter-label:first-child { margin-top: 0; }
.guide-article { background: var(--porcelain); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4.5vw, 52px); margin-bottom: 28px; scroll-margin-top: 20px; }
.guide-article h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.guide-article h3 { margin-top: 1.4em; }
.guide-article > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-size: 3.4em; line-height: 0.85; padding: 6px 10px 0 0; color: var(--burgundy); }
.guide-article .article-meta { font-size: 0.8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.guide-article figure { margin: 24px 0; border-radius: 12px; overflow: hidden; }
.guide-article figure img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.guide-article figcaption { font-size: 0.85rem; color: var(--muted); font-style: italic; font-family: var(--serif); padding-top: 8px; }
.pull-quote { margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--gold); background: var(--ivory); font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); font-style: italic; color: var(--burgundy); border-radius: 0 12px 12px 0; }
.guide-article .card-actions { margin-top: 22px; }
.guide-article .card-actions .btn { flex: 0 1 auto; }
.compare-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 0.94rem; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--ivory); font-family: var(--serif); }

/* Legal pages */
.legal-layout { display: grid; gap: 32px; padding-bottom: clamp(48px, 8vw, 100px); }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.legal-content { background: var(--porcelain); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4.5vw, 52px); }
.legal-content h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 1.8em; scroll-margin-top: 20px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.3em; }
.legal-content li { margin-bottom: 6px; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 12px 0 20px; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal-content th { background: var(--ivory); }
.table-scroll { overflow-x: auto; }
.updated { font-size: 0.88rem; color: var(--muted); }

/* About & contact */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.value-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.value-card { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.value-card h3 { font-size: 1.2rem; }
.value-card p { margin: 0; color: var(--muted-dark); font-size: 0.95rem; }
.contact-layout { display: grid; gap: 28px; padding-bottom: clamp(48px, 8vw, 100px); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.info-card { background: var(--porcelain); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.info-card address { font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
.info-card dl { margin: 0; display: grid; gap: 14px; }
.info-card dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--terracotta); font-weight: 700; }
.info-card dd { margin: 0; overflow-wrap: anywhere; }
.form-card { background: var(--porcelain); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 4px 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field-error { color: #9b2c2c; font-size: 0.82rem; min-height: 1.1em; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: #9b2c2c; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--burgundy); flex: 0 0 20px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; font-size: 0.95rem; }
.form-status.show { display: block; }
.form-status.success { background: rgba(199,161,90,.16); border: 1px solid rgba(199,161,90,.5); }
.form-status.error { background: rgba(155,44,44,.08); border: 1px solid rgba(155,44,44,.35); color: #7a2323; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(245,239,231,.82); padding: clamp(48px, 7vw, 80px) 0 28px; font-size: 0.92rem; }
.site-footer a { color: rgba(245,239,231,.86); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-top { display: grid; gap: 34px; }
@media (min-width: 700px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: var(--porcelain); margin-bottom: 14px; }
.footer-brand .brand-name small { color: var(--gold); }
.footer-brand address { font-style: normal; line-height: 1.75; overflow-wrap: anywhere; margin-top: 12px; }
.footer-heading { font-family: var(--sans); font-size: 0.72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: rgba(245,239,231,.86); cursor: pointer; text-align: left; }
.link-button:hover { color: var(--gold); }
.footer-notices { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(245,239,231,.14); display: grid; gap: 12px; font-size: 0.86rem; color: rgba(245,239,231,.72); }
.platform-notice { border: 1px solid rgba(199,161,90,.4); border-radius: 12px; padding: 14px 16px; background: rgba(199,161,90,.06); }
.platform-notice strong { color: var(--gold); }
.footer-bottom { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: rgba(245,239,231,.6); }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Cookie consent
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 350; max-width: 560px;
  background: var(--porcelain); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 22px; display: none;
}
.cookie-banner.show { display: block; animation: fadeUp .5s var(--ease); }
.cookie-banner h2 { font-size: 1.25rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.9rem; color: var(--muted-dark); margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 140px; }
.cookie-dialog { max-width: 620px; padding: clamp(22px, 4vw, 34px); }
.cookie-dialog h2 { font-size: 1.5rem; padding-right: 40px; }
.cookie-cat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; }
.cookie-cat h3 { font-size: 1.05rem; margin: 0 0 4px; font-family: var(--sans); }
.cookie-cat p { margin: 0; font-size: 0.87rem; color: var(--muted-dark); }
.switch { position: relative; width: 50px; height: 28px; flex: 0 0 50px; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: rgba(41,33,30,.2); border-radius: 999px; transition: background .25s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--porcelain); transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--burgundy); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .wipe::after { display: none; }
}