:root {
  --jade-950: #032b27;
  --jade-900: #073b35;
  --jade-800: #0d5148;
  --jade-700: #14685b;
  --gold-500: #d4a72c;
  --gold-400: #e7bd4c;
  --gold-200: #f2dda0;
  --ivory: #fff8e7;
  --cream: #f6ecd2;
  --paper: #fffcf4;
  --ink: #112a26;
  --muted: #62706c;
  --red: #a83232;
  --white: #fff;
  --border: rgba(121, 88, 15, .2);
  --shadow: 0 18px 50px rgba(2, 33, 29, .14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 1000; padding: 10px 16px; background: var(--gold-400); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(3, 43, 39, .96); color: var(--white); border-bottom: 1px solid rgba(212, 167, 44, .35); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-400); font-family: "Noto Serif Thai", serif; font-weight: 700; font-size: 27px; line-height: 1; flex: 0 0 auto; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.primary-nav { display: flex; align-items: stretch; gap: 2px; margin-inline: auto; align-self: stretch; }
.primary-nav a { position: relative; display: grid; place-items: center; padding: 0 12px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.82); }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a.is-active { color: var(--gold-400); }
.primary-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold-400); }
.header-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--white); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid transparent; border-radius: 11px; font-size: 15px; font-weight: 700; line-height: 1.2; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(231, 189, 76, .65); outline-offset: 3px; }
.button-gold { background: linear-gradient(180deg, #f2cf70, var(--gold-400)); color: #2e2409; box-shadow: 0 8px 24px rgba(212, 167, 44, .2); }
.button-ghost { border-color: rgba(255,255,255,.32); color: var(--white); }
.button-outline { border-color: rgba(255,255,255,.78); color: var(--white); background: rgba(3, 43, 39, .36); }
.button-dark { background: var(--jade-900); color: var(--white); }
.button-large { min-height: 52px; padding-inline: 26px; font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--jade-800); border-bottom: 1px solid currentColor; }
.gold-link { color: var(--gold-400); }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--jade-950); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at 20% 30%, transparent 0 38px, rgba(212,167,44,.35) 39px 40px, transparent 41px), linear-gradient(135deg, transparent 48%, rgba(212,167,44,.1) 49%, transparent 50%); background-size: 190px 190px, 48px 48px; }
.hero-inner { position: relative; min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: 52px; padding-block: 68px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero h1 { margin: 0; max-width: 650px; font-family: "Noto Serif Thai", serif; font-size: clamp(42px, 4.65vw, 62px); line-height: 1.13; letter-spacing: -.03em; text-wrap: balance; }
.hero h1 em { display: inline; color: var(--gold-400); font-style: normal; white-space: normal; }
.hero-copy > p { max-width: 600px; margin: 24px 0 0; font-size: 20px; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-copy .hero-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.66); }
.hero-media { position: relative; width: 100%; min-width: 0; margin: 0; aspect-ratio: 1076/600; border-radius: 28px; overflow: hidden; border: 1px solid rgba(231,189,76,.5); box-shadow: 0 28px 70px rgba(0,0,0,.32); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 7px rgba(255,248,231,.08); border-radius: inherit; pointer-events: none; }

.section-ivory { position: relative; background-color: var(--ivory); background-image: radial-gradient(circle at 0 0, rgba(212,167,44,.07) 0 2px, transparent 3px); background-size: 28px 28px; }
.section-jade { color: var(--white); background: var(--jade-900); }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { position: relative; margin: 0; padding-left: 18px; font-family: "Noto Serif Thai", serif; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -.02em; }
.section-heading h2::before { content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 5px; border-radius: 6px; background: var(--gold-500); }
.section-heading p { margin: 7px 0 0 18px; color: var(--muted); }
.section-heading.light p { color: rgba(255,255,255,.72); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

.today-section { padding: 72px 0; }
.today-board { display: grid; grid-template-columns: 1.05fr 1.55fr .7fr; align-items: stretch; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.today-intro { padding: 30px; border-right: 1px solid var(--border); }
.date-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--jade-700); }
.date-chip span { padding: 4px 9px; border-radius: 8px; background: #e8f2ed; font-weight: 700; }
.today-intro h3 { margin: 0; font-size: 25px; }
.today-intro p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.result-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.result-summary div { display: grid; place-content: center; text-align: center; padding: 28px 18px; border-right: 1px solid var(--border); }
.result-summary dt { font-size: 15px; color: var(--muted); }
.result-summary dd { margin: 8px 0 0; font-family: "Noto Serif Thai", serif; font-size: 34px; font-weight: 700; color: var(--jade-900); }
.today-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 26px; }
.status-dot { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(212,167,44,.15); }
.source-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.lottery-categories { padding: 78px 0 82px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { position: relative; overflow: hidden; min-height: 0; aspect-ratio: 16/10; border: 1px solid rgba(231,189,76,.48); border-radius: var(--radius-md); background: var(--jade-950); box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(2,25,22,.92) 100%); }
.category-card:hover img { transform: scale(1.04); }
.card-copy { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; }
.card-copy strong { font-family: "Noto Serif Thai", serif; font-size: 24px; color: var(--white); }
.card-copy small { color: rgba(255,255,255,.76); }

