/* ==========================================================================
   Shared page shell — Surgeon Gowda's Gastro & Laparoscopy Centre
   Tickets 08, 09, 11, 12. Tokens and components live here and nowhere else.

   Colour rules (design brief):
   - Green is only a fill with Ink text, an underline under Ink link text, or
     text on Deep. It never carries text on Paper or Mist.
   - Surfaces: Paper and Mist. Text: Ink and Graphite. Rules: Hairline.
   - No gradients, shadows, icon circles, counters or carousels.
   ========================================================================== */

:root {
    --paper: #ffffff;
    --mist: #f4f4f4;
    --ink: #282d36;
    --graphite: #505050;
    --hairline: #cad5de;
    --deep: #1d2127;
    --leaf: #77ce24;
    --leaf-dark: #8cc63f;

    --font-serif: "Literata", Georgia, "Times New Roman", serif;
    --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

    --container: 1120px;
    --reading: 66ch;
    --gutter: 24px;
    --header-height: 72px;
    --header-height-compact: 60px;
    --bottombar-height: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --radius-press: 6px;
}

@font-face {
    font-family: "Literata";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/literata-latin-standard-normal.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Hanken Grotesk";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.sg-sheet-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }
}

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

a {
    color: var(--ink);
    text-decoration-line: underline;
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: var(--leaf-dark);
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-optical-sizing: auto;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-variation-settings: "opsz" 48;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    font-variation-settings: "opsz" 32;
}

h3 {
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    font-variation-settings: "opsz" 24;
}

::selection {
    background: var(--leaf);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.sg-footer :focus-visible {
    outline-color: var(--leaf);
}

.sg-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.sg-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sg-skip {
    position: absolute;
    top: -72px;
    left: 16px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--paper);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-press);
}

