/* Shared editorial and service-page layout. Deliberately scoped away from the homepage. */
.content-page { --reading-width: 820px; }
.content-page main { overflow-wrap: break-word; }
.content-page .breadcrumb { padding-block: 20px; margin-top: 0; font-size: 12px; line-height: 1.7; }
.content-page .breadcrumb a { text-underline-offset: 4px; }
.draft-notice { padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: #efe9dc; color: #655338; font-size: 12px; text-align: center; }
.draft-notice strong { margin-right: 8px; font-weight: 600; }
.content-page h1 { margin: 16px 0 20px; max-width: 22ch; font-size: clamp(40px, 4.8vw, 64px); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.content-page main h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.content-page h3 { font-size: 26px; line-height: 1.25; }
.content-page .section { padding-block: 64px; }
.content-page .section-heading { align-items: start; margin-bottom: 32px; gap: 36px; }
.content-page .section-heading h2 { margin-top: 14px; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.12; }
.content-page .section-heading > p { align-self: center; }
.content-page p + p { margin-top: 16px; }
.content-page .wrap > p { max-width: 76ch; }
.content-page .wrap > h3 { margin-top: 32px; margin-bottom: 12px; }
.content-page .checks { margin: 24px 0; }
/* A list item is prose, not a flex row: strong/em/a must stay inline with its text. */
.content-page .checks li { display: block; position: relative; padding: 16px 0 16px 24px; line-height: 1.75; }
.content-page .checks li::before { position: absolute; left: 0; top: 19px; margin: 7px 0 0; }
.content-page .checks .text-link { display: inline; }
.content-page .text-link { text-underline-offset: 4px; }
.content-page .solution { min-width: 0; }
.content-page .solution h3 { font-size: 28px; }
.content-page .solution h3 .text-link { margin-top: 0; font-size: inherit; display: inline; }
.content-page .actions { margin-top: 28px; gap: 16px 24px; }
.content-page .button { white-space: normal; line-height: 1.4; text-align: center; }
.content-page .section-dark .button-ink { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.content-page .local-details li { align-items: baseline; flex-wrap: wrap; }
.content-page .local-details strong { max-width: 38ch; }
.content-page .section-dark .local-details li > span:first-child { color: var(--on-dark-soft); }
.content-page .section-dark .checks li { border-color: var(--line-dark); }
.content-page .contact-copy h1 { margin-top: 16px; }
.content-page .contact-form { min-width: 0; padding: 28px; border: 1px solid var(--line-dark); background: var(--ink-raised); }
.content-page .field { min-width: 0; }
.content-page [data-placeholder] { overflow-wrap: anywhere; }
/* Keep unapproved facts visible for review, without letting them dominate the typography. */
.content-page main [data-placeholder]:not([data-placeholder="service-area"]) { color: #79531d; background: #f5ebd8; font-size: .85em; }
.content-page .section-dark [data-placeholder]:not([data-placeholder="service-area"]) { color: #f3d7a4; background: #352e24; }

/* Long-form guides and privacy: readable measure and deliberate vertical rhythm. */
.content-article main > .wrap,
.content-article main > .section > .wrap { width: min(var(--reading-width), calc(100% - var(--gutter) * 2)); }
.content-article main > .wrap { padding-top: 24px; padding-bottom: 80px; }
.content-article .section-heading { display: block; padding-top: 28px; margin-bottom: 28px; }
.content-article .section-heading > p { max-width: 68ch; margin-top: 24px; font-size: 19px; line-height: 1.75; }
.content-article h1 { max-width: 22ch; }
.content-article .byline { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.9; color: var(--muted); }
.content-article article > section { margin-top: 44px; }
.content-article h2 { margin-bottom: 18px; }
.content-article h3 { margin: 28px 0 12px; }
.content-article p { line-height: 1.85; }
.content-article p a, .content-article li a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-article .checks li { font-size: 16px; }
.content-article .doc { margin-top: 24px; padding: 28px; box-shadow: 0 8px 24px #10181d05; }
.content-article .doc h3 { margin: 12px 0 0; }
.content-article .doc-head { flex-wrap: wrap; }
.content-article table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.content-article th, .content-article td { overflow-wrap: anywhere; }
.content-article .doc th { padding-right: 16px; width: 53%; }
.content-article .doc .sum { font-size: clamp(26px, 4vw, 40px); }
.content-article .doc-foot { flex-wrap: wrap; line-height: 1.7; }
.content-article .doc-foot > span:first-child { flex: 1 1 260px; }
.content-article .cols-3 { gap: 16px; }
.content-article .cols-3 > article { padding: 20px; background: var(--white); border: 1px solid var(--line); }
.content-article .cols-3 h3 { margin-top: 0; }
.content-article .cols-3 p { font-size: 15px; }
.content-article #privacy h2 { margin-top: 36px; }

/* Markdown posts use the same reading measure, with automatic prose spacing. */
.blog-body > * + * { margin-top: 20px; }
.blog-body > h2 { margin-top: 44px; }
.blog-body ul, .blog-body ol { padding-left: 24px; line-height: 1.85; }
.blog-body ul { list-style: disc; }
.blog-body ol { list-style: decimal; }
.blog-body li + li { margin-top: 10px; }
.blog-body blockquote { margin-inline: 0; padding: 16px 24px; border-left: 3px solid var(--brass); background: #efe9dc; }
.blog-body code { font: .9em ui-monospace, monospace; overflow-wrap: anywhere; }
.blog-body pre { max-width: 100%; padding: 18px; overflow-x: auto; background: #efe9dc; }
.blog-body table { display: block; max-width: 100%; overflow-x: auto; table-layout: auto; }
.blog-body th, .blog-body td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.blog-body hr { margin-block: 32px; border: 0; border-top: 1px solid var(--line); }
.blog-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Resource hub: cards instead of an unformatted stack of links. */
.content-hub main > .wrap { padding-top: 24px; padding-bottom: 80px; }
.content-hub .section-heading { grid-template-columns: 1.3fr 1fr; margin-bottom: 48px; }
.content-hub :is(#guide-list, #blog-list) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.content-hub :is(#guide-list, #blog-list) > .solution { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-top: 3px solid var(--brass); background: var(--white); }
.content-hub :is(#guide-list, #blog-list) h3 { line-height: 1.25; }
.content-hub :is(#guide-list, #blog-list) p:last-child { margin-top: 16px; font-size: 15px; line-height: 1.8; }
.content-hub #guide-next { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.content-hub #guide-next h2 { margin-bottom: 20px; }

@media (max-width: 820px) {
  .content-page .section { padding-block: 44px; }
  .content-page .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .content-page .contact-form { padding: 24px; }
  .content-article .cols-3 { grid-template-columns: 1fr; }
  .content-hub :is(#guide-list, #blog-list) { grid-template-columns: 1fr; }
  .content-hub :is(#guide-list, #blog-list) > .solution { padding: 28px; }
}
@media (max-width: 540px) {
  .content-page h1 { font-size: 40px; }
  .content-page .breadcrumb { font-size: 11px; padding-block: 16px; }
  .draft-notice { text-align: left; line-height: 1.6; }
  .content-article main > .wrap { padding-top: 8px; padding-bottom: 48px; }
  .content-article .section-heading > p { font-size: 17px; }
  .content-article .doc { padding: 20px 16px; }
  .content-article .doc td, .content-article .doc th { font-size: 14px; }
  .content-page .contact-form { padding: 20px 16px; }
}
