/* Ask Thai IVF's colours: calm and warm, not clinical. A deep blue-teal (#1b5874, bluer and darker than
   Thai IVF Guide's #0f6f66) as the primary (header bar, links, buttons, focus), a warm sand used sparingly (the
   line under the header, the intro box's edge), and warm off-white neutrals. Success (an accepted answer) is a
   leaf green, always with its tick.
   Contrast on the page background (#fbfaf7): text 14:1, muted text 6.1:1, blue-teal 7.5:1, sand text 6.0:1,
   success 6.2:1; white on the blue-teal 7.8:1, on the success green 6.4:1; blue-teal on its soft tint 6.6:1.
   Only the skins' variables are set (as sites/example-qa does): Bootstrap's and answer-extra's for the answer
   skin, --basic-… for basic and --dq-… for discourse, so the colours hold if the skin changes. */
:root {
    --ati-blue: #1b5874;
    --ati-blue-rgb: 27, 88, 116;
    --ati-blue-hover: #154a62;
    --ati-blue-active: #113d51;
    --ati-blue-soft: #e4eef2;
    --ati-sand: #d9ab62;          /* lines and edges only, never text */
    --ati-sand-text: #85571a;
    --ati-sand-soft: #f7efe1;
    --ati-ink: #1f2a33;
    --ati-muted: #56606a;
    --ati-bg: #fbfaf7;
    --ati-sand-1: #f4f1ea;
    --ati-sand-2: #efeae0;
    --ati-line: #e6e0d4;
    --ati-line-strong: #d5cdbf;
    --ati-success: #2e6b30;
    --ati-success-rgb: 46, 107, 48;
    --ati-success-soft: #edf5ec;
    --ati-success-line: #b8d6b5;
    --ati-focus: rgba(27, 88, 116, 0.75);
}

/* answer skin (Bootstrap, public/static/answer-extra/extra.css). [data-bs-theme=light] is on <html>. */
:root, [data-bs-theme=light] {
    --bs-primary: var(--ati-blue);
    --bs-primary-rgb: var(--ati-blue-rgb);
    --bs-primary-text-emphasis: var(--ati-blue-active);
    --bs-primary-bg-subtle: var(--ati-blue-soft);
    --bs-primary-border-subtle: #a9c6d3;
    --bs-link-color: var(--ati-blue);
    --bs-link-color-rgb: var(--ati-blue-rgb);
    --bs-link-hover-color: var(--ati-blue-hover);
    --bs-link-hover-color-rgb: 21, 74, 98;
    --bs-success: var(--ati-success);
    --bs-success-rgb: var(--ati-success-rgb);
    --bs-success-text-emphasis: #214f23;
    --bs-success-bg-subtle: var(--ati-success-soft);
    --bs-success-border-subtle: var(--ati-success-line);
    --bs-focus-ring-color: var(--ati-focus);
    --bs-body-color: var(--ati-ink);
    --bs-body-color-rgb: 31, 42, 51;
    --bs-emphasis-color: var(--ati-ink);
    --bs-secondary-color: var(--ati-muted);
    --bs-body-bg: var(--ati-bg);
    --bs-body-bg-rgb: 251, 250, 247;
    --bs-border-color: var(--ati-line);
    --bs-gray-100: var(--ati-sand-1);
    --bs-gray-200: var(--ati-sand-2);
    --bs-secondary-bg: var(--ati-sand-2);
    --bs-tertiary-bg: var(--ati-sand-1);
    --qa-primary-hover: var(--ati-blue-hover);
    --qa-primary-active: var(--ati-blue-active);
    --qa-focus-border: var(--ati-blue);
    --qa-focus-ring: var(--ati-focus);
    --qa-focus-ring-strong: var(--ati-blue);
    /* The header's search box: darker than the bar, so its white text and placeholder read. */
    --qa-header-search-bg: rgba(0, 0, 0, 0.2);
    --qa-header-search-border: rgba(255, 255, 255, 0.25);
    --qa-header-search-placeholder: rgba(255, 255, 255, 0.85);
}
/* The blue-teal header bar, with the sand line under it; focus rings on it are white. */
#header { --qa-focus-ring: rgba(255, 255, 255, 0.85); --bs-focus-ring-color: rgba(255, 255, 255, 0.85); box-shadow: inset 0 -3px 0 var(--ati-sand), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08); }
#header .btn:focus-visible { box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.85); }

