/* ==========================================================================
   Dr. Austin Roberts Family and Implant Dentistry — bespoke theme
   --------------------------------------------------------------------------
   Brand tokens lifted verbatim from the live site's Neve custom properties:
     --nv-primary-accent   #64753e   olive
     --nv-secondary-accent #90a06c   sage
     --nv-text-color       #272626   ink
     --nv-site-bg          #ffffff
     --nv-light-bg         #f4f5f7
     --nv-dark-bg          #121212

   Everything is prefixed `dar-` so nothing collides with the framework.
   This file is UNLAYERED, so it always beats app.css's @layer framework
   rules regardless of specificity — no !important anywhere.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted Josefin Sans
   The live site pulled Josefin Sans from fonts.googleapis.com. We ship the
   same variable woff2 files locally instead: identical rendering, one less
   third-party origin, no layout shift from a blocked font request.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('../fonts/josefin-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                   U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('../fonts/josefin-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                   U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   Type is driven by two variables so the whole site re-skins from here if we
   ever move him onto an Adobe Fonts face.
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --dar-olive:        #64753e;
    --dar-olive-dark:   #4e5c30;
    --dar-olive-darker: #3b4624;
    --dar-sage:         #90a06c;
    --dar-sage-light:   #b3c093;
    --dar-wash-olive:   #eef1e7;

    /* Neutrals */
    --dar-ink:          #272626;
    --dar-ink-soft:     #55534f;
    --dar-ink-faint:    #7d7a75;
    --dar-white:        #ffffff;
    --dar-wash:         #f4f5f7;
    --dar-rule:         #e3e5e1;
    --dar-dark:         #121212;

    /* Typography */
    --dar-font-heading: 'Josefin Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --dar-font-body:    'Josefin Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Fluid type scale — clamp() so phones and desktops both read well
       without a wall of breakpoints. */
    --dar-fs-xs:   0.8125rem;
    --dar-fs-sm:   0.9375rem;
    --dar-fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --dar-fs-lg:   clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
    --dar-fs-h6:   clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --dar-fs-h5:   clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
    --dar-fs-h4:   clamp(1.3125rem, 1.24rem + 0.37vw, 1.5rem);
    --dar-fs-h3:   clamp(1.5rem, 1.38rem + 0.6vw, 1.875rem);
    --dar-fs-h2:   clamp(1.875rem, 1.66rem + 1.05vw, 2.5rem);
    --dar-fs-h1:   clamp(2.25rem, 1.9rem + 1.75vw, 3.25rem);

    /* Rhythm */
    --dar-container:   1170px;
    --dar-container-n: 900px;
    --dar-gutter:      clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
    --dar-section-y:   clamp(3rem, 2.2rem + 3.6vw, 5.5rem);

    /* Surface */
    --dar-radius:    6px;
    --dar-radius-lg: 12px;
    --dar-shadow-sm: 0 1px 3px rgba(39, 38, 38, .08);
    --dar-shadow:    0 6px 20px rgba(39, 38, 38, .10);
    --dar-shadow-lg: 0 18px 44px rgba(39, 38, 38, .14);

    --dar-header-h:  84px;
    --dar-ease:      cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   Tailwind's preflight (in app.css) strips all heading sizing and margins.
   A bespoke theme has to put the scale back or every h1-h6 renders at 1em.
   -------------------------------------------------------------------------- */
