/* ============================================
   九阴真经 (9Yin / Age of Wushu) TH Fan Info Site
   -- Clean minimal theme --
   Warm off-white page, white cards with thin borders and soft shadows,
   orange as the main accent and a pink line under the header.
   ============================================ */

:root {
  --sky: #eef5fb;          /* light blue tint */
  --page: #faf7f3;         /* page background */
  --pink: #ec4899;         /* accent line, badges */
  --pink-soft: #fdf1f6;    /* tinted panels */
  --pink-deep: #c2185b;    /* links and accent text */
  --orange: #f97316;       /* primary accent */
  --orange-soft: #fff4ea;  /* notices, table heads */
  --mint: #bfeedb;         /* secondary accent */
  --mint-soft: #f0faf5;    /* tinted panels */
  --lilac-soft: #f6f3fc;   /* tinted panels */
  --panel: #ffffff;        /* cards */
  --panel-alt: #fdfbf8;    /* zebra rows */

  --ink: #2b2522;          /* main text */
  --text-muted: #6f655d;   /* secondary text */
  --line: #eee7df;         /* soft dividers */
  --border: #e6ddd2;       /* card and control borders */

  --outline: 1px solid var(--border);
  --shadow-sm: 0 1px 2px rgba(43, 37, 34, 0.05);
  --shadow: 0 1px 2px rgba(43, 37, 34, 0.04), 0 4px 14px rgba(43, 37, 34, 0.05);
  --shadow-big: 0 2px 4px rgba(43, 37, 34, 0.05), 0 12px 28px rgba(43, 37, 34, 0.09);
  --radius: 14px;

  --font-body: "Noto Sans Thai", "Noto Sans SC", system-ui, sans-serif;
  --font-title: "Noto Sans Thai", "Noto Sans SC", system-ui, sans-serif;
  --font-cn: "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--page);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  background: var(--lilac-soft);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--panel);
  border-bottom: 3px solid var(--pink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 20px;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-glyph {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='20 0 32 48'%3E%3Crect x='29' y='3' width='14' height='7' rx='3' fill='%23ffd6e6'/%3E%3Cpath d='M30 10h12v4c0 2 6 4 6 10v15c0 3.500-2.500 6-6 6H30c-3.500 0-6-2.500-6-6V24c0-6 6-8 6-10z' fill='%23fff'/%3E%3Ccircle cx='31' cy='27' r='2.300' fill='%232b2522'/%3E%3Ccircle cx='41' cy='27' r='2.300' fill='%232b2522'/%3E%3Cellipse cx='27.800' cy='32' rx='2.600' ry='1.700' fill='%23ffb3cf'/%3E%3Cellipse cx='44.200' cy='32' rx='2.600' ry='1.700' fill='%23ffb3cf'/%3E%3Cpath d='M33 31.500c1 2.200 5 2.200 6 0' fill='none' stroke='%232b2522' stroke-width='1.800' stroke-linecap='round'/%3E%3C/svg%3E") center 5px / 22px 33px no-repeat;
  flex-shrink: 0;
}

.brand-text .title-th {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}

.brand-text .title-cn {
  display: block;
  white-space: nowrap;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover,
.nav-group.open > .nav-link {
  color: var(--ink);
  background: var(--page);
}

.nav-link.active,
.nav-group.active > .nav-link {
  color: var(--orange);
  background: var(--orange-soft);
  font-weight: 600;
}

.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-group {
  position: relative;
}

.nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--panel);
  border: var(--outline);
  border-radius: 12px;
  box-shadow: var(--shadow-big);
  padding: 6px;
  z-index: 60;
}

/* Keeps the gap between button and menu hoverable */
.nav-menu::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto 0;
  height: 8px;
}

.nav-menu a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}

.nav-menu a:hover {
  background: var(--page);
}

.nav-menu a.active {
  color: var(--orange);
  background: var(--orange-soft);
  font-weight: 600;
}

@media (hover: hover) and (min-width: 1001px) {
  .nav-group:hover > .nav-menu {
    display: block;
  }
}

.nav-group.open > .nav-menu {
  display: block;
}

.nav-search {
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}

