/* Shared homepage treatment, separate from article and tool-page styles. */
body.index-home #mainNav { position: relative; top: auto; }
.index-home #mainNav .site-brand { display: inline-flex; flex-direction: row; align-items: center; }
.index-hero {
    --hero-ink: #183b49;
    --hero-tint: color-mix(in srgb, var(--hero-color) 10%, #f7f8f4);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 68px 0 62px;
    border-bottom: 1px solid #dce3df;
    background: #f4f6f3;
    color: var(--hero-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
}
.index-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 76px);
    width: calc(100% - 64px);
    max-width: 1240px;
    margin: 0 auto;
}
.index-hero-copy { min-width: 0; }
.index-hero .index-hero-eyebrow {
    max-width: 58ch;
    margin: 0 0 20px;
    color: #4c656b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: .115em;
    text-transform: uppercase;
}
.index-hero h1 {
    max-width: 24ch;
    margin: 0;
    padding: 0;
    color: var(--hero-ink);
    font-family: inherit;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 750;
    line-height: 1.13;
    letter-spacing: -.042em;
    text-transform: none;
    text-wrap: balance;
}
.index-hero .index-hero-description {
    max-width: 62ch;
    margin: 24px 0 0;
    color: #4a6068;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
}
.index-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 26px;
    margin-top: 30px;
}
.index-hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.index-hero-actions .index-hero-primary {
    padding: 15px 22px;
    border: 0;
    border-radius: 2px;
    background: var(--hero-ink);
    color: #fff;
}
.index-hero-actions .index-hero-primary:hover { background: #285664; color: #fff; }
.index-hero-actions .index-hero-secondary { color: var(--hero-ink); padding: 10px 0; }
.index-hero-actions .index-hero-secondary:hover { text-decoration: underline; text-underline-offset: 5px; }
.index-hero-actions a:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: 5px; }
.index-hero-actions a span { font-size: 20px; font-weight: 400; }
.index-hero .index-hero-checked { margin: 24px 0 0; color: #607278; font-size: 12px; line-height: 1.6; }
.index-hero-visual { min-width: 0; }
.index-hero-artwork { display: block; width: 100%; height: auto; overflow: visible; }
.index-hero .index-hero-caption {
    margin: 12px 0 0;
    color: #587078;
    font-family: inherit;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.6;
    letter-spacing: .055em;
    text-align: center;
}
.index-page-content { padding: 64px 0 !important; background: #fff; }
.container.index-article-body {
    max-width: 1240px;
    width: calc(100% - 64px);
    margin-bottom: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #273e48;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}
.index-article-body .article-section { scroll-margin-top: 32px; }
.index-article-body .article-section > h2 { color: #183b49; font-family: inherit; font-size: 28px; letter-spacing: -.025em; }
.index-article-body h2::after { display: none; }
.index-article-body .article-toc { font-size: 14px; }
.index-article-body .article-toc a { line-height: 1.5; }
.index-article-body .article-meta-bar { margin-top: 0; }
@media (max-width: 991px) {
    .index-hero { padding: 48px 0; }
    .index-hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
    .index-hero h1 { font-size: 36px; }
    .index-hero .index-hero-description { font-size: 16px; }
    .index-hero-actions { gap: 12px 20px; }
    .index-page-content { padding: 44px 0 !important; }
}
@media (max-width: 700px) {
    .index-hero { padding: 36px 0 30px; }
    .index-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; width: calc(100% - 40px); }
    .index-hero h1 { max-width: 25ch; font-size: clamp(30px, 6.5vw, 40px); }
    .index-hero .index-hero-eyebrow { margin-bottom: 16px; font-size: 10px; }
    .index-hero .index-hero-description { margin-top: 20px; font-size: 16px; line-height: 1.65; }
    .index-hero-visual { width: 80%; max-width: 340px; margin: 0 auto; }
    .index-hero .index-hero-caption { margin-top: 0; font-size: 10px; }
    .index-hero-actions { margin-top: 24px; }
    .index-hero .index-hero-checked { margin-top: 18px; }
    .container.index-article-body { width: calc(100% - 40px); }
    .index-article-body .article-section > h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
    .index-hero-actions a { transition: none; }
}
