/* Readable content sizes across desktop, tablet, and mobile. */
body { font-size: 16px; line-height: 1.65; }
:root { --muted: #525f79; }

/* Primary navigation and hero controls. */
.desktop-nav { gap: 20px; }
.desktop-nav a { font-size: 14px; }
.brand small { font-size: 11px; }
.language-toggle button { font-size: 13px; padding: 5px 7px; }
.hero-copy { flex: 1; min-width: 0; }
.eyebrow { font-size: 12px; letter-spacing: 1.5px; }
.hero-description { font-size: 17px; }
.search-form { width: 100%; }
.search-form input { font-size: 16px; }
.search-form button { font-size: 15px; padding: 13px 19px; gap: 12px; }
.popular, .popular button { font-size: 13px; }
.popular { gap: 8px; }
.popular button { padding: 6px 12px; }
.scroll-hint, .video-tools { font-size: 12px; }
.weather-card { width: 330px; }
.weather-heading h2 { font-size: 19px; }
.weather-location select { font-size: 14px; }
.weather-metrics span, .weather-metrics strong small { font-size: 12px; }
.weather-metrics strong { font-size: 23px; }
.weather-tabs button { font-size: 13px; padding: 6px; }
.forecast-hour { font-size: 11px; }
.forecast-hour strong { font-size: 16px; }
.weather-note, .weather-link { font-size: 12px; }

/* Section descriptions and destination cards. */
.quick-nav span { font-size: 16px; }
.quick-nav small { font-size: 13px; color: #5d6a83; }
.section-kicker, .compact .section-kicker { font-size: 11px; letter-spacing: 1.5px; }
.section-heading h2, .compact h2 { font-size: 28px; }
.section-heading p:not(.section-kicker) { font-size: 16px; }
.text-link { font-size: 14px; }
.destination-card { height: 235px; }
.destination-info { left: 16px; right: 14px; }
.destination-info h3 { font-size: 19px; line-height: 1.4; }
.destination-info .thai-name { font-size: 14px; line-height: 1.6; }
.destination-info .region { font-size: 12px; padding-right: 24px; }
.region svg { width: 14px; height: 14px; }
.card-arrow { width: 26px; height: 26px; }

/* Dive sites: give text room instead of shrinking to fit the map. */
.discovery { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; }
.sites-section, .marine-section { min-width: 0; }
.sites-panel { height: auto; min-height: 386px; align-items: stretch; }
.map-panel { flex: 0 0 35%; min-height: 386px; }
.thailand-map { position: absolute; inset: 0; }
.site-list { padding: 0 16px; }
.site-row { min-height: 128px; flex: 1; padding: 17px 0; gap: 14px; }
.site-row img, .sites-panel.list-mode .site-row img { width: 72px; height: 76px; }
.site-row h3, .sites-panel.list-mode .site-row h3 {
  font-size: 18px; line-height: 1.4; letter-spacing: -.3px; margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.site-row p { font-size: 14px; line-height: 1.6; color: #53617e; margin-bottom: 8px; }
.site-meta { font-size: 13px; line-height: 1.6; gap: 7px 12px; flex-wrap: wrap; color: #364d7a; }
.site-meta span { gap: 5px; }
.site-meta svg { width: 16px; height: 16px; }
.site-row > svg { width: 20px; height: 20px; }
.segmented button { font-size: 14px; padding: 7px 13px; }
.section-footnote { font-size: 13px; line-height: 1.7; color: #5b6883; margin-top: 12px; }
.map-caption { font-size: 10px; line-height: 1.6; left: 10px; right: 10px; }
.map-pin { font-size: 11px; }
.map-pin span { padding: 3px 5px; }
.marine-grid { gap: 12px; }
.marine-card img { height: 200px; }
.marine-info { padding: 16px 12px; }
.marine-info h3 { font-size: 17px; line-height: 1.45; }
.marine-info small { font-size: 13px; color: #5f6b84; }
.marine-info > span { font-size: 12px; gap: 6px; margin-top: 13px; }
.marine-info svg { width: 15px; height: 15px; }
.ocean-note p { font-size: 13px; color: #5b6780; line-height: 1.7; }
.ocean-note br { display: initial; }

/* Supporting content and detail views. */
.season-band { gap: 24px; }
.season-band .section-kicker { font-size: 10px; letter-spacing: 1px; }
.season-band h2 { font-size: 22px; }
.season-intro p:last-child { font-size: 14px; color: #526180; }
.season-icon { display: none; }
.coast { gap: 10px; padding-left: 20px; }
.coast-number { font-size: 12px; }
.coast h3 { font-size: 16px; }
.coast p { font-size: 13px; color: #526180; }
.coast div > span { font-size: 12px; color: #5c6a86; line-height: 1.6; display: block; }
.adventure-card { min-height: 340px; }
.adventure-card .eyebrow { font-size: 11px; letter-spacing: 1.2px; }
.adventure-card h2 { font-size: 34px; }
.adventure-card p:not(.eyebrow) { font-size: 16px; line-height: 1.75; }
.light-button { font-size: 14px; padding: 13px 18px; }
.guide-info h3 { font-size: 19px; line-height: 1.5; }
.guide-tag, .guide-meta { font-size: 13px; }
.guide-meta { color: #5f6c85; }
.guide-meta svg { width: 16px; height: 16px; }
.guide-grid .guide-card { display: flex; flex-direction: column; }
.guide-grid .guide-image { flex: none; width: 100%; }
.guide-grid .guide-info { display: flex; flex: 1; flex-direction: column; justify-content: flex-start; }
.guide-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 14px; color: #495e7a; font-size: 15px; line-height: 1.6; }
.guide-meta { justify-content: flex-start; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; }
.guide-meta > svg { margin-inline-start: auto; }
.guide-meta > [hidden] { display: none; }
.closing h2 { font-size: 28px; }
.closing p { font-size: 16px; }
.closing .light-button { font-size: 14px; }
.dialog-body p { font-size: 16px; line-height: 1.85; color: #52607b; }
.dialog-body .dialog-notice { font-size: 14px; }
.dialog-chips button, .filter-chip { font-size: 15px; }
.result-item > span { font-size: 17px; }
.result-item small { font-size: 14px; }
.result-item img { width: 76px; height: 70px; }

@media (max-width: 1200px) {
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: 13px; }
  .header .brand small { font-size: 10px; }
  .destination-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .destination-card { height: 220px; }
  .discovery { grid-template-columns: 1fr; gap: 38px; }
  .map-panel { flex-basis: 42%; }
  .site-row img, .sites-panel.list-mode .site-row img { width: 86px; height: 82px; }
  .marine-card img { height: 235px; }
  .marine-info h3 { font-size: 20px; }
  .marine-info > span { font-size: 14px; }
  .season-band { flex-wrap: wrap; }
  .season-intro { flex-basis: 100%; }
  .coast { padding-left: 0; border: 0; }
}

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-menu { display: grid; }
  .mobile-nav:not([hidden]) {
    display: grid; grid-template-columns: 1fr 1fr; position: absolute;
    top: 92px; left: 32px; right: 32px; z-index: 10; gap: 8px;
    background: #021c50f5; border: 1px solid #ffffff26; padding: 17px;
    border-radius: 10px; box-shadow: 0 10px 40px #00113277;
  }
  .mobile-nav a { font-size: 16px; padding: 10px; }
  .hero-content { gap: 25px; }
  .hero-copy .eyebrow { font-size: 10px; }
  .hero-description { font-size: 16px; }
  .weather-card { width: 300px; }
  .weather-metrics span, .weather-metrics strong small { font-size: 11px; }
}

@media (max-width: 700px) {
  .header .brand small { font-size: 9px; }
  .mobile-nav:not([hidden]) { top: 78px; left: 20px; right: 20px; }
  .hero-copy .eyebrow { font-size: 10px; line-height: 1.7; letter-spacing: 1px; }
  .hero-description { font-size: 16px; }
  .search-form input { font-size: 16px; }
  .search-form { flex-wrap: wrap; padding: 10px 12px; gap: 6px 10px; }
  .search-form input { flex: 1 1 200px; }
  .search-form button { margin-left: auto; padding: 11px 16px; font-size: 14px; }
  .popular, .popular button { font-size: 12px; }
  .popular button { padding: 6px 10px; }
  .hero-content { padding-bottom: 28px; }
  .hero-bottom { gap: 12px; }
  .scroll-hint { font-size: 12px; }
  .weather-card { width: 100%; padding: 18px; }
  .weather-heading h2 { font-size: 17px; }
  .weather-location { position: static; width: 100%; margin-top: 10px; }
  .weather-location select { font-size: 14px; padding-right: 20px; }
  .weather-location > svg:last-child { right: 18px; }
  .weather-metrics { gap: 4px; margin-block: 20px 16px; }
  .weather-metrics strong { font-size: 22px; }
  .weather-metrics span, .weather-metrics strong small { font-size: 11px; }
  .weather-note { font-size: 12px; justify-content: flex-start; line-height: 1.6; }
  .weather-link { position: static; width: 100%; border-top: 1px solid #ffffff24; padding-top: 12px; margin-top: 12px; font-size: 13px; }
  .quick-nav span { font-size: 14px; }
  .quick-nav small { font-size: 12px; line-height: 1.5; text-align: center; }
  .quick-nav a { padding: 15px 6px; }
  .section-kicker, .compact .section-kicker { font-size: 10px; line-height: 1.7; letter-spacing: 1px; }
  .section-heading h2, .compact h2 { font-size: 25px; }
  .section-heading p:not(.section-kicker) { font-size: 16px; }
  .destination-card { height: 215px; }
  .destination-info { left: 12px; right: 12px; }
  .destination-info h3 { font-size: 18px; }
  .destination-info .thai-name { font-size: 13px; }
  .destination-info .region { font-size: 12px; }
  .sites-section .compact { flex-wrap: wrap; }
  .segmented button { font-size: 14px; }
  .sites-panel { min-height: 0; }
  .map-panel { flex: auto; height: 250px; min-height: 250px; }
  .site-list { padding: 0 14px; }
  .site-row { gap: 12px; min-height: 145px; padding: 19px 0; }
  .site-row img, .sites-panel.list-mode .site-row img { width: 64px; height: 74px; }
  .site-row h3, .sites-panel.list-mode .site-row h3 { font-size: 18px; }
  .site-row p { font-size: 14px; }
  .site-meta { font-size: 13px; gap: 5px 10px; }
  .site-row > svg { width: 18px; height: 18px; }
  .section-footnote { font-size: 13px; }
  .map-caption { font-size: 11px; }
  .marine-grid { grid-template-columns: 1fr; gap: 13px; }
  .marine-card { display: flex; align-items: stretch; }
  .marine-card img { width: 36%; height: auto; min-height: 143px; }
  .marine-info { padding: 18px 16px; }
  .marine-info h3 { font-size: 20px; }
  .marine-info small { font-size: 14px; }
  .marine-info > span { font-size: 13px; }
  .ocean-note p { font-size: 13px; }
  .season-band .section-kicker { font-size: 10px; }
  .season-band h2 { font-size: 22px; }
  .season-intro p:last-child { font-size: 15px; }
  .coast h3 { font-size: 17px; }
  .coast p { font-size: 14px; }
  .coast div > span { font-size: 13px; }
  .coast:last-of-type { padding-right: 32px; }
  .adventure-card { padding: 25px; min-height: 360px; }
  .adventure-card .eyebrow { font-size: 10px; line-height: 1.7; }
  .adventure-card h2 { font-size: 32px; }
  .adventure-card p:not(.eyebrow) { font-size: 16px; }
  .light-button { font-size: 14px; }
  .guide-card { display: block; }
  .guide-image { width: 100%; height: 190px; }
  .guide-info { padding: 18px; }
  .guide-info h3 { font-size: 19px; }
  .guide-tag, .guide-meta { font-size: 13px; }
  .closing p { font-size: 15px; }
  .closing .light-button { font-size: 14px; margin-left: 0; }
                .dialog-body p { font-size: 16px; }
  .dialog-body .dialog-notice { font-size: 14px; }
  .dialog-chips button { font-size: 15px; }
}

.marine-card,.guide-card,a.result-item{color:inherit;text-decoration:none}.marine-card:focus-visible,.guide-card:focus-visible{outline:3px solid #2768bc;outline-offset:3px}
html:not(.show-course) :is(#courses,a[href="#courses"],a[href="/#courses"],a[href="/courses"]),
html:not(.show-trip) :is(#trips,a[href="#trips"],a[href="/#trips"],a[href="/trips"]),
html:not(.show-course):not(.show-trip) .adventures{display:none!important}
@media(min-width:761px){html .quick-nav{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:1fr}}
@media(max-width:760px){html:not(.show-course):not(.show-trip) .quick-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
html:not(.show-course) .adventures,html:not(.show-trip) .adventures{grid-template-columns:minmax(0,1fr)}
.brand img.brand-mark { object-fit: contain; }

.header-member-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #dceafd;
  color: #123e7e;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.header-member-link:hover { background: #fff; color: #123e7e; }
.header-member-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.header-member-link[hidden] { display: none; }
@media (max-width: 480px) {
  .header.wrap { width: calc(100% - 24px); gap: 7px; }
  .header .brand { gap: 4px; }
  .header .brand-mark { width: 30px; }
  .header .brand > span { font-size: 19px; }
  .header .brand small { display: none; }
  .header-actions { gap: 6px; }
  .header-member-link { padding-inline: 8px; font-size: 12px; }
}
