/* Sections copied from the Next.js site (Ayaan, 8 Oct: the pages take their design from it only), for the pages built
   after About and the service pages: Who we serve, Case studies and the case study pages, Partners, Awards, Contact.
   Tokens and the shared section spacing come from home.css and pages.css. */

/* ---------- Who we partner with (partners page): heading on the left, label and line rows on the right ---------- */
.sh-lrows-grid { display: grid; gap: 40px; }
.sh-lrows .sh-sec-head { margin-bottom: 0; }
.sh-inner .sh-lrows .sh-sec-intro { font-size: 14px; line-height: 1.6; color: var(--sh-text-2); }
.sh-lrows-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--sh-line); }
.sh-lrow { display: grid; gap: 8px; padding-block: 24px; border-bottom: 1px solid var(--sh-line); }
.sh-lrow-label { display: flex; align-items: flex-start; gap: 12px; font-family: var(--sh-sans); font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.sh-lrow-icon { flex: none; color: var(--sh-ink); }
/* Who we serve: room before What clients say after the sector rows (Chris, 9 Oct). */
.sh-inner .sh-lrows + .sh-quotes { padding-top: 112px; }
@media (max-width: 809px) { .sh-inner .sh-lrows + .sh-quotes { padding-top: 48px; } }
.sh-quote-logo { display: flex; align-items: center; height: 36px; margin-bottom: 20px; }
.sh-quote-logo img { display: block; width: auto; height: var(--logo-h, 26px); max-width: 100%; object-fit: contain; }
.sh-lrow-text { font-size: 14px; line-height: 1.6; color: #5f5f5f; }
@media (min-width: 810px) {
  .sh-lrows-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 96px; }
  .sh-lrow { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px; }
}

/* ---------- Case studies (Next.js /case-studies): pills, then one row per case study ---------- */
.sh-inner .sh-cases { padding-top: 64px; }
.sh-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin: 0; }
.sh-pills li { padding: 8px 16px; border: 1px solid var(--sh-line); border-radius: 999px; font-size: 14px; font-weight: 500; color: #3a3a3a; }
.sh-case-filters[hidden] { display: none; }
.sh-case-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sh-cases-title { margin-top: 112px; }
.sh-cases-list { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--sh-line); }
.sh-case { border-bottom: 1px solid var(--sh-line); }
.sh-case-link { display: grid; gap: 24px; padding-block: 40px; color: inherit; }
.sh-case-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 40 / 21; overflow: hidden; border-radius: 6px; background: var(--sh-surface); }
.sh-case-media > img { width: auto; max-width: 46%; max-height: 34%; object-fit: contain; transition: transform 0.7s ease; }
.sh-case-media > .sh-scene { transition: transform 0.7s ease; }
.sh-case-text { display: grid; gap: 12px; align-content: end; max-width: 440px; }
.sh-case-sector { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sh-text-2); }
.sh-case-title { max-width: 400px; font-family: var(--sh-serif); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; color: var(--sh-ink); transition: opacity 0.2s; }
.sh-case-summary { margin: 0; font-size: 16px; line-height: 1.55; color: var(--sh-text-2); }
.sh-case-more { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--sh-ink); }
.sh-case-more span { display: inline-block; transition: transform 0.2s; }
a.sh-case-link:hover .sh-case-more span { transform: translateX(4px); }
a.sh-case-link:hover .sh-case-media > * { transform: scale(1.02); }
a.sh-case-link:hover .sh-case-title { opacity: 0.7; }
@media (min-width: 810px) {
  .sh-case-link { grid-template-columns: minmax(0, 547px) minmax(0, 1fr); gap: 36px; align-items: end; }
  .sh-case-text { padding-bottom: 16px; }
}

