:root {
  color-scheme: dark;
  --bg: #10162a;
  --surface: #1b2440;
  --surface-2: #263252;
  --ink: #f7f9ff;
  --muted: #b3bed8;
  --line: #3a4770;
  --accent: #a979ff;
  --accent-2: #ff8b58;
  --accent-3: #58e0bd;
  --soft: #202c4e;
  --shadow: 0 20px 55px rgba(0, 4, 20, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -10%, rgba(95, 103, 231, .3), transparent 27%),
    radial-gradient(circle at 10% 20%, rgba(44, 184, 169, .12), transparent 26%),
    linear-gradient(180deg, #151c32 0, #10162a 38%, #0d1325 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  padding-top: 0;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 60px);
  background: rgba(12, 17, 34, .94);
  border-bottom: 1px solid rgba(137, 155, 211, .2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  color: #fff;
}

.site-header-inner {
  justify-content: flex-start;
  min-height: 64px;
  background: rgba(11, 16, 32, .82);
  box-shadow: none;
}
.brand-inner strong { font-size: 18px; }

.brand,
.top-nav,
.site-footer nav,
.card-actions,
.hero-actions,
.meta-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand > span { display: grid; line-height: 1; letter-spacing: -.06em; }
.brand strong { font-size: 19px; color: #fff; }
.brand em { color: #ad9eff; font-size: 15px; font-style: normal; }
.brand small { margin-top: 4px; color: #848695; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }

.top-nav {
  gap: 28px;
  margin-left: auto;
  color: #bec7df;
  font-weight: 700;
}

.top-nav a,
.site-footer a,
.text-link {
  text-decoration: none;
}

.top-nav a:hover { color: #fff; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid rgba(162, 137, 255, .3);
  background: linear-gradient(135deg, #6545c9, #3e65b8);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.header-cta span { color: #ad9eff; font-size: 17px; }

.top-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--accent);
}

main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.portal-hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  height: 420px;
  margin: 32px 0 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(177, 194, 255, .21);
  background: #202b51;
  box-shadow: 0 24px 55px rgba(0, 5, 32, .45);
}

.portal-hero .hero-copy {
  min-height: 0;
  justify-content: center;
  padding: 30px clamp(30px, 4vw, 56px);
  background: radial-gradient(circle at 10% 20%, rgba(145, 102, 255, .37), transparent 40%), radial-gradient(circle at 65% 90%, rgba(31, 213, 180, .18), transparent 32%), #202b51;
  box-shadow: none;
}
.portal-hero .hero-copy .eyebrow { margin-bottom: 10px; color: #aba1ff; }
.portal-hero h1 { max-width: 610px; margin: 0 0 18px; font-size: clamp(45px, 4.8vw, 62px); color: #fff; line-height: .98; }
.portal-hero h1 span { color: #a998ff; }
.portal-hero .lede { max-width: 580px; margin: 0 0 22px; color: #d1daf0; font-size: 16px; line-height: 1.45; }
.hero-art { position: relative; min-height: 0; overflow: hidden; background: #1689a7; }
.hero-art > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; transform: scale(1.04); transition: opacity .18s ease; }
.hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(22, 30, 62, .22), transparent 45%), linear-gradient(0deg, rgba(7, 13, 33, .58), transparent 40%); }
.hero-float { position: absolute; z-index: 1; display: flex; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 12px 28px rgba(11, 9, 30, .22); backdrop-filter: blur(9px); color: #fff; text-decoration: none; }
.hero-float-top { top: 20px; right: 20px; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 99px; background: rgba(22, 23, 39, .63); font-size: 11px; font-weight: 800; }
.float-dot { width: 8px; height: 8px; border-radius: 50%; background: #44dfb1; box-shadow: 0 0 0 4px rgba(68,223,177,.18); }
.hero-float-bottom { right: 20px; bottom: 20px; width: 215px; flex-direction: column; gap: 2px; padding: 15px; border-radius: 13px; background: rgba(17, 18, 31, .82); }
.hero-float-bottom span { color: #b6aaff; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-float-bottom strong { font-size: 19px; line-height: 1.15; }
.hero-float-bottom i { margin-top: 7px; color: #54e1c0; font-size: 12px; font-style: normal; font-weight: 800; }
.hero-carousel { position: absolute; z-index: 2; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 8px; color: #fff; }
.hero-carousel > span { min-width: 37px; color: rgba(255,255,255,.92); font-size: 11px; font-weight: 900; text-align: center; }
.hero-carousel-arrow { display: grid; width: 31px; height: 31px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.29); border-radius: 50%; background: rgba(17,18,31,.72); color: #fff; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; backdrop-filter: blur(8px); }
.hero-carousel-arrow:hover { border-color: #b39aff; background: #7456dc; }
.hero-carousel-dots { display: flex; gap: 5px; margin-left: 2px; }
.hero-carousel-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.42); cursor: pointer; }
.hero-carousel-dot.is-active { width: 21px; border-radius: 99px; background: #a78bff; }

.trust-bar { display: flex; justify-content: space-between; gap: 18px; margin: 0 18px; padding: 16px 20px; border: 1px solid rgba(168, 184, 232, .18); border-top: 0; border-radius: 0 0 12px 12px; background: #17223d; box-shadow: 0 8px 18px rgba(0, 4, 23, .22); color: #bdc8df; font-size: 12px; font-weight: 800; }
.trust-bar span { display: flex; align-items: center; gap: 7px; }
.trust-bar b { color: #8d7bff; font-size: 14px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  padding: clamp(36px, 7vw, 86px) 0 34px;
  align-items: stretch;
}

.hero-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  color: #f8f7f1;
  background:
    linear-gradient(110deg, rgba(20, 30, 24, 0.92), rgba(20, 30, 24, 0.74)),
    url("/assets/cover.svg");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero h1,
.page-head h1,
.article-head h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 76px);
}

.lede,
.hero-copy p {
  max-width: 680px;
}

.lede {
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #f3d36b;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  gap: 10px;
  border-radius: 9px;
  background: #273352;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, #a36cff, #6d55f5);
  border-color: #ae88ff;
  color: #fff;
}

.button.secondary { border-color: rgba(255,255,255,.35); background: rgba(8,13,39,.26); color: #fff; }

.button.ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-actions,
.card-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.quick-panel,
.game-card,
.band,
.table-wrap,
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-panel {
  padding: 28px;
}

.quick-panel h2,
.band h2 {
  margin-top: 0;
}

.toolbar-section,
.page-head,
.article {
  padding: 58px 0 20px;
}

.toolbar-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.toolbar-section h2,
.page-head h1,
.article h2 {
  margin: 0 0 8px;
}

.toolbar-section h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; }

.search-box {
  width: min(360px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #202b49;
  color: var(--ink);
  font: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 16px 0 42px;
}

.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 16px; }

.grid.small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card {
  overflow: hidden;
  border: 1px solid rgba(157, 176, 234, .19);
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(0, 5, 31, .24);
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(0,5,31,.45); }

.card-media {
  position: relative;
  display: block;
  min-height: 185px;
  padding: 0;
  color: #fff;
  overflow: hidden;
  background: #21315b;
}
.card-media img { display: block; width: 100%; height: 185px; object-fit: cover; transition: transform .22s ease; }
.game-card:hover .card-media img { transform: scale(1.04); }
.media-tag { position: absolute; top: 13px; left: 13px; padding: 6px 9px; border-radius: 6px; background: rgba(17,19,29,.72); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(4px); }
.media-arrow { position: absolute; right: 13px; bottom: 13px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #fff; color: #222331; font-size: 16px; font-weight: 900; }

.card-body {
  padding: 17px 18px 19px;
}

.meta-row {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.pill.hot { background: #553241; color: #ffb19c; }
.pill.rising { background: #1c4b4d; color: #83ebce; }
.pill.watch { background: #39315f; color: #c7b9ff; }

.game-card h2 {
  margin: 12px 0 8px;
  font-size: 21px;
  line-height: 1.15;
}

.game-card p,
.toolbar-section p,
.page-head p,
.article-head p,
.band p,
.site-footer p {
  color: var(--muted);
}
.game-card p { min-height: 51px; font-size: 14px; line-height: 1.55; }
.card-actions { margin-top: 15px; }
.card-actions .text-link { color: #c3b5ff; font-size: 13px; font-weight: 900; }

.band {
  margin: 8px 0 48px;
  padding: 26px;
  background: var(--soft);
}

.feature-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin: 12px 0 58px; }
.feature-copy { padding: clamp(30px, 4vw, 52px); border-radius: 14px; background: #e9e5ff; }
.feature-copy { border: 1px solid rgba(171, 188, 245, .2); background: linear-gradient(145deg, #263660, #24264b); }
.feature-copy .eyebrow { color: #b6a8ff; }
.feature-copy h2 { max-width: 460px; margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.055em; line-height: 1; }
.feature-copy p:not(.eyebrow) { max-width: 520px; color: #c0cae1; }
.feature-copy .text-link { color: #bfafff; font-weight: 900; text-decoration: none; }
.feature-tool { position: relative; display: flex; min-height: 248px; flex-direction: column; justify-content: end; overflow: hidden; padding: 28px; border-radius: 14px; background: radial-gradient(circle at 79% 22%, #6bdfcb 0 8%, transparent 8.5%), radial-gradient(circle at 78% 24%, #29b6ad 0 17%, transparent 17.5%), linear-gradient(135deg, #202d50, #482d79); color: #fff; text-decoration: none; }
.feature-tool::before { position:absolute; top: 30px; right: 26px; width: 100px; height: 82px; border: 12px solid rgba(255,255,255,.72); border-radius: 18px; content:""; transform: rotate(-10deg); }
.feature-tool::after { position:absolute; top: 49px; right: 57px; width: 40px; height: 20px; border: 7px solid rgba(255,255,255,.72); border-radius: 6px; content:""; transform: rotate(-10deg); }
.tool-chip { align-self: flex-start; margin-bottom: 12px; padding: 5px 8px; border-radius: 5px; background: rgba(255,255,255,.16); color: #b6ffef; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.feature-tool strong { position: relative; z-index: 1; font-size: 31px; line-height: .96; letter-spacing: -.05em; }
.feature-tool small { position: relative; z-index: 1; margin-top: 9px; color: #bdc8ec; font-size: 13px; }
.feature-tool i { position: absolute; z-index: 1; right: 26px; bottom: 29px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #fff; color: #40306c; font-size: 18px; font-style: normal; }

.page-head,
.article {
  max-width: 920px;
}

.article {
  margin: 0 auto 52px;
}

.article-head {
  padding: 42px 0 20px;
}

.article-head h1,
.page-head h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent-2);
  background: #3c2d3c;
  color: #ffd0c1;
  font-weight: 800;
}

.byline,
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.byline span,
.summary-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #202b48;
}

.article section {
  margin: 32px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: var(--surface);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.copy-code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #313e63;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  cursor: pointer;
}

.steps li,
.article li {
  margin: 8px 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

code {
  padding: 3px 6px;
  border-radius: 5px;
  background: #303c60;
}

.tool-panel {
  padding: 24px;
}

.tool-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid #476a62;
  border-radius: 8px;
  background: #1d3a3e;
}

.tool-callout h2 {
  margin: 0 0 6px;
}

.tool-callout p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calculator-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.calculator-form .button {
  align-self: end;
}

.calculator-result {
  margin-top: 20px;
  padding: 18px;
  border-radius: 7px;
  background: #202b48;
}

.calculator-result p {
  margin: 0;
  color: var(--muted);
}

.calculator-result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.calculator-result div {
  padding: 12px;
  border-radius: 6px;
  background: #293656;
}

.calculator-result dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calculator-result dd {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.tracker-form {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 10px;
}

.tracker-log {
  padding-left: 18px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-left: 18px;
}

details {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202b48;
}

summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 48px);
  border-top: 1px solid #35446d;
  background: #090e1e;
  color: #fff;
}
.site-footer p { color: #a9acb8; }

.site-footer nav {
  gap: 14px;
  flex-wrap: wrap;
}

/* Article-first Codes page: editorial structure with clearly labelled code status. */
.article-page-frame { padding-bottom: 52px; }
.article-ad-rail,
.sidebar-ad {
  display: grid;
  place-items: center;
  color: #a1a4ad;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.article-ad-rail { min-height: 72px; margin: 20px 0 0; border-block: 1px solid #e4e4e8; background: #f1f1f3; }
/* Reserved top-of-article ad inventory. It is intentionally absent while disabled in build.js. */
.article-ad-rail { border-color: rgba(151, 170, 226, .13); background: rgba(22, 32, 61, .62); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 30px 0 14px; color: #aab6d4; font-size: 13px; font-weight: 700; line-height: 1.35; }
.breadcrumbs a { color: #c1b3ff; text-decoration: none; }
.article-codes-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 760px);
  gap: clamp(30px, 5vw, 72px);
  align-items: stretch;
}
.article-codes-article { max-width: none; margin: 0; padding: 0; }
.codes-article-head { padding: 0 0 26px; }
.codes-article-head h1 { max-width: 750px; margin: 0; font-size: clamp(39px, 5vw, 62px); letter-spacing: -.058em; line-height: .98; }
.article-dek { max-width: 690px; margin: 19px 0 0; color: #c4cde3; font-size: 18px; line-height: 1.65; }
.codes-byline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; color: #aeb9d4; font-size: 13px; }
.codes-byline b { color: #f5f7ff; }
.guide-hero-image { margin: 0; overflow: hidden; border-radius: 3px; background: #d9e9d9; }
.guide-hero-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guide-hero-image figcaption { padding: 8px 10px; background: #192440; color: #aeb8d0; font-size: 11px; font-style: italic; }
.codes-intro { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: stretch; margin: 23px 0 36px; padding: 15px; border: 1px solid #43547d; border-left: 4px solid #9d73ff; background: #202b4a; }
.codes-intro div { display: grid; gap: 2px; align-content: center; padding: 0 8px; border-right: 1px solid #43547d; }
.codes-intro strong { color: #f6f8ff; font-size: 13px; }
.codes-intro span { color: #b3bfda; font-size: 12px; }
.codes-intro .button { align-self: center; min-height: 38px; white-space: nowrap; }
.article-codes-article section { margin: 42px 0; }
.article-codes-article h2 { margin: 0 0 12px; font-size: clamp(27px, 3vw, 35px); letter-spacing: -.04em; line-height: 1.12; }
.article-codes-article section > p:not(.eyebrow) { max-width: 720px; color: #c1cae0; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading-row .eyebrow { margin-bottom: 7px; }
.source-chip { display: inline-flex; margin-bottom: 12px; padding: 5px 8px; border-radius: 4px; background: #513d24; color: #ffd08b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.codes-table-wrap { overflow-x: auto; border: 1px solid #44557e; box-shadow: 0 9px 22px rgba(0, 4, 22, .25); }
.codes-table { min-width: 640px; }
.codes-table th { background: #272934; color: #f8f8fb; font-size: 11px; letter-spacing: .06em; }
.codes-table td { padding: 13px 14px; color: #d3dbec; font-size: 14px; }
.codes-table tr:last-child td { border-bottom: 0; }
.codes-table .status { background: #513d24; color: #ffd08b; }
.codes-table .copy-code { min-width: 175px; text-align: left; background: #352e64; color: #d5c7ff; }
.code-safety-note { margin-top: 13px; padding: 12px 14px; border-radius: 3px; background: #312a59; color: #d7d0f5; font-size: 13px; }
.redeem-steps { display: grid; gap: 13px; padding: 0; list-style: none; }
.redeem-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: start; margin: 0; }
.redeem-steps li > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #292b37; color: #fff; font-size: 13px; font-weight: 900; }
.redeem-steps p { margin: 2px 0 0; color: #c3cce2; }
.expired-section { padding: 25px; border-block: 1px solid #43547d; background: #192440; }
.report-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 17px; border: 1px solid #43547d; background: #202b4a; }
.report-box div { display: grid; gap: 3px; }
.report-box span { color: #b3bfd9; font-size: 13px; }
.report-box a, .sidebar-link { color: #c4b5ff; font-size: 13px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.tracker-panel { padding: 25px; }
.tracker-panel .eyebrow { margin-bottom: 6px; }
.codes-sidebar {
  min-width: 0;
  min-height: 100%;
}
.codes-sidebar-panel {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid #344669;
  background: #101b32;
  box-shadow: 0 18px 40px rgba(0, 4, 22, .32);
  scrollbar-width: thin;
  scrollbar-color: #53648e transparent;
}
.codes-sidebar .jump-card { box-shadow: 0 12px 26px rgba(0, 4, 22, .3); }
.codes-sidebar-panel .sidebar-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.codes-sidebar-panel .sidebar-card + .sidebar-card {
  border-top: 1px solid #344669;
}
.codes-sidebar-panel .jump-card { padding-bottom: 18px; }
.codes-sidebar-panel .trust-card { background: transparent; }
.codes-sidebar-panel .trust-card::after { opacity: .65; }
.codes-sidebar-panel .related-card { padding-top: 20px; }
.sidebar-card { padding: 21px; border: 1px solid #43547d; background: #1c2745; box-shadow: 0 8px 22px rgba(0, 4, 22, .2); }
.sidebar-card .eyebrow { margin-bottom: 9px; font-size: 10px; }
.jump-card { display: grid; gap: 0; }
.jump-card a { padding: 9px 0; border-bottom: 1px solid #354565; color: #c6d0e7; font-size: 13px; font-weight: 800; text-decoration: none; }
.jump-card a:last-child { border-bottom: 0; }
.jump-card a:hover { color: #5d49cc; }
.trust-card { position: relative; overflow: hidden; border-color: #242633; background: #242633; color: #fff; }
.trust-card::after { position: absolute; right: -22px; bottom: -35px; width: 130px; height: 130px; border: 24px solid rgba(132, 111, 255, .35); border-radius: 50%; content: ""; }
.trust-card .eyebrow { color: #a99dff; }
.trust-card h2 { position: relative; z-index: 1; margin: 0 0 8px; font-size: 25px; line-height: 1.05; letter-spacing: -.04em; }
.trust-card p:not(.eyebrow) { position: relative; z-index: 1; margin: 0; color: #c6c8d4; font-size: 13px; }
.status-dot { display: block; width: 8px; height: 8px; margin-bottom: 15px; border-radius: 50%; background: #73e4ba; box-shadow: 0 0 0 5px rgba(115, 228, 186, .14); }
.related-card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.1; }
.related-card ul { display: grid; gap: 9px; margin: 0 0 17px; padding-left: 17px; }
.related-card li { color: #c2cce3; font-size: 13px; }
.related-card a { color: #c3b5ff; font-weight: 800; }
.sidebar-ad { min-height: 250px; border: 1px dashed #43547d; background: #18223d; }

@media (max-width: 860px) {
  .site-header,
  .toolbar-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .portal-hero,
  .grid,
  .grid.small,
  .two-col,
  .related-list {
    grid-template-columns: 1fr;
  }

  .feature-split { grid-template-columns: 1fr; }
  .trust-bar { flex-wrap: wrap; }
  .header-cta { display: none; }

  .hero-copy {
    min-height: 360px;
  }

  .tracker-form {
    grid-template-columns: 1fr;
  }

  .tool-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .calculator-form,
  .calculator-result dl {
    grid-template-columns: 1fr;
  }

  .article-codes-layout { grid-template-columns: 1fr; }
  .codes-sidebar { min-height: 0; }
  .codes-sidebar-panel { position: static; max-height: none; overflow: visible; display: grid; padding: 0; border: 0; background: transparent; box-shadow: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .codes-sidebar-panel .sidebar-card { border: 1px solid #43547d; border-radius: 0; background: #1c2745; }
  .codes-sidebar-panel .sidebar-card + .sidebar-card { border-top: 1px solid #43547d; }
  .codes-sidebar-panel .trust-card { background: #242633; }
  .sidebar-ad { display: none; }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy {
    padding: 24px;
  }

  .portal-hero { margin-top: 16px; }
  .portal-hero { height: auto; }
  .portal-hero .hero-copy { padding: 40px 26px; }
  .hero-art { min-height: 330px; }
  .hero-carousel { bottom: 16px; left: 16px; }
  .hero-float-bottom { bottom: 70px; }
  .trust-bar { margin: 0 8px; padding: 14px; }

  .article-ad-rail { min-height: 52px; margin-inline: -12px; }
  .breadcrumbs { padding: 24px 0 12px; font-size: 12px; }
  .codes-article-head { padding-top: 12px; }
  .codes-article-head h1 { font-size: 40px; }
  .article-dek { font-size: 16px; }
  .codes-intro { grid-template-columns: 1fr; }
  .codes-intro div { padding: 5px 2px; border-right: 0; border-bottom: 1px solid #e0e1e6; }
  .codes-intro .button { width: 100%; }
  .section-heading-row, .report-box { align-items: flex-start; flex-direction: column; }
  .source-chip { margin-bottom: 0; }
  .expired-section { margin-inline: -12px !important; padding: 24px 12px; }
  .codes-sidebar-panel { grid-template-columns: 1fr; }
}

.calculator-result .section-kicker {
  padding: 0;
  border: 0;
  background: transparent;
}

.calculator-result .result-output {
  padding: 0;
  border: 0;
  background: transparent;
}

.calculator-result dl > div {
  padding: 15px 17px;
  border: 1px solid rgba(174, 191, 255, .15);
  border-radius: 10px;
  background: rgba(10, 18, 44, .27);
}

.calculator-result .result-output > p {
  margin-top: 80px;
  color: #b6c2df;
}

@media (max-width: 520px) {
  .calculator-result .result-output > p { margin-top: 58px; }
}

/* Tool surfaces */
.tools-hero,
.calculator-hero {
  position: relative;
  overflow: hidden;
  margin: 34px 0 0;
  border: 1px solid rgba(177, 194, 255, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, #162d3a, #11172d 58%, #171c3d);
  box-shadow: 0 24px 55px rgba(0, 5, 32, .38);
}

.tools-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  padding: clamp(42px, 7vw, 82px) clamp(28px, 5vw, 68px);
}

.tools-hero::after,
.calculator-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 16% 10%, rgba(88, 224, 189, .11), transparent 28%), radial-gradient(circle at 88% 18%, rgba(128, 105, 255, .3), transparent 34%);
}

.tools-hero-copy,
.calculator-hero > * { position: relative; z-index: 1; }
.tools-hero .eyebrow { color: #b0a0ff; }
.tools-hero h1,
.calculator-hero h1 {
  margin: 0 0 22px;
  color: #f7f8ff;
  font-size: clamp(44px, 5.4vw, 68px);
  letter-spacing: -.06em;
  line-height: .96;
}
.tools-hero h1 span,
.calculator-hero h1 span { color: #a899ff; }
.tools-hero-copy > p:not(.eyebrow) { max-width: 630px; color: #c4cee5; font-size: 17px; line-height: 1.5; }
.tools-hero .hero-actions { margin-top: 30px; gap: 22px; }
.tools-hero .button { min-height: 52px; padding-inline: 21px; border-radius: 12px; }
.text-link { color: #c6b9ff; font-weight: 900; }
.tools-hero-preview { position: relative; z-index: 1; width: min(100%, 330px); justify-self: end; padding: 22px; border: 1px solid rgba(177, 194, 255, .28); border-radius: 16px; background: linear-gradient(145deg, rgba(44, 58, 108, .94), rgba(22, 31, 65, .96)); box-shadow: 0 22px 50px rgba(0, 4, 24, .3); }
.preview-top { display: flex; align-items: center; gap: 8px; color: #9eabd0; font-size: 10px; font-weight: 900; letter-spacing: .14em; }.preview-top b { margin-left: auto; color: #a899ff; }.preview-status { width: 7px; height: 7px; border-radius: 50%; background: #58e0bd; box-shadow: 0 0 0 4px rgba(88, 224, 189, .14); }
.preview-icon { display: grid; width: 42px; height: 42px; margin: 28px 0 15px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #8a68f2, #5544b9); color: #fff; font-size: 20px; }.tools-hero-preview .eyebrow { margin-bottom: 5px; font-size: 10px; }.tools-hero-preview h2 { margin: 0 0 20px; font-size: 28px; line-height: .98; letter-spacing: -.05em; }.preview-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(177, 194, 255, .15); color: #aebbd9; font-size: 12px; }.preview-row strong { color: #f7f8ff; }.preview-result { display: flex; justify-content: space-between; align-items: end; margin-top: 14px; padding: 14px; border-radius: 10px; background: rgba(88, 224, 189, .1); color: #9cdbc9; font-size: 11px; }.preview-result strong { color: #58e0bd; font-size: 25px; line-height: 1; }
.tools-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 76px 10px 28px; }
.tools-section-heading h2, .tools-principles h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.055em; }
.tools-section-heading > p { max-width: 300px; margin: 0 0 4px; color: var(--muted); }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-directory-card { overflow: hidden; border: 1px solid #3c4b78; border-radius: 16px; background: #202d54; box-shadow: var(--shadow); }
.tool-card-media { position: relative; display: flex; align-items: end; min-height: 225px; padding: 22px; background: linear-gradient(180deg, rgba(22, 27, 65, .04), rgba(15, 20, 43, .76)), url("/assets/images/code-arcade-garden-portal-v3.jpg") center/cover; }
.tool-card-media span { color: #d4dbf3; font-size: 11px; font-weight: 900; letter-spacing: .16em; }.tool-card-media b { position: absolute; right: 24px; top: 18px; color: #a998ff; font-size: 38px; }
.tool-directory-card .card-body { padding: 24px 26px 27px; }.tool-directory-card .meta-row { gap: 12px; color: #aebbd8; font-size: 12px; font-weight: 800; }.tool-directory-card .pill { padding: 5px 10px; }.card-number { margin-left: auto; color: #8491b7; letter-spacing: .12em; }
.tool-directory-card h2 { margin: 24px 0 12px; font-size: 31px; line-height: .98; letter-spacing: -.045em; }.tool-directory-card h2 a { text-decoration: none; }.tool-directory-card p { max-width: 440px; margin: 0; color: #b9c5e0; }.tool-directory-card .card-actions { gap: 20px; margin-top: 25px; }.tool-directory-card .button { padding-inline: 17px; }.tool-directory-card-muted { background: #161e3a; border-color: #2e3b63; }.tool-directory-card-muted .tool-card-media { background: linear-gradient(135deg, #303d73, #1b264c); }.tool-directory-card-muted h2 { color: #aab7d3; }
.tools-principles { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; margin: 72px 0 90px; padding: 30px 0; border-top: 1px solid #364366; }.tools-principles > p { max-width: 620px; margin: 5px 0; color: var(--muted); font-size: 16px; }

.calculator-page { padding-bottom: 80px; }.calculator-hero { padding: 60px clamp(28px, 6vw, 78px) 52px; }.back-link { display: inline-block; margin-bottom: 54px; color: #aebce0; font-size: 13px; font-weight: 900; text-decoration: none; }.calculator-hero .eyebrow { color: #b0a0ff; }.calculator-hero h1 { max-width: 720px; font-size: clamp(52px, 8vw, 92px); }.calculator-hero > p:not(.eyebrow) { max-width: 600px; margin: 0; color: #c4cee5; font-size: 17px; }.calculator-hero .byline { margin-top: 28px; color: #8e9cc1; }
.calculator-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 22px; overflow: hidden; border: 1px solid #3d4c75; border-radius: 16px; background: #1a2445; box-shadow: var(--shadow); }.calculator-inputs { padding: 30px; border-right: 1px solid #3d4c75; }.section-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: #dbe2f7; font-size: 16px; }.section-kicker span { color: #a899ff; font-size: 11px; font-weight: 900; letter-spacing: .14em; }.calculator-form { grid-template-columns: 1fr; gap: 14px; }.calculator-form label { color: #acbad8; }.calculator-form input { min-height: 52px; padding: 12px 14px; border: 1px solid #41517e; border-radius: 10px; background: #111a35; color: #fff; font: inherit; outline: none; }.calculator-form input:focus { border-color: #a899ff; box-shadow: 0 0 0 3px rgba(168, 153, 255, .14); }.calculator-form .button { margin-top: 7px; min-height: 54px; border-radius: 11px; }.form-note { margin: 22px 0 0; color: #7f8eb5; font-size: 12px; }.calculator-result { margin: 0; padding: 30px; border-radius: 0; background: linear-gradient(145deg, #273666, #1c2851); }.calculator-result > p { margin-top: 80px; color: #b6c2df; }.calculator-result dl { grid-template-columns: 1fr; gap: 10px; }.calculator-result div { padding: 15px 17px; border: 1px solid rgba(174, 191, 255, .15); border-radius: 10px; background: rgba(10, 18, 44, .27); }.calculator-result dd { font-size: 28px; color: #fff; }.calculation-notes { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; margin: 78px 0; }.calculation-notes h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: .98; letter-spacing: -.055em; }.calculation-notes ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }.calculation-notes li { display: grid; gap: 6px; padding: 17px; border: 1px solid #344267; border-radius: 11px; background: #17213f; }.calculation-notes li strong { font-size: 14px; }.calculation-notes li span { color: #96a4c4; font-size: 12px; }.calculator-callout { margin: 0; padding: 30px; border-color: #465588; background: linear-gradient(120deg, #263664, #1b294d); }.calculator-callout h2 { font-size: 26px; }

@media (max-width: 860px) {
  .tools-hero { grid-template-columns: 1fr; }.tools-hero-preview { justify-self: start; margin-top: 18px; }.tools-section-heading, .tools-principles, .calculation-notes { grid-template-columns: 1fr; display: grid; gap: 20px; }.calculator-workspace { grid-template-columns: 1fr; }.calculator-inputs { border-right: 0; border-bottom: 1px solid #3d4c75; }.calculation-notes ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .tools-hero, .calculator-hero { margin-top: 16px; border-radius: 14px; }.tools-hero { padding: 38px 24px 24px; }.tools-hero h1, .calculator-hero h1 { font-size: 48px; }.tools-hero-preview { width: 100%; }.tools-section-heading { padding: 52px 2px 22px; }.tools-grid { grid-template-columns: 1fr; }.tools-principles { margin: 58px 0 65px; }.calculator-hero { padding: 28px 24px 32px; }.back-link { margin-bottom: 38px; }.calculator-inputs, .calculator-result { padding: 24px; }.calculator-result > p { margin-top: 58px; }.calculation-notes { margin: 58px 0; }.calculation-notes ul { grid-template-columns: 1fr; }.calculator-callout { padding: 24px; }
}

/* Shared reading shell for every non-home page. */
:root { --app-sidebar: 282px; }
.inner-page { padding-left: var(--app-sidebar); background: #071b3a; }
.inner-page::before { display: none; }
.inner-page main.inner-main { width: 100%; min-height: 760px; margin: 0; padding: 0 0 72px; }
.inner-masthead { display: flex; align-items: center; min-height: 84px; padding: 0 clamp(26px, 5vw, 78px); border-bottom: 1px solid #27466e; background: #082249; }
.inner-crumbs { display: flex; min-width: 0; align-items: center; gap: 13px; overflow: hidden; color: #a9bad7; font-size: 13px; font-weight: 800; white-space: nowrap; }.inner-crumbs a { color: #a9bad7; text-decoration: none; }.inner-crumbs span:last-child { overflow: hidden; color: #f2f5ff; text-overflow: ellipsis; }
.inner-layout { display: block; min-height: 690px; background: #081d3e; }
.inner-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--app-sidebar); overflow-y: auto; padding: 26px 20px 42px; border-right: 1px solid #294871; background: #061a38; scrollbar-width: thin; scrollbar-color: #8499b9 transparent; }.sidebar-brand { margin: 0 0 36px 6px; }.sidebar-brand .brand-mark { width: 44px; height: 44px; }.sidebar-brand .brand strong { font-size: 24px; }.sidebar-brand .brand small { display: none; }
.inner-nav { display: grid; gap: 4px; }.inner-nav a { display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 13px; border-radius: 5px; color: #aebdd7; font-size: 16px; font-weight: 800; text-decoration: none; }.inner-nav a span { width: 19px; color: #8fa7ca; text-align: center; }.inner-nav a:hover, .inner-nav a.is-active { background: #e92d27; color: #fff; }.inner-nav a.is-active span { color: #fff; }
.inner-toc, .inner-related { display: grid; gap: 0; margin-top: 26px; padding-top: 20px; border-top: 1px solid #294871; }.inner-toc > p, .inner-related > p { margin: 0 0 8px; color: #f4f6fe; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }.inner-toc a { padding: 8px 4px; border-bottom: 1px solid rgba(92, 121, 162, .25); color: #aebdd7; font-size: 12px; font-weight: 800; text-decoration: none; }.inner-toc a:hover { color: #fff; }.inner-related ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.inner-related a { color: #aebdd7; font-size: 12px; font-weight: 700; text-decoration: none; }.inner-related a:hover { color: #fff; }
.inner-content { min-width: 0; padding: clamp(36px, 5vw, 78px); background: linear-gradient(135deg, #19365c, #172642 56%, #17223d); }.inner-content .page-head, .inner-content > .article, .inner-content .calculator-page { max-width: 1100px; margin-inline: auto; }.inner-content .page-head, .inner-content > .article { padding-top: 0; }.inner-content .article { margin-bottom: 0; }.inner-content .article-head { padding-top: 0; }.inner-content .tools-hero, .inner-content .calculator-hero { margin-top: 0; }
.inner-content .article-codes-article { max-width: 100%; }.inner-content .article-page-frame { padding-bottom: 0; }.inner-content .article-codes-article section { margin-block: 38px; }.inner-content .codes-article-head { max-width: 790px; }.inner-content .guide-hero-image { max-width: 870px; }.inner-content .codes-intro { max-width: 920px; }.inner-content .article-codes-article .breadcrumbs { display: none; }
.inner-content .page-head h1, .inner-content .article-head h1 { font-size: clamp(35px, 5vw, 62px); letter-spacing: -.055em; }.inner-content .page-head > p:last-child, .inner-content .article-head > p:last-child { max-width: 720px; color: #c8d4ea; font-size: 17px; }

.inner-page .site-footer { margin-left: 0; }.site-footer { display: grid; grid-template-columns: minmax(280px, 1.4fr) minmax(150px, .75fr) minmax(150px, .75fr); gap: 48px; margin-top: 0; padding: 52px max(48px, calc((100vw - 1420px) / 2)); border-top: 1px solid #243e64; background: #061a38; }.footer-brand .brand { width: max-content; margin-bottom: 18px; }.footer-brand .brand-mark { width: 52px; height: 52px; }.footer-brand .brand strong { font-size: 28px; }.footer-brand .brand small { display: none; }.footer-brand p { max-width: 530px; margin: 0; color: #b7c4d9; font-size: 16px; }.site-footer nav { display: grid; align-content: start; gap: 6px; }.site-footer nav strong { margin-bottom: 5px; color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }.site-footer nav a { color: #b7c4d9; font-size: 16px; }.site-footer > small { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid #243e64; color: #a9b9d1; font-size: 14px; }

@media (max-width: 860px) {
  .inner-page { padding-left: 0; }.inner-page main.inner-main { width: 100%; padding-top: 0; }.inner-masthead { min-height: 58px; padding-inline: 16px; }.inner-crumbs { display: none; }.inner-sidebar { position: static; display: flex; width: auto; gap: 8px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid #294871; }.sidebar-brand, .inner-toc, .inner-related { display: none; }.inner-nav { display: flex; gap: 4px; }.inner-nav a { min-height: 35px; white-space: nowrap; }.inner-content { padding: 30px 20px; }.site-footer { grid-template-columns: 1fr 1fr; padding: 40px 24px; gap: 30px; }.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .inner-page main.inner-main { width: 100%; padding: 0 0 36px; }.inner-content { padding: 28px 16px; }.inner-nav a { padding-inline: 10px; font-size: 12px; }.inner-nav a span { display: none; }.site-footer { grid-template-columns: 1fr; padding: 35px 24px; }.footer-brand { grid-column: auto; }.site-footer > small { grid-column: auto; }.footer-brand .brand strong { font-size: 24px; }
}
