/* ==========================================================================
   Option C skin for every page built from the live embeds (guides, tools, practice pages, legal,
   language pages, contact, files). Loaded last, after the page's own embed CSS. Selectors carry one
   more class than the embed CSS (body.c), so they win without touching the page markup.
   ========================================================================== */
html body.c{background:var(--bone)}
/* Header sits on a solid ink bar above inner-page heroes (the hero box keeps its 16:9 frame). */
body.c.page-inner:not(.wsite-page-blog):not(.is-scrolled):not(.menu-open) .site-header{background:var(--ink);border-bottom-color:rgba(201,168,106,.22)}

/* ---------- base type inside the embeds ---------- */
html body.c div.vd:not(#vd-x){background:var(--bone);font-size:17px!important;color:var(--text)!important}
html body.c div.vd:not(#vd-x) h1,html body.c div.vd:not(#vd-x) h2,html body.c div.vd:not(#vd-x) h3{font-weight:500!important;letter-spacing:-.012em!important;text-wrap:balance}
html body.c div.vd:not(#vd-x) h2{font-size:clamp(36px,3.9vw,56px)!important;line-height:1.06!important}
html body.c div.vd:not(#vd-x) h3{font-weight:600!important;line-height:1.2!important}
html body.c div.vd:not(#vd-x) .head{max-width:880px}
html body.c div.vd:not(#vd-x) .lede{font-size:18px!important}

/* eyebrow: gold rule + tracked caps */
html body.c div.vd:not(#vd-x) .eyebrow{display:flex;align-items:center;gap:14px;font-size:11.5px!important;font-weight:700!important;letter-spacing:.24em!important;text-transform:uppercase!important;color:var(--gold-deep)!important}
html body.c div.vd:not(#vd-x) .eyebrow::before{content:"";flex:0 0 36px;height:1px;background:currentColor;opacity:.7}
html body.c div.vd:not(#vd-x) .center .eyebrow,html body.c div.vd:not(#vd-x) .eyebrow[style*="center"]{justify-content:center}

/* buttons: square, tracked caps, gold / ink / outline, wipe on hover */
html body.c div.vd:not(#vd-x) .btn{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:16px 30px!important;border-radius:0!important;
  font-size:12px!important;font-weight:700!important;letter-spacing:.18em!important;overflow:hidden;isolation:isolate;transition:color .35s var(--ease),border-color .35s var(--ease),background-color .35s var(--ease)}
html body.c div.vd:not(#vd-x) .btn::after{content:"";position:absolute;inset:0;z-index:-1;transform:scaleX(0);transform-origin:right;transition:transform .5s var(--ease)}
html body.c div.vd:not(#vd-x) .btn:hover::after{transform:scaleX(1);transform-origin:left}
html body.c div.vd:not(#vd-x) .btn-brass{background:var(--gold)!important;color:var(--ink)!important;border-color:var(--gold)!important}
html body.c div.vd:not(#vd-x) .btn-brass::after{background:var(--gold-soft)}
html body.c div.vd:not(#vd-x) .btn-navy{background:var(--ink)!important;color:var(--bone)!important;border-color:var(--ink)!important}
html body.c div.vd:not(#vd-x) .btn-navy::after{background:var(--ink-3)}
html body.c div.vd:not(#vd-x) .btn-line{background:transparent!important;border-color:rgba(255,255,255,.5)!important;color:#fff!important}
html body.c div.vd:not(#vd-x) .btn-line::after{background:#fff}
html body.c div.vd:not(#vd-x) .btn-line:hover{color:var(--ink)!important}
html body.c div.vd:not(#vd-x) .btn-outline{background:transparent!important;border-color:var(--ink)!important;color:var(--ink)!important}
html body.c div.vd:not(#vd-x) .btn-outline::after{background:var(--ink)}
html body.c div.vd:not(#vd-x) .btn-outline:hover{color:var(--bone)!important}
html body.c div.vd:not(#vd-x) .text-link{color:var(--ink)!important;border-bottom:1px solid var(--gold)!important;letter-spacing:.14em!important}

/* section surfaces */
html body.c div.vd:not(#vd-x) .section,html body.c div.vd:not(#vd-x) section.sec{background-color:var(--bone)}
html body.c div.vd:not(#vd-x) .ivory{background:var(--parch)!important}
html body.c div.vd:not(#vd-x) .navy,html body.c div.vd:not(#vd-x) .cta-band{background:var(--ink)!important;position:relative}
html body.c div.vd:not(#vd-x) .navy::before,html body.c div.vd:not(#vd-x) .cta-band::before{content:"";position:absolute;left:0;right:0;top:0;height:18px;background:var(--meander) repeat-x 0 0/18px 18px;opacity:.2;pointer-events:none}
html body.c div.vd:not(#vd-x) .navy .eyebrow,html body.c div.vd:not(#vd-x) .cta-band .eyebrow{color:var(--gold)!important}
html body.c div.vd:not(#vd-x) .cta-band h2{font-size:clamp(32px,3.4vw,48px)!important}

/* ---------- photo heroes (frame/crop rules stay in heroes.css) ---------- */
html body.c div.vd:not(#vd-x) section.page-hero,html body.c div.vd:not(#vd-x) section.hero{position:relative;background-color:var(--ink)!important}
html body.c div.vd:not(#vd-x) section.page-hero::after,html body.c div.vd:not(#vd-x) section.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:18px;background:var(--meander) repeat-x 0 0/18px 18px;opacity:.24;pointer-events:none}
html body.c div.vd:not(#vd-x) section.page-hero .eyebrow,html body.c div.vd:not(#vd-x) section.hero .eyebrow{color:var(--gold)!important}
html body.c div.vd:not(#vd-x) section.page-hero h1,html body.c div.vd:not(#vd-x) section.hero h1{color:var(--bone)!important;font-size:clamp(44px,4.6vw,76px)!important;line-height:1.02!important;letter-spacing:-.02em!important;max-width:16ch;font-weight:500!important}
html body.c div.vd:not(#vd-x) section.page-hero .lede,html body.c div.vd:not(#vd-x) section.hero .lede{color:rgba(251,248,242,.82)!important;font-size:18px!important;max-width:580px}
/* guide / tool heroes drawn in SVG: ink with a soft gold glow */
html body.c div.vd:not(#vd-x) .page-hero.gd-hero{background:radial-gradient(60% 80% at 82% 30%,rgba(201,168,106,.16),transparent 70%),linear-gradient(180deg,var(--ink) 0%,var(--ink-2) 100%)!important}
html body.c div.vd:not(#vd-x) .gd-hero .hero-ic,html body.c div.vd:not(#vd-x) .gd-hero .hero-ic svg{color:var(--gold-soft)!important}
html body.c div.vd:not(#vd-x) .gd-hero .meta{color:rgba(251,248,242,.72)!important}

/* ---------- cards ---------- */
html body.c div.vd:not(#vd-x) :is(.gcard,.kf .k,a.feature,.tool,.vd-work-card,.quote-card){border-radius:0!important;transition:transform .5s var(--ease),box-shadow .5s var(--ease),border-color .3s}
html body.c div.vd:not(#vd-x) .gcard{border-color:var(--line)!important;padding:32px 30px 28px}
html body.c div.vd:not(#vd-x) .gcard:hover{transform:translateY(-6px);box-shadow:0 30px 60px -30px rgba(10,20,36,.35);border-color:var(--gold-line)!important}
html body.c div.vd:not(#vd-x) .gcard h3{font-size:24px!important;line-height:1.15!important}
html body.c div.vd:not(#vd-x) .gcard .cic,html body.c div.vd:not(#vd-x) .kf .k .kic{background:transparent!important;border:1px solid var(--gold);color:var(--gold-deep)!important}
html body.c div.vd:not(#vd-x) .gcard .go{border-top:1px solid var(--line);padding-top:16px}
html body.c div.vd:not(#vd-x) .kf .k{border-color:var(--line)!important;border-top:2px solid var(--gold)!important}
html body.c div.vd:not(#vd-x) .kf .k h3{font-size:22px!important}

/* ---------- long-form guides ---------- */
html body.c div.vd:not(#vd-x) .toc{border-left-color:var(--gold-line)!important}
html body.c div.vd:not(#vd-x) .toc li a:before{font-style:italic;font-size:15px!important}
html body.c div.vd:not(#vd-x) .gsec{border-bottom-color:var(--line)!important}
html body.c div.vd:not(#vd-x) .gsec .sh .n{font-style:italic!important;font-size:22px!important;color:var(--gold-deep)!important}
html body.c div.vd:not(#vd-x) .gsec h2{font-size:clamp(30px,2.9vw,42px)!important}
html body.c div.vd:not(#vd-x) .gsec h3{font-size:24px!important}
html body.c div.vd:not(#vd-x) table.gt th{background:var(--ink)!important;color:var(--gold-soft)!important}
html body.c div.vd:not(#vd-x) table.gt tr.total td{border-top-color:var(--gold)!important;background:var(--parch)!important}
html body.c div.vd:not(#vd-x) :is(.tip,.important,.callout,.note,.vd-lawbox){border-radius:0!important}
html body.c div.vd:not(#vd-x) .vd-answer{border-left:2px solid var(--gold)!important;border-radius:0!important}
html body.c div.vd:not(#vd-x) .faq .q h3{font-size:24px!important}
html body.c div.vd:not(#vd-x) .faq .q h3 .qm{font-family:var(--serif)!important;color:var(--gold-deep)!important}
html body.c div.vd:not(#vd-x) details.src{border-radius:0!important}

/* ---------- forms (contact, language pages): square fields, gold focus ---------- */
html body.c .va-form input[type="text"],html body.c .va-form input[type="email"],html body.c .va-form input[type="tel"],
html body.c .va-form select,html body.c .va-form textarea{border-radius:0!important;border-color:var(--sand)!important;background:#fff!important;font-family:var(--sans)!important}
html body.c .va-form :is(input,select,textarea):focus{outline:none!important;border-color:var(--gold-deep)!important;box-shadow:0 0 0 3px rgba(201,168,106,.28)!important}
html body.c .va-form-label{font-family:var(--sans)!important;color:var(--ink)!important;letter-spacing:.02em}
html body.c .va-form-submit{border-radius:0!important;background:var(--ink)!important;color:var(--gold-soft)!important;letter-spacing:.06em!important;font-size:15px!important;font-weight:700!important;min-height:52px;padding:16px 34px!important;border:1px solid var(--ink)!important}
html body.c .va-form-submit:hover{background:var(--gold)!important;color:var(--ink)!important;border-color:var(--gold)!important}
html body.c .va-form-preview-note{background:var(--parch)!important;border-left-color:var(--gold)!important}

/* ---------- phones: 24px side insets everywhere ---------- */
@media (max-width:900px){
  html body.c div.vd:not(#vd-x) section.page-hero h1,html body.c div.vd:not(#vd-x) section.hero h1{font-size:clamp(36px,9.6vw,52px)!important;max-width:none}
  html body.c div.vd:not(#vd-x) section.page-hero .lede,html body.c div.vd:not(#vd-x) section.hero .lede{font-size:16px!important}
  html body.c div.vd:not(#vd-x) .btn{width:auto}
}
@media (max-width:600px){
  html body.c div.vd:not(#vd-x) .wrap{width:calc(100% - 48px)!important}
  html body.c div.vd:not(#vd-x) .actions .btn{width:100%}
  html body.c div.vd:not(#vd-x) h2{font-size:clamp(32px,8.6vw,40px)!important}
}
@media (orientation:landscape) and (max-height:540px){
  html body.c div.vd:not(#vd-x) section.page-hero:not(.gd-hero) h1,html body.c div.vd:not(#vd-x) section.hero:not(.gd-hero) h1{font-size:30px!important;line-height:1.1!important}
  html body.c div.vd:not(#vd-x) section.page-hero:not(.gd-hero) .lede,html body.c div.vd:not(#vd-x) section.hero:not(.gd-hero) .lede{font-size:15px!important}
}

/* Guides: shallow phone-landscape viewports keep the title, lede and buttons in the first screen */
@media (orientation:landscape) and (max-height:540px){
  html body.c div.vd:not(#vd-x) section.page-hero.gd-hero h1{font-size:34px!important;line-height:1.08!important}
  html body.c div.vd:not(#vd-x) section.page-hero.gd-hero .lede{font-size:15px!important}
}
/* Language homepages: long Greek/Arabic/Chinese/etc. titles at a calmer size than the English display size */
html body.c div.vd.vd-lang:not(#vd-x) section.hero:not(.gd-hero) h1,
html body.c div.vd.vd-lang:not(#vd-x) section.page-hero:not(.gd-hero) h1{font-size:clamp(36px,3.5vw,58px)!important;line-height:1.1!important}
@media (orientation:landscape) and (max-height:540px){
  html body.c div.vd.vd-lang:not(#vd-x) section.hero:not(.gd-hero) h1,
  html body.c div.vd.vd-lang:not(#vd-x) section.page-hero:not(.gd-hero) h1{font-size:28px!important}
}
/* Hidden file index: Square's 4-column table stacks on phones instead of widening the page */
@media (max-width:600px){
  html body.wsite-page-files.c .wsite-multicol-table,html body.wsite-page-files.c .wsite-multicol-tbody,html body.wsite-page-files.c .wsite-multicol-tr,html body.wsite-page-files.c .wsite-multicol-col{display:block!important;width:100%!important;box-sizing:border-box}
  html body.wsite-page-files.c .wsite-multicol-col{padding:0!important}
  html body.wsite-page-files.c .wsite-multicol-table-wrap{margin:0!important}
}
