:root {
  --bg: #fcfbf8;
  --bg-subtle: #f4f2ec;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --fg: #192020;
  --fg-muted: #566463;
  --fg-faint: #8a9695;
  --brand: #0f766e;
  --brand-hover: #0d655e;
  --brand-subtle: #e6f4f2;
  --accent-3d: #c25e00;
  --accent-3d-hover: #9d4c00;
  --accent-3d-subtle: #fef3e7;
  --border: #e3e0d5;
  --border-subtle: #eeece5;
  --st-open-bg: #e6f5ee;
  --st-open-fg: #0f6244;
  --st-open-border: #a8dfc5;
  --st-soon-bg: #fdf5e6;
  --st-soon-fg: #8c5208;
  --st-soon-border: #f7dcb0;
  --st-closed-bg: #f8ebeb;
  --st-closed-fg: #8e2b2b;
  --st-closed-border: #eec5c5;
  --st-info-bg: #edf2f7;
  --st-info-fg: #334155;
  --st-info-border: #cbd5e1;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(25, 32, 32, 0.04);
  --shadow-md: 0 4px 14px rgba(25, 32, 32, 0.06);
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
  --space-unit: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111516;
    --bg-subtle: #171c1d;
    --bg-surface: #1d2324;
    --bg-card: #1f2728;
    --fg: #eef2f2;
    --fg-muted: #9badac;
    --fg-faint: #677574;
    --brand: #2dd4bf;
    --brand-hover: #5eead4;
    --brand-subtle: #132f2b;
    --accent-3d: #fbbf24;
    --accent-3d-hover: #fcd34d;
    --accent-3d-subtle: #332305;
    --border: #2c3637;
    --border-subtle: #222a2b;
    --st-open-bg: #062b1e;
    --st-open-fg: #6ee7b7;
    --st-open-border: #0e5a40;
    --st-soon-bg: #321c05;
    --st-soon-fg: #fde68a;
    --st-soon-border: #6d420a;
    --st-closed-bg: #341212;
    --st-closed-fg: #fca5a5;
    --st-closed-border: #6d2323;
    --st-info-bg: #1e293b;
    --st-info-fg: #cbd5e1;
    --st-info-border: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
}
}

/* Base Styles */
body.v2 {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-stack);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body.v2 a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

body.v2 a:hover {
  color: var(--brand-hover);
}

body.v2 a:focus-visible,
body.v2 button:focus-visible,
body.v2 input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.v2 * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header & Masthead */
body.v2 header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.v2 header .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.5);
}

@media (min-width: 760px) {
  body.v2 header .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);
  }
}

body.v2 header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.v2 header h1 a {
  color: var(--fg);
  text-decoration: none;
}

body.v2 header p {
  margin: calc(var(--space-unit) * 0.5) 0 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* Navigation */
body.v2 nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

body.v2 nav::-webkit-scrollbar {
  display: none;
}

body.v2 nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

body.v2 nav a:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}

body.v2 nav a.on {
  color: var(--brand);
  background: var(--brand-subtle);
  border-color: var(--border);
  font-weight: 600;
}

body.v2 nav a.c3d {
  color: var(--accent-3d);
  background: var(--accent-3d-subtle);
  border-color: rgba(194, 94, 0, 0.2);
  font-weight: 600;
}

body.v2 nav a.c3d:hover {
  background: var(--accent-3d);
  color: #ffffff;
}

/* Main Layout & Headings */
body.v2 main {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--space-unit) * 3) calc(var(--space-unit) * 2);
}

@media (min-width: 760px) {
  body.v2 main {
    padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 3);
  }
}

body.v2 h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: calc(var(--space-unit) * 4) 0 calc(var(--space-unit) * 2);
  color: var(--fg);
}

body.v2 h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: calc(var(--space-unit) * 3) 0 calc(var(--space-unit) * 1.5);
  color: var(--fg);
}

body.v2 article {
  margin-bottom: calc(var(--space-unit) * 4);
}

