.action:disabled { font-family: inherit; opacity: 1; cursor: not-allowed; }
.brand { font-size: 52px !important; }
.brand-kicker, .article-eyebrow { letter-spacing: 0 !important; }
.hero-media figcaption { font-size: 26px !important; }
.article-card h2 { font-size: 26px !important; }
@font-face {
  font-family: Kanit;
  src: url("../assets/Kanit-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kanit;
  src: url("../assets/Kanit-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --page: #05172d;
  --card: #071627;
  --panel: #112b47;
  --panel-2: #0b2038;
  --gold: #e9bd5a;
  --gold-light: #ffe6a1;
  --silver: #dce7f0;
  --silver-deep: #aebfd0;
  --blue: #3a9fd6;
  --cream: #f0f5f9;
  --muted: #bfd0de;
  --line: rgba(220, 231, 240, .28);
  --soft-line: rgba(191, 215, 236, .17);
  --font-thai: Kanit, "Leelawadee UI", Tahoma, sans-serif;
  --angle: 0deg;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -10%, rgba(38, 116, 186, .45), transparent 33%),
    radial-gradient(circle at 8% 48%, rgba(233, 189, 90, .08), transparent 30%),
    linear-gradient(135deg, #05172d, #092745 50%, #041326);
  font: 400 16px/1.7 var(--font-thai);
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.page-shell {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 28px;
  padding: 8px 8px 46px;
}
.portal-card, .article-card { min-width: 0; width: 100%; }
.portal-card {
  position: relative;
  max-width: 470px;
  padding: 20px 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(191, 215, 236, .62);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(77, 161, 218, .13), transparent 22%), var(--card);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .05);
}
.portal-card::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 62%, rgba(58, 159, 214, .25) 68%, var(--silver) 74%, var(--gold-light) 78%, var(--blue) 82%, transparent 90% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-run 4.2s linear infinite;
}

.brand-header { text-align: center; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  font-size: clamp(43px, 13vw, 57px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -3px;
  line-height: 1;
  filter: drop-shadow(0 6px 13px rgba(77, 170, 229, .3));
}
.brand span:first-child { color: var(--silver); text-shadow: 0 2px 0 #506d86; }
.brand span:last-child { color: var(--gold-light); text-shadow: 0 2px 0 #81642b; }
.brand-kicker { margin: 5px 0 2px; color: var(--silver-deep); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
h1 { max-width: 360px; margin: 0 auto 12px; font-size: 17px; font-weight: 700; line-height: 1.5; }
h1 span { color: var(--gold-light); }

.hero-media {
  position: relative;
  aspect-ratio: 1.12 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 231, 240, .82);
  border-radius: 20px;
  background: #0b2340;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .46), 0 0 32px rgba(66, 152, 210, .16);
}
.hero-media::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 70%, var(--blue) 76%, var(--silver) 80%, var(--gold-light) 84%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-run 5.4s linear infinite reverse;
}
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 31%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 15, 34, .5), transparent 32%, transparent 48%, rgba(4, 14, 32, .68) 74%, rgba(4, 13, 31, .88)); }
.hero-media figcaption { position: absolute; bottom: 12px; left: 12px; right: 12px; color: var(--cream); font-size: clamp(22px, 6.5vw, 28px); font-weight: 700; line-height: 1.26; text-align: center; text-shadow: 0 3px 10px #06101e, 0 2px 0 #715327; }
.hero-media figcaption strong { color: var(--gold-light); font-size: 1.22em; }

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  margin: 10px 0;
  padding: 6px 8px;
  color: var(--silver);
  border: 1px solid var(--soft-line);
  background: linear-gradient(90deg, #0b2038, #173759, #0b2038);
  font-size: 12px;
  white-space: nowrap;
}
.entry-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(233, 189, 90, .5); }
.entry-meta-divider { width: 1px; height: 13px; background: var(--line); }