.dar-body {
    font-family: var(--dar-font-body);
    font-size: var(--dar-fs-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--dar-ink);
    background: var(--dar-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* These base element rules are wrapped in :where() so they carry the
   specificity of `.dar-body` alone — (0,1,0). A plain single-class component
   rule like `.dar-footer__title` therefore ties and, being later in the file,
   wins. Without :where(), `.dar-body h2` is (0,1,1) and silently beats every
   component rule that styles a heading or a link, which is exactly the bug
   that made the footer titles render huge and near-black on the dark footer. */
.dar-body :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--dar-font-heading);
    color: var(--dar-ink);
    font-weight: 600;
    line-height: 1.18;
    /* Josefin Sans sits wide by default; a hair of negative tracking at
       display sizes matches how the live site reads. */
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

.dar-body :where(h1) { font-size: var(--dar-fs-h1); font-weight: 700; }
.dar-body :where(h2) { font-size: var(--dar-fs-h2); }
.dar-body :where(h3) { font-size: var(--dar-fs-h3); }
.dar-body :where(h4) { font-size: var(--dar-fs-h4); }
.dar-body :where(h5) { font-size: var(--dar-fs-h5); letter-spacing: 0; }
.dar-body :where(h6) { font-size: var(--dar-fs-h6); letter-spacing: 0; }

.dar-body :where(p) { margin: 0 0 1.15em; }
.dar-body :where(p):last-child { margin-bottom: 0; }

.dar-body :where(a) {
    color: var(--dar-olive);
    text-decoration: none;
    transition: color .18s var(--dar-ease);
}
.dar-body :where(a):hover { color: var(--dar-olive-dark); }

.dar-body img { max-width: 100%; height: auto; display: block; }

.dar-body ul, .dar-body ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.dar-body li { margin-bottom: 0.4em; }

.dar-body blockquote {
    margin: 1.75rem 0;
    padding: 0.35rem 0 0.35rem 1.35rem;
    border-left: 3px solid var(--dar-sage);
    color: var(--dar-ink-soft);
    font-style: italic;
}

.dar-body hr {
    border: 0;
    border-top: 1px solid var(--dar-rule);
    margin: 2.5rem 0;
}

/* Visible focus for keyboard users — the Neve original had none. */
.dar-body :focus-visible {
    outline: 3px solid var(--dar-olive);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Also (0,2,0) — see the specificity note in the button section. */
.dar-body .skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: .75rem 1.25rem;
    background: var(--dar-olive);
    color: var(--dar-white);
    font-weight: 600;
}
.dar-body .skip-to-content:focus {
    left: 1rem;
    top: 1rem;
    color: var(--dar-white);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.dar-container {
    width: 100%;
    max-width: var(--dar-container);
    margin-inline: auto;
    padding-inline: var(--dar-gutter);
}
.dar-container--narrow { max-width: var(--dar-container-n); }

.dar-section { padding-block: var(--dar-section-y); }
.dar-section--wash  { background: var(--dar-wash); }
.dar-section--olive { background: var(--dar-wash-olive); }
.dar-section--tight { padding-block: calc(var(--dar-section-y) * .6); }

.dar-eyebrow {
    display: block;
    font-size: var(--dar-fs-xs);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dar-sage);
    margin-bottom: .75rem;
}

.dar-lede {
    font-size: var(--dar-fs-lg);
    color: var(--dar-ink-soft);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   5. Buttons — the live site's pill "Call" / "Text" rails
   -------------------------------------------------------------------------- */
.dar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-sm);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s var(--dar-ease),
                color .18s var(--dar-ease),
                border-color .18s var(--dar-ease),
                transform .18s var(--dar-ease),
                box-shadow .18s var(--dar-ease);
}

/* NOTE ON SPECIFICITY
   The base link rule `.dar-body a` is (0,1,1) — a class plus a type selector.
   A bare `.dar-btn--primary` is only (0,1,0), so it LOSES to it and every
   button that happens to be an <a> would inherit the olive link colour
   (invisible on an olive fill). Every button colour rule below is therefore
   scoped with `.dar-body` to reach (0,2,0) and win outright. */
.dar-body .dar-btn--primary {
    background: var(--dar-olive);
    border-color: var(--dar-olive);
    color: var(--dar-white);
}
.dar-body .dar-btn--primary:hover {
    background: var(--dar-olive-dark);
    border-color: var(--dar-olive-dark);
    color: var(--dar-white);
    transform: translateY(-1px);
    box-shadow: var(--dar-shadow-sm);
}