.results-section { padding: 78px 0; }
.results-panel { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.result-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: #fbf4e2; }
.result-tabs button { padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.result-tabs button[aria-selected="true"] { background: var(--jade-900); color: var(--white); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 15px 20px; border-bottom: 1px solid #e9e1cf; text-align: left; }
th { background: #f4ead4; color: var(--jade-900); font-size: 14px; }
td { font-size: 15px; }
.table-status { display: inline-flex; align-items: center; gap: 6px; color: #806210; font-weight: 700; }
.table-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.result-data-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 14px 22px; border-top: 1px solid var(--border); background: #f8f3e8; color: var(--muted); font-size: 14px; }
.result-data-meta a { color: var(--jade-800); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.refresh-results { padding: 6px 11px; border: 1px solid var(--jade-700); border-radius: 8px; color: var(--jade-800); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.refresh-results:hover { color: var(--white); background: var(--jade-800); }
.refresh-results:disabled { opacity: .6; cursor: wait; }
.data-disclaimer { margin: 0; padding: 14px 22px; background: #fff8e8; color: #735f32; font-size: 14px; }

.guide-jump-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.guide-jump-grid a { min-height: 84px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); box-shadow: 0 8px 20px rgba(2,43,39,.06); }
.guide-jump-grid strong { color: var(--jade-900); font-size: 18px; }
.guide-jump-grid span { color: var(--muted); font-size: 14px; }
.guide-section { scroll-margin-top: 96px; padding: 34px 0 44px; border-bottom: 1px solid var(--border); }
.guide-section:last-child { border-bottom: 0; }
.guide-section > h2 { margin-top: 0; }
.guide-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.guide-fact { padding: 16px 18px; border: 1px solid var(--border); border-radius: 13px; background: #fffdf7; }
.guide-fact span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.guide-fact strong { color: var(--jade-900); font-size: 18px; }
.guide-source { margin: 18px 0 0; padding: 12px 14px; border-left: 4px solid var(--gold-500); background: #fff7df; color: #69572e; font-size: 14px; }
.guide-source a { color: var(--jade-800); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.intent-section { padding: 72px 0 28px; }
.answer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.answer-card { display: flex; flex-direction: column; gap: 7px; min-height: 142px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 10px 24px rgba(2,43,39,.07); transition: transform .2s ease, border-color .2s ease; }
.answer-card:hover { transform: translateY(-3px); border-color: var(--gold-500); }
.answer-card strong { font-family: "Noto Serif Thai", serif; font-size: 21px; line-height: 1.35; color: var(--jade-900); }
.answer-card span { color: var(--muted); line-height: 1.55; }

.promo-section { padding: 76px 0; color: var(--white); background: linear-gradient(135deg, var(--jade-950), var(--jade-800)); }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(231,189,76,.46); border-radius: 20px; background: rgba(255,255,255,.05); }
.promo-card img { width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; object-position: center; }
.promo-card > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.promo-card b { color: var(--gold-400); white-space: nowrap; }
.promo-note { margin: 18px 0 0; color: rgba(255,255,255,.64); font-size: 14px; }

.steps-section { padding: 78px 0; overflow: hidden; }
.steps-layout { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 70px; }
.steps-list { display: grid; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; counter-reset: step; }
.steps-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.steps-list li > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-400); color: #2d240c; font-weight: 800; }
.steps-list strong { font-size: 20px; }
.steps-list p { margin: 3px 0 0; color: var(--muted); }
.steps-media { position: relative; margin: 0; }
.steps-media::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: rgba(212,167,44,.18); filter: blur(18px); }
.steps-media img { position: relative; width: min(100%, 430px); height: auto; aspect-ratio: 1; object-fit: contain; margin: auto; filter: drop-shadow(0 26px 20px rgba(2,43,39,.18)); }

.knowledge-section { padding: 76px 0; }
.knowledge-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.knowledge-layout h2 { margin: 0 0 18px; font-family: "Noto Serif Thai", serif; font-size: clamp(34px, 4.3vw, 52px); line-height: 1.15; }
.knowledge-layout p { color: rgba(255,255,255,.78); }
.knowledge-layout p a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 4px; }
.knowledge-links { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(231,189,76,.35); border-radius: 20px; overflow: hidden; }
.knowledge-links a { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; gap: 0 14px; padding: 24px; border-right: 1px solid rgba(231,189,76,.25); border-bottom: 1px solid rgba(231,189,76,.25); }
.knowledge-links a:nth-child(2n) { border-right: 0; }
.knowledge-links a:nth-last-child(-n+2) { border-bottom: 0; }
.knowledge-icon { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(212,167,44,.14); color: var(--gold-400); font-size: 23px; font-weight: 800; }
.knowledge-links strong { color: var(--gold-200); }
.knowledge-links small { color: rgba(255,255,255,.64); }

.articles-section { padding: 82px 0 66px; }
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.article-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 10px 28px rgba(2,43,39,.08); }
.article-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: center; }
.article-card > div { flex: 1; }
.article-card > div { padding: 18px; }
.article-meta { color: var(--jade-700); font-size: 12px; font-weight: 700; }
.article-card h3 { margin: 8px 0; font-family: "Noto Serif Thai", serif; font-size: 20px; line-height: 1.4; }
.article-card h3 a:hover { color: var(--jade-700); }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; }

.trust-section { padding: 24px 0 72px; background: var(--ivory); }
.trust-card { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 24px; padding: 26px 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 12px 34px rgba(2,43,39,.08); }
.trust-card > img { width: 104px; height: 104px; object-fit: contain; }
.trust-card h2 { margin: 3px 0 6px; font-family: "Noto Serif Thai", serif; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.trust-card p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--jade-700); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.inline-links a { color: var(--jade-700); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.breadcrumb { padding: 16px 0; background: #f5ead0; border-bottom: 1px solid var(--border); }
.breadcrumb ol { width: var(--shell); margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; color: var(--muted); font-size: 14px; }
.breadcrumb li + li::before { content: "/"; margin-right: 7px; color: #9e9275; }
.breadcrumb a { color: var(--jade-700); font-weight: 700; }
.page-hero { color: var(--white); background: linear-gradient(135deg, var(--jade-950), var(--jade-800)); }
.page-hero-inner { min-height: 410px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; padding-block: 58px; }
.page-hero h1 { margin: 8px 0 16px; font-family: "Noto Serif Thai", serif; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.13; letter-spacing: -.03em; }
.page-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.82); font-size: 19px; }
.page-hero .page-meta { margin-top: 20px; color: rgba(255,255,255,.64); font-size: 14px; }
.page-hero-media { margin: 0; overflow: hidden; border: 1px solid rgba(231,189,76,.5); border-radius: 24px; box-shadow: 0 22px 50px rgba(0,0,0,.3); }
.page-hero-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.content-section { padding: 64px 0 82px; background: var(--ivory); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 52px; }
.article-body { min-width: 0; }
.article-body > p:first-of-type { font-size: 19px; color: #314b46; }
.article-body h2 { margin: 48px 0 14px; font-family: "Noto Serif Thai", serif; font-size: clamp(29px, 3.5vw, 40px); line-height: 1.28; color: var(--jade-900); scroll-margin-top: 100px; }
.article-body h3 { margin: 30px 0 8px; font-size: 23px; color: var(--jade-800); scroll-margin-top: 100px; }
.article-body p, .article-body li { color: #40524f; }
.article-body a { color: var(--jade-700); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li + li { margin-top: 8px; }
.article-body table { min-width: 640px; margin: 20px 0; background: var(--white); border: 1px solid var(--border); }
.content-card, .callout { margin: 24px 0; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); }
.content-card h2, .content-card h3, .callout h2, .callout h3 { margin-top: 0; }
.callout { border-left: 5px solid var(--gold-500); background: #fff5d9; }
.callout strong { color: var(--jade-900); }
.toc-card { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 12px 34px rgba(2,43,39,.08); }
.toc-card strong { display: block; margin-bottom: 10px; color: var(--jade-900); font-size: 18px; }
.toc-card a { display: block; padding: 8px 0; border-bottom: 1px solid #ece5d5; color: var(--muted); font-size: 14px; }
.toc-card a:last-child { border-bottom: 0; }
.toc-card a:hover { color: var(--jade-700); }
.source-list { padding: 0; list-style: none; }
.source-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.source-list li:last-child { border-bottom: 0; }
.author-box { display: grid; grid-template-columns: 82px 1fr; gap: 18px; align-items: center; margin-top: 50px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); }
.author-box img { width: 82px; height: 82px; object-fit: contain; }
.author-box h2 { margin: 0 0 5px; font-size: 22px; }
.author-box p { margin: 0; font-size: 14px; }
.related-section { padding: 64px 0; color: var(--white); background: var(--jade-900); }
.related-section h2 { margin: 0 0 24px; font-family: "Noto Serif Thai", serif; font-size: 34px; color: var(--gold-200); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { padding: 22px; border: 1px solid rgba(231,189,76,.32); border-radius: var(--radius-md); background: rgba(255,255,255,.05); }
.related-card strong { display: block; color: var(--gold-200); font-size: 20px; }
.related-card span { display: block; margin-top: 5px; color: rgba(255,255,255,.68); font-size: 14px; }
.policy-page .article-body { max-width: 860px; margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.contact-grid .content-card { margin: 0; }

.faq-section { padding: 64px 0 82px; }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 56px; }
.faq-intro h2 { margin: 0; font-family: "Noto Serif Thai", serif; font-size: clamp(34px, 4vw, 48px); }
.faq-intro > p { color: var(--muted); }
.help-card { display: flex; align-items: center; margin-top: 26px; padding: 18px; background: #f3e5bf; border-radius: 18px; }
.help-card img { width: 110px; height: 110px; object-fit: contain; }
.help-card p { margin: 3px 0; font-size: 14px; color: var(--muted); }
.help-card a { color: var(--jade-700); font-weight: 700; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--white); border: 1px solid var(--border); border-radius: 13px; }
.faq-list summary { position: relative; padding: 17px 52px 17px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--jade-700); font-size: 26px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.responsible-note { background: #e9e1ce; }
.responsible-note .shell { min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 15px; text-align: left; }
.responsible-note p { display: inline; margin: 0 0 0 6px; font-size: 14px; color: #5c625d; }
.shield { width: 36px; height: 40px; display: grid; place-items: center; color: var(--jade-900); border: 3px solid currentColor; border-radius: 16px 16px 20px 20px; font-weight: 900; }

.site-footer { padding: 58px 0 20px; color: rgba(255,255,255,.72); background: var(--jade-950); }
.footer-grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 48px; }
.footer-brand p { max-width: 330px; }
.site-footer h2 { margin: 0 0 14px; color: var(--gold-200); font-family: inherit; font-size: 16px; }
.site-footer div > a:not(.brand) { display: block; margin: 8px 0; font-size: 14px; }
.site-footer div > a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-bottom p { margin: 0; }
.mobile-dock { display: none; }

@media (max-width: 1120px) {
  .primary-nav a { padding-inline: 8px; font-size: 14px; }
  .header-actions .button-ghost { display: none; }
  .hero-inner { grid-template-columns: minmax(0, .98fr) minmax(380px, 1.02fr); gap: 34px; }
  .hero h1 { font-size: clamp(40px, 4.8vw, 54px); }
  .today-board { grid-template-columns: 1fr 1.5fr; }
  .today-actions { grid-column: 1 / -1; flex-direction: row; border-top: 1px solid var(--border); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .answer-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-jump-grid, .guide-facts { grid-template-columns: repeat(2, 1fr); }
  :root { --shell: min(100% - 30px, 760px); }
  body { font-size: 16px; }
  .header-inner { min-height: 68px; }
  .brand { font-size: 23px; }
  .brand img { width: 50px; height: 50px; }
  .menu-toggle { display: block; margin-left: auto; }
  .primary-nav { position: fixed; inset: 68px 0 auto; display: none; padding: 14px 20px 24px; background: var(--jade-950); border-bottom: 1px solid rgba(212,167,44,.28); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { min-height: 48px; justify-content: start; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a.is-active::after { display: none; }
  .header-actions { display: none; }
  .hero-inner { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 56px; }
  .hero-copy, .hero-media { width: 100%; max-width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(38px, 9vw, 58px); }
  .hero-copy > p { font-size: 18px; }
  .today-board { grid-template-columns: 1fr; }
  .today-intro { border-right: 0; border-bottom: 1px solid var(--border); }
  .result-summary { min-height: 150px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-layout, .knowledge-layout, .faq-layout, .page-hero-inner, .content-layout { grid-template-columns: 1fr; }
  .page-hero-inner { gap: 32px; }
  .page-hero-media { max-width: 620px; }
  .toc-card { position: static; order: -1; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .steps-media img { max-width: 340px; }
  .faq-layout { gap: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 640px) {
  .answer-grid { grid-template-columns: 1fr; }
  .guide-jump-grid, .guide-facts { grid-template-columns: 1fr; }
  .answer-card { min-height: 0; padding: 20px; }
  :root { --shell: calc(100% - 28px); --radius-lg: 18px; }
  body { padding-bottom: 70px; }
  .site-header { position: sticky; }
  .brand span { font-size: 21px; }
  .hero-inner { padding-block: 42px 46px; }
  .hero h1 { max-width: 100%; font-size: 38px; text-wrap: wrap; overflow-wrap: anywhere; }
  .hero h1 em { white-space: normal; }
  .hero-copy > p { margin-top: 18px; font-size: 17px; }
  .hero-actions { margin-top: 24px; }
  .button-large { width: 100%; }
  .hero-media { border-radius: 18px; }
  .section-heading h2 { font-size: 32px; }
  .split-heading { display: block; }
  .split-heading > a { margin: 14px 0 0 18px; }
  .today-section, .lottery-categories, .results-section, .promo-section, .steps-section, .knowledge-section, .articles-section, .faq-section, .content-section, .related-section { padding-block: 54px; }
  .today-board { border-radius: 16px; }
  .result-summary dd { font-size: 25px; }
  .result-data-meta { align-items: flex-start; flex-direction: column; }
  .today-actions { flex-direction: column; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 0; aspect-ratio: 16/10; }
  .promo-grid, .article-grid { grid-template-columns: 1fr; }
  .knowledge-links { grid-template-columns: 1fr; }
  .knowledge-links a, .knowledge-links a:nth-child(2n) { border-right: 0; border-bottom: 1px solid rgba(231,189,76,.25); }
  .knowledge-links a:last-child { border-bottom: 0; }
  .help-card img { width: 84px; height: 84px; }
  .trust-card, .author-box { grid-template-columns: 1fr; text-align: left; }
  .trust-card > img, .author-box img { width: 78px; height: 78px; }
  .page-hero-inner { min-height: auto; padding-block: 42px; }
  .page-hero h1 { font-size: 38px; }
  .page-hero p { font-size: 17px; }
  .article-body h2 { margin-top: 40px; font-size: 30px; }
  .related-grid, .contact-grid { grid-template-columns: 1fr; }
  .responsible-note .shell { align-items: flex-start; padding-block: 20px; }
  .responsible-note p { display: block; margin: 3px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
  .mobile-dock { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; color: #51615d; background: rgba(255,252,244,.96); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(3,43,39,.12); backdrop-filter: blur(12px); }
  .mobile-dock a { min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; font-size: 11px; font-weight: 600; }
  .mobile-dock a > span { font-size: 20px; line-height: 1; color: var(--jade-700); }
  .mobile-dock .dock-main { position: relative; color: var(--jade-900); font-weight: 700; }
  .mobile-dock .dock-main img { width: 49px; height: 49px; margin-top: -29px; padding: 3px; border-radius: 50%; background: var(--white); box-shadow: 0 7px 18px rgba(3,43,39,.18); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