/* Feature 3D Banner */
body.v2 article.feat3d {
  background: linear-gradient(135deg, #101e1d 0%, #172a28 60%, #112024 100%);
  color: #f1f5f5;
  border-radius: var(--radius-lg);
  padding: calc(var(--space-unit) * 3.5);
  margin-bottom: calc(var(--space-unit) * 4);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.v2 .feat3d h2 {
  color: #ffffff;
  font-size: 1.625rem;
  margin: calc(var(--space-unit) * 1) 0 calc(var(--space-unit) * 1);
  letter-spacing: -0.02em;
}

body.v2 .feat3d p {
  color: #cbd5d5;
  font-size: 0.9375rem;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: calc(var(--space-unit) * 2);
}

body.v2 .feat3d ul {
  list-style: none;
  padding: 0;
  margin: 0 0 calc(var(--space-unit) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1);
}

body.v2 .feat3d ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: #e2e8e8;
}

body.v2 .feat3d ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-3d);
}

body.v2 .feat3d .badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-3d);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

body.v2 .feat3d .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--accent-3d);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

body.v2 .feat3d .cta:hover {
  background: var(--accent-3d-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Accordion Sections */
body.v2 details.sec {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: calc(var(--space-unit) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.v2 details.sec:hover {
  border-color: var(--fg-faint);
  box-shadow: var(--shadow-md);
}

body.v2 details.sec > summary {
  padding: calc(var(--space-unit) * 1.75) calc(var(--space-unit) * 2);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 1);
  user-select: none;
  list-style: none;
}

body.v2 details.sec > summary::-webkit-details-marker {
  display: none;
}

body.v2 details.sec > summary::before {
  content: "▾";
  font-size: 0.8125rem;
  transition: transform 0.2s ease;
  color: var(--fg-muted);
}

body.v2 details.sec[open] > summary::before {
  transform: rotate(-180deg);
}

body.v2 details.sec .cnt {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--fg-muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-subtle);
}

body.v2 details.sec .secmore {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

body.v2 details.sec .secbody {
  padding: 0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);
}

/* Status Badges */
body.v2 .st {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.v2 .st.open {
  background: var(--st-open-bg);
  color: var(--st-open-fg);
  border: 1px solid var(--st-open-border);
}

body.v2 .st.soon {
  background: var(--st-soon-bg);
  color: var(--st-soon-fg);
  border: 1px solid var(--st-soon-border);
}

body.v2 .st.closed {
  background: var(--st-closed-bg);
  color: var(--st-closed-fg);
  border: 1px solid var(--st-closed-border);
}

body.v2 .st.info {
  background: var(--st-info-bg);
  color: var(--st-info-fg);
  border: 1px solid var(--st-info-border);
}

/* Tables */
body.v2 .tw {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  margin: calc(var(--space-unit) * 1) 0;
}

body.v2 table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.875rem;
}

body.v2 tr.hdr th {
  background: var(--bg-subtle);
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 1.5);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
  position: sticky;
  top: 60px;
  z-index: 10;
}

body.v2 td {
  padding: calc(var(--space-unit) * 1.5);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg);
  vertical-align: middle;
}

body.v2 td.nw {
  white-space: nowrap;
}

body.v2 tr:last-child td {
  border-bottom: none;
}

body.v2 tbody tr {
  background-color: var(--bg-card);
  transition: background-color 0.15s ease;
}

body.v2 tbody tr:hover {
  background-color: var(--bg-subtle);
}

body.v2 tbody tr td:first-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fg);
}

/* Mobile Table to Card Transformation */
@media (max-width: 760px) {
  body.v2 .tw {
    overflow-x: visible;
  }

  body.v2 table,
  body.v2 tbody {
    display: block;
    width: 100%;
  }

  body.v2 tr.hdr {
    display: none;
  }

  body.v2 tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: calc(var(--space-unit) * 1.5);
    padding: calc(var(--space-unit) * 1.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    gap: calc(var(--space-unit) * 1);
  }

  body.v2 td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border: none;
    font-size: 0.875rem;
    min-height: 24px;
  }

  body.v2 td[data-l]::before {
    content: attr(data-l);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fg-muted);
    margin-right: calc(var(--space-unit) * 1.5);
  }

  body.v2 tbody tr td:first-child {
    font-size: 0.8125rem;
    color: var(--fg-muted);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: calc(var(--space-unit) * 0.75);
    margin-bottom: calc(var(--space-unit) * 0.5);
  }

  body.v2 tbody tr td:nth-child(2) {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
  }
}

