:root {
  --navy: #0b1f3a;
  --navy-deep: #071525;
  --navy-mid: #123056;
  --cyan: #19c3d1;
  --cyan-light: #8decf2;
  --cyan-ink: #0a6270;
  --white: #ffffff;
  --gray: #e9eef3;
  --card: #f7fafc;
  --text: #16202a;
  --muted: #3d4c5c;
  --red: #b4233a;
  --line: rgba(11, 31, 58, 0.12);
  --shadow: 0 12px 32px rgba(7, 21, 37, 0.08);
  --header: 4.5rem;
  --wrap: 1120px;
  --suit: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif;
  --sans: "IBM Plex Sans Thai", "Leelawadee UI", "Sarabun", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--cyan-light);
  color: var(--navy-deep);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 31, 58, 0.96);
  border-bottom: 1px solid rgba(25, 195, 209, 0.28);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 44px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  color: var(--cyan-light);
  background: rgba(25, 195, 209, 0.08);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cta:hover {
  background: var(--cyan-light);
}

.cta:focus-visible {
  outline-color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(141, 236, 242, 0.45);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(25, 195, 209, 0.18), transparent 46%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 72%);
  color: var(--white);
  overflow: hidden;
  padding: 3.25rem 0 3.75rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--cyan-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lede {
  margin-top: 1.1rem;
  max-width: 40rem;
  color: var(--gray);
  font-size: 1.12rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.hero__points li {
  border: 1px solid rgba(141, 236, 242, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
}

.hero__stage {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.85rem;
}

.hero-visual {
  width: min(100%, 520px);
  height: auto;
  display: block;
}

.suits-visual {
  width: 100%;
  height: auto;
  display: block;
}

.fan {
  position: relative;
  width: min(100%, 340px);
  height: 320px;
}

.fan .pcard {
  position: absolute;
  top: 28px;
  left: 50%;
}

.fan .pcard:nth-child(1) {
  transform: translateX(-92%) rotate(-14deg);
}

.fan .pcard:nth-child(2) {
  transform: translateX(-50%) translateY(-8px);
  z-index: 2;
  box-shadow:
    0 0 0 3px rgba(25, 195, 209, 0.85),
    0 16px 30px rgba(0, 0, 0, 0.28);
}

.fan .pcard:nth-child(3) {
  transform: translateX(-8%) rotate(13deg);
}

.hero__chip {
  position: static;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
}

.toc {
  background: var(--gray);
  padding: 3.5rem 0;
}

.toc h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.4rem;
}

.toc .intro {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.4rem;
}

.toc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.toc-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  min-height: 76px;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(11, 31, 58, 0.04);
}

.toc-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.toc-card__n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--cyan-ink);
  font-size: 1.05rem;
  min-width: 3.2rem;
}

.toc-card__t {
  font-weight: 600;
  line-height: 1.4;
}

