/* ==========================================================================
   Psycan design tokens. Change colours, radius and spacing here only.
   Minimal colour: mostly white, navy for text and buttons, teal only for small accents.
   ========================================================================== */
:root {
    --c-primary: #00325B;    /* deep navy: headings, buttons, footer */
    --c-accent: #00C6C1;     /* bright teal: small accents, and buttons on navy */
    --c-teal-text: #007A77;  /* darker teal for small text and icons on light backgrounds */
    --c-soft: #F5F8FA;       /* very light grey-blue: alternate section background */
    --c-tint: #E8F8F7;       /* lightest teal: icon circles */
    --c-navy-tint: #EAF0F6;  /* lightest navy: photo placeholders, hover */
    --c-text: #1B2A3A;
    --c-muted: #3B4F63;
    --c-border: #DDE6EC;
    --c-field: #6B8497;      /* form field borders */

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 12px 36px rgba(0, 50, 91, .12);
    --section-space: clamp(56px, 7vw, 96px);
    --container: 1320px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; font-size: 19px; line-height: 1.6; color: var(--c-text); background: #fff; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--c-primary); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--c-teal-text); outline-offset: 2px; }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--c-accent); }
[x-cloak] { display: none !important; }
.icon { flex: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 980px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: #fff; }
.skip-link:focus { left: 8px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; padding: 14px 28px; border: 2px solid transparent; border-radius: 999px;
    font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer;
    transition: background .15s, color .15s;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: #004a85; }
.btn--accent { background: var(--c-accent); color: var(--c-primary); }
.btn--accent:hover { filter: brightness(.94); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--sm { min-height: 48px; padding: 11px 22px; }
.btn--block { width: 100%; }

/* ===== Photos (real photo, or a tidy placeholder until you add one) ===== */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-navy-tint); aspect-ratio: var(--ratio, 4/3); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; font-size: 15px; color: var(--c-muted); background: linear-gradient(135deg, var(--c-navy-tint), var(--c-soft)); }
.photo--round { border-radius: 50%; }

/* ===== Top bar ===== */
.topbar { background: var(--c-primary); color: #fff; font-size: 16px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding-block: 10px; text-align: center; }
.topbar .underline { font-weight: 700; text-decoration: underline; }

/* ===== Header ===== */
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-border); }
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { flex: none; display: flex; align-items: center; font-size: 29px; font-weight: 700; color: var(--c-primary); }
.brand img { display: block; width: auto; height: 52px; }

/* Header labels never wrap: when space runs out, items drop out at the breakpoints below instead. */
.main-nav { display: none; align-items: center; gap: 2px; font-size: 18px; font-weight: 500; }
/* The mega menu anchors to .site-header__inner (full container width), not to the "Get care" button, so it never runs off-screen. */
.main-nav__item { position: static; }
.main-nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.main-nav__link:hover { background: var(--c-soft); }
.main-nav__link--small { font-size: 17px; color: var(--c-muted); }
.header-actions { display: none; flex: none; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; }
.header-actions .btn { white-space: nowrap; padding-inline: 20px; }

.nav-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--c-border); border-radius: 50%; background: #fff; color: var(--c-primary); cursor: pointer; }

.mega { position: absolute; left: 24px; right: 24px; top: calc(100% - 8px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 28px; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* hover bridge from "Get care" down to the panel */
.mega__title { margin-bottom: 8px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-teal-text); }
.mega li a { display: block; padding: 6px 0; }
.mega li a:hover { color: var(--c-teal-text); text-decoration: underline; }
.mega__feature { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--c-soft); }

.mobile-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 24px 24px; border-top: 1px solid var(--c-border); background: #fff; }
.mobile-nav a:not(.btn) { padding: 10px 0; }
.mobile-nav__title { margin-top: 10px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-teal-text); }
.mobile-nav .btn { margin-top: 12px; }

/* Full desktop header from 1100px; below that the menu button takes over.
   1100–1349px: smaller logo and tighter links. Below 1250px "For practitioners" drops out (still in the footer). */