.action-stack { display: grid; gap: 8px; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.action svg { width: 20px; flex: 0 0 20px; }
.action:hover { transform: translateY(-2px); }
.action:active { transform: translateY(0); }
.action-primary { color: #102441; background: linear-gradient(125deg, #fff0b8, var(--gold) 54%, #b27b24); box-shadow: 0 10px 28px rgba(233, 189, 90, .2), inset 0 1px rgba(255,255,255,.5); }
.action-secondary { color: var(--silver); border-color: var(--silver-deep); background: linear-gradient(110deg, rgba(39, 100, 149, .25), rgba(13, 36, 65, .6)); }
.action-secondary:hover { border-color: var(--silver); }
.action:focus-visible, .support-link:focus-visible, .brand:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.link-notice { min-height: 20px; margin: 4px 0 0; color: var(--silver-deep); font-size: 11px; line-height: 1.6; text-align: center; }
.link-notice.is-active { color: var(--gold-light); }

.info-panel { margin-top: 13px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 15px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
.info-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 53px; padding: 8px 11px; border-bottom: 1px solid var(--soft-line); }
.info-row:last-child { border-bottom: 0; }
.info-icon { display: grid; place-items: center; width: 27px; height: 27px; color: var(--silver); border: 1px solid rgba(184,211,232,.3); border-radius: 8px; background: rgba(73,151,207,.13); }
.info-icon svg { width: 16px; }
.info-label, .info-row strong { min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
.info-label { color: var(--silver); font-weight: 700; }
.info-row strong { color: var(--gold-light); text-align: right; }
.support-link { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; margin-top: 7px; color: var(--muted); font-size: 16px; font-weight: 700; }
.support-link svg { width: 18px; }
.support-link:hover { color: var(--gold-light); }
.card-foot { display: flex; align-items: center; gap: 9px; padding-top: 11px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 11px; }
.age { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: var(--silver); border: 1px solid var(--silver-deep); border-radius: 50%; font-size: 10px; font-weight: 900; }

.article-card { max-width: 760px; padding: 25px 20px 22px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, #102b49, #091b31 28%, #08182a); box-shadow: 0 22px 65px rgba(0,0,0,.32); }
.article-eyebrow { display: inline-block; margin-bottom: 8px; color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.article-card h2, .article-card h3 { color: var(--cream); font-weight: 700; line-height: 1.45; }
.article-card h2 { margin: 0 0 14px; font-size: clamp(23px, 6vw, 31px); }
.article-card h3 { margin: 0 0 10px; font-size: 20px; }
.article-card p { margin: 0 0 15px; color: var(--muted); font-size: 16px; line-height: 1.78; }
.article-head p { margin-bottom: 0; }
.article-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--soft-line); }
.article-section p:last-child { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--soft-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { min-height: 52px; display: flex; align-items: center; padding: 10px 2px; color: var(--silver); font-size: 16px; font-weight: 700; cursor: pointer; }
.faq details p { padding: 0 2px 15px; }
.article-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--soft-line); color: var(--silver-deep); font-size: 13px; line-height: 1.6; }

@media (max-width: 480px) {
  .info-row { grid-template-columns: 27px minmax(0, 1fr); }
  .info-row strong { grid-column: 2; margin-top: -5px; text-align: left; }
}
@media (max-width: 360px) {
  .portal-card { padding-inline: 12px; }
  .entry-meta { font-size: 11px; gap: 5px; }
  .article-card { padding-inline: 17px; }
}
@media (min-width: 700px) {
  .page-shell { gap: 36px; padding: 32px 24px 64px; }
  .portal-card { padding: 30px 22px 23px; border-radius: 32px; }
  .hero-media { aspect-ratio: 1 / 1; border-radius: 24px; }
  .article-card { padding: 34px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .portal-card::after, .hero-media::after { animation: none; }
}
@keyframes border-run { to { --angle: 360deg; } }
