/* Field Notes — shared editorial article treatment.
 * Loaded after each note's page-specific styles so content layouts survive
 * while typography, contrast, and publication surfaces stay consistent.
 */

.field-note-page {
    background: var(--editorial-paper);
    color: var(--editorial-ink);
}

.field-note-page main,
.field-note-page .research-article {
    background: var(--editorial-paper);
}

/* Legacy article shell */

.field-note-page .research-article {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.field-note-page .research-article > .container {
    width: min(calc(100% - 3rem), 940px);
    max-width: 940px;
}

.field-note-page .research-article .article-header {
    margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
    padding: 0 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--editorial-rule-strong);
    text-align: left;
}

.field-note-page .research-article .article-header h1 {
    max-width: 920px;
    margin: 0.45rem 0 1rem;
    color: var(--editorial-ink);
    background: none;
    font-family: var(--editorial-serif);
    font-size: clamp(2.7rem, 5vw, 4.25rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.04;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
}

.field-note-page .research-article .eyebrow,
.field-note-page .research-article .article-meta {
    color: var(--editorial-muted);
    font-family: var(--editorial-sans);
}

.field-note-page .research-article .eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.field-note-page .research-article .article-meta {
    max-width: 780px;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
}

.field-note-page .research-article .article-content {
    width: min(100%, 760px);
    max-width: 760px;
    margin-inline: 0;
    color: var(--editorial-ink-soft);
    overflow-wrap: anywhere;
}

/* Shared reading typography */

.field-note-page .article-content p,
.field-note-page .article-content li {
    color: var(--editorial-ink-soft);
    font-family: var(--editorial-serif);
    font-size: clamp(1.05rem, 1.4vw, 1.14rem);
    line-height: 1.76;
}

.field-note-page .article-content p {
    margin: 0 0 1.3rem;
}

.field-note-page .article-content li + li {
    margin-top: 0.35rem;
}

.field-note-page .article-content h2,
.field-note-page .article-content h3,
.field-note-page .article-content h4 {
    color: var(--editorial-ink);
    background: none;
    font-family: var(--editorial-serif);
    -webkit-text-fill-color: currentColor;
}

.field-note-page .article-content h2 {
    margin: 3.75rem 0 1.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--editorial-rule);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.field-note-page .article-content h3 {
    margin: 2.5rem 0 0.8rem;
    font-size: clamp(1.35rem, 2.2vw, 1.72rem);
}

.field-note-page .article-content h4 {
    margin-top: 2rem;
    font-size: 1.12rem;
}

.field-note-page .article-content strong {
    color: var(--editorial-ink);
}

.field-note-page .article-content em {
    color: inherit;
}

.field-note-page .article-content a,
.field-note-page .page-footer a {
    color: var(--editorial-blue-dark);
    text-decoration: underline;
    text-decoration-color: rgba(36, 86, 122, 0.35);
    text-underline-offset: 0.18em;
}

.field-note-page .article-content a:hover,
.field-note-page .page-footer a:hover {
    color: var(--editorial-blue);
    text-decoration-color: currentColor;
}

/* Provenance, quotations, and content-specific notes */

.field-note-page .field-note-source,
.field-note-page .source-note,
.field-note-page .archive-note,
.field-note-page .article-disclosure,
.field-note-page .related-note,
.field-note-page .thread-context,
.field-note-page .note-block,
.field-note-page .callout,
.field-note-page .play-card,
.field-note-page .kira-commentary {
    margin: 1.75rem 0;
    padding: 1.15rem 1.3rem;
    border: 0;
    border-left: 3px solid var(--editorial-blue);
    border-radius: 0;
    background: var(--editorial-blue-wash);
    box-shadow: none;
    color: var(--editorial-ink-soft);
}

.field-note-page .field-note-source p,
.field-note-page .source-note p,
.field-note-page .archive-note p,
.field-note-page .article-disclosure p,
.field-note-page .related-note p,
.field-note-page .thread-context p,
.field-note-page .note-block p,
.field-note-page .callout p,
.field-note-page .play-card p,
.field-note-page .kira-commentary p,
.field-note-page .kira-commentary li {
    color: var(--editorial-ink-soft);
    font-family: var(--editorial-sans);
    font-size: 0.94rem;
    line-height: 1.65;
}

.field-note-page .source-quote,
.field-note-page .note-quote,
.field-note-page .article-content blockquote {
    margin: 2.5rem 0;
    padding: 0.25rem 0 0.25rem 1.5rem;
    border: 0;
    border-left: 3px solid var(--editorial-blue);
    border-radius: 0;
    background: transparent;
    color: var(--editorial-ink);
    font-family: var(--editorial-serif);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.5;
}

.field-note-page .source-quote p,
.field-note-page .note-quote p,
.field-note-page .article-content blockquote p {
    margin: 0;
    color: inherit;
    font: inherit;
}

.field-note-page .source-quote cite,
.field-note-page .note-quote cite {
    display: block;
    margin-top: 0.85rem;
    color: var(--editorial-muted);
    font-family: var(--editorial-sans);
    font-size: 0.74rem;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Images, video, tables, and code */

.field-note-page .article-content figure,
.field-note-page .article-figure,
.field-note-page .field-note-figure {
    margin: 2.5rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.field-note-page .article-content figure img,
.field-note-page .article-figure img,
.field-note-page .field-note-figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: var(--editorial-paper-bright);
}

.field-note-page .article-content figcaption,
.field-note-page .article-figure figcaption,
.field-note-page .field-note-figure figcaption {
    padding: 0.7rem 0 0;
    border: 0;
    color: var(--editorial-muted);
    font-family: var(--editorial-sans);
    font-size: 0.8rem;
    line-height: 1.5;
}

.field-note-page .article-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: #111820;
}

.field-note-page .article-content pre {
    max-width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: #e8e4db;
    color: var(--editorial-ink);
    font-size: 0.86rem;
    line-height: 1.6;
    overflow-x: auto;
}

.field-note-page .article-content code {
    border: 0;
    border-radius: 0;
    background: #e8e4db;
    color: #223f55;
}

.field-note-page .article-content .tip-table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}

