/* Chubby Royal Cats — styles */
:root {
  --cream: #faf6ef;
  --paper: #fffdf9;
  --ink: #2a221d;
  --muted: #74675b;
  --line: #e9dfd0;
  --gold: #b8873b;
  --gold-deep: #8d6223;
  --gold-soft: #f3e6cc;
  --royal: #2c2840;
  --royal-ink: #eae5f5;
  --ok: #4c7a52;
  --ok-soft: #e4efe3;
  --warn-soft: #f6ead2;
  --sold: #8b8580;
  --sold-soft: #ece9e6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 34, 29, .05), 0 8px 30px rgba(42, 34, 29, .07);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  font: 500 .78rem/1.2 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.section-head h2 { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-deep); }
.btn--dark { background: var(--royal); color: #fff; }
.btn--dark:hover { background: #1d1a2c; }
.btn--ghost { border-color: var(--line); background: var(--paper); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--gold-deep); text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; }
.link:hover { color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: 72px;
  background: rgba(250, 246, 239, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.45rem/1 var(--display); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links li:last-child a { border: 0; margin-top: 12px; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.hero-trust b { display: block; font: 600 1.35rem/1.2 var(--display); color: var(--ink); }
.arch { position: relative; max-width: 460px; margin-left: auto; width: 100%; }
.arch::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold); border-radius: 999px 999px var(--radius) var(--radius);
}
.arch img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow); background: var(--gold-soft); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .arch { max-width: 360px; margin: 8px auto 0; }
}

/* Cards */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dccbb0; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gold-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .badge { position: absolute; top: 14px; left: 14px; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.6rem; }
.card-meta { font-size: .92rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.price { font: 600 1.3rem/1 var(--display); color: var(--gold-deep); }
.card-cta { font-size: .88rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font: 500 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--ink);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--available { color: var(--ok); background: var(--ok-soft); }
.badge--reserved { color: var(--gold-deep); background: var(--warn-soft); }
.badge--sold { color: var(--sold); background: var(--sold-soft); }
.badge--upcoming { color: var(--royal); background: #e9e6f2; }
.badge--retired { color: var(--sold); background: var(--sold-soft); }
.profile .badge--retired { margin-left: 10px; vertical-align: 1px; }
.section--retired { background: #f4f1ec; border-top: 1px solid var(--line); }
.profile--retired .gallery-stage img { filter: saturate(.85); }

/* Parent mini cards */
.parent-card { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.parent-card:hover { border-color: #dccbb0; box-shadow: var(--shadow); }
.parent-card img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; background: var(--gold-soft); }
.parent-card h4 { font-size: 1.4rem; margin: 2px 0 2px; }
.parent-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.role { font: 500 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }

/* Home: parents preview */
.parents-preview { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Litters */
.litter { margin-bottom: 72px; }
.litter:last-child { margin-bottom: 0; }
.litter-head { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: end; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.litter-head h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .2em; }
.litter-head p { margin: 0; color: var(--muted); }
.litter-parents { display: flex; gap: 12px; }
.litter-parents a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .92rem; }
.litter-parents a:hover { border-color: var(--gold); }
.litter-parents img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.litter-parents small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
@media (max-width: 700px) { .litter-head { grid-template-columns: 1fr; } .litter-parents { flex-wrap: wrap; } }

.upcoming { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.upcoming-card { padding: 26px; border: 1px dashed #d6c3a1; border-radius: var(--radius); background: var(--paper); }
.upcoming-card .pair { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.upcoming-card .pair img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.upcoming-card .pair span { font: 600 1.3rem/1.2 var(--display); }
.upcoming-card .times { font-family: var(--display); color: var(--gold); font-size: 1.6rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.chip { padding: .6em 1.15em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 400 .92rem/1 var(--body); cursor: pointer; color: var(--muted); }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--royal); color: #fff; border-color: var(--royal); }
.filters .sep { width: 1px; background: var(--line); margin: 0 6px; }

/* Kitten detail */
.crumbs { font-size: .9rem; color: var(--muted); margin: 28px 0 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 72px; }
.gallery-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--gold-soft); cursor: zoom-in; aspect-ratio: 4 / 5; }
.gallery-stage img, .gallery-stage video { width: 100%; height: 100%; object-fit: cover; }
.gallery-stage .zoom-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(42,34,29,.7); color: #fff; font-size: .8rem; pointer-events: none; }
.gallery-stage .zoom-hint svg { width: 15px; height: 15px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--gold-soft); aspect-ratio: 1; position: relative; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img, .thumbs video { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); }
.detail-info { position: sticky; top: 96px; }
.detail-info h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin: 10px 0 6px; }
.detail-info .price { font-size: 2rem; display: block; margin: 4px 0 20px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .95rem; }
.facts dt { color: var(--muted); padding-right: 24px; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.traits li { padding: 6px 13px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-size: .85rem; }
.inquire { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.inquire h3 { font-size: 1.35rem; margin-bottom: 4px; }
.inquire p { font-size: .92rem; color: var(--muted); }
.includes { margin: 20px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.includes li { display: flex; gap: 10px; padding: 5px 0; }
.includes li::before { content: "✦"; color: var(--gold); }
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail-info { position: static; }
}

/* Parents page */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.profile:last-child { border-bottom: 0; }
.profile:nth-child(even) .profile-photos { order: 2; }
.profile-photos .gallery-stage { aspect-ratio: 1; }
.profile h3 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 6px 0 14px; }
.profile .mini-kittens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.profile .mini-kittens a { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9rem; }
.profile .mini-kittens a:hover { border-color: var(--gold); }
.profile .mini-kittens img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; }
  .profile:nth-child(even) .profile-photos { order: 0; }
}
.page-hero { padding: clamp(48px, 7vw, 88px) 0 8px; }
.page-hero p { max-width: 620px; color: var(--muted); font-size: 1.1rem; }

/* Info blocks */
.includes-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.step { padding: 28px 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 600 2.4rem/1 var(--display); color: var(--gold); margin-bottom: 14px; }
.step h3 { font-size: 1.4rem; margin-bottom: 6px; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-grid ul { margin: 0; padding: 0; list-style: none; }
.about-grid li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about-grid li::before { content: "✦"; color: var(--gold); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Instagram */
.ig-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ig-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--gold-soft); display: block; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig-tile:hover img { transform: scale(1.05); }
.ig-tile .ig-type { position: absolute; top: 10px; right: 10px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.ig-tile .ig-type svg { width: 22px; height: 22px; }
.ig-tile .ig-cap { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .82rem; line-height: 1.4; opacity: 0; transition: opacity .3s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ig-tile:hover .ig-cap, .ig-tile:focus-visible .ig-cap { opacity: 1; }
.ig-embeds { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.ig-embeds .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
@media (max-width: 700px) {
  .ig-embeds { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .ig-embeds > * { scroll-snap-align: start; }
  .filters .sep { display: none; }
}
.ig-fallback { text-align: center; padding: 48px 24px; border: 1px dashed #d6c3a1; border-radius: var(--radius); }

/* Contact */
.contact { background: var(--royal); color: var(--royal-ink); }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #d9b77a; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact p { color: #c9c2da; }
.contact .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.contact .btn--ghost:hover { border-color: #d9b77a; color: #d9b77a; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; }
.contact-list span { color: #a49cbc; }
.contact-list a { color: #fff; text-decoration: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form */
.form { display: grid; gap: 12px; margin-top: 18px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .95rem; color: var(--ink); }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #1d1a2c; color: #a49cbc; padding: 48px 0 40px; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #d6d0e6; text-decoration: none; }
.site-footer a:hover { color: #d9b77a; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Empty state */
.empty { padding: 48px 24px; text-align: center; border: 1px dashed #d6c3a1; border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
.empty h3 { color: var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(16, 13, 11, .96); display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: .9rem; }
.lb-bar .lb-actions { display: flex; gap: 6px; align-items: center; }
.lb-btn { background: rgba(255,255,255,.08); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px 24px; touch-action: pan-y; }
/* Cap height by the viewport (top bar 68px + bottom padding 24px): a percentage max-height
   doesn't resolve here, so tall photos used to overflow and get cropped on wide screens. */
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); object-fit: contain; border-radius: 6px; user-select: none; }
@media (max-width: 640px) { .lb-stage img, .lb-stage video { max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); } }
.lb-stage img.zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.lb-stage.zoomable { overflow: auto; place-items: start center; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px 16px; } .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } }
body.lb-lock { overflow: hidden; }

/* Documents (care guide + agreements) */
.doc-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.doc-card { display: flex; flex-direction: column; gap: 6px; padding: 28px 26px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dccbb0; }
.doc-card h3 { font-size: 1.6rem; margin: 2px 0 2px; }
.doc-card p { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.doc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 10px; }
.doc-icon svg { width: 24px; height: 24px; }
.doc-card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; }
.doc-grid--small .doc-card { padding: 22px; }
.doc-grid--small .doc-card h3 { font-size: 1.35rem; }
.doc-disclaimer { margin: 32px 0 0; font-size: .92rem; color: var(--muted); max-width: 680px; }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 56px; }
.doc-layout--single { grid-template-columns: minmax(0, 1fr); }
.doc-layout--single .doc-paper { margin: 0 auto; }
.doc-toc { position: sticky; top: 96px; font-size: .9rem; max-height: calc(100vh - 120px); overflow: auto; }
.doc-toc ol { list-style: none; margin: 10px 0 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.doc-toc a:hover { color: var(--ink); box-shadow: inset 2px 0 0 var(--gold); }
.doc-paper { max-width: 780px; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 60px); box-shadow: 0 1px 2px rgba(42,34,29,.04), 0 18px 50px rgba(42,34,29,.06); }
.doc-paper h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin: 8px 0 4px; }
.doc-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc-actions .btn svg { width: 16px; height: 16px; }
.doc-meta { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.doc-note { margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; background: var(--gold-soft); color: #5e4320; font-size: .95rem; border-left: 3px solid var(--gold); }
.doc-note p:last-child { margin-bottom: 0; }
.doc-note--sample { background: #eeebf5; color: var(--royal); border-left-color: var(--royal); }
.doc-body { font-size: 1.02rem; line-height: 1.75; }
.doc-body h2 { font-size: 1.65rem; margin: 2em 0 .6em; padding-top: .9em; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body hr + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.doc-body h4 { font-family: var(--body); font-size: 1rem; font-weight: 500; margin: 1.4em 0 .4em; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.doc-body li { margin: .35em 0; }
.doc-body ul li::marker { color: var(--gold); }
.doc-body strong { font-weight: 500; color: var(--ink); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.doc-body a { color: var(--gold-deep); }
.blank { display: inline-block; min-width: 150px; border-bottom: 1px solid #b9ab98; height: 1.1em; vertical-align: baseline; margin: 0 2px; }
.cbox { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid #9a8b77; border-radius: 4px; margin-right: 8px; vertical-align: -3px; font-size: 12px; line-height: 1; color: #fff; }
.cbox.on { background: var(--royal); border-color: var(--royal); }
.doc-more { padding: 8px 0 72px; }
.doc-more h2 { font-size: 1.8rem; margin-bottom: 20px; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; max-height: none; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
}
@media print {
  .site-header, .site-footer, .doc-toc, .crumbs, .doc-actions .btn, .doc-more, .cmodal, .lightbox { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .doc-layout { display: block; padding: 0; }
  .doc-paper { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .doc-body { font-size: 11pt; line-height: 1.55; }
  .doc-body h2 { break-after: avoid; }
  .doc-note { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none; }
}

/* Text / Call pop-up */
.cmodal { position: fixed; inset: 0; z-index: 110; background: rgba(28, 22, 18, .55); display: grid; place-items: center; padding: 16px; animation: cm-fade .15s ease-out; }
.cmodal[hidden] { display: none; }
.cmodal-card { position: relative; width: min(420px, 100%); background: var(--paper); border-radius: 22px; padding: 36px 28px 28px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: cm-pop .2s ease-out; }
.cmodal-card .eyebrow { justify-content: center; margin-bottom: .4rem; }
.cmodal-card .eyebrow::before { display: none; }
.cmodal-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); }
.cmodal-icon svg { width: 26px; height: 26px; }
.cmodal-number { font-size: clamp(2.1rem, 8vw, 2.6rem); margin: 0 0 .35em; letter-spacing: .01em; user-select: all; }
.cmodal-card > p.muted { font-size: .95rem; margin-bottom: 1.4rem; }
.cmodal-actions { justify-content: center; }
.cmodal-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cmodal-x:hover { background: var(--cream); color: var(--ink); }
.cmodal-x svg { width: 20px; height: 20px; }
.cmodal-msg { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); text-align: left; }
.cmodal-msg small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cmodal-msg p { margin: 0 0 10px; font-size: .95rem; }
.cmodal-alt { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.btn--sm { padding: .6em 1.1em; font-size: .85rem; }
@keyframes cm-fade { from { opacity: 0; } }
@keyframes cm-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

.notice { padding: 14px 18px; border-radius: 12px; background: var(--warn-soft); color: var(--gold-deep); font-size: .92rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