.dar-body .dar-btn--ghost {
    background: transparent;
    border-color: var(--dar-olive);
    color: var(--dar-olive);
}
.dar-body .dar-btn--ghost:hover {
    background: var(--dar-olive);
    color: var(--dar-white);
}

.dar-body .dar-btn--on-dark {
    background: var(--dar-white);
    border-color: var(--dar-white);
    color: var(--dar-olive-darker);
}
.dar-body .dar-btn--on-dark:hover {
    background: transparent;
    color: var(--dar-white);
    border-color: var(--dar-white);
}

.dar-btn--sm    { padding: .55rem 1.1rem; font-size: var(--dar-fs-xs); }
.dar-btn--block { width: 100%; }
.dar-btn__icon  { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   6. Header
   Mirrors the live site: a top rail with Call (left) / centered logo /
   Text (right), and a second rail with centered primary nav.
   -------------------------------------------------------------------------- */
.dar-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dar-white);
    border-bottom: 1px solid var(--dar-rule);
    transition: box-shadow .2s var(--dar-ease);
}
.dar-header.is-stuck { box-shadow: var(--dar-shadow); }

.dar-header__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
}
.dar-header__rail       { display: flex; align-items: center; gap: .5rem; }
.dar-header__rail--right { justify-content: flex-end; }

.dar-logo { display: inline-flex; justify-self: center; }
.dar-logo img {
    width: auto;
    height: 62px;
    max-height: 62px;
    object-fit: contain;
}

.dar-header__bottom {
    border-top: 1px solid var(--dar-rule);
    display: flex;
    justify-content: center;
}

.dar-nav__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dar-nav__menu > li { position: relative; margin: 0; }

.dar-nav__menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 1.05rem 1.15rem;
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-sm);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--dar-ink);
    border-bottom: 3px solid transparent;
    transition: color .18s var(--dar-ease), border-color .18s var(--dar-ease);
}
.dar-nav__menu > li > a:hover,
.dar-nav__menu > li.is-active > a {
    color: var(--dar-olive);
    border-bottom-color: var(--dar-olive);
}

.dar-caret { font-size: .7em; line-height: 1; transition: transform .18s var(--dar-ease); }
.dar-nav__menu > li:hover .dar-caret { transform: rotate(180deg); }

/* Dropdown */
.dar-nav__submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 250px;
    margin: 0;
    padding: .5rem 0;
    list-style: none;
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: var(--dar-radius);
    box-shadow: var(--dar-shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s var(--dar-ease), transform .18s var(--dar-ease);
}
.dar-nav__menu > li:hover > .dar-nav__submenu,
.dar-nav__menu > li:focus-within > .dar-nav__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.dar-nav__submenu li { margin: 0; }
.dar-nav__submenu a {
    display: block;
    padding: .6rem 1.1rem;
    font-size: var(--dar-fs-sm);
    color: var(--dar-ink);
    line-height: 1.4;
}
.dar-nav__submenu a:hover {
    background: var(--dar-wash-olive);
    color: var(--dar-olive-dark);
}

.dar-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--dar-ink);
    cursor: pointer;
}
.dar-burger svg { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   7. Mobile drawer
   -------------------------------------------------------------------------- */
.dar-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(18, 18, 18, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--dar-ease), visibility .25s var(--dar-ease);
}
.dar-mobile-overlay.is-open { opacity: 1; visibility: visible; }

.dar-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    width: min(340px, 86vw);
    background: var(--dar-white);
    box-shadow: var(--dar-shadow-lg);
    transform: translateX(100%);
    transition: transform .28s var(--dar-ease);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.dar-mobile.is-open { transform: translateX(0); }

