/* The Vein Guide — main stylesheet */
/* Colours are NOT set here. They come from the theme chosen in site.yaml
   (themes.yaml → /assets/css/theme.css). Only layout tokens live here. */
:root {
  --warn-bg: #fff6e5;
  --warn-line: #e8a33a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29, 40, 34, .06), 0 10px 28px rgba(29, 40, 34, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--primary); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.3rem; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--accent); transition: background .15s, border-color .15s; font-size: 1rem; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { background: var(--tint); color: var(--primary); border-color: var(--primary); }
.btn--small { padding: 7px 16px; font-size: .92rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link--light { color: var(--on-dark-accent); }
.text-link--light:hover { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--primary); text-decoration: none; white-space: nowrap; }
.brand--light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--primary); background: var(--tint); }
.site-nav ul a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-search { display: inline-flex; padding: 8px; color: var(--primary); border-radius: 8px; }
.nav-search:hover { background: var(--tint); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--primary); cursor: pointer; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.05rem; }
  .site-nav ul a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 8px 8px 0; }
  .nav-actions { justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
}

/* Generic sections */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section--primary { background: var(--primary); color: var(--on-dark-text); }
.section--primary h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--ink-2); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 20px; flex-wrap: wrap; }
.section-title { font-size: 1.5rem; margin-bottom: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .6em; }
.eyebrow--light { color: var(--on-dark-accent); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 68ch; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--hero-from) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--accent); }
.hero-art { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.hero-photo { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--accent-soft); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-chip { position: absolute; background: #fff; color: var(--primary); font-weight: 600; font-size: .95rem; padding: 10px 16px; border-radius: 12px; box-shadow: 0 6px 18px rgba(15, 30, 60, .18); }
.hero-chip--top { top: 18%; right: 14px; }
.hero-chip--bottom { bottom: 12%; left: 14px; }
.hero-art figcaption { font-size: .72rem; color: var(--muted); margin-top: 8px; text-align: right; }
.hero-art figcaption a { color: inherit; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 360px; justify-self: center; } }
@media (max-width: 560px) { .hero-art { display: none; } .hero { padding: 40px 0; } }

/* Pillar cards (match the content-pillar style: white card, teal left rule) */
.pillar-card { position: relative; display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 24px 30px; text-decoration: none; color: var(--ink); border-left: 6px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.pillar-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,30,60,.08), 0 14px 30px rgba(20,30,60,.1); color: var(--ink); }
.pillar-card h3 { color: var(--primary); margin: 14px 0 6px; font-size: 1.2rem; }
.pillar-card p { color: var(--ink-2); font-size: .98rem; margin: 0 0 10px; }
.pillar-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); }
.pillar-icon--lg { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 16px; }
.pillar-num { position: absolute; top: 22px; right: 24px; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #7a8398; }
.card-meta { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Article cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { font-family: var(--serif); font-size: 1.25rem; margin: 6px 0 8px; }
.card h3 a { color: var(--primary); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card--article { position: relative; transition: border-color .15s, box-shadow .15s; }
.card--article:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card p { color: var(--ink-2); font-size: .98rem; flex: 1; }
.card-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); font-weight: 700; }

/* Tool band */
.tool-band { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--accent-soft); border-radius: 20px; padding: 36px 40px; }
.tool-band h2 { margin-bottom: .3em; }
.tool-band p { margin: 0; color: var(--ink-2); }
.tool-band-icon { width: 72px; height: 72px; border-radius: 18px; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .tool-band { grid-template-columns: 1fr; padding: 28px; } }

/* Reviewer band */
.reviewer-band { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; max-width: 900px; }
.reviewer-avatar { width: 112px; height: 112px; border-radius: 50%; background: var(--primary-2); border: 3px solid var(--ring); color: var(--on-dark-accent); display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .reviewer-band { grid-template-columns: 1fr; } }

