/* theme.css — Feriday's look (overhaul of 8 Nov 2026), over Tabler 1.5's tokens.
 *
 * Palette from the logo brief (craft, option B "Streak"): indigo #2B2D6E and marigold
 * #FFB627, on a warm off-white. Tabler stays the component library; this file re-points
 * its tokens and adds the few pieces it has no equivalent for (the brand, the page head,
 * the home page, the planner's results). Loaded after tabler/brand/app.css.
 *
 * Contrast (WCAG): ink #1B1C3A on ground #FAF7F0 15.6:1; muted #585A78 6.5:1; indigo
 * #2B2D6E on white 12.4:1. Marigold is a FILL, never text on a light ground (1.7:1);
 * indigo text on marigold is 7.6:1. Dark: ink #ECEBF7 on #12132B 15.9:1, marigold
 * on #12132B 10.4:1.
 *
 * Fonts are self-hosted (assets/fonts, SIL OFL): Fraunces for headings, Inter for text.
 */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 500; font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- tokens ------------------------------------------------------------- */
:root, [data-bs-theme=light] {
  --fd-indigo: #2B2D6E;
  --fd-indigo-deep: #1E1F52;
  --fd-indigo-night: #17183F;
  --fd-marigold: #FFB627;
  --fd-marigold-soft: #FFEBC2;
  --fd-ground: #FAF7F0;
  --fd-ground-2: #F2EDE1;
  --fd-surface: #FFFFFF;
  --fd-ink: #1B1C3A;
  --fd-ink-2: #3A3C5E;
  --fd-muted: #585A78;
  --fd-line: #E6E0D2;
  --fd-hol: var(--fd-indigo);       /* a public holiday */
  --fd-hol-fg: #FFFFFF;
  --fd-leave: var(--fd-marigold);   /* a leave day you take */
  --fd-leave-fg: var(--fd-indigo-deep);
  --fd-wknd: #EFEADF;
  --fd-shadow: 0 1px 2px rgba(27, 28, 58, .05), 0 4px 16px rgba(27, 28, 58, .05);
  --fd-serif: Fraunces, Georgia, "Times New Roman", serif;

  --tblr-font-sans-serif: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tblr-body-font-family: var(--tblr-font-sans-serif);
  --tblr-body-bg: var(--fd-ground);
  --tblr-body-color: var(--fd-ink);
  --tblr-bg-surface: var(--fd-surface);
  --tblr-bg-surface-secondary: var(--fd-ground-2);
  --tblr-bg-surface-tertiary: var(--fd-ground-2);
  --tblr-border-color: var(--fd-line);
  --tblr-card-border-color: var(--fd-line);
  --tblr-primary: #2B2D6E;
  --tblr-primary-rgb: 43, 45, 110;
  --tblr-primary-fg: #FFFFFF;
  --tblr-primary-darken: #1E1F52;
  --tblr-primary-lt: #E6E6F3;
  --tblr-link-color: #2B2D6E;
  --tblr-link-color-rgb: 43, 45, 110;
  --tblr-link-hover-color: #1E1F52;
  --tblr-link-hover-color-rgb: 30, 31, 82;
  --tblr-secondary: #585A78;
  --tblr-secondary-rgb: 88, 90, 120;
  --tblr-secondary-color: #585A78;
  --tblr-muted: #585A78;
  --tblr-yellow: #FFB627;
  --tblr-warning: #FFB627;
}
[data-bs-theme=dark] {
  --fd-ground: #12132B;
  --fd-ground-2: #1B1D3E;
  --fd-surface: #1A1C3D;
  --fd-ink: #ECEBF7;
  --fd-ink-2: #CFCFE6;
  --fd-muted: #A7A8C9;
  --fd-line: #2E3164;
  --fd-hol: #7C80E8;
  --fd-hol-fg: #0E0F26;
  --fd-leave: var(--fd-marigold);
  --fd-leave-fg: #17183F;
  --fd-wknd: #22254A;
  --fd-shadow: 0 1px 2px rgba(0, 0, 0, .3);

  --tblr-body-bg: var(--fd-ground);
  --tblr-body-color: var(--fd-ink);
  --tblr-bg-surface: var(--fd-surface);
  --tblr-bg-surface-secondary: var(--fd-ground-2);
  --tblr-bg-surface-tertiary: var(--fd-ground-2);
  --tblr-border-color: var(--fd-line);
  --tblr-card-border-color: var(--fd-line);
  --tblr-primary: #FFB627;
  --tblr-primary-rgb: 255, 182, 39;
  --tblr-primary-fg: #17183F;
  --tblr-primary-darken: #F0A30C;
  --tblr-primary-lt: #3A3420;
  --tblr-link-color: #FFC95A;
  --tblr-link-color-rgb: 255, 201, 90;
  --tblr-link-hover-color: #FFDB8F;
  --tblr-link-hover-color-rgb: 255, 219, 143;
  --tblr-secondary: #A7A8C9;
  --tblr-secondary-rgb: 167, 168, 201;
  --tblr-secondary-color: #A7A8C9;
  --tblr-muted: #A7A8C9;
}

