/* EASYSUNCOAST-VISUAL-FOUNDATION-HUB-MODERNIZATION-1 */

:root {
  --esc-ink: #17343b;
  --esc-muted: #50686c;
  --esc-blue: #0d7081;
  --esc-blue-dark: #075162;
  --esc-aqua: #dff4f2;
  --esc-sand: #fff7e8;
  --esc-sand-deep: #f3dfb5;
  --esc-palm: #2e6d55;
  --esc-coral: #d86f52;
  --esc-surface: #ffffff;
  --esc-border: rgba(23, 52, 59, 0.14);
  --esc-shadow: 0 18px 50px rgba(22, 62, 70, 0.12);
}

main.container:has(.esc-hub-hero) {
  width: min(1360px, calc(100vw - 36px));
  max-width: none;
}

.page:has(.esc-hub-hero) {
  width: 100%;
  max-width: none;
}

.page:has(.esc-hub-hero) > h1,
.page:has(.esc-hub-hero) > .lede,
.mx-article-surface:has(.esc-hub-hero) > h1,
.mx-article-surface:has(.esc-hub-hero) > .lede,
.page:has(.esc-hub-hero) > h1:first-child,
.page:has(.esc-hub-hero) > .lede:first-of-type,
.page:has(.esc-hub-hero) > .page__description,
.page:has(.esc-hub-hero) > .page-description,
.page:has(.esc-hub-hero) > .mx-page-description,
.page:has(.esc-hub-hero) > .mx-page-header,
.page:has(.esc-hub-hero) > .mx-page-heading,
.page:has(.esc-hub-hero) > .page__header,
.page:has(.esc-hub-hero) > .page-header,
.page:has(.esc-hub-hero) > header:first-child,
.mx-article-surface:has(.esc-hub-hero) > h1:first-child,
.mx-article-surface:has(.esc-hub-hero) > .lede:first-of-type,
.mx-article-surface:has(.esc-hub-hero) > .page__description,
.mx-article-surface:has(.esc-hub-hero) > .page-description,
.mx-article-surface:has(.esc-hub-hero) > .mx-page-description,
.mx-article-surface:has(.esc-hub-hero) > .mx-page-header,
.mx-article-surface:has(.esc-hub-hero) > .mx-page-heading,
.mx-article-surface:has(.esc-hub-hero) > .page__header,
.mx-article-surface:has(.esc-hub-hero) > .page-header,
.mx-article-surface:has(.esc-hub-hero) > header:first-child {
  display: none;
}

.page:has(.esc-hub-hero) .mx-article-surface {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.esc-hub-hero,
.esc-hub-section,
.esc-ai-handoff,
.esc-editorial-band {
  box-sizing: border-box;
}

/* EASYSUNCOAST-COMPACT-HERO-AI-HIERARCHY-POLISH-1 */

/* The global AI utility remains available above the page. On secondary hubs,
   remove the generated multi-action page prompt so the masthead is the next
   clear visual layer. The selectors are deliberately scoped to the new hub
   marker and leave ordinary article/place pages unchanged. */
.page:has(.esc-hub-hero--secondary) > [aria-label*="AI about this page" i],
.page:has(.esc-hub-hero--secondary) > .mx-page-ai,
.page:has(.esc-hub-hero--secondary) > .mx-page-assist,
.page:has(.esc-hub-hero--secondary) > .mx-page-prompt,
.page:has(.esc-hub-hero--secondary) > .mx-contextual-ai,
.page:has(.esc-hub-hero--secondary) > :has(> form:nth-of-type(2)),
.page:has(.esc-hub-hero--secondary) > :has(> * > form:nth-of-type(2)),
.mx-article-surface:has(.esc-hub-hero--secondary) > [aria-label*="AI about this page" i],
.mx-article-surface:has(.esc-hub-hero--secondary) > .mx-page-ai,
.mx-article-surface:has(.esc-hub-hero--secondary) > .mx-page-assist,
.mx-article-surface:has(.esc-hub-hero--secondary) > .mx-page-prompt,
.mx-article-surface:has(.esc-hub-hero--secondary) > .mx-contextual-ai,
.mx-article-surface:has(.esc-hub-hero--secondary) > :has(> form:nth-of-type(2)),
.mx-article-surface:has(.esc-hub-hero--secondary) > :has(> * > form:nth-of-type(2)) {
  display: none;
}

.esc-hub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.7fr);
  min-height: clamp(220px, 19vw, 260px);
  margin: 0.85rem 0 1.7rem;
  overflow: hidden;
  border: 1px solid var(--esc-border);
  border-radius: 20px;
  color: var(--esc-ink);
  background: linear-gradient(145deg, #ffffff 0%, #f3faf8 58%, #fff8ea 100%);
  box-shadow: 0 8px 24px rgba(22, 62, 70, 0.07);
}