.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.promise-grid h3 { color: var(--primary); border-top: 3px solid var(--accent); padding-top: 14px; }
.promise-grid p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promise-grid { grid-template-columns: 1fr; } }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #aab1c2; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Pillar & page heroes */
.pillar-hero, .page-hero, .article-hero { background: var(--tint); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.pillar-hero .lede { margin-bottom: 0; }

/* Article */
.kicker { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); text-decoration: none; margin-bottom: 10px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.byline { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; font-size: .92rem; color: var(--muted); }
.byline p { margin: 0 0 4px; }
.byline-review { display: flex; align-items: flex-start; gap: 6px; color: var(--accent-dark); font-weight: 600; }
.byline-review svg { flex: none; margin-top: 3px; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 56px; justify-content: center; padding-top: 44px; padding-bottom: 64px; }
.article-aside { position: relative; }
.toc { position: sticky; top: 92px; font-size: .92rem; border-left: 2px solid var(--line); padding-left: 16px; }
.toc h2 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 8px; line-height: 1.35; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--accent-dark); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .article-aside { display: none; } }

/* Prose */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.9em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.5em; color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 120px; }
.prose thead th { background: var(--primary); color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--tint); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink-2); }
.page-prose { padding: 40px 0 64px; }

.takeaways { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 26px 10px; margin-bottom: 32px; }
.takeaways h2 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-dark); margin: 0 0 10px; }
.takeaways ul { margin: 0 0 12px; }

.callout { border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0; background: var(--tint); border-left: 5px solid var(--primary); }
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--primary); }
.callout--warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.callout--accent { background: var(--accent-soft); border-left-color: var(--accent); }

.myth { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 1.2em 0; }
.myth h3 { margin-top: 0; font-family: var(--serif); font-size: 1.2rem; }
.myth .verdict { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.verdict--myth { background: #fde8e8; color: #a12a2a; }
.verdict--partly { background: var(--warn-bg); color: #8a5a07; }
.myth > :last-child { margin-bottom: 0; }

.faqs { margin-top: 2.4em; }
.faq { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--primary); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq > div { padding: 0 20px 6px; color: var(--ink-2); }

.consult { display: grid; grid-template-columns: auto 1fr; gap: 20px; background: var(--primary); color: var(--on-dark-text); border-radius: 16px; padding: 28px; margin: 2.4em 0; }
.consult h2 { color: #fff; margin: 0 0 .3em; font-size: 1.4rem; }
.consult-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary-2); color: var(--on-dark-accent); display: flex; align-items: center; justify-content: center; }
.consult-links { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin: 14px 0 0; }
.consult-links a:not(.btn) { color: var(--on-dark-accent); }
@media (max-width: 560px) { .consult { grid-template-columns: 1fr; } }

.sources { margin-top: 2.4em; font-size: .92rem; color: var(--ink-2); }
.sources h2 { font-size: 1.15rem; font-family: var(--sans); }
.sources li { margin-bottom: .3em; }
.article-disclaimer { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2em; }
.related { background: var(--tint); padding: 56px 0; }

/* Glossary */
.glossary-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.glossary-index a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: var(--tint); text-decoration: none; font-weight: 700; color: var(--primary); }
.glossary-index a:hover { background: var(--accent); color: #fff; }
.prose dl dt { font-weight: 700; color: var(--primary); margin-top: 1em; }
.prose dl dd { margin: 4px 0 0; color: var(--ink-2); }

/* Vein check tool */
.vc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); margin: 1.6em 0; }
.vc fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.vc legend { font-weight: 700; color: var(--primary); margin-bottom: 10px; font-size: 1.05rem; }
.vc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-options label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: .98rem; }
.vc-options input { accent-color: var(--accent); }
.vc-options label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.vc-progress { height: 6px; background: var(--line); border-radius: 99px; margin-bottom: 24px; overflow: hidden; }
.vc-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.vc-result { display: none; border-radius: 14px; padding: 24px; margin-top: 10px; }
.vc-result.is-shown { display: block; }
.vc-result h3 { font-family: var(--serif); font-size: 1.35rem; margin-top: 0; }
.vc-result--low { background: var(--accent-soft); }
.vc-result--mid { background: #eef1fb; }
.vc-result--high { background: var(--warn-bg); }
.vc-result--urgent { background: #fde8e8; }

/* Search */
.search-box { display: flex; gap: 10px; margin: 8px 0 28px; }
.search-box input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; }
.search-box input:focus { border-color: var(--accent); outline: none; }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 700; font-size: 1.1rem; }
.search-results small { display: block; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .72rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #b9c2dc; padding: 56px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-grid h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-grid li a { display: inline-block; padding: 4px 0; min-height: 28px; }
.site-footer a { color: #d4dbef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-legal { border-top: 1px solid var(--footer-line); padding-top: 22px; padding-bottom: 28px; font-size: .85rem; color: #a7b1cf; }
.footer-legal p { margin-bottom: 8px; }
.footer-legal a { text-decoration: underline; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .search-box .btn { padding: 12px 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .prose { font-size: 1.03rem; }
}

@media print {
  .site-header, .site-footer, .article-aside, .related, .consult, .nav-toggle { display: none !important; }
  .article-layout { display: block; }
}

/* Article images */
.article-figure { margin-top: 28px; margin-bottom: 4px; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: var(--tint); }
.article-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.article-figure figcaption a { color: inherit; }
.card--has-img { padding: 0; overflow: hidden; }
.card--has-img > :not(.card-img) { margin-left: 24px; margin-right: 24px; }
.card--has-img .card-img { width: calc(100% + 0px); margin-left: 0; margin-right: 0; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-bottom: 16px; }
.card--has-img .card-meta { margin-bottom: 22px; }


/* =====================================================================
   Editorial layer: masthead, homepage, footer statement
   ===================================================================== */
em { font-style: italic; }
h1 em { color: var(--accent); font-weight: 500; }
h2 em { color: var(--accent-dark); font-weight: 500; }
.btn { background: var(--button); border-color: var(--button); box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--button) 75%, transparent); }
.btn:hover { background: var(--button-hover); border-color: var(--button-hover); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); box-shadow: none; }
.btn--ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.link-u { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 3px; }
.link-u:hover { color: var(--accent-dark); }
.kick { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); }
.kick::before { content: ""; width: 40px; height: 1.5px; background: var(--accent); }

