:root {
    --field-ink: #11192c;
    --field-muted: #677387;
    --field-paper: #fbfaf7;
    --field-blue: #346fe4;
    --field-line: rgba(27, 44, 74, 0.11);
}

.field-notes-page {
    margin: 0;
    overflow-x: clip;
    color: var(--field-ink);
    background: var(--field-paper);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
}

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

.field-notes-page a {
    text-decoration: none;
}

.field-shell {
    width: min(1220px, calc(100% - 80px));
    margin-inline: auto;
}

.field-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.68rem;
    color: #9bb7ff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.field-kicker::before {
    width: 1.7rem;
    height: 1px;
    background: currentColor;
    content: "";
    opacity: 0.58;
}

.field-kicker-dark {
    color: #315fc7;
}

.field-button {
    display: inline-flex;
    min-height: 3.4rem;
    padding: 0.88rem 1.16rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid transparent;
    border-radius:  0;
    font-size: 0.76rem;
    font-weight: 800;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.field-button-light {
    color: #172440;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.field-button-light:hover {
    color: #172440;
    background: #edf3ff;
    transform: translateY(-2px);
}

.field-button-ghost {
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(247, 250, 255, 0.84);
    background: rgba(255, 255, 255, 0.045);
}

.field-button-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.field-button:focus-visible,

.field-filter-chips button:focus-visible,
.field-search input:focus-visible,
.field-search button:focus-visible,
.field-pagination button:focus-visible {
    outline: 3px solid rgba(67, 112, 225, 0.32);
    outline-offset: 4px;
}

.field-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Hero */
.field-hero {
    padding: 9rem 0 4rem;
    color: #fff;
    background: #071126;
    text-align: center;
}

.field-hero-copy {
    max-width: 680px;
    margin-inline: auto;
}

.field-hero-copy h1 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.07em;
    line-height: 1.08;
    text-wrap: balance;
}

.field-hero-copy > p {
    max-width: 560px;
    margin: 1rem auto 0;
    color: rgba(224, 233, 251, 0.8);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.72;
}

.field-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.field-section-intro {
    display: block;
}

.field-section-intro h2,
.field-library-head h2,
.field-conversion-card h2 {
    margin: 1rem 0 0;
    color: var(--field-ink);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.067em;
    line-height: 0.96;
    text-wrap: balance;
}

/* Featured note */
.field-featured {
    padding: 2.75rem 0;
    background: var(--field-paper);
}

.field-feature-card {
    display: grid;
    min-height: 0;
    margin-top: 1.5rem;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--field-line);
    border-radius:  0;
    background: #fff;
    box-shadow: 0 12px 36px rgba(29, 42, 70, 0.06);
}

.field-feature-media {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #e8eef8 center / cover no-repeat;
}

.field-feature-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.field-feature-media::after {
    position: absolute;
    inset: 0;
    background:
        transparent;
    content: "";
}

.field-feature-copy {
    display: flex;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    justify-content: center;
    flex-direction: column;
}

.field-story-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #315fc7;
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.field-feature-copy h3 {
    margin: 0;
    color: #17243c;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.65rem, 2.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1.15;
}

.field-feature-copy > p {
    margin: 1.3rem 0 0;
    color: #687589;
    font-size: 0.92rem;
    line-height: 1.72;
}

.field-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.2rem;
    margin-top: 1.7rem;
    color: #8994a6;
    font-size: 0.64rem;
    font-weight: 700;
}

.field-story-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.field-read-link {
    display: inline-flex;
    margin-top: 2rem;
    align-items: center;
    gap: 0.55rem;
    color: #2d5fc9;
    font-size: 0.72rem;
    font-weight: 850;
}

.field-read-link:hover {
    color: #1e47a2;
}

/* Reading desk */
.field-library {
    padding: 2.75rem 0;
    background: var(--field-paper);
}

.field-library-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.58fr);
    align-items: end;
    gap: 4rem;
}

.field-search {
    display: grid;
    min-height: 3.8rem;
    grid-template-columns: 2.7rem 1fr auto;
    align-items: center;
    padding: 0.32rem;
    border: 1px solid rgba(29, 47, 80, 0.13);
    border-radius:  0;
    background: #fff;
    box-shadow: 0 15px 45px rgba(33, 48, 78, 0.07);
}