.sg-skip:focus {
    top: 12px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.sg-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.sg-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: var(--container);
    height: 56px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sg-header.is-compact {
    background: var(--paper);
    border-bottom-color: var(--hairline);
}

@media (min-width: 1024px) {
    .sg-header-inner {
        height: var(--header-height);
        gap: 32px;
        transition: height 160ms ease;
    }

    .sg-header.is-compact .sg-header-inner {
        height: var(--header-height-compact);
    }
}

.sg-wordmark {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 1px;
    color: var(--ink);
    line-height: 1.05;
    text-decoration: none;
}

.sg-wordmark:hover {
    text-decoration: none;
}

.sg-wordmark-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sg-wordmark-sub {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: var(--graphite);
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .sg-wordmark-name {
        font-size: 22px;
    }

    .sg-wordmark-sub {
        font-size: 12px;
    }
}

.sg-nav {
    display: none;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .sg-nav {
        display: flex;
    }
}

.sg-nav > a,
.sg-nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.sg-nav > a:hover,
.sg-nav-toggle:hover {
    text-decoration-line: underline;
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.sg-nav-toggle[aria-expanded="true"] {
    text-decoration-line: underline;
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.sg-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .sg-header-actions {
        margin-left: 0;
    }
}

.sg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--radius-press);
    background: var(--leaf);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.sg-button:hover {
    background: var(--leaf-dark);
    text-decoration: none;
}

.sg-header-actions .sg-button {
    display: none;
}

@media (min-width: 768px) {
    .sg-header-actions .sg-button {
        display: inline-flex;
    }
}

.sg-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.sg-menu-button:hover {
    text-decoration-line: underline;
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

@media (min-width: 1024px) {
    .sg-menu-button {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Procedures panel
   -------------------------------------------------------------------------- */

.sg-procedures {
    position: static;
}

/* The Patients dropdown is not its own positioning context: its panel
   anchors to the sticky header (also the Procedures panel's containing
   block), so it opens directly under the header's bottom edge — 72px tall,
   60px compacted — in both header states, and never covers the nav row. */

.sg-nav-patients {
    position: static;
}

.sg-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--paper);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.sg-panel[hidden] {
    display: none;
}

.sg-panel.is-open {
    opacity: 1;
    transform: none;
}

.sg-panel-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 36px var(--gutter) 44px;
}

.sg-panel-title {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;
}

.sg-panel-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-panel-links li {
    border-top: 1px solid var(--hairline);
}

.sg-panel-link {
    display: block;
    padding: 10px 0 11px;
    text-decoration: none;
}

.sg-panel-link:hover {
    text-decoration: none;
}

.sg-panel-link:hover .sg-panel-name {
    text-decoration-line: underline;
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.sg-panel-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.sg-panel-desc {
    display: block;
    margin-top: 2px;
    color: var(--graphite);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
}

/* The small Patients panel: same style, anchored under the header's bottom
   edge (top: 100% of the header). shell.js sets the inline `right` on open so
   the panel stays right-aligned to the Patients link. */

.sg-panel--narrow {
    left: auto;
    right: 0;
    top: 100%;
    width: min(340px, calc(100vw - 2 * var(--gutter)));
}

.sg-panel-inner--narrow {
    display: block;
    max-width: none;
    padding: 12px var(--gutter) 22px;
}

/* --------------------------------------------------------------------------
   Mobile sheet
   -------------------------------------------------------------------------- */

.sg-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    padding-bottom: calc(var(--bottombar-height) + var(--safe-bottom));
}

.sg-sheet[hidden] {
    display: none;
}

.sg-sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}

.sg-sheet-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sg-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.sg-sheet-body {
    width: 100%;
    max-width: 640px;
    padding: 8px var(--gutter) 40px;
}

.sg-sheet-group {
    margin-top: 24px;
}

.sg-sheet-group-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.sg-sheet-links {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.sg-sheet-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 18px;
    line-height: 1.3;
    text-decoration: none;
    border-bottom: 1px solid var(--hairline);
}

.sg-sheet-links li:last-child a {
    border-bottom: 0;
}

.sg-sheet-links a:hover {
    text-decoration-line: underline;
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.sg-sheet-utility {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
   Bottom action bar
   -------------------------------------------------------------------------- */

.sg-bottombar {
    display: none;
}

@media (max-width: 767px) {
    .sg-bottombar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 300;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-bottom: var(--safe-bottom);
        background: var(--mist);
        border-top: 1px solid var(--hairline);
    }

    .sg-bottombar a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: var(--bottombar-height);
        padding: 4px 8px;
        color: var(--ink);
        font-family: var(--font-sans);
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
    }

    .sg-bottombar a + a {
        border-left: 1px solid var(--hairline);
    }

    .sg-bottombar .sg-bottombar-book {
        background: var(--leaf);
    }

    .sg-bottombar .sg-bottombar-book:hover {
        background: var(--leaf-dark);
    }

    body {
        padding-bottom: calc(var(--bottombar-height) + var(--safe-bottom) + 1px);
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.sg-footer {
    background: var(--deep);
    color: var(--paper);
    padding: 56px 0 0;
}

.sg-footer a {
    color: var(--paper);
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.sg-footer a:hover {
    text-decoration-color: var(--leaf-dark);
}

.sg-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.sg-footer-grid > * {
    min-width: 0;
}

@media (min-width: 720px) {
    .sg-footer-grid {
        grid-template-columns: 1.15fr 1fr;
    }
}

@media (min-width: 1024px) {
    .sg-footer {
        padding-top: 64px;
    }

    .sg-footer-grid {
        grid-template-columns: 1.15fr 1fr 0.7fr;
        gap: 56px;
    }
}

.sg-footer-name {
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--paper);
}

.sg-footer-title {
    margin: 0 0 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--paper);
}

.sg-footer p,
.sg-footer li,
.sg-footer address {
    color: var(--hairline);
    font-size: 15px;
    font-style: normal;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.sg-footer p {
    margin: 0 0 10px;
}

.sg-footer address {
    margin: 0 0 14px;
}

.sg-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-footer li {
    margin: 0 0 4px;
}

.sg-footer li:last-child {
    margin-bottom: 0;
}

.sg-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.sg-footer .sg-footer-hours {
    margin: 0 0 22px;
}

.sg-footer .sg-footer-hours:last-child {
    margin-bottom: 0;
}

.sg-footer-bottom {
    margin-top: 44px;
    padding: 22px 0;
    border-top: 1px solid var(--graphite);
}

.sg-footer-bottom p {
    margin: 0;
    color: var(--hairline);
    font-size: 13px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Page content primitives (shared by the pilot pages)
   -------------------------------------------------------------------------- */

.sg-main {
    display: block;
}

.sg-section {
    padding: 48px 0;
    border-top: 1px solid var(--hairline);
}

@media (min-width: 768px) {
    .sg-section {
        padding: 72px 0;
    }
}

.sg-section--mist {
    background: var(--mist);
}

.sg-reading {
    max-width: var(--reading);
}

.sg-section-head {
    max-width: var(--reading);
}

.sg-section-head h2 {
    margin-bottom: 12px;
}

.sg-section-head p {
    color: var(--graphite);
    font-size: 16px;
    line-height: 1.6;
}

.sg-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 900px) {
    .sg-split {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 64px;
        align-items: start;
    }
}

.sg-hero {
    padding: 40px 0 48px;
}

@media (min-width: 1024px) {
    .sg-hero {
        padding: 72px 0 80px;
    }
}

.sg-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

@media (min-width: 800px) {
    .sg-hero-grid {
        grid-template-columns: minmax(0, 7fr) minmax(240px, 4fr);
        gap: 56px;
        align-items: center;
    }
}

/* Wide banner image in the hero (procedure pages, ticket 09 follow-up): the
   image gets the larger column, since the 7:4 split above is sized for a
   portrait. Stacks (copy, then the full-width image) below 1000px. */

@media (min-width: 1000px) {
    .sg-hero-grid--media {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 48px;
    }
}

@media (min-width: 800px) and (max-width: 999px) {
    .sg-hero-grid--media {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.sg-hero h1 {
    max-width: 18ch;
}

.sg-hero-lead {
    max-width: 56ch;
    margin-top: 24px;
    color: var(--graphite);
    font-size: 19px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .sg-hero-lead {
        font-size: 20px;
    }
}

.sg-hero-note {
    margin-top: 18px;
    color: var(--graphite);
    font-size: 14px;
    line-height: 1.5;
}

.sg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 28px;
}

.sg-actions .sg-button {
    padding: 13px 24px;
    font-size: 16px;
}

.sg-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.sg-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    max-width: 62ch;
    margin: 28px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--hairline);
    list-style: none;
}

.sg-areas a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 14px;
    font-weight: 600;
    text-decoration-color: var(--leaf);
}

.sg-portrait {
    margin: 0;
    justify-self: start;
}

.sg-portrait img {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 500 / 350;
    object-fit: cover;
}

.sg-portrait figcaption {
    margin-top: 8px;
    color: var(--graphite);
    font-size: 13px;
    line-height: 1.5;
}

.sg-rows {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--hairline);
}