/* Cards & Layout */
body.v2 .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space-unit) * 2);
  margin: calc(var(--space-unit) * 2) 0;
}

@media (min-width: 760px) {
  body.v2 .cards {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

body.v2 .card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: calc(var(--space-unit) * 2.5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.v2 .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

body.v2 .card.hl {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--brand-subtle) 100%);
  border-color: var(--brand);
}

body.v2 .card h3 {
  margin: 0 0 calc(var(--space-unit) * 1);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

body.v2 .card .desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: calc(var(--space-unit) * 2);
  flex-grow: 1;
}

body.v2 .card .meta {
  font-size: 0.75rem;
  color: var(--fg-faint);
  margin-bottom: calc(var(--space-unit) * 1.5);
  font-variant-numeric: tabular-nums;
}

body.v2 .card .go {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

/* Forms */
body.v2 form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 2);
  max-width: 540px;
}

body.v2 label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 0.75);
}

body.v2 input[type="text"],
body.v2 input[type="email"] {
  height: 44px;
  padding: 0 calc(var(--space-unit) * 1.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
}

body.v2 input[type="text"]:focus,
body.v2 input[type="email"]:focus {
  border-color: var(--brand);
  outline: none;
}

body.v2 .choice {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1);
}

body.v2 .choice label {
  flex-direction: row;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

body.v2 button,
body.v2 .ctabtn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--space-unit) * 3);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

body.v2 button:hover,
body.v2 .ctabtn:hover {
  background: var(--brand-hover);
  color: #ffffff;
}

body.v2 .hp {
  display: none !important;
  visibility: hidden;
}

/* Post list, Race summary, Legend */
body.v2 .posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.v2 .posts li {
  display: flex;
  align-items: baseline;
  gap: calc(var(--space-unit) * 1.5);
  padding: calc(var(--space-unit) * 1.5) 0;
  border-bottom: 1px solid var(--border-subtle);
}

body.v2 .posts .d {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.v2 .rsum {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: calc(var(--space-unit) * 2);
  background: var(--bg-subtle);
  padding: calc(var(--space-unit) * 2);
  border-radius: var(--radius-md);
  margin: calc(var(--space-unit) * 2) 0;
}

body.v2 .rel {
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 2) 0;
}

body.v2 .rel li {
  padding: calc(var(--space-unit) * 1) 0;
}

body.v2 .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space-unit) * 3);
}

@media (min-width: 1000px) {
  body.v2 .cols {
    grid-template-columns: 2fr 1fr;
  }
}

body.v2 .legend {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 1.5);
  align-items: center;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin: calc(var(--space-unit) * 2) 0;
}

body.v2 .small {
  font-size: 0.75rem;
  color: var(--fg-faint);
}

/* Footer */
body.v2 footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: calc(var(--space-unit) * 5) calc(var(--space-unit) * 2);
  margin-top: calc(var(--space-unit) * 6);
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

body.v2 footer a {
  color: var(--fg);
}

body.v2 footer a:hover {
  color: var(--brand);
}
/* ============================================================
   UAT shell layer — masthead, page header, filter chips,
   table refinements, footer.  Appended after the Gemini base.
   ============================================================ */
:root{
  --bar-bg: rgba(252,251,248,.88);
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark){
  :root{ --bar-bg: rgba(17,21,22,.9); }
}

/* ---- masthead ---- */
body.v2 header{ position:static; background:none; border:0; color:inherit;
  backdrop-filter:none; -webkit-backdrop-filter:none; padding:0; }
body.v2 .bar{ position:sticky; top:0; z-index:60; background:var(--bar-bg);
  border-bottom:1px solid var(--border); backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px); }
body.v2 .barin{ max-width:var(--maxw); margin:0 auto; padding:0 16px;
  display:flex; align-items:center; flex-wrap:wrap; gap:0; }
