/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Analysis Methods editorial catalog styling.
 * Mirrors the ancestry report catalog while keeping scientific content readable.
 */

.methods-page {
    --methods-bg: #0d1117;
    --methods-bg-alt: #11171f;
    --methods-surface: #151b23;
    --methods-surface-raised: #1b232d;
    --methods-surface-soft: #222c38;
    --methods-border: #35404d;
    --methods-border-strong: #546273;
    --methods-gold: #d8b07a;
    --methods-gold-dark: #aa7f4f;
    --methods-cream: #f5f1e9;
    --methods-text: #f5f7fa;
    --methods-text-muted: #c2cad4;
    --methods-text-soft: #9aa7b5;
    --methods-teal: #67b9ad;
    --methods-blue: #6da0d6;
    --methods-purple: #a88bd4;
    --methods-orange: #d8925c;
    --methods-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    background: var(--methods-bg);
    color: var(--methods-text);
    font-family: var(--dng-font-sans, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    line-height: 1.65;
    min-height: 100vh;
    overflow: clip;
}

body:has(.methods-page),
body:has(.methods-page) #wrapper,
body:has(.methods-page) #content-wrapper,
body:has(.methods-page) #content-fluid {
    background: var(--methods-bg, #0d1117) !important;
}

.methods-page *,
.methods-page *::before,
.methods-page *::after {
    box-sizing: border-box;
}

.methods-page img,
.methods-page svg {
    display: block;
    max-width: 100%;
}

.methods-page a {
    color: inherit;
}

.methods-page a:focus-visible,
.methods-page summary:focus-visible,
.methods-page button:focus-visible {
    outline: 3px solid var(--methods-cream);
    outline-offset: 4px;
}

.methods-skip-link {
    background: var(--methods-cream);
    color: #111820 !important;
    font-weight: 800;
    left: 1rem;
    padding: 0.8rem 1rem;
    position: fixed;
    top: -6rem;
    z-index: 12000;
}

.methods-skip-link:focus {
    top: 1rem;
}

/* Hero */
.methods-hero {
    background: var(--methods-bg-alt);
    border-bottom: 1px solid var(--methods-border);
    padding: calc(var(--content-offset, 80px) + clamp(2.5rem, 6vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 6rem);
    position: relative;
}

.methods-hero::before {
    background: var(--methods-gold);
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
}

.methods-hero-layout {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
}

.methods-hero-content {
    max-width: 720px;
}

.methods-hero-badge,
.methods-section-label {
    align-items: center;
    color: var(--methods-gold);
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.5rem;
    letter-spacing: 0.14em;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
}

.methods-hero-badge .dna-icon {
    flex: 0 0 auto;
}

.methods-hero-headline,
.methods-section-title,
.methods-final-headline,
.methods-related-title {
    color: var(--methods-cream);
    font-family: var(--dng-font-serif, Georgia, "Times New Roman", serif);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.methods-hero-headline {
    font-size: clamp(2.5rem, 5.2vw, 4.8rem);
    line-height: 0.98;
    margin: 0 0 1.5rem;
    max-width: 13ch;
}

.methods-hero-subheadline {
    color: var(--methods-text-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
    margin: 0;
    max-width: 66ch;
}

.methods-hero-cta,
.methods-final-cta-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.methods-btn-primary,
.methods-btn-secondary,
.methods-btn-text {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 750;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.methods-btn-primary {
    background: var(--methods-gold);
    border: 1px solid var(--methods-gold);
    color: #14191f !important;
}

.methods-btn-primary:hover {
    background: #e5c190;
    border-color: #e5c190;
    box-shadow: 0 8px 24px rgba(216, 176, 122, 0.18);
}

.methods-btn-secondary {
    background: var(--methods-surface-raised);
    border: 1px solid var(--methods-border-strong);
    color: var(--methods-text) !important;
}

.methods-btn-secondary:hover {
    background: var(--methods-surface-soft);
    border-color: var(--methods-gold);
}

.methods-btn-text {
    border: 1px solid transparent;
    color: var(--methods-gold) !important;
    padding-inline: 0.6rem;
    text-decoration: underline !important;
    text-underline-offset: 0.25em;
}

.methods-btn-large {
    min-height: 52px;
    padding-inline: 1.6rem;
}

.methods-hero-proof {
    border-top: 1px solid var(--methods-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    list-style: none;
    margin: 2.25rem 0 0;
    padding: 1.25rem 0 0;
}

.methods-hero-proof li,
.methods-hero-history {
    align-items: center;
    color: var(--methods-text-muted);
    display: flex;
    font-size: 0.86rem;
    gap: 0.5rem;
}

.methods-hero-proof .dna-icon,
.methods-hero-history .dna-icon {
    color: var(--methods-gold);
    flex: 0 0 auto;
}

.methods-hero-history {
    margin: 1rem 0 0;
}

.methods-hero-gallery {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 1fr 1fr;
}

.methods-hero-figure,
.methods-hero-preview-card {
    background: var(--methods-surface);
    border: 1px solid var(--methods-border);
    border-radius: 1.1rem;
    box-shadow: var(--methods-shadow);
    margin: 0;
    overflow: hidden;
}

.methods-hero-figure-primary {
    grid-column: 1 / -1;
}

.methods-hero-figure img {
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.methods-hero-figure figcaption {
    background: #121820;
    border-top: 1px solid var(--methods-border);
    color: var(--methods-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.65rem 0.8rem;
}

.methods-hero-preview-card {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    min-height: 104px;
    padding: 1rem;
}

.methods-hero-preview-card > .dna-icon {
    color: var(--methods-gold);
    flex: 0 0 auto;
    height: 1.55rem;
    width: 1.55rem;
}

.methods-hero-preview-card strong,
.methods-hero-preview-card span {
    display: block;
}

.methods-hero-preview-card strong {
    color: var(--methods-cream);
    font-size: 0.92rem;
}

.methods-hero-preview-card div span {
    color: var(--methods-text-soft);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

/* Sticky chapter navigation */
.methods-section-nav {
    background: rgba(13, 17, 23, 0.97);
    border-bottom: 1px solid var(--methods-border);
    position: sticky;
    top: var(--content-offset, 80px);
    z-index: 100;
}

.methods-section-nav-scroller {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-block: 0.65rem;
    scrollbar-color: var(--methods-border-strong) transparent;
    scrollbar-width: thin;
}

.methods-section-nav a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--methods-text-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 750;
    justify-content: center;
    min-height: 44px;
    padding: 0.62rem 1rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.methods-section-nav a:hover,
.methods-section-nav a:focus-visible {
    background: var(--methods-surface-raised);
    border-color: var(--methods-border-strong);
    color: var(--methods-cream);
}

/* Chapters */
.methods-main {
    background: var(--methods-bg);
}

.methods-section {
    background: var(--methods-bg);
    border-bottom: 1px solid var(--methods-border);
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    scroll-margin-top: calc(var(--content-offset, 80px) + 72px);
}

.methods-section:nth-of-type(even),
.methods-section-warm,
.methods-section-dark,
.methods-section-accent {
    background: var(--methods-bg-alt);
}

.methods-section-light {
    background: var(--methods-bg);
}

.methods-section-header {
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
    max-width: 780px;
    text-align: left;
}

.methods-section-title {
    font-size: clamp(2.2rem, 4vw, 3.55rem);
    line-height: 1.06;
    margin: 0 0 1rem;
}

.methods-section-subtitle {
    color: var(--methods-text-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 64ch;
}

.methods-prose {
    margin: 0;
    max-width: 74ch;
}

.methods-prose p,
.methods-model-prose p,
.methods-concept-body p,
.methods-limit-card p,
.methods-guidance-content p,
.methods-ecosystem-card p,
.methods-faq-answer p {
    color: var(--methods-text-muted);
    margin: 0 0 1rem;
}

.methods-prose p:last-child,
.methods-model-prose p:last-child,
.methods-concept-body p:last-child,
.methods-limit-card p:last-child,
.methods-guidance-content p:last-child,
.methods-ecosystem-card p:last-child,
.methods-faq-answer p:last-child {
    margin-bottom: 0;
}

.methods-prose-lead {
    color: var(--methods-cream) !important;
    font-family: var(--dng-font-serif, Georgia, "Times New Roman", serif);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.35;
}

.methods-anchor-line {
    align-items: center;
    border-left: 3px solid var(--methods-gold-dark);
    color: var(--methods-text-muted);
    display: flex;
    gap: 0.7rem;
    margin-top: 2rem;
    max-width: 760px;
    padding: 0.8rem 1rem;
}

.methods-anchor-line .dna-icon {
    color: var(--methods-gold);
    flex: 0 0 auto;
}

.methods-anchor-centered {
    margin-inline: auto;
}

/* Reusable cards */
.methods-principles-grid,
.methods-limits-grid,
.methods-ecosystem-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
}

.methods-principle-card,
.methods-data-card,
.methods-limit-card,
.methods-ecosystem-card,
.methods-concept-card {
    background: var(--methods-surface);
    border: 1px solid var(--methods-border);
    border-radius: 1.2rem;
    padding: 1.5rem;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.methods-principle-card:hover,
.methods-data-card:hover,
.methods-limit-card:hover,
.methods-ecosystem-card:hover,
.methods-concept-card:hover {
    border-color: var(--methods-gold-dark);
    box-shadow: var(--methods-shadow);
}

.methods-principle-card h3,
.methods-data-card h3,
.methods-limit-card h3,
.methods-ecosystem-card h3,
.methods-concept-card h3 {
    color: var(--methods-cream);
    font-size: 1.12rem;
    font-weight: 750;
    margin: 0 0 0.75rem;
}

.methods-principle-card p,
.methods-data-card p {
    color: var(--methods-text-muted);
    margin: 0;
}

.methods-principle-icon,
.methods-data-icon,
.methods-concept-icon,
.methods-guidance-icon {
    align-items: center;
    background: var(--methods-gold);
    border-radius: 0.75rem;
    color: #121820;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 2.75rem;
}

.methods-principle-icon .dna-icon,
.methods-data-icon .dna-icon,
.methods-concept-icon .dna-icon,
.methods-guidance-icon .dna-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.methods-data-note,
.methods-ecosystem-note {
    background: var(--methods-surface-raised);
    border-left: 3px solid var(--methods-gold-dark);
    color: var(--methods-text-soft) !important;
    font-size: 0.88rem;
    margin-top: 1rem !important;
    padding: 0.75rem 0.85rem;
}

/* Method disclosures */
.methods-modeling-list {
    display: grid;
    gap: 1rem;
}

.methods-model-item {
    background: var(--methods-surface);
    border: 1px solid var(--methods-border);
    border-radius: 1rem;
    overflow: hidden;
    scroll-margin-top: calc(var(--content-offset, 80px) + 140px);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.methods-model-item:hover,
.methods-model-item[open] {
    border-color: var(--methods-gold-dark);
    box-shadow: var(--methods-shadow);
}

.methods-model-item[open] {
    background: var(--methods-surface-raised);
}

.methods-model-header {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    list-style: none;
    min-height: 92px;
    padding: 1.25rem 1.4rem;
}

.methods-model-header::-webkit-details-marker,
.methods-faq-question::-webkit-details-marker {
    display: none;
}

.methods-model-header::marker,
.methods-faq-question::marker {
    content: "";
}

.methods-model-header:hover {
    background: var(--methods-surface-soft);
}

.methods-model-icon {
    align-items: center;
    background: var(--methods-gold);
    border-radius: 0.75rem;
    color: #121820;
    display: flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.methods-model-icon .dna-icon {
    height: 1.35rem;
    width: 1.35rem;
}

.methods-model-info h3 {
    color: var(--methods-cream);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 750;
    margin: 0;
}

.methods-model-tagline {
    color: var(--methods-text-soft);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.methods-model-toggle {
    color: var(--methods-gold);
    transition: transform 160ms ease;
}

.methods-model-item[open] .methods-model-toggle {
    transform: rotate(180deg);
}

.methods-model-content {
    border-top: 1px solid var(--methods-border);
}

.methods-model-prose {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.methods-model-prose strong,
.methods-concept-body strong,
.methods-faq-answer strong {
    color: var(--methods-cream);
}

.methods-model-badge {
    background: var(--methods-surface-soft);
    border: 1px solid var(--methods-border-strong);
    border-radius: 999px;
    color: var(--methods-gold);
    display: inline-flex;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    margin-left: 0.35rem;
    padding: 0.22rem 0.55rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.methods-used-in {
    align-items: flex-start;
    border-top: 1px solid var(--methods-border);
    color: var(--methods-text-soft);
    display: flex;
    font-size: 0.88rem;
    gap: 0.55rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.methods-used-in .dna-icon {
    color: var(--methods-gold);
    flex: 0 0 auto;
    margin-top: 0.25rem;
}

.methods-used-in a,
.methods-ecosystem-link {
    color: var(--methods-gold) !important;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.methods-diagram-container {
    background: #10161e;
    border: 1px solid var(--methods-border);
    border-radius: 0.9rem;
    overflow-x: auto;
    padding: clamp(0.8rem, 2vw, 1.25rem);
    scrollbar-color: var(--methods-border-strong) transparent;
}

.methods-diagram {
    height: auto;
    margin: 0 auto;
    min-width: 620px;
    width: 100%;
}

.methods-icon-inverted {
    transform: rotate(180deg);
}

.methods-differential-callout {
    align-items: center;
    background: var(--methods-surface);
    border: 1px solid var(--methods-gold-dark);
    border-radius: 1rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 1.5rem;
    padding: 1.4rem;
}

.methods-differential-icon {
    align-items: center;
    background: var(--methods-gold);
    border-radius: 50%;
    color: #121820;
    display: flex;
    height: 3.25rem;
    justify-content: center;
    width: 3.25rem;
}

.methods-differential-content h3 {
    color: var(--methods-cream);
    margin: 0 0 0.45rem;
}

.methods-differential-content p {
    color: var(--methods-text-muted);
    margin: 0;
}

/* Concepts and interpretation */
.methods-concepts-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.methods-concept-header,
.methods-limit-header,
.methods-ecosystem-header {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.methods-concept-header .methods-concept-icon {
    flex: 0 0 auto;
    margin: 0;
}

.methods-concept-header h3,
.methods-limit-header h3,
.methods-ecosystem-header h3 {
    margin: 0;
}

.methods-concept-clarification,
.methods-concept-warning {
    align-items: flex-start;
    background: var(--methods-surface-raised);
    border-left: 3px solid var(--methods-gold-dark);
    color: var(--methods-text-muted);
    display: flex;
    font-size: 0.88rem;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.8rem;
}

.methods-concept-clarification .dna-icon,
.methods-concept-warning .dna-icon {
    color: var(--methods-gold);
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.methods-concept-highlighted {
    border-color: var(--methods-gold-dark);
}

.methods-limit-header > .dna-icon,
.methods-ecosystem-header > .dna-icon {
    color: var(--methods-gold);
    flex: 0 0 auto;
    height: 1.3rem;
    width: 1.3rem;
}

.methods-guidance-list {
    display: grid;
    gap: 1rem;
}

.methods-guidance-item {
    align-items: flex-start;
    background: var(--methods-surface);
    border: 1px solid var(--methods-border);
    border-radius: 1rem;
    display: grid;
    gap: 1.1rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1.35rem;
}

.methods-guidance-icon {
    margin: 0;
}

.methods-guidance-content h4 {
    color: var(--methods-cream);
    font-size: 1.05rem;
    margin: 0 0 0.45rem;
}

.methods-ecosystem-card {
    display: flex;
    flex-direction: column;
}

.methods-ecosystem-link {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

/* FAQ */
.methods-faq-accordion {
    display: grid;
    gap: 0.85rem;
}

.methods-faq-item {
    background: var(--methods-surface);
    border: 1px solid var(--methods-border);
    border-radius: 1rem;
    overflow: hidden;
}

.methods-faq-item[open] {
    border-color: var(--methods-gold-dark);
}

.methods-faq-question {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 750;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    min-height: 68px;
    padding: 1rem 1.25rem;
}

.methods-faq-question:hover {
    background: var(--methods-surface-raised);
}

.methods-faq-question > span:first-child {
    color: var(--methods-cream);
}

.methods-faq-question .dna-icon {
    color: var(--methods-gold);
    flex: 0 0 auto;
    transition: transform 160ms ease;
}

.methods-faq-item[open] .methods-faq-question .dna-icon {
    transform: rotate(180deg);
}

.methods-faq-answer {
    border-top: 1px solid var(--methods-border);
    padding: 1.1rem 1.25rem 1.25rem;
}

.methods-faq-contact {
    align-items: center;
    border-top: 1px solid var(--methods-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
}

.methods-faq-contact p {
    color: var(--methods-text-muted);
    margin: 0;
}

.methods-faq-contact .methods-btn-text {
    min-height: 42px;
}

/* Closing CTA and related tools */
.methods-final-cta {
    background: var(--methods-bg-alt);
    border-bottom: 1px solid var(--methods-border);
    padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.methods-final-cta-content {
    background: var(--methods-surface-raised);
    border: 1px solid var(--methods-gold-dark);
    border-radius: 1.25rem;
    margin: 0 auto;
    max-width: 980px;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
}

.methods-final-headline {
    font-size: clamp(2.1rem, 4.5vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.methods-final-headline span {
    color: var(--methods-gold);
}

.methods-final-subheadline {
    color: var(--methods-text-muted);
    margin: 0 auto;
    max-width: 66ch;
}

.methods-final-cta-buttons {
    justify-content: center;
}

.methods-final-microcopy {
    align-items: center;
    color: var(--methods-text-soft);
    display: flex;
    font-size: 0.86rem;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.25rem 0 0;
}

.methods-final-microcopy .dna-icon {
    color: var(--methods-gold);
}

.methods-related-products {
    background: var(--methods-bg);
    border-bottom: 1px solid var(--methods-border);
    padding: clamp(4rem, 8vw, 6rem) max(1rem, calc((100% - 1140px) / 2));
}

.methods-related-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 2rem;
    text-align: left;
}

.methods-related-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.methods-related-card {
    background: var(--methods-surface);
    border: 1px solid var(--methods-border);
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.methods-related-card:hover,
.methods-related-card:focus-within {
    border-color: var(--methods-gold-dark);
    box-shadow: var(--methods-shadow);
}

.methods-related-img {
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--methods-border);
    object-fit: cover;
    width: 100%;
}

.methods-related-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.methods-related-content h4 {
    color: var(--methods-cream);
    font-size: 1.1rem;
    margin: 0 0 0.55rem;
}

.methods-related-content p {
    color: var(--methods-text-muted);
    flex: 1;
    margin: 0 0 1rem;
}

.methods-related-link {
    color: var(--methods-gold) !important;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Responsive */
@media (max-width: 991.98px) {
    .methods-hero-layout {
        grid-template-columns: 1fr;
    }

    .methods-hero-content {
        max-width: 780px;
    }

    .methods-hero-headline {
        max-width: 15ch;
    }

    .methods-hero-gallery {
        margin: 0 auto;
        max-width: 760px;
        width: 100%;
    }

    .methods-concepts-grid,
    .methods-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .methods-hero {
        padding-bottom: 3rem;
    }

    .methods-hero-headline {
        font-size: clamp(2.4rem, 12vw, 3.8rem);
    }

    .methods-hero-gallery {
        grid-template-columns: 1fr;
    }

    .methods-hero-figure-primary {
        grid-column: auto;
    }

    .methods-section-nav {
        top: var(--content-offset, 64px);
    }

    .methods-section {
        padding: 4.25rem 0;
        scroll-margin-top: calc(var(--content-offset, 64px) + 72px);
    }

    .methods-section-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .methods-model-header {
        gap: 0.75rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 1rem;
    }

    .methods-model-icon {
        height: 2.6rem;
        width: 2.6rem;
    }

    .methods-model-tagline {
        display: none;
    }

    .methods-model-badge {
        display: table;
        margin: 0.4rem 0 0;
    }

    .methods-differential-callout,
    .methods-guidance-item {
        grid-template-columns: 1fr;
    }

    .methods-concepts-grid,
    .methods-related-grid {
        grid-template-columns: 1fr;
    }

    .methods-diagram {
        min-width: 560px;
    }
}

@media (max-width: 430px) {
    .methods-hero-cta,
    .methods-final-cta-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .methods-btn-primary,
    .methods-btn-secondary,
    .methods-btn-text {
        width: 100%;
    }

    .methods-hero-proof {
        align-items: flex-start;
        flex-direction: column;
    }

    .methods-model-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .methods-model-icon {
        display: none;
    }

    .methods-faq-contact {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .methods-page *,
    .methods-page *::before,
    .methods-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .methods-page,
    .methods-main,
    .methods-section,
    .methods-section:nth-of-type(even),
    .methods-section-warm,
    .methods-section-dark,
    .methods-section-accent,
    .methods-final-cta {
        background: #fff !important;
        color: #111 !important;
    }

    .methods-section-nav,
    .methods-hero-cta,
    .methods-final-cta-buttons,
    .methods-related-products {
        display: none !important;
    }

    .methods-hero {
        background: #fff !important;
        border-bottom: 2px solid #111;
        padding: 2rem 0;
    }

    .methods-hero-layout {
        display: block;
    }

    .methods-hero-gallery {
        display: none;
    }

    .methods-hero-headline,
    .methods-section-title,
    .methods-final-headline,
    .methods-principle-card h3,
    .methods-data-card h3,
    .methods-limit-card h3,
    .methods-ecosystem-card h3,
    .methods-concept-card h3,
    .methods-model-info h3,
    .methods-guidance-content h4,
    .methods-faq-question > span:first-child {
        color: #111 !important;
    }

    .methods-hero-subheadline,
    .methods-section-subtitle,
    .methods-prose p,
    .methods-model-prose p,
    .methods-concept-body p,
    .methods-limit-card p,
    .methods-guidance-content p,
    .methods-ecosystem-card p,
    .methods-faq-answer p {
        color: #333 !important;
    }

    .methods-principle-card,
    .methods-data-card,
    .methods-limit-card,
    .methods-ecosystem-card,
    .methods-concept-card,
    .methods-model-item,
    .methods-guidance-item,
    .methods-faq-item,
    .methods-final-cta-content,
    .methods-diagram-container {
        background: #fff !important;
        border: 1px solid #999 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .methods-model-item > :not(summary),
    .methods-faq-item > :not(summary) {
        display: block !important;
    }

    .methods-model-toggle,
    .methods-faq-question .dna-icon {
        display: none !important;
    }
}
