:root {
  --ink: #102d49;
  --ink-deep: #0a2138;
  --ink-soft: #28465f;
  --paper: #f6efe2;
  --paper-deep: #eee2d1;
  --paper-light: #fffaf1;
  --surface: #fffdf8;
  --line: #dccfbd;
  --line-strong: #c7b79f;
  --muted: #6f716d;
  --muted-soft: #8d8a80;
  --teal: #6d9187;
  --teal-deep: #4f756c;
  --ochre: #dfa936;
  --terracotta: #c95f38;
  --green: #3c7968;
  --red: #b75037;
  --shadow-soft: 0 18px 44px rgba(44, 37, 27, .08);
  --shadow-card: 0 24px 60px rgba(44, 37, 27, .11);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; position: relative; z-index: 1; }
.ambient, .noise { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 226, .92);
  border-bottom: 1px solid rgba(16, 45, 73, .10);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 6px 18px rgba(16,45,73,.14); }
.brand-copy { display: grid; line-height: 1.03; }
.brand-copy strong { color: var(--ink-deep); font-size: 16px; letter-spacing: -.025em; }
.brand-copy span { margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.header-tools { display: flex; align-items: center; gap: 14px; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav > a:not(.button) { text-decoration: none; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; transition: color .18s ease; }
.header-nav > a:not(.button):hover { color: var(--ink-deep); }
.header-nav > .nav-calculator-link:not(.button) { color: var(--terracotta); font-weight: 850; }
.header-nav > .nav-calculator-link:not(.button):hover { color: #a84e31; }
.mobile-nav .nav-calculator-link { color: var(--terracotta); font-weight: 850; }
#calculator, #checklist, #how-it-works, #thai-public-holidays { scroll-margin-top: 96px; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid rgba(16,45,73,.12); border-radius: 12px; background: rgba(255,255,255,.48); color: var(--ink); padding: 10px; }
.menu-button span { display: block; width: 100%; height: 1.5px; background: currentColor; margin: 5px 0; }
.mobile-nav { padding: 8px 20px 18px; background: var(--paper); border-top: 1px solid rgba(16,45,73,.08); }
.mobile-nav > a { display: block; padding: 13px 0; color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 700; }

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 40px; padding-inline: 14px; font-size: 11.5px; }
.button-primary { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 9px 20px rgba(16,45,73,.15); }
.button-primary:hover { background: #173c5e; border-color: #173c5e; box-shadow: 0 12px 26px rgba(16,45,73,.19); }
.button-ghost { color: var(--ink); background: rgba(255,255,255,.48); border-color: rgba(16,45,73,.16); }
.button-ghost:hover { background: #fffaf3; border-color: rgba(16,45,73,.3); }
.button-text { color: var(--muted); background: transparent; border-color: transparent; min-height: 42px; padding-inline: 12px; }
.button-text:hover { color: var(--ink); background: rgba(16,45,73,.05); }

.language-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 999px; border: 1px solid rgba(16,45,73,.12); background: rgba(255,255,255,.38); }
.lang-button { min-width: 38px; height: 32px; border: 0; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 999px; background: transparent; color: var(--muted); font-size: 10.5px; font-weight: 850; letter-spacing: .04em; cursor: pointer; transition: background .16s ease, color .16s ease; }
.lang-button:hover { color: var(--ink); }
.lang-button.active { background: var(--ink); color: white; }
.mobile-language-switcher { margin-top: 10px; width: fit-content; }
.mobile-language-switcher .lang-button { min-width: 44px; height: 40px; padding: 0 10px; font-size: 11px; }

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(480px, 1.04fr);
  align-items: center;
  gap: 52px;
  padding-top: 24px;
  padding-bottom: 36px;
}
.hero-copy { max-width: 610px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .105em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); box-shadow: none; }
.hero h1 { margin: 20px 0 20px; color: var(--ink-deep); font-size: clamp(54px, 6.4vw, 82px); line-height: .96; letter-spacing: -.06em; font-weight: 830; }
.hero h1 span { color: var(--teal-deep); }
.hero-lede { max-width: 590px; margin: 0; color: #5f645f; font-size: 16px; line-height: 1.68; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 720; }
.trust-row svg { width: 16px; height: 16px; color: var(--teal-deep); stroke-width: 1.8; }
.hero-art { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% 5% 8% 7%; border-radius: 46% 54% 42% 58% / 54% 46% 54% 46%; background: rgba(221,205,181,.62); transform: rotate(-3deg); }
.hero-art::after { content: "THAILAND · TM30 · TM47"; position: absolute; right: 2%; bottom: 5%; padding: 10px 13px; border: 1px solid rgba(16,45,73,.16); background: rgba(255,250,241,.82); color: var(--ink); font-size: 9px; font-weight: 850; letter-spacing: .13em; transform: rotate(2.5deg); box-shadow: var(--shadow-soft); }
.hero-illustration { position: relative; z-index: 2; width: min(720px, 108%); height: auto; max-width: none; filter: drop-shadow(0 24px 28px rgba(42,34,24,.14)); transform: translateX(2%) rotate(.5deg); }
.art-halo, .hero-icon, .orbit, .star { display: none; }

.calculator-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: 18px; align-items: stretch; padding-top: 8px; }
.glass-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.calculator-card, .result-card { min-height: 620px; padding: 30px; }
.card-kicker { color: var(--terracotta); font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.process-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 17px; }
.process-tab { min-height: 92px; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fbf6ed; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.process-tab:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.process-tab.active { background: var(--ink); border-color: var(--ink); color: white; }
.tab-code { align-self: start; min-width: 46px; padding: 6px 7px; border-radius: 8px; background: rgba(16,45,73,.07); color: var(--ink); font-size: 9.5px; font-weight: 900; letter-spacing: .05em; text-align: center; }
.process-tab.active .tab-code { background: rgba(255,255,255,.12); color: #fff; }
.tab-copy { display: grid; gap: 5px; min-width: 0; }
.tab-copy strong { font-size: 12.5px; letter-spacing: -.01em; }
.tab-copy small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.process-tab.active .tab-copy small { color: #bec9d2; }
.tab-arrow { color: var(--terracotta); font-size: 18px; }
.process-tab.active .tab-arrow { color: var(--ochre); }
.form-fields { display: grid; gap: 19px; margin-top: 26px; }
.form-context { padding: 14px 15px; border-left: 3px solid var(--teal); border-radius: 0 11px 11px 0; background: #f4eee3; color: #666960; font-size: 11px; line-height: 1.6; }
.form-context strong { color: var(--ink); }
.field-label { display: grid; gap: 8px; color: var(--ink); font-size: 11px; font-weight: 800; }
.field-label > span { display: block; }
.field-label small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.55; }
.date-input { width: 100%; min-height: 52px; appearance: none; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; color: var(--ink); padding: 0 14px; outline: none; font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease; }
.date-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(109,145,135,.12); }
.mode-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #f3ecdf; }
.mode-switch button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10.5px; font-weight: 800; cursor: pointer; }
.mode-switch button.active { background: #fffaf2; color: var(--ink); box-shadow: 0 3px 12px rgba(43,36,26,.07); }
.privacy-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; padding: 13px 14px; border-radius: 12px; background: rgba(109,145,135,.10); color: #5f6d67; font-size: 10.5px; line-height: 1.55; }
.privacy-note svg { width: 17px; flex: 0 0 17px; color: var(--teal-deep); }
.privacy-note strong { color: var(--ink); }
.form-actions { display: flex; align-items: center; gap: 7px; margin-top: 18px; }
.button-calculate { min-height: 50px; padding-inline: 20px; }
.button-icon { font-size: 17px; }
.form-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #f8e4de; color: #8c3928; font-size: 11px; line-height: 1.45; }

.result-card { position: relative; background: var(--ink); border-color: var(--ink); color: #fff; overflow: hidden; }
.result-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; background: rgba(109,145,135,.22); }
.result-card::after { content: ""; position: absolute; width: 200px; height: 90px; right: -60px; bottom: -35px; border-radius: 60% 40% 0 0; background: rgba(201,95,56,.24); transform: rotate(-7deg); }
.result-card > * { position: relative; z-index: 1; }
.result-placeholder { min-height: 558px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 28px; }
.result-orb { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.05); color: #f4d48d; }
.result-orb svg { width: 24px; }
.result-orb-ring { display: none; }
.mini-label { margin-top: 30px; color: #aebecb; font-size: 9.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.result-placeholder h2 { margin: 12px 0 11px; color: #fffaf0; font-size: clamp(36px,4vw,48px); line-height: 1.02; letter-spacing: -.045em; }
.result-placeholder p { max-width: 440px; margin: 0; color: #bec8cf; font-size: 12px; line-height: 1.65; }
.placeholder-lines { display: grid; gap: 8px; width: min(100%,320px); margin-top: 28px; }
.placeholder-lines span { height: 5px; border-radius: 999px; background: rgba(255,255,255,.10); }
.placeholder-lines span:nth-child(2) { width: 78%; }
.placeholder-lines span:nth-child(3) { width: 55%; }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-type { display: flex; align-items: center; gap: 9px; color: #bec8cf; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.result-type code { padding: 5px 7px; border-radius: 7px; background: rgba(255,255,255,.10); color: #f4d48d; font-size: 9px; }
.result-status { padding: 6px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #d7e0e5; font-size: 9px; font-weight: 850; }
.result-status.ok { color: #bfe8d6; border-color: rgba(126,198,169,.28); }
.result-status.upcoming { color: #f3d98d; border-color: rgba(223,169,54,.32); }
.result-status.action { color: #f3b6a4; border-color: rgba(201,95,56,.34); }
.result-title { margin: 28px 0 7px; color: #a9b7c3; font-size: 10px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.result-date { color: #fffaf0; font-size: clamp(30px,4vw,44px); line-height: 1.05; letter-spacing: -.04em; font-weight: 820; }
.result-subtitle { margin-top: 7px; color: #bdc8d0; font-size: 11px; line-height: 1.5; }
.result-callout { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.055); color: #c5d0d7; font-size: 10.5px; line-height: 1.55; }
.result-callout svg { width: 16px; flex: 0 0 16px; color: #f0cd79; }
.result-callout strong { color: #fff9ee; }
.result-callout.warning { background: rgba(201,95,56,.12); border-color: rgba(201,95,56,.24); }
.result-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.metric { min-height: 80px; padding: 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.035); }
.metric.wide { grid-column: 1 / -1; }
.metric span { display: block; color: #9eafbb; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.metric strong { display: block; margin-top: 7px; color: #fff; font-size: 13px; }
.metric small { display: block; margin-top: 4px; color: #8398a7; font-size: 9px; line-height: 1.35; }
.result-anchor-row { display: flex; align-items: center; gap: 10px; margin: 16px 0 9px; color: #9caebb; font-size: 10px; }
.result-anchor-link { padding: 0; border: 0; background: transparent; color: #f0cd79; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.result-timeline { margin-top: 14px; border-radius: 13px; background: rgba(0,0,0,.11); border: 1px solid rgba(255,255,255,.08); padding: 11px 13px; }
.timeline-row { display: grid; grid-template-columns: 16px 1fr auto; gap: 9px; align-items: center; min-height: 34px; position: relative; }
.timeline-row + .timeline-row::before { content: ""; position: absolute; left: 7px; top: -10px; height: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.timeline-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); justify-self: center; }
.timeline-row.secondary .timeline-dot { background: var(--teal); }
.timeline-label { color: #9fb0bc; font-size: 9.5px; }
.timeline-date { color: #fff; font-size: 9.5px; font-weight: 760; }
.result-actions { display: flex; gap: 8px; margin-top: 15px; }
.result-actions .button { flex: 1; min-height: 42px; font-size: 10.5px; }
.result-card .button-primary { background: #fff4df; border-color: #fff4df; color: var(--ink); box-shadow: none; }
.result-card .button-primary:hover { background: #fffaf0; border-color: #fffaf0; }
.result-card .button-ghost { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.15); color: #e5edf2; }
.result-card .button-ghost:hover { background: rgba(255,255,255,.1); }

.obligation-guide-section { padding-top: 78px; }
.obligation-guide-heading { margin-bottom: 24px; }
.obligation-guide-heading p { max-width: 720px; }
.obligation-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.obligation-guide-card { position: relative; display: flex; flex-direction: column; min-height: 392px; padding: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.76); box-shadow: var(--shadow-soft); transition: border-color .18s ease, box-shadow .18s ease; }
.obligation-guide-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--teal); opacity: .72; }
.obligation-guide-card[data-guide-process="TM30"]::before { background: var(--terracotta); }
.obligation-guide-card.active { transform: none; border-color: var(--line); box-shadow: var(--shadow-soft); }
.obligation-guide-card.active::before { opacity: .72; }
.obligation-guide-topline { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.obligation-code { display: inline-grid; min-width: 52px; height: 30px; place-items: center; border-radius: 8px; background: var(--ink); color: white; font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.obligation-type { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.obligation-guide-card h3 { max-width: 490px; min-height: 76px; margin: 0 0 12px; color: var(--ink-deep); font-size: clamp(24px,2.7vw,34px); line-height: 1.05; letter-spacing: -.045em; }
.obligation-guide-card > p { max-width: 520px; min-height: 84px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.72; }
.obligation-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 27px 0 22px; overflow: hidden; border: 1px solid rgba(16,45,73,.1); border-radius: 13px; background: rgba(16,45,73,.08); }
.obligation-facts > div { display: grid; align-content: start; gap: 5px; min-height: 80px; padding: 14px; background: #fbf6ed; }
.obligation-facts span { color: var(--muted-soft); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.obligation-facts strong { color: var(--ink); font-size: 10px; line-height: 1.45; }
.obligation-guide-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: auto; padding-top: 17px; border-top: 1px solid rgba(16,45,73,.12); color: var(--ink); font-size: 11px; font-weight: 850; text-decoration: none; }
.obligation-guide-link span { color: var(--terracotta); font-size: 16px; transition: transform .16s ease; }
.obligation-guide-link:hover span { transform: translate(2px,-2px); }

.checklist-section, .how-section, .faq-section { padding-top: 112px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; margin-bottom: 27px; }
.section-heading.compact { align-items: flex-start; }
.section-heading h2 { margin: 9px 0 0; color: var(--ink-deep); font-size: clamp(34px,4vw,52px); letter-spacing: -.05em; line-height: 1.03; }
.section-heading p { margin: 11px 0 0; max-width: 650px; color: var(--muted); line-height: 1.65; font-size: 12.5px; }
.checklist-progress { width: 220px; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.progress-count { color: var(--ink); font-size: 11px; font-weight: 850; }
.progress-bar { width: 100%; height: 5px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: #ddd2c1; }
.progress-bar::-webkit-progress-bar { background: #ddd2c1; border-radius: 999px; }
.progress-bar::-webkit-progress-value { background: var(--teal-deep); border-radius: 999px; transition: width .2s ease; }
.progress-bar::-moz-progress-bar { background: var(--teal-deep); border-radius: 999px; }
.checklist-progress small { grid-column: 1 / -1; color: var(--muted-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.checklist-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.checklist-item { min-height: 156px; border-radius: 15px; padding: 16px; border: 1px solid var(--line); background: rgba(255,253,248,.68); transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.checklist-item:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.checklist-item.checked { background: rgba(109,145,135,.11); border-color: rgba(79,117,108,.35); }
.check-row { display: flex; gap: 11px; align-items: flex-start; }
.check-toggle { appearance: none; width: 21px; height: 21px; border-radius: 6px; border: 1px solid var(--line-strong); background: #fffdf8; flex: 0 0 21px; cursor: pointer; display: grid; place-items: center; margin: 0; }
.check-toggle:checked { background: var(--teal-deep); border-color: var(--teal-deep); }
.check-toggle:checked::after { content: "✓"; color: white; font-size: 12px; font-weight: 900; }
.check-content { min-width: 0; cursor: pointer; }
.check-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.check-badge { text-transform: uppercase; letter-spacing: .08em; font-size: 8px; font-weight: 850; padding: 4px 6px; border-radius: 6px; background: rgba(223,169,54,.13); color: #8f691b; }
.check-badge.context { color: #7b4a35; background: rgba(201,95,56,.10); }
.check-content h3 { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.35; letter-spacing: -.01em; }
.check-content p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.checklist-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 13px; align-items: center; }
.source-links::before { display: none; content: none; }
.source-links a { color: var(--ink-soft); font-size: 10px; text-decoration: none; border-bottom: 1px solid rgba(16,45,73,.2); }
.source-links a:hover { color: var(--ink); }

.how-section { margin-top: 112px; padding: 92px 32px; border-radius: 28px; background: #efe3d2; border-top: 1px solid rgba(16,45,73,.07); border-bottom: 1px solid rgba(16,45,73,.07); }
.how-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.how-card { position: relative; min-height: 238px; border-radius: 18px; border: 1px solid rgba(16,45,73,.11); background: rgba(255,250,241,.64); padding: 21px; }
.how-number { position: absolute; top: 18px; right: 19px; color: #998f81; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.how-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(16,45,73,.15); background: #fff9ef; color: var(--teal-deep); margin-bottom: 35px; }
.how-icon svg { width: 19px; }
.how-card h3 { margin: 0 0 9px; color: var(--ink); font-size: 16px; letter-spacing: -.025em; }
.how-card p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.rules-strip { margin-top: 12px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid rgba(16,45,73,.12); background: rgba(255,250,241,.54); border-radius: 15px; overflow: hidden; }
.rules-strip > div { padding: 15px 17px; display: grid; gap: 5px; border-right: 1px solid rgba(16,45,73,.09); }
.rules-strip > div:last-child { border-right: 0; }
.rules-strip span { color: var(--muted-soft); font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
.rules-strip strong { font-size: 11px; color: var(--ink); }



/* Stage 3: crawlable Thailand public-holiday calendar. */
.holidays-section { padding-top: 112px; }
.holidays-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 42px; align-items: end; margin-bottom: 28px; }
.holidays-heading-copy { max-width: 770px; }
.holidays-heading h2 { margin: 9px 0 0; color: var(--ink-deep); font-size: clamp(38px,4.7vw,58px); line-height: 1; letter-spacing: -.055em; }
.holidays-heading p { max-width: 700px; margin: 13px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.68; }
.holiday-year-card { min-width: 300px; display: grid; grid-template-columns: auto 1px minmax(72px,auto) minmax(86px,auto); align-items: center; gap: 18px; padding: 17px 20px; border: 1px solid rgba(16,45,73,.14); border-radius: 18px; background: rgba(255,253,248,.58); box-shadow: var(--shadow-soft); }
.holiday-year-gregorian { color: var(--ink-deep); font-size: 36px; font-weight: 850; letter-spacing: -.055em; }
.holiday-year-divider { width: 1px; height: 44px; background: rgba(16,45,73,.13); }
.holiday-year-card > span:not(.holiday-year-gregorian):not(.holiday-year-divider) { display: grid; gap: 4px; }
.holiday-year-card small { color: var(--muted-soft); font-size: 7.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.holiday-year-card strong { color: var(--ink); font-size: 12px; }
.holiday-calendar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.holiday-month-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.72); box-shadow: 0 13px 34px rgba(44,37,27,.055); }
.holiday-month-header { min-height: 62px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid rgba(16,45,73,.1); background: #f0e5d5; }
.holiday-month-header > span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(16,45,73,.12); border-radius: 9px; background: rgba(255,250,241,.72); color: var(--terracotta); font-size: 9px; font-weight: 900; }
.holiday-month-header h3 { margin: 0; color: var(--ink-deep); font-size: 16px; letter-spacing: -.025em; text-transform: capitalize; }
.holiday-month-header small { display: grid; min-width: 27px; height: 27px; place-items: center; border-radius: 50%; background: rgba(16,45,73,.07); color: var(--muted); font-size: 8.5px; font-weight: 850; }
.holiday-month-rows { padding: 4px 13px 7px; }
.holiday-row { position: relative; display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 11px; align-items: center; min-height: 67px; padding: 9px 2px; border-bottom: 1px solid rgba(16,45,73,.08); transition: opacity .18s ease, background .18s ease; }
.holiday-row:last-child { border-bottom: 0; }
.holiday-row.is-past { opacity: .54; }
.holiday-row.is-next, .holiday-row.is-today { margin-inline: -7px; padding-inline: 9px; border-radius: 10px; background: rgba(109,145,135,.11); opacity: 1; }
.holiday-row.is-today { background: rgba(223,169,54,.13); }
.holiday-date-block { display: grid; align-content: center; justify-items: center; width: 42px; height: 46px; border: 1px solid rgba(16,45,73,.11); border-radius: 10px; background: #fffaf1; text-decoration: none; }
.holiday-date-block strong { color: var(--ink); font-size: 17px; line-height: 1; letter-spacing: -.03em; }
.holiday-date-block span { margin-top: 3px; color: var(--muted-soft); font-size: 7.5px; font-weight: 850; text-transform: uppercase; }
.holiday-row-copy { min-width: 0; }
.holiday-row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink); font-size: 10.8px; font-weight: 760; line-height: 1.36; }
.holiday-next-badge { flex: 0 0 auto; padding: 3px 5px; border-radius: 999px; background: var(--teal-deep); color: white; font-size: 6.5px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.holiday-row.is-today .holiday-next-badge { background: #9a6b13; }
.holiday-row-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.holiday-kind { display: inline-flex; width: fit-content; padding: 3px 5px; border-radius: 5px; background: rgba(16,45,73,.06); color: var(--muted); font-size: 6.8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.holiday-kind-substitution { background: rgba(109,145,135,.12); color: var(--teal-deep); }
.holiday-kind-special { background: rgba(201,95,56,.1); color: #985038; }
.holiday-kind-labour { background: rgba(223,169,54,.14); color: #88651d; }
.holiday-kind-weekend { background: transparent; border: 1px solid rgba(16,45,73,.12); color: var(--muted-soft); }
.holiday-local-notices { margin-top: 14px; }
.holiday-local-notice { display: grid; grid-template-columns: minmax(160px,.34fr) minmax(0,1fr) 28px; gap: 22px; align-items: center; padding: 22px 24px; border: 1px solid rgba(201,95,56,.22); border-radius: 18px; background: #f3e4d6; }
.holiday-local-notice-date { display: grid; gap: 7px; align-content: center; min-height: 74px; padding-right: 20px; border-right: 1px solid rgba(16,45,73,.12); }
.holiday-local-notice-date span { color: var(--terracotta); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.holiday-local-notice-date strong { color: var(--ink-deep); font-size: 15px; line-height: 1.25; }
.holiday-local-notice h3 { margin: 5px 0 5px; color: var(--ink); font-size: 17px; letter-spacing: -.025em; }
.holiday-local-notice p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.62; }
.holiday-local-notice > a { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(16,45,73,.13); border-radius: 50%; color: var(--terracotta); text-decoration: none; font-size: 13px; }
.holiday-section-footer { display: flex; justify-content: space-between; gap: 26px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(16,45,73,.12); }
.holiday-section-footer > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.holiday-source-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 13px; max-width: 500px; }
.holiday-source-links > span { width: 100%; color: var(--muted-soft); font-size: 7.5px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; text-align: right; }
.holiday-source-links a { color: var(--ink-soft); font-size: 9px; line-height: 1.4; text-decoration: none; border-bottom: 1px solid rgba(16,45,73,.17); }
.holiday-source-links a span { color: var(--terracotta); }
.holiday-source-links a:hover { color: var(--ink); }

.thaiva-cta { margin-top: 112px; border-radius: 28px; min-height: 430px; overflow: hidden; display: grid; grid-template-columns: .88fr 1.12fr; background: var(--ink); box-shadow: 0 28px 68px rgba(16,45,73,.16); }
.cta-visual { position: relative; min-height: 430px; overflow: hidden; background: #e9ddcc; }
.cta-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.92) contrast(.96); }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,45,73,.02), rgba(16,45,73,.16) 72%, rgba(16,45,73,.86)); }
.cta-badge { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 10px; background: rgba(255,250,241,.9); border: 1px solid rgba(16,45,73,.12); text-transform: uppercase; letter-spacing: .09em; font-size: 8px; font-weight: 850; color: var(--ink); }
.cta-copy { padding: 44px 42px; align-self: center; }
.powered-line { display: flex; align-items: center; gap: 9px; color: #aebdc9; text-transform: uppercase; letter-spacing: .1em; font-size: 8.5px; font-weight: 850; }
.powered-line > span:first-child { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: #f4d48d; font-size: 9px; letter-spacing: 0; }
.cta-copy h2 { margin: 17px 0 14px; color: #fff9ee; font-size: clamp(32px,4vw,48px); line-height: 1.02; letter-spacing: -.052em; }
.cta-copy h2 span { color: #b8c8d2; }
.cta-copy p { margin: 0; color: #b2c0ca; line-height: 1.68; font-size: 12.5px; max-width: 570px; }
.cta-features { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.cta-features span { border: 1px solid rgba(255,255,255,.12); padding: 6px 8px; border-radius: 8px; color: #cad4db; font-size: 10px; font-weight: 720; }
.cta-actions { display: flex; gap: 8px; margin-top: 23px; }
.cta-actions .button { min-height: 46px; font-size: 11px; }
.thaiva-cta .button-primary { background: #fff4df; border-color: #fff4df; color: var(--ink); box-shadow: none; }
.thaiva-cta .button-primary:hover { background: #fffaf0; }
.thaiva-cta .button-ghost { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: #e4ebef; }

.faq-section { padding-bottom: 104px; }
.faq-list { border-top: 1px solid rgba(16,45,73,.15); }
.faq-list details { border-bottom: 1px solid rgba(16,45,73,.13); }
.faq-list summary { list-style: none; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 780; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary span { color: var(--terracotta); font-size: 21px; font-weight: 350; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: -4px 0 22px; max-width: 820px; color: var(--muted); line-height: 1.7; font-size: 11.5px; }
.faq-list code { color: var(--ink); background: #eadfce; border-radius: 5px; padding: 2px 5px; }

.site-footer { border-top: 1px solid rgba(16,45,73,.11); background: #eee3d3; position: relative; z-index: 1; }
.footer-inner { min-height: 170px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding-block: 30px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand > div { display: grid; gap: 4px; }
.footer-brand strong { font-size: 13px; color: var(--ink); }
.footer-brand span { color: var(--muted); font-size: 10px; }
.footer-brand a { color: var(--ink); text-decoration: none; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--ink-soft); font-size: 10px; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { grid-column: 1 / -1; margin: -15px 0 0; color: #7f7b72; font-size: 9px; line-height: 1.5; }
.footer-legal a { color: inherit; }
.toast { position: fixed; z-index: 500; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 13px; border-radius: 9px; background: var(--ink); color: white; font-size: 10px; box-shadow: var(--shadow-soft); }

/* Privacy consent / Microsoft Clarity */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body.privacy-dialog-open { overflow: hidden; }
.cookie-banner { position: fixed; z-index: 300; right: 20px; bottom: 20px; left: 20px; }
.cookie-banner__inner { display: flex; max-width: 1120px; align-items: center; justify-content: space-between; gap: 24px; margin-inline: auto; padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(255,250,241,.97); box-shadow: 0 24px 60px rgba(44,37,27,.18); backdrop-filter: blur(18px); }
.cookie-banner__content { max-width: 650px; }
.cookie-banner__title { margin: 0 0 5px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.cookie-banner__text { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.cookie-banner__link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.cookie-banner .button { min-height: 39px; padding: 9px 12px; font-size: .7rem; }
.cookie-settings-button { position: fixed; z-index: 250; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,250,241,.94); color: var(--ink-soft); cursor: pointer; font-size: .67rem; backdrop-filter: blur(14px); box-shadow: 0 9px 24px rgba(44,37,27,.13); }
.cookie-settings-button:hover { color: var(--ink); }
.cookie-dialog-backdrop { position: fixed; z-index: 400; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(10,33,56,.62); backdrop-filter: blur(8px); }
.cookie-dialog { position: relative; width: min(700px, 100%); max-height: min(760px, calc(100svh - 40px)); overflow: auto; padding: 30px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--paper-light); box-shadow: 0 34px 100px rgba(16,45,73,.24); }
.cookie-dialog__close { position: absolute; top: 14px; right: 14px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); cursor: pointer; font-size: 1.2rem; }
.cookie-dialog__eyebrow { margin: 0 0 8px; color: var(--terracotta); font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.cookie-dialog__header h2 { margin: 0 0 10px; color: var(--ink); font-size: 2rem; letter-spacing: -.04em; }
.cookie-dialog__header p:last-child { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.cookie-category-list { display: grid; gap: 10px; margin-top: 24px; }
.cookie-category { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; }
.cookie-category__heading { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.cookie-category h3 { margin: 0; color: var(--ink); font-size: .9rem; }
.cookie-category p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.cookie-category__status { padding: 4px 7px; border-radius: 999px; background: rgba(60,121,104,.1); color: var(--green); font-size: .57rem; font-weight: 800; }
.cookie-switch { position: relative; display: block; width: 46px; height: 26px; flex: 0 0 auto; }
.cookie-switch input { position: absolute; opacity: 0; }
.cookie-switch > span[aria-hidden="true"] { position: absolute; inset: 0; border-radius: 999px; background: #c9c1b6; cursor: pointer; transition: background .2s ease; }
.cookie-switch > span[aria-hidden="true"]::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cookie-switch input:checked + span { background: var(--teal-deep); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
.cookie-switch input:disabled + span { cursor: default; opacity: .9; }
.cookie-dialog__links { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.cookie-dialog__links a { color: var(--ink); font-size: .74rem; text-decoration: underline; text-underline-offset: 2px; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-dialog__actions .button { min-height: 42px; font-size: .73rem; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0,1fr) minmax(390px,.9fr); gap: 24px; }
  .hero h1 { font-size: clamp(52px,7vw,72px); }
  .hero-art { min-height: 440px; }
  .calculator-section { grid-template-columns: 1fr; }
  .calculator-card, .result-card { min-height: 0; }
  .result-placeholder { min-height: 430px; }
  .checklist-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .holiday-calendar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .thaiva-cta { grid-template-columns: .82fr 1.18fr; }
  .cta-copy { padding: 36px 30px; }
}

@media (max-width: 980px) {
  .header-tools { display: none; }
  .menu-button { display: block; }
  .mobile-nav .language-switcher { display: inline-flex; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 34px; padding-bottom: 38px; }
  .hero-copy { max-width: 720px; }
  .hero-art { min-height: 400px; }
  .hero-illustration { width: min(760px, 100%); transform: none; }
  .result-anchor-row { flex-wrap: wrap; }
  .holidays-heading { grid-template-columns: 1fr; align-items: start; }
  .holiday-year-card { width: fit-content; min-width: 0; }
}


@media (max-width: 760px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .header-inner { min-height: 68px; }
  .brand img { width: 38px; height: 38px; }
  .hero { padding-top: 28px; padding-bottom: 30px; }
  .hero h1 { font-size: clamp(46px,13vw,62px); }
  .hero-lede { font-size: 14px; }
  .hero-art { min-height: 320px; }
  .hero-art::after { right: 0; bottom: 2%; font-size: 8px; }
  .calculator-card, .result-card { padding: 19px; border-radius: 22px; }
  .process-tabs { grid-template-columns: 1fr; }
  .process-tab { min-height: 82px; }
  .form-actions { align-items: stretch; }
  .button-calculate { min-height: 54px; }
  .result-placeholder { min-height: 390px; padding: 20px 14px; }
  .result-metrics { grid-template-columns: 1fr; }
  .metric.wide { grid-column: auto; }
  .result-actions { flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .checklist-progress { width: 100%; max-width: 260px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .checklist-item { min-height: 0; }
  .checklist-footer { align-items: flex-start; flex-direction: column; }
  .how-section { margin-top: 80px; padding: 72px 20px; border-radius: 22px; }
  .holidays-section { padding-top: 80px; }
  .holiday-calendar { grid-template-columns: 1fr; }
  .holiday-local-notice { grid-template-columns: 1fr 28px; gap: 14px; padding: 19px; }
  .holiday-local-notice-date { grid-column: 1 / -1; min-height: 0; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(16,45,73,.12); }
  .holiday-section-footer { flex-direction: column; }
  .holiday-source-links { justify-content: flex-start; }
  .holiday-source-links > span { text-align: left; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: 205px; }
  .how-icon { margin-bottom: 26px; }
  .rules-strip { grid-template-columns: repeat(2,1fr); }
  .rules-strip > div:nth-child(2) { border-right: 0; }
  .rules-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(16,45,73,.09); }
  .thaiva-cta { grid-template-columns: 1fr; margin-top: 80px; }
  .cta-visual { min-height: 260px; }
  .cta-shade { background: linear-gradient(180deg, rgba(16,45,73,.02), rgba(16,45,73,.82)); }
  .cta-copy { padding: 30px 23px 32px; }
  .cta-copy h2 { font-size: 36px; }
  .cta-actions { flex-direction: column; }
  .obligation-guide-section { padding-top: 64px; }
  .obligation-guide-grid { grid-template-columns: 1fr; }
  .obligation-guide-card { min-height: 0; padding: 22px; }
  .obligation-guide-card h3 { min-height: 0; font-size: 29px; }
  .obligation-guide-card > p { min-height: 0; }
  .faq-section, .checklist-section { padding-top: 80px; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; min-height: 200px; }
  .footer-links { justify-content: flex-start; }
  .footer-legal { grid-column: auto; margin: 0; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; }
  .cookie-banner__inner { align-items: stretch; flex-direction: column; gap: 15px; padding: 16px; }
  .cookie-banner__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-banner .button { width: 100%; }
  .cookie-dialog { padding: 26px 18px 20px; }
  .cookie-category { grid-template-columns: minmax(0,1fr) auto; padding: 15px; }
  .cookie-dialog__actions { display: grid; }
  .cookie-dialog__actions .button { width: 100%; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 46px; }
  .eyebrow { font-size: 8px; }
  .trust-row { display: grid; gap: 10px; }
  .holiday-year-card { width: 100%; grid-template-columns: auto 1px 1fr; gap: 12px; }
  .holiday-year-card > span:last-child { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(16,45,73,.1); }
  .holiday-row-name { font-size: 10.5px; }
  .hero-art { min-height: 255px; }
  .hero-art::before { inset: 4% 1%; }
  .hero-art::after { display: none; }
  .obligation-facts { grid-template-columns: 1fr; }
  .mode-switch { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .button-text { min-height: 38px; }
  .timeline-row { grid-template-columns: 16px 1fr; }
  .timeline-date { grid-column: 2; margin-top: -8px; }
  .rules-strip { grid-template-columns: 1fr; }
  .rules-strip > div { border-right: 0; border-bottom: 1px solid rgba(16,45,73,.09); }
  .rules-strip > div:last-child { border-bottom: 0; }
}

/* Stage 4.2 — final visual alignment and release polish. */
@media (min-width: 761px) {
  .obligation-guide-grid { align-items: stretch; }
  .obligation-guide-card { height: 100%; }
  .obligation-guide-link { min-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Stage 1 content hardening: THaiva references stay visibly linked without breaking the paper palette. */
.hero-lede a,
.powered-line a,
.cta-copy h2 a,
.faq-list p a {
  color: inherit;
  text-decoration-color: rgba(16,45,73,.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hero-lede a:hover,
.powered-line a:hover,
.cta-copy h2 a:hover,
.faq-list p a:hover {
  text-decoration-color: currentColor;
}


/* Stage 4.1 — editorial UI/UX hardening. */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid rgba(201,95,56,.34);
  outline-offset: 3px;
}

.header-nav > a:not(.button) { position: relative; }
.header-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .16s ease, transform .16s ease;
}
.header-nav > a:not(.button).is-current::after { opacity: .55; transform: scaleX(1); }
.mobile-nav a.is-current { color: var(--terracotta); }
#tm30-tm47-guides { scroll-margin-top: 96px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 27px;
}
.hero-calculate-link { min-height: 50px; padding-inline: 20px; }
.hero-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  border-bottom: 1px solid rgba(16,45,73,.22);
}
.hero-guide-link:hover { color: var(--ink-deep); border-bottom-color: currentColor; }
.trust-row { margin-top: 23px; }

/* Let the paper-collage asset do the visual work instead of SaaS-style floating decorations. */
.hero-art::before {
  inset: 7% 4% 6% 7%;
  border: 1px solid rgba(16,45,73,.08);
  border-radius: 32px 22px 34px 24px;
  background: rgba(238,226,209,.66);
  box-shadow: inset 0 0 0 8px rgba(255,250,241,.20);
  transform: rotate(-1.4deg);
}
.hero-art::after { display: none; }
.hero-illustration { transform: none; filter: drop-shadow(0 22px 26px rgba(42,34,24,.13)); }

/* The result reads as a dark document panel, not a decorative dashboard card. */
.result-card::before {
  inset: 0;
  width: auto;
  height: auto;
  right: auto;
  top: auto;
  border-radius: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 37px, rgba(255,255,255,.026) 38px, rgba(255,255,255,.026) 39px);
  opacity: 1;
  pointer-events: none;
}
.result-card::after { display: none; }

.obligation-guide-heading,
.checklist-section > .section-heading,
.faq-section > .section-heading {
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(16,45,73,.12);
}
.obligation-guide-card.active { transform: none; border-color: var(--line); box-shadow: var(--shadow-soft); }
.checklist-item:hover { transform: none; background: rgba(255,253,248,.9); }
.checklist-item.checked:hover { background: rgba(109,145,135,.14); }
.how-card { box-shadow: none; }
.holiday-month-card { border-radius: 14px; box-shadow: 0 9px 24px rgba(44,37,27,.045); }
.holidays-heading { padding-bottom: 24px; border-bottom: 1px solid rgba(16,45,73,.12); }
.thaiva-cta { border-radius: 22px; }

.checklist-source-block { display: grid; gap: 7px; }
.source-label {
  color: var(--muted-soft);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.source-links::before { display: none; content: none; }

/* Thai text needs different tracking than Latin display typography. */
html[lang="th"] .hero h1,
html[lang="th"] .section-heading h2,
html[lang="th"] .holidays-heading h2,
html[lang="th"] .obligation-guide-card h3,
html[lang="th"] .cta-copy h2,
html[lang="th"] .cookie-dialog__header h2 {
  letter-spacing: -.018em;
  line-height: 1.14;
}
html[lang="th"] .eyebrow,
html[lang="th"] .card-kicker,
html[lang="th"] .obligation-type,
html[lang="th"] .source-label,
html[lang="th"] .holiday-source-links > span {
  letter-spacing: .045em;
}

@media (max-width: 980px) {
  .hero-actions { margin-top: 23px; }
  .hero-art::before { inset: 6% 6% 4%; }
}

@media (max-width: 760px) {
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-calculate-link { width: 100%; }
  .hero-guide-link { width: fit-content; }
  .obligation-guide-heading,
  .checklist-section > .section-heading,
  .faq-section > .section-heading { padding-bottom: 16px; }
  .holidays-heading { padding-bottom: 19px; }
}

@media (max-width: 430px) {
  .hero-guide-link { font-size: 11.5px; }
  .hero-art::before { inset: 5% 2% 4%; border-radius: 22px 16px 24px 18px; }
}

/* Standalone 404 keeps broken URLs useful without becoming indexable content. */
.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  max-width: 760px;
  padding-block: 64px;
}
.not-found .brand { margin-bottom: 34px; }
.not-found h1 { margin: 0; color: var(--ink-deep); font-size: clamp(44px,7vw,76px); line-height: .98; letter-spacing: -.055em; }
.not-found p { max-width: 560px; margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.7; }