@media (min-width:860px){ body.v2 .barin{ padding:0 24px; flex-wrap:nowrap; height:66px; gap:26px; } }
body.v2 .brand{ display:inline-flex; align-items:center; gap:9px; height:56px;
  text-decoration:none; color:var(--fg); font-weight:700; letter-spacing:-.02em;
  font-size:.95rem; white-space:nowrap; flex:0 0 auto; }
@media (min-width:860px){ body.v2 .brand{ height:auto; } }
body.v2 .brand .bmark{ display:block; width:30px; height:30px; border-radius:8px;
  object-fit:contain; background:#f7f3e8; box-shadow:0 0 0 1px rgba(15,118,110,.22); }
body.v2 .brand .bname{ font-variant-numeric:tabular-nums; }
body.v2 .brand .btld{ color:var(--fg-faint); font-weight:500; }
body.v2 .phead{ background:linear-gradient(180deg,var(--bg-subtle) 0%,var(--bg) 100%);
  border-bottom:1px solid var(--border-subtle); padding:26px 0 24px; }
@media (min-width:860px){ body.v2 .phead{ padding:44px 0 38px; } }
body.v2 .pheadin{ max-width:var(--maxw); margin:0 auto; padding:0 16px;
  display:flex; flex-direction:column; gap:12px; }
@media (min-width:860px){ body.v2 .pheadin{ padding:0 24px; gap:14px; } }
body.v2 .eyebrow{ display:inline-flex; align-items:center; gap:7px; font-size:.71rem;
  font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--brand); }
body.v2 .phead h1{ margin:0; font-size:clamp(1.45rem,3.6vw,2.3rem); line-height:1.18;
  letter-spacing:-.025em; font-weight:750; max-width:34em; }
body.v2 .phead .lede{ margin:0; font-size:.95rem; line-height:1.65; color:var(--fg-muted);
  max-width:72ch; }