.sg-rows li {
    border-bottom: 1px solid var(--hairline);
}

.sg-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
    text-decoration: none;
}

@media (min-width: 720px) {
    .sg-row {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
        gap: 28px;
        align-items: baseline;
        padding: 20px 0;
    }
}

.sg-row-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.sg-row-desc {
    color: var(--graphite);
    font-size: 15px;
    line-height: 1.55;
}

@media (hover: hover) {
    a.sg-row:hover {
        background: var(--mist);
        text-decoration: none;
    }

    a.sg-row:hover .sg-row-name {
        text-decoration-line: underline;
        text-decoration-color: var(--leaf);
        text-decoration-thickness: 3px;
        text-underline-offset: 4px;
    }
}

.sg-quotes {
    max-width: 820px;
    margin-top: 28px;
}

.sg-quote {
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid var(--hairline);
}

.sg-quote:last-child {
    border-bottom: 1px solid var(--hairline);
}

.sg-quote blockquote {
    margin: 0;
}

.sg-quote blockquote p {
    white-space: pre-line;
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.005em;
}

@media (min-width: 768px) {
    .sg-quote blockquote p {
        font-size: 23px;
    }
}

.sg-quote figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: 16px;
}

.sg-quote-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.sg-quote-meta {
    color: var(--graphite);
    font-size: 14px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Interior page patterns (ticket 09: procedure page, weight-loss page,
   contact page; reused by the rollout tickets)
   -------------------------------------------------------------------------- */

/* Interior page hero: one H1, one lead sentence, actions. No stats row. */

.sg-page-hero {
    padding: 40px 0 44px;
}

.sg-page-hero h1 {
    max-width: 20ch;
}

.sg-page-hero-lead {
    max-width: 56ch;
    margin-top: 20px;
    color: var(--graphite);
    font-size: 19px;
    line-height: 1.6;
}

.sg-page-hero .sg-actions {
    margin-top: 24px;
}

@media (min-width: 1024px) {
    .sg-page-hero {
        padding: 64px 0 72px;
    }

    .sg-page-hero-lead {
        font-size: 20px;
    }
}

/* Image-led hero variant (procedure pages with a banner graphic, ticket 09
   follow-up): same grid as the home hero, copy left, the page's existing
   banner image right — uncropped, its own proportions, no frame. Below the
   actions when stacked. Set real width and height; eager, high priority. */

.sg-page-hero-media {
    margin: 0;
}

.sg-page-hero-media img {
    width: 100%;
    height: auto;
}

/* Reading column with headings, lists, figures. */

.sg-prose {
    max-width: var(--reading);
}

.sg-prose h2 {
    margin: 44px 0 16px;
}

.sg-prose > h2:first-child {
    margin-top: 0;
}

.sg-prose h3 {
    margin: 32px 0 12px;
    font-size: clamp(1.25rem, 1.8vw, 1.45rem);
}

.sg-prose ul,
.sg-prose ol {
    margin: 0 0 1em;
    padding-left: 22px;
}

.sg-prose li + li {
    margin-top: 8px;
}

.sg-prose li::marker {
    color: var(--graphite);
}

/* Image or video block. Square, no frame; small graphite caption. */

.sg-media {
    margin: 32px 0;
}

.sg-media img {
    width: 100%;
    height: auto;
}

.sg-media figcaption {
    margin-top: 8px;
    color: var(--graphite);
    font-size: 13px;
    line-height: 1.5;
}

.sg-media-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: var(--mist);
}