/* ---------- A case study page (Next.js /case-studies/[slug]): dark top, framed cover, facts beside the story ---------- */
.sh-case-hero { padding: calc(var(--sh-header-h) + 96px) 0 80px; background: var(--sh-ink); color: #fff; }
.sh-case-hero :focus-visible { outline-color: #fff; }
.sh-crumb { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.sh-crumb a { color: inherit; transition: color 0.2s; }
.sh-crumb a:hover { color: #fff; }
.sh-crumb [aria-current] { color: rgba(255, 255, 255, 0.8); }
.sh-case-h1 { max-width: 680px; margin: 24px auto 0; font-family: var(--sh-serif); font-weight: 400; font-size: 56px; line-height: 1.05; letter-spacing: -0.05em; text-align: center; text-wrap: balance; }
.sh-case-cover { margin-top: 64px; padding: 40px; border: 1px solid rgba(255, 255, 255, 0.1); }
.sh-case-cover-results .sh-scene { background: #f5f5f5; color: var(--sh-ink); }
.sh-case-cover-results .sh-res { max-width: 1040px; margin-inline: auto; }
.sh-case-cover-box { display: flex; align-items: center; justify-content: center; aspect-ratio: 40 / 21; background: #f5f5f5; }
.sh-case-cover-box img { width: auto; max-width: 42%; max-height: 32%; object-fit: contain; }
.sh-case-chart { margin: 0; padding: 24px 24px 16px; background: #1f1f1f; color: #fff; }
.sh-case-cover-chart .sh-case-chart { max-width: 820px; margin-inline: auto; }
.sh-case-name { font-family: var(--sh-serif); font-size: 36px; letter-spacing: -0.03em; color: var(--sh-ink); }
.sh-case-chart-cap { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; font-size: 13px; }
.sh-case-chart-cap span:last-child { color: rgba(255, 255, 255, 0.65); }
.sh-case-body { padding-bottom: 128px; background: #fff; }
.sh-case-body-grid { display: grid; gap: 48px; margin-top: 80px; padding-top: 80px; border-top: 1px solid var(--sh-line); }
.sh-case-facts { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.sh-case-facts dt { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--sh-ink); }
.sh-case-facts dd { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--sh-text-2); }
.sh-case-story { min-width: 0; max-width: 600px; font-size: 17px; line-height: 1.65; color: #3a3a3a; }
.sh-case-story > * + * { margin-top: 20px; }
.sh-case-story h2 { margin-top: 48px; font-family: var(--sh-serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; color: var(--sh-ink); }
.sh-inner .sh-case-lead { font-family: var(--sh-serif); font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; color: var(--sh-ink); }
.sh-part-intro { font-weight: 500; color: var(--sh-ink); }
.sh-snap-line, .sh-part-after { font-size: 14px; line-height: 1.6; color: var(--sh-text-2); }
.sh-case-figure { margin: 32px 0 8px; padding: 24px; border: 1px solid var(--sh-line); border-radius: 6px; background: #fafafa; }
.sh-case-figure-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; font-size: 13px; color: var(--sh-text-2); }
.sh-cmp-key { display: inline-flex; gap: 16px; }
.sh-cmp-key > span { display: inline-flex; align-items: center; gap: 6px; }
.sh-cmp-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--sh-ink); }
.sh-cmp-key .sh-cmp-kb { background: #8d8a84; }
.sh-case-table-wrap { overflow-x: auto; }
.sh-case-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sh-case-table th, .sh-case-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--sh-line); text-align: left; vertical-align: top; }
.sh-case-table thead th { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sh-text-2); }
.sh-case-table tbody th { font-weight: 500; color: var(--sh-ink); }
.sh-case-table td { color: var(--sh-text-2); }
.sh-case-table td:last-child { color: var(--sh-ink); }
.sh-block-title { font-family: var(--sh-sans); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--sh-ink); }
.sh-block p { margin-top: 8px; }
.sh-block-points { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
.sh-block-points strong { font-weight: 600; color: var(--sh-ink); }
@media (min-width: 900px) {
  .sh-case-body-grid { grid-template-columns: 280px minmax(0, 600px); gap: 96px; }
  .sh-case-facts { position: sticky; top: calc(var(--sh-header-h) + 32px); align-self: start; }
}
@media (max-width: 809px) {
  .sh-case-hero { padding: calc(var(--sh-header-h) + 56px) 0 56px; }
  .sh-case-h1 { font-size: 40px; }
  .sh-case-cover { margin-top: 40px; padding: 16px; }
  .sh-case-body-grid { margin-top: 48px; padding-top: 48px; }
  .sh-case-story { font-size: 16px; }
}

/* ---------- Partners (Next.js /partners "Two ways to partner"): cards on a grey band ---------- */
.sh-inner .sh-partners { background: var(--sh-surface); scroll-margin-top: var(--sh-header-h); }
.sh-partners .sh-sec-head { margin-bottom: 48px; }
.sh-partner-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.sh-partner { display: flex; flex-direction: column; padding: 32px; border-radius: 8px; background: var(--sh-card); }
.sh-partner-logo { display: flex; align-items: center; height: 24px; margin-bottom: 24px; }
.sh-partner-logo img { display: block; width: auto; height: var(--logo-h, 20px); max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(0.9); opacity: 0.75; }
.sh-partner-name { font-family: var(--sh-serif); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }
.sh-partner-summary { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--sh-text-2); }
.sh-partner-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.sh-partner-points li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.6; color: #3a3a3a; }
.sh-partner-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sh-ink); }
.sh-partner-link { margin-top: auto; padding-top: 24px; display: inline-flex; gap: 6px; font-size: 14px; font-weight: 500; color: var(--sh-ink); }
.sh-partner-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 810px) { .sh-partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sh-partner-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 809px) { .sh-partner { padding: 24px; } .sh-partner-name { font-size: 28px; } }

/* A light centred hero without a photo ends with room under its button, as on the Next.js pages (pb-20). */
.sh-inner .sh-phero:not(.sh-phero-split):not(:has(.sh-phero-media)) { padding-bottom: 80px; }

/* ---------- Awards record (Next.js /careers "Roles we hire for"): rows on a dark band ---------- */
.sh-inner .sh-record { background: var(--sh-ink); color: #fff; }
.sh-record :focus-visible { outline-color: #fff; }
.sh-record-title { font-family: var(--sh-serif); font-weight: 400; font-size: 48px; line-height: 1.05; letter-spacing: -0.04em; }
.sh-record-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.sh-record-entry { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px 16px; padding-block: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sh-record-arrow { margin-top: 2px; color: rgba(255, 255, 255, 0.6); }
.sh-record-name { font-family: var(--sh-sans); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: #fff; }
.sh-record-meta { margin-top: 4px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.sh-record-side { grid-column: 2; display: flex; flex-direction: column; gap: 8px; }
.sh-record-when { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.sh-record-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sh-record-link { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sh-record-link:hover { text-decoration-thickness: 2px; }
.sh-record-note { margin-top: 32px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
@media (min-width: 810px) {
  .sh-record-entry { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; }
  .sh-record-side { grid-column: 3; align-items: flex-end; text-align: right; }
}
@media (max-width: 809px) { .sh-record-title { font-size: 36px; } }

/* ---------- Numbered steps (Next.js /partners "How it works") ---------- */
.sh-steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.sh-step { padding-top: 24px; border-top: 1px solid var(--sh-line); }
.sh-step-num { font-family: var(--sh-mono); font-size: 12px; color: var(--sh-text-2); }
.sh-step-title { margin-top: 16px; font-family: var(--sh-serif); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.sh-step-text { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #5f5f5f; }
@media (min-width: 640px) { .sh-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 810px) { .sh-steps-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sh-steps-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Contact (Next.js /contact): the form on the left, a full-height photo on the right, no header or footer ---------- */
.sh-contact { display: grid; min-height: 100vh; background: #fff; color: var(--sh-ink); }
.sh-contact-main { padding: 32px 24px 64px; }
.sh-contact-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-contact-logo img { display: block; width: 118px; height: auto; }
.sh-contact-back { font-size: 14px; color: var(--sh-text-2); transition: color 0.2s; }
.sh-contact-back:hover { color: var(--sh-ink); }
.sh-contact-title { margin-top: 64px; font-family: var(--sh-serif); font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -0.05em; }
.sh-contact-lead { margin-top: 16px; max-width: 500px; font-size: 15px; line-height: 1.5; color: var(--sh-text-2); }
.sh-contact-form { position: relative; display: grid; gap: 12px; max-width: 540px; margin-top: 32px; }
.sh-contact-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sh-contact-field input, .sh-contact-field textarea { display: block; width: 100%; height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 4px; background: #f3f3f3; font: 15px/1.4 var(--sh-sans); color: var(--sh-ink); }
.sh-contact-field textarea { height: 86px; padding: 12px 16px; resize: vertical; }
.sh-contact-field ::placeholder { color: #707070; }
.sh-contact-field [aria-invalid="true"] { border-color: #b3261e; }
.sh-contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sh-contact-consent { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--sh-ink); }
.sh-contact-consent input { width: 18px; height: 18px; accent-color: var(--sh-ink); }
.sh-contact-consent input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.sh-contact-consent a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.sh-contact-submit { height: 48px; margin-top: 8px; border: 0; border-radius: 4px; background: var(--sh-ink); color: #fff; font: 500 15px var(--sh-sans); cursor: pointer; }
.sh-contact-submit:disabled { opacity: 0.5; cursor: wait; }
.sh-contact-status { min-height: 1em; font-size: 14px; color: #b3261e; }
.sh-contact-status:empty { display: none; }
.sh-contact-thanks { max-width: 540px; margin-top: 32px; padding: 16px; border-radius: 4px; background: #eef7f0; color: #1d5b2e; font-size: 15px; }
.sh-contact-details { max-width: 540px; margin-top: 48px; }
.sh-contact-details-label { font-size: 14px; color: var(--sh-text-2); }
.sh-contact-details dl { display: grid; gap: 12px; margin: 14px 0 0; }
.sh-contact-details dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.sh-contact-details dt { font-weight: 500; }
.sh-contact-details dd { margin: 0; color: var(--sh-ink); }
.sh-contact-details dd a { text-decoration: underline; text-underline-offset: 3px; }
.sh-contact-details dd span { display: block; color: var(--sh-text-2); }
.sh-contact-media { display: none; margin: 0; }
@media (min-width: 1000px) {
  .sh-contact { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
  .sh-contact-main { padding: 40px 86px 64px; }
  .sh-contact-title { font-size: 48px; }
  .sh-contact-media { display: block; position: sticky; top: 0; height: 100vh; }
  .sh-contact-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
}

/* Blog (Phase 3), as /insights on the Next.js site: pills, then cards three across with a picture or a dark green
   panel carrying the category, the date and category, and the title in the serif. */
.sh-posts { padding-top: 0; }
.sh-post-filters[hidden] { display: none; }
.sh-post-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.sh-pill { height: 36px; padding: 0 16px; border: 1px solid var(--sh-line); border-radius: 999px; background: transparent; font: 500 14px/1 var(--sh-sans); letter-spacing: -0.01em; color: var(--sh-ink); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.sh-pill:hover { background: rgba(0, 0, 0, 0.05); }
.sh-pill[aria-pressed="true"] { border-color: var(--sh-ink); background: var(--sh-ink); color: #fff; }
.sh-posts-list { list-style: none; display: grid; gap: 48px 32px; padding: 0; margin: 0; }
.sh-post[hidden] { display: none; }
.sh-post-link { display: flex; flex-direction: column; color: inherit; }
.sh-post-media { position: relative; display: flex; align-items: flex-end; aspect-ratio: 40 / 21; overflow: hidden; padding: 20px; border-radius: 4px; background: #0f2822; }
.sh-post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sh-post-link:hover .sh-post-media img { transform: scale(1.03); }
.sh-post-tag { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.sh-post-meta { margin: 16px 0 0; font-size: 13px; color: var(--sh-text-2); }
.sh-post-title { margin: 8px 0 0; font-family: var(--sh-serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; color: var(--sh-ink); transition: opacity 0.2s; }
.sh-post-link:hover .sh-post-title { opacity: 0.7; }
.sh-posts-more { display: flex; margin: 64px auto 0; }
.sh-posts-more[hidden] { display: none; }
.sh-posts-empty { text-align: center; color: var(--sh-text-2); }
@media (min-width: 810px) { .sh-posts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sh-posts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* A post, as an insight on the Next.js site: one column of 768 pixels, the author under a hairline, more posts after. */
.sh-article { padding: calc(var(--sh-header-h) + 96px) 0 96px; }
.sh-article-inner { max-width: 768px; margin-inline: auto; }
.sh-article-meta { margin: 0; font-size: 13px; color: var(--sh-text-2); }
.sh-article-title { max-width: 680px; margin: 20px 0 0; font-family: var(--sh-serif); font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -0.05em; color: var(--sh-ink); text-wrap: balance; }
.sh-article-lead { max-width: 680px; margin: 24px 0 0; font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; color: var(--sh-text-2); }
.sh-article-cover { margin: 48px 0 0; overflow: hidden; aspect-ratio: 40 / 21; border-radius: 8px; background: var(--sh-surface); }
.sh-article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-article .sh-longform { margin-top: 48px; }
.sh-article-author { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--sh-line); }
.sh-article-author-name { margin: 0; font-size: 15px; font-weight: 500; color: var(--sh-ink); }
.sh-article-author-name a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sh-line); }
.sh-article-author-role { margin: 4px 0 0; font-size: 14px; color: var(--sh-text-2); }
.sh-related { padding-block: 80px; border-top: 1px solid var(--sh-line); }
.sh-related-title { margin: 0 0 40px; font-family: var(--sh-sans); font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
@media (max-width: 809px) {
  .sh-article { padding: calc(var(--sh-header-h) + 56px) 0 72px; }
  .sh-article-title { font-size: 34px; }
  .sh-article-lead { font-size: 18px; }
}

/* Long-form text: posts and the legal pages, as .prose-site on the Next.js site. */
.sh-longform { font-size: 18px; line-height: 1.6; letter-spacing: -0.005em; color: var(--sh-ink); overflow-wrap: break-word; }
.sh-longform > * + * { margin-top: 1.25em; }
.sh-longform > :first-child { margin-top: 0; }
.sh-longform h2 { margin-top: 2em; font-family: var(--sh-serif); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -0.04em; }
.sh-longform h3 { margin-top: 1.8em; font-family: var(--sh-sans); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.sh-longform h4 { margin-top: 1.6em; font-family: var(--sh-sans); font-weight: 500; font-size: 20px; line-height: 1.3; }
.sh-longform p, .sh-longform ul, .sh-longform ol, .sh-longform figure, .sh-longform blockquote { margin-bottom: 0; }
.sh-longform strong { font-weight: 600; }
.sh-longform a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sh-longform ul, .sh-longform ol { padding-left: 1.4em; }
.sh-longform ul { list-style: disc; }
.sh-longform ol { list-style: decimal; }
.sh-longform li + li { margin-top: 0.4em; }
.sh-longform blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 2px solid var(--sh-line); font-style: italic; color: var(--sh-text-2); }
.sh-longform img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.sh-longform figure { margin-inline: 0; }
.sh-longform figcaption { margin-top: 0.5em; font-size: 14px; color: var(--sh-text-2); }
.sh-longform hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--sh-line); }
.sh-longform .sh-table-wrap { overflow-x: auto; }
.sh-longform table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.sh-longform th, .sh-longform td { padding: 10px 8px; border-bottom: 1px solid var(--sh-line); text-align: left; vertical-align: top; }
.sh-longform th { font-weight: 500; }
@media (max-width: 809px) {
  .sh-longform { font-size: 17px; }
  .sh-longform h2 { font-size: 30px; }
  .sh-longform h3 { font-size: 21px; }
}

/* Legal pages (Phase 3), as /legal/[slug] on the Next.js site: the title over a hairline, then the contents in a
   column that stays in view and the text beside it. */
.sh-legal { padding: calc(var(--sh-header-h) + 96px) 0 128px; }
.sh-legal-head { padding-bottom: 32px; border-bottom: 1px solid var(--sh-line); }
.sh-legal-title { margin: 0; font-family: var(--sh-serif); font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -0.05em; color: var(--sh-ink); }
.sh-legal-updated { margin: 12px 0 0; font-size: 14px; color: var(--sh-text-2); }
.sh-legal-grid { display: grid; gap: 48px; margin-top: 48px; }
.sh-legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--sh-line); }
.sh-legal-toc a { font-size: 14px; line-height: 1.5; letter-spacing: -0.02em; color: var(--sh-text-2); transition: color 0.2s; }
.sh-legal-toc a:hover { color: var(--sh-ink); }
.sh-legal-body { max-width: 768px; min-width: 0; }
.sh-legal-body h2 { scroll-margin-top: calc(var(--sh-header-h) + 24px); }
@media (min-width: 810px) {
  .sh-legal-grid { grid-template-columns: 280px minmax(0, 768px); gap: 80px; }
  .sh-legal-toc { position: sticky; top: calc(var(--sh-header-h) + 32px); align-self: start; }
}
@media (max-width: 809px) {
  .sh-legal { padding: calc(var(--sh-header-h) + 56px) 0 80px; }
  .sh-legal-title { font-size: 34px; }
}
/* Chris's documents put each item on a line of its own under a bold label, so lines sit closer than paragraphs. */
.sh-legal-body > p { margin-top: 12px; }
.sh-legal-body > h2 + p, .sh-legal-body > p:first-child { margin-top: 1.25em; }
.sh-legal-body > p:first-child { margin-top: 0; }
.sh-legal-body > p:has(> strong:only-child) { margin-top: 28px; }
.sh-legal-body > h2 + p:has(> strong:only-child) { margin-top: 1.25em; }

/* Blog covers drawn as scenes (blog-cover.php): dark panels like the service heroes. A card's scene is still, drawn at
   768 by 432 and shrunk to its card (pages.js sets --sh-card-scale), so it looks like the post's cover in small. */
.sh-article-scene { aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 50% 0%, #1f2d28 0%, #151515 62%); }
@media (max-width: 809px) { .sh-article-scene { aspect-ratio: 4 / 3; } .sh-article-scene:has(.sh-scene-answer) { aspect-ratio: 4 / 5; } } /* the AI answer is tall, as on the service heroes */
.sh-post-media-scene { padding: 0; background: radial-gradient(120% 90% at 50% 0%, #1f2d28 0%, #151515 62%); }
.sh-post-media-scene .sh-scene { position: absolute; top: 50%; left: 50%; width: 768px; height: 432px; margin: -216px 0 0 -384px; transform: scale(var(--sh-card-scale, 0.48)); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sh-post-link:hover .sh-post-media-scene .sh-scene { transform: scale(calc(var(--sh-card-scale, 0.48) * 1.03)); }
@media (prefers-reduced-motion: reduce) { .sh-post-media-scene .sh-scene { transition: none; } .sh-post-link:hover .sh-post-media-scene .sh-scene { transform: scale(var(--sh-card-scale, 0.48)); } }
