:root {
  --background: #101315;
  --foreground: #E8EAE5;
  --card: #171D20;
  --card-foreground: #E8EAE5;
  --popover: #171D20;
  --popover-foreground: #E8EAE5;
  --primary: #FF7A2E;
  --primary-foreground: #1A0F07;
  --secondary: #20282B;
  --secondary-foreground: #E8EAE5;
  --muted: #171D20;
  --muted-foreground: #9CA59F;
  --accent: #FF7A2E;
  --accent-foreground: #1A0F07;
  --border: #323A3C;
  --input: #323A3C;
  --ring: #FF7A2E;
  --font-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --tracking-normal: 0em;
  --radius: 0.25rem;
  --spacing: 0.25rem;
  --shadow-2xs: 0px 1px 3px 0px rgb(0 0 0 / 0.000);
  --shadow-xs: 0px 1px 3px 0px rgb(0 0 0 / 0.000);
  --shadow-sm: 0px 1px 3px 0px rgb(0 0 0 / 0.000), 0px 1px 2px -1px rgb(0 0 0 / 0.000);
  --shadow: 0px 1px 3px 0px rgb(0 0 0 / 0.000), 0px 1px 2px -1px rgb(0 0 0 / 0.000);
  --shadow-md: 0px 1px 3px 0px rgb(0 0 0 / 0.000), 0px 2px 4px -1px rgb(0 0 0 / 0.000);
  --shadow-lg: 0px 1px 3px 0px rgb(0 0 0 / 0.000), 0px 4px 6px -1px rgb(0 0 0 / 0.000);
  --shadow-xl: 0px 1px 3px 0px rgb(0 0 0 / 0.000), 0px 8px 10px -1px rgb(0 0 0 / 0.000);
  --shadow-2xl: 0px 1px 3px 0px rgb(0 0 0 / 0.000);
}

.dark {
  --background: #101315;
  --foreground: #E8EAE5;
  --card: #171D20;
  --card-foreground: #E8EAE5;
  --popover: #171D20;
  --popover-foreground: #E8EAE5;
  --primary: #FF7A2E;
  --primary-foreground: #1A0F07;
  --secondary: #20282B;
  --secondary-foreground: #E8EAE5;
  --muted: #171D20;
  --muted-foreground: #9CA59F;
  --accent: #FF7A2E;
  --accent-foreground: #1A0F07;
  --border: #323A3C;
  --input: #323A3C;
  --ring: #FF7A2E;
}

:root {--site--background:var(--background);--site--foreground:var(--foreground);--site--border:var(--border);--site--muted:var(--muted);--site--muted-foreground:var(--muted-foreground);}

