/* ==========================================================================
   base.css - Thiên Long Kỳ Hiệp
   Fonts, tokens, reset, header / nav / mobile menu, footer and the shared tk- components.
   Values are copied from the approved design (Main / Dang-ky / Menu-mobile .dc.html).

   NOTE: the design uses the browser default box-sizing (content-box), so there is deliberately
   NO global "box-sizing: border-box" here: every width/padding/border number in the design
   keeps its exact meaning. Set box-sizing per element where the design does.

   SHARED CLASSES (tk- = base, hm- = home, rg- = register, pg- = content pages)
   Layout   .tk-wrap                  1200px container, 24px gutter
            .tk-section               96px vertical padding; background by modifier:
              --dark #0b0d14 | --ink2 #11141d (+ top hairline) | --paper #f6f0e3 | --paper2 #fbf8f1
   Heading  .tk-eyebrow(--light)      gold caps label with a leading line (--light = for paper backgrounds;
                                      inside a .tk-section--* the section decides the colour)
            .tk-h2   .tk-lead         section title / intro paragraph (colour follows the section)
   Buttons  .tk-btn + --primary | --ghost | --outline   (aliases .tk-btn-primary/-ghost/-outline)
            size: default 52px | --sm 42px | --lg 56px ; --block = full width
   Surface  .tk-card (paper-2 surface, 1px line border, radius 14, hover lift; NO padding,
            add .tk-card--pad for 24px; .tk-card--static turns the hover lift off)
            .tk-badge --event | --update | --guide (+ --sm)       news type labels
            .tk-link (+ --gold)       bold link with arrow, red on paper / gold on dark
            .tk-notice --info | --warn (+ --compact)              note boxes
            .tk-table inside .tk-table-wrap                        tables (wrap = horizontal scroll on phones)
            .tk-status --green | --amber | --red                   dot + label (the dot is drawn by the class)
            .tk-prose (+ --wide)      long text on paper
   Page     .tk-pagehead .tk-crumbs   dark banner printed by page_head()
   Context  .tk-paper                 add to any custom LIGHT wrapper: red focus ring + paper-style text, buttons, status
   A11y     .sr-only  .tk-skip        visually hidden / skip link
   Hooks    .tk-body (body)  .tk-main (<main id="main">)  .tk-header  .tk-footer  .tk-menu (mobile dialog, see base.js)
   Focus    rings use var(--focus): gold on dark, red inside .tk-section--paper/--paper2, .tk-paper, .tk-card, .tk-notice, .tk-prose
   ========================================================================== */

/* ---- Fonts: Be Vietnam Pro, self-hosted (latin + vietnamese subsets). The ?v= matches the preloads in layout.php. ---- */
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-vietnamese-400.woff2?v=1') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-latin-400.woff2?v=1') 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:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-vietnamese-500.woff2?v=1') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-latin-500.woff2?v=1') 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:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-vietnamese-600.woff2?v=1') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-latin-600.woff2?v=1') 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:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-vietnamese-700.woff2?v=1') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-latin-700.woff2?v=1') 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:'Be Vietnam Pro';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-vietnamese-800.woff2?v=1') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/be-vietnam-pro-latin-800.woff2?v=1') 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}

/* ---- Tokens ---- */
:root{
  --ink:#0b0d14;--ink-2:#11141d;
  --gold:#c9a052;--gold-2:#e9c585;--gold-3:#f8e7bb;
  --text:#e3d5ba;--muted:#a99d83;--muted-2:#8d836b;
  --paper:#f6f0e3;--paper-2:#fbf8f1;
  --line:#e4d9c3;--line-2:#cdbf9f;
  --fg:#221c16;--fg-muted:#6b5f4f;
  --red:#b4372b;--red-2:#8f2a20;--green:#1f5c4a;
  --gold-ink:#7a5a14;--gold-ink-2:#a87b22;
  --maxw:1200px;--gutter:24px;
  --font:'Be Vietnam Pro',system-ui,sans-serif;
  /* focus ring colour: gold on dark, red on paper (see "paper" contexts below) */
  --focus:var(--gold-2);
}