.esc-hub-hero--home {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  min-height: clamp(280px, 23vw, 320px);
}

.esc-hub-hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 900px;
  padding: clamp(1.15rem, 2.2vw, 1.75rem);
}

.esc-hub-hero__eyebrow,
.esc-section-eyebrow,
.esc-choice-card__eyebrow,
.esc-link-panel__eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.esc-hub-hero__eyebrow {
  color: var(--esc-blue);
}

.esc-hub-hero h1 {
  max-width: 28ch;
  margin: 0;
  color: var(--esc-ink);
  font-size: clamp(2.05rem, 3.2vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.esc-hub-hero--home h1 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 4vw, 3.15rem);
}

.esc-hub-hero__deck {
  max-width: 66ch;
  margin: 0.58rem 0 0;
  color: var(--esc-muted);
  font-size: clamp(0.96rem, 1.2vw, 1.04rem);
  line-height: 1.48;
}

.esc-hub-hero__chips,
.esc-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.esc-hub-chip,
.esc-hub-chip:visited {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(13, 112, 129, 0.24);
  border-radius: 999px;
  color: var(--esc-blue-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.esc-hub-chip:hover,
.esc-hub-chip:focus-visible {
  color: #fff;
  background: var(--esc-blue);
  border-color: var(--esc-blue);
}

.esc-hub-chip--ai,
.esc-hub-chip--ai:visited {
  color: var(--esc-blue-dark);
  background: var(--esc-aqua);
  border-color: rgba(13, 112, 129, 0.24);
}

/* EASYSUNCOAST-WIKIMEDIA-HUB-HERO-ROLLOUT-1 */

.esc-hub-hero__visual {
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #dbe8e5;
  isolation: isolate;
}

.esc-hub-hero__visual picture {
  position: absolute;
  inset: 0;
  display: block;
}

.esc-hub-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.esc-hub-hero__visual::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(243, 250, 248, 0.42) 0%, rgba(243, 250, 248, 0.06) 36%, transparent 62%),
    linear-gradient(180deg, transparent 58%, rgba(7, 49, 59, 0.3) 100%);
}

.esc-hub-hero__credit {
  position: absolute;
  z-index: 2;
  right: 0.5rem;
  bottom: 0.45rem;
  max-width: calc(100% - 1rem);
  padding: 0.28rem 0.42rem;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 49, 59, 0.72);
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: right;
}

.esc-hub-hero__credit a,
.esc-hub-hero__credit a:visited {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 0.14em;
}

.esc-hub-hero__credit a:hover,
.esc-hub-hero__credit a:focus-visible {
  text-decoration-color: #fff;
}

.esc-hub-hero--home .esc-hub-hero__visual img { object-position: 54% center; }
.esc-hub-hero--places .esc-hub-hero__visual img { object-position: 52% center; }
.esc-hub-hero--beaches .esc-hub-hero__visual img { object-position: 52% 54%; }
.esc-hub-hero--food .esc-hub-hero__visual img { object-position: 56% center; }
.esc-hub-hero--outdoor .esc-hub-hero__visual img { object-position: 46% center; }
.esc-hub-hero--parks .esc-hub-hero__visual img { object-position: 56% center; }
.esc-hub-hero--weekend .esc-hub-hero__visual img { object-position: 42% center; }
.esc-hub-hero--guides .esc-hub-hero__visual img { object-position: 58% center; }