.section {
  padding: 4.25rem 0;
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.section--soft {
  background: var(--card);
}

.sec-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cyan-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.sec-kicker::after {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--cyan);
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.prose {
  max-width: 68ch;
}

.prose p + p,
.prose ul + p,
.prose p + ul,
.prose h3 + p {
  margin-top: 0.9rem;
}

.prose h3,
.block-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 1.6rem 0 0.55rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a,
.modal__body a {
  color: var(--cyan-ink);
  text-underline-offset: 0.18em;
}

a[href="https://grandyachtclub.com/"] {
  color: var(--cyan-ink);
  text-decoration: none;
}

a[href="https://grandyachtclub.com/"]:hover,
a[href="https://grandyachtclub.com/"]:focus-visible {
  color: var(--cyan-ink);
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.diagram {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section--soft .diagram {
  background: var(--white);
}

.diagram--space {
  margin-top: 1.25rem;
}

.diagram figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.pcard {
  width: 4.5rem;
  height: 6.35rem;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 8px 18px rgba(7, 21, 37, 0.12);
  position: relative;
  flex: 0 0 auto;
  user-select: none;
}

.pcard--lg {
  width: 7.4rem;
  height: 10.35rem;
  border-radius: 14px;
}

.pcard--heart,
.pcard--diamond {
  color: var(--red);
}

.pcard--zero,
.pcard--pick {
  box-shadow:
    0 0 0 2px var(--cyan),
    0 8px 18px rgba(7, 21, 37, 0.12);
}

.pcard__corner {
  position: absolute;
  top: 0.35rem;
  left: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: 700;
}

.pcard--lg .pcard__corner {
  top: 0.55rem;
  left: 0.6rem;
}

.pcard__rank {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.pcard--lg .pcard__rank {
  font-size: 1.45rem;
}

.pcard__mini {
  font-family: var(--suit);
  font-size: 0.72rem;
  font-weight: 400;
}

.pcard--lg .pcard__mini {
  font-size: 0.95rem;
}

.pcard__pip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--suit);
  font-size: 1.85rem;
  line-height: 1;
}

.pcard--lg .pcard__pip {
  font-size: 3rem;
}

.pcard__corner--rev {
  top: auto;
  left: auto;
  right: 0.4rem;
  bottom: 0.35rem;
  flex-direction: column-reverse;
}

.pcard--lg .pcard__corner--rev {
  right: 0.6rem;
  bottom: 0.55rem;
}

.pcard--slot {
  background: transparent;
  color: var(--cyan-ink);
  border: 1.5px dashed var(--cyan);
  box-shadow: none;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.4rem;
}

.pcard__slot-label {
  font-family: var(--sans);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.value-item figcaption {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.value-item figcaption span {
  color: var(--muted);
  font-weight: 500;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legend i {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: -0.1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.legend .swatch-zero {
  box-shadow: 0 0 0 2px var(--cyan);
}

.examples,
.score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.example,
.score-card,
.state-card,
.myth,
.side,
.channel,
.flow li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.section--soft .example,
.section--soft .state-card,
.section--soft .side,
.section--soft .channel,
.section--soft .myth {
  background: var(--white);
}

.example,
.score-card {
  padding: 1.1rem 1.15rem 1.15rem;
}

.example h3,
.score-card h3,
.state-card h3,
.side h3,
.channel h3,
.myth h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.kicker-sm {
  color: var(--cyan-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.board {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0;
}

.op {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.result {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.example p,
.score-card p,
.state-card p,
.myth p,
.side p,
.channel p {
  color: var(--muted);
}

.callout {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--cyan);
  background: var(--card);
  border-radius: 0 12px 12px 0;
}

.section--soft .callout {
  background: var(--white);
}

.callout strong {
  color: var(--navy);
}

.deal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.deal-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.deal-step__n {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.deal-step p {
  color: var(--muted);
}

.hands {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.hand-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.hand-line__name {
  min-width: 7.5rem;
  font-weight: 700;
}

.flow {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
  counter-reset: flow;
}

.flow li {
  padding: 0.85rem 1rem 0.85rem 3.2rem;
  position: relative;
  color: var(--text);
}

.flow li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 0.8rem;
  top: 0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
}

.state-grid,
.side-grid,
.channel-grid,
.myth-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.state-card,
.side,
.channel,
.myth {
  padding: 1.05rem 1.1rem 1.15rem;
}

.state-card__range {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.2rem;
}

.tag {
  display: inline-block;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.tag--draw {
  background: var(--cyan);
  color: var(--navy);
}

.tag--stand {
  background: var(--navy);
  color: var(--white);
}

.tag--natural {
  background: var(--navy-deep);
  color: var(--cyan-light);
}

.table-wrap {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ref-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  padding: 0.95rem 1rem 0.35rem;
}

.ref-table th,
.ref-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.ref-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.ref-table tbody th {
  font-variant-numeric: tabular-nums;
  width: 18%;
}

.ref-table tbody tr + tr th,
.ref-table tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.ref-table tbody tr:nth-child(even) {
  background: var(--card);
}

.mini-table tbody th {
  width: 28%;
}

.walkthrough {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.walkthrough h3 {
  margin-bottom: 0.35rem;
}

.two-hands {
  display: grid;
  gap: 1rem;
  margin: 0.9rem 0;
}

.side .board,
.channel .board {
  margin-bottom: 0.35rem;
}

.channel__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan-ink);
  letter-spacing: 0.04em;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 2.8rem 0.95rem 1rem;
  font-weight: 600;
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  background: var(--gray);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-list details p {
  padding: 0.9rem 1rem 1.05rem;
  color: var(--muted);
}

.responsible {
  background: var(--navy);
  color: var(--gray);
}

.responsible h2,
.responsible .sec-kicker {
  color: var(--cyan-light);
}

.responsible .sec-kicker::after {
  background: var(--cyan);
}

.responsible a {
  color: var(--cyan-light);
}

.site-footer {
  background: var(--navy-deep);
  color: var(--gray);
  padding: 3rem 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 1.75rem;
}

.site-footer .brand {
  margin-bottom: 0.7rem;
}

.site-footer p {
  color: rgba(233, 238, 243, 0.86);
  max-width: 36rem;
}

.site-footer h2 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.site-footer a,
.footer-btn {
  color: var(--gray);
  text-decoration: none;
}

.site-footer__links {
  display: grid;
  gap: 0.35rem;
}

.site-footer__links a,
.footer-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.site-footer__links a:hover,
.footer-btn:hover {
  color: var(--cyan-light);
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(233, 238, 243, 0.14);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer__base p {
  max-width: none;
  margin-inline: auto;
}

.noscript {
  margin-top: 0.8rem;
  color: var(--cyan-light);
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(25, 195, 209, 0.7);
  box-shadow: 0 10px 24px rgba(7, 21, 37, 0.28);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--navy-mid);
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 37, 0.72);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--white);
  color: var(--text);
  border-radius: 16px;
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
}

.modal__close:hover {
  background: var(--gray);
}

.modal__panel h2 {
  font-size: 1.45rem;
  padding-right: 2.5rem;
  margin-bottom: 0.8rem;
}

.modal__body h3 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.35rem;
}

.modal__body p + p,
.modal__body h3 + p {
  margin-top: 0.55rem;
}

.modal__body ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.45rem;
}

@media (min-width: 560px) {
  .toc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .score-grid,
  .examples,
  .state-grid,
  .myth-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .deal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hands,
  .two-hands,
  .side-grid,
  .channel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 0.8fr;
  }

  .site-footer__base,
  .site-footer__base p {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .toc-grid,
  .state-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .examples {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 899px) {
  .site-header__inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-header__inner .cta {
    order: 2;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    width: auto;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.4rem 0.75rem 0.9rem;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(25, 195, 209, 0.28);
    box-shadow: 0 16px 30px rgba(7, 21, 37, 0.28);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.7rem 0.8rem;
  }

  .hero__grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    min-height: 0;
  }
}

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

  .ref-table,
  .ref-table tbody,
  .ref-table tr,
  .ref-table th,
  .ref-table td {
    display: block;
    width: 100%;
  }

  .ref-table caption {
    padding-inline: 0;
  }

  .table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .ref-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
  }

  .ref-table tbody th {
    background: var(--navy);
    color: var(--white);
    width: auto;
  }

  .ref-table tbody th::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan-light);
    margin-bottom: 0.1rem;
  }

  .ref-table tbody tr:nth-child(even) {
    background: var(--white);
  }

  .ref-table tbody tr + tr th,
  .ref-table tbody tr + tr td {
    border-top: 0;
  }

  .ref-table td {
    border-top: 1px solid var(--line);
  }

  .ref-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cyan-ink);
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 390px) {
  .wrap,
  .site-header__inner {
    width: min(var(--wrap), calc(100% - 1.25rem));
  }

  .brand__name {
    font-size: 0.98rem;
  }

  .cta {
    padding-inline: 0.7rem;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .toc-card:hover {
    transform: none;
  }
}