@media (min-width: 1100px) {
    .main-nav, .header-actions { display: flex; }
    .nav-toggle, .mobile-nav { display: none !important; }
}
@media (min-width: 1100px) and (max-width: 1349px) {
    .brand img { height: 44px; }
    .main-nav, .header-actions { font-size: 17px; }
    .main-nav__link { padding-inline: 10px; }
}
@media (min-width: 1100px) and (max-width: 1249px) {
    .header-actions__practitioner { display: none; }
}

/* ===== Sections ===== */
.section { padding-block: var(--section-space); background: #fff; }
.section--soft { background: var(--c-soft); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--bordered { border-block: 1px solid var(--c-border); }

.section-heading { margin-bottom: 32px; }
.section-heading h2, .center-title { font-size: clamp(32px, 3.4vw, 45px); line-height: 1.18; }
.section-heading h2 { max-width: 720px; }
.section-heading__text { margin-top: 12px; max-width: 600px; color: var(--c-muted); }
.eyebrow { margin-bottom: 10px; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-teal-text); }
.center-title { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.section-link { display: inline-block; font-weight: 700; color: var(--c-primary); text-decoration: underline; text-underline-offset: 4px; }
.section-row .section-link { margin-bottom: 32px; }
.mt-xl { margin-top: 64px; }

.grid { display: grid; gap: 24px; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--reviews { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--articles { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.specialist-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Two-column "photo + text" layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.card--media { overflow: hidden; }
.card--media .photo { border-radius: 0; }
.lift { transition: transform .15s ease, box-shadow .15s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ===== Hero ===== */
.hero { padding-top: clamp(32px, 5vw, 64px); background: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-bottom: 24px; }
@media (min-width: 901px) { .hero__grid { padding-bottom: 80px; } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__photo { order: -1; } }
.hero h1 { margin: 20px 0 16px; font-size: clamp(38px, 4.6vw, 65px); line-height: 1.08; }
.hero__lead { max-width: 540px; margin-bottom: 24px; font-size: 21px; color: var(--c-muted); }
.pill { display: inline-block; padding: 6px 16px; border: 1px solid var(--c-border); border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--c-primary); }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checklist .icon { color: var(--c-teal-text); }

/* The finder sits over the bottom edge of the hero, like a search bar */
.finder-wrap { padding-bottom: clamp(48px, 6vw, 80px); }
.finder { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 901px) { .finder { margin-top: -56px; } }
.finder__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.finder__row .btn { min-width: 220px; }
.finder__note { font-size: 16px; text-align: center; color: var(--c-muted); }
@media (max-width: 760px) { .finder__row { grid-template-columns: 1fr; } .finder__row .btn { min-width: 0; width: 100%; } }

/* Care-type chips: real radio buttons, so they work without JavaScript */
.care-chips { min-width: 0; margin: 0; padding: 0; border: 0; }
.care-chips legend { margin-bottom: 10px; padding: 0; font-weight: 700; color: var(--c-primary); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--c-field); border-radius: 999px; background: #fff; font-weight: 500; transition: background .15s, color .15s; }
.chip:hover span { background: var(--c-soft); }
.chip input:checked + span { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.chip input:checked + span .icon { color: var(--c-accent); }
.chip input:focus-visible + span { outline: 3px solid var(--c-teal-text); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 17px; font-weight: 500; }
.field select { height: 56px; padding: 0 14px; border: 1px solid var(--c-field); border-radius: var(--radius-sm); background: #fff; color: var(--c-text); font: inherit; font-size: 18px; }

/* ===== Benefits band ===== */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
.benefit { display: flex; align-items: center; gap: 14px; font-weight: 500; line-height: 1.35; }
.benefit__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--c-border); color: var(--c-primary); }

/* ===== Concern pills ===== */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 8px; border: 1.5px solid var(--c-border); border-radius: 999px; background: #fff; font-weight: 500; transition: border-color .15s, background .15s; }
.pill-link:hover { border-color: var(--c-primary); background: var(--c-soft); }
.pill-link__icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-tint); color: var(--c-primary); }
.pills + .section-link { margin-top: 28px; }

/* ===== Payments strip (the Indian version of Thriveworks' insurance row) ===== */
.payments__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 36px; }
.payments__copy { flex: 1 1 360px; }
.payments__copy h2 { margin-bottom: 6px; font-size: 27px; }
.payments__copy p { color: var(--c-muted); }
.payments__list { display: flex; flex-wrap: wrap; gap: 12px; }
.payments__list li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 1.5px solid var(--c-border); border-radius: 999px; font-weight: 700; color: var(--c-primary); }
.payments__list .icon { color: var(--c-teal-text); }

/* ===== Language chips ===== */
.lang-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.lang-chips__label { margin-right: 4px; font-weight: 700; color: var(--c-primary); }
.lang-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--c-field); border-radius: 999px; background: #fff; font-weight: 500; transition: background .15s, color .15s; }
.lang-chip:hover { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }

