/* Shared palette and typography */
:root {
  color-scheme: light;
  --ink: #142e39;
  --ocean: #103e56;
  --deep: #103748;
  --link: #11586d;
  --muted: #47616a;
  --rule: #c6d4d4;
  --paper: #fafbf8;
  --wash: #edf3f1;
  --mint: #b9efd8;
  --focus: #ba501d;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.09; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6vw, 5.9rem); font-weight: 700; letter-spacing: -.068em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.85rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.22rem, 2vw, 1.55rem); letter-spacing: -.029em; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .21em; }
a:hover { color: #143944; text-decoration-thickness: .13em; }
a:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1250px, calc(100% - clamp(36px, 8.5vw, 136px))); margin-inline: auto; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; top: -10rem; left: .75rem; z-index: 9; background: white; padding: .65rem 1rem; }
.skip:focus { top: .5rem; }
.eyebrow, .field-label, .chart-note, .meta, .jurisdiction span { font: 600 .72rem/1.45 var(--mono); letter-spacing: .08em; }
.eyebrow, .field-label, .jurisdiction span { text-transform: uppercase; }
.eyebrow, .meta, .jurisdiction span { color: var(--muted); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.26rem); max-width: 69ch; line-height: 1.55; }
.jump, .text-link, .button { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-weight: 650; }
.arrow { font-weight: 400; }
p + p { margin-top: .8rem; }
/* Persistent navigation */
.mast { background: #fff; border-bottom: 1px solid var(--rule); }
.mast-inner { display: flex; align-items: center; min-height: 75px; gap: clamp(1.1rem, 3vw, 3rem); }
.brand { display: inline-flex; align-items: center; gap: .58rem; color: var(--ink); font-size: 1.65rem; font-weight: 750; letter-spacing: -.075em; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 6px; }
.suffix { color: var(--link); font-weight: 500; }
.desktop-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.9rem); margin-left: auto; }
.desktop-nav a, .desktop-directory, .mobile-nav a, .mobile-nav summary { display: flex; align-items: center; min-height: 44px; font-size: .91rem; font-weight: 600; text-decoration: none; }
.desktop-nav a { color: var(--ink); }
.desktop-nav a:hover, .desktop-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .36em; color: var(--link); }
.desktop-directory { gap: .65rem; padding-left: clamp(1rem, 1.8vw, 1.6rem); border-left: 1px solid var(--rule); }
.mobile-nav { display: none; }
.site-foot { border-top: 1px solid var(--rule); background: var(--wash); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding-block: 2.1rem; }
.foot-inner strong { font-size: 1.4rem; letter-spacing: -.06em; }
.foot-inner p { color: var(--muted); font-size: .87rem; }
.foot-links { display: flex; flex-wrap: wrap; column-gap: 1.3rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; }
/* The island selector */
.atlas { padding-block: clamp(2.3rem, 4.3vw, 4.2rem) 0; }
.atlas-title { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(1.45rem, 2.55vw, 2.3rem); }
.atlas-title h1 { margin-top: .5rem; }
.atlas-title > p { max-width: 31ch; margin-bottom: .18rem; color: var(--muted); font-size: 1.08rem; }
.selector { display: grid; grid-template-columns: minmax(245px, 1fr) minmax(0, 2.45fr); color: #fff; background: var(--ocean); border-radius: 7px; overflow: clip; }
.chart-field { position: relative; display: flex; align-items: center; min-width: 0; padding-bottom: 1.5rem; background: var(--ocean); }
.island-chart { width: 100%; height: auto; }
.chart-note { position: absolute; margin: 0; bottom: 10px; left: 17px; font-size: .63rem; color: #d3e8e7; }
.chart-note span { padding-inline: .25rem; color: #91b9c1; }
.sea-name { font: italic 18px Georgia, serif; letter-spacing: 2px; }
.north { font: 600 11px var(--mono); }
.map-link .depth { fill: none; stroke: #73a5ab; opacity: .52; stroke-width: 1; }
.map-link .land { fill: #91bcaf; stroke: #c4dfca; stroke-width: 1.4; }
.map-link .land-line { fill: none; stroke: #497e73; stroke-width: 1.1; opacity: .8; }
.map-link text { font: 600 17px var(--sans); fill: white; stroke: var(--ocean); stroke-width: 4px; paint-order: stroke; }
.map-link:hover .land, .map-link:focus .land, .map-link[aria-current="true"] .land { fill: #c1f2bb; stroke: #fff4cb; stroke-width: 2; }
.map-link:focus-visible { outline: none; }
.map-link:focus-visible .hit { stroke: #ffda8d; stroke-width: 3px; }
.choice-field { background: var(--deep); padding: clamp(1.15rem, 2.2vw, 2rem); border-right: 1px solid #477082; }
.choice-field h2 { color: #c1d8db; letter-spacing: .12em; margin: 0 0 .6rem; }
.selector-list { padding: 0; list-style: none; }
.selector-list li { border-top: 1px solid #477082; }
.selector-list a { display: flex; align-items: center; gap: .6rem; min-height: clamp(45px, 4vw, 60px); padding: .47rem .25rem; text-decoration: none; color: white; }
.selector-list strong { font-size: clamp(1rem, 1.45vw, 1.22rem); letter-spacing: -.025em; }
.selector-list a > span:not(.arrow) { margin-left: auto; font: .72rem var(--mono); color: #cbdfdf; white-space: nowrap; }
.selector-list .arrow { color: #b5decd; }
.selector-list a[aria-current="true"] strong { color: var(--mint); text-decoration: underline; text-underline-offset: .28em; }
.selector-list a:hover { background: #1e4c5e; }
.selector-list a:focus-visible, .island-heading a:focus-visible { outline-color: #ffda8d; outline-offset: 1px; }
/* Island references and directory */
.island-panel { padding-block: clamp(2.4rem, 4.5vw, 4rem); }
.island-panel + .island-panel { border-top: 1px solid var(--rule); }
.panel-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.45rem; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.3rem; }
.panel-head h2 { margin-top: .3rem; font-size: clamp(2.6rem, 4.9vw, 4.2rem); letter-spacing: -.06em; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.7vw, 3.5rem); }
.spec-grid > section { border-top: 3px solid var(--link); padding-top: 1rem; min-width: 0; }
.spec-grid h2, .spec-grid h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
.spec-grid p { margin-top: .7rem; }
.meta { font-size: .69rem; letter-spacing: .025em; }
.link-stack { list-style: none; padding: 0; margin-top: .65rem; }
.link-stack li { border-bottom: 1px solid var(--rule); }
.link-stack a { display: flex; justify-content: space-between; text-decoration: none; }
.link-stack a:hover { text-decoration: underline; }
.source { margin-block: .95rem; padding-left: .8rem; border-left: 2px solid #78a9a5; }
.source a { display: inline-block; padding-block: .15rem; font-weight: 650; }
.source small { display: block; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.review-date { display: inline; }
.wide-section { border-top: 1px solid var(--rule); padding-block: clamp(2.2rem, 3.7vw, 3.5rem); }
.wide-section > p { max-width: 66ch; margin-top: .8rem; }
.task-list { list-style: none; padding: 0; margin-top: 1.2rem; }
.task-list li, .directory-rows li { border-bottom: 1px solid var(--rule); }
.task-list a, .directory-rows a { display: grid; grid-template-columns: minmax(9rem, .7fr) minmax(0, 1.4fr) auto; align-items: center; gap: 1rem; min-height: 52px; padding: .9rem .2rem; text-decoration: none; }
.task-list a:hover, .directory-rows a:hover { background: var(--wash); }
.task-list strong, .directory-rows strong { color: var(--ink); font-size: 1.13rem; }
.task-list a > span:not(.arrow), .directory-rows a > span:not(.arrow) { color: var(--muted); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .85rem; color: var(--muted); }
.crumbs a { padding-block: .45rem; }
.page-heading, .community-heading > .wrap, .island-heading > .wrap { padding-block: 1.15rem clamp(2rem, 4vw, 3.7rem); }
.page-heading h1, .community-title, .island-heading-row { margin-top: clamp(1.25rem, 2.5vw, 2.5rem); }
.page-heading .lead, .community-heading .lead, .island-heading .lead { margin-top: .9rem; }
.island-heading { background: var(--ocean); color: #fff; }
.island-heading .crumbs, .island-heading .crumbs a, .island-heading .eyebrow, .island-heading .lead { color: #e0efed; }
.island-heading-row { display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 2rem; }
.island-heading-row h1, .community-title h1 { margin-top: .25rem; }
.locator { width: 100%; height: auto; }
.island-body { padding-block: 2.5rem; }
.island-notes { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.island-notes h2 { font-size: 1.65rem; margin-bottom: .7rem; }
.switcher, .jumpbar { display: flex; flex-wrap: wrap; gap: .5rem .7rem; align-items: center; }
.switcher { border-top: 1px solid var(--rule); margin-top: 2.1rem; padding-top: 1.2rem; }
.switcher a, .jumpbar a { display: inline-flex; align-items: center; min-height: 44px; padding: .42rem .85rem; border: 1px solid #9cb4b8; border-radius: 4px; font-weight: 600; text-decoration: none; }
.jumpbar { margin-bottom: 1.8rem; }
.switcher a:hover, .jumpbar a:hover { background: var(--wash); }
.directory-block, .resource-row { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(0, 1.7fr); gap: clamp(1.8rem, 5vw, 5rem); border-top: 1px solid var(--rule); padding-block: clamp(2rem, 3.7vw, 3.4rem); }
.directory-block h2, .resource-row h2 { margin-top: .34rem; }
.directory-rows { list-style: none; padding: 0; }
.directory-rows li:first-child { border-top: 1px solid var(--rule); }
.resource-row > div { max-width: 70ch; }
.resource-row h3 + p, .resource-row p + p { margin-top: .8rem; }
/* Community reference and service directories */
.community-heading { background: var(--wash); border-bottom: 1px solid var(--rule); }
.community-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.jurisdiction { border-left: 3px solid var(--link); padding-left: 1rem; }
.jurisdiction span, .jurisdiction strong { display: block; }
.jurisdiction strong { margin-top: .2rem; font-size: 1.1rem; }
.city-first, .city-details, .owner-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); }
.city-first, .city-details { padding-block: clamp(2rem, 3.8vw, 3.5rem); }
.city-first h2 { font-size: clamp(1.65rem, 2.9vw, 2.5rem); margin: .4rem 0 .8rem; }
.city-details { border-top: 1px solid var(--rule); }
.city-details h2 { margin-bottom: 1.4rem; }
.city-details h3, .owner-directory h3 { margin: .45rem 0 .7rem; }
.juris-task, .story-section { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.nearby { padding-block: 1.7rem 2.8rem; border-top: 1px solid var(--rule); }
.nearby h2 { font-size: 1.7rem; }
.nearby .link-stack { max-width: 520px; }
.owner-directory { margin-top: 1.5rem; gap: 1.8rem 3.5rem; }
.owner-directory > section { padding-top: 1rem; border-top: 2px solid var(--link); }
.support-page { padding-bottom: 2.8rem; }
.support-page .actions, .error-page .actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.button { background: var(--ocean); color: #fff; padding: .65rem 1rem; border-radius: 4px; text-decoration: none; }
.button:hover { color: white; background: var(--deep); }
.form-area iframe { width: 100%; height: 780px; border: 1px solid var(--rule); background: #fff; }
.prose section { padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.prose section > h2 { margin-bottom: 1rem; }
.source-links a { display: inline-block; padding-block: .5rem; }
.error-page { padding-block: 4rem; }
.error-page .lead, .error-page .actions { margin-top: 1.2rem; }
/* Compact navigation puts the island selector before general resources. */
@media (max-width: 940px) {
  .desktop-directory { display: none; }
  .atlas-title { align-items: start; flex-direction: column; gap: .65rem; }
  .atlas-title > p { max-width: 60ch; }
  .selector { grid-template-columns: minmax(215px, 1fr) minmax(0, 1.8fr); }
}
@media (max-width: 720px) {
  .mast-inner { min-height: 65px; justify-content: space-between; gap: .65rem; }
  .desktop-nav, .desktop-directory { display: none; }
  .mobile-nav { position: relative; display: flex; gap: .8rem; align-items: center; }
  .mobile-islands { text-decoration: underline !important; }
  .mobile-nav summary { cursor: pointer; min-height: 44px; padding-inline: .5rem; color: var(--ink); }
  .mobile-nav summary::after { content: "⌄"; padding-left: .3rem; }
  .mobile-menu { position: absolute; z-index: 3; right: 0; top: 100%; min-width: 190px; padding: .45rem 1rem; background: white; border: 1px solid var(--rule); box-shadow: 0 8px 16px #1234421c; }
  .mobile-menu a + a { border-top: 1px solid var(--rule); }
  .atlas { padding-top: 1.8rem; }
  .selector { grid-template-columns: 1fr; }
  .choice-field { grid-row: 1; padding: 1rem; border: 0; border-bottom: 1px solid #477082; }
  .selector-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.1rem; }
  .selector-list a { min-height: 46px; }
  .selector-list a > span:not(.arrow) { display: none; }
  .selector-list .arrow { margin-left: auto; }
  .chart-field { padding-bottom: 1rem; }
  .chart-note { bottom: 5px; left: 12px; font-size: .59rem; }
  .island-chart .map-link text { font-size: 21px; }
  .spec-grid, .island-notes, .city-first, .city-details, .owner-directory { grid-template-columns: 1fr; gap: 1.65rem; }
  .spec-grid > section { border-top-width: 2px; }
  .foot-inner { align-items: start; }
  .directory-block, .resource-row { grid-template-columns: 1fr; gap: 1rem; }
  .community-title { display: grid; align-items: start; }
  .jurisdiction { font-size: .95rem; }
  .island-heading-row { grid-template-columns: 1fr; gap: 0; }
  .locator { display: none; }
}
@media (max-width: 460px) {
  .brand { font-size: 1.32rem; gap: .35rem; }
  .brand img { width: 28px; height: 28px; }
  .mobile-nav { gap: .3rem; }
  .mobile-nav a, .mobile-nav summary { font-size: .85rem; }
  .task-list a, .directory-rows a { grid-template-columns: 1fr auto; gap: .18rem .6rem; }
  .task-list a > span:not(.arrow), .directory-rows a > span:not(.arrow) { grid-column: 1; font-size: .92rem; }
  .task-list .arrow, .directory-rows .arrow { grid-column: 2; grid-row: 1/3; }
  .panel-head { align-items: start; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
