/* Site-wide additions on top of the design kit: long-form documents (legal, blog posts), media frames, forms. */
.doc-hero { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-7); background: var(--g-alt); }
.doc-hero .crumbs { font-size: var(--t-small); color: var(--muted); margin: 0 0 var(--s-4); }
.doc-hero .crumbs a { color: inherit; }
.doc-hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(36px, 3.4vw + 12px, 60px); line-height: 1.05; margin: 0; max-width: 20ch; }
.doc-hero .doc-lede { font-size: var(--t-lead); line-height: 1.5; max-width: 62ch; margin: var(--s-5) 0 0; }
.doc-hero .doc-meta { margin-top: var(--s-5); font-size: var(--t-small); color: var(--muted); }
.doc-body { padding: var(--s-8) 0 var(--s-9); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: 240px minmax(0, 720px); justify-content: space-between; } }
.doc-toc { position: sticky; top: calc(var(--nav) + var(--s-6)); align-self: start; font-size: var(--t-small); }
.doc-toc p { font-weight: 500; margin: 0 0 var(--s-3); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--ink); }
@media (max-width: 1023px) { .doc-toc { position: static; } }
.prose { font-size: 17px; line-height: 1.72; max-width: 720px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.02em; font-size: 28px; line-height: 1.2; margin-top: 2.2em; scroll-margin-top: calc(var(--nav) + 24px); }
.prose h3 { font-size: 20px; font-weight: 500; line-height: 1.3; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose blockquote { margin-left: 0; padding: var(--s-4) var(--s-5); background: var(--g-alt); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose figure video { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.prose .note { font-size: 15px; color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--g-alt); padding: 1px 5px; border-radius: 4px; }
.post-list { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.post-card { display: grid; gap: var(--s-3); text-decoration: none; color: inherit; }
.post-card .post-card__img { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--g-alt); }
.post-card .post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card h3 { font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.post-card p { margin: 0; }
.post-card .post-card__meta { font-size: var(--t-small); color: var(--muted); }
/* media frames */
.media-frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--g-alt); }
.media-frame > img, .media-frame > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame .media-pause { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #1f2b4d; display: grid; place-items: center; cursor: pointer; }
/* forms shared by contact and home */
.lead-form.card { background: var(--g-alt); padding: var(--s-7); border-radius: var(--r-lg); align-self: start; height: auto; }
.lead-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.lead-form .fields .wide { grid-column: 1 / -1; }
.lead-form .field { display: grid; gap: var(--s-2); }
.lead-form label { font-size: var(--t-label); font-weight: 500; }
.lead-form input, .lead-form select, .lead-form textarea { height: 48px; font: inherit; font-size: 16px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--g-main); color: var(--ink); width: 100%; font-family: var(--font-text); }
.lead-form textarea { height: 112px; padding: var(--s-3) var(--s-4); resize: vertical; }
@media (max-width: 639px) { .lead-form.card { padding: var(--s-5); } .lead-form .fields { grid-template-columns: 1fr; } }

/* logo */
.nav__logo .logo-mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; }
.ground-inverse .logo-mark { color: #fff; }

/* document pages (legal, blog posts) sit outside the one-section-per-screen system */
main > section:is(.doc-hero, .doc-body):not(.hero) { height: auto; min-height: 0; display: block; }
main > section:is(.doc-hero, .doc-body):not(.hero) > .wrap { height: auto; }
main > section.doc-hero:not(.hero) { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-7); }
main > section.doc-body:not(.hero) { padding: var(--s-8) 0 var(--s-9); }
main > section.doc-body > .wrap.doc-grid { display: grid; }

/* plan cards keep their own height instead of stretching to fill a tall section */
.grid.fill > .card--plan { align-self: start; height: auto; }
