:root {
  --bg: #f6f3ec;
  --paper: #fffdf8;
  --paper-2: #fbf8f0;
  --ink: #17211d;
  --muted: #65736d;
  --line: rgba(23, 33, 29, .12);
  --green: #1f6b57;
  --green-dark: #174a3d;
  --sage: #dce8df;
  --sand: #eadcc6;
  --amber: #b9894b;
  --blue: #d8e7ea;
  --red-soft: #efe1da;
  --shadow: 0 24px 70px rgba(23, 33, 29, .10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(31, 107, 87, .12), transparent 34%),
    radial-gradient(circle at 95% 10%, rgba(184, 137, 75, .14), transparent 30%),
    var(--bg);
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.narrow { max-width: 900px; }
.skip-link { position: absolute; left: -999px; top: 12px; background: var(--green); color: #fff; padding: 10px 14px; border-radius: 12px; z-index: 99; }
.skip-link:focus { left: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .86); backdrop-filter: blur(16px); }
.topline { border-bottom: 1px solid rgba(23, 33, 29, .08); color: var(--muted); font-size: 13px; }
.topline-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-main { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: max-content; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px; background: linear-gradient(135deg, var(--green), #92b9a7); display: grid; place-items: center; color: #fff; font-weight: 900; letter-spacing: -.05em; box-shadow: 0 10px 24px rgba(31, 107, 87, .24); }
.brand-copy strong { display: block; font-size: 23px; line-height: 1; letter-spacing: -.05em; }
.brand-copy em { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); font-style: normal; text-transform: uppercase; letter-spacing: .055em; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 760; color: #33423c; }
.main-nav a { opacity: .9; }
.main-nav a:hover, .main-nav a.is-active { color: var(--green); opacity: 1; }
.nav-button { padding: 11px 16px; background: var(--green); color: #fff !important; border-radius: 999px; box-shadow: 0 12px 28px rgba(31, 107, 87, .18); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); width: 44px; height: 44px; border-radius: 14px; cursor: pointer; }
.hero-section { padding: 56px 0 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: 28px; align-items: stretch; }
.hero-copy, .hero-feature, .page-message, .prose-panel, .sidebar-card, .split-panel, .registry-preview { background: rgba(255, 253, 248, .86); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius-xl); }
.hero-copy { padding: clamp(30px, 5vw, 54px); position: relative; overflow: hidden; min-height: 545px; }
.hero-copy:after { content: ""; position: absolute; right: -22%; bottom: -38%; width: 540px; height: 330px; border-radius: 50%; background: rgba(31, 107, 87, .10); filter: blur(20px); }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-dark); font-size: 13px; font-weight: 850; background: rgba(220, 232, 223, .62); }
.eyebrow:before, .section-kicker:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.section-kicker { padding: 0; border: 0; background: transparent; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.section-kicker.light { color: rgba(255,255,255,.78); }
.section-kicker.light:before { background: rgba(255,255,255,.72); }
h1, h2, h3 { letter-spacing: -.04em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 24px 0 18px; font-size: clamp(42px, 6vw, 78px); line-height: .94; letter-spacing: -.065em; }
h2 { font-size: clamp(31px, 4vw, 50px); line-height: 1.02; margin: 0; }
h3 { line-height: 1.14; }
.hero-lead, .page-hero p { max-width: 720px; color: #4a5a53; font-size: 19px; line-height: 1.72; position: relative; z-index: 1; }
.search-box { margin-top: 34px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 22px; display: flex; gap: 10px; box-shadow: 0 14px 30px rgba(23, 33, 29, .06); max-width: 720px; position: relative; z-index: 1; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 15px 14px; background: transparent; color: var(--ink); }
.search-box button, .button { border: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; border-radius: 16px; padding: 14px 20px; font-weight: 850; cursor: pointer; box-shadow: 0 12px 28px rgba(31, 107, 87, .18); }
.button.large { padding: 17px 24px; border-radius: 20px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; position: relative; z-index: 1; }
.hero-stats div { border: 1px solid var(--line); border-radius: 20px; padding: 17px; background: rgba(251, 248, 240, .78); }
.hero-stats strong { display: block; font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.hero-stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.hero-feature { overflow: hidden; display: flex; flex-direction: column; }
.feature-image { display: block; background: var(--sage); }
.feature-image img { width: 100%; height: 300px; object-fit: cover; }
.feature-body { padding: 26px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.article-meta a { color: var(--green); }
.article-meta.big { font-size: 13px; margin-bottom: 18px; }
.feature-body h2 { font-size: 34px; margin: 10px 0 14px; }
.feature-body p, .article-card p, .article-row p, .sidebar-card p, .split-panel p, .registry-preview p { color: var(--muted); margin: 0; }
.section-pad { padding: 44px 0 54px; }
.section-pad-sm { padding: 26px 0 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.section-head p { max-width: 570px; color: var(--muted); margin: 0; }
.section-head.compact { align-items: center; }
.text-link { color: var(--green); font-weight: 850; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card { min-height: 172px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; transition: transform .18s ease, box-shadow .18s ease; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(23, 33, 29, .08); }
.topic-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px; background: var(--sage); color: var(--green-dark); font-weight: 900; }
.topic-card strong { font-size: 18px; letter-spacing: -.03em; }
.topic-card small { color: var(--muted); line-height: 1.45; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-grid.one-column { grid-template-columns: 1fr; gap: 16px; }
.article-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 18px 44px rgba(23, 33, 29, .07); transition: transform .18s ease, box-shadow .18s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 22px 56px rgba(23, 33, 29, .11); }
.article-image img { width: 100%; height: 210px; object-fit: cover; background: var(--sage); }
.article-card-body { padding: 20px; }
.article-card h3 { font-size: 22px; margin: 10px 0 10px; }
.article-card p { font-size: 15px; }
.article-row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: center; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 12px 36px rgba(23, 33, 29, .06); }
.row-image img { width: 190px; height: 140px; object-fit: cover; border-radius: 20px; background: var(--sage); }
.article-row h3 { font-size: 25px; margin: 8px 0 8px; }
.expert-band { padding: 18px 0 58px; }
.expert-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; border-radius: var(--radius-xl); padding: 34px; background: linear-gradient(135deg, var(--green-dark), #2f7f68); color: #fff; box-shadow: var(--shadow); overflow: hidden; }
.expert-visual img { border-radius: 28px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.expert-copy h2 { margin: 10px 0 18px; }
.expert-copy p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 660px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.trust-grid div { padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); font-weight: 800; }
.split-panel { padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.split-panel h2 { margin: 10px 0 14px; max-width: 730px; }
.split-panel p { max-width: 740px; }
.page-hero { padding: 62px 0 34px; }
.compact-hero { padding-bottom: 24px; }
.page-hero .container { background: rgba(255, 253, 248, .74); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); }
.page-hero h1 { font-size: clamp(40px, 5vw, 66px); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 26px 0 60px; align-items: start; }
.side-column { position: sticky; top: 122px; }
.sidebar-card { padding: 24px; border-radius: 26px; box-shadow: 0 14px 42px rgba(23,33,29,.07); }
.sidebar-card h3 { margin: 0 0 14px; font-size: 24px; }
.category-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.category-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(23,33,29,.08); color: #33423c; font-weight: 740; }
.category-list span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: var(--sage); color: var(--green-dark); }
.accent-card { background: linear-gradient(135deg, rgba(220,232,223,.9), rgba(255,253,248,.94)); }
.mini-search { display: grid; gap: 10px; margin-top: 18px; }
.mini-search input { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.mini-search button { border: 0; border-radius: 14px; padding: 12px 14px; background: var(--green); color: #fff; font-weight: 850; }
.page-message { padding: 34px; }
.page-message h1, .page-message h2 { margin: 0 0 10px; }
.article-hero { padding: 56px 0 34px; }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 30px; align-items: center; background: rgba(255, 253, 248, .80); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow); }
.article-hero h1 { font-size: clamp(38px, 5vw, 68px); }
.article-hero p { color: #4a5a53; font-size: 19px; line-height: 1.72; }
.article-hero-image img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 28px; background: var(--sage); border: 1px solid var(--line); }
.article-body-layout { display: grid; grid-template-columns: 270px minmax(0, 760px); gap: 34px; align-items: start; padding-bottom: 54px; }
.article-aside { position: sticky; top: 122px; display: grid; gap: 14px; }
.toc-card { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 12px 36px rgba(23,33,29,.06); }
.toc-card h3 { margin: 0 0 12px; }
.toc-card a { display: block; padding: 9px 0; color: var(--green-dark); font-weight: 760; border-bottom: 1px solid rgba(23,33,29,.08); }
.toc-card p { color: var(--muted); margin: 0; font-size: 14px; }
.muted-card { background: var(--paper-2); }
.article-content { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 46px); box-shadow: 0 18px 52px rgba(23,33,29,.07); }
.article-content h2 { font-size: clamp(28px, 3vw, 42px); margin: 34px 0 16px; }
.article-content section > h2:first-child { margin-top: 0; }
.article-content p { font-size: 18px; color: #384740; line-height: 1.82; }
.key-box { padding: 24px; border-radius: 24px; background: linear-gradient(135deg, rgba(220,232,223,.84), rgba(255,253,248,.9)); border: 1px solid var(--line); margin-bottom: 32px; }
.key-box ul, .article-list-check { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.key-box li, .article-list-check li { position: relative; padding-left: 30px; color: #33423c; }
.key-box li:before, .article-list-check li:before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(31,107,87,.12); }
.article-note { margin: 24px 0; padding: 18px 20px; border-radius: 20px; background: var(--red-soft); border: 1px solid rgba(130, 71, 50, .14); color: #62382d; font-weight: 680; }
.faq-section { margin-top: 36px; }
details { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 12px 0; background: var(--paper-2); }
summary { cursor: pointer; font-weight: 850; }
details p { margin-bottom: 0; }
.result-count { color: var(--muted); font-weight: 800; }
.prose-panel { padding: clamp(28px, 4vw, 44px); margin-bottom: 58px; }
.prose-panel h2 { margin-bottom: 16px; }
.prose-panel p { color: #384740; font-size: 18px; line-height: 1.82; }
.value-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value-grid div { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2); }
.value-grid strong { display: block; font-size: 20px; }
.value-grid span { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.registry-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 34px; align-items: center; }
.registry-preview h2 { margin: 10px 0 14px; }
.registry-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.registry-steps div { padding: 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; }
.registry-steps strong { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 12px; margin-bottom: 12px; }
.registry-steps span { font-weight: 780; }
.site-footer { margin-top: 26px; padding: 44px 0 24px; background: #13221c; color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 34px; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy em { color: rgba(255,255,255,.62); }
.site-footer p { max-width: 500px; color: rgba(255,255,255,.64); }
.site-footer h3 { color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.55); }
@media (max-width: 980px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 22px; right: 22px; top: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 12px; }
  .main-nav.is-open { display: flex; }
  .hero-grid, .article-hero-grid, .expert-card, .registry-preview, .contact-grid, .content-layout, .article-body-layout { grid-template-columns: 1fr; }
  .side-column, .article-aside { position: static; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .split-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .topline-date { display: none; }
  .hero-copy { min-height: auto; }
  .hero-stats, .topic-grid, .article-grid, .trust-grid, .value-grid, .footer-grid, .registry-steps { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .article-row { grid-template-columns: 1fr; }
  .row-image img { width: 100%; height: 210px; }
  .article-hero-image img, .feature-image img { height: auto; }
  .footer-bottom { flex-direction: column; }
  h1 { font-size: 42px; }
}

/* v2 additions: logo, imported WP content, separated registration/home-visit pages */
.brand-logo { width: 132px; max-height: 54px; object-fit: contain; }
.footer-brand .brand-logo { filter: brightness(1.08); }
.split-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.button.ghost, .secondary-action { background: transparent; color: var(--green-dark); border: 1px solid var(--line); box-shadow: none; }
.service-hero { padding: 58px 0 28px; }
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 26px; align-items: stretch; }
.service-hero-grid > div, .service-panel, .form-shell { background: rgba(255, 253, 248, .88); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.service-hero-grid > div { padding: clamp(30px, 5vw, 54px); }
.service-hero h1 { max-width: 760px; }
.service-hero p { max-width: 720px; color: #4a5a53; font-size: 19px; line-height: 1.72; }
.service-panel { padding: 30px; }
.service-panel h2 { font-size: 34px; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-action, .secondary-action, .sidebar-action { display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; padding: 14px 18px; font-weight: 850; }
.primary-action, .sidebar-action { background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(31, 107, 87, .18); }
.sidebar-action { width: 100%; margin-top: 10px; }
.sidebar-action.secondary { background: transparent; color: var(--green-dark); border: 1px solid var(--line); box-shadow: none; }
.home-visit-hero .service-hero-grid > div { background: linear-gradient(135deg, rgba(255,253,248,.94), rgba(220,232,223,.82)); }
.registration-hero .service-hero-grid > div { background: linear-gradient(135deg, rgba(255,253,248,.94), rgba(216,231,234,.72)); }
.split-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.muted-panel { background: rgba(251, 248, 240, .9); }
.warning-panel { background: linear-gradient(135deg, rgba(239,225,218,.92), rgba(255,253,248,.92)); }
.form-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; padding: clamp(28px, 4vw, 44px); align-items: start; }
.form-shell p { color: var(--muted); }
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 7px; color: #33423c; font-weight: 820; }
.lead-form input, .lead-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; background: #fff; color: var(--ink); outline: none; }
.lead-form input:focus, .lead-form textarea:focus { border-color: rgba(31,107,87,.45); box-shadow: 0 0 0 4px rgba(31,107,87,.10); }
.lead-form button { border: 0; border-radius: 16px; padding: 15px 18px; background: var(--green); color: #fff; font-weight: 900; cursor: pointer; }
.lead-form small { color: var(--muted); }
.service-card-small { background: linear-gradient(135deg, rgba(220,232,223,.82), rgba(255,253,248,.94)); }
.service-card-small a:last-child { border-bottom: 0; }
.imported-page-content h2, .imported-page-content h3 { margin-top: 26px; }
.imported-page-content h2:first-child, .imported-page-content h3:first-child { margin-top: 0; }
.imported-page-content ul, .imported-page-content ol { color: #384740; font-size: 18px; line-height: 1.75; }
.imported-page-content a { color: var(--green); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.imported-page-content img { border-radius: 22px; border: 1px solid var(--line); margin: 20px 0; }
.page-content-wrap { padding-bottom: 46px; }
.clean-list a { border-bottom: 1px solid rgba(23,33,29,.08); }
.clean-list span { display: none; }
.article-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--green); background: rgba(220,232,223,.55); border-radius: 16px; color: #33423c; }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 12px; vertical-align: top; }
.article-content th { background: var(--sage); text-align: left; }
.site-footer .footer-grid { grid-template-columns: 1.25fr .8fr .85fr .8fr; }
@media (max-width: 980px) {
  .service-hero-grid, .split-info-grid, .form-shell { grid-template-columns: 1fr; }
  .split-actions { justify-content: flex-start; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .brand-logo { width: 112px; }
  .brand-copy em { display: none; }
  .hero-actions, .split-actions { flex-direction: column; align-items: stretch; }
  .primary-action, .secondary-action, .button.large { width: 100%; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* v6 additions: clinic-only registration, home-visit source content, scroll top, counter, cookies */
.provider-card-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 22px; align-items: stretch; margin-top: 24px; }
.provider-card { background: rgba(255, 253, 248, .94); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); }
.provider-card h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.provider-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; }
.provider-meta span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(220, 232, 223, .42); font-weight: 820; color: #2e4038; }
.provider-notice { border-radius: 22px; padding: 18px 20px; background: linear-gradient(135deg, rgba(220,232,223,.76), rgba(255,253,248,.9)); border: 1px solid var(--line); color: #33423c; line-height: 1.65; }
.booking-frame { width: 100%; min-height: 820px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.external-service-content { margin-top: 22px; }
.external-service-content:empty { display: none; }
.service-note-line { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-weight: 900; margin-bottom: 14px; }
.visit-counter { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); }
.scroll-top { position: fixed; right: 22px; bottom: 24px; z-index: 80; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--green); color: #fff; font-size: 22px; font-weight: 900; box-shadow: 0 14px 34px rgba(31,107,87,.26); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--green-dark); }
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 100; padding: 0 18px; opacity: 0; transform: translateY(16px); transition: opacity .24s ease, transform .24s ease; }
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
.cookie-card { width: min(100%, 980px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid rgba(31,107,87,.22); border-radius: 24px; background: rgba(255, 253, 248, .96); box-shadow: 0 20px 60px rgba(23,33,29,.18); backdrop-filter: blur(10px); }
.cookie-card strong { display: block; color: var(--ink); margin-bottom: 5px; font-size: 17px; }
.cookie-card p { margin: 0; color: #53635b; line-height: 1.55; font-size: 14px; }
.cookie-actions { display: flex; gap: 10px; align-items: center; }
.cookie-actions a, .cookie-actions button { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; padding: 11px 14px; font-weight: 900; white-space: nowrap; }
.cookie-actions a { color: var(--green-dark); border: 1px solid var(--line); }
.cookie-actions button { border: 0; background: var(--green); color: #fff; cursor: pointer; }
@media (max-width: 980px) { .provider-card-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .cookie-card { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions a, .cookie-actions button { flex: 1; }
  .scroll-top { right: 16px; bottom: 18px; width: 44px; height: 44px; }
}


/* v7 fixes: cleaner logo lockup, no duplicate site name, proper sidebar spacing */
.brand-logo-only {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}
.brand-logo-only .brand-logo {
  width: 136px;
  max-height: 58px;
}
.brand-tagline {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .075em;
}
.footer-brand.brand-logo-only .brand-tagline {
  color: rgba(255,255,255,.64);
}
.side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}
.sidebar-card + .sidebar-card {
  margin-top: 0;
}
.compact-hero .container > p {
  display: none;
}
@media (max-width: 680px) {
  .brand-logo-only .brand-logo { width: 112px; }
  .brand-tagline { font-size: 10px; letter-spacing: .055em; }
}


/* v9 fix: information page hero width must match article/category hero width */
.page-hero .container.narrow {
  max-width: var(--max);
}


/* v10: cleaner city-first registration page with embedded WordPress booking form */
.registration-hero-single {
  padding-bottom: 24px;
}
.registration-hero-single .container {
  display: block;
}
.registration-main-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,253,248,.94), rgba(216,231,234,.76));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(30px, 5vw, 58px);
}
.registration-main-card h1 {
  max-width: 900px;
}
.registration-main-card > p {
  max-width: 820px;
  color: #4a5a53;
  font-size: 19px;
  line-height: 1.72;
}
.city-select-panel {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(31,107,87,.18);
  border-radius: 28px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 14px 36px rgba(23,33,29,.06);
}
.city-select-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: -.02em;
}
.city-select-row {
  display: grid;
  grid-template-columns: minmax(240px, 440px) auto;
  gap: 12px;
  align-items: center;
}
.city-select-row select {
  width: 100%;
  border: 1px solid rgba(31,107,87,.24);
  border-radius: 18px;
  padding: 15px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 820;
  outline: none;
  min-height: 54px;
}
.city-select-row select:focus {
  border-color: rgba(31,107,87,.54);
  box-shadow: 0 0 0 4px rgba(31,107,87,.10);
}
.city-select-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.registration-module-section {
  scroll-margin-top: 120px;
}
.registration-module-section[hidden] {
  display: none !important;
}
.booking-embed-shell {
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}
.booking-embed-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.booking-embed-head h2 {
  margin: 8px 0 10px;
}
.booking-embed-head p {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}
.provider-meta.compact {
  margin: 0;
  justify-content: flex-end;
}
.booking-plugin-frame {
  background: linear-gradient(135deg, rgba(248,250,248,.9), rgba(255,255,255,.92));
  border: 1px solid rgba(23,33,29,.08);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 30px);
}
.booking-plugin-frame .infovet-booking-form {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.booking-plugin-frame .infovet-booking-form .infovet-step,
.booking-plugin-frame .infovet-info-block,
.booking-plugin-frame .infovet-message {
  border-radius: 22px !important;
}
.booking-plugin-frame .infovet-booking-form .infovet-step {
  padding: 20px 22px;
  margin: 0 0 16px;
  background: rgba(255,253,248,.78);
  border: 1px solid var(--line);
}
.booking-plugin-frame .infovet-booking-form h3 {
  margin-top: 0 !important;
  border-left-color: var(--green) !important;
  color: var(--ink);
  letter-spacing: -.02em;
}
.booking-plugin-frame .infovet-booking-form p {
  margin: 0 0 14px;
}
.booking-plugin-frame .infovet-booking-form input[type="text"],
.booking-plugin-frame .infovet-booking-form input[type="email"],
.booking-plugin-frame .infovet-booking-form select,
.booking-plugin-frame .infovet-booking-form textarea {
  width: 100% !important;
  max-width: none !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 13px 14px !important;
  background: #fff !important;
  color: var(--ink) !important;
  outline: none !important;
}
.booking-plugin-frame .infovet-booking-form input:focus,
.booking-plugin-frame .infovet-booking-form select:focus,
.booking-plugin-frame .infovet-booking-form textarea:focus {
  border-color: rgba(31,107,87,.45) !important;
  box-shadow: 0 0 0 4px rgba(31,107,87,.10) !important;
}
.booking-plugin-frame .infovet-booking-form button[type="submit"] {
  border: 0 !important;
  border-radius: 18px !important;
  padding: 15px 22px !important;
  background: var(--green) !important;
  color: #fff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 28px rgba(31, 107, 87, .18) !important;
}
@media (max-width: 820px) {
  .city-select-row,
  .booking-embed-head {
    grid-template-columns: 1fr;
  }
  .provider-meta.compact {
    justify-content: flex-start;
  }
}

/* v11: city-card registration flow and automatic article heading anchors */
.registration-page-hero {
  padding-top: 62px;
}
.registration-page-hero .container {
  max-width: var(--max);
  background: linear-gradient(135deg, rgba(255,253,248,.94), rgba(216,231,234,.76));
}
.registration-page-hero h1 {
  max-width: 900px;
}
.registration-page-hero p {
  max-width: 850px;
}
.city-choice-panel {
  margin-top: 30px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(31,107,87,.16);
  border-radius: 30px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 14px 36px rgba(23,33,29,.06);
}
.city-choice-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.city-choice-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3.4vw, 42px);
}
.city-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.city-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(31,107,87,.16);
  border-radius: 24px;
  background: rgba(255,253,248,.92);
  box-shadow: 0 16px 42px rgba(23,33,29,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.city-choice-card.is-available:hover {
  transform: translateY(-3px);
  border-color: rgba(31,107,87,.36);
  box-shadow: 0 22px 56px rgba(23,33,29,.10);
}
.city-choice-card.is-selected {
  border-color: rgba(31,107,87,.58);
  box-shadow: 0 0 0 4px rgba(31,107,87,.08), 0 22px 56px rgba(23,33,29,.10);
}
.city-choice-card strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}
.city-choice-card small {
  color: var(--muted);
  line-height: 1.5;
  max-width: 520px;
}
.city-choice-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(31,107,87,.10);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}
.city-choice-badge.muted {
  background: rgba(101,115,109,.10);
  color: var(--muted);
}
.city-choice-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-weight: 900;
}
.city-choice-cta:after {
  content: "→";
  margin-left: 8px;
}
.city-choice-cta.muted {
  color: var(--muted);
}
.city-choice-cta.muted:after {
  content: "";
  margin: 0;
}
.city-choice-card.is-disabled {
  opacity: .68;
  cursor: default;
}
.booking-placeholder-card {
  background: rgba(255,253,248,.90);
  border: 1px dashed rgba(31,107,87,.24);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--muted);
}
.booking-placeholder-card strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 6px;
}
.booking-placeholder-card p {
  margin: 0;
  max-width: 760px;
}
.article-content h2,
.article-content h3,
.key-box,
.faq-section {
  scroll-margin-top: 125px;
}
.toc-card a {
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .city-choice-head,
  .city-choice-grid {
    grid-template-columns: 1fr;
  }
  .city-choice-head {
    display: grid;
  }
}

/* v13: home-visit page mirrors city-first registration flow */
.home-visit-page-hero {
  padding-top: 62px;
}
.home-visit-page-hero .container {
  max-width: var(--max);
  background: linear-gradient(135deg, rgba(255,253,248,.94), rgba(220,232,223,.80));
}
.home-visit-page-hero h1 {
  max-width: 900px;
}
.home-visit-page-hero p {
  max-width: 850px;
}
.home-visit-info-section {
  scroll-margin-top: 120px;
}
.home-visit-content-card {
  width: 100%;
  padding: clamp(28px, 4vw, 44px);
}
.home-visit-content-card > h2 {
  margin: 10px 0 22px;
}
.home-visit-content-card p:first-of-type {
  margin-top: 0;
}
.home-visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
@media (max-width: 680px) {
  .home-visit-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* v14: non-sticky sidebars and final top navigation structure */
.main-nav {
  gap: 18px;
}
.main-nav > a,
.nav-dropdown > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown {
  position: relative;
  color: #33423c;
  font-size: 14px;
  font-weight: 760;
}
.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  opacity: .9;
  user-select: none;
}
.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}
.nav-dropdown > summary:after {
  content: "▾";
  margin-left: 7px;
  font-size: 10px;
  opacity: .72;
  transform: translateY(1px);
}
.nav-dropdown:hover > summary,
.nav-dropdown.is-active > summary,
.nav-dropdown[open] > summary {
  color: var(--green);
  opacity: 1;
}
.nav-dropdown-menu {
  position: absolute;
  left: -18px;
  top: calc(100% + 12px);
  width: 360px;
  z-index: 90;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,253,248,.98);
  box-shadow: 0 24px 70px rgba(23,33,29,.14);
  backdrop-filter: blur(14px);
}
.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 13px;
  color: #33423c;
  line-height: 1.28;
  font-weight: 760;
  white-space: normal;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: rgba(220,232,223,.72);
  color: var(--green-dark);
}
.nav-dropdown-menu .nav-dropdown-main {
  color: var(--green-dark);
  background: rgba(31,107,87,.08);
  font-weight: 900;
}
.side-column,
.article-aside {
  position: static !important;
  top: auto !important;
  align-self: start;
}
.article-aside,
.side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}
.article-body-layout,
.content-layout {
  align-items: start;
}
.toc-card,
.sidebar-card {
  margin: 0;
}
.toc-card + .toc-card,
.sidebar-card + .sidebar-card {
  margin-top: 0;
}
@media (max-width: 1180px) {
  .main-nav {
    gap: 13px;
    font-size: 13px;
  }
  .nav-button {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 980px) {
  .main-nav > a,
  .nav-dropdown > summary {
    min-height: auto;
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 18px;
    box-shadow: none;
    background: rgba(220,232,223,.34);
    backdrop-filter: none;
  }
  .nav-dropdown-menu a {
    padding: 10px 12px;
  }
}

/* v16: centered clinic registration header */
.booking-embed-head-centered {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.booking-embed-head-centered .section-kicker {
  margin-left: auto;
  margin-right: auto;
}
.booking-embed-head-centered h2 {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.booking-embed-head-centered p {
  max-width: 840px;
  margin: 0 auto !important;
  color: var(--muted);
}
.provider-meta-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 2px auto 0;
}
.provider-meta-centered span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(31,107,87,.14);
  border-radius: 999px;
  background: rgba(255,253,248,.82);
  color: var(--ink);
  font-weight: 860;
  line-height: 1.25;
}
@media (max-width: 720px) {
  .booking-embed-head-centered h2 {
    font-size: clamp(30px, 11vw, 48px);
  }
  .provider-meta-centered {
    align-items: stretch;
  }
  .provider-meta-centered span {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }
}


/* v17: cleaner top menu order and plain Straipsniai dropdown */
.nav-dropdown {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.nav-dropdown > summary {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: inherit;
}
.nav-dropdown > summary:focus {
  outline: none;
}
.nav-dropdown > summary:focus-visible {
  outline: 2px solid rgba(31, 107, 87, .34);
  outline-offset: 5px;
  border-radius: 8px !important;
}
.nav-separator {
  width: 1px;
  height: 24px;
  display: inline-block;
  background: rgba(23, 33, 29, .18);
  margin: 0 2px;
}
@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 980px) {
  .nav-separator {
    display: none;
  }
  .nav-dropdown > summary {
    min-height: auto;
    padding: 8px 0 !important;
  }
}


/* v19: homepage reader-facing polish, safe over existing layout */
.hero-section {
  padding: 36px 0 30px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: start;
}
.hero-copy {
  min-height: 0;
  padding: clamp(30px, 4.2vw, 46px);
}
.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1;
  margin-top: 22px;
}
.hero-lead {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.68;
}
.hero-feature {
  min-height: 0;
  align-self: start;
}
.feature-image img {
  height: 250px;
}
.feature-body {
  padding: 24px 26px 28px;
}
.feature-body h2 {
  font-size: clamp(26px, 2.6vw, 34px);
}
.section-head p {
  font-size: 17px;
  line-height: 1.65;
}
.topic-card small {
  font-size: 14px;
}
.expert-band {
  padding-top: 8px;
}
.trust-grid div {
  text-align: center;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: clamp(38px, 9vw, 58px);
  }
}