.field-note-page .article-content .tip-table th,
.field-note-page .article-content .tip-table td {
    min-width: 150px;
    border-color: var(--editorial-rule-strong);
    background: transparent;
    color: var(--editorial-ink-soft);
}

/* Repeated cards become ruled editorial modules rather than glass panels. */

.field-note-page .related-card,
.field-note-page .loop-card,
.field-note-page .signal-card,
.field-note-page .route-card,
.field-note-page .continuity-card,
.field-note-page .vocab-card {
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: var(--editorial-paper-bright);
    box-shadow: none;
    color: var(--editorial-ink);
}

.field-note-page .author-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    padding: 1.5rem 0;
    border: 0;
    border-block: 1px solid var(--editorial-rule-strong);
    border-radius: 0;
    background: transparent;
}

.field-note-page .author-card img {
    width: 96px;
    height: 96px;
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    object-fit: cover;
}

.field-note-page .author-card h2 {
    margin: 0.2rem 0 0.65rem;
    padding: 0;
    border: 0;
}

/* Article close and site footer */

.field-note-page .article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--editorial-rule-strong);
}

.field-note-page .article-cta {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: var(--editorial-paper-bright);
    box-shadow: none;
    text-align: left;
}

.field-note-page .article-cta h3 {
    color: var(--editorial-ink);
    font-family: var(--editorial-serif);
}

.field-note-page .article-cta p {
    color: var(--editorial-muted);
}

.field-note-page .site-footer,
.field-note-page .page-footer {
    margin: 0;
    padding: 2rem 0;
    border-top: 1px solid var(--editorial-rule);
    background: var(--editorial-paper-bright);
    color: var(--editorial-muted);
}

.field-note-page .site-footer p,
.field-note-page .page-footer p {
    color: var(--editorial-muted);
    font-family: var(--editorial-sans);
    font-size: 0.82rem;
}

/* Alternate article shell used by newer imported notes. */

.field-note-page-custom .back-link {
    display: none;
}

.field-note-page-custom .article-hero {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--editorial-rule-strong);
    background: var(--editorial-paper-bright);
}

.field-note-page-custom .article-hero > .container {
    width: min(calc(100% - 3rem), 940px);
    max-width: 940px;
}

.field-note-page-custom .article-hero h1 {
    max-width: 920px;
    margin: 0.55rem 0 1rem;
    color: var(--editorial-ink);
    background: none;
    font-family: var(--editorial-serif);
    font-size: clamp(2.7rem, 5vw, 4.25rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.04;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
}

.field-note-page-custom .article-hero .article-meta,
.field-note-page-custom .article-hero .subtitle {
    color: var(--editorial-muted);
}

.field-note-page-custom .article-hero .subtitle {
    max-width: 760px;
    font-family: var(--editorial-serif);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.55;
}

.field-note-page-custom .article-meta .tag {
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: transparent;
    color: var(--editorial-blue-dark);
}

.field-note-page-custom article.article-content {
    width: min(calc(100% - 3rem), 760px);
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 7vw, 6.5rem);
}

/* Related work is injected after load, so these selectors intentionally carry
 * an extra page scope to beat the discovery component's dark defaults. */

.field-note-page .fd-related {
    border-top-color: var(--editorial-rule-strong);
}

.field-note-page .fd-related__eyebrow,
.field-note-page .fd-related-card__meta {
    color: var(--editorial-blue-dark);
}

.field-note-page .fd-related__heading,
.field-note-page .fd-related-card__title {
    color: var(--editorial-ink);
    font-family: var(--editorial-serif);
}

.field-note-page .fd-related-card__link {
    padding: 1rem 0;
    border: 0;
    border-top: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.field-note-page .fd-related-card__link:hover {
    border-color: var(--editorial-rule-strong);
    background: transparent;
    transform: none;
}

.field-note-page .fd-related-card__summary {
    color: var(--editorial-muted);
    font-family: var(--editorial-sans);
}

@media (max-width: 700px) {
    .field-note-page .research-article > .container,
    .field-note-page-custom .article-hero > .container,
    .field-note-page-custom article.article-content {
        width: min(calc(100% - 2rem), 940px);
    }

    .field-note-page .research-article,
    .field-note-page-custom .article-hero {
        padding-top: 3rem;
    }

    .field-note-page .research-article .article-header h1,
    .field-note-page-custom .article-hero h1 {
        font-size: clamp(2.3rem, 10vw, 2.7rem);
    }

    .field-note-page .author-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .field-note-page .author-card img {
        width: 72px;
        height: 72px;
    }

    .field-note-page .source-quote,
    .field-note-page .note-quote,
    .field-note-page .article-content blockquote {
        padding-left: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .field-note-page .fd-related-card__link:hover {
        transform: none;
    }
}
