/* Editorial pages keep the site's full-width soil bands and a 40rem reading line. */
/* The header's own art room (--art in cleanout.css) sets the line length: a title that fits on one line stays on it. */
html[data-style="cartoon"] .pop h1.pop-h1--s { font-size: 4rem; line-height: 1.02; max-width: none; }
html[data-style="cartoon"] .pop h1.pop-h1--m { font-size: 3.375rem; line-height: 1.02; max-width: none; }
html[data-style="cartoon"] .pop h1.pop-h1--l { font-size: 2.875rem; line-height: 1.02; max-width: none; font-stretch: 87.5%; }
html[data-style="cartoon"] .pop .h1-lead, html[data-style="cartoon"] .pop .h1-deck { display: block; }
html[data-style="cartoon"] .pop .h1-deck { margin-top: 14px; max-width: 40ch; font: 600 1.875rem/1.2 var(--display); font-stretch: 100%; }
.pop--editorial .pop-back { margin-top: 24px; }
.answer-block { max-width: 40rem; margin: 0 0 18px; padding: 0; background: transparent; border: 0;
  color: var(--char); font: 500 var(--step-lead)/1.45 var(--text); text-transform: none; }
.article-grid { min-width: 0; }
.article-by { max-width: 40rem; margin-bottom: 28px; font-size: .94rem; font-weight: 700; }
.article-rail, .article-lead-photo { min-width: 0; margin: 0 0 36px; align-self: stretch; }
.article-rail .shot, .article-lead-photo .shot { margin: 0; max-width: none; }   /* fills its column, whatever its shape */
.article-lead-photo { max-width: 40rem; }
.article-rail .shot img { width: 100%; max-height: 460px; object-fit: contain; }
.article-rail .shot--tall { max-width: 344px; }   /* an upright photo keeps its shape instead of sitting in a black box */
.article-rail .shot--tall img { max-height: none; }
.article-toc { display: none; }   /* desktop only: on a phone the questions follow one after another anyway */
.article-toc-in { padding: 26px 28px 28px; border-radius: 14px; background: var(--char); color: #fff; }
.article-toc-title { margin: 0 0 14px; font: 800 1.25rem/1.2 var(--display); }
.article-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }   /* spacing, no numbers or rules: a reading aid, not a sequence */
.article-toc li { font-size: 1rem; line-height: 1.4; }
.article-toc a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-toc a:hover { text-decoration-thickness: 2px; }
.article-prose h2[id] { scroll-margin-top: calc(var(--bar-h) + 24px); }
.article-prose { max-width: 40rem; min-width: 0; font-size: clamp(1.0625rem, 1rem + calc(.22 * min(1vw, 19.2px)), 1.19rem); line-height: 1.75; overflow-wrap: break-word; }
.article-prose > * + * { margin-top: 1.1em; }
/* Questions as headings: full column width and plain wrapping, so a phrase like "sewer line" is never split to balance lines */
.article-prose h2 { margin-top: 2.25em; font-size: clamp(1.7rem, 1.35rem + calc(1.3 * min(1vw, 19.2px)), 2.45rem); line-height: 1.15; text-wrap: pretty; }
.article-prose h3 { margin-top: 1.8em; font-size: 1.35rem; line-height: 1.25; }
.article-prose ul, .article-prose ol { padding-left: 1.35em; }
.article-prose li { padding-left: .25em; margin-block: .45em; }
.article-prose a, .local-card a, .article-sources a { overflow-wrap: anywhere; }
.article-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .97em; }
.article-prose th, .article-prose td { min-width: 130px; text-align: left; border-bottom: 2px solid currentColor; padding: 10px 14px 10px 0; vertical-align: top; }
.article-more h2, .article-jobs h3, .job-gallery h2, .city-others h2,
.city-directory h2, .job-directory h2, .guides-cluster h2, .service-detail h2 {
  font-size: clamp(1.8rem, 1.4rem + calc(1.55 * min(1vw, 19.2px)), 2.8rem); line-height: 1.14; }
