:root {
  color-scheme: light;
  --ink: #172445;
  --body: #465570;
  --blue: #274add;
  --deep: #1937b4;
  --light: #eef2ff;
  --line: #dae2f3;
  --paper: #fff;
  --canvas: #f8faff;
  font-family: "Thonburi", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
a { color: var(--deep); text-underline-offset: .2em; }
a:hover { color: #102b94; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.26; }
.wrap { width: min(100% - 72px, 1120px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: 8px auto auto 12px; padding: .5rem .8rem; transform: translateY(-150%); background: white; }
.skip:focus { transform: none; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .66rem; text-decoration: none; color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.mark { position: relative; width: 2.05rem; height: 2.05rem; border-radius: .65rem; flex: none; background: var(--blue); display: grid; place-content: center; }
.mark::before { content: ""; width: 1.04rem; height: .74rem; border-radius: .25rem; background: white; }
.mark::after { content: ""; position: absolute; inset: 15px auto auto 11px; width: 3px; height: 3px; border-radius: 50%; background: var(--blue); box-shadow: 4px 0 var(--blue), 8px 0 var(--blue), -1px 5px white; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.55rem; }
nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 650; }
nav a:hover, nav a[aria-current] { color: var(--deep); }
.hero { padding: clamp(2.9rem, 6vw, 6.1rem) 0; background: #f3f6ff; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr .94fr; align-items: center; gap: clamp(2rem, 7vw, 6.4rem); }
.eyebrow { color: var(--deep); font-size: .91rem; font-weight: 750; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.55rem); font-weight: 850; letter-spacing: -.04em; margin: .62rem 0 1.05rem; }
.hero h1 span { display: block; color: var(--blue); }
.intro { color: var(--body); font-size: 1.095rem; max-width: 35rem; }
.actions { margin-top: 1.5rem; display: flex; align-items: center; gap: .9rem 1.25rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; border-radius: .67rem; padding: .6rem 1.05rem; background: var(--blue); color: white; text-decoration: none; font-weight: 730; }
.button:hover { background: var(--deep); color: white; }
.text-link { font-weight: 700; }
.message-stage { position: relative; min-width: 0; padding: clamp(1.3rem, 5vw, 3.7rem); border-radius: 1.6rem; background: #213fb4; background-image: radial-gradient(ellipse at 100% 100%, #686bef 0%, transparent 64%), radial-gradient(ellipse at 0 0, #4f70f4 0%, transparent 65%); box-shadow: 0 16px 32px #274add25; }
.message-stage::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(#fff5 1px, transparent 1px); background-size: 16px 16px; pointer-events: none; }
.message { position: relative; background: var(--paper); border-radius: 1.15rem; padding: 1.2rem; box-shadow: 0 15px 35px #13236f51; }
.message-header { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; line-height: 1.35; }
.message-header small { display: block; font-size: .82rem; color: var(--body); margin-top: .15rem; }
.bubble { padding: .9rem; border-radius: .8rem .8rem .8rem .2rem; background: #edf1ff; font-size: .94rem; }
.bubble a { display: block; width: fit-content; overflow-wrap: anywhere; margin-top: .42rem; }
.content { padding: clamp(2.5rem, 5vw, 4.7rem) 0; scroll-margin-top: 1rem; }
.content h2 { font-size: clamp(1.6rem, 3.7vw, 2.45rem); margin: .22rem 0 1.15rem; }
.news-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.2rem; }
.panel { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--paper); padding: clamp(1.2rem, 3vw, 2rem); min-width: 0; }
.panel.accent { background: #eef3ff; }
.panel h3 { font-size: 1.24rem; margin: .45rem 0 .6rem; }
.panel p { color: var(--body); margin-bottom: .8rem; }
.panel time, .date { font-size: .9rem; color: var(--body); }
.footer { border-top: 1px solid var(--line); background: white; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.35rem; padding-block: 1.15rem; color: var(--body); }
.footer p { font-size: .94rem; }
.footer a { font-size: .93rem; }
.document { max-width: 760px; padding-block: clamp(2.6rem, 7vw, 5.2rem); min-height: 64vh; }
.document h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: .35rem 0 .85rem; }
.document h2 { font-size: 1.42rem; margin: 1.6rem 0 .55rem; }
.document p { color: var(--body); margin-bottom: .85rem; }
.document .lead { font-size: 1.14rem; }
.document .panel { margin: 1.35rem 0; }
.document .panel p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .wrap { width: min(100% - 40px, 640px); }
  .hero-grid, .news-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.6rem; }
  .message-stage { max-width: 520px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { min-height: 64px; gap: .65rem; }
  .brand { font-size: 1.2rem; gap: .4rem; }
  nav { gap: .35rem .7rem; }
  nav a { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