/* ===== Specialist cards ===== */
.specialist { display: flex; flex-direction: column; }
.specialist__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 20px 22px 22px; }
.specialist__name { font-size: 21px; }
.specialist__role { font-size: 17px; color: var(--c-muted); }
.specialist__meta { display: flex; flex-direction: column; gap: 4px; font-size: 17px; color: var(--c-muted); }
.specialist__meta div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.specialist__meta dt { font-weight: 700; color: var(--c-text); }
.specialist__meta dt::after { content: ':'; }
.specialist__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.results-count, .empty-state { grid-column: 1 / -1; }
.results-count { font-weight: 500; color: var(--c-muted); }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px; border: 1px dashed var(--c-field); border-radius: var(--radius); background: #fff; }

.skeleton { min-height: 380px; background: linear-gradient(90deg, #fff 25%, var(--c-soft) 50%, #fff 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
#results-loading { margin-bottom: 12px; font-size: 17px; color: var(--c-muted); }

/* ===== How it works ===== */
.step { display: flex; flex-direction: column; gap: 12px; }
.step__top { display: flex; align-items: center; gap: 14px; }
.step__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-tint); color: var(--c-primary); }
.step__num { font-size: 17px; font-weight: 700; color: var(--c-teal-text); }
.step h3 { font-size: 22px; }
.step p { font-size: 18px; color: var(--c-muted); }

/* ===== Why Psycan ===== */
.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-list li { display: flex; gap: 16px; }
.why-list__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--c-border); color: var(--c-primary); }
.why-list h3 { margin-bottom: 4px; font-size: 22px; }
.why-list p { color: var(--c-muted); font-size: 18px; }

/* ===== Service cards ===== */
.service-card { display: flex; flex-direction: column; }
.service-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.service-card h3 { font-size: 22px; }
.service-card p { font-size: 18px; color: var(--c-muted); }
.service-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; color: var(--c-primary); }

/* ===== Stats and reviews ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px 0; }
.stat { padding: 4px 24px; border-left: 1px solid var(--c-border); }
.stats .stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-size: clamp(43px, 4.4vw, 61px); font-weight: 700; line-height: 1.1; color: var(--c-primary); }
.stat__label { margin-top: 6px; font-weight: 500; color: var(--c-muted); }
.review { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.review__quote { fill: var(--c-accent); }
.review blockquote { color: var(--c-muted); }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__who .photo { width: 52px; flex: none; }
.review figcaption { font-weight: 700; color: var(--c-primary); }

/* ===== Articles ===== */
.article { display: flex; flex-direction: column; }
.article__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.article__meta { font-size: 16px; color: var(--c-muted); }
.article h3 { font-size: 21px; line-height: 1.3; }

