:root{--ink:#1d2433;--sub:#5a6478;--line:#e6e9f0;--bg:#fff;--soft:#f6f8fc;--accent:#0b5fa5}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;line-height:1.75;font-size:16px}
main{max-width:760px;margin:0 auto;padding:24px 18px 64px}
nav.crumb{font-size:13px;color:var(--sub);margin:0 0 14px;overflow-wrap:anywhere}
nav.crumb a{color:var(--accent);text-decoration:none}
h1{font-size:26px;line-height:1.35;margin:0 0 6px}
.sub{color:var(--sub);font-size:14px;margin:0 0 18px;overflow-wrap:anywhere}
.summary{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:0 0 20px}
.summary p{margin:0}
.tabs{display:flex;gap:8px;margin:0 0 16px;flex-wrap:wrap}
.tabs button{font:inherit;font-size:15px;padding:9px 18px;border-radius:999px;border:1px solid var(--line);background:#fff;cursor:pointer;color:var(--ink)}
.tabs button[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.linecard{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:10px 0;display:block;color:inherit;text-decoration:none}
.linecard:hover{border-color:var(--accent)}
.linecard h3{margin:0 0 4px;font-size:17px}
.linecard p{margin:0;font-size:14px;color:var(--sub)}
.dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px;vertical-align:-1px}
.stoplist{list-style:none;padding:0;margin:12px 0}
.stoplist li{border-bottom:1px solid var(--line);padding:9px 2px;font-size:15px;display:flex;gap:10px;align-items:baseline}
.stoplist .code{font-size:12.5px;color:#fff;background:#5a6478;border-radius:6px;padding:2px 8px;white-space:nowrap}
.stoplist a{color:var(--accent);text-decoration:none}
.stoplist a:hover{text-decoration:underline}
.stoplist .th{color:var(--sub);font-size:13.5px;overflow-wrap:anywhere}
table.info{width:100%;border-collapse:collapse;font-size:15px;margin:0 0 8px}
table.info th,table.info td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
table.info th{width:32%;background:var(--soft);white-space:nowrap}
table.info td{overflow-wrap:anywhere;word-break:keep-all}
h2{font-size:20px;margin:30px 0 10px}
ul{padding-left:20px;margin:8px 0}
li{margin:6px 0}
.note{font-size:13.5px;color:var(--sub)}
.sources{font-size:14px}
.sources li{overflow-wrap:anywhere}
.routebox{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:16px 0}
.routebox label{display:block;font-size:14px;font-weight:600;margin:8px 0 4px}
.routebox select{font:inherit;font-size:15px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;width:100%;max-width:100%;background:#fff}
.routebox .btn{display:inline-block;margin-top:12px;padding:10px 20px;background:var(--accent);color:#fff;border:0;border-radius:10px;font:inherit;font-size:15px;cursor:pointer}
.routebox .btn:focus-visible{outline:2px solid #083d6e;outline-offset:2px}
svg.schematic{width:100%;height:auto;display:block;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
footer.meta{margin-top:40px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;color:var(--sub)}
footer.meta span{margin-right:14px}
@media (max-width:560px){
  h1{font-size:22px}
  table.info,table.info tbody,table.info tr,table.info th,table.info td{display:block;width:100%}
  table.info th{white-space:normal;border-bottom:0}
  table.info td{border-top:0}
  main{padding:18px 14px 48px}
  .stoplist li{flex-wrap:wrap}
}
/* Multi-column comparison tables must not inherit 32% width for every heading. */
table.info{table-layout:auto}table.info th{width:auto;white-space:normal}table.info td{word-break:normal;overflow-wrap:normal}main{max-width:980px}main>nav[aria-label="목차"]{padding:18px 22px;background:#f6f8fc;border:1px solid #e6e9f0;border-radius:12px}main>nav[aria-label="목차"] ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px;list-style:none;padding:0}main>ul{line-height:1.9}main>h2{margin-top:36px;padding-top:16px;border-top:1px solid #e6e9f0}@media(max-width:560px){main>nav[aria-label="목차"] ul{grid-template-columns:1fr}table.info td{overflow-wrap:anywhere}}

/* Comparisons retain column headings on desktop and repeat labels per mobile card. */
.comparison-table{max-width:100%;overflow-x:auto;margin:16px 0 24px}
.comparison-table table.info{min-width:680px;margin:0}
@media(max-width:560px){
  .comparison-table{overflow:visible}
  .comparison-table table.info{min-width:0;border:0;background:transparent}
  .comparison-table table.info .comparison-head{display:none}
  .comparison-table table.info tr:not(.comparison-head){display:block;margin:0 0 16px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;width:100%}
  .comparison-table table.info td{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;border:0;padding:7px 0;width:100%;line-height:1.6;overflow-wrap:break-word;word-break:normal}
  .comparison-table table.info td::before{content:attr(data-label);color:#667581;font-weight:600;font-size:13px}
  .comparison-table table.info td:first-child{font-weight:750;font-size:17px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:5px}
}
main h2[id]{scroll-margin-top:120px}

/* Boat guide: separate route exploration from the reading guide. */
.boat-guide{max-width:1100px;padding-top:36px}.boat-guide h1{font-size:32px;letter-spacing:-.04em}.boat-guide>.sub{font-size:16px;max-width:780px;margin:16px 0 24px}.boat-guide a{color:#267e89;text-underline-offset:3px}.boat-reading{max-width:800px;margin:48px auto 0;border-top:1px solid #dce5e8;padding-top:32px}.guide-label{font-size:12px;font-weight:700;letter-spacing:.08em;color:#267e89}.boat-reading h2{font-size:23px;line-height:1.4;margin:36px 0 14px;letter-spacing:-.03em}.boat-reading p{margin:12px 0;line-height:1.9;word-break:keep-all;overflow-wrap:anywhere}.boat-reading .note{font-size:14px;background:#f6f8fc;border-radius:10px;padding:16px 18px}.boat-caution{background:#fff8e8;border:1px solid #efdfb8;border-radius:14px;padding:4px 24px 16px;margin:32px 0}.boat-caution h2{font-size:20px;margin-top:24px}.boat-faq{border-bottom:1px solid #e6e9f0;padding:17px 0}.boat-faq summary,.boat-sources summary{cursor:pointer;font-weight:700}.boat-faq p{color:#5a6478}.boat-sources{background:#f6f8fc;padding:20px 24px;border-radius:12px;margin-top:32px}.boat-sources ul{list-style:none;padding:0}.boat-sources li{padding:14px 0;border-bottom:1px solid #e6e9f0}.boat-sources li:last-child{border:0}.boat-sources p{font-size:13px;color:#5a6478;margin:7px 0 0}@media(max-width:600px){.boat-guide{padding:24px 16px 48px}.boat-guide h1{font-size:26px}.boat-reading h2{font-size:21px}.boat-caution{padding:4px 18px 14px}}

/* EZThaiWorld paint-only companion for raw transit templates.
   Keep aligned with the interior appearance section of src/styles/ezthaiworld-v2.css. */
/* V2 interior appearance only. No dimensions, spacing, ordering, grid or type metrics. */
html[lang|=ko] body:not(:has(.ez-home-shell)) main {
  --ez-surface:#ffffff;
  --ez-soft:#f5f5f2;
  --ez-line:#dcdcd6;
  --ez-ink:#20211f;
  --ez-muted:#575b56;
  color:var(--ez-ink);
}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(h1,h2,h3,h4){color:var(--ez-ink)}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.intro,.destination-lead,.destination-city-summary,.destination-city-english,.destination-breadcrumb,.breadcrumbs,.location,.foreign-names,.place-kind,.destination-byline,.destination-city-help){color:var(--ez-muted)}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.eyebrow,.overline,.destination-eyebrow,.destination-city-region,.category-number,.city-kicker){color:#565b51}
/* Existing filter panels keep their exact sizes and responsive behavior. */
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.destination-city-filters,.region-filter,.city-selector,.featured-place,.address-block,.taxi-name,.toc){background-color:var(--ez-soft);border-color:var(--ez-line);box-shadow:none}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(select,input[type=search]){background-color:#fff;color:var(--ez-ink);border-color:#c8cbc3;box-shadow:none}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.destination-city-filters,.region-filter,.city-selector) label{color:var(--ez-muted)}
/* Cards remain in their original DOM, columns, order, widths and heights. */
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.destination-city-grid article,.category-card,.grid article,.cards article,.summary article,.home-guide-grid>a,.camera-tile){background-color:var(--ez-surface);border-color:var(--ez-line);box-shadow:0 3px 14px #20211f06}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.destination-city-grid article,.category-card,.grid article,.cards article,.summary article,.camera-tile):hover{border-color:#a6ada1;box-shadow:0 6px 20px #20211f0c}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.city-group){--city-bg:#f5f5f2;--city-line:#dcdcd6;--city-accent:#555e50}
/* Body links retain recognizable underlines and visible hover/focus feedback. */
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.destination-city-copy h3 a,.featured-place h2 a){color:var(--ez-ink)}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.destination-city-action,.category-card a,.choose-note a,.related-links a,.destination-city-detail a,.attraction-detail a,.thai-detail a,.city-compare-link,.all-beaches-link){color:#285e50;text-decoration-color:#a8b8ac}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.destination-city-action,.category-card a,.related-links a):hover{color:#173b31;text-decoration:underline}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.primary-link){background-color:#242722;color:#fff;border-color:#242722}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.category-shortcuts a,.city-link,.type-filter button,.destination-city-pagination button,.map-actions a,.map-actions button,.related a){background-color:#fff;color:#343c32;border-color:var(--ez-line);box-shadow:none}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.city-link[aria-current=page],.type-filter button[aria-pressed=true]){background-color:#242722;color:#fff;border-color:#242722}
/* Information tables and editorial sources: surface colors only; semantic alerts unchanged. */
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.visit-facts,.destination-city-detail dl,.thai-detail>section>dl){border-color:var(--ez-line);background-color:#fff}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.visit-facts,.destination-city-detail dl,.thai-detail>section>dl)>div{border-color:#e7e7e1}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.visit-facts,.destination-city-detail dl,.thai-detail>section>dl) dt{background-color:var(--ez-soft);color:#353b32}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.experience-section,.visit-section,.story-block+.story-block,.source-section,.sources){border-color:var(--ez-line)}
html[lang|=ko] body:not(:has(.ez-home-shell)) main .story-block h3{border-color:#798371}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.sources,.source-section) details{background-color:#f7f7f4;border-color:var(--ez-line)}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.sources,.source-section) summary{color:#414a3c}

/* Coverage completion: original layout and semantic status/map colors stay intact. */
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-card,.food-faq article,.entry-faq article,.entry-guide-links a,.airport-card,.weather-card,.festival-card,.collection-grid article,.line-card,.linecard,.place-card,.region-card,.bus-route-cards article,.incident-grid article,.followup-grid article,.destination-faq article,#faq article){background-color:#fff;border-color:var(--ez-line);box-shadow:0 3px 14px #20211f06}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-card,.airport-card,.weather-card,.festival-card,.collection-grid article,.linecard):hover{border-color:#a6ada1;box-shadow:0 6px 20px #20211f0c}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-card h3 a,.food-card-link,.card-title a,.line-card h3 a,.airport-card h2 a){color:#293b30}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-card-meta,.food-card-name,.food-card p,.food-subtitle,.food-filter-status,.food-eyebrow,.entry-kicker,.food-section-head p,.food-region p,.card-summary,.detail-intro){color:#575b56}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-card-count,.tags span,.keyword-tags a){background-color:#f1f2ed;color:#424b3c;border-color:#dcdcd6}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-hero,.food-region,.food-sources,.entry-sources,.airport-sources){border-color:#dcdcd6}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.catalog-filters,.collection-filters,.festival-filters,.reading-guide,.temperature-compare,.rail-guide-selection,.food-note){background-color:#f5f5f2;border-color:#dcdcd6}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-filter button,.entry-action,.reset-filters){background-color:#fff;color:#343c32;border-color:#c8cbc3}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-detail dl,.entry-detail dl,.collection-detail dl,.beach-detail dl,.temple-detail dl,.festival-detail dl,.rail-facts,.season-facts){background-color:#fff;border-color:#dcdcd6}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-detail dl,.entry-detail dl,.collection-detail dl,.beach-detail dl,.temple-detail dl,.festival-detail dl,.rail-facts,.season-facts)>div{border-color:#e7e7e1}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.food-detail dl,.entry-detail dl,.collection-detail dl,.beach-detail dl,.temple-detail dl,.festival-detail dl,.rail-facts,.season-facts) dt{background-color:#f5f5f2;color:#353b32}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.source-fold,.food-sources details,.airport-sources details,.entry-sources details,.destination-sources details){background-color:#f7f7f4;border-color:#dcdcd6;color:#414a3c}
/* Legacy transit uses a standalone stylesheet; these selectors change paint only. */
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.summary,.guide-table thead,.comparison-table thead){background-color:#f5f5f2;border-color:#dcdcd6}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.guide-table,.comparison-table,.stoplist li){border-color:#dcdcd6}
/* Secondary hubs: seasons, festival groups and transport destination cards. */
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.picker,.festival-group,.rail-places,.boat-planner){background-color:#f5f5f2;border-color:#dcdcd6}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(#season-result article,.month-grid article,.place-grid article,.station-grid article,.piers article,.highlight-grid article,.destination-grid article,.trip-choice,.airport-editorial .faq-card,.cards>a){background-color:#fff;border-color:#dcdcd6;box-shadow:0 3px 14px #20211f06}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.card-facts,.rail-guide-selection,.guide-table th,.airport-editorial th){background-color:#f5f5f2;border-color:#dcdcd6;color:#353b32}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.category-nav a,.catalog-pagination button,.jump a,.other a,.links a,.entry-guide-links a,.airport-korean-guide button){background-color:#fff;border-color:#c8cbc3;color:#343c32}
html[lang|=ko] body:not(:has(.ez-home-shell)) main .category-nav a[aria-current]{background-color:#242722;border-color:#242722;color:#fff}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(article.selected,.trip-choice.selected,.trip-choice.active){border-color:#267e89;box-shadow:0 0 0 2px #267e8933}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.routebox,.boat-sources,.boat-reading .note,table.info th,nav[aria-label="목차"]){background-color:#f5f5f2;border-color:#dcdcd6}
html[lang|=ko] body:not(:has(.ez-home-shell)) main .tabs button{background-color:#fff;border-color:#c8cbc3;color:#343c32}
html[lang|=ko] body:not(:has(.ez-home-shell)) main :is(.tabs button[aria-selected=true],.routebox .btn){background-color:#242722;border-color:#242722;color:#fff}

/* Compact photo attribution: half-height summaries, full readable credit on expansion. */
html[lang|=ko] details.photo-source-disclosure{min-height:0!important;padding-top:0!important;padding-bottom:0!important}
html[lang|=ko] .photo-source-disclosure>summary{box-sizing:border-box;min-height:22px!important;padding:0 2px;line-height:22px!important}
html[lang|=ko] .photo-source-content{padding-bottom:6px}
html[lang|=ko] figcaption:has(>.photo-source-disclosure){min-height:25px;margin-top:5px}
html[lang|=ko] .image-credit.photo-source-disclosure{margin-top:4.5px}
html[lang|=ko] .hero-photo-meta{box-sizing:border-box;min-height:44px;padding:0 32px;gap:12px;align-items:center}
html[lang|=ko] .hero-photo-meta .hero-credit{margin:0}
html[lang|=ko] .hero-photo-meta .hero-photo-controls button{min-height:32px;padding-top:3px;padding-bottom:3px}
html[lang|=ko] .hero-photo-meta:has(.hero-credit[open]){padding-top:6px;padding-bottom:6px}
@media(max-width:760px){
 html[lang|=ko] .hero-photo-meta{flex-direction:row;align-items:center;flex-wrap:wrap;padding:0 16px;gap:0 8px}
 html[lang|=ko] .hero-photo-meta .hero-credit{min-width:90px}
 html[lang|=ko] .hero-photo-controls{align-self:center;gap:5px;font-size:10px}
 html[lang|=ko] .hero-photo-meta .hero-photo-controls>span{min-width:82px;margin-right:2px}
 html[lang|=ko] .hero-photo-meta .hero-photo-controls small{font-size:9px}
 html[lang|=ko] .hero-photo-meta .hero-photo-controls button{min-width:32px;min-height:32px;font-size:11px;padding:3px 8px}
 html[lang|=ko] .hero-photo-meta:has(.hero-credit[open]) .hero-credit{flex-basis:100%}
 html[lang|=ko] .hero-photo-meta:has(.hero-credit[open]) .hero-photo-controls{margin-left:auto}
}

/* Photo attribution type preview requested by the owner: retain compact box heights. */
html[lang|=ko] .photo-source-disclosure>summary,
html[lang|=ko] .photo-source-disclosure .photo-source-content,
html[lang|=ko] .photo-source-disclosure .photo-source-content *{font-size:9px!important}

/* Photo-source disclosures use plain text controls; card boundaries stay unchanged. */
html[lang|=ko] details.photo-source-disclosure,
html[lang|=ko] details.photo-source-disclosure>summary{border:0!important;box-shadow:none!important;border-radius:0!important}