.dar-mobile__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem var(--dar-gutter);
    border-bottom: 1px solid var(--dar-rule);
}
.dar-mobile__brand {
    font-family: var(--dar-font-heading);
    font-weight: 700;
    font-size: var(--dar-fs-sm);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dar-olive);
    line-height: 1.3;
}
.dar-mobile__close {
    width: 40px;
    height: 40px;
    flex: none;
    font-size: 1.9rem;
    line-height: 1;
    background: transparent;
    border: 0;
    color: var(--dar-ink);
    cursor: pointer;
}

.dar-mobile__list { list-style: none; margin: 0; padding: .5rem 0; flex: 1; }
.dar-mobile__list li { margin: 0; }
.dar-mobile__list a {
    display: block;
    padding: .85rem var(--dar-gutter);
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-base);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dar-ink);
}
.dar-mobile__list a:hover { background: var(--dar-wash-olive); color: var(--dar-olive-dark); }
.dar-mobile__list .dar-mobile__sub a {
    padding-left: calc(var(--dar-gutter) + 1rem);
    font-size: var(--dar-fs-sm);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--dar-ink-soft);
}

.dar-mobile__cta {
    display: grid;
    gap: .6rem;
    padding: 1.1rem var(--dar-gutter) 1.6rem;
    border-top: 1px solid var(--dar-rule);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.dar-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(420px, 58vh, 620px);
    padding-block: var(--dar-section-y);
    background: var(--dar-wash-olive);
    background-size: cover;
    background-position: center;
    color: var(--dar-ink);
    text-align: center;
}
.dar-hero--image { color: var(--dar-white); }
.dar-hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,18,18,.45) 0%, rgba(18,18,18,.6) 100%);
}
.dar-hero--image .dar-hero__inner { color: var(--dar-white); }
.dar-hero--image .dar-hero__title,
.dar-hero--image .dar-hero__text { color: var(--dar-white); }

.dar-hero__inner { position: relative; z-index: 1; width: 100%; }
.dar-hero__title { margin-bottom: .5rem; }
.dar-hero__text {
    max-width: 44ch;
    margin-inline: auto;
    font-size: var(--dar-fs-lg);
    color: var(--dar-ink-soft);
}
.dar-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.9rem;
}

/* Olive-on-dark fails contrast, so the ghost button goes white over imagery. */
.dar-body .dar-hero--image .dar-btn--ghost {
    border-color: var(--dar-white);
    color: var(--dar-white);
}
.dar-body .dar-hero--image .dar-btn--ghost:hover {
    background: var(--dar-white);
    color: var(--dar-olive-darker);
}

/* --------------------------------------------------------------------------
   9. Content blocks
   -------------------------------------------------------------------------- */
.dar-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
    align-items: center;
}
.dar-split__media img {
    width: 100%;
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow);
}

.dar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.dar-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
    background: var(--dar-white);
    border: 1px solid var(--dar-rule);
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow-sm);
    transition: transform .2s var(--dar-ease), box-shadow .2s var(--dar-ease);
}
.dar-card:hover { transform: translateY(-3px); box-shadow: var(--dar-shadow); }
.dar-card__title { font-size: var(--dar-fs-h4); margin-bottom: .5rem; }
.dar-card__text  { color: var(--dar-ink-soft); }

.dar-section__head {
    max-width: 62ch;
    margin: 0 auto clamp(2rem, 1.6rem + 1.6vw, 3rem);
    text-align: center;
}

/* Testimonials */
.dar-quote {
    padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
    background: var(--dar-white);
    border-radius: var(--dar-radius-lg);
    box-shadow: var(--dar-shadow-sm);
    border-top: 3px solid var(--dar-sage);
}
.dar-quote__text { font-style: italic; color: var(--dar-ink-soft); }
.dar-quote__cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--dar-font-heading);
    font-weight: 700;
    font-size: var(--dar-fs-sm);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dar-olive);
    font-style: normal;
}

