/* Opt-in editorial primitives. Load after site.css; see docs/agents/editorial-primitives.md. */
body.editorial-page {
    --editorial-paper: #f4f1eb;
    --editorial-ink: #292b28;
    --editorial-muted: #5d625c;
    --editorial-rule: #c9c8c0;
    color-scheme: light;
    background: var(--editorial-paper) !important;
    color: var(--editorial-ink);
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.65;
    padding-top: var(--nav-height);
}
body.editorial-page p { color: var(--editorial-muted); }
body.editorial-page a { color: inherit; }
body.editorial-page a:active,
body.editorial-page button:active { transform: none; }
body.editorial-page :focus-visible { outline: 2px solid var(--editorial-ink); outline-offset: 5px; }
body.editorial-page h1,
body.editorial-page h2,
body.editorial-page h3 { color: var(--editorial-ink) !important; text-shadow: none; -webkit-text-fill-color: var(--editorial-ink) !important; background: none; }
body.editorial-page h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.15; font-weight: 400; text-align: left; }
body.editorial-page h3 { font-family: var(--font-main); font-size: 1.15rem; line-height: 1.4; font-weight: 600; }
body.editorial-page figure { margin: 0; }
body.editorial-page img { display: block; border-radius: 0; }
body.editorial-page address { font-style: normal; color: var(--editorial-muted); }
body.editorial-page .editorial-shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
body.editorial-page .editorial-section { padding: 64px 0; border-top: 1px solid var(--editorial-rule); }
body.editorial-page .navbar {
    background: var(--editorial-paper) !important;
    border-bottom: 1px solid var(--editorial-rule) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
body.editorial-page .navbar .logo,
body.editorial-page .navbar .nav-links a { color: var(--editorial-ink) !important; }
body.editorial-page .navbar .logo { letter-spacing: 0.025em; }
body.editorial-page .navbar .nav-links a:hover,
body.editorial-page .navbar .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
body.editorial-page .navbar .nav-links a { border-radius: 0; }
body.editorial-page .navbar .nav-est { color: var(--editorial-muted); background: none; border: 0; padding: 0; letter-spacing: 0.02em; }
body.editorial-page .navbar .menu-toggle { border-radius: 2px; border-color: var(--editorial-rule); background: none; color: var(--editorial-ink) !important; -webkit-text-fill-color: var(--editorial-ink) !important; }
body.editorial-page .navbar .menu-toggle:hover { background: #e9e5de; }
body.editorial-page .skip-to-content { background: var(--editorial-ink); color: var(--editorial-paper); }
body.editorial-page .editorial-intro { font-size: 0.875rem; margin: 0 0 24px; color: var(--editorial-muted); }
body.editorial-page .editorial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
body.editorial-page .editorial-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: var(--editorial-ink);
    color: var(--editorial-paper) !important;
    -webkit-text-fill-color: var(--editorial-paper) !important;
    border: 1px solid var(--editorial-ink);
    border-radius: 2px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}
body.editorial-page .editorial-button:hover { background: #41463f; }
body.editorial-page .editorial-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 5px; }
body.editorial-page .editorial-link:hover { text-decoration-thickness: 2px; }
body.editorial-page .editorial-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
body.editorial-page .editorial-heading h2 { margin: 0; }
body.editorial-page .editorial-heading p { font-size: 1rem; margin: 0; }
body.editorial-page .editorial-index { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem clamp(1.5rem, 3vw, 3rem); }
body.editorial-page .editorial-index a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--editorial-ink); font-size: 0.9375rem; text-decoration: none; text-underline-offset: 0.25em; }
body.editorial-page .editorial-index a span { color: var(--editorial-muted); font-size: 0.8rem; }
body.editorial-page .editorial-index a:hover,
body.editorial-page .editorial-index a:focus-visible { text-decoration: underline; }
body.editorial-page .editorial-index a:hover span,
body.editorial-page .editorial-index a:focus-visible span { color: var(--editorial-ink); }
body.editorial-page .editorial-split { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: start; gap: 48px; }
body.editorial-page .editorial-split img { width: 100%; height: 480px; object-fit: cover; object-position: center; }
body.editorial-page .editorial-split figure:nth-child(2) { margin-top: 80px; }
body.editorial-page .editorial-split figure:nth-child(2) img { height: 400px; }
body.editorial-page figcaption { margin-top: 14px; color: var(--editorial-muted); font-size: 0.875rem; }
body.editorial-page .editorial-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 0; margin: 0; list-style: none; counter-reset: editorial-step; }
body.editorial-page .editorial-steps li { counter-increment: editorial-step; border-top: 1px solid var(--editorial-rule); padding-top: 20px; }
body.editorial-page .editorial-steps li::before { content: "0" counter(editorial-step); display: block; font-size: 0.875rem; color: var(--editorial-muted); margin-bottom: 24px; }
body.editorial-page .editorial-steps h3 { margin: 0 0 12px; }
body.editorial-page .editorial-steps p { font-size: 1rem; margin: 0; }
body.editorial-page .editorial-columns { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 96px; }
body.editorial-page .editorial-columns h2 { margin: 0 0 24px; }
body.editorial-page .editorial-columns p { margin: 0; max-width: 42ch; }
body.editorial-page .editorial-specs { margin: 0; }
body.editorial-page .editorial-specs div { border-top: 1px solid var(--editorial-rule); padding: 20px 0; }
body.editorial-page .editorial-specs div:first-child { border-top: 0; padding-top: 0; }
body.editorial-page .editorial-specs dt { font-weight: 600; margin-bottom: 8px; }
body.editorial-page .editorial-specs dd { color: var(--editorial-muted); margin: 0; font-size: 1rem; }
body.editorial-page .editorial-cta { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
body.editorial-page .editorial-cta h2 { margin: 0 0 24px; }
body.editorial-page .editorial-cta p { max-width: 52ch; margin: 0; }
body.editorial-page .editorial-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex-shrink: 0; }
body.editorial-page .site-footer.site-footer--grid { background: #e9e5de !important; border-top: 1px solid var(--editorial-rule); margin-top: 0; padding: 48px; }
body.editorial-page .footer-grid { max-width: 1200px; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding: 0; }
body.editorial-page .footer-brand { color: var(--editorial-ink); font-family: var(--font-display); font-weight: 400; letter-spacing: 0.025em; text-transform: none; }
body.editorial-page .footer-brand span { color: var(--editorial-muted); }
body.editorial-page .footer-brand p { font-family: var(--font-main); font-size: var(--type-small); line-height: 1.6; margin-top: 16px; letter-spacing: normal; }
body.editorial-page .footer-section h3 { font-size: 0.9375rem; margin: 0 0 16px; }
body.editorial-page .footer-section address { font-size: 0.875rem; }
body.editorial-page .site-footer a { color: var(--editorial-muted); display: inline-flex; align-items: center; min-height: 32px; }
body.editorial-page .site-footer a:hover { color: var(--editorial-ink); text-decoration: underline; }
body.editorial-page .footer-certifications { display: flex; justify-content: center; padding: 16px 0 32px; }
body.editorial-page .cert-badge { padding: 10px 16px; background: #fff; }
body.editorial-page .cert-badge img { height: 64px; width: auto; }
body.editorial-page .footer-copyright { border-top: 1px solid var(--editorial-rule); }
body.editorial-page .footer-copyright p { color: var(--editorial-muted); }
body.editorial-page .footer-reg-no { opacity: 1; }
@media (max-width: 1100px) {
    body.editorial-page .editorial-columns { gap: 48px; }
    body.editorial-page .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 968px) {
    body.editorial-page .navbar .nav-links { background: var(--editorial-paper) !important; }
    body.editorial-page .editorial-heading { display: block; }
    body.editorial-page .editorial-heading p,
    body.editorial-page .editorial-heading .editorial-link { margin-top: 16px; }
    body.editorial-page .editorial-split { gap: 32px; }
    body.editorial-page .editorial-split img { height: 400px; }
    body.editorial-page .editorial-split figure:nth-child(2) img { height: 320px; }
    body.editorial-page .editorial-steps { grid-template-columns: repeat(2, 1fr); }
    body.editorial-page .editorial-columns { grid-template-columns: 1fr; gap: 32px; }
    body.editorial-page .editorial-columns p { max-width: 60ch; }
    body.editorial-page .editorial-cta { align-items: flex-start; gap: 32px; }
    body.editorial-page .site-footer.site-footer--grid { padding: 40px 48px; }
}

@media (max-width: 600px) {
    body.editorial-page { font-size: 16px; }
    body.editorial-page .editorial-shell { width: calc(100% - 48px); }
    body.editorial-page .editorial-section { padding: 40px 0; }
    body.editorial-page .editorial-intro { margin-bottom: 16px; font-size: 0.8125rem; }
    body.editorial-page .editorial-actions { margin-top: 20px; gap: 8px 20px; }
    body.editorial-page .editorial-button { padding: 12px 18px; font-size: 0.875rem; }
    body.editorial-page .editorial-link { font-size: 0.875rem; }
    body.editorial-page .editorial-heading { margin-bottom: 24px; }
    body.editorial-page .editorial-index { align-items: stretch; flex-direction: column; gap: 0; }
    body.editorial-page .editorial-index a { justify-content: space-between; width: 100%; }
    body.editorial-page .editorial-split { grid-template-columns: 1fr; gap: 32px; }
    body.editorial-page .editorial-split img { height: 340px; }
    body.editorial-page .editorial-split figure:nth-child(2) { margin-top: 0; }
    body.editorial-page .editorial-split figure:nth-child(2) img { height: 300px; }
    body.editorial-page .editorial-steps { grid-template-columns: 1fr; gap: 24px; }
    body.editorial-page .editorial-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 8px 16px; padding-top: 16px; }
    body.editorial-page .editorial-steps li::before { grid-row: span 2; margin: 2px 0 0; }
    body.editorial-page .editorial-steps h3 { margin: 0; }
    body.editorial-page .editorial-steps p { grid-column: 2; }
    body.editorial-page .editorial-cta { flex-direction: column; }
    body.editorial-page .site-footer.site-footer--grid { padding: 40px 24px !important; }
    body.editorial-page .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
    body.editorial-page .footer-brand { grid-column: 1 / -1; }
    body.editorial-page .site-footer a { min-height: 44px; }
}

/* Compact media/text introduction; Home keeps its own hero proportions. */
body.editorial-page .editorial-hero { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: 48px; min-height: 0; padding: 48px 0 64px; text-align: left; overflow: visible; background-attachment: scroll !important; }
body.editorial-page .editorial-hero h1 { display: block; max-width: 17ch; font-size: clamp(2.4rem, 3.4vw, 3.25rem); font-weight: 400; line-height: 1.08 !important; letter-spacing: -0.025em; margin: 0 0 24px; padding: 0 !important; color: var(--editorial-ink); text-shadow: none; }
body.editorial-page .editorial-hero .hero-subtitle { max-width: 39ch; margin: 0; color: var(--editorial-muted) !important; -webkit-text-fill-color: var(--editorial-muted) !important; font-size: 1.0625rem; line-height: 1.65; text-transform: none; letter-spacing: normal; }
body.editorial-page .editorial-hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 51%; }
body.editorial-page .editorial-figure figcaption { margin-top: 0.7rem; color: var(--editorial-muted); font-size: 0.78rem; line-height: 1.45; }
body.editorial-page .editorial-support { max-width: 50ch; margin: 0.8rem 0 0; color: var(--editorial-muted); font-size: 0.9rem; line-height: 1.6; }
body.editorial-page .editorial-index--spaced { margin-top: 16px; }
body.editorial-page .editorial-split--center { align-items: center; }
body.editorial-page .editorial-copy h2 { margin: 0 0 20px; }
body.editorial-page .editorial-copy > p { max-width: 56ch; }
body.editorial-page .editorial-copy .editorial-link { font-weight: 600; }
body.editorial-page .editorial-media--contain img { height: auto; max-height: 580px; object-fit: contain; }

