:root {
  --green-900: #2e7d32;
  --green-800: #2e7d32;
  --green-700: #4caf50;
  --green-100: #e7f4ea;
  --gold-700: #8a5200;
  --gold-500: #f5a623;
  --gold-100: #fff2d7;
  --cream: #fafaf5;
  --white: #ffffff;
  --ink: #172019;
  --muted: #4c6453;
  --line: #cfe2d2;
  --danger-soft: #fff2ef;
  --shadow: 0 10px 28px rgba(20, 83, 45, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, #fff0cb 0, transparent 26rem),
    linear-gradient(145deg, #e8f5e9, var(--cream) 52%, #fff4df);
  font-family: "Noto Sans Thai", Thonburi, Tahoma, sans-serif;
  line-height: 1.6;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-900);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.app,
.site-footer {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px 10px;
}

.logo {
  width: min(154px, 42vw);
  height: auto;
}

.local-badge {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.app {
  min-height: calc(100vh - 155px);
  padding: 22px 0 48px;
}

.screen {
  animation: enter 180ms ease-out;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  color: var(--green-900);
  background: var(--green-100);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.pill-gold {
  color: var(--gold-700);
  background: var(--gold-100);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green-800);
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 16px 0 12px;
  color: var(--green-900);
  font-size: clamp(1.75rem, 6vw, 2.55rem);
  line-height: 1.25;
}

h2 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 1.2rem;
  line-height: 1.35;
}

.lead {
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.lead.compact {
  margin-bottom: 18px;
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.notice,
.panel,
.talk-card,
.optional-contact {
  margin: 18px 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.notice strong {
  color: var(--green-900);
  font-size: 1.08rem;
}

.notice ul {
  margin: 8px 0 12px;
  padding-left: 24px;
}

.notice p,
.panel p,
.talk-card p,
.completion p,
.optional-contact p {
  margin: 0;
}

.panel-accent {
  border-left: 6px solid var(--gold-500);
}

.talk-card {
  color: var(--white);
  background: var(--green-900);
  border-color: var(--green-900);
}

.talk-card h2 {
  color: var(--white);
}

.talk-card p {
  font-size: 1.1rem;
  font-weight: 700;
}

.check-list,
.plan-list {
  margin: 0;
  padding-left: 24px;
}

.check-list li,
.plan-list li {
  margin: 9px 0;
}

.plan-list li::marker {
  color: var(--green-800);
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.two-column .panel {
  margin: 0;
}

.disclaimer {
  margin: 18px 0;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--green-700);
  border-radius: 14px;
  font-size: 0.92rem;
}

.button,
.button-link,
.answer-button {
  min-height: 50px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  border: 2px solid transparent;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
  box-shadow: 0 5px 0 var(--green-900);
}

.button-primary:hover {
  background: var(--green-900);
}

.button-primary:active {
  box-shadow: 0 2px 0 var(--green-900);
  transform: translateY(3px);
}

.button-secondary {
  color: var(--green-900);
  background: var(--white);
  border-color: var(--green-800);
}

.button-secondary:hover {
  background: var(--green-100);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  color: var(--green-900);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.action-stack {
  display: grid;
  gap: 10px;
}

.progress-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--green-900);
  font-weight: 800;
}

progress {
  width: 100%;
  height: 12px;
  accent-color: var(--green-800);
}

progress::-webkit-progress-bar {
  background: #dce9de;
  border-radius: 999px;
}

progress::-webkit-progress-value {
  background: var(--green-800);
  border-radius: 999px;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer-button {
  width: 100%;
  padding: 15px 17px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 #bad3bf;
  text-align: left;
  line-height: 1.5;
}

.answer-button:hover {
  border-color: var(--green-800);
  transform: translateY(-1px);
}

.answer-button[aria-pressed="true"] {
  background: var(--green-100);
  border-color: var(--green-800);
}

.answer-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.optional-contact {
  background: var(--green-100);
}

.status-note {
  min-height: 28px;
  margin-top: 12px !important;
  color: var(--green-900);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 0 30px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer a {
  color: var(--green-900);
  font-weight: 800;
}

.visually-hidden {
  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;
}

:focus-visible {
  outline: 4px solid var(--gold-500);
  outline-offset: 4px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .site-header,
  .app,
  .site-footer {
    width: min(100% - 24px, 720px);
  }

  .site-header {
    align-items: flex-start;
  }

  .local-badge {
    max-width: 155px;
    font-size: 0.72rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