.field-search > i {
    color: #8793a6;
    text-align: center;
}

.field-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #1b2943;
    background: transparent;
    font: inherit;
    font-size: 0.76rem;
}

.field-search input::placeholder {
    color: #99a3b2;
}

.field-search button,
.field-pagination button {
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 0;
    border-radius:  0;
    color: #fff;
    background: #2f63d7;
    cursor: pointer;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
}

.field-filter-row {
    display: flex;
    margin-top: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.field-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.field-filter-chips button {
    min-height: 2.55rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(29, 47, 80, 0.11);
    border-radius:  0;
    color: #68758a;
    background: rgba(255, 255, 255, 0.63);
    cursor: pointer;
    font: inherit;
    font-size: 0.64rem;
    font-weight: 800;
}

.field-filter-chips button:hover,
.field-filter-chips button.is-active {
    border-color: rgba(47, 99, 215, 0.2);
    color: #2454be;
    background: #fff;
    box-shadow: 0 8px 24px rgba(33, 48, 78, 0.08);
}

#field-result-count {
    margin: 0;
    color: #7d899b;
    font-size: 0.66rem;
    font-weight: 700;
}

.field-article-grid {
    display: grid;
    margin-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.field-article-card {
    display: flex;
    min-width: 0;
    min-height: 465px;
    overflow: hidden;
    border: 1px solid var(--field-line);
    border-radius:  0;
    flex-direction: column;
    color: inherit;
    background: #fff;
    box-shadow: 0 20px 55px rgba(29, 42, 69, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.field-article-card:hover {
    border-color: rgba(47, 99, 215, 0.2);
    color: inherit;
    box-shadow: 0 30px 80px rgba(29, 42, 69, 0.12);
    transform: translateY(-4px);
}

.field-article-media {
    position: relative;
    min-height: 205px;
    overflow: hidden;
    background: #e9eef7 center / cover no-repeat;
}

.field-article-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.field-article-media::after {
    position: absolute;
    inset: 0;
    background: transparent;
    content: "";
}

.field-article-body {
    display: flex;
    padding: 1.4rem;
    flex: 1;
    flex-direction: column;
}

.field-article-body h3 {
    margin: 0.8rem 0 0;
    color: #1a2841;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.42rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.field-article-body > p {
    margin: 0.75rem 0 0;
    color: #6e7a8e;
    font-size: 0.72rem;
    line-height: 1.62;
}

.field-article-body .field-story-meta {
    margin-top: auto;
    padding-top: 1.2rem;
}

.field-empty {
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    border: 1px dashed rgba(29, 47, 80, 0.17);
    border-radius:  0;
    color: #6f7c90;
    background: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.field-empty strong {
    display: block;
    color: #1c2a43;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.6rem;
}

.field-empty p {
    margin: 0.6rem 0 0;
}

.field-pagination {
    display: flex;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.field-pagination[hidden] {
    display: none;
}

.field-pagination span {
    color: #7c8799;
    font-size: 0.66rem;
    font-weight: 700;
}

.field-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Conversion */
.field-conversion {
    padding: 3rem 0 4rem;
    background: #f1f4f8;
}

/* The shared footer overlap is intended for tall landing-page endings. */
.field-notes-page footer.wr-footer {
    margin-top: 0;
}

.field-conversion-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius:  0;
    color: #fff;
    background: #071126;
    text-align: center;
}

.field-conversion-card > * {
    position: relative;
}

.field-conversion-card h2 {
    max-width: 680px;
    margin-inline: auto;
    color: #fff;
}

.field-conversion-card > p {
    max-width: 680px;
    margin: 1rem auto 0;
    color: rgba(223, 232, 250, 0.63);
    font-size: 1rem;
    line-height: 1.7;
}

.field-conversion-card .field-hero-actions {
    justify-content: center;
    margin-top: 1.5rem;
}

/* Loading and reveal */
.field-skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(126, 143, 174, 0.12);
}

.field-skeleton::before {
    position: absolute;
    inset: 0;
    background: transparent;
    content: "";
    animation: field-shimmer 1.35s ease infinite;
    transform: translateX(-100%);
}

.field-skeleton-line {
    width: 7rem;
    height: 0.8rem;
    border-radius:  0;
}

.field-skeleton-title {
    width: 90%;
    height: 10rem;
    margin-top: 1rem;
    border-radius:  0;
}

.field-skeleton-copy {
    width: 100%;
    height: 4rem;
    margin-top: 1rem;
    border-radius:  0;
}

@keyframes field-shimmer {
    to { transform: translateX(100%); }
}

.field-motion-ready .field-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.field-motion-ready .field-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (min-width: 901px) and (max-height: 820px) {
    .field-hero {
        padding: 8rem 0 3rem;
    }

    .field-hero-copy h1 {
        font-size: clamp(2.25rem, 4vw, 3.5rem);
    }

    .field-hero-copy > p {
        line-height: 1.62;
    }

}

@media (max-width: 1080px) {
    .field-shell {
        width: min(100% - 48px, 1120px);
    }

    .field-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {
    .field-hero {
        min-height: 0;
    }

    .field-section-intro,
    .field-feature-card,

    .field-library-head {
        grid-template-columns: 1fr;
    }

    .field-feature-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .field-feature-copy {
        min-height: 0;
    }

}

@media (max-width: 650px) {
    .field-shell {
        width: min(100% - 28px, 560px);
    }

    .field-hero {
        padding: 7rem 0 3rem;
    }

    .field-hero-copy h1 {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .field-section-intro h2,
    .field-library-head h2,

    .field-conversion-card h2 {
        font-size: 1.65rem;
    }

    .field-feature-card {
        border-radius:  0;
    }

    .field-feature-media {
        min-height: 0;
    }

    .field-feature-copy {
        min-height: 0;
        padding: 2rem 1.4rem;
    }

    .field-feature-copy h3 {
        font-size: 1.7rem;
    }

    .field-article-grid {
        grid-template-columns: 1fr;
    }

    .field-search {
        grid-template-columns: 2.5rem 1fr;
    }

    .field-search button {
        grid-column: 1 / -1;
    }

    .field-filter-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .field-conversion-card {
        min-height: 0;
        padding-inline: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .field-notes-page *,
    .field-notes-page *::before,
    .field-notes-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .field-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

.field-feature-copy h3 a { color: inherit; }
.field-feature-copy h3 a:hover { color: #2454be; }
.field-feature-copy h3 a:focus-visible { outline: 3px solid #2f63d7; outline-offset: 4px; }
.field-library { scroll-margin-top: 6rem; }

/* Academy publishing: consistent covers, playable video, and browsing controls. */
[hidden] { display: none !important; }
.academy-spotlight-media video, .academy-spotlight-media iframe,
.academy-lesson-visual video, .academy-lesson-visual iframe,
.field-feature-media video, .field-feature-media iframe {
  width: 100%; height: 100%; min-height: 280px; object-fit: contain; border: 0;
}
.academy-spotlight-media::after, .academy-lesson-media::after, .field-feature-media::after { pointer-events: none; }
.academy-prose .ratio > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.academy-path-cover { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
.academy-path-progress { padding: 1rem; background: #edf3ff; border-radius: 8px; color: #17294e; }
.academy-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.academy-pagination button, .academy-empty button, .field-empty button { border: 1px solid #b3bfd4; border-radius: 6px; padding: .6rem 1rem; background: white; color: #17294e; cursor: pointer; }
.academy-pagination button:disabled { opacity: .45; cursor: default; }
.resource-video-badge { position: absolute; bottom: 12px; left: 12px; padding: 5px 10px; background: #142a50; color: white; border-radius: 5px; }
.academy-lesson-media .academy-visual-fallback, .field-article-media .academy-visual-fallback { padding: 24px; min-height: 160px; color: #152b50; background: #edf3ff; }
.resource-callout-warning { border-left: 4px solid #b7791f; }
.resource-callout-success { border-left: 4px solid #238560; }