/* ---- Reset / base ---- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font-family:var(--font);background:var(--ink);color:var(--text)}
/* No global img rule: max-width:100% would let flex items squash the logo (design pixel parity). Responsive images size themselves (width:100%;height:auto), see .tk-prose img. */
a{color:var(--red);text-decoration:none}
a:hover{color:var(--red-2)}
button,input,select,textarea{font-family:inherit}
[hidden]{display:none !important} /* always wins over display:flex etc., so JS can toggle `hidden` safely */

/* ---- Focus rings ---- */
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tk-main:focus,.tk-main:focus-visible{outline:none} /* <main tabindex="-1"> is only a skip-link target */
/* paper (light) contexts: red ring */
.tk-section--paper,.tk-section--paper2,.tk-paper,.tk-card,.tk-notice,.tk-prose{--focus:var(--red)}

/* ---- Accessibility helpers ---- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tk-skip{position:fixed;left:16px;top:12px;z-index:2000;box-sizing:border-box;padding:12px 18px;border-radius:10px;background:var(--gold-3);color:var(--ink);font-weight:700;font-size:15px;transform:translateY(-220%);transition:transform .15s ease}
.tk-skip:hover{color:var(--ink)}
.tk-skip:focus,.tk-skip:focus-visible{transform:translateY(0);outline:2px solid var(--ink);outline-offset:-5px}

/* ==========================================================================
   Header (76px bar)
   ========================================================================== */
