:root {
  --keyvista-canopy: #17352f;
  --anclote-shell: #fbf7ec;
  --vista-gulf: #175b70;
  --squall-lagoon: #247d78;
  --west-sunset: #8f3f2e;
  --key-foam: #dcebe5;
  --palma-sand: #e9dfca;
  --vista-depth: #0d2a36;
  --sunlit-page: #fffef9;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--keyvista-canopy);
  background: var(--anclote-shell);
  font:
    18px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--vista-gulf);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
a:hover {
  color: var(--west-sunset);
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #d68a35;
  outline-offset: 4px;
  border-radius: 3px;
}
.skip-wave {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--vista-depth);
  color: white;
  transform: translateY(-160%);
}
.skip-wave:focus {
  transform: none;
}
.gulfmast {
  background: var(--vista-depth);
  color: white;
}
.mast-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: auto;
  padding: 1.05rem 0 0.65rem;
}
.mast-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-name {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: white;
  font: 750 clamp(1.15rem, 3vw, 1.55rem)/1.1 system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}
.all-questions {
  display: none;
  min-height: 44px;
  align-items: center;
  color: white;
  font-weight: 750;
}
.place-line {
  margin: 0.1rem 0 0.8rem;
  color: #cfe2dc;
  font-size: 0.94rem;
}
.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  padding: 0.2rem 0 0.45rem;
}
.topic-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.7rem;
  color: white;
  border-radius: 0.35rem;
  text-decoration: none;
}
.topic-row a:hover,
.topic-row a[aria-current="page"] {
  background: var(--squall-lagoon);
  color: white;
}
.mobile-topic-grid {
  display: none;
}
.mobile-topic-heading {
  display: none;
}
.location-ribbon {
  background: var(--palma-sand);
  border-bottom: 1px solid #c9bea9;
}
.location-ribbon p {
  width: min(1180px, calc(100% - 2rem));
  margin: auto;
  padding: 0.55rem 0;
  font-size: 0.94rem;
}
.page-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.4rem) 0 4rem;
}
.reading {
  min-width: 0;
  max-width: 800px;
}
.reading > :first-child {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--vista-depth);
  text-wrap: balance;
}
h1 {
  max-width: 22ch;
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 750;
  margin: 3rem 0 0.9rem;
}
h3 {
  font-size: 1.34rem;
  line-height: 1.3;
  font-weight: 750;
  margin: 1.7rem 0 0.45rem;
}
p,
li {
  max-width: 74ch;
}
.answer-first {
  font-size: clamp(1.14rem, 2vw, 1.3rem);
  line-height: 1.55;
}
.review-tide {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0.2rem 0 1rem;
  padding: 0.15rem 0.65rem;
  color: #40534d;
  background: #edf4f1;
  border-radius: 999px;
  font-size: 1rem;
}
.action-pier {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin: 0.55rem 0 1rem;
  padding: 0.7rem 1rem;
  background: var(--vista-gulf);
  color: white;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
}
.action-pier:hover {
  background: var(--west-sunset);
  color: white;
}
.urgent-fork {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.fork-heading {
  margin-bottom: 0.75rem;
}
.fork-route {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  background: var(--sunlit-page);
  border: 1px solid #b8cfc8;
  border-radius: 12px;
  color: var(--keyvista-canopy);
  text-decoration: none;
}
.fork-route strong {
  display: block;
  font:
    750 1.2rem/1.3 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--vista-depth);
}
.fork-route span {
  display: block;
  margin: 0.35rem 0 0.75rem;
}
.route-status {
  margin: 0 0 0.65rem;
  color: #52625d;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.route-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  margin-top: auto !important;
  padding-top: 0.65rem;
  color: var(--vista-gulf);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.fork-route--leak {
  background: var(--vista-depth);
  border-color: var(--vista-depth);
  color: white;
  box-shadow: 0 0.45rem 1.1rem rgb(13 42 54 / 14%);
}
.fork-route--leak strong,
.fork-route--leak .route-status,
.fork-route--leak .route-action {
  color: white;
}
.fork-route--leak .route-action {
  font-size: 1.08rem;
}
.fork-route--storm {
  background: #f8eadc;
  border-color: #d8b69b;
  box-shadow: 0 0.35rem 1rem rgb(13 42 54 / 7%);
}
.season-rail {
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--key-foam);
  border-radius: 12px;
}
.season-rail p {
  margin: 0 0 0.35rem;
  font-weight: 800;
}
.season-rail div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}
.season-rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.55rem;
}
.yearboard {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0 4rem;
  background: var(--sunlit-page);
  border: 1px solid #b8cfc8;
  border-radius: 12px;
  overflow: hidden;
}
.yearboard th,
.yearboard td {
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #cbded8;
}
.yearboard thead th {
  background: var(--vista-depth);
  color: white;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.yearboard tbody th {
  width: 28%;
  color: var(--vista-depth);
}
.yearboard tr:last-child > * {
  border-bottom: 0;
}
.record-dock {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 4rem;
  align-items: start;
}
.record-card {
  padding: 1.25rem;
  background: var(--sunlit-page);
  border: 1px solid #b8cfc8;
  border-radius: 12px;
}
.record-card h3 {
  margin-top: 0;
}
.numbered-tide {
  counter-reset: tide;
  list-style: none;
  padding: 0;
}
.numbered-tide > li {
  counter-increment: tide;
  margin: 1rem 0;
  padding: 1.25rem;
  background: var(--sunlit-page);
  border: 1px solid #b8cfc8;
  border-radius: 12px;
}
.numbered-tide > li::first-line {
  font-weight: 750;
  color: var(--vista-depth);
}
.numbered-tide > li::before {
  content: counter(tide) ". ";
  font: 750 1.15rem system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--west-sunset);
}
.weather-cove {
  margin: 3rem 0;
  padding: 1.5rem;
  background: #edf4f1;
  color: var(--keyvista-canopy);
  border: 1px solid #b8cfc8;
  border-radius: 12px;
}
.weather-cove h2 {
  color: var(--vista-depth);
  margin-top: 0;
}
.weather-cove a {
  color: white;
}
.weather-cove [aria-live] {
  font-weight: 750;
}
.shell-note {
  padding: 1.25rem;
  background: var(--palma-sand);
  border: 1px solid #c8baa0;
  border-radius: 12px;
}
.fastest-path {
  margin: 2rem 0 3rem;
}
.section-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--west-sunset);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.fastest-path h2,
.guide-boundaries h2 {
  margin-top: 0;
  font-size: 1.5rem;
}
.fastest-path ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: answer-step;
}
.fastest-path li {
  counter-increment: answer-step;
  padding: 1rem 0.9rem;
  border-top: 3px solid var(--squall-lagoon);
  background: #edf4f1;
}
.fastest-path li::before {
  content: counter(answer-step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  color: var(--west-sunset);
  font-weight: 800;
}
.fastest-path strong {
  color: var(--vista-depth);
}
.guide-boundaries {
  display: grid;
  gap: 1rem;
  margin: 3rem 0;
}
.guide-boundaries > section {
  padding: 1.25rem;
  background: #edf4f1;
  border-radius: 8px;
}
.guide-boundaries > section:last-child {
  background: var(--palma-sand);
}
.guide-boundaries > section > :last-child {
  margin-bottom: 0;
}
.source-tide {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 2px solid #9fbab2;
}
.source-tide li {
  margin: 0.55rem 0;
}
.support-rail {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--key-foam);
  border-radius: 12px;
  align-self: start;
}
.support-rail h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}
.support-rail h3 {
  font-size: 1rem;
  margin: 1rem 0 0.2rem;
}
.support-rail h3,
.support-rail h3 + ul {
  display: none;
}
.support-rail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.support-rail a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.2rem 0;
}
.support-rail a[aria-current="page"] {
  font-weight: 800;
  color: var(--keyvista-canopy);
}
.question-bank dt {
  margin-top: 1.4rem;
  font: 750 1.15rem system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--vista-depth);
}
.question-bank dd {
  margin: 0.35rem 0 1.2rem;
}
.site-foot {
  margin-top: auto;
  background: var(--keyvista-canopy);
  color: #e9f3ef;
}
.foot-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}
.site-foot a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: white;
}
.foot-inner p {
  margin: 0.35rem 0;
}
.short-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.plain-list li {
  margin: 0.45rem 0;
}

