/* =========================================================================
   TechWafer "Yellow Room" layer for the bottleneck calculator (2026-11-19).

   The WordPress site moved to the Yellow Room brand (amber field, indigo ink,
   violet links, Archivo / Literata / Martian Mono). This Laravel app still
   carried the old hot-pink / Anton brand in css/techwafer-brand.css. Rather
   than rewrite that 79 KB sheet, this file is linked AFTER it in
   layouts/master.blade.php and re-points its tokens, then restyles the few
   components that hard-code the old look. Delete the <link> to roll back.

   Source of truth for every value: theme-redesign/techwafer-2026/assets/yr-tokens.css
   and DESIGN.md. Keep them in sync.

   Colour jobs (same rule as the WP theme): amber is the brand field, ink is
   text and structure, violet is links and focus, green/orange/red are verdicts.
   On comparison pages part A is amber (amber-ink when it is text) and part B
   is ink; colour identifies the part, it never signals the winner.
   ========================================================================= */

/* ---- Fonts: the WP theme's self-hosted files, same origin --------------- */
@font-face {
	font-family: "Archivo";
	src: url("/wp-content/themes/techwafer-2026/assets/fonts/archivo-var.woff2") format("woff2");
	font-weight: 400 900;
	font-stretch: 100% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Literata";
	src: url("/wp-content/themes/techwafer-2026/assets/fonts/literata-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Martian Mono";
	src: url("/wp-content/themes/techwafer-2026/assets/fonts/martian-mono-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------ */
:root {
	--yr-amber:      #FFB300;
	--yr-amber-soft: #FFF1CC;
	--yr-amber-ink:  #8A5A00;
	--yr-ink:        #15173D;
	--yr-violet:     #5647D8;
	--yr-paper:      #F6F7FA;

	/* Re-point the old brand tokens. The accent was pink and did three jobs
	   (links, primary fills, hover tints); in Yellow Room primary fills and
	   rules are ink, hover tints are pale amber, and links are set below. */
	--tw-brand-pink:   var(--yr-amber);
	--tw-accent:       var(--yr-ink);
	--tw-accent-hover: #2C3068;
	--tw-accent-soft:  var(--yr-amber-soft);
	--tw-ink:          var(--yr-ink);
	--tw-muted:        #565A7A;
	--tw-faint:        #878BA8;
	--tw-line:         #D5D8E3;
	--tw-surface:      var(--yr-paper);
	--tw-card:         #FFFFFF;
	--tw-good:         #1E9E6A;  --tw-good-ink: #13744D;
	--tw-warn:         #D9560C;  --tw-warn-ink: #B44A0A;
	--tw-bad:          #E5484D;

	--tw-font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
	--tw-font-body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tw-font-mono:    "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Flat: structure comes from rules and fills, never from shadows. */
	--tw-hard:    0 0 0 transparent;
	--tw-hard-sm: 0 0 0 transparent;

	/* Part A / part B on comparison pages. --tw-a is used as text and as a
	   ground for white text, so it is amber-ink (5.5:1 and 5.9:1); the large
	   fills further down use the bright amber. */
	--tw-a: var(--yr-amber-ink);
	--tw-b: var(--yr-ink);

	--primary:      var(--yr-ink);
	--primary-dark: #2C3068;
}

/* ---- Base type ---------------------------------------------------------- */
body { background: var(--yr-paper); }

h1, h2, .hero-title {
	font-family: var(--tw-font-display);
	font-stretch: 112%;
	font-weight: 850;
	letter-spacing: -0.03em;
	text-transform: none;
	line-height: 1.04;
}
.tw-compare-title, .tw-cta__title, .tw-xlink__title {
	font-stretch: 112%;
	font-weight: 850;
	letter-spacing: -0.03em;
	text-transform: none;
}
/* The small <em> connector ("vs", "comparisons") was tracked for capitals. */
.tw-compare-title em { letter-spacing: 0; font-weight: 700; font-stretch: 100%; }
/* Display numerals: Archivo heavy at normal width keeps the old Anton
   footprint, so the figures still fit their fixed boxes (gauge, medallion). */
.tw-arena__score, .tw-medallion > span, .tw-gauge__num, .tw-rig__score {
	font-stretch: 100%;
	font-weight: 800;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
h2 { font-stretch: 108%; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h3, h4, h5, h6 {
	font-family: var(--tw-font-body);
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
}

a { color: var(--yr-violet); }
a:hover { color: var(--yr-ink); }

:focus-visible { outline: 3px solid var(--yr-violet); outline-offset: 2px; }

/* Long reading copy reads in Literata, as on the WP articles. */
.tw-prose p, .tw-faq__a, .landing-copy p, .tw-method p { font-family: "Literata", Georgia, serif; }

/* ---- Masthead: the amber field, as on every WP page --------------------- */
.navbar {
	background: var(--yr-amber);
	border-top: 0;
	border-bottom: 3px solid var(--yr-ink);
}
.navbar-container .logo img { max-height: 32px; }
.nav-links a,
.nav-dropdown__trigger {
	font-family: var(--tw-font-body);
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--yr-ink);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--yr-ink); border-bottom-color: var(--yr-ink); }
.nav-dropdown__menu a { color: var(--yr-ink); }
.navbar .form-select { background: #fff; }
.mobile-menu-btn, .nav-close { color: var(--yr-ink); }
/* The close button was only styled inside the mobile media query, so on
   desktop it rendered as a bare button beside the logo. The mobile rule
   .nav-close.active (two classes) still wins when the panel opens. */
.nav-close { display: none; }
.nav-close:hover { border-color: var(--yr-ink); color: var(--yr-ink); }

/* ---- Hero --------------------------------------------------------------- */
.hero-section { background: var(--yr-paper); border-bottom: 3px solid var(--yr-ink); text-align: left; }
.hero-section .container, .hero-section > * { text-align: left; }
.hero-title { font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.75rem); }
.hero-title::after { display: none; }
.hero-subtitle { margin-inline: 0; font-family: "Literata", Georgia, serif; font-size: 1.3125rem; line-height: 1.5; }

/* ---- Controls ----------------------------------------------------------- */
.form-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.form-select,
select.form-select,
.select2-container .select2-selection--single,
.select2-dropdown,
.select2-search__field { border-radius: 2px !important; }
.form-select:focus,
.form-select:focus-visible { outline: 3px solid var(--yr-violet); outline-offset: 2px; }

.btn-primary,
a.btn-primary,
button.btn-primary {
	background: var(--yr-ink);
	color: #fff;
	border: 2px solid var(--yr-ink);
	border-radius: 2px;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--yr-amber);
	color: var(--yr-ink);
	transform: none;
	box-shadow: none;
}
.btn-primary:active { transform: none; box-shadow: none; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
	background-color: var(--yr-amber-soft) !important;
	color: var(--yr-ink) !important;
}

/* Hard offset shadows that were written as literals, not tokens. */
.result-card, .tw-cta__btn, .tw-cta__btn:hover, .tw-tagline, [class*="tw-arena__"] { box-shadow: none; }
.tw-cta__btn:hover { transform: none; }

/* ---- Comparison colours ------------------------------------------------- */
/* Large fills take the bright amber; text and white-on grounds keep amber-ink. */
.tw-duel__half--a .tw-duel__bar i,
.tw-minitrack__a,
.tw-key--a { background: var(--yr-amber); }
.tw-radar__poly--a { fill: rgba(255, 179, 0, .32); stroke: var(--yr-amber-ink); }
.tw-radar__poly--b { fill: rgba(21, 23, 61, .12); }
.tw-arena__side--a { background: linear-gradient(180deg, var(--yr-amber-soft), #fff 72%); }
.tw-sticky__pair em { color: var(--yr-amber-ink); }

/* ---- Footer ------------------------------------------------------------- */
.footer { background: var(--yr-ink); border-top: 0; }
.footer-column h4 { text-transform: none; letter-spacing: 0; font-size: 15px; border-bottom-color: var(--yr-amber); }
.footer-column a { color: #B9BCD6; }
.footer-column a:hover { color: var(--yr-amber); }
.footer-bottom p { text-transform: none; letter-spacing: 0; color: #B9BCD6; }

/* ---- Mobile slide-out menu ---------------------------------------------- */
/* Under 900px the links live in a fixed ink panel, so the masthead's ink text
   colour above must flip back to white there. */
@media (max-width: 900px) {
	.nav-links a,
	.nav-dropdown__trigger,
	.nav-dropdown__menu a,
	.nav-close { color: #fff; }
	.nav-links a:hover,
	.nav-links a:focus-visible,
	.nav-dropdown__menu a:hover,
	.nav-close:hover { color: var(--yr-amber); border-color: var(--yr-amber); }
	.mobile-menu-btn { color: var(--yr-ink); }
}