/* Masthead + menu bar */
.topbar { border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; letter-spacing: .03em; }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 22px; }
.mast-name { display: block; text-align: center; font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--primary); text-decoration: none; letter-spacing: -.03em; }
.mast-name small { display: block; margin-top: 10px; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-dark); }
.mast-side { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.mast-side--r { text-align: right; }
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; letter-spacing: -.02em; }
@media (min-width: 1081px) {
  .site-header .brand { display: none; }
  .header-inner { justify-content: center; min-height: 58px; }
  .site-nav { gap: 34px; }
  .site-nav ul { gap: 6px; }
  .site-nav ul a { text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; padding: 10px 12px; background: none !important; box-shadow: none !important; }
  .site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--accent-dark); }
}
@media (max-width: 1080px) {
  .topbar, .masthead { display: none; }
  .site-header { border-top: 0; }
  .site-nav { background: var(--bg); }
}

/* Hero with photo collage */
.hero { padding: 72px 0 104px; background: var(--bg); border-bottom: 0; }
.hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.3rem); line-height: 1.02; margin: 0 0 26px; }
.hero .lede { font-size: 1.2rem; max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 38px 0 0; flex-wrap: wrap; }
.collage { position: relative; height: 660px; }
.arch { position: absolute; right: 0; top: 0; width: 78%; height: 100%; border-radius: 999px 999px 22px 22px; overflow: hidden; box-shadow: 0 34px 60px -24px color-mix(in srgb, var(--primary) 55%, transparent); }
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sq { position: absolute; left: 30px; top: 56px; width: 142px; height: 180px; border-radius: 14px; overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--primary) 55%, transparent); }
.round { position: absolute; left: 0; bottom: 66px; width: 214px; height: 214px; border-radius: 50%; overflow: hidden; border: 8px solid var(--bg); box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--primary) 55%, transparent); }
.sq img, .round img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stamp { position: absolute; right: -10px; bottom: 44px; width: 134px; height: 134px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 18px; background: var(--panel); color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.15; transform: rotate(-10deg); box-shadow: 0 18px 30px -14px rgba(60, 30, 15, .5); }