.article-questions { display: grid; gap: 24px; margin-top: 32px; }
.article-questions article { border-top: 2px solid currentColor; padding-top: 18px; min-width: 0; }
.article-questions h3 { font-size: clamp(1.2rem, 1.1rem + calc(.35 * min(1vw, 19.2px)), 1.5rem); line-height: 1.25; }
.article-questions p { max-width: 66ch; margin-top: 8px; line-height: 1.62; overflow-wrap: anywhere; }
.article-sources, .article-related, .article-jobs ul { max-width: 40rem; margin: 24px 0 0; padding-left: 1.3em; }
.article-sources li, .article-related li, .article-jobs li { margin: 10px 0; }
.local-card { align-self: start; min-width: 0; padding: 24px; border-radius: 14px; background: var(--char); color: #fff; }
.local-card h3 { font-size: 1.4rem; line-height: 1.2; }
.local-card p { margin: 14px 0 8px; line-height: 1.6; color: #fff; }
.local-card .local-office { font-weight: 700; }
.local-card ul { margin: 14px 0 0; padding-left: 1.3em; }
.local-card li { margin-block: 10px; }
.local-card a { display: inline-flex; align-items: center; min-height: 48px; color: #fff; text-decoration: underline; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.guide-card { position: relative; padding: clamp(20px, calc(3 * min(1vw, 19.2px)), 36px); min-width: 0;
  background: var(--char); border-radius: 12px; color: #fff; border-top: 5px solid var(--blue); }
.guide-card h3 { font-size: clamp(1.25rem, 1.1rem + calc(.6 * min(1vw, 19.2px)), 1.7rem); line-height: 1.23; }
.guide-card a { color: #fff; text-decoration: none; }
.guide-card a::after { content: ''; position: absolute; inset: 0; }
.guide-card a:hover, .guide-card a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.guide-card p { margin-top: 16px; line-height: 1.55; }
.city-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.city-links a { display: flex; align-items: center; min-height: 48px; padding: 10px 0; font: 700 1.25rem/1.2 var(--display); }
.notfound .pill { margin-top: 36px; }
.job-gallery .shots { margin-top: 32px; }
.guides-topic .shot { margin-top: 32px; max-width: 100%; }
.guides-topic h2 { font-size: clamp(1.6rem, 1.1rem + calc(1.4 * min(1vw, 19.2px)), 2.4rem); text-wrap: pretty; }
.guides-topic .shot img { width: 100%; max-height: 460px; object-fit: cover; }
.guide-list { list-style: none; padding: 0; margin: 32px 0 0; }
.guide-list li + li { margin-top: 28px; }
.guide-list h3 { font: 700 clamp(1.25rem, 1.05rem + calc(.6 * min(1vw, 19.2px)), 1.6rem)/1.2 var(--display); }
.guide-list p { max-width: 60ch; margin-top: 8px; font-size: 1.0625rem; line-height: 1.5; }
/* These are sections inside a band: no band padding of their own, so they keep the page's left edge. */
.job-step, .city-step { min-width: 0; padding: 0; margin-top: clamp(40px, calc(5 * min(1vw, 19.2px)), 64px); }
.job-step .article-prose h2:first-child, .city-step .article-prose h2:first-child { margin-top: 0; }
.job-step .shots { margin-top: 32px; width: 100%; }
.job-step .shots .shot:only-child { flex: 0 1 40rem; max-width: 40rem; }   /* one photo: the width of the words above it */
.city-step-rail { min-width: 0; }
.city-step--extra .city-step-rail { grid-column: 2; }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; }
.service-detail ul { padding-left: 1.25em; max-width: 55ch; }
.service-detail li { margin-top: 14px; line-height: 1.55; }
.service-links h3 { margin-top: 28px; }
@media (min-width: 1000px) {
  .guides-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, calc(6 * min(1vw, 19.2px)), 112px); }
  .guides-topic { position: sticky; top: calc(var(--bar-h) + 32px); align-self: start; }
  .guide-list { margin-top: 0; }
}
@media (min-width: 1100px) {
  .article-grid { display: grid; grid-template-columns: minmax(0, 40rem) minmax(280px, 1fr);
    column-gap: clamp(48px, calc(6 * min(1vw, 19.2px)), 112px); align-items: start; }
  .article-grid > .answer-block, .article-grid > .article-by, .article-grid > .article-prose,
  .article-grid > .article-lead-photo { grid-column: 1; }
  .article-grid > .article-rail { grid-column: 2; grid-row: 1 / span 3; }   /* beside the answer, byline and opening words */
  .article-rail .shot { position: sticky; top: calc(var(--bar-h) + 32px); }
  .article-toc { display: block; }
  .article-toc-in { position: sticky; top: calc(var(--bar-h) + 32px); }
  .article-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, calc(6 * min(1vw, 19.2px)), 96px); }
  .job-step, .city-step { grid-column: 1 / -1; }
  .city-step { display: grid; grid-template-columns: minmax(0, 40rem) minmax(280px, 1fr); column-gap: clamp(48px, calc(6 * min(1vw, 19.2px)), 112px); }
}
@media (max-width: 1099px) {
  .city-step-rail { margin-top: 24px; }
}
@media (max-width: 760px) {
  html[data-style="cartoon"] .pop h1.pop-h1--s { font-size: 2.125rem; line-height: 1.04; }
  html[data-style="cartoon"] .pop h1.pop-h1--m { font-size: 1.6875rem; line-height: 1.08; font-stretch: 87.5%; }
  html[data-style="cartoon"] .pop h1.pop-h1--l { font-size: 1.625rem; line-height: 1.08; font-stretch: 75%; }   /* the longest titles: two lines, still a step above the answer */
  html[data-style="cartoon"] .pop h1.pop-h1--long { font-size: 1.75rem; line-height: 1.08; max-width: none; }   /* long service titles: two lines on a phone */
  html[data-style="cartoon"] .article-prose h2 { font-size: 1.375rem; line-height: 1.2; }
  html[data-style="cartoon"] .pop .h1-deck { font-size: 1.3125rem; line-height: 1.24; margin-top: 8px; }
  .pop--editorial .pop-back { margin-top: 20px; }
  .local-card { padding: 20px; }
  .local-card h3 { font-size: 1.1875rem; }   /* a step below the section headings beside it */
}
@media (max-width: 700px) {
  .guide-grid, .service-detail-grid { grid-template-columns: 1fr; }
  .city-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
