:root {
  --ink: #1a1a18;
  --paper: #f2efe7;
  --stone: #e8e4d9;
  --line: #b4b0a5;
  --accent: #a9431d;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Noto Sans Thai", "Sukhumvit Set", Thonburi, Tahoma, sans-serif; background: var(--paper); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 2px solid #dc8356; outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 12px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-inline: 5.6vw; background: var(--ink); color: var(--paper); }
.header { min-height: 88px; }
.header img { display: block; width: 61px; height: auto; }
.header nav, .jump { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.header a, .footer a, .jump a, .back { display: inline-flex; align-items: center; min-height: 44px; }
.header nav a, .footer { font-size: 12px; font-weight: 700; }
.header nav a { text-decoration: none; }
a[aria-current] { border-bottom: 2px solid #dc8356; }
.hero { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); background: var(--ink); color: var(--paper); }
.hero-copy, .detail-head { padding: clamp(36px, 7vw, 100px) 5.6vw; }
.hero-copy { align-content: center; }
.hero-photo { width: 100%; height: clamp(400px, 45vw, 680px); object-fit: cover; object-position: center 47%; }
h1 { font-size: clamp(58px, 9vw, 135px); line-height: .9; letter-spacing: -.075em; margin: 0; font-weight: 900; }
.hero p, .detail-head > p:last-child { line-height: 1.65; font-size: 17px; }
.jump a, .back, .footer a { text-underline-offset: .25em; }
.jump a, .back { font-size: 14px; font-weight: 700; }
.section { padding: clamp(30px, 5vw, 66px) 5.6vw; }
h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: clamp(27px, 4.5vw, 55px); letter-spacing: -.04em; }
.event { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; padding-block: 25px; margin-top: 18px; border-block: 1px solid var(--line); }
.meta { font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.button { display: inline-flex; gap: 16px; align-items: center; min-height: 48px; padding: 10px 16px; background: var(--accent); color: white; text-decoration: none; font-size: 14px; font-weight: 700; }
.button:hover { background: #8c3617; }
.archive { background: var(--stone); }
.archive p, .signup p { margin: 12px 0 0; }
.detail-head { background: var(--ink); color: var(--paper); }
.detail-head .meta { margin: 22px 0 12px; }
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
.facts { margin-bottom: 0; }
.facts div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-block: 13px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; text-align: end; }
.signup { align-self: start; background: var(--stone); padding: 24px; }
.footer { min-height: 96px; flex-wrap: wrap; }
@media (max-width: 660px) {
  .header, .footer, .section, .hero-copy, .detail-head { padding-inline: 18px; }
  .header { min-height: 70px; }
  .header img { width: 48px; }
  .header nav { gap: 8px 14px; }
  .header nav a { font-size: 11px; }
  .hero { display: flex; flex-direction: column; }
  .hero-photo { height: clamp(220px, 65vw, 380px); }
  .jump { gap: 6px 14px; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
}

.map { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .25em; }
.registration { background: var(--stone); }
.registration-status { margin: 12px 0 24px; }
.registration-form { max-width: 760px; }
.registration-form fieldset { min-width: 0; margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.registration-form legend { padding: 0 6px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.registration-form label { display: grid; gap: 6px; line-height: 1.55; }
.registration-form input:not([type="checkbox"]), .registration-form select, .registration-form textarea { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 0; font: inherit; color: inherit; background: white; }
.registration-form .trail-experience { margin-top: 14px; }
.registration-form .check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.registration-form .check input { flex: 0 0 auto; margin-top: 5px; }
.registration-form .button:disabled { border: 0; background: #555149; opacity: 1; }
@media (max-width: 660px) {
  .field-grid { grid-template-columns: 1fr; }
}

/* MOVE KIDS registration — mobile-first, scoped to this form. */
.registration [hidden] { display: none !important; }
.registration { padding-block: clamp(32px, 6vw, 72px); }
.registration-shell { width: 100%; max-width: 680px; margin: 0 auto; }
.registration-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.registration-summary { margin: 8px 0 20px; font-size: 15px; line-height: 1.6; color: #555149; }
.registration-status { display: block; background: var(--paper); border-left: 4px solid var(--accent); padding: 12px 16px; margin: 0 0 18px; line-height: 1.55; font-weight: 700; }
.registration-status.is-open { color: #23553b; border-color: #42664c; }
.registration-form { max-width: none; }
.form-intro, .form-hint, .submit-note { color: #555149; font-size: 14px; line-height: 1.65; }
.form-intro { margin: 0 0 22px; }
.registration-form fieldset { background: #fffefa; border: 1px solid #b7b2a7; padding: 16px; margin: 0 0 22px; border-radius: 4px; }
.registration-form legend { font-size: 17px; line-height: 1.4; padding: 0 6px; }
.form-number { font-size: 12px; font-weight: 800; color: #8b3c20; margin-right: 5px; }
.registration-form .field-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 12px; }
.registration-form .field-wide { grid-column: 1 / -1; }
.registration-form label, .field-title { font-size: 15px; font-weight: 700; line-height: 1.55; }
.registration-form small { font-size: 13px; font-weight: 400; color: #555149; }
.registration-form input:not([type="checkbox"]):not([type="radio"]) { min-height: 52px; font-size: 16px; font-weight: 400; padding: 12px; border: 1px solid #918e85; border-radius: 3px; background: white; }
.registration-form input:focus-visible, .registration-form button:focus-visible, .privacy-note summary:focus-visible { outline: 2px solid #a9431d; outline-offset: 3px; }
.registration-form .choice { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 0; padding: 12px; min-height: 48px; font-weight: 400; border: 1px solid #c0bcb1; border-radius: 3px; cursor: pointer; }
.registration-form .choice:has(input:checked) { border-color: #8b3c20; background: #f8f0e7; }
.registration-form .choice input { width: 21px; height: 21px; min-height: 0; flex: 0 0 auto; margin: 2px 0 0; accent-color: #a9431d; }
.field-title { margin: 18px 0 8px; }
.form-hint { margin: 0 0 12px; }
.registration-form .choice + .form-hint { margin: 10px 0 0; }
.optional { font-size: 12px; color: #555149; font-weight: 400; white-space: nowrap; }
.privacy-note { margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: #48453e; }
.privacy-note summary { min-height: 44px; display: list-item; padding-block: 10px; cursor: pointer; font-weight: 700; }
.privacy-note p { margin: 0 0 12px; }
.registration-submit { width: 100%; justify-content: center; min-height: 54px; border: 0; border-radius: 3px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.submit-note { text-align: center; margin: 10px 0 0; }
.form-feedback { padding: 12px; border-left: 4px solid #a9431d; background: #fffefa; color: #7f3016; line-height: 1.6; margin: 0 0 14px; }
.registration-message { background: #fffefa; border: 1px solid #b7b2a7; border-radius: 4px; padding: 20px; line-height: 1.65; }
.registration-message p { margin: 8px 0 16px; }
.registration-message a { display: inline-flex; align-items: center; min-height: 44px; }
.success-mark { display: grid; place-items: center; width: 44px; height: 44px; background: #e5efe4; color: #23553b; border-radius: 50%; font-size: 25px; font-weight: 800; margin-bottom: 16px; }
.registration-message h3 { font-size: clamp(24px,6vw,34px); line-height: 1.3; letter-spacing: 0; }
.success-facts { margin: 12px 0 20px; }
.success-facts div { border-top: 1px solid #d1cdc3; padding: 10px 0; }
.success-facts dt { font-size: 13px; font-weight: 700; color: #555149; }
.success-facts dd { margin: 1px 0 0; }
.success .button { justify-content: center; width: 100%; min-height: 50px; }
.success-back { margin-top: 10px; font-size: 14px; }
@media(max-width: 400px) {
  .registration { padding-inline: 14px; }
  .registration-form fieldset { padding: 12px; }
  .registration-form legend { font-size: 16px; }
  .registration-form .field-grid { gap: 12px 10px; }
  .registration-form .choice { padding: 10px; }
}
.registration-form .field-grid label { min-width: 0; }
.registration-form input[type="radio"], .registration-form input[type="checkbox"] { padding: 0; }

/* shared menu: readable on phones */
@media (max-width: 660px) { .header nav a { font-size: 12px; } .header nav { gap: 4px 14px; } }

/* past events list */
.archive-sub { margin: 28px 0 0; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.event.past { margin-top: 0; border-top: 0; }
.event.past h3 { font-size: clamp(22px, 3vw, 34px); }
.event.past p:last-child { margin: 6px 0 0; color: #4d4a42; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--paper); }
.archive-list { list-style: none; padding: 0; margin: 10px 0 26px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.archive-list a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; text-underline-offset: .25em; }