.ticker { background: var(--primary); color: var(--on-dark-text); padding: 20px 0; overflow: hidden; }
.ticker .wrap { display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.ticker span::before { content: "\2726  "; color: var(--on-dark-accent); font-style: normal; font-size: .85rem; }

.section { padding: 104px 0; }
.section--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1.5px solid var(--ink); padding-bottom: 18px; margin-bottom: 52px; }
.sh h2 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.05; }
.sh span { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Start here */
.spot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.spot-im { position: relative; display: block; }
.spot-im img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 34px 60px -28px color-mix(in srgb, var(--primary) 55%, transparent); }
.spot-tag { position: absolute; left: -16px; top: 34px; background: var(--primary); color: #fff; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding: 10px 18px; }
.spot h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; margin: 0 0 18px; }
.spot h3 a { color: inherit; text-decoration: none; }
.spot p { color: var(--ink-2); font-size: 1.08rem; }
.spot .meta { font-size: .88rem; margin: 20px 0 26px; }
.spot .kick { font-size: .74rem; color: var(--accent-dark); margin-bottom: 18px; }
.spot .meta b { color: var(--primary); }
.jg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 80px; }
.j { display: block; text-decoration: none; color: var(--ink); }
.j-im { overflow: hidden; border-radius: 16px; background: var(--tint); }
.j-im img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .4s; }
.j:hover .j-im img { transform: scale(1.04); }
.j-cat { margin: 18px 0 8px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); }
.j h3 { font-size: 1.4rem; line-height: 1.15; margin: 0; color: var(--primary); }
.j-meta { margin-top: 10px; font-size: .82rem; color: var(--muted); font-weight: 500; }

/* Quote band */
.qband { position: relative; color: #fff; overflow: hidden; background: var(--footer-bg); }
.qband-bg { position: absolute; inset: 0; }
.qband-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--footer-bg) 80%, transparent), color-mix(in srgb, var(--footer-bg) 92%, transparent)); }
.qband .wrap { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 140px; text-align: center; }
.qband blockquote { margin: 0 auto; max-width: 980px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; }
.qband blockquote em { color: var(--on-dark-accent); }
.qband cite { display: block; margin-top: 30px; font-style: normal; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--on-dark-text); opacity: .85; }

/* Six sections index */
.idx { display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; }
.row { display: grid; grid-template-columns: 92px 64px minmax(0, 1fr) 40px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:hover .row-go { background: var(--primary); color: #fff; }
.row-img img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; display: block; }
.row-img { background: none; }
.row-no { font-family: var(--serif); font-style: italic; font-size: 2.1rem; color: var(--accent); }
.row-tx h3 { font-size: 1.55rem; margin: 0; }
.row-tx p { color: var(--ink-2); font-size: .96rem; margin: 4px 0 0; line-height: 1.45; }
.row-go { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--primary); color: var(--primary); display: grid; place-items: center; transition: .2s; }

