/* hkd.or.th — Thailand Hapkido Association. Red / white / black. */
:root {
    --red: #c8102e;
    --red-dark: #a00d25;
    --red-soft: #fbeef0;
    --black: #111111;
    --ink: #1c1c1e;
    --text: #2b2b2e;
    --muted: #66666b;
    --line: #e7e5e4;
    --paper: #ffffff;
    --soft: #f6f5f3;
    --radius: 14px;
    --font-head: 'Kanit', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans Thai', system-ui, sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-y: none; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.75 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 500 15px/1 var(--font-head); text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font: 500 15px var(--font-head); color: var(--red); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateZ(0); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font: 600 16px var(--font-head); color: var(--ink); white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font: 500 15px var(--font-head); color: var(--ink); }
.site-nav ul a:hover { color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 11px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { position: relative; background: var(--black); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .55; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,17,.96) 0%, rgba(17,17,17,.78) 45%, rgba(17,17,17,.2) 100%); }
.hero-inner { position: relative; z-index: 1; min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; padding: 96px 0 120px; }
.hero-copy { max-width: 620px; }
.eyebrow, .kicker { font: 500 13px/1.4 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.hero .eyebrow { color: #ff8a9a; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: 20px; }
.hero-lead { font-size: 1.08rem; color: rgba(255,255,255,.86); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-motto { position: absolute; right: 0; bottom: 120px; margin: 0; text-align: right; font-family: var(--font-head); color: rgba(255,255,255,.9); }
.hero-motto span { display: block; font-size: 2.2rem; font-weight: 600; }
.hero-motto em { font-style: normal; color: rgba(255,255,255,.7); }

/* quick links */
.quick { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -64px; }
.quick-card { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.06); transition: border-color .15s, transform .15s; }
.quick-card:hover { border-color: var(--red); transform: translateY(-2px); }
.quick-num { font: 600 13px var(--font-head); color: var(--red); }
.quick-card strong { font: 600 18px var(--font-head); color: var(--ink); }
.quick-card span:last-child { font-size: 14px; color: var(--muted); }

/* sections */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--black); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: rgba(255,255,255,.62); }
.section-dark .kicker { color: #ff8a9a; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.muted-h { color: var(--muted); font-weight: 500; font-size: .7em; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 16px; height: 16px; border-radius: 50%; background: var(--red-soft); box-shadow: inset 0 0 0 5px var(--red); }
.about-logo { margin: 0; text-align: center; }
.about-logo img { width: min(340px, 100%); margin: 0 auto 16px; }
.about-logo figcaption { font-size: 14px; color: var(--muted); }
.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.discipline { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.discipline img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.discipline div { padding: 18px 20px 20px; border-top: 3px solid var(--red); }
.discipline h3 { margin-bottom: 4px; }
.discipline p { margin: 0; color: var(--muted); font-size: 15px; }

/* tournaments */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tour-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.tour-card:hover { border-color: var(--red); transform: translateY(-2px); }
.tour-img { aspect-ratio: 16 / 9; background: var(--black); }
.tour-img img { width: 100%; height: 100%; object-fit: cover; }
.tour-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.tour-body strong { font: 500 16px/1.45 var(--font-head); color: var(--ink); }
.tour-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.tour-entries { margin-top: auto; font-size: 13px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 500 12px/1.6 var(--font-head); background: #ececec; color: #4a4a4f; }
.badge-red { background: var(--red-soft); color: var(--red-dark); }
.empty { padding: 32px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }

.archive { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: 56px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.archive-img { width: 100%; height: auto; align-self: center; }
.archive-body { padding: 32px; }
.doc-list { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; text-decoration: none; font-weight: 500; color: var(--ink); }
.doc-list a::after { content: '↗'; color: var(--red); }
.doc-list a:hover { color: var(--red); }
.doc-list small { color: var(--muted); font-weight: 400; }
.package summary { cursor: pointer; font: 500 15px var(--font-head); color: var(--red); padding: 6px 0; }
.package img { margin-top: 12px; border-radius: 10px; max-height: 720px; width: auto; }

/* promotion */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.promo-img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promo-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.promo-items > div { padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.promo-items p { margin: 0; font-size: 15px; }
.dojox { padding: 24px; border-radius: var(--radius); background: #1b1b1d; border-left: 4px solid var(--red); }
.dojox-label { margin: 0 0 4px; font-size: 13px; color: rgba(255,255,255,.6); }
.dojox h3 { font-size: 1.5rem; }
.dojox h3 span { font: 400 14px var(--font-body); color: rgba(255,255,255,.6); margin-left: 6px; }
.dojox p { font-size: 15px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { border-radius: 12px; overflow: hidden; background: var(--soft); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
@media (min-width: 901px) {
    .gallery a:nth-child(n+6) { grid-column: span 2; }
    .gallery a:nth-child(n+6) img { aspect-ratio: 2 / 1; }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); font-size: 14px; padding-top: 2px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--red); }

/* footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding-top: 56px; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand strong { display: block; font: 600 17px var(--font-head); color: #fff; }
.footer-brand span { font-size: 13px; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-ihf { width: 260px; opacity: .9; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--red); }
.social svg { width: 18px; height: 18px; fill: #fff; }

/* member clubs (/clubs/ and home teaser) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.site-nav ul a[aria-current="page"], .has-sub.is-current > .sub-toggle { color: var(--red); }
.has-sub { position: relative; }
.sub-toggle { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font: 500 15px var(--font-head); color: var(--ink); cursor: pointer; }
.sub-toggle:hover { color: var(--red); }
.sub-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }
.site-nav .sub { display: none; flex-direction: column; gap: 0; }
.has-sub.is-open > .sub { display: flex; }
@media (min-width: 1081px) {
    .site-nav .sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 12px; box-shadow: 0 16px 34px rgba(0,0,0,.1); z-index: 60; }
    .site-nav .sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
    .site-nav .sub a { padding: 10px 12px; white-space: nowrap; }
    .site-nav .sub a:hover { background: var(--red-soft); color: var(--red-dark); }
}
@media (min-width: 1081px) and (hover: hover) {
    .has-sub:hover > .sub { display: flex; }
    .has-sub:hover > .sub-toggle svg { transform: rotate(180deg); }
}
.page-hero { background: var(--black); color: rgba(255,255,255,.82); padding: 56px 0 48px; border-bottom: 4px solid var(--red); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.page-lead { max-width: 640px; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: 14px; margin-bottom: 20px; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.club-stats { display: flex; gap: 40px; margin: 28px 0 0; }
.club-stats div { border-left: 3px solid var(--red); padding-left: 14px; }
.club-stats dt { font-size: 14px; color: rgba(255,255,255,.65); }
.club-stats dd { margin: 0; font: 600 34px/1.2 var(--font-head); color: #fff; }
.club-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.club-search { position: relative; flex: 1 1 320px; max-width: 480px; }
.club-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.club-search input { width: 100%; min-height: 50px; padding: 0 16px 0 46px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 400 16px var(--font-body); color: var(--ink); }
.club-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.club-count { margin: 0; font: 500 15px var(--font-head); color: var(--muted); }
.club-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.club-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.club-card[hidden] { display: none; }
.club-logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: var(--soft); border: 1px solid var(--line); }
.club-initials { display: grid; place-items: center; background: var(--black); border-color: var(--black); color: #fff; font: 600 18px var(--font-head); letter-spacing: .02em; }
.club-body { display: flex; flex-direction: column; min-width: 0; }
.club-body strong { font: 500 16px/1.4 var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
.club-en { font-size: 13px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.club-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.club-meta span + span { color: var(--red-dark); font-weight: 500; }
.club-synced { margin: 20px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.club-join { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 28px 32px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); }
.club-join h2 { font-size: 22px; margin-bottom: 4px; }
.club-join p { margin: 0; color: var(--muted); }
.club-join-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.club-teaser { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.club-teaser .club-stats { margin-top: 20px; }
.club-teaser .club-stats dt { color: var(--muted); }
.club-teaser .club-stats dd { color: var(--ink); }
.club-teaser .btn { margin-top: 28px; }
.club-teaser .club-grid { grid-template-columns: 1fr 1fr; }
.section-line { border-top: 1px solid var(--line); }

/* competition rules (/rules/) */
.rules-bar { position: sticky; top: var(--header-h); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.book-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.book-tab { flex: 0 0 auto; padding: 16px 18px 13px; border-bottom: 3px solid transparent; font: 500 16px var(--font-head); color: var(--muted); text-decoration: none; white-space: nowrap; }
.book-tab:hover { color: var(--ink); }
.book-tab[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.rule-book { background: var(--soft); padding: 40px 0 88px; scroll-margin-top: calc(var(--header-h) + 56px); }
.rule-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.rule-side { position: sticky; top: calc(var(--header-h) + 80px); display: flex; flex-direction: column; gap: 16px; }
.book-card { padding: 22px; background: var(--black); color: rgba(255,255,255,.78); border-radius: var(--radius); border-top: 4px solid var(--red); }
.book-card h2 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.book-card p { font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.book-card .link-arrow { font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rule-toc { display: flex; flex-direction: column; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.rule-toc a { padding: 9px 12px; border-radius: 8px; font: 500 15px var(--font-head); color: var(--ink); text-decoration: none; }
.rule-toc a:hover { background: var(--red-soft); color: var(--red-dark); }
.rule-content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rule-sec { padding: 32px 36px 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 72px); }
.rule-sec > header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rule-sec h3 { font-size: 26px; margin: 4px 0 0; }
.rule-sec h3 span { color: var(--muted); font-weight: 500; font-size: .7em; }
.rule-sec h4 { font-size: 18px; margin: 30px 0 12px; }
.rule-sec h4 small, .rule-sec h5 small { font: 400 14px var(--font-body); color: var(--muted); }
.rule-sec h5 { font-size: 16px; margin: 20px 0 8px; }
.rule-sec p { margin: 0 0 12px; }
.sec-tag { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font: 500 13px/1.7 var(--font-head); }
.rule-list, .bullet-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rule-list li:last-child { border-bottom: 0; }
.rule-no { font: 600 14px/1.9 var(--font-head); color: var(--red); }
.letter-list .rule-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: #fff; font-size: 13px; line-height: 1; }
.bullet-list li { position: relative; padding: 6px 0 6px 22px; }
.bullet-list li::before { content: ''; position: absolute; left: 4px; top: 1.05em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.facts div { padding: 12px 16px; background: var(--soft); border-radius: 10px; border-left: 3px solid var(--red); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font: 600 18px/1.35 var(--font-head); color: var(--ink); }
.score-list { display: flex; flex-direction: column; gap: 8px; }
.score-row { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 12px; }
.score-row strong { font: 500 16px/1.45 var(--font-head); color: var(--ink); }
.score-row p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.score-pt { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 10px; background: var(--black); color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.2; }
.score-pt b { font: 700 28px/1 var(--font-head); color: #fff; }
.score-row:nth-child(n+3) .score-pt { background: var(--red); color: rgba(255,255,255,.85); }
.score-row:nth-child(5) .score-pt { background: var(--red-dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.panel { padding: 4px 20px 16px; border: 1px solid var(--line); border-radius: 12px; }
.panel h4, .panel h5 { margin-top: 16px; }
.panel-win { border-top: 4px solid #1f7a4d; }
.panel-dq { border-top: 4px solid var(--red); }
.gear, .deduct { display: flex; flex-wrap: wrap; gap: 8px; }
.gear span, .deduct span { display: inline-flex; flex-direction: column; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--ink); }
.gear small { font-size: 12px; color: var(--muted); }
.deduct span { flex-direction: row; gap: 8px; background: var(--red-soft); border-color: transparent; color: var(--red-dark); }
.deduct span::before { content: '−0.5'; font: 600 14px var(--font-head); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 8px; }
.type-grid div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--soft); border-radius: 10px; }
.type-grid strong { font: 500 16px var(--font-head); color: var(--ink); }
.type-grid span { font-size: 14px; color: var(--muted); }
.checkpoints { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checkpoints li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--soft); border-radius: 10px; }
.checkpoints p { margin: 0; font-size: 15px; }
.cp-badge { align-self: flex-start; padding: 0 10px; border-radius: 999px; background: var(--black); color: #fff; font: 500 12px/1.9 var(--font-head); }
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.criterion { position: relative; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.criterion strong { display: block; font: 500 16px var(--font-head); color: var(--ink); padding-right: 52px; }
.criteria-plain .criterion strong { padding-right: 0; }
.crit-en { display: block; font-size: 13px; color: var(--muted); }
.criterion p { margin: 8px 0 0; font-size: 14px; color: var(--text); }
.crit-pt { position: absolute; right: 14px; top: 14px; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; font: 600 14px/1.6 var(--font-head); }
.note-line { padding: 12px 16px; background: var(--soft); border-radius: 10px; font-size: 15px; }
.glossary { margin-top: 16px !important; font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.rule-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: center; white-space: nowrap; }
.rule-table th, .rule-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rule-table thead th { background: var(--black); color: #fff; font: 500 14px var(--font-head); border-color: rgba(255,255,255,.15); }
.rule-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.rule-table tbody tr:nth-child(even) { background: var(--soft); }
.rule-table tbody tr:last-child th, .rule-table tbody tr:last-child td { border-bottom: 0; }
.rule-table:not(.rule-table-left) tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 1px 0 0 var(--line); }
.rule-table:not(.rule-table-left) tbody tr:nth-child(even) th { background: var(--soft); }
.table-wrap { -webkit-overflow-scrolling: touch; }
.table-note { margin-top: 8px !important; font-size: 13px; color: var(--muted); }
.rule-table-left { white-space: normal; text-align: left; }
.rule-table-left td, .rule-table-left th { vertical-align: top; }
.carry { font: 400 13px var(--font-body); color: var(--muted); }
.two-col-tight { margin-top: 0; }
.two-col-tight .panel p { font-size: 15px; }
.steps { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--soft); border-top: 3px solid var(--red); }
.steps b { font: 600 15px var(--font-head); color: var(--ink); }
.steps span { font-size: 14px; }
.court { margin: 18px auto 0; max-width: 360px; text-align: center; color: var(--ink); }
.court svg { width: 100%; height: auto; font-family: var(--font-head); fill: currentColor; }
.court figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* about (/about/) and home highlights */
.about-hero { position: relative; overflow: hidden; background: var(--black); color: rgba(255,255,255,.85); border-bottom: 4px solid var(--red); }
.about-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .32; }
.about-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,17,.95) 0%, rgba(17,17,17,.7) 55%, rgba(17,17,17,.35) 100%); }
.about-hero-inner { position: relative; z-index: 1; padding: 56px 0 40px; }
.about-hero h1 { color: #fff; font-size: clamp(34px, 5.5vw, 56px); margin-bottom: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 0; }
.hero-stats div { border-left: 3px solid var(--red); padding-left: 14px; }
.hero-stats dt { font-size: 13px; color: rgba(255,255,255,.65); }
.hero-stats dd { margin: 0; font: 600 22px/1.3 var(--font-head); color: #fff; }
.about-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.about-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; text-decoration: none; font: 500 14px var(--font-head); }
.about-jump a:hover { background: var(--red); border-color: var(--red); }
.about-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.pillars { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.pillars span { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 12px 10px; border-radius: 12px; background: var(--black); color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pillars b { font: 600 22px/1.2 var(--font-head); color: #fff; letter-spacing: 0; }
.pillars span:nth-child(odd) { background: var(--red); color: rgba(255,255,255,.85); }
.logo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.logo-pair figure { margin: 0; padding: 22px; text-align: center; background: var(--soft); border-radius: var(--radius); }
.logo-pair img { width: 100%; max-width: 200px; height: auto; margin: 0 auto 10px; }
.logo-pair figcaption { font: 500 13px var(--font-head); color: var(--muted); }
.mission { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mission li { padding: 22px 20px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--red); }
.mission-no { font: 700 30px/1 var(--font-head); color: var(--red); }
.mission h3 { color: #fff; font-size: 17px; margin: 12px 0 6px; }
.mission p { margin: 0; font-size: 14px; line-height: 1.65; }
/* board: org chart by level, round face-aligned photos */
.org { display: flex; flex-direction: column; gap: 8px; }
.org-tier { position: relative; }
.org-label { display: flex; align-items: center; gap: 14px; margin: 18px 0 18px; font: 600 13px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.org-label::before, .org-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; }
.person-card { --av: 128px; width: 220px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 14px 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.org-lead .person-card { --av: 168px; width: 280px; background: var(--black); border-color: var(--black); }
.org-vice .person-card { --av: 144px; width: 240px; }
.avatar { position: relative; display: block; width: var(--av); height: var(--av); margin-bottom: 14px; border-radius: 50%; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red); transition: box-shadow .3s ease; }
.avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.avatar-initial { display: grid; place-items: center; width: 100%; height: 100%; background: var(--black); color: #fff; font: 600 calc(var(--av) * .38) / 1 var(--font-head); }
.avatar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 120%, rgba(200,16,46,.5), rgba(200,16,46,0) 60%); opacity: 0; transition: opacity .3s ease; }
.org-lead .avatar { box-shadow: 0 0 0 3px var(--black), 0 0 0 6px var(--red); }
.person-card h3 { font-size: 16px; margin: 0 0 2px; transition: color .25s ease; }
.org-lead .person-card h3 { font-size: 19px; color: #fff; }
.person-en { margin: 0 0 4px; font-size: 13px; line-height: 1.4; color: var(--muted); letter-spacing: .01em; }
.org-lead .person-en { color: rgba(255,255,255,.6); }
.org-lead .is-blank, .referees .is-blank { display: none; }
.person-role { margin: 0; font: 500 14px var(--font-head); color: var(--red-dark); }
.org-lead .person-role { color: #ff8a9c; }
.person-extra { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.org-lead .person-extra { color: rgba(255,255,255,.7); }
@media (hover: hover) {
    .person-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.14); border-color: rgba(200,16,46,.45); }
    .person-card:hover .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--red), 0 0 0 14px rgba(200,16,46,.14); }
    .org-lead .person-card:hover .avatar { box-shadow: 0 0 0 3px var(--black), 0 0 0 7px var(--red), 0 0 0 16px rgba(200,16,46,.25); }
    .person-card:hover .avatar img { transform: scale(1.08); filter: saturate(1.12); }
    .person-card:hover .avatar::after { opacity: 1; }
    .person-card:hover h3 { color: var(--red); }
    .org-lead .person-card:hover h3 { color: #fff; }
}
.referees { margin-top: 8px; }
.committee { margin-top: 24px; padding: 24px 28px; background: var(--soft); border-radius: var(--radius); }
.committee h3 { font-size: 17px; margin-bottom: 12px; }
.committee ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 24px; }
.committee li { padding-left: 16px; position: relative; font-size: 15px; }
.committee li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pf { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #222; aspect-ratio: 4 / 3; }
.pf-wide { grid-column: span 1; }
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pf:hover img { transform: scale(1.04); }
.pf figcaption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 16px 14px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.88)); color: rgba(255,255,255,.8); font-size: 13px; }
.pf figcaption strong { font: 500 16px/1.35 var(--font-head); color: #fff; }
.pf-tag { align-self: flex-start; margin-bottom: 4px; padding: 1px 10px; border-radius: 999px; background: var(--red); color: #fff; font: 500 12px/1.7 var(--font-head); }
.activities { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.course-list { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: c; display: flex; flex-direction: column; gap: 10px; }
.course-list li { counter-increment: c; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.course-list li::before { content: counter(c); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font: 600 16px var(--font-head); }
.course-list b { font: 500 16px var(--font-head); color: var(--ink); }
.course-list span { font-size: 14px; color: var(--muted); }
.photo-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.plan-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.plan-photo { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.plan-head { margin: 40px 0 16px; font-size: 20px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan-grid figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: var(--black); }
.plan-grid figcaption { display: flex; flex-direction: column; padding: 12px 14px 16px; font-size: 13px; color: var(--muted); }
.plan-grid strong { font: 500 15px/1.4 var(--font-head); color: var(--ink); }
.highlights .section-head h2 { color: #fff; }
.link-light { color: #fff; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.highlight { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; background: #222; }
.highlight img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.highlight:hover img { transform: scale(1.05); }
.highlight span { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; padding: 48px 16px 16px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.9)); color: rgba(255,255,255,.75); font-size: 13px; border-bottom: 3px solid var(--red); }
.highlight strong { font: 500 16px/1.35 var(--font-head); color: #fff; }
.about-grid .btn-outline { margin-top: 20px; }
@media (max-width: 1080px) {
    .mission { grid-template-columns: repeat(3, 1fr); }
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight { aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
    .about-intro, .activities, .plan-top { grid-template-columns: 1fr; gap: 28px; }
    .portfolio { grid-template-columns: repeat(2, 1fr); }
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .about-hero-inner { padding: 40px 0 28px; }
    .hero-stats { gap: 12px 24px; }
    .hero-stats dd { font-size: 18px; }
    .about-jump { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
    .about-jump a { flex: 0 0 auto; min-height: 44px; }
    .mission { grid-template-columns: 1fr; }
    .portfolio { grid-template-columns: 1fr; }
    .pf-wide { grid-column: auto; }
    .plan-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .highlight-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .highlight { aspect-ratio: 3 / 4; }
    .highlight strong { font-size: 14px; }
    .logo-pair figure { padding: 14px; }
    .committee { padding: 20px; }
    .org-row { gap: 12px; }
    .person-card { --av: 104px; width: calc(50% - 6px); padding: 14px 8px 16px; }
    .org-vice .person-card { --av: 112px; }
    .org-lead .person-card { --av: 140px; width: 100%; max-width: 320px; }
    .person-card h3 { font-size: 15px; min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
    .org-lead .person-card h3 { min-height: 0; }
    .org-exec .person-en { min-height: 2.8em; }
    .person-role { font-size: 13px; }
}

/* I.H.F. section (/about/#ihf) */
.ihf-intro { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.ihf-intro img { width: 100%; height: auto; padding: 16px; background: var(--paper); border-radius: 50%; border: 1px solid var(--line); }
.ihf-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 18px 0 0; }
.ihf-stats div { border-left: 3px solid var(--red); padding-left: 12px; }
.ihf-stats dt { font-size: 13px; color: var(--muted); }
.ihf-stats dd { margin: 0; font: 600 20px/1.3 var(--font-head); color: var(--ink); }
.ihf-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 32px; align-items: start; }
.ihf-side { display: flex; flex-direction: column; gap: 20px; }
.ihf-card { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ihf-card h3 { font-size: 18px; margin-bottom: 14px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 22px; padding: 7px 0; font-size: 15px; }
.timeline li::before { content: ''; position: absolute; left: 42px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--red); }
.tl-year { font: 600 15px var(--font-head); color: var(--ink); }
.timeline .is-thai::before { background: var(--red); }
.timeline .is-thai span:last-child { font-weight: 500; color: var(--red-dark); }
.ihf-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ihf-people li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ihf-people strong { font: 500 16px var(--font-head); color: var(--ink); }
.ihf-people span { font-size: 14px; color: var(--muted); align-self: center; }
.ihf-people small { grid-column: span 2; font-size: 13px; color: var(--red-dark); }
.ihf-org { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ihf-org li { position: relative; width: 100%; padding: 8px 12px; text-align: center; font: 500 14px var(--font-head); border-radius: 8px; background: var(--soft); }
.ihf-org li:first-child { background: var(--black); color: #fff; }
.ihf-org li + li::before { content: ''; position: absolute; left: 50%; top: -8px; height: 8px; border-left: 2px solid var(--line); }
.ihf-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.ihf-contact p { margin: 0 0 6px; font-size: 14px; overflow-wrap: anywhere; }
.ihf-contact a { color: var(--red); }
.ihf-thai { margin-top: 20px; border-left: 4px solid var(--red); }
.ihf-thai p { margin: 0 0 12px; font-size: 15px; }
.ihf-thai ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.ihf-thai li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ihf-thai a { display: inline-flex; align-items: center; min-height: 32px; font: 500 15px var(--font-head); color: var(--ink); text-decoration: none; }
.ihf-thai a::after { content: '↗'; margin-left: 6px; color: var(--red); }
.ihf-thai a:hover { color: var(--red); }
.ihf-thai span { font-size: 13px; color: var(--muted); }
.ihf-source a { color: var(--red); }
.ihf-source { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 900px) {
    .ihf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .ihf-intro { grid-template-columns: 1fr; gap: 16px; }
    .ihf-intro img { width: 120px; }
    .ihf-thai ul { grid-template-columns: 1fr; }
    .ihf-card { padding: 18px; }
    .timeline li { gap: 18px; font-size: 14px; }
}

/* touch screens (phones, tablets): tap targets at least 44px */
@media (pointer: coarse) {
    .site-nav ul a, .sub-toggle { min-height: 44px; display: flex; align-items: center; }
    .rule-toc a { min-height: 44px; display: inline-flex; align-items: center; }
    .book-card .link-arrow, .crumbs a { min-height: 44px; }
    .crumbs { align-items: center; margin-bottom: 8px; }
    .package summary { min-height: 44px; display: flex; align-items: center; }
    .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
    .contact-list a, .doc-list a { display: inline-block; padding: 6px 0; }
}

/* responsive */
@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.08); display: none; }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a, .sub-toggle { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .sub-toggle { width: 100%; justify-content: space-between; }
    .site-nav .sub a { padding-left: 24px; font-size: 14px; color: var(--muted); }
    .hero-motto { display: none; }
}
@media (max-width: 900px) {
    .section { padding: 72px 0; }
    .quick, .tour-grid, .disciplines { grid-template-columns: 1fr 1fr; }
    .quick-card:last-child { grid-column: span 2; }
    .about-grid, .promo-grid, .contact-grid, .archive { grid-template-columns: 1fr; gap: 32px; }
    .archive { gap: 0; }
    .about-logo { order: -1; }
    .about-logo img { width: 200px; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr; justify-items: start; gap: 24px; }
    .footer-nav { justify-content: flex-start; }
    .club-grid { grid-template-columns: 1fr 1fr; }
    .club-teaser { grid-template-columns: 1fr; gap: 32px; }
    .rule-layout { grid-template-columns: 1fr; gap: 20px; }
    .rule-side { position: static; }
    .rule-toc { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 10px; }
    .rule-toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    .brand-text small { display: none; }
    .brand-text strong { font-size: 15px; }
    .hero-inner { min-height: 0; padding: 72px 0 104px; }
    .hero-bg { object-position: 62% 30%; opacity: .45; }
    .hero::after { background: linear-gradient(180deg, rgba(17,17,17,.7) 0%, rgba(17,17,17,.92) 100%); }
    .hero-actions .btn { flex: 1 1 100%; }
    .quick, .tour-grid, .disciplines, .promo-items { grid-template-columns: 1fr; }
    .quick-card:last-child { grid-column: auto; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
    .archive-body, .dojox { padding: 22px; }
    .contact-list li { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-ihf { width: 220px; }
    .club-grid, .club-teaser .club-grid { grid-template-columns: 1fr; }
    .club-stats { gap: 28px; }
    .club-join { padding: 22px; }
    .club-join-actions .btn { flex: 1 1 100%; }
    .page-hero { padding: 40px 0 36px; }
    .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .facts div { padding: 10px 12px; }
    .facts dd { font-size: 16px; }
    .tab-long { display: none; }
    .book-tabs { gap: 0; }
    .book-tab { flex: 1 1 0; text-align: center; }
    .rule-table-stack thead { display: none; }
    .rule-table-stack, .rule-table-stack tbody, .rule-table-stack tr, .rule-table-stack th, .rule-table-stack td { display: block; width: 100%; }
    .rule-table-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .rule-table-stack tbody tr:nth-child(even) { background: var(--paper); }
    .rule-table-stack tbody th { padding: 0 0 6px; border: 0; font: 600 16px var(--font-head); color: var(--ink); }
    .rule-table-stack td { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 4px 0; border: 0; font-size: 14px; }
    .rule-table-stack td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
    .rule-book { padding: 24px 0 64px; }
    .rule-sec { padding: 22px 18px 24px; }
    .rule-sec h3 { font-size: 22px; }
    .two-col { grid-template-columns: 1fr; }
    .score-row { grid-template-columns: 68px 1fr; gap: 12px; }
    .rule-list li { grid-template-columns: 40px 1fr; }
    .book-tab { padding: 14px 12px 11px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