/* ---- base --------------------------------------------------------------- */
html { overflow-x: clip; }
body { background: var(--fd-ground); color: var(--fd-ink); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3, .page-title { font-family: var(--fd-serif); font-weight: 600; letter-spacing: -.01em; color: var(--fd-ink); }
h1, .h1, .page-title { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.85rem); line-height: 1.08; }
h2, .h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); line-height: 1.15; }
h3, .h3 { font-size: 1.25rem; line-height: 1.2; }
.card-title { font-family: var(--fd-serif); font-weight: 600; font-size: 1.2rem; }
a { text-underline-offset: .18em; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 2000; padding: .5rem .9rem; background: var(--fd-marigold); color: var(--fd-indigo-deep); border-radius: 8px; }

/* Cards: white on the warm ground, a hairline and a soft lift. */
.card { border-color: var(--fd-line); border-radius: 14px; box-shadow: var(--fd-shadow); background: var(--fd-surface); }
.card > .card-header:first-child, details.card > summary.card-header { border-radius: 14px 14px 0 0; }
.card-table thead th, .table thead th { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fd-muted); font-weight: 600; background: transparent; }
.table > :not(caption) > * > * { border-bottom-color: var(--fd-line); }
.btn { border-radius: 10px; font-weight: 500; }
.btn:not(.btn-primary):not(.btn-link):not(.btn-ghost-light) { background: var(--fd-surface); border-color: var(--fd-line); color: var(--fd-ink); }
.btn:not(.btn-primary):not(.btn-link):not(.btn-ghost-light):hover { border-color: var(--fd-indigo); color: var(--fd-indigo); }
[data-bs-theme=dark] .btn:not(.btn-primary):not(.btn-link):not(.btn-ghost-light):hover { border-color: var(--fd-marigold); color: var(--fd-marigold); }
.btn-primary { font-weight: 600; }
.form-control, .form-select { border-radius: 10px; border-color: #D8D1C0; background-color: var(--fd-surface); min-height: 2.75rem; }
[data-bs-theme=dark] .form-control, [data-bs-theme=dark] .form-select { border-color: var(--fd-line); }
.form-control:focus, .form-select:focus { border-color: var(--fd-indigo); box-shadow: 0 0 0 .2rem rgba(255, 182, 39, .45); }
.form-label { font-weight: 500; font-size: .875rem; }
.alert { border-radius: 12px; display: block; }
.badge { border-radius: 999px; font-weight: 600; }
.bg-primary-lt { background: var(--fd-marigold-soft) !important; color: var(--fd-indigo-deep) !important; }
[data-bs-theme=dark] .bg-primary-lt { background: rgba(255, 182, 39, .16) !important; color: #FFD27A !important; }
.progress-bar { background: var(--fd-marigold); }

/* ---- header: indigo bar, the brand, the menu ------------------------------ */
.fd-nav { --tblr-navbar-bg: var(--fd-indigo); --tblr-navbar-color: #DCDDF5; --tblr-navbar-hover-color: #fff; --tblr-navbar-active-color: #fff;
  --tblr-navbar-border-color: transparent; background: var(--fd-indigo); color: #fff; min-height: 4rem; border: 0; }
[data-bs-theme=dark] .fd-nav { background: var(--fd-indigo-night); --tblr-navbar-bg: var(--fd-indigo-night); box-shadow: inset 0 -1px 0 var(--fd-line); }
.fd-nav .container-xl { gap: .5rem; }
.fd-nav .navbar-toggler { color: #fff; border: 0; padding: .5rem; }
.fd-nav .navbar-toggler-icon { filter: invert(1); }
.fd-nav .nav-link { color: #DCDDF5; font-weight: 500; font-size: .925rem; padding: .5rem .7rem !important; border-radius: 8px; }
.fd-nav .nav-link:hover, .fd-nav .nav-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); }
.fd-nav .nav-item.active > .nav-link { color: #fff; box-shadow: inset 0 -3px 0 var(--fd-marigold); border-radius: 8px 8px 0 0; }
.fd-nav .dropdown-menu { border-radius: 12px; border-color: var(--fd-line); box-shadow: 0 12px 32px rgba(23, 24, 63, .18); padding: .4rem; }
.fd-nav .dropdown-item { border-radius: 8px; }
.fd-nav .dropdown-item.active, .fd-nav .dropdown-item:active { background: var(--fd-marigold-soft); color: var(--fd-indigo-deep); }
[data-bs-theme=dark] .fd-nav .dropdown-item.active { background: rgba(255, 182, 39, .18); color: #FFD27A; }
.fd-states { columns: 2; min-width: 22rem; }
.fd-nav .btn-ghost-light { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .22); }
.fd-nav .btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 991.98px) {
  .fd-nav .navbar-collapse { padding: .5rem 0 1rem; }
  .fd-nav .nav-item.active > .nav-link { box-shadow: inset 3px 0 0 var(--fd-marigold); border-radius: 0 8px 8px 0; }
  .fd-nav .dropdown-menu { background: rgba(255, 255, 255, .06); border: 0; box-shadow: none; }
  .fd-nav .dropdown-menu .dropdown-item { color: #DCDDF5; }
  .fd-states { columns: 2; min-width: 0; }
}

/* The brand. A slot for craft's wordmark: hp_brand() in src/render.php is the one place
   to swap it. Until then a marigold streak on indigo, and the name in Fraunces. */
.fd-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff !important; text-decoration: none !important; margin-right: 1rem; }
.fd-logo { width: 2.1rem; height: 2.1rem; flex: none; display: block; }
.fd-wordmark { font-family: var(--fd-serif); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }

/* ---- page head: breadcrumb as an eyebrow, the title, the lead, the tools --- */
.fd-head { position: relative; isolation: isolate; padding: 2rem 0 1.25rem; overflow: hidden; }
.fd-head::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(48rem 18rem at 92% -20%, rgba(255, 182, 39, .22), transparent 70%); }
[data-bs-theme=dark] .fd-head::before { background: radial-gradient(48rem 18rem at 92% -20%, rgba(255, 182, 39, .12), transparent 70%); }
.fd-eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--fd-muted); margin-bottom: .6rem; }
.fd-eyebrow a { color: inherit; text-decoration: none; }
.fd-eyebrow a:hover { color: var(--fd-ink); text-decoration: underline; }
.fd-eyebrow .sep { margin: 0 .4rem; color: var(--fd-marigold); }
.fd-head h1 { margin: 0 0 .75rem; max-width: 52rem; }
.fd-lead { font-size: 1.05rem; color: var(--fd-ink-2); max-width: 48rem; margin-bottom: 1rem; }
.fd-lead .text-secondary { color: var(--fd-muted) !important; }
.fd-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* Years as one segmented control. */
.fd-years { display: inline-flex; background: var(--fd-surface); border: 1px solid var(--fd-line); border-radius: 12px; padding: 3px; gap: 2px; }
.fd-years a { padding: .3rem .7rem; border-radius: 9px; font-weight: 600; font-size: .875rem; color: var(--fd-muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.fd-years a:hover { color: var(--fd-ink); background: var(--fd-ground-2); }
.fd-years a.active { background: var(--fd-indigo); color: #fff; }
[data-bs-theme=dark] .fd-years a.active { background: var(--fd-marigold); color: var(--fd-indigo-night); }
.page-body { margin-top: .5rem; }

/* ---- footer: deep indigo, a marigold rule ---------------------------------- */
.fd-footer { background: var(--fd-indigo-deep); color: #C9CAEA; border-top: 4px solid var(--fd-marigold); margin-top: 4rem; padding: 2.5rem 0 2rem; }
[data-bs-theme=dark] .fd-footer { background: #0C0D22; }
.fd-footer a { color: #fff; text-decoration: none; }
.fd-footer a:hover { text-decoration: underline; color: var(--fd-marigold); }
.fd-footer h2 { font-family: var(--tblr-font-sans-serif); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fd-marigold); margin-bottom: .75rem; font-weight: 600; }
.fd-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .925rem; }
.fd-footer .fd-wordmark { color: #fff; }
.fd-footer .small { color: #A9AAD3; }

/* ---- shared pieces ---------------------------------------------------------- */
.fd-kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--fd-muted); }
.fd-band { background: var(--fd-indigo); color: #E4E4F7; border-radius: 18px; padding: 1.75rem; position: relative; overflow: hidden; isolation: isolate; }
.fd-band::after { content: ""; position: absolute; z-index: -1; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 39, .55), rgba(255, 182, 39, 0) 68%); }
[data-bs-theme=dark] .fd-band { background: var(--fd-indigo-night); box-shadow: inset 0 0 0 1px var(--fd-line); }
.fd-band h2, .fd-band h3 { color: #fff; }
.fd-band .fd-kicker { color: var(--fd-marigold); }
.fd-band a:not(.btn) { color: var(--fd-marigold); }
.btn-marigold { background: var(--fd-marigold); color: var(--fd-indigo-deep) !important; border: 0; font-weight: 600; }
.btn-marigold:hover { background: #FFC24A; color: var(--fd-indigo-deep); }

/* ---- home ------------------------------------------------------------------- */
.fd-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; padding: 1rem 0 2.5rem; }
.fd-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -.02em; margin: .4rem 0 1rem; }
.fd-hero h1 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, rgba(255, 182, 39, .7) 62%); padding: 0 .08em; }
[data-bs-theme=dark] .fd-hero h1 em { background: none; color: var(--fd-marigold); }
.fd-hero .fd-lead { font-size: 1.15rem; }
.fd-ctas { display: flex; flex-wrap: wrap; gap: .6rem; }
.fd-ctas .btn { height: 3rem; padding: 0 1.25rem; font-size: 1rem; }
.fd-ticket { background: var(--fd-surface); border: 1px solid var(--fd-line); border-radius: 18px; box-shadow: 0 18px 48px rgba(27, 28, 58, .12); overflow: hidden; }
.fd-ticket-head { background: var(--fd-indigo); color: #fff; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
[data-bs-theme=dark] .fd-ticket-head { background: var(--fd-indigo-night); border-bottom: 1px solid var(--fd-line); }
.fd-ticket-head strong { font-family: var(--fd-serif); font-size: 1.25rem; font-weight: 600; }
.fd-ticket-head span { color: var(--fd-marigold); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fd-ticket-row { padding: .9rem 1.25rem; border-top: 1px dashed var(--fd-line); }
.fd-ticket-row:first-of-type { border-top: 0; }
.fd-ticket-row .fd-gain { font-family: var(--fd-serif); font-size: 1.15rem; font-weight: 600; }
.fd-ticket-row .fd-gain b { color: var(--fd-indigo); }
[data-bs-theme=dark] .fd-ticket-row .fd-gain b { color: var(--fd-marigold); }
.fd-ticket-foot { padding: .8rem 1.25rem; background: var(--fd-ground-2); font-size: .85rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.fd-key { display: inline-flex; align-items: center; gap: .35rem; margin-right: .75rem; color: var(--fd-muted); }
.fd-key i { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; }
.fd-key i.h { background: var(--fd-hol); } .fd-key i.l { background: var(--fd-leave); } .fd-key i.w { background: var(--fd-wknd); box-shadow: inset 0 0 0 1px var(--fd-line); }

.fd-section { padding: 2.5rem 0 0; }
.fd-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.fd-section-head h2 { margin: .25rem 0 0; }
.fd-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.fd-place { background: var(--fd-surface); border: 1px solid var(--fd-line); border-radius: 16px; box-shadow: var(--fd-shadow); padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.fd-place-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.fd-place h3 { margin: 0; font-size: 1.45rem; }
.fd-place .fd-lang { font-size: .8rem; color: var(--fd-muted); font-weight: 500; }
.fd-code { font-weight: 700; font-size: .75rem; letter-spacing: .08em; background: var(--fd-marigold); color: var(--fd-indigo-deep); border-radius: 6px; padding: .2rem .45rem; }
.fd-next { background: var(--fd-ground-2); border-radius: 12px; padding: .7rem .85rem; font-size: .9rem; }
.fd-next .fd-in { font-family: var(--fd-serif); font-weight: 600; font-size: 1.05rem; color: var(--fd-ink); }
.fd-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .75rem; font-size: .9rem; }
.fd-links a { display: flex; align-items: center; gap: .4rem; padding: .3rem 0; color: var(--fd-ink); text-decoration: none; }
.fd-links a:hover { color: var(--fd-indigo); text-decoration: underline; }
[data-bs-theme=dark] .fd-links a:hover { color: var(--fd-marigold); }
.fd-links .icon { width: 1rem; height: 1rem; color: var(--fd-muted); }
.fd-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.fd-tool { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem; background: var(--fd-surface); border: 1px solid var(--fd-line); border-radius: 16px; box-shadow: var(--fd-shadow);
  color: var(--fd-ink); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.fd-tool:hover { border-color: var(--fd-indigo); transform: translateY(-2px); color: var(--fd-ink); }
[data-bs-theme=dark] .fd-tool:hover { border-color: var(--fd-marigold); }
.fd-tool .fd-tool-ic { width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--fd-marigold-soft); color: var(--fd-indigo); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .35rem; }
[data-bs-theme=dark] .fd-tool .fd-tool-ic { background: rgba(255, 182, 39, .16); color: var(--fd-marigold); }
.fd-tool strong { font-family: var(--fd-serif); font-size: 1.15rem; font-weight: 600; }
.fd-tool span { color: var(--fd-muted); font-size: .9rem; }
.fd-rank { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.fd-rank ol { margin: 0; padding: 0; list-style: none; display: flex; gap: .6rem; flex-wrap: wrap; }
.fd-rank li { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: .5rem .8rem; font-size: .9rem; }
.fd-rank li b { color: var(--fd-marigold); font-family: var(--fd-serif); font-size: 1.15rem; margin-right: .3rem; }
@media (max-width: 991.98px) {
  .fd-hero { grid-template-columns: 1fr; gap: 1.75rem; padding-top: .5rem; }
  .fd-rank { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .fd-ctas .btn { flex: 1 1 100%; }
  .fd-band { padding: 1.35rem; border-radius: 14px; }
  .fd-head { padding-top: 1.35rem; }
}

/* ---- day strips (home ticket, planner results) ------------------------------- */
.hp-pl-strip { display: flex; flex-wrap: wrap; gap: 3px; margin-top: .6rem; }
.hp-pl-strip span { min-width: 2.35rem; padding: 3px 0 4px; text-align: center; border-radius: 7px; font-size: .78rem; font-weight: 600; line-height: 1.15;
  background: var(--fd-wknd); color: var(--fd-ink-2); font-variant-numeric: tabular-nums; }
.hp-pl-strip span small { display: block; font-size: .6rem; font-weight: 500; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.hp-pl-strip span.h { background: var(--fd-hol); color: var(--fd-hol-fg); }
.hp-pl-strip span.l { background: var(--fd-leave); color: var(--fd-leave-fg); }
.hp-pl-strip span.d { background: transparent; box-shadow: inset 0 0 0 1px var(--fd-line); color: var(--fd-muted); }

/* ---- planner -------------------------------------------------------------------- */
.fd-planner-form { border-top: 4px solid var(--fd-marigold); }
.fd-pl-total { background: var(--fd-indigo); color: #E4E4F7; border: 0; position: relative; overflow: hidden; isolation: isolate; }
.fd-pl-total::after { content: ""; position: absolute; z-index: -1; right: -4rem; top: -5rem; width: 14rem; height: 14rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 39, .5), rgba(255, 182, 39, 0) 68%); }
[data-bs-theme=dark] .fd-pl-total { background: var(--fd-indigo-night); box-shadow: inset 0 0 0 1px var(--fd-line); }
.fd-pl-total .text-secondary { color: #B9BAE0 !important; }
.hp-pl-sum { font-family: var(--fd-serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 600; line-height: 1.1; color: #fff; }
.fd-ratio { background: var(--fd-marigold); color: var(--fd-indigo-deep); font-weight: 700; border-radius: 999px; padding: .35rem .8rem; font-size: 1rem; }
.hp-pl-block { border-left: 0; position: relative; }
.hp-pl-block::before { content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--fd-marigold); }
.hp-pl-block .card-title { font-size: 1.3rem; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .card-title::after { content: "+"; float: right; font-family: var(--tblr-font-sans-serif); color: var(--fd-muted); margin-left: 1rem; }
details.card[open] > summary .card-title::after { content: "–"; }
details.card > summary.card-header { display: block; }
details.card:not([open]) > summary.card-header { border-bottom: 0; border-radius: 14px; }

/* ---- calendars and tables in the new palette -------------------------------------- */
.hp-cal td.hp-hol { background: var(--fd-hol); color: var(--fd-hol-fg); }
.hp-cal td.hp-wknd { background: var(--fd-wknd); }
.hp-sw.hp-hol { background: var(--fd-hol); }
.hp-cal th.hp-wknd-h { color: var(--fd-indigo); }
[data-bs-theme=dark] .hp-cal th.hp-wknd-h { color: var(--fd-marigold); }
.hp-cal td.hp-today { outline-color: var(--fd-marigold); }
tr.hp-row-wknd > td { background: color-mix(in srgb, var(--fd-wknd) 60%, transparent); }

/* Summary stat cards: the number in Fraunces, the icon on a marigold tint. */
.card-sm .avatar { border-radius: 12px; }
.card-sm .h2 { font-family: var(--fd-serif); }

@media print {
  .fd-head::before, .fd-band::after { display: none !important; }
  .fd-head { padding: 0 0 .5rem; }
  .fd-pl-total { background: #fff !important; color: #000 !important; }
  .hp-pl-sum { color: #000 !important; }
}

/* Home: the visitor's own country, ringed in marigold; its other languages as links. */
.fd-place.is-yours { border-color: var(--fd-marigold); box-shadow: 0 0 0 3px rgba(255, 182, 39, .35), var(--fd-shadow); }
.fd-place .fd-lang a { color: var(--fd-muted); }
.fd-place .fd-lang a:hover { color: var(--fd-ink); }
/* A closed <details> card: the title and its +/– on one line. */
details.card > summary .card-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; }
details.card > summary .card-title::after { float: none; }
/* On a phone the other countries shrink to a name and a button, so the list stays short. */
@media (max-width: 575.98px) {
  .fd-place:not(.is-yours) .fd-next, .fd-place:not(.is-yours) .fd-links { display: none; }
  .fd-place:not(.is-yours) { padding: 1rem; gap: .6rem; }
  .fd-ticket-head { flex-direction: column; gap: .2rem; }
}
/* Summary stat cards: the palette's three tones, not Tabler's green and azure. */
.card-sm .avatar.bg-primary { background: var(--fd-indigo) !important; color: #fff !important; }
.card-sm .avatar.bg-green  { background: var(--fd-marigold) !important; color: var(--fd-indigo-deep) !important; }
.card-sm .avatar.bg-azure  { background: #6F72C9 !important; color: #fff !important; }
.card-sm .avatar.bg-orange { background: var(--fd-marigold-soft) !important; color: var(--fd-indigo-deep) !important; }
[data-bs-theme=dark] .card-sm .avatar.bg-primary { background: var(--fd-hol) !important; color: var(--fd-hol-fg) !important; }

/* Tabler's yellow badge is yellow text on a pale ground: unreadable on our cream. */
.badge.bg-yellow-lt { background: var(--fd-marigold-soft) !important; color: var(--fd-indigo-deep) !important; }
[data-bs-theme=dark] .badge.bg-yellow-lt { background: rgba(255, 182, 39, .18) !important; color: #FFD27A !important; }
p.fd-gain { font-family: var(--fd-serif); font-size: 1.1rem; font-weight: 600; }
p.fd-gain b { color: var(--fd-indigo); }
[data-bs-theme=dark] p.fd-gain b { color: var(--fd-marigold); }

/* The wordmark (craft, option B). The icon's tile is the bar's own indigo, so a hairline sets it off. */
.fd-wordmark-img { display: block; height: 2.25rem; width: auto; }
.fd-footer .fd-wordmark-img { height: 2.5rem; }

/* Past and next (assets/tools.js pastNext): dimmed when over, a marigold tag on the next one. */
.fd-past { opacity: .55; }
.fd-past:hover { opacity: .85; }
.fd-badge-past { background: var(--fd-ground-2) !important; color: var(--fd-muted) !important; font-weight: 500; vertical-align: middle; font-family: var(--tblr-font-sans-serif); font-size: .7rem; }
.fd-badge-next { background: var(--fd-marigold) !important; color: var(--fd-indigo-deep) !important; vertical-align: middle; font-family: var(--tblr-font-sans-serif); font-size: .7rem; }
tr.fd-next > td { background: color-mix(in srgb, var(--fd-marigold) 12%, transparent); }
.card.fd-next { border-color: var(--fd-marigold); }
@media print { .fd-past { opacity: 1; } .fd-badge-past, .fd-badge-next { display: none; } }

/* Alerts: dark text on a light tint with a coloured edge. Tabler colours the TEXT with the
   variant, and its warning is now our marigold: 1.7:1 on cream, unreadable (operator, 8 Nov). */
.alert { color: var(--fd-ink) !important; border: 1px solid var(--fd-line); border-left-width: 4px; background: var(--fd-surface); }
.alert a { color: var(--fd-indigo); font-weight: 600; }
.alert-warning { border-left-color: var(--fd-marigold); background: #FFF6E0; }
.alert-info    { border-left-color: #6F72C9; background: #F0F0FA; }
.alert-danger  { border-left-color: #C2412D; background: #FBEDEA; }
.alert-success { border-left-color: #2F8F5B; background: #EAF6EF; }
[data-bs-theme=dark] .alert { color: var(--fd-ink) !important; background: var(--fd-surface); border-color: var(--fd-line); }
[data-bs-theme=dark] .alert a { color: var(--fd-marigold); }
[data-bs-theme=dark] .alert-warning { border-left-color: var(--fd-marigold); background: #2A2640; }
[data-bs-theme=dark] .alert-info    { border-left-color: #7C80E8; }
/* Yellow/orange as TEXT anywhere else: a dark amber that passes on cream (5.9:1). */
.text-warning, .text-yellow, .text-orange { color: #8A5A00 !important; }
.badge.bg-orange-lt, .badge.bg-warning-lt { background: var(--fd-marigold-soft) !important; color: #6B4400 !important; }
[data-bs-theme=dark] .text-warning, [data-bs-theme=dark] .text-yellow, [data-bs-theme=dark] .text-orange { color: #FFC95A !important; }