/* Vein check panel */
.check { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 28px; overflow: hidden; box-shadow: 0 34px 60px -30px color-mix(in srgb, var(--primary) 55%, transparent); }
.check-l { background: linear-gradient(160deg, var(--panel), color-mix(in srgb, var(--panel) 88%, #4a2210)); color: #fff; padding: 76px 64px; }
.check-l .kick { color: rgba(255, 255, 255, .92); }
.check-l .kick::before { background: rgba(255, 255, 255, .85); }
.check-l h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 0 0 18px; }
.check-l h2 em { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.check-l p { font-size: 1.1rem; margin-bottom: 30px; }
.check-l .btn { background: var(--footer-bg); border-color: var(--footer-bg); }
.check-r { background: var(--footer-bg); padding: 64px; color: var(--on-dark-text); display: grid; align-content: center; }
.check-r .q { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid color-mix(in srgb, var(--on-dark-text) 18%, transparent); font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.check-r .q:last-child { border-bottom: 0; }
.check-r .q b { color: var(--on-dark-accent); font-style: italic; font-weight: 400; font-size: 1.5rem; }

/* Local context */
.local { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.local-im img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 999px 999px 22px 22px; display: block; box-shadow: 0 34px 60px -28px color-mix(in srgb, var(--primary) 55%, transparent); }
.local h2 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.05; margin: 0 0 18px; }
.local p { color: var(--ink-2); font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; margin: 34px 0 32px; }
.facts div { border-top: 2px solid var(--primary); padding-top: 14px; }
.facts b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--primary); margin-bottom: 4px; }
.facts span { color: var(--ink-2); font-size: .95rem; }

/* Principles + emergency note */
.pr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.pr > div { border-top: 3px solid var(--primary); padding-top: 20px; }
.pr-n { font-family: var(--serif); font-style: italic; color: var(--accent-dark); font-size: 1.35rem; }
.pr h3 { font-size: 1.55rem; margin: 6px 0 10px; }
.pr p { color: var(--ink-2); font-size: .98rem; }
.alert { margin-top: 64px; background: #fff; border-left: 6px solid var(--accent); padding: 26px 34px; display: flex; gap: 26px; align-items: center; border-radius: 8px; box-shadow: var(--shadow); }
.alert b { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--accent-dark); white-space: nowrap; }

/* Footer */
.site-footer { background: var(--footer-bg); color: color-mix(in srgb, var(--on-dark-text) 78%, transparent); padding: 96px 0 0; }
.footer-statement p { margin: 0 0 72px; max-width: 14em; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; color: #fff; }
.footer-statement em { color: var(--on-dark-accent); }
.footer-grid { padding-top: 0; }
.footer-grid::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--footer-line); margin-bottom: 14px; }
.footer-grid h2 { color: var(--on-dark-accent); font-size: .74rem; letter-spacing: .2em; }
.site-footer a { color: var(--on-dark-text); }
.footer-legal { color: color-mix(in srgb, var(--on-dark-text) 70%, transparent); }
.brand--light { color: #fff; }

/* Section pages and cards pick up the warmer look */
.pillar-card { border-left: 0; border: 1px solid var(--line); background: #fff; }
.pillar-card:hover { box-shadow: var(--shadow); }
.card { border-radius: 18px; }
.card--has-img { overflow: hidden; }
.pillar-hero, .page-hero, .article-hero { background: var(--tint); }

@media (max-width: 1000px) {
  .hero-grid, .spot, .local, .check { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 72px; }
  .collage { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .idx { grid-template-columns: 1fr; gap: 0; }
  .jg { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
  .pr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 72px 0; }
  .qband .wrap { padding-top: 96px; padding-bottom: 96px; }
  .check-l, .check-r { padding: 48px 36px; }
  .local { gap: 40px; }
}
@media (max-width: 640px) {
  .collage { height: 430px; }
  .round { width: 150px; height: 150px; bottom: 40px; border-width: 5px; }
  .sq { width: 100px; height: 128px; left: 10px; top: 36px; }
  .stamp { width: 104px; height: 104px; font-size: .82rem; right: 4px; bottom: 20px; padding: 12px; }
  .ticker .wrap { justify-content: center; font-size: 1.05rem; }
  .section { padding: 56px 0; }
  .sh { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 32px; }
  .spot { gap: 28px; }
  .spot-tag { left: 12px; }
  .jg { gap: 20px; }
  .j h3 { font-size: 1.1rem; }
  .row { grid-template-columns: 72px minmax(0, 1fr) 34px; gap: 14px; }
  .row-img img { width: 72px; height: 72px; }
  .row-no { display: none; }
  .row-tx h3 { font-size: 1.3rem; }
  .check-l, .check-r { padding: 36px 22px; }
  .check-r .q { grid-template-columns: 40px minmax(0, 1fr); font-size: 1.1rem; }
  .facts { grid-template-columns: 1fr; }
  .pr { grid-template-columns: 1fr; gap: 28px; }
  .alert { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
  .alert b { white-space: normal; }
  .site-footer { padding-top: 64px; }
  .footer-statement p { margin-bottom: 48px; }
}

.card--has-img .card-ph { aspect-ratio: 16 / 7; display: grid; place-items: center; margin-bottom: 16px; color: var(--accent-dark);
  background: radial-gradient(circle at 18% 120%, color-mix(in srgb, var(--accent) 22%, transparent) 0 38%, transparent 39%),
              radial-gradient(circle at 86% -30%, color-mix(in srgb, var(--primary) 14%, transparent) 0 42%, transparent 43%),
              var(--accent-soft); }
.card--has-img .card-ph svg { width: 44px; height: 44px; opacity: .85; }