@media (min-width: 48rem) {
  .urgent-fork {
    grid-template-columns: repeat(3, 1fr);
  }
  .record-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-boundaries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 67rem) {
  .page-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 40px;
    align-items: start;
  }
  .reading {
    max-width: none;
  }
  .support-rail {
    margin-top: 0;
    position: sticky;
    top: 1rem;
  }
  .support-rail h3,
  .support-rail h3 + ul {
    display: block;
  }
}
@media (max-width: 43rem) {
  body {
    font-size: 18px;
    line-height: 1.6;
  }
  .mast-inner,
  .page-grid,
  .location-ribbon p,
  .foot-inner {
    width: min(100% - 1.25rem, 1180px);
  }
  .mast-inner {
    padding: 0.45rem 0;
  }
  .mast-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 52px;
    gap: 0.65rem;
  }
  .site-name {
    max-width: 12rem;
    font-size: 1rem;
    line-height: 1.15;
  }
  .all-questions {
    display: inline-flex;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.2;
  }
  .place-line,
  .topic-row {
    display: none;
  }
  .mobile-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 1rem 0 2.5rem;
    padding: 1rem;
    background: var(--key-foam);
    border-radius: 12px;
  }
  .mobile-topic-grid::before {
    content: "Choose a roof topic";
    grid-column: 1 / -1;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .mobile-topic-heading {
    display: block;
    margin-bottom: 0.5rem;
  }
  .about-topic-grid {
    margin-top: 0;
  }
  .about-topic-grid::before {
    content: none;
  }
  .mobile-topic-grid a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0.3rem 0.5rem;
    color: var(--vista-depth);
    font-weight: 750;
  }
  .location-ribbon p {
    padding: 0.45rem 0;
    font-size: 1rem;
  }
  .page-grid {
    padding-top: 1.5rem;
  }
  h1 {
    font-size: 2.25rem;
    line-height: 1.1;
  }
  h2 {
    margin-top: 2.5rem;
  }
  p,
  li {
    max-width: 100%;
  }
  .yearboard,
  .yearboard tbody,
  .yearboard tr,
  .yearboard th,
  .yearboard td {
    display: block;
    width: 100%;
  }
  .yearboard thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .yearboard {
    padding: 0;
    border-spacing: 0 0.75rem;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .yearboard tr {
    margin-bottom: 0.75rem;
    padding: 1rem 0 0;
    background: var(--sunlit-page);
    border: 1px solid #b8cfc8;
    border-radius: 8px;
    overflow: hidden;
  }
  .yearboard tr:last-child {
    margin-bottom: 0;
    border: 1px solid #b8cfc8;
  }
  .yearboard th,
  .yearboard td {
    padding: 0.35rem 1rem;
    border: 0;
  }
  .yearboard tbody th {
    margin-bottom: 0.45rem;
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 750;
  }
  .yearboard td[season-field] {
    padding-top: 0.4rem;
    font-size: 1.0625rem;
    line-height: 1.5;
  }
  .yearboard td[season-field]::before {
    content: attr(season-field);
    display: block;
    margin-bottom: 0.2rem;
    color: #52625d;
    font-size: 0.875rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .yearboard td[season-field="Next step"] {
    margin-top: 0.65rem;
    padding: 0.45rem 0.65rem;
    background: #edf4f1;
  }
  .yearboard td[season-field="Next step"]::before {
    margin-left: 0.35rem;
  }
  .yearboard td[season-field="Next step"] a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 0.35rem;
    font-weight: 750;
  }
  .fastest-path ol {
    grid-template-columns: 1fr;
  }
  .support-rail {
    padding: 0.8rem;
  }
  .plain-list li {
    margin-bottom: 0.7rem;
  }
}