/* Numbered, long-form project journey. Use editorial-steps for short summaries. */
body.editorial-page .editorial-journey { list-style: none; padding: 0; margin: 0; counter-reset: journey; }
body.editorial-page .editorial-journey > li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; border-top: 1px solid var(--editorial-rule); padding: 32px 0; counter-increment: journey; }
body.editorial-page .editorial-journey h3 { margin: 0; font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; }
body.editorial-page .editorial-journey h3::before { content: counter(journey, decimal-leading-zero); display: block; margin-bottom: 12px; font-family: var(--font-main); font-size: 0.875rem; color: var(--editorial-muted); }
body.editorial-page .editorial-journey p { margin: 0 0 16px; max-width: 65ch; }
body.editorial-page .editorial-journey p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
    body.editorial-page .editorial-hero { gap: 32px; }
}
@media (max-width: 968px) {
    body.editorial-page .editorial-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
    body.editorial-page .editorial-hero .hero-subtitle { max-width: 55ch; }
}
@media (max-width: 600px) {
    body.editorial-page .editorial-hero { gap: 28px; padding: 28px 0 40px !important; }
    body.editorial-page .editorial-hero h1 { margin-bottom: 18px; }
    body.editorial-page .editorial-hero .hero-subtitle { font-size: 1rem; }
    body.editorial-page .editorial-journey > li { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
    body.editorial-page .editorial-journey h3::before { display: inline; margin-right: 16px; }
}
