:root {
  color-scheme: light;
  --ink: #17343a;
  --muted: #50676b;
  --ocean: #0e5660;
  --ocean-deep: #103f48;
  --sea: #dcefed;
  --sea-pale: #eff7f4;
  --coral: #b94a37;
  --mango: #f4bb52;
  --sand: #f8f4e9;
  --paper: #fffefa;
  --line: #d6e0dc;
  --sans: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--ocean); text-underline-offset: .18em; }
a:hover { color: var(--coral); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.content-width, .header-inner, .footer-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 10px 14px; color: white; background: var(--ocean-deep); }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ocean-deep); text-decoration: none; font-size: 11px; line-height: 1.05; letter-spacing: .08em; text-transform: uppercase; }
.brand strong { font-size: 14px; letter-spacing: .05em; }
.brand-mark { color: var(--coral); font-size: 30px; line-height: 1; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.8vw, 25px); }
.primary-nav a { padding-block: 7px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ocean); border-color: var(--mango); }
.menu-toggle { display: none; padding: 8px 12px; color: var(--ocean-deep); background: white; border: 1px solid #9cb7b6; border-radius: 6px; font-size: 13px; font-weight: 700; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ocean-deep); line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.eyebrow, .section-kicker { margin-bottom: 12px; color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero-lede { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.2rem); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 17px; border: 2px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 800; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-light { color: #102f35; background: var(--mango); }
.button-light:hover { color: #102f35; background: #ffd47c; }
.button-dark { color: white; background: var(--ocean); }
.button-dark:hover { color: white; background: var(--ocean-deep); }
.button-outline { color: var(--ocean-deep); background: transparent; border-color: #9bb7b4; }
.button-outline:hover { color: var(--ocean-deep); background: white; }
.text-link { color: var(--ocean); font-size: 14px; font-weight: 800; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--ocean); font-size: 13px; font-weight: 850; text-decoration: none; }
.arrow-link:hover { color: var(--coral); }

.hero-home { width: min(1240px, calc(100% - 48px)); margin: 28px auto 0; padding: clamp(22px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .94fr); align-items: center; gap: clamp(28px, 5vw, 64px); background: var(--sea-pale); border: 1px solid #dbe9e5; border-radius: 18px; }
.hero-copy { max-width: 630px; }
.hero-home h1 { max-width: 620px; margin-bottom: 19px; }
.hero-photo, .choice-media, .page-hero-photo { min-width: 0; margin: 0; overflow: hidden; background: #e2ebe7; border-radius: 12px; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption, .choice-media figcaption, .page-hero-photo figcaption { padding: 9px 12px; color: #52666a; background: white; font-size: 10px; line-height: 1.5; }
.hero-photo figcaption a, .choice-media figcaption a, .page-hero-photo figcaption a { color: var(--ocean); }
.intro-row { display: grid; grid-template-columns: .42fr 1.3fr; gap: 38px; padding-block: 76px 46px; }
.intro-row h2 { margin-bottom: 12px; }
.intro-row p:not(.section-kicker) { max-width: 760px; margin-bottom: 0; color: var(--muted); }
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-bottom: 78px; }
.path-card { min-height: 250px; padding: 22px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-top: 4px solid var(--ocean); border-radius: 9px; }
.path-card:nth-child(2) { border-top-color: var(--coral); }
.path-card:nth-child(3) { border-top-color: #5d8a64; }
.path-card:nth-child(4) { border-top-color: #d4922c; }
.card-index { margin-bottom: 17px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.path-card h3 { margin-bottom: 10px; }
.path-card p { margin-bottom: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.season-band { padding-block: 54px; background: var(--sea); }
.season-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.season-inner > div { max-width: 770px; }
.season-inner h2 { margin-bottom: 12px; }
.season-inner p:last-child { margin-bottom: 0; color: var(--muted); }
.editorial-note { margin-top: 55px; margin-bottom: 0; padding: 27px 30px; border-left: 4px solid var(--coral); background: var(--sand); }
.editorial-note h2 { max-width: 820px; margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.editorial-note p:last-child { max-width: 820px; margin-bottom: 0; color: var(--muted); }
.visa-note { display: grid; grid-template-columns: .7fr 1.3fr; gap: 34px; padding-block: 44px 66px; }
.visa-note h2 { margin-bottom: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.visa-note > p { margin: 0; color: var(--muted); }

.page-hero { padding-block: 56px; color: var(--ink); background: var(--sea-pale); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; margin-bottom: 17px; font-size: clamp(2.35rem, 4.6vw, 4rem); }
.page-hero .hero-lede { max-width: 750px; }
.page-hero-split { background: #e8f3ef; }
.page-hero-budget { background: #fbf2df; }
.page-hero-rental { background: #eff5e9; }
.page-hero-weather { background: #e8f2f5; }
.page-hero-side, .weather-stamp { display: none; }
.page-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); align-items: center; gap: 42px; }
.page-hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.source-stamp { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.page-section { padding-block: 65px; }
.section-heading { max-width: 820px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 13px; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choice-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.choice-card-dark { background: #edf6f4; }
.choice-media { margin-bottom: 20px; }
.choice-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }
.choice-label { margin-bottom: 8px; color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.choice-card h3 { margin-bottom: 12px; }
.choice-card > p:not(.choice-label) { color: var(--muted); font-size: 14px; }
.choice-prompt { margin: 18px 0 0; padding: 14px 15px; color: var(--ocean-deep) !important; background: var(--sea-pale); border-left: 3px solid var(--mango); }
.comparison-section { padding-block: 64px; background: var(--sand); }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: white; }
table { width: 100%; border-collapse: collapse; }
.compare-table { min-width: 760px; font-size: 13px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { color: white; background: var(--ocean); font-size: 12px; }
.compare-table tbody th { min-width: 125px; color: var(--ocean-deep); background: #f3f7f4; }
.compare-table td { color: var(--muted); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.table-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.mini-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0; }
.mini-steps > div { padding-top: 15px; border-top: 2px solid var(--mango); }
.mini-steps span { color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.mini-steps h3 { margin: 8px 0; font-size: 18px; }
.mini-steps p { margin: 0; color: var(--muted); font-size: 13px; }
.sources-box { margin-bottom: 62px; padding: clamp(22px, 4vw, 38px); background: var(--sea-pale); border: 1px solid var(--line); border-radius: 8px; }
.sources-box h2 { margin-bottom: 14px; font-size: clamp(1.55rem, 2.5vw, 2rem); }
.sources-box ol { padding-left: 23px; }
.sources-box li, .sources-box p { color: var(--muted); font-size: 13px; }
.sources-box li + li { margin-top: 8px; }
.sources-box p:last-child { margin-bottom: 0; }

.budget-shell { margin-top: 0; margin-bottom: 10px; padding: clamp(20px, 4vw, 42px); background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 34px rgba(16, 63, 72, .07); }
.budget-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.budget-heading h2 { margin-bottom: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.duration-field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.duration-field > span { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.duration-field input { width: 76px; }
.form-hint { margin: 15px 0; color: var(--muted); font-size: 13px; }
.scenario-tabs { display: inline-flex; gap: 4px; margin: 12px 0 22px; padding: 4px; background: var(--sea-pale); border: 1px solid var(--line); border-radius: 7px; }
.scenario-tab { padding: 9px 14px; color: var(--ocean-deep); background: transparent; border: 0; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 750; }
.scenario-tab.is-active { color: white; background: var(--ocean); }
.budget-fields, .extra-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.budget-fields legend, .extra-fieldset legend { margin-bottom: 14px; color: var(--ocean-deep); font-size: 19px; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.field-grid label, .extra-inputs label, .extra-fieldset > label { min-width: 0; display: grid; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 750; }
.field-grid label > span, .extra-inputs label > span, .extra-fieldset label > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.field-grid input, .extra-inputs input, .extra-fieldset input, .duration-field input { min-height: 44px; width: 100%; padding: 9px 11px; color: var(--ink); background: #fffefa; border: 1px solid #a9bfbb; border-radius: 5px; }
.field-grid input::placeholder, .extra-inputs input::placeholder, .extra-fieldset input::placeholder { color: #5d7375; font-size: 12px; }
.extras-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.extra-fieldset { padding: 18px; background: var(--sand); border-radius: 7px; }
.extra-fieldset legend { float: left; width: 100%; font-size: 16px; }
.extra-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; clear: both; }
.extra-fieldset > label { clear: both; }
.extra-fieldset .form-hint { margin-bottom: 0; }
.results-panel { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: 25px; overflow: hidden; color: white; background: var(--ocean-deep); border-radius: 8px; }
.result-main { padding: 25px; }
.result-label { margin-bottom: 6px; color: #d8e9e5; font-size: 13px; }
.result-main output { display: block; color: var(--mango); font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 850; line-height: 1.1; }
.result-main p:last-child { margin: 11px 0 0; color: #d8e9e5; font-size: 12px; }
.result-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 13px 17px; background: #17505a; }
.result-breakdown > div { padding: 11px; border-bottom: 1px solid rgba(225, 242, 236, .2); }
.result-breakdown dt { color: #d8e9e5; font-size: 11px; }
.result-breakdown dd { margin: 4px 0 0; color: white; font-size: 17px; font-weight: 800; }
.result-breakdown .result-grand { grid-column: 1 / -1; border-bottom: 0; }
.result-breakdown .result-grand dd { color: var(--mango); font-size: 24px; }
.disclaimer { margin: 14px 0 0; color: var(--muted); font-size: 12px; }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-card { padding: 23px 24px; background: #edf6f1; border: 1px solid var(--line); border-radius: 8px; }
.check-card:nth-child(2) { background: #fbf2df; }
.check-card:nth-child(3) { background: #e8f3f5; }
.check-card:nth-child(4) { background: #f6eee7; }
.check-card > span { color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.check-card h3 { margin: 6px 0 11px; }
.check-card ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 13px; }
.check-card li + li { margin-top: 8px; }
.rental-flow { padding-block: 58px; background: var(--sea-pale); }
.numbered-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.numbered-flow li { padding-top: 14px; border-top: 2px solid #8fb4af; }
.numbered-flow li span { color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.numbered-flow li p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.callout { max-width: 800px; padding: 19px 21px; border-left: 4px solid var(--coral); }
.callout-warm { margin: 0 0 25px; background: var(--sand); }
.callout strong { display: block; margin-bottom: 5px; color: var(--ocean-deep); }
.callout p { margin: 0; color: var(--muted); font-size: 13px; }

.weather-table { min-width: 760px; font-size: 13px; }
.weather-table thead th { color: white; background: var(--ocean); }
.weather-table th, .weather-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.weather-table tbody th { min-width: 120px; color: var(--ocean-deep); background: #f3f7f4; }
.weather-table tbody td { min-width: 145px; color: var(--muted); }
.weather-table tbody td strong { display: block; color: var(--ink); font-size: 16px; }
.weather-table tbody td small { display: block; color: var(--muted); font-size: 11px; }
.weather-table td:last-child { min-width: 270px; }
.weather-table tbody tr:last-child th, .weather-table tbody tr:last-child td { border-bottom: 0; }
.rain-chart { max-width: 850px; margin: 0 0 25px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.rain-chart > figcaption { color: var(--ocean-deep); font-size: 17px; font-weight: 850; }
.chart-note { margin: 4px 0 13px; color: var(--muted); font-size: 12px; }
.rain-legend { display: flex; gap: 18px; margin-bottom: 13px; color: var(--muted); font-size: 11px; font-weight: 700; }
.rain-legend span { display: inline-flex; align-items: center; gap: 7px; }
.rain-legend i { width: 11px; height: 11px; display: inline-block; border-radius: 2px; }
.legend-hua, .rain-hua { background: #ef9c43; }
.legend-phuket, .rain-phuket { background: #17818a; }
.rain-plot { display: grid; gap: 8px; }
.rain-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 13px; }
.rain-month { color: var(--ocean-deep); font-size: 11px; font-weight: 800; }
.rain-value { min-width: 0; display: grid; grid-template-columns: minmax(40px, 1fr) 46px; align-items: center; gap: 6px; }
.rain-value b { color: var(--muted); font-size: 10px; font-weight: 700; text-align: right; }
.rain-track { height: 10px; display: block; overflow: hidden; background: #edf1ef; border-radius: 2px; }
.rain-bar { height: 100%; display: block; border-radius: 2px; }
.season-band-weather { margin-top: 4px; background: var(--sea); }
.month-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.month-cards article { padding: 20px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--mango); border-radius: 7px; }
.month-cards article > span { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.month-cards h3 { margin: 9px 0; font-size: 18px; }
.month-cards p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { padding-block: 38px 31px; color: #e2efeb; background: var(--ocean-deep); }
.footer-brand { display: inline-block; margin-bottom: 8px; color: var(--mango); font-size: 20px; font-weight: 850; text-decoration: none; }
.footer-inner > p { max-width: 620px; margin-bottom: 16px; color: #d2e3df; font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-bottom: 16px; }
.footer-inner nav a { color: white; font-size: 12px; }
.footer-inner small { color: #c1d5d0; font-size: 11px; }

@media (max-width: 960px) {
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbered-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .content-width, .header-inner, .footer-inner { width: min(100% - 36px, 620px); }
  .header-inner { min-height: 70px; flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .menu-toggle { display: none; }
  html.js .menu-toggle { display: inline-flex; }
  .primary-nav { flex-wrap: wrap; gap: 6px 15px; }
  .primary-nav a { font-size: 12px; }
  html.js .primary-nav { width: 100%; display: none; justify-content: flex-start; flex-wrap: wrap; padding-bottom: 7px; }
  html.js .primary-nav.is-open { display: flex; }
  .hero-home { width: min(100% - 24px, 640px); margin-top: 12px; grid-template-columns: 1fr; gap: 23px; padding: 25px; border-radius: 13px; }
  .hero-home h1 { font-size: clamp(2.55rem, 10vw, 3.6rem); }
  .hero-photo img { max-height: 350px; }
  .intro-row { grid-template-columns: 1fr; gap: 7px; padding-block: 52px 32px; }
  .path-grid { gap: 11px; padding-bottom: 54px; }
  .path-card { min-height: 225px; padding: 18px; }
  .season-inner { align-items: flex-start; flex-direction: column; gap: 20px; }
  .editorial-note { margin-top: 38px; padding: 23px; }
  .visa-note { grid-template-columns: 1fr; gap: 12px; padding-block: 35px 48px; }
  .page-hero { padding-block: 42px; }
  .page-hero h1 { font-size: clamp(2.35rem, 9vw, 3.3rem); }
  .page-hero-layout { grid-template-columns: 1fr; gap: 22px; }
  .page-hero-photo img { max-height: 330px; }
  .page-section, .comparison-section { padding-block: 48px; }
  .choice-grid, .check-grid { grid-template-columns: 1fr; }
  .choice-card { padding: 15px; }
  .mini-steps { grid-template-columns: 1fr; gap: 18px; }
  .sources-box { margin-bottom: 46px; }
  .budget-shell { padding: 22px 17px; }
  .budget-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .extras-grid { grid-template-columns: 1fr; }
  .results-panel { grid-template-columns: 1fr; }
  .month-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .content-width, .header-inner, .footer-inner { width: calc(100% - 30px); }
  .hero-home { width: calc(100% - 18px); padding: 20px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 0; }
  .field-grid, .extra-inputs { grid-template-columns: 1fr; }
  .scenario-tabs { display: flex; }
  .scenario-tab { flex: 1; }
  .result-breakdown { padding: 8px; }
  .result-breakdown > div { padding: 9px; }
  .rain-chart { padding: 15px 12px; }
  .rain-row { grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .rain-value { grid-template-columns: minmax(25px, 1fr) 39px; gap: 4px; }
  .rain-value b { font-size: 9px; }
  .rain-track { height: 8px; }
  .numbered-flow { grid-template-columns: 1fr; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
