/* Page content. Shared site chrome and calculator styles have their own rules. */
.editorial {
  --text: #102c40;
  --muted: #455e70;
  --line: #d7e1e6;
  --light: #f1f5f7;
  color: var(--text);
  background: white;
  font: 400 1rem/1.75 "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}
.editorial :is(h1, h2, h3, p, figure) { margin: 0; }
.editorial a { text-underline-offset: .22em; }
.editorial [id] { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.editorial-wrap { width: min(80rem, 100% - 2 * clamp(1.25rem, 5.55vw, 5rem)); margin-inline: auto; }
.editorial-crumb {
  display: flex; flex-wrap: wrap; gap: .35rem .75rem;
  padding-top: 1.75rem; color: var(--muted); font-size: .875rem;
}
.editorial-hero { padding: clamp(1.7rem, 4vw, 3.65rem) 0 clamp(2.5rem, 6vw, 5rem); }
.editorial-hero-grid { display: grid; align-items: center; gap: clamp(2rem, 5vw, 5.25rem); }
.editorial-hero-grid:has(figure) { grid-template-columns: 1.13fr 1fr; }
.editorial h1 {
  max-width: 22ch; font-size: clamp(2.6rem, 5.1vw, 4.7rem);
  font-weight: 620; line-height: 1.075; letter-spacing: -.055em; text-wrap: balance;
}
.editorial-hero h1::before {
  display: block; width: 3.5rem; height: 4px; margin-bottom: 1.5rem;
  background: var(--brand-yellow); content: "";
}
.editorial .editorial-lead { max-width: 66ch; margin-top: 1.35rem; font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--muted); }
.editorial-hero figure {
  min-width: 0; aspect-ratio: 1.23; overflow: hidden; background: var(--light);
}
.editorial-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); }
.editorial .editorial-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.375rem; max-width: 100%; padding: .7rem 1.4rem; margin-top: 1.6rem;
  color: var(--navy); background: var(--brand-yellow); border-radius: 4px;
  font-size: 1rem; font-weight: 700; line-height: 1.4; text-decoration: none;
}
.editorial .editorial-button:hover { background: #ffdc4d; }
.editorial-body { border-top: 1px solid var(--line); }
.editorial-layout {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(12.5rem, 1fr);
  align-items: start; gap: clamp(2.25rem, 6vw, 6rem); padding-block: clamp(2rem, 6vw, 5rem);
}
.editorial-layout:not(:has(.editorial-aside)) { grid-template-columns: minmax(0, 1fr); }
.editorial-layout:not(:has(.editorial-aside)) .editorial-copy { max-width: 64rem; }
.editorial-copy { min-width: 0; }
.editorial-section + .editorial-section {
  margin-top: clamp(1.8rem, 5vw, 3.7rem); padding-top: clamp(1.7rem, 4vw, 3rem); border-top: 1px solid var(--line);
}
.editorial-copy h2 {
  font-size: clamp(1.6rem, 3.05vw, 2.6rem); font-weight: 630;
  line-height: 1.18; letter-spacing: -.039em; text-wrap: pretty;
}
.editorial-copy h3 { font-size: clamp(1.15rem, 1.65vw, 1.45rem); line-height: 1.35; letter-spacing: -.028em; }
.editorial-copy :is(p,ul,ol,.editorial-table,blockquote) { margin: 1rem 0 0; }
.editorial-copy h3:not(:first-child) { margin-top: 1.5rem; }
.editorial-copy .editorial-section > :is(p,ul,ol,.editorial-table):first-child { margin-top: 0; }
.editorial-copy :is(ul,ol) { padding-inline-start: 1.25rem; }
.editorial-copy li + li { margin-top: .55rem; }
.editorial-copy p:empty { display: none; }
.editorial-copy p:has(> a[id]:only-child) { margin: 0; }
.editorial-copy a { font-weight: 600; color: #144661; }
.editorial-copy .editorial-button { color: var(--navy); }
.editorial-aside { display: grid; gap: 1rem; min-width: 0; }
.editorial-panel { padding: 1.4rem; background: var(--light); border-top: 3px solid #244c63; }
.editorial-panel h2 { margin-bottom: .7rem; font-size: 1.05rem; line-height: 1.35; }
.editorial-panel p { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.editorial-panel ul { margin: 0; padding: 0; list-style: none; }
.editorial-panel li + li { border-top: 1px solid var(--line); }
.editorial-panel li a { display: block; padding-block: .63rem; font-size: .9375rem; font-weight: 600; }
.editorial-section.editorial-quote { padding: clamp(1.35rem, 4vw, 2.4rem); background: #fff8dc; border: 0; }
.editorial-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); }
.editorial-table table { width: 100%; border-collapse: collapse; }
.editorial-table :is(th,td) { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.editorial-table thead { background: var(--light); }
.editorial-table tbody tr:last-child td { border-bottom: 0; }
.editorial--directory .editorial-hero { background: linear-gradient(white, #f1f5f7); }
.editorial--directory .editorial-copy { max-width: none !important; }
.editorial--directory .editorial-section > ul:has(li > a:only-child) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .65rem 1.25rem;
  padding: 0; list-style: none;
}
.editorial--directory .editorial-section > ul:has(li > a:only-child) li { margin: 0; border-bottom: 1px solid var(--line); }
.editorial--directory .editorial-section > ul:has(li > a:only-child) a { display: block; padding-block: .5rem; }
.editorial--route .editorial-hero { background: #0e2b40; color: white; }
.editorial--route .editorial-lead { color: #e3edf4; }
.editorial--route .editorial-hero figure { aspect-ratio: 1.55; }
.editorial--quiet .editorial-hero { background: #f4f7f8; }
.editorial-contact-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem; padding: 0 !important; list-style: none;
}
.editorial-contact-list > li {
  min-width: 0; margin: 0 !important; padding: 1.25rem;
  background: var(--light); border-top: 3px solid #244c63; overflow-wrap: anywhere;
}
.editorial-contact-list > li strong { display: block; margin-bottom: .25rem; font-size: .94rem; }
.editorial-contact-list > li:last-child {
  grid-column: 1 / -1; background: white; border-top: 0; padding: .65rem 0 0;
}

@media (max-width: 850px) {
  .editorial-layout, .editorial-hero-grid:has(figure) { grid-template-columns: minmax(0, 1fr); }
  .editorial-hero figure { aspect-ratio: 1.65; }
  .editorial-aside { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
}
@media (max-width: 550px) {
  .editorial-hero-grid { gap: 1.5rem; }
  .editorial-crumb { padding-top: 1.25rem; }
  .editorial .editorial-button { width: 100%; }
  .editorial-table :is(th,td) { padding: .6rem; font-size: .9375rem; }
  .editorial-table td { min-width: 7rem; }
  .editorial-contact-list { grid-template-columns: 1fr; }
}