/* basic skin (public/static/basic/basic.css). */
:root {
    --basic-text: var(--ati-ink);
    --basic-muted: var(--ati-muted);
    --basic-line: var(--ati-line-strong);
    --basic-bg: var(--ati-bg);
    --basic-soft: var(--ati-sand-1);
    --basic-link: var(--ati-blue);
    --basic-link-hover: var(--ati-blue-hover);
    --basic-on-link: #fff;
    --basic-header-rule: var(--ati-sand);
    --basic-focus: var(--ati-blue);
    --basic-success: var(--ati-success);
    --basic-header-rule-width: 3px;
}

/* discourse skin (public/static/discourse/discourse.css). */
:root {
    --dq-text: var(--ati-ink);
    --dq-muted: var(--ati-muted);
    --dq-faint: #5d6770;
    --dq-line: var(--ati-line);
    --dq-line-strong: var(--ati-line-strong);
    --dq-soft: var(--ati-sand-1);
    --dq-hover: var(--ati-sand-2);
    --dq-bg: var(--ati-bg);
    --dq-link: var(--ati-blue);
    --dq-accent: var(--ati-blue);
    --dq-accent-hover: var(--ati-blue-hover);
    --dq-focus: var(--ati-focus);
    --dq-success: var(--ati-success);
    --dq-success-soft: var(--ati-success-soft);
    --c-title-bar: var(--ati-blue-soft);
    /* Topic colours (categories' tone: 0-7), all at least 4.5:1 on the page background. */
    --c-tone-0: var(--ati-blue);
    --c-tone-1: var(--ati-sand-text);
    --c-tone-2: #2f6b6f;
    --c-tone-3: #5c5486;
    --c-tone-4: #8a4f3a;
    --c-tone-5: #3f6a3c;
    --c-tone-6: #7a5f1f;
    --c-tone-7: #4a5560;
    --c-tone-8: #9a3f36;
    --c-tone-9: #2b6587;
}
.dq-header { border-bottom: 3px solid var(--ati-sand); }

/* Side navigation (desktop and the phone drawer): hover and the current page use the logo's sand, the same soft
   tint as the topic tags (a paler one on hover). Text on the current item is the dark sand-brown of the tags. */
:root { --an-side-nav-link-hover-color: #5a4520; }
#sideNav .nav-link:hover, #mobileNav .nav-link:hover { background-color: #fbf6ec; }
#sideNav .nav-link.active, #mobileNav .nav-link.active { color: #5a4520; background-color: var(--ati-sand-soft); }
/* Topic tags: a soft tint of the header's blue-teal with blue-teal text, as Apache Answer tints its tags with the
   primary colour. Sand stays for navigation state (the current menu item), so a tag never looks like a selected
   item and the two warm beiges don't sit side by side. Blue-teal on its soft tint is 6.6:1. */
:root, [data-bs-theme=light] { --qa-tag-bg: var(--ati-blue-soft); --qa-tag-text: var(--ati-blue-active); }
.badge-tag:hover { background: #d3e3ea; text-decoration: none; }

/* Type: Inter (SIL OFL 1.1, fonts/OFL.txt), self-hosted so pages make no third-party requests. A plain, neutral sans
   drawn for screens and highly legible at body sizes (two earlier choices read as too rounded and too styled).
   Thai IVF Journey keeps the system font, so the two sites read differently. One
   variable file per style covers every weight used (400-700); the woff2 files are @fontsource-variable/inter 5.3.0
   (latin, latin-ext and latin italic). */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/inter-latin-ext-wght-normal.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: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/inter-latin-wght-normal.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;
}
@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/inter-latin-wght-italic.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;
}
:root, [data-bs-theme=light] {
    --ati-font: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --bs-font-sans-serif: var(--ati-font);
    --bs-body-font-family: var(--ati-font);
    --dq-font: var(--ati-font);
}
body { font-family: var(--ati-font); }
/* Headings in semibold read calmer and firmer than Bootstrap's 500. Inter is spaced for body sizes, so the large
   headings sit slightly tighter; body text keeps no tracking. */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 600; }
h1, .h1 { letter-spacing: -0.02em; }
h2, .h2 { letter-spacing: -0.011em; }
/* Inter runs wider, so on phones the site name in the header steps down a little to stay whole at 390px. */
@media (max-width: 575.98px) { #header .navbar-brand span { font-size: 1.125rem; letter-spacing: -0.014em; } }