/* Tag line under a row: small, quiet, no icons. */

.sg-row-tags {
    display: block;
    margin-top: 6px;
    color: var(--graphite);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

/* Data table: hairline rules only, no fills or gradients. */

.sg-table-wrap {
    overflow-x: auto;
    margin-top: 28px;
    -webkit-overflow-scrolling: touch;
}

.sg-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
}

.sg-table th,
.sg-table td {
    padding: 14px 18px 14px 0;
    border-bottom: 1px solid var(--hairline);
    text-align: left;
    vertical-align: top;
}

.sg-table thead th {
    font-weight: 600;
}

.sg-table tbody td:first-child {
    font-weight: 600;
}

/* FAQ: hairline rules between items, question in serif. */

.sg-faq {
    max-width: 62ch;
    margin-top: 8px;
}

.sg-faq-item {
    padding: 24px 0;
    border-top: 1px solid var(--hairline);
}

.sg-faq-item:last-child {
    border-bottom: 1px solid var(--hairline);
}

.sg-faq-item h3 {
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
}

.sg-faq-item p {
    margin-top: 10px;
    color: var(--graphite);
}

/* Contact details list. */

.sg-contact-list {
    max-width: 62ch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-contact-list li {
    padding: 18px 0;
    border-top: 1px solid var(--hairline);
}

.sg-contact-list li:last-child {
    border-bottom: 1px solid var(--hairline);
}

.sg-contact-list address {
    font-style: normal;
}

/* Form fields: 6px radius, hairline border, no fills. */

.sg-form {
    max-width: 560px;
}

.sg-field {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-bottom: 16px;
    padding: 11px 14px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-press);
}

.sg-field::placeholder {
    color: var(--graphite);
    opacity: 1;
}

textarea.sg-field {
    min-height: 140px;
    resize: vertical;
}

.sg-form .sg-button {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .sg-header,
    .sg-header-inner,
    .sg-panel,
    .sg-button {
        transition: none !important;
    }

    @media (min-width: 1024px) {
        .sg-header.is-compact .sg-header-inner {
            height: var(--header-height);
        }
    }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
    .sg-header,
    .sg-sheet,
    .sg-bottombar,
    .sg-skip {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }

    .sg-footer {
        background: var(--paper);
        color: var(--ink);
    }

    .sg-footer a,
    .sg-footer p,
    .sg-footer li,
    .sg-footer address,
    .sg-footer-title,
    .sg-footer-name,
    .sg-footer-bottom p {
        color: var(--ink);
    }
}