.nav-search input[type="search"] {
  font: inherit;
  font-size: 0.88rem;
  width: 230px;
  max-width: 100%;
  padding: 7px 14px 7px 34px;
  border: var(--outline);
  border-radius: 999px;
  background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f655d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.500-3.500'/%3E%3C/svg%3E") 12px center / 15px no-repeat;
  color: var(--ink);
}

.nav-search input[type="search"]:focus {
  outline: none;
  border-color: var(--orange);
  background-color: var(--panel);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: var(--outline);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transition: transform 0.2s, top 0.2s;
}

.nav-toggle span { top: 18px; }
.nav-toggle span::before { left: 0; top: -5px; }
.nav-toggle span::after { left: 0; top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-search {
    flex: 1;
  }
  .nav-search input[type="search"] {
    width: 100%;
  }
  nav.main-nav {
    display: none;
    order: 5;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }
  .nav-open nav.main-nav {
    display: flex;
  }
  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.98rem;
  }
  .nav-menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 6px 14px;
    padding: 0 0 0 8px;
  }
  .nav-menu::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-text .title-cn {
    display: none;
  }
  .brand {
    margin-right: auto;
  }
  .nav-search {
    order: 4;
    flex: 0 0 100%;
  }
}

/* ---------- Page heading ---------- */

.hero {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 30px max(20px, calc((100% - 1040px) / 2)) 26px;
  text-align: left;
}

.hero .cn-sub {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 999px;
  padding: 1px 12px;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1.3;
  margin: 0 0 6px;
}

.hero p.lead {
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.hero .cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  border: var(--outline);
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

.btn-gold:hover {
  background: #ea6a0c;
  border-color: #ea6a0c;
  color: #ffffff;
}

.btn-outline {
  background: var(--panel);
}

/* ---------- Sections ---------- */

.section {
  padding: 44px 20px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head .eyebrow {
  color: var(--pink-deep);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.section-head h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--ink);
  margin: 4px 0 8px;
  display: inline;
  line-height: 1.5;
  padding: 0 6px;
  background: linear-gradient(transparent 62%, var(--orange) 62%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section-head p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 10px auto 0;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card-grid .card:nth-child(3n + 1),
.wx-cards .card:nth-child(3n + 1) {
  background: var(--pink-soft);
}

.card-grid .card:nth-child(3n + 2),
.wx-cards .card:nth-child(3n + 2) {
  background: var(--mint-soft);
}

.card-grid .card:nth-child(3n),
.wx-cards .card:nth-child(3n) {
  background: var(--orange-soft);
}

.card h3 {
  font-family: var(--font-title);
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.35;
}

.card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.card a {
  color: var(--pink-deep);
  text-decoration: underline;
}

.tag {
  display: inline-block;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 400;
  padding: 1px 10px;
  border-radius: 999px;
  margin-right: 6px;
  border: 1px solid var(--border);
}

.tag.red {
  background: var(--pink);
}

/* ---------- Sect feature (detailed, with illustration) ---------- */

.sect-feature {
  background: var(--panel);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-big);
  overflow: hidden;
  margin-bottom: 32px;
}

.sect-feature__img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: var(--outline);
  background: var(--sky);
}

.sect-feature__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px 0;
}

.sect-feature__names .name-th {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--ink);
  margin-right: 10px;
}

.sect-feature__names .name-cn {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pink-deep);
}

.sect-feature__weapon {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 12px;
}

.sect-feature__body {
  padding: 14px 24px 22px;
}