[data-theme-region="header"] {--background: #101315;--foreground: #E8EAE5;--border: #323A3C;--muted-foreground:var(--foreground);--muted:color-mix(in srgb,var(--foreground) 10%,var(--background));}

[data-theme-region="header"] [data-region-link] {color:#E8EAE5;}

.dark [data-theme-region="header"] {--background: #101315;--foreground: #E8EAE5;--border: #323A3C;--muted-foreground:var(--foreground);--muted:color-mix(in srgb,var(--foreground) 10%,var(--background));}

.dark [data-theme-region="header"] [data-region-link] {color:#E8EAE5;}

[data-theme-region="footer"] {--background: #101315;--foreground: #E8EAE5;--border: #323A3C;--muted-foreground:var(--foreground);--muted:color-mix(in srgb,var(--foreground) 10%,var(--background));}

[data-theme-region="footer"] [data-region-link] {color:#E8EAE5;}

.dark [data-theme-region="footer"] {--background: #101315;--foreground: #E8EAE5;--border: #323A3C;--muted-foreground:var(--foreground);--muted:color-mix(in srgb,var(--foreground) 10%,var(--background));}

.dark [data-theme-region="footer"] [data-region-link] {color:#E8EAE5;}

/* ------------------------------------------------------------------
 * Club look, modelled on tsxcs.com: dark #101315 base, orange accent,
 * Big Shoulders Display headings, Archivo text. Fonts are self-hosted
 * (SIL OFL, see licenses/). Customer-owned; no change to site.css or js/.
 * ------------------------------------------------------------------ */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/archivo-latin.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/fonts/big-shoulders-display-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); }

:root {
  --tsx-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --tsx-hero: #0b0e10;
  --tsx-surface: #171d20;
  --tsx-line: #323a3c;
  --tsx-ink-2: #c0c7c2;
  --tsx-muted: #9ca59f;
  --tsx-accent: #ff7a2e;
  --tsx-accent-ink: #ff9656;
}
html, body { background: #101315; }
body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--tsx-accent-ink); outline-offset: 2px; }

/* Header: translucent bar, compact links like tsxcs.com */
[data-site-header] { background-color: color-mix(in srgb, #101315 90%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
[data-site-header] [data-nav-item] > a, [data-site-header] [data-more-item] > button { font-weight: 600; font-size: 14px; color: var(--tsx-ink-2); background: transparent; }
[data-site-header] [data-nav-item] > a:hover, [data-site-header] [data-more-item] > button:hover { background: #222a2e; color: #e8eae5; }
[data-site-header] [data-nav-item] > a[aria-current="page"] { color: var(--tsx-accent-ink); background: transparent; }
[data-site-header] [data-header-actions] a { font-weight: 700; border-radius: 4px; }

/* Footer */
.tsx-foot { background: var(--tsx-hero); margin-top: 3rem; }
.tsx-foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.tsx-foot h2 { font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tsx-muted); margin: 6px 0 14px; }
.tsx-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tsx-foot a { text-decoration: none; font-size: 14.5px; }
.tsx-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tsx-foot-brand p, .tsx-foot-brand li { color: var(--tsx-muted); font-size: 14.5px; max-width: 34ch; }
.tsx-foot-brand p { margin: 1rem 0; }
.tsx-foot aside { margin-top: 1.25rem; }
.tsx-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--tsx-line); padding-block: 1.1rem; font: 500 12px/1.5 var(--font-mono); color: var(--tsx-muted); }
@media (max-width: 1000px) { .tsx-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tsx-foot-grid { grid-template-columns: 1fr; } }

/* Shared page pieces */
.tsx-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .tsx-wrap { padding-inline: 1.5rem; } }
.tsx-section { padding-block: 2.5rem; }
.tsx-eyebrow { font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--tsx-accent-ink); margin: 0 0 .75rem; }
.tsx-page-head { background: var(--tsx-hero); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--tsx-line); }
.tsx-page-head::after { content: ""; position: absolute; z-index: -1; top: -60px; right: -60px; width: 300px; height: 300px; transform: rotate(12deg); opacity: .05; background: conic-gradient(#f0f1ec 25%, transparent 0 50%, #f0f1ec 0 75%, transparent 0) 0 0 / 50px 50px; }
main h1 { font-family: var(--tsx-display); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; text-wrap: balance; }
.tsx-page-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 0 0 .75rem; }
.tsx-lede { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--tsx-ink-2); max-width: 60ch; margin: 0; }
main h2, .tsx-h2 { font-family: var(--tsx-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.tsx-h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; margin: 0 0 1.25rem; }
.tsx-h3 { font-family: var(--tsx-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin: 0 0 1rem; }
.tsx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14px/1 var(--font-sans); padding: 12px 18px; border: 1.5px solid var(--tsx-accent); border-radius: 4px; background: var(--tsx-accent); color: #1a0f07; text-decoration: none; cursor: pointer; }
.tsx-btn:hover { filter: brightness(1.07); }
.tsx-btn svg { width: 16px; height: 16px; }
.tsx-btn-ghost { background: transparent; color: #f0f1ec; border-color: currentColor; }
.tsx-btn-ghost:hover { background: rgb(240 241 236 / .1); filter: none; }
.tsx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }

/* Home hero */
.tsx-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--tsx-hero); min-height: min(78svh, 640px); display: flex; align-items: flex-end; }
.tsx-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tsx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--tsx-hero) 0%, rgb(11 14 16 / .72) 42%, rgb(11 14 16 / .15) 90%), linear-gradient(0deg, var(--tsx-hero) 0%, transparent 45%); }
.tsx-hero-body { padding-block: 4rem 3rem; width: 100%; }
.tsx-hero h1 { font-size: clamp(3.4rem, 10.5vw, 8rem); line-height: .84; margin: .25rem 0 1rem; color: #f0f1ec; }
.tsx-hero .tsx-lede { color: #e8eae5; }
.tsx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tsx-tile { background: var(--tsx-surface); border: 1px solid var(--tsx-line); border-radius: 8px; padding: 1.25rem; }
.tsx-tile h3 { font-family: var(--tsx-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; margin: 0 0 .5rem; }
.tsx-tile h3 a { text-decoration: none; }
.tsx-tile h3 a:hover { color: var(--tsx-accent-ink); }
.tsx-tile p { margin: 0; color: var(--tsx-ink-2); font-size: .95rem; }

/* Rules */
.tsx-toc { margin-top: 1.75rem; max-width: 46rem; border: 1px solid var(--tsx-line); border-radius: 8px; padding: 1rem 1.25rem; background: rgb(23 29 32 / .8); }
.tsx-toc-title { font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tsx-muted); margin: 0 0 .6rem; }
.tsx-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; }
.tsx-toc ol ol { margin-top: .25rem; columns: 2; column-gap: 2rem; display: block; }
@media (max-width: 640px) { .tsx-toc ol ol { columns: 1; } }
.tsx-toc a { color: var(--tsx-ink-2); text-underline-offset: 3px; }
.tsx-toc a:hover { color: #fff; }
.tsx-block { max-width: 60rem; scroll-margin-top: 5rem; }
.tsx-rule { border-top: 1px solid var(--tsx-line); scroll-margin-top: 5rem; }
.tsx-rule:last-child { border-bottom: 1px solid var(--tsx-line); }
.tsx-rule > summary { cursor: pointer; list-style: none; padding: 1rem .25rem; font-family: var(--tsx-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tsx-rule > summary::-webkit-details-marker { display: none; }
.tsx-rule > summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: .25rem; }
.tsx-rule[open] > summary::after { transform: rotate(-135deg); }
.tsx-rule > summary:hover { color: var(--tsx-accent-ink); }
.tsx-rule > div { padding: 0 .25rem 1.5rem; overflow-wrap: anywhere; }
.tsx-rule h4 { font-family: var(--tsx-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; margin: 1.5rem 0 .5rem; }
.tsx-block a { color: var(--tsx-accent-ink); text-underline-offset: 3px; }

/* Contact */
.tsx-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .tsx-grid-2 { grid-template-columns: 1fr; } }
.tsx-card { background: var(--tsx-surface); border: 1px solid var(--tsx-line); border-radius: 8px; padding: 1.5rem; }
.tsx-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.tsx-info li { display: flex; align-items: center; gap: .85rem; }
.tsx-icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--tsx-accent-ink); }
.tsx-info .flex-col { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tsx-k { font: 600 11px/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tsx-muted); }
.tsx-v { overflow-wrap: anywhere; }
.tsx-v a { color: var(--tsx-accent-ink); text-underline-offset: 3px; }
.tsx-open { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 4px; border: 1px solid var(--tsx-line); }
.tsx-open:hover { background: #222a2e; }
.tsx-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.tsx-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.tsx-form input, .tsx-form textarea { width: 100%; background: #101315; color: #e8eae5; border: 1px solid #5d6769; border-radius: 4px; padding: .65rem .75rem; font: inherit; }
.tsx-form input[aria-invalid="true"], .tsx-form textarea[aria-invalid="true"] { border-color: #ff6b6b; }
.text-destructive { color: #ff8f8f; }

/* Rich-text links in page content: the prose default is near-black, invisible on the dark base. */
main .cms-rich-content a, main .prose a { color: var(--tsx-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
main .cms-rich-content a:hover, main .prose a:hover { color: #ffb27f; }