body.v2 .stats{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
body.v2 .stat{ display:flex; flex-direction:column; gap:1px; padding:7px 13px;
  border:1px solid var(--border); border-radius:10px; background:var(--bg-surface);
  box-shadow:var(--shadow-sm); min-width:92px; }
body.v2 .stat b{ font-size:1.15rem; line-height:1.2; font-variant-numeric:tabular-nums;
  letter-spacing:-.02em; }
body.v2 .stat span{ font-size:.71rem; color:var(--fg-muted); letter-spacing:.02em; }
body.v2 .uatnote{ background:var(--accent-3d-subtle); color:var(--accent-3d);
  border-bottom:1px solid rgba(194,94,0,.18); font-size:.76rem; line-height:1.5;
  padding:7px 16px; text-align:center; }
body.v2 .uatnote b{ font-weight:700; }

/* ---- nav (overrides base nav rules) ---- */
body.v2 .mainnav{ display:flex; flex-wrap:nowrap; gap:2px; order:3; width:100%;
  margin:0 -16px; padding:0 16px 4px; overflow-x:auto; white-space:nowrap;
  scrollbar-width:none; -ms-overflow-style:none;
  -webkit-overflow-scrolling:touch; }
body.v2 .mainnav::-webkit-scrollbar{ display:none; }
@media (min-width:860px){
  body.v2 .mainnav{ order:0; width:auto; margin:0 0 0 auto; padding:0; gap:3px;
    border:0; flex:1 1 auto; justify-content:flex-end; }
}
body.v2 .mainnav a{ height:34px; padding:0 11px; font-size:.855rem; border-radius:9px;
  border:1px solid transparent; color:var(--fg-muted); }
@media (min-width:860px){ body.v2 .mainnav a{ height:36px; padding:0 13px; } }
body.v2 .mainnav a.on{ color:var(--brand); background:var(--brand-subtle);
  border-color:var(--border); font-weight:700; }
body.v2 .mainnav a.c3d{ color:var(--accent-3d); background:var(--accent-3d-subtle);
  border-color:rgba(194,94,0,.18); font-weight:600; }

/* ---- content rhythm ---- */
body.v2 main{ padding:24px 16px 8px; }
@media (min-width:860px){ body.v2 main{ padding:34px 24px 12px; } }
body.v2 details.sec > summary{ color:var(--fg); }
body.v2 main > article{ background:var(--bg-surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:22px; box-shadow:var(--shadow-sm); }
@media (min-width:860px){ body.v2 main > article{ padding:30px 32px; } }
body.v2 main > article.feat3d{ padding:26px 24px; }
body.v2 main > article > h2:first-child,
body.v2 main > article > h2:first-of-type{ margin-top:0; }
body.v2 article p{ max-width:78ch; }
body.v2 article > h2{ font-size:1.22rem; margin-top:0; }
body.v2 article h3{ font-size:1.02rem; }
body.v2 article ul, body.v2 article ol{ padding-left:1.25em; }
body.v2 article li{ margin:.3em 0; }

/* ---- tables: refine the base ---- */
body.v2 table tr.hdr th{ position:static; top:auto; font-size:.76rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--fg-faint); background:var(--bg-subtle);
  border-bottom:1px solid var(--border); padding:9px 12px; }
body.v2 td{ vertical-align:top; padding:11px 12px; line-height:1.55; }
body.v2 td .st{ white-space:normal; }
body.v2 td:nth-child(5){ min-width:88px; }
body.v2 tbody tr.open{ background-color:var(--bg-card); box-shadow:inset 3px 0 0 var(--st-open-border); }
body.v2 table td:nth-child(2){ font-weight:600; }
body.v2 table td:nth-child(6){ font-size:.8rem; color:var(--fg-muted); }
body.v2 table td:first-child{ white-space:nowrap; }
body.v2 .tw{ border:1px solid var(--border-subtle); }
body.v2 details.sec .tw{ border:0; }

/* ---- filter chips ---- */
body.v2 .filterbar{ display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  margin:2px 0 14px; }
body.v2 .filterbar .chip{ height:32px; padding:0 12px; border-radius:999px;
  border:1px solid var(--border); background:var(--bg-surface); color:var(--fg-muted);
  font-family:inherit; font-size:.8rem; font-weight:600; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px; transition:all .15s ease; }
body.v2 .filterbar .chip:hover{ border-color:var(--fg-faint); color:var(--fg); }
body.v2 .filterbar .chip.on{ background:var(--fg); border-color:var(--fg); color:var(--bg); }
body.v2 .filterbar .chip .n{ font-variant-numeric:tabular-nums; opacity:.65; font-weight:500; }
body.v2 .filterbar input[type=search]{ flex:1 1 200px; min-width:150px; height:32px;
  padding:0 12px; margin-left:auto; border:1px solid var(--border); border-radius:999px;
  background:var(--bg-surface); color:var(--fg); font-family:inherit; font-size:.82rem; }
body.v2 .filterbar input[type=search]:focus{ outline:2px solid var(--brand); outline-offset:1px; border-color:transparent; }
body.v2 .filterempty{ display:none; padding:18px 4px; color:var(--fg-muted); font-size:.86rem; }
body.v2 .filterempty.show{ display:block; }

/* ---- race detail page ---- */
body.v2 .rsum{ display:block; background:var(--brand-subtle); border-left:3px solid var(--brand);
  border-radius:0 var(--radius-md) var(--radius-md) 0; padding:13px 16px;
  font-size:.89rem; line-height:1.65; color:var(--fg); margin:0 0 18px; }
body.v2 article > table{ width:100%; border-collapse:collapse; margin:6px 0 14px;
  font-size:.9rem; display:table; }
body.v2 article > table th{ width:8.5em; background:none; position:static;
  text-align:left; vertical-align:top; padding:11px 14px 11px 0;
  font-size:.8rem; font-weight:600; color:var(--fg-muted);
  border-bottom:1px solid var(--border-subtle); letter-spacing:0; text-transform:none; }
body.v2 article > table td{ padding:11px 0; border-bottom:1px solid var(--border-subtle);
  vertical-align:top; display:table-cell; }
body.v2 article > table tr{ border:0; padding:0; margin:0; background:none; }
body.v2 article > table tr:hover{ background:none; }
body.v2 .cta{ background:linear-gradient(135deg,#0e211f 0%,#143330 60%,#0f2624 100%);
  color:#eaf4f3; border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-md); padding:18px 20px; margin:22px 0;
  box-shadow:var(--shadow-md); }
body.v2 .cta p{ margin:5px 0; color:#d3e2e0; }
body.v2 .cta p.small{ color:#9fb3b1; }
body.v2 .cta b{ color:#fff; }
body.v2 .cta a:not(.ctabtn){ color:#7fe3d6; }
body.v2 .cta .ctabtn{ margin-top:8px; background:var(--accent-3d); }
body.v2 .cta .ctabtn:hover{ background:var(--accent-3d-hover); }
body.v2 .rel{ border-top:1px solid var(--border-subtle); padding-top:6px; }
body.v2 .rel li{ display:block; color:var(--fg-muted); }
body.v2 .rel li a{ color:var(--brand); }

/* ---- posts ---- */
body.v2 .posts{ margin:8px 0 0; }
body.v2 .posts li{ display:block; padding:14px 0; border-bottom:1px solid var(--border-subtle);
  line-height:1.6; }
body.v2 .posts li > a{ font-weight:600; font-size:.95rem; }
body.v2 .posts li .d{ font-size:.76rem; color:var(--fg-muted); white-space:normal;
  overflow-wrap:anywhere; line-height:1.55; }
body.v2 .posts li > .d:first-child{ white-space:nowrap; display:inline-block;
  background:var(--bg-subtle);
  border:1px solid var(--border-subtle); border-radius:999px; padding:1px 9px;
  margin-bottom:7px; font-variant-numeric:tabular-nums; }

/* ---- footer ---- */
body.v2 footer{ background:var(--bg-subtle); border-top:1px solid var(--border);
  margin:56px 0 0; padding:38px 0 26px; max-width:none; width:100%;
  font-size:.82rem; color:var(--fg-muted); }
body.v2 .finner{ max-width:var(--maxw); margin:0 auto; padding:0 16px; display:grid;
  grid-template-columns:1fr; gap:26px; }
@media (min-width:760px){ body.v2 .finner{ grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:34px; padding:0 24px; } }
body.v2 .fcol h4{ margin:0 0 10px; font-size:.72rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--fg-faint); font-weight:700; }
body.v2 .fcol ul{ list-style:none; margin:0; padding:0; display:grid; gap:7px; }
body.v2 .fcol a{ color:var(--fg); text-decoration:none; font-size:.85rem; }
body.v2 .fcol a:hover{ color:var(--brand); text-decoration:underline; }
body.v2 .fbrand .fname{ margin:0 0 8px; font-weight:750; font-size:.98rem; color:var(--fg); }
body.v2 .fbrand p{ margin:0; font-size:.83rem; line-height:1.6; max-width:36ch; }
body.v2 .legal{ grid-column:1/-1; margin:0; padding-top:16px;
  border-top:1px solid var(--border-subtle); display:flex; flex-wrap:wrap;
  gap:6px 18px; justify-content:space-between; font-size:.75rem; color:var(--fg-faint); }
body.v2 .legal a{ color:var(--fg-muted); }

/* ---- mobile card table polish ---- */
@media (max-width:760px){
  body.v2 .feat3d h2{ font-size:1.32rem; }
  body.v2 .uatnote{ font-size:.72rem; padding:6px 12px; }
  body.v2 tbody tr{ border-radius:12px; padding:13px 14px; }
  body.v2 tbody tr td[data-l]{ gap:10px; align-items:flex-start;
    justify-content:flex-start; text-align:left; }
  body.v2 td .st{ white-space:normal; text-align:left; }
  body.v2 tbody tr td[data-l]::before{ flex:0 0 66px; font-size:.72rem; padding-top:2px;
    letter-spacing:.01em; }
  body.v2 tbody tr td[data-l="報名／抽籤期"]{ display:block; font-size:.8rem;
    color:var(--fg-muted); line-height:1.6; }
  body.v2 tbody tr td[data-l="報名／抽籤期"]::before{ display:block; margin-bottom:2px; }
  body.v2 tbody tr td[data-l="連結"]{ border-top:1px dashed var(--border-subtle);
    padding-top:8px; margin-top:4px; }
  body.v2 article > table th{ width:5.6em; font-size:.76rem; }
  body.v2 article > table td{ font-size:.86rem; }
  body.v2 .phead h1{ font-size:1.42rem; }
  body.v2 .filterbar input[type=search]{ margin-left:0; }
}

body.v2 form button{ align-self:flex-start; min-width:180px; }

/* ---- subscribe promo card ---- */
@media (min-width:760px){
  body.v2 .card.hl{ flex-direction:row; align-items:center; gap:26px; }
  body.v2 .card.hl .desc{ flex:1 1 auto; margin:0; }
  body.v2 .card.hl h3{ flex:0 0 auto; margin:0; }
  body.v2 .card.hl .go{ flex:0 0 auto; margin:0; }
}
body.v2 .card .go a{ display:inline-flex; align-items:center; height:40px; padding:0 18px;
  border-radius:999px; background:var(--brand); color:#fff; text-decoration:none;
  font-weight:600; font-size:.88rem; }
body.v2 .card .go a:hover{ background:var(--brand-hover); }
body.v2 .card.hl{ border-color:var(--st-open-border); }

/* ---- race detail table on narrow screens ---- */
@media (max-width:760px){
  body.v2 article > table{ display:block; }
  body.v2 article > table tr{ display:block; padding:0; margin:0; }
  body.v2 article > table th{ display:block; width:auto; padding:11px 0 1px;
    border-bottom:0; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase;
    color:var(--fg-faint); }
  body.v2 article > table tr:not(.hdr) td{ display:block; padding:0 0 12px;
    border-bottom:1px solid var(--border-subtle); font-size:.92rem;
    font-weight:400; line-height:1.55; }
  body.v2 article > table tr:last-child td{ border-bottom:0; }
}

/* ---- accordion marker: single chevron on the right ---- */
body.v2 details.sec > summary::before{ content:none; }
body.v2 details.sec > summary::after{ content:"\25BE"; margin-left:6px; color:var(--fg-muted);
  font-size:.8rem; transition:transform .2s ease; flex:0 0 auto; }
body.v2 details.sec[open] > summary::after{ transform:rotate(180deg); }

/* ---- old inline CSS hard-codes #33414f for body copy: re-point it at the theme ---- */
body.v2 main p, body.v2 main li, body.v2 main dt, body.v2 main dd,
body.v2 article p, body.v2 article li{ color:var(--fg); }
body.v2 main p.small, body.v2 article p.small{ color:var(--fg-muted); }
body.v2 .cta p{ color:#d3e2e0; }
body.v2 .cta p.small{ color:#9fb3b1; }
@media (prefers-color-scheme: dark){
  :root{ --fg-muted:#a8b7b6; --fg-faint:#7d8b8a; }
}

/* ---- tighter 3D feature panel (less dead space on mobile) ---- */
body.v2 main > article.feat3d{ padding:18px 16px; margin-bottom:20px; }
body.v2 .feat3d h2{ line-height:1.22; margin:0 0 6px; text-wrap:balance; }
body.v2 .feat3d ul{ margin:0 0 10px; gap:2px; }
body.v2 .feat3d ul li{ margin:0; line-height:1.45; }
body.v2 .feat3d ul li::before{ top:.55em; }
body.v2 .feat3d .cta{ margin-top:2px; }
@media (min-width:760px){
  body.v2 main > article.feat3d{ padding:24px 26px; margin-bottom:26px; }
  body.v2 .feat3d h2{ line-height:1.25; }
}
@media (max-width:760px){
  body.v2 .feat3d h2{ font-size:1.12rem; line-height:1.2; letter-spacing:-.01em; }
  body.v2 .feat3d ul li{ font-size:.85rem; line-height:1.42; }
  body.v2 .feat3d .cta{ min-height:42px; padding:0 16px; font-size:.9rem; }
}

/* 2026-11-12：賽道助手 nav 掣（同 3D 掣一樣醒目 ✗ 用青綠色系） */
body.v2 nav a.cra {
  color: #0b6b4f;
  background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(34,211,238,.16));
  border-color: rgba(16,185,129,.35);
  font-weight: 700;
}
body.v2 nav a.cra:hover {
  background: linear-gradient(135deg, #10b981, #22d3ee);
  color: #04211c;
  border-color: transparent;
}