.sect-feature__history {
  font-size: 0.95rem;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.sect-feature__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 680px) {
  .sect-feature__cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sect-feature__cols h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--pink-deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-list li {
  font-size: 0.9rem;
  margin-bottom: 9px;
  line-height: 1.6;
}

.skill-list b {
  font-weight: 700;
}

.skill-list .cn-name {
  font-family: var(--font-cn);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- Sects grid ---------- */

.sect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.sect-card {
  background: var(--panel);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.sect-grid .sect-card:nth-child(4n + 1) {
  background: var(--pink-soft);
}

.sect-grid .sect-card:nth-child(4n + 2) {
  background: var(--mint-soft);
}

.sect-grid .sect-card:nth-child(4n + 3) {
  background: var(--orange-soft);
}

.sect-grid .sect-card:nth-child(4n) {
  background: var(--lilac-soft);
}

.sect-card .sect-name {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.sect-card .sect-cn {
  font-family: var(--font-cn);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.sect-card .sect-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sect-card p {
  font-size: 0.9rem;
  margin: 0;
  flex-grow: 1;
}

.sect-card.unknown p {
  color: var(--text-muted);
  font-style: italic;
}

a.sect-card {
  transition: transform 0.12s, box-shadow 0.12s;
}

a.sect-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: var(--shadow-big);
}

.badge-new {
  background: var(--orange);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  align-self: flex-start;
  margin-bottom: 8px;
}

/* ---------- Disclaimer / About ---------- */

.notice-box {
  background: var(--orange-soft);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 22px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 24px;
}

.notice-box strong {
  color: var(--pink-deep);
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.source-list a {
  color: var(--pink-deep);
  text-decoration: underline;
  word-break: break-all;
}

/* ---------- Data tables ---------- */

.data-title {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--pink-deep);
  font-size: 1.3rem;
  margin: 32px 0 8px;
}

.data-title .cn-name,
.data-table .cn-name {
  font-family: var(--font-cn);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.data-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.data-text {
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: var(--outline);
  border-radius: 16px;
  margin-bottom: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1.5px solid var(--line);
  vertical-align: top;
}

.data-table th {
  background: var(--orange);
  color: var(--ink);
  border-bottom: var(--outline);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: var(--panel-alt);
}

.data-table tbody tr:hover {
  background: var(--pink-soft);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cn-text {
  font-family: var(--font-cn);
}

/* ---------- Wuxue pages ---------- */

.wx-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.wx-cards {
  display: grid;
  gap: 18px;
}

.wx-item {
  background: var(--panel);
  border: var(--outline);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.wx-item > summary {
  cursor: pointer;
  padding: 10px 16px;
  list-style-position: inside;
  border-radius: 14px;
}

.wx-item > summary:hover {
  background: var(--pink-soft);
}

.wx-item[open] > summary {
  background: var(--sky);
  border-bottom: var(--outline);
  border-radius: 13px 13px 0 0;
}

.wx-name {
  font-family: var(--font-title);
  font-size: 1.12rem;
  color: var(--ink);
}

.wx-item .cn-name {
  font-family: var(--font-cn);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.wx-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding-left: 18px;
}

.wx-body {
  padding: 14px 16px 2px;
  font-size: 0.92rem;
}

.wx-more {
  margin: 0 0 12px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.wx-more summary {
  cursor: pointer;
  color: var(--pink-deep);
  font-weight: 400;
}

.level-table td:nth-child(3) {
  min-width: 220px;
}

.level-table .stat-cell {
  min-width: 320px;
}

.wx-topic {
  background: var(--pink);
  border-top: var(--outline);
  border-bottom: var(--outline);
  padding: 22px 20px;
  text-align: center;
  scroll-margin-top: 104px;
}

.wx-topic h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.3;
  margin: 0;
}

.wx-topic p {
  margin: 4px 0 0;
}

.wx-topic + .section {
  border-top: none;
}

.section[id] {
  scroll-margin-top: 104px;
}

.wx-center {
  text-align: center;
}

.wx-gap {
  margin-top: 22px;
}

.wx-build {
  background: var(--orange-soft);
  border: var(--outline);
  border-radius: 16px;
  padding: 10px 16px;
  margin-bottom: 12px;
  color: var(--ink);
}

.wx-build > summary {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--pink-deep);
}

.wx-build > .data-note {
  margin-top: 8px;
}

.build-table td:nth-child(2) {
  min-width: 170px;
}

.build-table td:last-child {
  min-width: 240px;
}

/* Phones: the reasons drop onto their own line so the whole row fits the screen */
@media (max-width: 680px) {
  .build-table thead th:last-child {
    display: none;
  }
  .build-table tr {
    display: grid;
    grid-template-columns: 42px 1fr 44px 52px;
  }
  .build-table th,
  .build-table td {
    padding: 7px 6px;
    border-bottom: none;
    font-size: 0.84rem;
  }
  .build-table td:nth-child(2) {
    min-width: 0;
  }
  .build-table td:last-child {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--line);
  }
}

.wx-sub {
  font-family: var(--font-title);
  color: var(--pink-deep);
  font-size: 1.02rem;
  margin: 12px 0 6px;
}

.wx-list {
  margin: 0 0 8px;
  padding-left: 20px;
  color: var(--ink);
}

.wx-list li {
  margin-bottom: 5px;
}

.wx-list .data-note {
  font-size: 0.8rem;
}

.exchange-table {
  color: var(--ink);
}

.wx-summary {
  font-weight: 500;
  margin: 0 0 8px;
}

.tier-table td:first-child {
  min-width: 170px;
}

.tier-table td:last-child {
  min-width: 300px;
}

/* Phones: the recipe drops onto its own line so the whole row fits the screen */
@media (max-width: 680px) {
  .tier-table thead th:last-child {
    display: none;
  }
  .tier-table tr {
    display: grid;
    grid-template-columns: 1fr 100px 92px;
  }
  .tier-table th {
    font-size: 0.78rem;
  }
  .tier-table th,
  .tier-table td {
    padding: 7px 8px;
    border-bottom: none;
    white-space: normal;
  }
  .tier-table td:first-child {
    min-width: 0;
  }
  .tier-table td:last-child {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--line);
  }
}

.exchange-table td:first-child,
.exchange-table td:last-child {
  min-width: 200px;
}

@media (max-width: 680px) {
  .exchange-table td:first-child,
  .exchange-table td:last-child {
    min-width: 120px;
  }
  .exchange-table th,
  .exchange-table td {
    padding: 8px 8px;
    font-size: 0.82rem;
  }
}

.job-table td:first-child {
  min-width: 170px;
}

.job-table td:nth-child(3) {
  min-width: 240px;
}

.job-table td:nth-child(7),
.job-table td:nth-child(8) {
  min-width: 130px;
}

/* Phones: each 8-column recipe row becomes a small labelled card */
@media (max-width: 680px) {
  .job-table thead {
    display: none;
  }
  .job-table tr {
    display: block;
    padding: 8px 12px;
    border-bottom: 1.5px solid var(--line);
  }
  .job-table td {
    display: block;
    min-width: 0 !important;
    padding: 2px 0;
    border-bottom: none;
    text-align: left;
    white-space: normal;
  }
  .job-table td:empty {
    display: none;
  }
  .job-table td:nth-child(2),
  .job-table td:nth-child(4),
  .job-table td:nth-child(5),
  .job-table td:nth-child(6) {
    display: inline-block;
    margin-right: 12px;
    text-align: left;
    font-size: 0.84rem;
  }
  .job-table td:nth-child(3) {
    padding-bottom: 4px;
  }
  .job-table td:first-child {
    font-size: 1rem;
  }
  .job-table td:nth-child(2)::before {
    content: "ระดับ ";
    color: var(--text-muted);
  }
  .job-table td:nth-child(3)::before {
    content: "ใช้ ";
    color: var(--text-muted);
  }
  .job-table td:nth-child(4)::before {
    content: "เงิน ";
    color: var(--text-muted);
  }
  .job-table td:nth-child(5)::before {
    content: "ความทน ";
    color: var(--text-muted);
  }
  .job-table td:nth-child(6)::before {
    content: "กำลัง ";
    color: var(--text-muted);
  }
  .job-table td:nth-child(7)::before {
    content: "แท่น ";
    color: var(--text-muted);
  }
}

.source-table td:first-child {
  min-width: 150px;
}

.source-table td:last-child {
  min-width: 300px;
}

.text-link {
  color: var(--pink-deep);
  text-decoration: underline;
}

/* ---------- Damage calculator ---------- */

.calc-panel {
  background: var(--panel);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.calc-panel h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--pink-deep);
  margin: 0 0 12px;
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px 16px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.calc-field select,
.calc-field input,
.calc-slot select,
.calc-slot input {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  width: 100%;
  min-width: 0;
}

.calc-slots {
  display: grid;
  gap: 8px;
}

.calc-slot {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 84px;
  gap: 8px;
  align-items: center;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.calc-actions button {
  font: inherit;
  cursor: pointer;
}

.calc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.calc-kpi {
  background: var(--orange-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
}

.calc-kpi b {
  display: block;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
}

.calc-kpi span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-up {
  color: #0b6b3a;
  font-weight: 700;
}

.calc-used {
  color: #0b6b3a;
}

.calc-unused {
  color: var(--text-muted);
}

/* Phones keep the columns that answer the question: skill, before, after, gain */
@media (max-width: 680px) {
  .calc-damage th:nth-child(2),
  .calc-damage td:nth-child(2),
  .calc-damage th:nth-child(3),
  .calc-damage td:nth-child(3),
  .calc-damage th:nth-child(7),
  .calc-damage td:nth-child(7),
  .calc-damage th:nth-child(8),
  .calc-damage td:nth-child(8) {
    display: none;
  }
  .calc-damage th,
  .calc-damage td {
    padding: 8px 7px;
    font-size: 0.84rem;
  }
  .calc-damage .num {
    white-space: normal;
  }
}

.calc-tag {
  display: inline-block;
  font-size: 0.74rem;
  background: var(--pink-soft);
  border-radius: 8px;
  padding: 0 6px;
}

/* ---------- Support page ---------- */

.sp-qr {
  text-align: center;
  margin-bottom: 14px;
}

.sp-qr img {
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
  border: var(--outline);
  border-radius: 16px;
  background: #ffffff;
}

.sp-qr p {
  margin: 8px 0 0;
}

[hidden] {
  display: none !important;
}

/* ---------- Huashan roster (home page) ---------- */

.hs-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.hs-month {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hs-month select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--panel);
  border: var(--outline);
  border-radius: 14px;
  padding: 8px 14px;
  min-width: 200px;
  cursor: pointer;
}

.hs-servers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hs-tab {
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.hs-status {
  text-align: center;
  color: var(--text-muted);
  margin: 22px 0;
}

.hs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.hs-card {
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  min-height: 150px;
}

.hs-card h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.hs-cn {
  display: block;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
}

.hs-card ol {
  margin: 0;
  padding-left: 22px;
}

.hs-card li {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.hs-guild {
  display: block;
  font-size: 0.8rem;
  color: var(--ink);
}

.hs-empty {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--mint);
  color: var(--ink);
  padding: 26px 20px;
  text-align: center;
  font-size: 0.88rem;
  border-top: var(--outline);
}

footer.site-footer p {
  margin: 0;
}

footer.site-footer .cn-line {
  font-family: var(--font-cn);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  a.sect-card {
    transition: none;
  }
}

/* Equipment picker on the damage calculator */
.calc-gear {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.calc-gear-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ink);
}

.calc-gear-name {
  color: var(--ink);
}

.calc-gear-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.calc-gear-controls select,
.calc-gear-controls input {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 8px;
  min-width: 0;
  flex: 0 1 130px;
}

.calc-gear-controls .calc-gear-pick {
  flex: 1 1 300px;
}

.calc-gear-count,
.calc-gear-detail {
  grid-column: 2;
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.calc-gear-detail {
  color: var(--ink);
}

.calc-gear-note {
  color: var(--text-muted);
}

@media (max-width: 680px) {
  .calc-gear-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-gear-count,
  .calc-gear-detail {
    grid-column: 1;
  }

  .calc-gear-controls select,
  .calc-gear-controls input,
  .calc-gear-controls .calc-gear-pick {
    flex: 1 1 100%;
  }
}

/* Recommended inner skill and gear on the sect pages */
.wx-set {
  background: var(--panel);
}

.set-try {
  display: inline-block;
  margin: 4px 0;
}

.set-inner {
  margin: 6px 0 10px;
  padding-left: 22px;
}

.set-inner li {
  margin-bottom: 8px;
}

.set-level,
.set-stats {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.set-kind {
  font-size: 0.82rem;
}

.set-kind-damage {
  color: var(--pink-deep);
  font-weight: 700;
}

.set-kind-attr,
.set-kind-none {
  color: var(--text-muted);
}

.set-alts {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.set-table td:nth-child(2) {
  min-width: 190px;
}

.set-table td:last-child {
  min-width: 240px;
}

@media (max-width: 680px) {
  .set-table thead {
    display: none;
  }

  .set-table tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1.5px solid var(--line);
  }

  .set-table td {
    display: block;
    min-width: 0 !important;
    padding: 2px 6px;
    border-bottom: none;
  }

  .set-table td:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
}

/* Wuxue search and the separated recommendation headings */
.wx-search {
  max-width: 760px;
  margin: 22px auto 0;
  background: var(--mint-soft);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.wx-search label {
  display: block;
  font-family: var(--font-title);
  margin-bottom: 8px;
}

.wx-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.wx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wx-chips[hidden] {
  display: none;
}

.wx-chip {
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.wx-chip[aria-pressed="true"] {
  background: var(--orange);
}

.wx-search-count {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.wx-search-count:empty {
  display: none;
}

.wx-results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 460px;
  overflow-y: auto;
}

.wx-results:empty {
  display: none;
}

.wx-results li + li {
  margin-top: 8px;
}

.wx-results a {
  display: block;
  padding: 10px 12px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.wx-results a:hover,
.wx-results a:focus-visible {
  border-color: var(--ink);
}

.wx-result-kind {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 0.78rem;
}

.wx-results .cn-name {
  margin-left: 6px;
}

.wx-result-where,
.wx-result-detail {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.wx-rec {
  margin: 0 0 14px;
  padding: 12px;
  background: var(--lilac-soft);
  border: var(--outline);
  border-radius: 18px;
}

.wx-rec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.wx-rec-title {
  font-family: var(--font-title);
  font-size: 1.12rem;
}

.wx-rec > details:last-child {
  margin-bottom: 0;
}

.wx-item[id],
.data-title[id],
tr[id] {
  scroll-margin-top: 104px;
}

.wx-item:target,
tr:target td {
  background: var(--orange-soft);
}

.ng-table td:first-child {
  min-width: 170px;
}

.ng-table .stat-cell {
  min-width: 320px;
}

/* Skill remake */
.wx-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--pink-deep);
  color: #fff;
  font-size: 0.72rem;
  vertical-align: middle;
}

.rm-line {
  margin-bottom: 10px;
}

.wx-remake {
  margin-top: 8px;
}

.rm-cards {
  margin-bottom: 18px;
}

.rm-cards p,
.rm-cards li {
  font-size: 0.9rem;
}

.rm-price {
  max-width: 420px;
}

.rm-filter {
  margin-bottom: 16px;
}

.rm-filter label {
  display: block;
  margin-bottom: 6px;
}

.rm-filter input {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  border: 2px solid var(--pink-deep);
  border-radius: 14px;
  box-sizing: border-box;
}

.rm-art[hidden] {
  display: none;
}

.rm-steps {
  margin: 0 0 14px;
  padding-left: 22px;
}


.rm-table th,
.rm-skills th,
.rm-price th {
  white-space: normal;
}

@media (max-width: 480px) {
  .rm-table th,
  .rm-table td,
  .rm-skills th,
  .rm-skills td {
    padding: 8px;
    font-size: 0.82rem;
  }
}


.rm-book {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 2px solid var(--pink-deep);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.rm-effect {
  margin: 6px 0 8px;
  color: var(--ink);
}

.rm-ways {
  margin: 6px 0 0;
}

.rm-skill {
  margin-bottom: 12px;
}

.job-outcome {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-rolled {
  color: var(--pink-deep);
}

.job-drop {
  font-size: 0.82rem;
}

.pw-table th[scope="row"],
.pw-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.pw-table th[scope="row"] {
  background: var(--panel);
  border-bottom: 1.5px solid var(--line);
  font-weight: 700;
}

.pw-table tbody tr:nth-child(even):not(:target) th[scope="row"] {
  background: var(--panel-alt);
}

.pw-cost,
.pw-tier,
#pw-calc {
  scroll-margin-top: 104px;
}

.pw-cost .data-table thead th {
  white-space: normal;
}

.pw-sum {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pw-calc-result {
  margin-top: 14px;
}

@media (max-width: 480px) {
  .pw-cost .data-table th,
  .pw-cost .data-table td {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.pw-table td.num {
  white-space: nowrap;
}

.pw-table tr:target th,
.pw-table tr:target td {
  background: var(--orange);
}

.pw-tier p {
  margin: 0 0 8px;
}


.job-out {
  margin-top: 6px;
}

.job-out summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.job-out summary small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
}

.job-out-body {
  padding-top: 4px;
  min-width: 220px;
}

.job-out-body p {
  margin: 4px 0;
}

/* Character stats page */
.stat-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.stat-group {
  margin: 28px 0 10px;
}
.stat-table td:first-child {
  white-space: nowrap;
}
.stat-cn {
  display: block;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.8rem;
  opacity: 0.7;
}
.stat-unknown {
  font-style: italic;
  opacity: 0.75;
}
.stat-notes {
  margin: 16px 0 0;
  padding-left: 22px;
  line-height: 1.7;
}
.stat-notes li + li {
  margin-top: 8px;
}
@media (max-width: 680px) {
  .stat-table,
  .stat-table tbody,
  .stat-table tr,
  .stat-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .stat-table thead {
    display: none;
  }
  .stat-table tr {
    padding: 10px 0;
  }
  .stat-table td {
    border: 0;
    padding: 4px 14px;
  }
  .stat-table td:first-child {
    white-space: normal;
  }
  .stat-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    font-style: normal;
    opacity: 0.65;
  }
}

/* Trick page */
.tk-grid {
  margin-top: 26px;
}

.tk-grid .meta .tag {
  margin-bottom: 4px;
}

.tk-list {
  margin: 0 0 10px;
  padding-left: 22px;
  font-size: 0.9rem;
}

.tk-list li {
  margin-bottom: 4px;
}

/* Inner-skill compare (wuxue/neigong_compare.html) */
.ngc-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.ngc-slot {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--lilac-soft);
  border: var(--outline);
  border-radius: 14px;
}
.ngc-slot__title { font-weight: 700; }
.ngc-slot label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.ngc-slot select,
.ngc-slot input {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  width: 100%;
  min-width: 0;
}
.ngc-table td { vertical-align: top; }
.ngc-sec td {
  background: var(--sky);
  font-weight: 700;
}
.ngc-total td { font-weight: 700; }
.ngc-up { color: #0f7a3d; font-weight: 700; }
.ngc-down { color: #b3261e; font-weight: 700; }
.ngc-same { color: var(--text-muted); }
.ngc-fx {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.ngc-fx--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ngc-fx__card {
  padding: 14px;
  background: var(--mint-soft);
  border: var(--outline);
  border-radius: 14px;
  min-width: 0;
}
.ngc-fx__title { font-weight: 700; margin-bottom: 6px; }
.ngc-fx__label { font-weight: 700; color: var(--pink-deep); margin: 8px 0 2px; }
@media (max-width: 720px) {
  .ngc-pick,
  .ngc-fx--two { grid-template-columns: 1fr; }
}
.ngc-train__card { background: var(--lilac-soft); }
.ngc-train__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 10px;
}
.ngc-train__row label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.ngc-train__row select,
.ngc-train__row input {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  width: 100%;
  min-width: 0;
}
.ngc-train__total { font-size: 1.15rem; font-weight: 700; margin: 4px 0; }
.ngc-train details { margin-top: 6px; }
.ngc-train summary { cursor: pointer; font-weight: 700; }
@media (max-width: 520px) {
  .ngc-train__row { grid-template-columns: 1fr 1fr; }
  .ngc-train__row label:last-child { grid-column: 1 / -1; }
}
.ngc-train__head { margin: 22px 0 0; }

/* Meridian set compare (wuxue/jingmai_compare.html) */
.ngc-pick--one { grid-template-columns: minmax(0, 1fr); }
.jmc-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.jmc-build { align-content: start; }
.jmc-row {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.jmc-no { font-weight: 700; font-size: 0.86rem; text-align: center; }
.jmc-row select {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 8px;
  width: 100%;
  min-width: 0;
}
.jmc-row .jmc-qz,
.jmc-row .jmc-leg { grid-column: 2 / -1; }
.jmc-leg { font-size: 0.86rem; display: flex; gap: 6px; align-items: center; }
.jmc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jmc-detail { margin-top: 12px; }
.jmc-detail summary { cursor: pointer; font-weight: 700; }
.jmc-detail li { margin: 4px 0; }
.jmc-qz-line { color: var(--pink-deep); }
@media (max-width: 860px) {
  .jmc-pick { grid-template-columns: minmax(0, 1fr); }
}
.jmc-build { min-width: 0; }
@media (max-width: 520px) {
  .jmc-row { grid-template-columns: 2.6em minmax(0, 1fr) minmax(0, 0.8fr); }
}

/* ============================================
   Minimal theme overrides
   Older component rules above were written for the cartoon theme; these
   bring them in line with the thin-border, soft-shadow look.
   ============================================ */

.section {
  padding: 32px 20px;
}

.section + .section {
  border-top: 0;
  padding-top: 8px;
}

.section-head {
  text-align: left;
  margin-bottom: 18px;
}

.section-head .eyebrow {
  color: var(--orange);
  letter-spacing: 1.5px;
  font-size: 0.78rem;
}

.section-head h2 {
  display: block;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0;
  margin: 2px 0 4px;
  background: none;
  line-height: 1.4;
}

.section-head p {
  margin: 6px 0 0;
}

.card,
.sect-card,
.sect-feature,
.notice-box,
.table-wrap {
  border: var(--outline);
  box-shadow: var(--shadow);
}

.card-grid .card:nth-child(n),
.wx-cards .card:nth-child(n),
.sect-grid .sect-card:nth-child(n) {
  background: var(--panel);
}

.card h3,
.sect-card .sect-name,
.sect-feature__names .name-th {
  font-weight: 600;
}

.sect-card .sect-name {
  font-size: 1.08rem;
}

.sect-card .sect-cn {
  color: var(--orange);
  font-size: 0.92rem;
}

a.sect-card {
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

a.sect-card:hover {
  transform: translateY(-2px);
  border-color: #f3c9a5;
  box-shadow: var(--shadow-big);
}

.notice-box {
  background: var(--orange-soft);
  border-color: #f6dcc4;
  box-shadow: none;
  border-radius: 12px;
}

.notice-box strong {
  color: #c2410c;
}

.badge-new,
.tag.red {
  background: var(--pink);
  border-color: var(--pink);
  color: #ffffff;
}

.tag {
  border-color: var(--border);
}

.data-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
}

.table-wrap {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.data-table th {
  background: var(--orange-soft);
  color: #9a3412;
  font-weight: 600;
  border-bottom: 1px solid #f6dcc4;
}

.data-table th,
.data-table td {
  border-bottom-width: 1px;
}

.data-table tbody tr:hover {
  background: #fff9f3;
}

.wx-chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

.pw-table tr:target th,
.pw-table tr:target td {
  background: var(--orange-soft);
}

.ngc-sec td {
  background: var(--page);
  color: var(--text-muted);
}

.ngc-slot,
.ngc-fx__card {
  border: var(--outline);
  box-shadow: var(--shadow-sm);
  background: var(--panel);
}

.ngc-train__card {
  background: var(--panel);
}

.ngc-slot select,
.ngc-slot input,
.ngc-train__row select,
.ngc-train__row input,
.jmc-row select,
select,
input[type="search"],
input[type="number"],
input[type="text"] {
  border-color: var(--border);
}

.ngc-slot select:focus,
.ngc-slot input:focus,
.jmc-row select:focus,
select:focus,
input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

footer.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  margin-top: 24px;
}

footer.site-footer a {
  color: var(--orange);
}

/* ---------- Treasure (สมบัติแท่น) picks ---------- */
.hht-picks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hht-picks li {
  padding: 1px 0;
  font-size: 0.92rem;
}
.hht-picks .stat-cn {
  display: inline;
  margin-left: 4px;
}
.hht-table td {
  vertical-align: top;
}
