/* Sbobetdesk — night desk. No CDN. System stacks only. */
:root {
  --desk-ink: #12141A;
  --desk-ink-2: #1A1D26;
  --rule: #2A2E38;
  --type: #E8E4D9;
  --type-muted: #9A9488;
  --lede: #C4C0B4;
  --brass: #C4A36A;
  --brass-press: #A8864E;
  --brass-hover: #D4B57A;
  --cta-fill: #C4A36A;
  --cta-type: #12141A;
  --focus: #E0C48A;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-ui: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--desk-ink);
  color: var(--type);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--desk-ink);
  position: relative;
}

/* 2–3% desk noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='80' height='80' filter='url(%23n)'/></svg>");
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brass-hover); }
a:visited { color: var(--brass); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  background: var(--desk-ink-2);
  color: var(--type);
  padding: 8px 12px;
}

/* Header — full width */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--desk-ink);
  border-bottom: 1px solid var(--rule);
  gap: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
  color: var(--type);
}
.brand:visited { color: var(--type); }
.brand:hover { color: var(--type); }

.wordmark {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  color: var(--type-muted);
  letter-spacing: 0.08em;
  text-transform: none;
}

.desk-nav {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.host-label {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 12px;
  color: var(--type-muted);
  text-align: right;
}
.nameplate {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--desk-ink);
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  box-shadow: inset 0 -1px 0 var(--brass-press);
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

main { display: block; }

/* First screen — phone */
.first-screen {
  padding-top: 40px;
  padding-bottom: 48px;
  min-height: calc(100dvh - 52px - 56px - env(safe-area-inset-bottom, 0px));
}

.first-screen .kicker-hero {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  color: var(--type-muted);
  letter-spacing: 0.08em;
  margin: 0;
}

.first-screen h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--type);
  margin: 12px 0 0;
}

.lede {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--lede);
  margin: 20px 0 0;
  max-width: 640px;
}

/* Sole first-screen CTA */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  height: 48px;
  width: 100%;
  padding: 0 28px;
  border-radius: 2px;
  background: var(--cta-fill);
  color: var(--cta-type);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.btn-cta:visited { color: var(--cta-type); background: var(--cta-fill); }
.btn-cta:hover { background: var(--brass-hover); color: var(--cta-type); }
.btn-cta:active { background: var(--brass-press); transform: translateY(1px); }
.btn-cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .btn-cta:active { transform: none; }
}

/* Below fold */
.below {
  padding: 8px 0 72px;
  border-top: 1px solid var(--rule);
}

.page-body {
  padding: 40px 0 72px;
}

.page-body h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--type);
  margin: 0 0 16px;
}

.page-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  color: var(--type-muted);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--type);
  margin: 36px 0 12px;
}

p { margin: 0 0 1em; color: var(--type); }
.muted { color: var(--type-muted); }
.lede-block { color: var(--lede); font-size: 17px; line-height: 1.45; }

.redline {
  border-left: 2px solid var(--brass);
  padding: 8px 0 8px 14px;
  color: var(--lede);
  margin: 24px 0;
}

.corner {
  border: 1px solid var(--rule);
  padding: 16px 18px;
  background: var(--desk-ink-2);
  margin: 20px 0 28px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 28px;
}
.table-wrap table { margin: 0; min-width: 520px; }
.table-wrap table.matrix { min-width: 0; }
th, td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--type-muted);
  background: var(--desk-ink-2);
  letter-spacing: 0.04em;
}
td code, .host-plain {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--type);
}

.teasers { list-style: none; padding: 0; margin: 12px 0 32px; }
.teasers li {
  border-bottom: 1px solid var(--rule);
}
.teasers a {
  display: block;
  padding: 14px 0;
  color: var(--type);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
}
.teasers a:hover { color: var(--brass); }
.teasers a span {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--type-muted);
  margin-top: 4px;
  font-style: normal;
}

.checked {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--type-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 20px calc(28px + 56px + env(safe-area-inset-bottom, 0px));
  background: var(--desk-ink);
}
.site-footer .wrap { padding: 0; }
.footer-lock {
  font-size: 14px;
  line-height: 1.5;
  color: var(--lede);
  max-width: 640px;
  margin: 0 0 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}
.footer-nav a { color: var(--type-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--brass); }
.footer-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--type-muted);
}

/* Mobile tabs */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--desk-ink);
  border-top: 1px solid var(--rule);
}
.tabbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--type-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-ui);
}
.tabbar a[aria-current="page"],
.tabbar a.is-active { color: var(--brass); }

@media (max-width: 767px) {
  table.matrix {
    display: block;
    min-width: 0;
  }
  table.matrix thead { display: none; }
  table.matrix tbody,
  table.matrix tr,
  table.matrix td {
    display: block;
    width: 100%;
  }
  table.matrix tr {
    margin: 0 0 12px;
    border: 1px solid var(--rule);
    background: var(--desk-ink-2);
  }
  table.matrix td {
    border: 0;
    border-bottom: 1px solid var(--rule);
  }
  table.matrix td:last-child { border-bottom: 0; }
  table.matrix td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--type-muted);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }
}

/* Tablet 768–1119 */
@media (min-width: 768px) {
  .site-header { height: 56px; padding: 0 24px; }
  .desk-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
  }
  .desk-nav a {
    color: var(--type-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-ui);
  }
  .desk-nav a:hover,
  .desk-nav a[aria-current="page"],
  .desk-nav a.is-active { color: var(--brass); }
  .wordmark { font-size: 17px; line-height: 22px; }
  .kicker { font-size: 11px; line-height: 14px; }
  .host-label { font-size: 11px; line-height: 14px; }
  .nameplate { font-size: 11px; }
  .wrap { max-width: 640px; padding: 0 32px; }
  .first-screen {
    padding-top: 56px;
    min-height: calc(100dvh - 56px);
  }
  .first-screen h1,
  .page-body h1 { font-size: 32px; line-height: 1.2; }
  .lede { font-size: 17px; line-height: 1.45; margin-top: 16px; }
  .first-screen .kicker-hero { margin-top: 0; }
  .first-screen h1 { margin-top: 10px; }
  .btn-cta { width: auto; margin-top: 24px; }
  .desk-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  .tabbar { display: none; }
  .site-footer { padding: 32px 32px 40px; }
  .page-body { padding-top: 56px; }
}

/* Desktop ≥1120 */
@media (min-width: 1120px) {
  .site-header { height: 64px; padding: 0 32px; }
  .brand { flex-direction: row; align-items: baseline; gap: 12px; }
  .wordmark { font-size: 18px; line-height: 24px; }
  .kicker { font-size: 12px; line-height: 16px; }
  .wrap { max-width: 720px; padding: 0 24px; }
  .first-screen {
    padding-top: 80px;
    min-height: calc(100dvh - 64px);
  }
  .first-screen h1,
  .page-body h1 { font-size: 40px; line-height: 1.15; }
  .lede { font-size: 18px; line-height: 1.45; margin-top: 20px; }
  .first-screen h1 { margin-top: 12px; }
  .btn-cta { margin-top: 28px; }
  .nameplate { font-size: 11px; }
}

.nameplate-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}