/* ===== Practitioner call-out ===== */
.cta-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 32px; background: var(--c-soft); }
@media (max-width: 900px) { .cta-card { grid-template-columns: 1fr; } }
.cta-card h2 { margin-bottom: 12px; font-size: clamp(32px, 3.2vw, 43px); line-height: 1.18; }
.cta-card p { max-width: 520px; margin-bottom: 24px; font-size: 20px; color: var(--c-muted); }

/* ===== FAQ ===== */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-layout .section-heading { margin-bottom: 20px; }
.faq-layout__help { margin-bottom: 20px; color: var(--c-muted); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { padding-inline: 22px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 18px 0; border: 0; background: none; font: inherit; font-size: 20px; font-weight: 700; text-align: left; color: var(--c-primary); cursor: pointer; }
.faq__chevron { display: flex; color: var(--c-teal-text); transition: transform .2s; }
.faq__chevron.is-open { transform: rotate(180deg); }
.faq__a { padding-bottom: 18px; color: var(--c-muted); }

/* ===== Footer ===== */
.site-footer { padding-block: 56px 28px; background: var(--c-primary); color: #fff; }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 48px; }
.site-footer__grid > div { flex: 1 1 170px; }
.site-footer__about { flex: 1 1 280px !important; max-width: 380px; font-size: 17px; color: #D6E4F0; }
.site-footer__about p { margin-bottom: 14px; }
.site-footer__brand { margin-bottom: 12px; font-size: 29px; font-weight: 700; color: #fff; }
.site-footer__title { margin-bottom: 12px; font-size: 18px; color: var(--c-accent); }
.site-footer li { margin-bottom: 8px; font-size: 17px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__notice { margin-top: 36px; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, .09); font-size: 17px; color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 16px; color: #D6E4F0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ===== Sticky "Book a session" bar (phones only) ===== */
.mobile-cta { display: none; position: fixed; inset: auto 0 0 0; z-index: 40; padding: 10px 16px; border-top: 1px solid var(--c-border); background: #fff; }
@media (max-width: 640px) { .mobile-cta { display: block; } .mobile-cta[x-cloak] { display: none !important; } }

/* ===== Inner pages: page header + breadcrumb ===== */
.page-header { padding: 32px 0 28px; background: var(--c-soft); border-bottom: 1px solid #DCE5EC; }
.page-header h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.15; }
.page-header__text { margin-top: 10px; max-width: 640px; color: var(--c-muted); font-size: 20px; }
.breadcrumb { margin-bottom: 14px; font-size: 17px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--c-muted); }
.breadcrumb a { color: var(--c-teal-text); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--c-muted); }

/* ===== Specialists list ===== */
.list-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.list-layout__toggle { display: none; }
.filters { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; padding: 22px; border: 1px solid #DCE5EC; border-radius: var(--radius); background: #fff; }
.filters legend { padding: 0; font-size: 17px; font-weight: 500; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.radio-row { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.radio-row label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 18px; font-weight: 400; cursor: pointer; }
.radio-row input { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--c-primary); cursor: pointer; }
.filters__actions { display: flex; flex-direction: column; gap: 10px; }
.specialist-grid--list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.results-loading { margin-bottom: 12px; color: var(--c-muted); }
.htmx-indicator { opacity: 0; height: 0; margin: 0; overflow: hidden; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; height: auto; margin-bottom: 12px; }
.specialist__name a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
    .list-layout { grid-template-columns: 1fr; gap: 20px; }
    .list-layout__toggle { display: inline-flex; width: 100%; }
    .filters { position: static; display: none; }
    .filters.is-open { display: flex; }
}

/* ===== Specialist profile ===== */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.profile__main { display: flex; flex-direction: column; gap: 32px; }
.profile__block h2 { margin-bottom: 12px; font-size: 25px; }
.profile__block p { max-width: 680px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill-list li { padding: 8px 16px; border-radius: 999px; background: var(--c-tint); color: var(--c-primary); font-weight: 500; }
.facts { display: flex; flex-direction: column; margin: 0; border-top: 1px solid #DCE5EC; }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #DCE5EC; }
.facts dt { font-weight: 700; color: var(--c-primary); }
.profile__side { position: sticky; top: 96px; }
.book-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid #DCE5EC; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 28px rgba(0, 50, 91, .08); }
.book-card__label { font-size: 17px; color: var(--c-muted); }
.book-card__price { font-size: 36px; font-weight: 700; color: var(--c-primary); line-height: 1.1; }
.book-card__price span { font-size: 18px; font-weight: 400; color: var(--c-muted); }
.book-card__list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid #DCE5EC; list-style: none; font-size: 17px; color: var(--c-muted); }

@media (max-width: 900px) {
    .profile { grid-template-columns: 1fr; gap: 28px; }
    .profile__side { position: static; }
    .facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== Pricing page ===== */
.grid--plans { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 24px; border: 1px solid #DCE5EC; background: #fff; }
.plan--featured { border: 2px solid var(--c-primary); box-shadow: 0 10px 30px rgba(0, 50, 91, .12); }
.plan__badge { position: absolute; top: -14px; left: 24px; padding: 4px 14px; border-radius: 999px; background: var(--c-accent); color: var(--c-primary); font-size: 16px; font-weight: 700; }
.plan__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%; background: var(--c-tint); color: var(--c-teal-text); }
.plan h3 { font-size: 24px; }
.plan__who { font-size: 17px; color: var(--c-muted); }
.plan__price { margin-top: 14px; font-size: 40px; font-weight: 700; line-height: 1; color: var(--c-primary); }
.plan__price small { font-size: 17px; font-weight: 400; color: var(--c-muted); }
.plan__length { font-size: 17px; color: var(--c-muted); }
.plan__points { display: flex; flex-direction: column; flex: 1; gap: 10px; margin: 18px 0 22px; padding: 18px 0 0; border-top: 1px solid #DCE5EC; list-style: none; font-size: 18px; }
.plan__points li { display: flex; align-items: flex-start; gap: 10px; }
.plan__points .icon { flex: none; margin-top: 3px; color: var(--c-teal-text); }
.fine-print { margin-top: 20px; font-size: 17px; color: var(--c-muted); }
.grid--included { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.included h3 { margin-bottom: 6px; font-size: 21px; }
.included p { color: var(--c-muted); }
.pay-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 20px; font-weight: 500; }
.pay-list li { display: flex; align-items: center; gap: 14px; }
.pay-list .plan__icon { margin: 0; }
.cta-card--center { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.cta-card--center p { margin-inline: auto; }

/* ===== About page ===== */
.prose { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; max-width: 560px; font-size: 20px; color: var(--c-muted); }
.why-list--row { flex-direction: row; flex-wrap: wrap; gap: 32px; }
.why-list--row li { flex: 1 1 280px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== About + How it works ===== */
.prose { max-width: 560px; margin-bottom: 18px; font-size: 20px; color: var(--c-muted); }
.split--reverse > :first-child { order: 2; }
.grid--duo { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cta-card--stack { grid-template-columns: 1fr; align-content: center; }
.step-rows { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 88px); }
.step-row__title { margin: 4px 0 12px; font-size: clamp(29px, 3vw, 38px); line-height: 1.2; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .icon { flex: none; margin-top: 4px; color: var(--c-teal-text); }
.note-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid #DCE5EC; }
.note-card h3 { margin-bottom: 8px; font-size: 24px; }
.note-card p { margin-bottom: 16px; color: var(--c-muted); }
.cta-card--center .fine-print a { color: var(--c-teal-text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
    .split--reverse > :first-child { order: 0; }
}

/* ===== Contact + FAQ ===== */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .plan__icon { margin: 0; }
.contact-list a { color: var(--c-teal-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.note-card--alert { background: var(--c-tint); border-color: transparent; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea { padding: 12px 14px; border: 1px solid var(--c-field); border-radius: var(--radius-sm); background: #fff; color: var(--c-text); font: inherit; font-size: 18px; }
.field input:not([type="radio"]):not([type="checkbox"]) { height: 56px; }
.field textarea { resize: vertical; min-height: 130px; }
.field--error input, .field--error select, .field--error textarea { border-color: #B3261E; border-width: 2px; }
.field__error { font-size: 17px; font-weight: 500; color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); }
.notice h3 { margin-bottom: 4px; font-size: 21px; }
.notice--ok { background: var(--c-tint); color: var(--c-primary); }
.notice--ok .icon { flex: none; margin-top: 2px; color: var(--c-teal-text); }
.notice--error { background: #FDECEA; color: #8C1D18; font-weight: 500; }
#send-btn.htmx-request { opacity: .6; pointer-events: none; }
.faq-search { margin-bottom: 8px; }
.faq-group__title { margin: 36px 0 12px; font-size: 27px; }
.faq-more { margin-top: 48px; }

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .form__row { grid-template-columns: 1fr; }
}

/* ===== Booking flow ===== */
.stepper { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 32px; padding: 0; list-style: none; }
.stepper__item { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--c-muted); }
.stepper__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--c-field); font-size: 17px; font-weight: 700; }
.stepper__item.is-current { color: var(--c-primary); }
.stepper__item.is-current .stepper__num { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.stepper__item.is-done .stepper__num { background: var(--c-tint); border-color: var(--c-teal-text); color: var(--c-teal-text); }
@media (max-width: 560px) { .stepper__label { display: none; } .stepper__item.is-current .stepper__label { display: inline; } }

.step-title { margin-bottom: 14px; font-size: 25px; }
.step-title small { font-size: 17px; font-weight: 400; color: var(--c-muted); }
.day-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.day-chip { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--c-field); border-radius: 999px; background: #fff; font-weight: 500; }
.day-chip:hover { background: var(--c-soft); }
.day-chip.is-active { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.day-heading { margin-bottom: 12px; font-weight: 700; color: var(--c-primary); }

.sum-person { display: flex; align-items: center; gap: 14px; }
.sum-person__photo { flex: none; width: 56px; }
.sum-person__name { font-weight: 700; font-size: 20px; }
.sum-person__role { font-size: 17px; color: var(--c-muted); }
.facts--tight div { grid-template-columns: 100px 1fr; padding: 10px 0; }

.pay-options { display: grid; gap: 12px; }
.pay-option { position: relative; display: block; cursor: pointer; }
.pay-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pay-option__box { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1.5px solid var(--c-field); border-radius: var(--radius-sm); background: #fff; }
.pay-option__box small { display: block; font-size: 17px; color: var(--c-muted); }
.pay-option input:checked + .pay-option__box { border-color: var(--c-primary); box-shadow: 0 0 0 2px var(--c-primary) inset; background: var(--c-soft); }
.pay-option input:focus-visible + .pay-option__box { outline: 3px solid var(--c-teal-text); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c-primary); }
.check a { color: var(--c-teal-text); text-decoration: underline; text-underline-offset: 3px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.conf-block { margin-top: 32px; }

/* ===== Emergency + legal pages ===== */
.sos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sos { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--c-primary); color: #fff; transition: filter .15s; }
.sos:hover { filter: brightness(1.12); }
.sos__name { font-size: 18px; font-weight: 500; opacity: .9; }
.sos__number { display: flex; align-items: center; gap: 12px; font-size: 45px; font-weight: 700; line-height: 1.1; color: var(--c-accent); }
.sos__text { font-size: 17px; opacity: .9; }
.num-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding-left: 24px; font-size: 20px; }
.num-list li::marker { font-weight: 700; color: var(--c-teal-text); }


.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 8px; }
.legal-toc { position: sticky; top: 96px; font-size: 18px; }
.legal-toc__title { margin-bottom: 10px; font-weight: 700; color: var(--c-primary); }
.legal-toc ol { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; }
.legal-toc a { color: var(--c-teal-text); text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 720px; }
.legal h2 { margin: 36px 0 12px; font-size: 27px; scroll-margin-top: 100px; }
.legal h2:first-of-type { margin-top: 12px; }
.legal p { margin-bottom: 14px; font-size: 19px; line-height: 1.7; }
.legal a { color: var(--c-teal-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-layout + .fine-print, .notice + .legal-layout { margin-top: 24px; }
.section .notice--error { margin-bottom: 24px; }
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; padding-bottom: 8px; border-bottom: 1px solid #DCE5EC; }
}

/* ===== Resources (blog) ===== */
.res-grid { margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post { margin: 32px auto 0; }
.post__lead { font-size: 22px !important; color: var(--c-muted); }
.bullets { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding-left: 22px; font-size: 19px; line-height: 1.6; }
.bullets li::marker { color: var(--c-teal-text); }

/* ===== Login, register, password pages ===== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 140px); }
.auth__aside { position: relative; background: var(--c-primary); }
.auth__photo { position: absolute; inset: 0; width: 100%; height: 100%; --ratio: auto; border-radius: 0; }
.auth__photo img, .auth__photo .photo__placeholder { width: 100%; height: 100%; object-fit: cover; }
.auth__quote { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; background: linear-gradient(transparent, rgba(0, 50, 91, .92)); color: #fff; font-size: 27px; font-weight: 500; line-height: 1.35; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__card { width: 100%; max-width: 440px; }
.auth__card h1 { font-size: clamp(32px, 3.5vw, 40px); line-height: 1.15; }
.auth__sub { margin: 8px 0 24px; color: var(--c-muted); }
.auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.auth__link, .auth__switch a { color: var(--c-teal-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.auth__switch { margin-top: 24px; text-align: center; color: var(--c-muted); }
.auth .notice { margin-bottom: 20px; }
.pw { position: relative; }
.pw input { width: 100%; padding-right: 76px; }
.pw__toggle { position: absolute; top: 0; right: 0; height: 50px; padding: 0 16px; border: 0; background: none; color: var(--c-teal-text); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth__aside { display: none; }
}

/* ===== Join our network ===== */
.grid--gap-top { margin-top: clamp(40px, 6vw, 72px); }
.split--top { align-items: start; }
fieldset.field legend { margin-bottom: 8px; font-size: 17px; font-weight: 500; }
.chip input[type="checkbox"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.field input[type="file"] { height: auto; padding: 10px 14px; }
.field input[type="number"] { appearance: textfield; }

/* ===== Join our network ===== */
fieldset.field legend { margin-bottom: 8px; font-size: 17px; font-weight: 500; }
.chip input[type="checkbox"]:checked + span { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.chip input[type="checkbox"]:focus-visible + span { outline: 3px solid var(--c-teal-text); outline-offset: 2px; }
#apply { scroll-margin-top: 80px; }

/* ===== Gallery + Careers ===== */
.gallery { columns: 3 260px; column-gap: 20px; margin-top: 28px; }
.gallery__item { break-inside: avoid; margin: 0 0 20px; }
.gallery__item figcaption { margin-top: 8px; font-size: 17px; color: var(--c-muted); }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__open .photo { transition: transform .2s, box-shadow .2s; }
.gallery__open:hover .photo { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 50, 91, .18); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 20, 40, .92); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1000px, 86vw); margin: 0; color: #fff; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; border-radius: var(--radius-sm); }
.lightbox__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 38px; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.role-meta { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; color: var(--c-muted); }
@media (max-width: 560px) { .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; } }

/* ==========================================================================
   Additions for the live app (real data, CMS content, pagination, flash messages)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.mt-md { margin-top: 32px; }
.muted { color: var(--c-muted); }

/* Flash messages under the header */
.flash { padding-top: 20px; }
.flash .notice { align-items: center; }

/* Header: account link */
.header-actions form { display: inline; }

/* Specialist cards: rating + fee row */
.specialist__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.rating .icon { color: #E8A317; fill: #E8A317; }
.rating small { font-weight: 400; color: var(--c-muted); }
.specialist__fee { font-size: 17px; color: var(--c-muted); }
.specialist__fee strong { font-size: 22px; color: var(--c-primary); }

/* Specialists list: sort bar above results */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.results-bar .results-count { margin: 0; }
.results-bar .field { flex-direction: row; align-items: center; gap: 10px; }
.results-bar select { height: 44px; }
.filters select, .filters input:not([type="radio"]):not([type="checkbox"]) { width: 100%; }

/* Pagination */
.pager { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1.5px solid var(--c-border); border-radius: 999px; background: #fff; font-weight: 500; }
.pager a:hover { border-color: var(--c-primary); background: var(--c-soft); }
.pager .is-current { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.pager .is-disabled { color: var(--c-field); }

/* Profile header (photo + name) */
.profile-head { display: flex; align-items: center; gap: 24px; }
.profile-head .photo { flex: none; width: 140px; }
.profile-head h1 { font-size: clamp(32px, 3.6vw, 45px); line-height: 1.15; }
.profile-head__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--c-muted); }
@media (max-width: 560px) { .profile-head { flex-direction: column; align-items: flex-start; } .profile-head .photo { width: 112px; } }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { padding: 6px 14px; border: 1.5px solid var(--c-border); border-radius: 999px; font-size: 17px; font-weight: 500; }
.social-links a:hover { border-color: var(--c-primary); }
.service-list { display: flex; flex-direction: column; border-top: 1px solid #DCE5EC; }
.service-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #DCE5EC; }
.service-list strong { color: var(--c-primary); white-space: nowrap; }
.timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline li { padding-left: 18px; border-left: 3px solid var(--c-tint); }
.timeline h3 { font-size: 20px; }
.timeline p { color: var(--c-muted); font-size: 18px; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-chips li { padding: 10px 16px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); font-size: 17px; }
.slot-chips strong { display: block; color: var(--c-primary); }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { padding: 20px 22px; border: 1px solid var(--c-border); border-radius: var(--radius); }
.review-item__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.review-item__head strong { color: var(--c-primary); }
.review-item p { color: var(--c-muted); }

/* CMS / blog rich text (HTML from the admin editor) */
.rich { max-width: 760px; font-size: 19px; line-height: 1.75; }
.rich > * + * { margin-top: 16px; }
.rich h2, .rich h3, .rich h4, .rich h5, .rich h6 { margin-top: 32px; margin-bottom: 0; color: var(--c-primary); font-weight: 700; line-height: 1.25; }
.rich h2 { font-size: 29px; } .rich h3 { font-size: 25px; } .rich h4 { font-size: 22px; }
/* The admin editor's content (e.g. service pages) uses h5/h6 for section headings — keep them above body size. */
.rich h5, .rich h6 { font-size: 22px; }
.rich > :first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 24px; }
.rich ul { list-style: disc; }
.rich li + li { margin-top: 6px; }
.rich li::marker { color: var(--c-teal-text); }
.rich a { color: var(--c-teal-text); text-decoration: underline; text-underline-offset: 3px; }
.rich img { height: auto; border-radius: var(--radius-sm); }
.rich blockquote { padding: 16px 20px; border-left: 4px solid var(--c-accent); background: var(--c-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rich table { width: 100%; border-collapse: collapse; }
.rich th, .rich td { padding: 10px; border: 1px solid var(--c-border); text-align: left; }

/* Resources */
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--c-tint); color: var(--c-primary); font-size: 15px; font-weight: 700; }
.article__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 24px 0 8px; font-size: 17px; color: var(--c-muted); }
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.res-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.side-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.side-links a { display: flex; justify-content: space-between; gap: 8px; color: var(--c-text); }
.side-links a:hover, .side-links a.is-active { color: var(--c-teal-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .res-layout { grid-template-columns: 1fr; } .res-side { position: static; } }
.comment { padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.comment strong { color: var(--c-primary); }
.comment small { margin-left: 8px; color: var(--c-muted); }

/* Gallery without categories */
.gallery--plain { margin-top: 0; }
