/* EIR Coastal Chapters — agreed six-hub concept / visual-only review.
 * Photos: no decorative blue waves or photo overlays. All site scripts unchanged.
 */
.page-hero.cc-hero.shell {
 --cc-bg:#eaf6f4; --cc-ink:#0a2f3a; --cc-accent:#147b87;
 box-sizing:border-box; position:relative; overflow:hidden; max-width:none;width:100%;margin:0;padding:0;border:0;background:var(--cc-bg);isolation:isolate;
}
.page-hero.cc-hero.cc-hero--routes {--cc-bg:#eaf7f4;--cc-accent:#127d84}
.page-hero.cc-hero.cc-hero--gulf {--cc-bg:#fff5e6;--cc-accent:#9c7549}
.page-hero.cc-hero.cc-hero--samui {--cc-bg:#e3f3f1;--cc-accent:#147b87}
.page-hero.cc-hero.cc-hero--phangan {--cc-bg:#edf2e6;--cc-accent:#496f58}
.page-hero.cc-hero.cc-hero--tao {--cc-bg:#e8f0f7;--cc-accent:#286384}
.page-hero.cc-hero.cc-hero--stories {--cc-bg:#fff0e8;--cc-accent:#b65239}
.cc-hero__layout {display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.84fr);align-items:center;gap:clamp(25px,4vw,57px);min-height:335px;padding:36px 0 43px;width:min(calc(100% - 40px),var(--shell,1180px));margin:auto;position:relative;z-index:1}
.cc-hero__copy{min-width:0}
.page-hero.cc-hero .breadcrumbs{margin:0 0 20px;font-size:.8rem}
.page-hero.cc-hero .eyebrow{color:var(--cc-accent);margin-bottom:15px}
.page-hero.cc-hero h1{color:var(--cc-ink);font-size:clamp(2.55rem,4.4vw,4.15rem);line-height:1.08;letter-spacing:-.026em;max-width:800px;margin:0 0 17px;overflow-wrap:normal}
.page-hero.cc-hero .cc-hero__copy>p:last-child{max-width:650px;color:#385660;font-size:clamp(1.0rem,1.45vw,1.13rem);line-height:1.57;margin:0}
.page-hero.cc-hero .cc-hero__art{position:relative;width:100%;min-width:0;height:258px;display:flex;align-items:center;justify-content:center}
.page-hero.cc-hero .cc-hero__art>svg{display:block;width:100%;height:100%;overflow:visible}
.cc-photo{margin:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:7px}
.cc-photo-frame{position:relative;overflow:hidden;width:100%;flex:1;min-height:0;border-radius:20px;background:#d4e4e3;box-shadow:0 12px 26px rgba(12,46,52,.12)}
.cc-photo-frame picture{display:block;width:100%;height:100%}
.cc-photo-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.cc-photo-frame--samui img{object-position:center center}
.cc-photo-frame--phangan img{object-position:center center}
.cc-photo-frame--tao img{object-position:center center}
.cc-photo-credit{align-self:flex-end;font:10px/1.25 system-ui,sans-serif;color:#416269;text-align:right;max-width:100%}
.cc-photo-credit a{color:inherit;text-decoration:underline;text-decoration-color:rgba(65,98,105,.45);text-underline-offset:2px}
.cc-hero--stories .cc-photo{max-width:89%;height:98%;margin-inline:auto;transform:rotate(3deg)}
.cc-hero--stories .cc-photo-frame{border:8px solid white;border-bottom-width:15px;border-radius:3px;box-shadow:0 13px 29px rgba(78,52,46,.15)}
.cc-hero--stories .cc-photo::before{content:"";position:absolute;top:-2px;right:12%;width:72px;height:22px;transform:rotate(-8deg);background:rgba(236,120,88,.83);z-index:2;pointer-events:none}
.cc-hero--stories .cc-photo-credit{padding-right:5px}
@media(max-width:900px){.cc-hero__layout{gap:23px;grid-template-columns:minmax(0,1.1fr) minmax(0,.8fr);min-height:310px;padding:29px 0 36px}.page-hero.cc-hero h1{font-size:clamp(2.45rem,5.1vw,3.5rem)}.page-hero.cc-hero .cc-hero__art{height:232px}}
@media(max-width:680px){.cc-hero__layout{display:flex;flex-direction:column;align-items:stretch;gap:22px;min-height:0;padding:22px 0 30px}.page-hero.cc-hero .breadcrumbs{margin-bottom:15px}.page-hero.cc-hero h1{font-size:clamp(2.27rem,8.25vw,3.2rem);max-width:100%;margin-bottom:14px}.page-hero.cc-hero .cc-hero__copy>p:last-child{font-size:1.01rem;line-height:1.55}.page-hero.cc-hero .cc-hero__art{height:225px;max-width:100%}.page-hero.cc-hero.cc-hero--routes .cc-hero__art,.page-hero.cc-hero.cc-hero--gulf .cc-hero__art{height:132px}.cc-photo-frame{border-radius:14px}.cc-hero--stories .cc-photo{height:94%;max-width:90%}.cc-hero--stories .cc-photo-frame{border-width:6px;border-bottom-width:11px}.cc-photo-credit{font-size:9px}}
@media(max-width:390px){.page-hero.cc-hero h1{font-size:2.31rem}.cc-hero__layout{gap:19px;padding-bottom:26px}.page-hero.cc-hero .cc-hero__art{height:194px}.page-hero.cc-hero.cc-hero--routes .cc-hero__art,.page-hero.cc-hero.cc-hero--gulf .cc-hero__art{height:115px}}
@media(prefers-reduced-motion:reduce){.cc-hero--stories .cc-photo{transform:none}}

/* Compact route hubs and restored island planning links. */
.page-hero.cc-hero.shell:is(.cc-hero--routes, .cc-hero--gulf) {
  width: min(calc(100% - 40px), var(--shell, 1180px));
  margin: 24px auto 0;
  border-radius: 22px;
}

.page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .cc-hero__layout {
  width: calc(100% - 72px);
  min-height: 0;
  padding-block: 27px 29px;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .78fr);
  gap: clamp(24px, 3vw, 44px);
}

.page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .breadcrumbs {
  margin-bottom: 13px;
}

.page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .eyebrow {
  margin-bottom: 9px;
}

.page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) h1 {
  font-size: clamp(2.25rem, 3.95vw, 3.25rem);
  margin-bottom: 12px;
  text-wrap: balance;
}

.page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .cc-hero__copy > p:last-child,
.page-hero.cc-hero--island .cc-hero__lead {
  color: #385660;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.56;
  margin: 0;
}

.page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .cc-hero__art {
  height: auto;
}

.page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .cc-hero__art > svg {
  height: auto;
  max-height: 174px;
}

.page-hero.cc-hero--gulf .cc-hero__art {
  flex-direction: column;
  gap: 10px;
}

.page-hero.cc-hero--gulf .cc-hero__art > svg {
  max-height: 154px;
}

.cc-island-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.cc-island-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid #decdb5;
  border-radius: 8px;
  color: var(--cc-ink);
  background: #fffaf1;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.cc-island-links a::before {
  content: "";
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #5b9e96;
}

.cc-island-links a[href="/koh-phangan/"]::before { background: #ca825f; }
.cc-island-links a[href="/koh-tao/"]::before { background: #4f9baf; }
.cc-island-links a:hover { border-color: #b1916a; text-decoration: underline; }

.page-hero.cc-hero--island .cc-hero__layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(26px, 4.1vw, 56px);
  min-height: 0;
  padding-block: 34px 33px;
}

.page-hero.cc-hero--island .breadcrumbs { margin-bottom: 15px; }
.page-hero.cc-hero--island .eyebrow { margin-bottom: 10px; }

.page-hero.cc-hero--island h1 {
  font-size: clamp(2.15rem, 4.15vw, 3.75rem);
  margin-bottom: 14px;
}

.cc-hero__title-tail { display: block; }

.page-hero.cc-hero--island .cc-hero__lead {
  max-width: 54ch;
}

.cc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.cc-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid #7da3a8;
  border-radius: 8px;
  color: #164e58;
  background: rgba(255, 255, 255, .45);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.cc-hero__action--primary {
  color: #fff;
  background: #14616b;
  border-color: #14616b;
}

.cc-hero__action:hover { text-decoration: underline; text-underline-offset: .18em; }

.cc-hero__action:focus-visible,
.cc-island-links a:focus-visible,
.cc-photo-credits summary:focus-visible {
  outline: 3px solid #a8432f;
  outline-offset: 3px;
}

.page-hero.cc-hero--island .cc-hero__art {
  display: block;
  height: auto;
  max-width: 100%;
}

.cc-hero--island .cc-photo {
  height: auto;
  gap: 3px;
}

.cc-hero--island .cc-photo-frame {
  flex: none;
  aspect-ratio: 16 / 10;
  border-radius: clamp(13px, 1.5vw, 20px);
  box-shadow: 0 12px 27px rgba(12, 46, 52, .13);
}

.cc-hero--island .cc-photo-frame--samui img { object-position: center 43%; }
.cc-hero--island .cc-photo-frame--phangan img { object-position: 43% center; }
.cc-hero--island .cc-photo-frame--tao img { object-position: 57% center; }

.cc-hero--island .cc-photo-credit {
  width: 100%;
  color: #35565e;
  font: .8rem/1.45 system-ui, sans-serif;
}

.cc-photo-credits summary {
  width: fit-content;
  min-height: 44px;
  margin-left: auto;
  align-content: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-photo-credits p {
  max-width: 48ch;
  margin: 0 0 4px auto;
}

@media (max-width: 760px) {
  .page-hero.cc-hero.shell:is(.cc-hero--routes, .cc-hero--gulf) {
    width: calc(100% - 28px);
    margin-top: 14px;
    border-radius: 16px;
  }

  .page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .cc-hero__layout,
  .page-hero.cc-hero--island .cc-hero__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .cc-hero__layout {
    width: calc(100% - 36px);
    padding-block: 18px;
  }

  .page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) h1 {
    font-size: clamp(1.95rem, 7vw, 2.65rem);
    text-wrap: pretty;
  }

  .page-hero.cc-hero:is(.cc-hero--routes, .cc-hero--gulf) .cc-hero__art > svg {
    max-height: 96px;
  }

  .page-hero.cc-hero--gulf .cc-hero__art { gap: 7px; }

  .cc-island-links {
    display: grid;
    width: min(100%, 324px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .cc-island-links a {
    gap: 4px;
    padding-inline: 4px;
    font-size: .78rem;
    text-align: center;
  }

  .cc-island-links a::before { width: .38rem; height: .38rem; }

  .page-hero.cc-hero--island .cc-hero__layout {
    padding-block: 23px 18px;
  }

  .page-hero.cc-hero--island h1 {
    font-size: clamp(2rem, 7.2vw, 2.8rem);
    margin-bottom: 11px;
  }

  .cc-hero__actions { margin-top: 15px; }
}


/* Shared Coastal Chapters headers for review. */
.page-hero.cc-hero.shell.cc-hero--unified {
  width: 100%;
  margin: 0;
  border-radius: 0;
}

.page-hero.cc-hero--unified ~ .shell,
.page-hero.cc-hero--unified ~ .cc-hero__art,
.page-hero.cc-hero.shell.cc-hero--unified .cc-hero__layout {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.page-hero.cc-hero.cc-hero--voice,
.travel-story--voice { --cc-bg: #e4efe2; --cc-accent: #42634c; }

.page-hero.cc-hero.shell.cc-hero--unified .cc-hero__layout {
  min-height: 0;
  padding-block: 27px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3.25vw, 32px);
  align-items: center;
}

.page-hero.cc-hero.shell.cc-hero--unified .breadcrumbs { margin-bottom: 12px; }
.page-hero.cc-hero.shell.cc-hero--unified .eyebrow { margin-bottom: 10px; }

.page-hero.cc-hero.shell.cc-hero--unified h1 {
  font-size: clamp(2.05rem, 4.1vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 12px;
  text-wrap: balance;
}

.page-hero.cc-hero.shell.cc-hero--unified .cc-hero__copy > p:not(.eyebrow) {
  max-width: 52ch;
  color: #385660;
  font-size: clamp(.98rem, 1.4vw, 1.07rem);
  line-height: 1.55;
  margin: 0;
}

.page-hero.cc-hero.shell.cc-hero--unified .cc-hero__art {
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.page-hero.cc-hero.shell.cc-hero--unified .cc-hero__art > svg {
  width: 100%;
  height: auto;
  max-height: 178px;
}

.page-hero.cc-hero.shell.cc-hero--unified.cc-hero--gulf .cc-hero__art > svg { max-height: 154px; }
.cc-hero--unified .cc-hero__actions { margin-top: 15px; }

.page-hero.cc-hero--unified ~ .cc-hero__art .cc-photo,
.page-hero.cc-hero.shell.cc-hero--unified .cc-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  gap: 2px;
  margin: 0;
  transform: none;
}

.page-hero.cc-hero.shell.cc-hero--unified .cc-photo::before { content: none; }

.page-hero.cc-hero--unified ~ .cc-hero__art .cc-photo-frame,
.page-hero.cc-hero.shell.cc-hero--unified .cc-photo-frame {
  width: 100%;
  flex: none;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 9px 22px rgba(12, 46, 52, .13);
}

.page-hero.cc-hero--unified ~ .cc-hero__art .cc-photo-credit,
.page-hero.cc-hero.shell.cc-hero--unified .cc-photo-credit {
  width: 100%;
  color: #35565e;
  font: .8rem/1.45 system-ui, sans-serif;
  padding: 0;
}

.cc-photo-frame--stories img { object-position: center 43%; }
.cc-photo-frame--voice img { object-position: center 54%; }

.cc-hero--unified .cc-photo-credits summary { min-height: 44px; }

.cc-voice-quote {
  display: inline-block;
  margin-right: .35rem;
  font: 700 1.5em/.8 Georgia, serif;
  vertical-align: -.1em;
}

@media (max-width: 760px) {
  .page-hero.cc-hero.shell.cc-hero--unified .cc-hero__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding-block: 17px;
  }

  .page-hero.cc-hero.shell.cc-hero--unified h1 {
    font-size: clamp(1.95rem, 7.4vw, 2.6rem);
    text-wrap: pretty;
  }

  .page-hero.cc-hero.shell.cc-hero--unified .cc-hero__art > svg,
  .page-hero.cc-hero.shell.cc-hero--unified.cc-hero--gulf .cc-hero__art > svg { max-height: 94px; }
}

@media (max-width: 620px) {
  .page-hero.cc-hero--unified ~ .shell,
  .page-hero.cc-hero--unified ~ .cc-hero__art,
  .page-hero.cc-hero.shell.cc-hero--unified .cc-hero__layout {
    width: min(calc(100% - 28px), var(--shell));
  }
}


.cc-hero--voice .cc-hero__art {
  color: #52715b;
  align-self: stretch;
  align-items: center;
  justify-content: center;
}

.cc-hero--voice .cc-voice-mark {
  font: 700 clamp(6.5rem, 13vw, 10rem)/.78 Georgia, serif;
  transform: translateY(.18em);
  opacity: .78;
}

.stories-feature .story-card--voice {
  height: auto;
}

.story-card--voice .story-card__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
}

.story-card--voice .story-card__media img {
  position: absolute;
  inset: 0;
  object-position: center 27%;
}

.story-card--voice .story-card__media {
  position: relative;
  display: block;
  min-height: 238px;
}

.story-card--voice figcaption {
  padding: 7px 12px 9px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: .78rem;
  line-height: 1.4;
}

.story-card--voice .story-card__copy > p:not(.story-card__contributor) {
  display: block;
}

.travel-story--voice {
  --story-gutter: 40px;
}

.travel-story--voice .travel-story__header {
  width: 100%;
  max-width: none;
  background: var(--cc-bg);
  padding-block: clamp(28px, 4vw, 52px) 24px;
}

.travel-story--voice .travel-story__header-grid,
.travel-story--voice .travel-story__header .breadcrumbs,
.travel-story--voice .travel-story__body {
  width: min(calc(100% - var(--story-gutter)), 760px);
  margin-inline: auto;
}

.travel-story--voice .travel-story__header-grid {
  display: block;
}

@media (max-width: 620px) {
  .travel-story--voice {
    --story-gutter: 28px;
  }
}

.travel-story--voice .breadcrumbs {
  margin-bottom: 24px;
}

.travel-story--voice .breadcrumbs span[aria-current] {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.travel-story--voice .travel-story__byline {
  margin: 16px 0 0;
}

.travel-story--voice .travel-story__body > p:first-child {
  margin-bottom: 0;
}

.travel-story--voice .travel-story__photo {
  margin-block: 24px 0;
}

.travel-story--voice .story-contributor p {
  margin-bottom: 0;
}

.travel-story--voice .story-back {
  margin-top: 30px;
}

@media (max-width: 760px) {
  .page-hero.cc-hero.shell.cc-hero--voice .cc-hero__art,
  .page-hero.cc-hero.shell.cc-hero--stories .cc-hero__art--card-photo {
    display: none;
  }

  .cc-hero--unified:not(.cc-hero--voice) + .section {
    padding-block-start: 28px;
  }

  .cc-hero--gulf .cc-island-links {
    justify-content: flex-start;
    order: -1;
  }

  .cc-hero__copy > .cc-island-links {
    margin-block-start: 15px;
  }

  .cc-hero--unified ~ .cc-hero__art > svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 94px;
  }

  .story-card__mobile-photo {
    margin: 0;
    min-width: 0;
  }

  .story-card__mobile-photo .story-card__media {
    display: block;
  }

  .story-card__mobile-photo .cc-photo-credit {
    color: #35565e;
    font: .8rem/1.45 system-ui, sans-serif;
    padding-inline: 12px;
    text-align: left;
  }

  .cc-hero--unified ~ .cc-hero__art .cc-photo-credits summary,
  .story-card__mobile-photo .cc-photo-credits summary {
    min-height: 44px;
  }

  .cc-hero--stories + .stories-feature .story-card__copy > p:not(.story-card__contributor) {
    display: block;
  }
}

@media (max-width: 820px) {
  .story-card--voice .story-card__figure {
    grid-template-rows: auto auto;
  }

  .story-card--voice .story-card__media {
    min-height: 0;
  }
}