.esc-hub-section {
  margin: 2.4rem 0;
}

.esc-hub-section--soft,
.esc-editorial-band {
  padding: clamp(1.3rem, 3vw, 2.25rem);
  border: 1px solid var(--esc-border);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #f6fbfa 100%);
  box-shadow: 0 12px 36px rgba(22, 62, 70, 0.07);
}

.esc-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.56fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.esc-section-heading h2 {
  margin: 0;
  color: var(--esc-ink);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.esc-section-heading p {
  margin: 0;
  color: var(--esc-muted);
  line-height: 1.65;
}

.esc-section-eyebrow,
.esc-choice-card__eyebrow,
.esc-link-panel__eyebrow {
  color: var(--esc-blue);
}

.esc-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.esc-choice-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.esc-choice-card,
.esc-choice-card:visited {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 225px;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--esc-border);
  border-radius: 22px;
  color: var(--esc-ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 62, 70, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.esc-choice-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--esc-blue), #4eb4ae);
}

.esc-choice-card--sand::before { background: linear-gradient(90deg, #c78e36, #f0c36d); }
.esc-choice-card--green::before { background: linear-gradient(90deg, var(--esc-palm), #6fa47e); }
.esc-choice-card--coral::before { background: linear-gradient(90deg, var(--esc-coral), #eda383); }

.esc-choice-card:hover,
.esc-choice-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(13, 112, 129, 0.36);
  box-shadow: 0 18px 42px rgba(22, 62, 70, 0.14);
}

.esc-choice-card h3 {
  margin: 0;
  color: var(--esc-ink);
  font-size: 1.27rem;
  line-height: 1.18;
}

.esc-choice-card p {
  margin: 0.75rem 0 1.15rem;
  color: var(--esc-muted);
  line-height: 1.58;
}

.esc-choice-card__cta {
  margin-top: auto;
  color: var(--esc-blue-dark);
  font-weight: 800;
}

.esc-choice-card__cta::after {
  content: ' ->';
}

.esc-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.esc-link-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esc-link-panel {
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--esc-border);
  border-radius: 20px;
  background: var(--esc-surface);
}

.esc-link-panel h2,
.esc-link-panel h3 {
  margin: 0 0 0.65rem;
  color: var(--esc-ink);
  line-height: 1.18;
}

.esc-link-panel p {
  color: var(--esc-muted);
  line-height: 1.58;
}

.esc-link-panel ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
}

.esc-link-panel li + li {
  margin-top: 0.52rem;
}

.esc-link-panel a {
  font-weight: 700;
}

.esc-town-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.esc-town-card,
.esc-town-card:visited {
  display: grid;
  min-height: 148px;
  padding: 1.1rem;
  border: 1px solid var(--esc-border);
  border-radius: 19px;
  color: var(--esc-ink);
  background: linear-gradient(145deg, #fff 0%, var(--esc-sand) 100%);
  text-decoration: none;
}

.esc-town-card strong {
  font-size: 1.12rem;
}

.esc-town-card span {
  align-self: end;
  margin-top: 0.6rem;
  color: var(--esc-muted);
  line-height: 1.45;
}

.esc-town-card:hover,
.esc-town-card:focus-visible {
  border-color: rgba(13, 112, 129, 0.42);
  box-shadow: 0 12px 28px rgba(22, 62, 70, 0.1);
}

.esc-ai-handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1.75rem 0;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--esc-border);
  border-left: 4px solid var(--esc-blue);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.esc-ai-handoff h2,
.esc-ai-handoff h3 {
  margin: 0;
  color: var(--esc-ink);
}

.esc-ai-handoff p {
  max-width: 66ch;
  margin: 0.5rem 0 0;
  color: var(--esc-muted);
  line-height: 1.58;
}

.esc-button,
.esc-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--esc-blue);
  border-radius: 999px;
  color: #fff;
  background: var(--esc-blue);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.esc-button:hover,
.esc-button:focus-visible {
  color: #fff;
  background: var(--esc-blue-dark);
  border-color: var(--esc-blue-dark);
}

.esc-button--secondary,
.esc-button--secondary:visited {
  color: var(--esc-blue-dark);
  background: #fff;
}

.esc-compact-links {
  columns: 2;
  column-gap: 2rem;
}

.esc-compact-links li {
  break-inside: avoid;
  margin-bottom: 0.52rem;
}

.esc-followup-links {
  margin: 1rem 0 0;
  color: var(--esc-muted);
  line-height: 1.55;
}

.esc-followup-links a {
  font-weight: 750;
}

.esc-reading-column {
  max-width: 780px;
}

.esc-reading-column p,
.esc-reading-column li {
  line-height: 1.7;
}

.esc-editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: start;
}

.esc-editorial-band h2 {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .esc-choice-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esc-link-grid--three,
  .esc-town-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  main.container:has(.esc-hub-hero) {
    width: min(100%, calc(100vw - 24px));
  }

  .esc-hub-hero {
    grid-template-columns: minmax(0, 1fr) 190px;
    min-height: 230px;
  }

  .esc-hub-hero--home {
    grid-template-columns: minmax(0, 1fr) 220px;
    min-height: 280px;
  }

  .esc-hub-hero__content {
    padding: 1.15rem;
  }

  .esc-hub-hero h1 {
    font-size: clamp(1.95rem, 4.7vw, 2.45rem);
  }

  .esc-hub-hero--home h1 {
    font-size: clamp(2.2rem, 5.6vw, 2.8rem);
  }

  .esc-choice-grid,
  .esc-link-grid,
  .esc-link-grid--three,
  .esc-section-heading,
  .esc-ai-handoff,
  .esc-editorial-band {
    grid-template-columns: 1fr;
  }

  .esc-ai-handoff .esc-inline-actions {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .esc-hub-hero,
  .esc-hub-hero--home {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .esc-hub-hero__visual {
    min-height: 92px;
  }

  .esc-hub-hero--secondary .esc-hub-hero__visual {
    min-height: 72px;
  }
}

@media (max-width: 620px) {
  .esc-hub-hero {
    margin-top: 0.65rem;
    border-radius: 16px;
  }

  .esc-hub-hero__content {
    padding: 0.95rem 1rem;
  }

  .esc-hub-hero h1 {
    font-size: clamp(1.9rem, 9.4vw, 2.35rem);
  }

  .esc-hub-hero--home h1 {
    font-size: clamp(2.05rem, 10.2vw, 2.55rem);
  }

  .esc-hub-hero--secondary .esc-hub-hero__visual {
    display: none;
  }

  .esc-hub-hero--home .esc-hub-hero__visual {
    display: none;
  }

  .esc-hub-hero--home .esc-hub-hero__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.75rem;
  }

  .esc-hub-hero--home .esc-hub-chip,
  .esc-hub-hero--home .esc-hub-chip:visited {
    justify-content: center;
    min-height: 32px;
    padding: 0.42rem 0.35rem;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .esc-choice-grid,
  .esc-choice-grid--four,
  .esc-town-grid {
    grid-template-columns: 1fr;
  }

  .esc-choice-card {
    min-height: 0;
  }

  .esc-compact-links {
    columns: 1;
  }

  .esc-hub-section--soft,
  .esc-editorial-band {
    padding: 1.05rem;
    border-radius: 19px;
  }

  .esc-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .esc-button,
  .esc-button:visited {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .esc-choice-card {
    transition: none;
  }
}

/* EASYSUNCOAST-WIKIMEDIA-PLACE-HERO-ROLLOUT-1 */
.mx-place-page-hero__credit {
  display: block;
  margin-top: 0.35rem;
  color: #5f716e;
  font-size: 0.72rem;
  line-height: 1.45;
}

.mx-place-page-hero__credit a,
.mx-place-page-hero__credit a:visited {
  color: #315f5a;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.mx-place-page-hero__credit a:hover,
.mx-place-page-hero__credit a:focus-visible {
  color: #174945;
}



/* EASYSUNCOAST-OSM-DECISION-MAP-ROLLOUT-1 */
.esc-map-section {
  margin: 1.7rem 0;
}

.esc-decision-map {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(240px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.esc-decision-map__figure {
  min-width: 0;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--esc-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 62, 70, 0.08);
}

.esc-decision-map__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  border-radius: 14px;
  background: var(--esc-aqua);
}

.esc-decision-map__figure figcaption {
  margin: 0;
}

.esc-map-credit {
  margin: 0.45rem 0 0.05rem;
  color: var(--esc-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.esc-map-credit a,
.esc-map-credit a:visited {
  color: var(--esc-blue-dark);
  text-underline-offset: 0.14em;
}

.esc-map-key {
  display: grid;
  gap: 0.55rem;
}

.esc-map-key__item,
.esc-map-key__item:visited {
  display: grid;
  gap: 0.15rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(23, 52, 59, 0.12);
  border-radius: 14px;
  color: var(--esc-ink);
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.esc-map-key__item:hover,
.esc-map-key__item:focus-visible {
  border-color: rgba(13, 112, 129, 0.42);
  background: var(--esc-aqua);
  box-shadow: 0 8px 20px rgba(22, 62, 70, 0.08);
}

.esc-map-key__item strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.esc-map-key__item span {
  color: var(--esc-muted);
  font-size: 0.78rem;
  line-height: 1.38;
}

.esc-map-note {
  margin: 0.8rem 0 0;
  padding-left: 0.85rem;
  border-left: 3px solid var(--esc-sand-deep);
  color: var(--esc-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.esc-map-section--article {
  box-sizing: border-box;
  margin: 1.45rem 0 1.9rem;
  padding: clamp(1rem, 2.3vw, 1.45rem);
  border: 1px solid var(--esc-border);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffdf8, #f3faf8);
}

.esc-map-section--article .esc-section-heading {
  margin-bottom: 1rem;
}

.esc-map-section--article .esc-decision-map {
  grid-template-columns: 1fr;
}

.esc-map-section--article .esc-map-key--route {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1040px) {
  .esc-decision-map {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
  }

  .esc-map-section--article .esc-map-key--route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .esc-decision-map {
    grid-template-columns: 1fr;
  }

  .esc-map-key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .esc-map-section {
    margin: 1.25rem 0;
  }

  .esc-decision-map__figure {
    padding: 0.35rem;
    border-radius: 16px;
  }

  .esc-decision-map__figure img {
    border-radius: 12px;
  }

  .esc-map-key,
  .esc-map-section--article .esc-map-key--route {
    grid-template-columns: 1fr;
  }

  .esc-map-key__item {
    padding: 0.65rem 0.72rem;
  }

  .esc-map-section--article {
    padding: 0.9rem;
    border-radius: 18px;
  }
}


/* EASYSUNCOAST-SECONDARY-PAGE-VISUAL-POLISH-1 */
.esc-wide-breakout {
  box-sizing: border-box;
  position: relative;
  left: 50%;
  width: min(1120px, calc(100vw - 36px));
  max-width: none;
  margin: 1.55rem 0 1.9rem;
  transform: translateX(-50%);
}

.esc-article-feature,
.esc-snapshot-section {
  box-sizing: border-box;
  border: 1px solid var(--esc-border);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffdf8, #f3faf8);
  box-shadow: 0 10px 28px rgba(22, 62, 70, 0.07);
}

.esc-article-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
  padding: 0.65rem;
}

.esc-article-feature__media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 52, 59, 0.1);
  border-radius: 17px;
  background: #fff;
}

.esc-article-feature__media picture,
.esc-article-feature__media img {
  display: block;
  width: 100%;
}

.esc-article-feature__media img {
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  background: var(--esc-aqua);
}

.esc-article-credit {
  display: grid;
  gap: 0.25rem;
  padding: 0.62rem 0.72rem 0.68rem;
  color: var(--esc-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.esc-article-credit > span:first-child {
  color: var(--esc-ink);
  font-size: 0.78rem;
  font-weight: 650;
}

.esc-article-credit a,
.esc-article-credit a:visited {
  color: var(--esc-blue-dark);
  text-underline-offset: 0.14em;
}

.esc-article-feature__summary {
  align-self: center;
  padding: clamp(0.75rem, 1.8vw, 1.15rem);
}

.esc-article-feature__summary > h2,
.esc-snapshot-section .esc-section-heading > h2,
.esc-article-map .esc-section-heading > h2 {
  margin: 0;
  color: var(--esc-ink);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.esc-snapshot-section {
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.esc-snapshot-section .esc-section-heading,
.esc-article-map .esc-section-heading {
  display: block;
  max-width: 760px;
  margin-bottom: 1rem;
}

.esc-snapshot-section .esc-section-heading > p:last-child,
.esc-article-map .esc-section-heading > p:last-child {
  margin: 0.55rem 0 0;
  color: var(--esc-muted);
  line-height: 1.55;
}

.esc-snapshot-grid,
.esc-pivot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 0.72rem;
}

.esc-snapshot-grid--stacked {
  grid-template-columns: 1fr;
}

.esc-snapshot-card,
.esc-snapshot-card:visited {
  display: block;
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(23, 52, 59, 0.12);
  border-radius: 15px;
  color: var(--esc-ink);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.esc-snapshot-card[href]:hover,
.esc-snapshot-card[href]:focus-visible {
  border-color: rgba(13, 112, 129, 0.42);
  background: var(--esc-aqua);
  box-shadow: 0 8px 20px rgba(22, 62, 70, 0.08);
}

.esc-snapshot-card__label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--esc-blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.esc-snapshot-card h3 {
  margin: 0;
  color: var(--esc-ink);
  font-size: 1rem;
  line-height: 1.25;
}

.esc-snapshot-card p {
  margin: 0.38rem 0 0;
  color: var(--esc-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.esc-pivot-grid .esc-snapshot-card {
  border-left: 4px solid var(--esc-sand-deep);
}

.esc-article-map {
  padding: clamp(1rem, 2.3vw, 1.45rem);
}

.esc-map-section--article.esc-article-map .esc-decision-map {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}

.esc-article-map .esc-map-key {
  align-content: start;
}

@media (max-width: 900px) {
  .esc-article-feature {
    grid-template-columns: 1fr;
  }

  .esc-article-feature__summary {
    padding: 0.8rem;
  }

  .esc-snapshot-grid--stacked {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .esc-map-section--article.esc-article-map .esc-decision-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .esc-wide-breakout {
    width: calc(100vw - 24px);
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .esc-article-feature,
  .esc-snapshot-section {
    border-radius: 18px;
  }

  .esc-article-feature {
    padding: 0.42rem;
  }

  .esc-article-feature__media {
    border-radius: 14px;
  }

  .esc-article-feature__summary {
    padding: 0.72rem;
  }

  .esc-snapshot-grid,
  .esc-pivot-grid,
  .esc-snapshot-grid--stacked {
    grid-template-columns: 1fr;
  }

  .esc-snapshot-section,
  .esc-article-map {
    padding: 0.9rem;
  }
}

/* EASYSUNCOAST-SECONDARY-PAGE-WIDTH-ALIGNMENT-1 */

/* Secondary pages with a visual decision layer now use one coherent wide
   composition frame. Long-form text stays in a readable inner column while
   photographs, maps, and card sections occupy the broader visual surface. */
main.container:has(.esc-wide-breakout) {
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 36px));
  max-width: none;
}

.page:has(.esc-wide-breakout),
.page:has(.esc-wide-breakout) > .mx-article-surface {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  overflow: visible;
}

/* Keep the generated page-level AI utility and contextual prompt at their
   renderer-defined full-width treatment. Only genuine article children use
   the narrower reading measure. */
.page:has(.esc-wide-breakout) > .mx-article-surface > :not(.esc-wide-breakout) {
  width: min(100%, 960px);
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}

.esc-wide-breakout {
  position: static;
  left: auto;
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  transform: none;
}

@media (max-width: 680px) {
  main.container:has(.esc-wide-breakout) {
    width: calc(100vw - 24px);
  }

  .page:has(.esc-wide-breakout) > .mx-article-surface > :not(.esc-wide-breakout) {
    width: 100%;
    max-width: none;
  }

  .esc-wide-breakout {
    width: 100%;
  }
}

/* EASYSUNCOAST-SECONDARY-PAGE-VISUAL-POLISH-2 */
.esc-comparison-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.78rem;
}

.esc-comparison-option,
.esc-comparison-option:visited {
  display: block;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(23, 52, 59, 0.13);
  border-top: 4px solid var(--esc-sand-deep);
  border-radius: 16px;
  color: var(--esc-ink);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.esc-comparison-option[href]:hover,
.esc-comparison-option[href]:focus-visible {
  border-color: rgba(13, 112, 129, 0.38);
  border-top-color: var(--esc-blue);
  background: var(--esc-aqua);
  box-shadow: 0 8px 20px rgba(22, 62, 70, 0.08);
}

.esc-comparison-option__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--esc-blue);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.esc-comparison-option h3,
.esc-plan-step h3 {
  margin: 0;
  color: var(--esc-ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.esc-comparison-option p,
.esc-plan-step p {
  margin: 0.4rem 0 0;
  color: var(--esc-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.esc-plan-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.76rem;
}

.esc-plan-step {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(23, 52, 59, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
}

.esc-plan-step__number {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  color: #fff;
  background: var(--esc-blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.esc-plan-stop {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border-left: 4px solid var(--esc-sand-deep);
  border-radius: 0 12px 12px 0;
  color: var(--esc-muted);
  background: rgba(255, 250, 237, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}

.esc-plan-stop strong {
  color: var(--esc-ink);
}

.esc-article-feature--itinerary {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
}

.esc-article-feature--itinerary .esc-plan-sequence--compact {
  grid-template-columns: 1fr;
  margin-top: 0.85rem;
}

.esc-article-feature--itinerary .esc-plan-stop {
  grid-column: auto;
}

.esc-snapshot-section--pivot .esc-snapshot-card {
  border-left: 4px solid var(--esc-sand-deep);
}

@media (max-width: 900px) {
  .esc-article-feature--itinerary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .esc-comparison-band,
  .esc-plan-sequence {
    grid-template-columns: 1fr;
  }
}

/* EASYSUNCOAST-MOVING-LIVING-VISUAL-POLISH-1 */
.esc-article-feature--relocation {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
}

.esc-article-feature--relocation .esc-comparison-band,
.esc-article-feature--relocation .esc-plan-sequence--compact {
  grid-template-columns: 1fr;
  margin-top: 0.85rem;
}

.esc-article-feature--relocation .esc-plan-stop {
  grid-column: auto;
}

@media (max-width: 900px) {
  .esc-article-feature--relocation {
    grid-template-columns: 1fr;
  }
}


/* EASYSUNCOAST-PRINTABLE-LIBRARY-FLAGSHIP-1 */
.esc-hub-hero--printables .esc-hub-hero__visual {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(145deg, #eaf7f5 0%, #fff6e3 100%);
}
.esc-hub-hero--printables .esc-hub-hero__visual::after { display: none; }
.esc-hub-hero--printables .esc-hub-hero__visual img {
  width: auto;
  height: min(250px, 88%);
  max-width: 88%;
  object-fit: contain;
  border-radius: 0.6rem;
  box-shadow: 0 18px 40px rgba(23, 52, 59, 0.18);
}
.esc-printable-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.6rem;
  padding: 1rem;
  border: 1px solid var(--esc-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #f1fbf9 0%, #fff8e9 100%);
}
.esc-printable-summary > div {
  display: grid;
  gap: 0.1rem;
  align-content: center;
  min-height: 74px;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
}
.esc-printable-summary strong { color: var(--esc-blue-dark); font-size: 1.65rem; line-height: 1; }
.esc-printable-summary span { color: var(--esc-muted); font-size: 0.88rem; font-weight: 700; }
.esc-printable-summary > p { grid-column: 1 / -1; margin: 0; color: var(--esc-muted); line-height: 1.55; }
.esc-printable-feature {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
  align-items: center;
  margin: 0 0 1.7rem;
  padding: clamp(1rem, 2vw, 1.45rem);
  border: 1px solid rgba(13,112,129,0.18);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f1faf8 56%, #fff4df 100%);
  box-shadow: var(--esc-shadow);
}
.esc-printable-feature__media { display: grid; place-items: center; }
.esc-printable-feature__media img {
  display: block;
  width: min(100%, 250px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(23,52,59,0.16);
}
.esc-printable-feature__copy h2 { margin: 0 0 0.55rem; color: var(--esc-ink); }
.esc-printable-feature__copy > p:not(.esc-section-eyebrow) { color: var(--esc-muted); line-height: 1.62; }
.esc-printable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.esc-printable-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.esc-printable-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.esc-printable-card {
  display: grid;
  grid-template-columns: minmax(120px, 32%) minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--esc-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23,52,59,0.08);
}
.esc-printable-grid--three .esc-printable-card { grid-template-columns: minmax(104px, 36%) minmax(0, 1fr); }
.esc-printable-card > img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center top;
  background: var(--esc-aqua);
}
.esc-printable-card__body { display: flex; flex-direction: column; min-width: 0; padding: 1rem; }
.esc-printable-card__meta { margin: 0 0 0.35rem; color: var(--esc-blue); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.esc-printable-card h3 { margin: 0 0 0.45rem; color: var(--esc-ink); font-size: 1.05rem; line-height: 1.25; }
.esc-printable-card__body > p:not(.esc-printable-card__meta) { margin: 0; color: var(--esc-muted); font-size: 0.9rem; line-height: 1.5; }
.esc-printable-card__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: auto; padding-top: 0.9rem; }
.esc-printable-card__actions a,
.esc-printable-card__actions a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(13,112,129,0.22);
  border-radius: 999px;
  color: var(--esc-blue-dark);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}
.esc-printable-card__actions a:first-child,
.esc-printable-card__actions a:first-child:visited { color: #fff; background: var(--esc-blue-dark); border-color: var(--esc-blue-dark); }
.esc-printable-card__actions a:hover { transform: translateY(-1px); }
.esc-printable-card--wide { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }
@media (max-width: 1040px) {
  .esc-printable-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .esc-printable-summary { grid-template-columns: 1fr; }
  .esc-printable-summary > p { grid-column: auto; }
  .esc-printable-feature { grid-template-columns: 1fr; }
  .esc-printable-feature__media img { width: min(70vw, 250px); }
  .esc-printable-grid,
  .esc-printable-grid--three { grid-template-columns: 1fr; }
  .esc-printable-card,
  .esc-printable-grid--three .esc-printable-card,
  .esc-printable-card--wide { grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .esc-printable-card,
  .esc-printable-grid--three .esc-printable-card,
  .esc-printable-card--wide { grid-template-columns: 1fr; }
  .esc-printable-card > img { width: 100%; height: auto; max-height: 330px; object-fit: contain; }
}