/* Full-width call to action */
.dar-cta {
    background: var(--dar-olive);
    color: var(--dar-white);
    text-align: center;
}
.dar-cta h2, .dar-cta h3 { color: var(--dar-white); }
.dar-cta p { color: rgba(255, 255, 255, .92); }
.dar-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.dar-footer {
    background: var(--dar-dark);
    color: rgba(255, 255, 255, .78);
    padding-top: var(--dar-section-y);
    font-size: var(--dar-fs-sm);
}
.dar-footer a { color: rgba(255, 255, 255, .78); }
.dar-footer a:hover { color: var(--dar-sage-light); }

.dar-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    padding-bottom: var(--dar-section-y);
}
/* The logo is navy type + a full-colour illustration on transparent, so it
   disappears on the dark footer. Inverting it flattens the artwork to a white
   silhouette and loses the brand entirely — instead it sits on a white chip,
   which keeps the real logo colours intact. */
.dar-footer__logo {
    display: inline-block;
    padding: .7rem .9rem;
    background: var(--dar-white);
    border-radius: var(--dar-radius);
}
.dar-footer__logo img {
    height: 58px;
    width: auto;
}
.dar-footer__title {
    font-family: var(--dar-font-heading);
    font-size: var(--dar-fs-sm);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dar-white);
    margin-bottom: 1rem;
}
.dar-footer__list { list-style: none; margin: 0; padding: 0; }
.dar-footer__list li { margin-bottom: .55rem; }

.dar-footer__hours { display: grid; gap: .4rem; }
.dar-footer__hours div { display: flex; justify-content: space-between; gap: 1rem; }
.dar-footer__hours dt { color: rgba(255, 255, 255, .78); }
.dar-footer__hours dd { margin: 0; color: var(--dar-white); }

.dar-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.dar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    transition: background-color .18s var(--dar-ease), border-color .18s var(--dar-ease);
}
.dar-social a:hover { background: var(--dar-olive); border-color: var(--dar-olive); }
.dar-social svg { width: 18px; height: 18px; fill: currentColor; }

.dar-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-block: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: var(--dar-fs-xs);
    color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   11. Rich content (Pages / Blog bodies)
   -------------------------------------------------------------------------- */
.dar-rich > :first-child { margin-top: 0; }
.dar-rich > :last-child  { margin-bottom: 0; }
.dar-rich h2 { margin-top: 2.25em; }
.dar-rich h3 { margin-top: 1.9em; }
.dar-rich img { border-radius: var(--dar-radius); margin-block: 1.75rem; }
.dar-rich table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1.75rem;
    font-size: var(--dar-fs-sm);
}
.dar-rich th, .dar-rich td {
    padding: .7rem .9rem;
    border: 1px solid var(--dar-rule);
    text-align: left;
}
.dar-rich th { background: var(--dar-wash); font-weight: 700; }

/* Wide content must scroll inside itself, never the page. */
.dar-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .dar-header__bottom { display: none; }
    .dar-burger { display: inline-flex; }
    .dar-header__top {
        grid-template-columns: auto 1fr auto;
        padding-block: .85rem;
    }
    .dar-logo { justify-self: center; }
    .dar-logo img { height: 52px; }
    /* The "Call" rail collapses to an icon button; "Text" is in the drawer. */
    .dar-header__rail--left .dar-btn__label { display: none; }
    .dar-header__rail--left .dar-btn { padding: .6rem; border-radius: 50%; }
}

@media (max-width: 560px) {
    .dar-logo img { height: 44px; }
    .dar-hero { text-align: center; }
    .dar-footer__bottom { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   13. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .dar-body *,
    .dar-body *::before,
    .dar-body *::after {
        animation-duration: .01ms;
        animation-iteration-count: 1;
        transition-duration: .01ms;
        scroll-behavior: auto;
    }
}

@media print {
    .dar-header, .dar-footer, .dar-mobile, .dar-mobile-overlay,
    .dar-burger, .dar-hero__actions, .dar-cta__actions { display: none; }
    .dar-body { color: #000; background: #fff; }
}