.tk-header{position:relative;z-index:5;background:var(--ink);border-bottom:1px solid rgba(233,197,133,.18)}
.tk-header__bar{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);height:76px;display:flex;align-items:center;gap:28px}
.tk-brand{display:flex;align-items:center}
.tk-brand__img{display:block;height:56px;width:auto}
.tk-nav{display:flex;gap:26px;margin-left:auto}
.tk-nav a{color:var(--text);font-weight:600;font-size:15px;padding:10px 0;border-bottom:2px solid transparent;white-space:nowrap}
.tk-nav a:hover{color:var(--gold-3);border-bottom-color:var(--gold)}
.tk-nav a[aria-current]{color:var(--gold-3);border-bottom-color:var(--gold-2)}
.tk-actions-head{display:flex;gap:10px}
.tk-burger{display:none;margin-left:auto;width:46px;height:46px;align-items:center;justify-content:center;background:transparent;border:1px solid rgba(233,197,133,.45);border-radius:10px;color:var(--gold-3);cursor:pointer}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tk-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 28px;font-family:inherit;font-size:16px;font-weight:700;border-radius:10px;border:1px solid transparent;background:transparent;color:inherit;cursor:pointer;text-decoration:none}
.tk-btn--sm{min-height:42px;padding:0 18px;font-size:14px}
.tk-btn--lg{min-height:56px;padding:0 30px;font-size:17px}
.tk-btn--block{display:flex} /* an <a> fills its container by itself (content-box: width:100% would overflow by the border) */
button.tk-btn--block,input.tk-btn--block{width:100%} /* form controls are border-box by default */
.tk-btn--primary,.tk-btn-primary{color:#fff7e0;background:linear-gradient(180deg,#c9372c,#8f2a20);border:1px solid var(--gold-2);box-shadow:0 8px 24px rgba(180,55,43,.35)}
.tk-btn--primary:hover,.tk-btn-primary:hover{color:#fff;filter:brightness(1.12)}
.tk-btn--ghost,.tk-btn-ghost{color:var(--gold-3);border:1px solid rgba(233,197,133,.55);background:rgba(11,13,20,.4)}
.tk-btn--ghost:hover,.tk-btn-ghost:hover{color:#fff;background:rgba(233,197,133,.14)}
.tk-btn--outline,.tk-btn-outline{color:var(--fg);border:1px solid var(--fg);background:transparent}
.tk-btn--outline:hover,.tk-btn-outline:hover{background:var(--fg);color:var(--gold-3)}
.tk-btn[disabled],.tk-btn[aria-disabled="true"]{opacity:.6;cursor:not-allowed;filter:none}
/* primary button on paper (design: Form) has a softer border and shadow */
.tk-section--paper .tk-btn--primary,.tk-section--paper2 .tk-btn--primary,.tk-paper .tk-btn--primary,.tk-card .tk-btn--primary{border-color:var(--gold);box-shadow:0 8px 22px rgba(180,55,43,.28)}
.tk-section--paper .tk-btn--primary:hover,.tk-section--paper2 .tk-btn--primary:hover,.tk-paper .tk-btn--primary:hover,.tk-card .tk-btn--primary:hover{filter:brightness(1.1)}

/* ==========================================================================
   Layout blocks and headings
   ========================================================================== */
.tk-wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.tk-section{position:relative;padding:96px 0}
.tk-section--dark{background:var(--ink);color:var(--text)}
.tk-section--ink2{background:var(--ink-2);color:var(--text);border-top:1px solid rgba(233,197,133,.14)}
.tk-section--paper{background:var(--paper);color:var(--fg)}
.tk-section--paper2{background:var(--paper-2);color:var(--fg)}
.tk-paper{color:var(--fg)}

.tk-eyebrow{margin:0;display:flex;align-items:center;gap:12px;color:var(--gold-2);font-weight:700;font-size:13px;letter-spacing:.18em;text-transform:uppercase} /* margin:0 so <p class="tk-eyebrow"> gets no paragraph margins (Home uses <div>) */
.tk-eyebrow::before{content:"";flex:none;width:30px;height:1px;background:var(--gold)}
.tk-eyebrow > span:empty{display:none} /* tolerate the design's hand-drawn line span */
.tk-eyebrow--light{color:var(--gold-ink)}
.tk-eyebrow--light::before{background:var(--gold-ink-2)}
.tk-section--dark .tk-eyebrow,.tk-section--ink2 .tk-eyebrow,.tk-pagehead .tk-eyebrow{color:var(--gold-2)}
.tk-section--dark .tk-eyebrow::before,.tk-section--ink2 .tk-eyebrow::before,.tk-pagehead .tk-eyebrow::before{background:var(--gold)}
.tk-section--paper .tk-eyebrow,.tk-section--paper2 .tk-eyebrow{color:var(--gold-ink)}
.tk-section--paper .tk-eyebrow::before,.tk-section--paper2 .tk-eyebrow::before{background:var(--gold-ink-2)}

.tk-h2{margin:10px 0 0;font-size:clamp(30px,4vw,40px);line-height:1.2;font-weight:800;color:var(--gold-3)}
.tk-lead{margin:10px 0 0;font-size:16px;line-height:1.6;color:var(--muted);max-width:620px}
.tk-section--paper .tk-h2,.tk-section--paper2 .tk-h2,.tk-paper .tk-h2{color:var(--fg)}
.tk-section--paper .tk-lead,.tk-section--paper2 .tk-lead,.tk-paper .tk-lead{color:var(--fg-muted)}

/* ==========================================================================
   Components
   ========================================================================== */
/* Card: paper-2 surface. No padding on purpose (the design's article card has an image flush to the border). */
.tk-card{background:var(--paper-2);border:1px solid var(--line);border-radius:14px;color:var(--fg);transition:transform .18s ease,box-shadow .18s ease}
.tk-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(34,28,22,.18);color:var(--fg)} /* color: a.tk-card must not turn red on hover (design: inline colour) */
.tk-card--pad{padding:24px}
.tk-card--static:hover{transform:none;box-shadow:none}

/* News type badges: SỰ KIỆN red, CẬP NHẬT dark, HƯỚNG DẪN green */
.tk-badge{display:inline-block;padding:4px 10px;border-radius:6px;background:var(--fg);color:var(--gold-3);font-size:12px;font-weight:700;letter-spacing:.06em;white-space:nowrap}
.tk-badge--event{background:var(--red);color:#fff}
.tk-badge--update{background:var(--fg);color:var(--gold-3)}
.tk-badge--guide{background:var(--green);color:#fff}
.tk-badge--sm{padding:3px 9px;font-size:11.5px}

/* Text link with arrow */
.tk-link{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:700;color:var(--red)}
.tk-link:hover{color:var(--red-2)}
.tk-link--gold,.tk-section--dark .tk-link,.tk-section--ink2 .tk-link,.tk-pagehead .tk-link{color:var(--gold-2)}
.tk-link--gold:hover,.tk-section--dark .tk-link:hover,.tk-section--ink2 .tk-link:hover,.tk-pagehead .tk-link:hover{color:var(--gold-3)}

/* Notices (design: "Lưu ý khi đăng ký" box / form alert) */
.tk-notice{padding:24px 28px;border-radius:18px;background:#f3e7c9;border:1px solid #e0cf9f;color:#4a3a14;font-size:14.5px;line-height:1.6}
.tk-notice--info{background:#f3e7c9;border-color:#e0cf9f;color:#4a3a14}
.tk-notice--warn{background:#fdecea;border-color:#e9b4ac;color:#7a1f16}
.tk-notice--compact{padding:14px 16px;border-radius:12px}
.tk-notice > :first-child{margin-top:0}
.tk-notice > :last-child{margin-bottom:0}
.tk-notice p{margin:0}
.tk-notice p + p{margin-top:10px}
.tk-notice ul,.tk-notice ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px}
.tk-notice h2,.tk-notice h3,.tk-notice__title{margin:0 0 14px;font-size:18px;line-height:normal;font-weight:800;color:#3d2f0e}
.tk-notice--warn h2,.tk-notice--warn h3,.tk-notice--warn .tk-notice__title{color:#7a1f16}

/* Tables: put <table class="tk-table"> inside <div class="tk-table-wrap"> so phones scroll the table, not the page */
.tk-table-wrap{max-width:100%;overflow-x:auto}
.tk-table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.55;color:var(--fg)}
.tk-table th{padding:12px 14px;text-align:left;font-weight:700;color:var(--fg);background:#f3e7c9;border-bottom:1px solid var(--line-2)}
.tk-table td{padding:12px 14px;vertical-align:top;border-bottom:1px solid var(--line)}
.tk-table a{text-decoration:underline;text-underline-offset:2px}

/* Status: dot + label (dark backgrounds by default, darker text on paper) */
.tk-status{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#9fe0b4}
.tk-status::before{content:""}
.tk-status::before,.tk-status__dot{flex:none;width:8px;height:8px;border-radius:50%;background:#5fbf7f}
.tk-status__dot{display:inline-block}
@supports selector(:has(*)){.tk-status:has(> .tk-status__dot)::before{display:none}} /* markup that draws its own dot span; @supports guard keeps browsers without :has() (Firefox ESR 115) from tripping over it */
.tk-status--green{color:#9fe0b4}
.tk-status--green::before,.tk-status--green .tk-status__dot{background:#5fbf7f}
.tk-status--amber{color:#f0d08a}
.tk-status--amber::before,.tk-status--amber .tk-status__dot{background:#e2b04a}
.tk-status--red{color:#f4a59c}
.tk-status--red::before,.tk-status--red .tk-status__dot{background:#e5675a}
.tk-section--paper .tk-status--green,.tk-section--paper2 .tk-status--green,.tk-paper .tk-status--green,.tk-card .tk-status--green{color:var(--green)}
.tk-section--paper .tk-status--amber,.tk-section--paper2 .tk-status--amber,.tk-paper .tk-status--amber,.tk-card .tk-status--amber{color:#7a5a14}
.tk-section--paper .tk-status--red,.tk-section--paper2 .tk-status--red,.tk-paper .tk-status--red,.tk-card .tk-status--red{color:#a32a1f}
.tk-section--paper .tk-status--green::before,.tk-section--paper2 .tk-status--green::before,.tk-paper .tk-status--green::before,.tk-card .tk-status--green::before{background:var(--green)}
.tk-section--paper .tk-status--amber::before,.tk-section--paper2 .tk-status--amber::before,.tk-paper .tk-status--amber::before,.tk-card .tk-status--amber::before{background:#c28a1b}
.tk-section--paper .tk-status--red::before,.tk-section--paper2 .tk-status--red::before,.tk-paper .tk-status--red::before,.tk-card .tk-status--red::before{background:var(--red)}

/* Prose: long text on paper (terms, privacy, guide) */
.tk-prose{max-width:760px;color:var(--fg);font-size:16px;line-height:1.75}
.tk-prose--wide{max-width:none}
.tk-prose > :first-child{margin-top:0}
.tk-prose > :last-child{margin-bottom:0}
.tk-prose h2{margin:2em 0 .6em;font-size:clamp(22px,3vw,28px);line-height:1.25;font-weight:800;color:var(--fg)}
.tk-prose h3{margin:1.6em 0 .5em;font-size:19px;line-height:1.3;font-weight:700;color:var(--fg)}
.tk-prose p{margin:0 0 1em}
.tk-prose ul,.tk-prose ol{margin:0 0 1em;padding-left:1.4em}
.tk-prose li{margin:.35em 0}
.tk-prose a{text-decoration:underline;text-underline-offset:2px}
.tk-prose strong{font-weight:700}
.tk-prose blockquote{margin:1.2em 0;padding:.4em 0 .4em 1.1em;border-left:3px solid var(--gold-ink-2);color:var(--fg-muted)}
.tk-prose hr{margin:2em 0;border:0;border-top:1px solid var(--line)}
.tk-prose img{max-width:100%;height:auto;border-radius:10px}
.tk-prose code{padding:.1em .4em;border-radius:5px;background:#f3e7c9;font-size:.92em}
.tk-prose table{width:100%;border-collapse:collapse;margin:0 0 1.2em;font-size:14.5px;line-height:1.55}
.tk-prose th{padding:12px 14px;text-align:left;font-weight:700;background:#f3e7c9;border-bottom:1px solid var(--line-2)}
.tk-prose td{padding:12px 14px;vertical-align:top;border-bottom:1px solid var(--line)}

/* Long unbroken strings (a pasted URL or a filename in owner-edited copy) must wrap instead of pushing the page
   sideways on phones. overflow-wrap only acts when a word would otherwise overflow, so normal text is unchanged.
   Covers the shared tk- body-copy and heading classes (article body is .tk-prose, the dark banner is
   .tk-pagehead__inner); per-page pg-/hm- copy is handled in pages.css / home.css by their owners.
   `break-word` first is the fallback for Safari < 15.4; `anywhere` also fixes min-content sizing in flex / grid. */
.tk-prose,.tk-notice,.tk-lead,.tk-h2,.tk-pagehead__inner{overflow-wrap:break-word;overflow-wrap:anywhere}

/* ==========================================================================
   Inner-page banner (page_head) and breadcrumb
   ========================================================================== */
.tk-pagehead{position:relative;overflow:hidden;background:var(--ink);border-bottom:1px solid rgba(233,197,133,.18)}
.tk-pagehead__img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:62% 42%;opacity:.6}
.tk-pagehead__shade{position:absolute;left:0;top:0;width:100%;height:100%;background:linear-gradient(90deg,#0b0d14 0%,rgba(11,13,20,.7) 46%,rgba(11,13,20,.25) 100%)}
.tk-pagehead__inner{position:relative;max-width:var(--maxw);margin:0 auto;padding:52px var(--gutter) 58px}
.tk-pagehead__title{margin:16px 0 0;font-size:clamp(34px,5vw,46px);line-height:1.12;font-weight:800;color:var(--gold-3)}
.tk-pagehead__lead{margin:12px 0 0;max-width:560px;font-size:17px;line-height:1.6;color:var(--text)}
.tk-crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;font-size:14px;color:var(--muted)}
.tk-crumbs a{color:var(--gold-2)}
.tk-crumbs a:hover{color:var(--gold-3)}
.tk-crumbs [aria-current]{color:var(--gold-3)}

/* ==========================================================================
   Footer (compact by default; .tk-footer--band adds the 150px dragon band: Home)
   ========================================================================== */
.tk-footer{background:var(--ink);border-top:1px solid rgba(233,197,133,.18);padding:56px 0 32px}
.tk-footer a{color:var(--muted)}
.tk-footer a:hover{color:var(--gold-3)}
.tk-footer__band{position:relative;height:150px;overflow:hidden}
.tk-footer__band-img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:62% 42%;opacity:.5}
.tk-footer__band-shade{position:absolute;left:0;top:0;width:100%;height:100%;background:linear-gradient(180deg,rgba(11,13,20,.15) 0%,#0b0d14 100%)}
.tk-footer__inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.tk-footer__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px}
.tk-footer__about{max-width:300px}
.tk-footer__logo{display:block;width:130px;height:auto}
.tk-footer__about p{margin:14px 0 0;font-size:14px;line-height:1.65;color:var(--muted)}
.tk-footer__h{margin:0 0 14px;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-2)}
.tk-footer__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:15px}
.tk-footer__note{margin:0;font-size:15px;line-height:1.65;color:var(--muted)}
.tk-footer__bottom{margin-top:40px;padding-top:22px;border-top:1px solid rgba(233,197,133,.14);display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;font-size:13px;line-height:1.6;color:var(--muted-2)}
.tk-footer__legal{display:flex;gap:18px}
.tk-footer--band{padding:0 0 32px}
.tk-footer--band .tk-footer__inner{padding:32px var(--gutter) 0}
.tk-footer--band .tk-footer__logo{width:150px}
.tk-footer--band .tk-footer__about p{margin-top:16px}
.tk-footer--band .tk-footer__bottom{margin-top:48px;padding-top:24px}

/* ==========================================================================
   Mobile menu overlay (design: Menu-mobile.dc.html). Opened by base.js.
   ========================================================================== */
.tk-menu{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;background:var(--ink);color:var(--text)}
.tk-menu__bar{flex:none;height:72px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:var(--ink);border-bottom:1px solid rgba(233,197,133,.18)}
.tk-menu .tk-brand__img{height:48px}
.tk-menu__close{width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;background:rgba(233,197,133,.1);border:1px solid rgba(233,197,133,.45);border-radius:10px;color:var(--gold-3);cursor:pointer}
.tk-menu__nav{flex:none;padding:12px 16px 0}
.tk-item{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 6px 0 16px;color:var(--gold-3);font-weight:600;font-size:18px;border-bottom:1px solid rgba(233,197,133,.16);border-left:3px solid transparent}
.tk-item:hover{color:#fff;background:rgba(233,197,133,.07)}
.tk-item[aria-current]{color:var(--gold-2);border-left-color:var(--gold-2);background:rgba(233,197,133,.1)}
.tk-menu__actions{flex:none;padding:28px 16px 0;display:flex;flex-direction:column;gap:12px}
.tk-menu__actions .tk-btn{min-height:56px;padding:0;font-size:17px}
.tk-menu__foot{flex:none;margin-top:auto;padding:28px 16px 28px;padding-bottom:max(28px,env(safe-area-inset-bottom))}
.tk-menu__status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid rgba(233,197,133,.28);border-radius:12px;background:rgba(17,20,29,.8)}
.tk-menu__status-name{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-2)}
html.tk-menu-open,html.tk-menu-open body{overflow:hidden}

/* ==========================================================================
   Responsive: the design's single breakpoint (900px) + the header taper just above it
   ========================================================================== */

/* Desktop header between 901 and 1099px. The design only has the 900px breakpoint, but the full-size header needs about
   1047px of layout width (about 1062px of window with a classic scrollbar); below that the nav labels wrapped onto two
   lines. From 1100px down to 901px the spacing, the nav font size and the button padding shrink smoothly (clamp) from the
   design values to the minimums below, so the whole header stays on one line (>= 8px to spare at 901px, measured with a
   15px scrollbar). Widths from 1100px up and up to 900px down are untouched.
   Design -> minimum: gap between logo / nav / buttons 28 -> 14, gap between nav links 26 -> 13, nav font 15 -> 13.5,
   button side padding 18 -> 12. Slope of each line = (design - minimum) / 199px (1100 - 901). */
@media (min-width:901px) and (max-width:1099px){
  .tk-header__bar{column-gap:clamp(14px,calc(14px + (100vw - 901px) * .0704),28px)}
  .tk-nav{gap:clamp(13px,calc(13px + (100vw - 901px) * .0653),26px)}
  .tk-nav a{font-size:clamp(13.5px,calc(13.5px + (100vw - 901px) * .00754),15px)}
  .tk-actions-head .tk-btn{padding-right:clamp(12px,calc(12px + (100vw - 901px) * .0302),18px);padding-left:clamp(12px,calc(12px + (100vw - 901px) * .0302),18px)}
}

@media (max-width:900px){
  .tk-nav{display:none}
  .tk-burger{display:inline-flex}
  .tk-actions-head{display:none}

  /* No JavaScript: no burger, so show the links as a wrapped row under the logo (plus the two buttons). */
  html:not(.js) .tk-burger{display:none}
  html:not(.js) .tk-header__bar{height:auto;flex-wrap:wrap;gap:8px 16px;padding-top:10px;padding-bottom:10px}
  html:not(.js) .tk-actions-head{display:flex;margin-left:auto}
  html:not(.js) .tk-nav{display:flex;flex-wrap:wrap;order:3;flex:1 1 100%;margin-left:0;gap:0 22px}
}

/* 8+ nav items: the header is tuned to exactly the 7 shipped labels (the 901-1099px taper keeps those on one line).
   An 8th or 9th item needs about 1180px+ to fit, so from 901 to 1199px it would wrap the labels and the buttons onto
   two lines. layout.php adds .tk-header--many when count(nav) > 7, and below 1200px that header uses the burger menu
   instead (all nav links + both buttons are already in the overlay). The shipped 7-item header never gets this class,
   so nothing changes for it. .tk-nav a{white-space:nowrap} (above) also stops any single label breaking mid-word. */
@media (min-width:901px) and (max-width:1199px){
  .tk-header--many .tk-nav{display:none}
  .tk-header--many .tk-burger{display:inline-flex}
  .tk-header--many .tk-actions-head{display:none}
  /* No JavaScript: show the wrapped nav row instead of a dead burger (mirrors the <=900px fallback). */
  html:not(.js) .tk-header--many .tk-burger{display:none}
  html:not(.js) .tk-header--many .tk-header__bar{height:auto;flex-wrap:wrap;gap:8px 16px;padding-top:10px;padding-bottom:10px}
  html:not(.js) .tk-header--many .tk-actions-head{display:flex;margin-left:auto}
  html:not(.js) .tk-header--many .tk-nav{display:flex;flex-wrap:wrap;order:3;flex:1 1 100%;margin-left:0;gap:0 22px}
}

/* ==========================================================================
   Forced colours (Windows High Contrast): keep the "current page" marker visible.
   The nav underline and the mobile-menu left bar carry the current page only through colour, which forced-colors
   replaces with system colours - redraw the marker with the system Highlight colour so it is not lost. (The home
   filter pills, sect buttons and content-page pills carry their own state; those rules live in home.css/pages.css.)
   ========================================================================== */
@media (forced-colors:active){
  .tk-nav a{border-bottom-color:Canvas}
  .tk-nav a[aria-current]{border-bottom-color:Highlight;border-bottom-width:4px}
  .tk-item{border-left-color:Canvas}
  .tk-item[aria-current]{border-left-color:Highlight;border-left-width:6px}
}

/* ==========================================================================
   Reduced motion: no transitions or movement for people who ask for it.
   (!important is used here on purpose: it must also beat inline transition/animation styles.)
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  .tk-card:hover{transform:none}
}