/* v20: homepage balance, better rubrikos grid, article layout polish */
.hero-section {
  padding: 38px 0 30px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  align-items: stretch;
}
.hero-copy,
.hero-feature {
  min-height: 430px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
}
.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(38px, 4.1vw, 56px);
  line-height: 1.03;
  margin: 18px 0 16px;
}
.hero-lead {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.66;
}
.search-box {
  margin-top: 26px;
}
.hero-stats {
  margin-top: 24px;
}
.hero-feature {
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  overflow: hidden;
  align-self: stretch;
}
.feature-image {
  display: block;
  min-height: 0;
}
.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}
.feature-body {
  padding: 24px 28px 30px;
}
.feature-body h2 {
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.06;
}
.section-head {
  align-items: center;
}
.topic-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.topic-card {
  min-height: 150px;
  justify-content: flex-start;
  gap: 16px;
  padding: 20px 18px;
}
.topic-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topic-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(220,232,223,.95), rgba(255,253,248,.72));
  box-shadow: inset 0 0 0 1px rgba(31,107,87,.08);
}
.topic-card strong {
  font-size: 17px;
  line-height: 1.12;
}
.topic-card small {
  display: block;
  padding-left: 58px;
  font-size: 14px;
  line-height: 1.5;
}
.expert-card {
  grid-template-columns: .92fr 1.08fr;
}
.expert-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}
.article-hero {
  padding: 44px 0 28px;
}
.article-hero-grid {
  grid-template-columns: minmax(0, .98fr) minmax(330px, .92fr);
  align-items: center;
}
.article-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.article-hero p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.66;
}
.article-hero-image img {
  max-height: 360px;
}
.article-body-layout {
  grid-template-columns: minmax(0, 790px) 290px;
  gap: 28px;
  justify-content: start;
}
.article-content {
  order: 1;
  max-width: 790px;
  width: 100%;
}
.article-aside {
  order: 2;
}
.article-content h2 {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.12;
}
.article-content h3 {
  font-size: 24px;
}
.article-content p {
  font-size: 17px;
  line-height: 1.78;
}
@media (max-width: 1180px) {
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topic-card small {
    padding-left: 58px;
  }
}
@media (max-width: 980px) {
  .hero-grid,
  .article-hero-grid,
  .expert-card,
  .article-body-layout {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .hero-feature {
    min-height: auto;
  }
  .article-content,
  .article-aside {
    order: initial;
    max-width: none;
  }
  .article-aside {
    order: 2;
  }
  .article-content {
    order: 1;
  }
}
@media (max-width: 760px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .topic-card small {
    padding-left: 0;
  }
}


/* v22: final root-mode polish, balanced front page, readable article width */
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: stretch;
}
.hero-copy,
.hero-feature {
  min-height: 430px;
}
.hero-feature {
  grid-template-rows: minmax(235px, 1fr) auto;
}
.hero-copy h1 {
  font-size: clamp(37px, 3.8vw, 54px);
}
.expert-card {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
}
.expert-photo img {
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
}
.topic-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.topic-card {
  min-height: 146px;
}
.topic-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topic-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
}
.topic-card small {
  padding-left: 58px;
}
.article-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
}
.article-hero h1 {
  font-size: clamp(34px, 3.7vw, 52px);
  max-width: 780px;
}
.article-body-layout {
  grid-template-columns: minmax(0, 820px) 290px;
  justify-content: start;
}
.article-content {
  max-width: 820px;
}
.article-aside {
  order: 2;
}
.article-content {
  order: 1;
}
@media (max-width: 1180px) {
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid,
  .expert-card,
  .article-hero-grid,
  .article-body-layout { grid-template-columns: 1fr; }
  .hero-copy,
  .hero-feature { min-height: auto; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-content { max-width: none; }
}
@media (max-width: 760px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card small { padding-left: 0; }
}
