.college-editorial {
    --ed-page: #f7fafc;
    --ed-paper: #fff;
    --ed-alt: #f0f6fa;
    --ed-ink: #102d47;
    --ed-copy: #263e52;
    --ed-muted: #4d6476;
    --ed-line: #d5e4ed;
    --ed-link: #145879;
    --ed-focus: #176f9b;
    --ed-good: #246534;
    --ed-error: #8f3329;
    --ed-error-bg: #fff4f1;
    background: var(--ed-page);
    color: var(--ed-ink);
    line-height: 1.75;
}
[data-theme="dark"] .college-editorial {
    --ed-page: #0b2235;
    --ed-paper: #112e44;
    --ed-alt: #17384e;
    --ed-ink: #edf6ff;
    --ed-copy: #d5e6f3;
    --ed-muted: #b0ccdf;
    --ed-line: #2e526b;
    --ed-link: #99d9ff;
    --ed-focus: #9adfff;
    --ed-good: #ace899;
    --ed-error: #ffd0c8;
    --ed-error-bg: #461f27;
}
.college-editorial [hidden] { display: none !important; }
.college-editorial :is(a, button, summary, input):focus-visible { outline: 3px solid var(--ed-focus); outline-offset: 3px; }
.college-editorial :is(h1, h2, h3, h4) { color: inherit; overflow-wrap: anywhere; }
.editorial-shell { width: min(100% - 2rem, 73rem); margin-inline: auto; }
.editorial-hero { padding-block: clamp(1.15rem, 4vw, 3.2rem); background: linear-gradient(120deg, #00263f, #074567); color: #fff; }
.editorial-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .6rem; margin-block-end: .55rem; color: #c2dcec; font-size: .8rem; }
.editorial-crumb a { padding-block: .3rem; }
.editorial-hero a:hover { color: #fff; text-decoration: underline; }
.editorial-hero a:focus-visible { outline-color: #c0eaff; }
.editorial-hero h1 { max-width: 34ch; margin: 0; font-size: clamp(1.6rem, 4.1vw, 2.9rem); font-weight: 900; line-height: 1.45; }
.editorial-hero p { max-width: 75ch; margin: .6rem 0 0; color: #d7e9f3; font-size: clamp(.89rem, 1.5vw, 1.07rem); line-height: 1.9; }
.editorial-hero__tags, .editorial-byline, .editorial-hero__jumps { display: flex; flex-wrap: wrap; gap: .4rem .85rem; }
.editorial-hero__tags { margin-block-end: .65rem; gap: .4rem; }
.editorial-tag, .editorial-file-type { display: inline-flex; align-items: center; gap: .34rem; border-radius: .55rem; font-size: .76rem; font-weight: 800; overflow-wrap: anywhere; }
.editorial-tag { padding: .21rem .57rem; border: 1px solid #ffffff38; background: #ffffff12; color: #e2f4ff; }
.editorial-hero svg, .editorial-file-type svg, .editorial-download__action svg { width: 1.03rem; height: 1.03rem; flex: none; }
.editorial-byline { margin-block-start: .65rem; padding: 0; color: #d5e8f6; font-size: .81rem; list-style: none; }
.editorial-byline li, .editorial-hero__jumps a { display: inline-flex; align-items: center; gap: .38rem; }
.editorial-hero__jumps { margin-block-start: .37rem; }
.editorial-hero__jumps a { min-height: 44px; padding-inline-end: .35rem; color: #ddf0fc; font-size: .83rem; font-weight: 800; }

/* Body: the same reading rhythm for articles and downloadable resources. */
.editorial-reading, .editorial-resource-detail, .editorial-resource-list { padding-block: clamp(1.05rem, 3.4vw, 2.8rem); }
.editorial-reading__layout, .editorial-reading__column { display: grid; gap: 1rem; min-width: 0; }
.editorial-reading__cover, .resource-media { margin: 0; overflow: hidden; border-radius: 1rem; background: #143f5c; }
.editorial-reading__cover img, .resource-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.editorial-reading__column { align-content: start; }
.college-editorial .editorial-prose.site-editor-content {
    --editor-copy: var(--ed-copy);
    --editor-ink: var(--ed-ink);
    --editor-muted: var(--ed-muted);
    --editor-link: var(--ed-link);
    --editor-line: var(--ed-line);
    color: var(--ed-copy);
    font-size: clamp(1rem, .96rem + .26vw, 1.1rem);
    overflow-wrap: anywhere;
    text-align: start;
    min-width: 0;
}
.editorial-prose :is(p, li, dd) { line-height: 1.95 !important; }
.editorial-prose :is(h2, h3, h4) { scroll-margin-block-start: 7rem; line-height: 1.55; }
.college-editorial .editorial-prose :is(h2, h3, h4) { color: var(--ed-ink) !important; margin-block: 1.4em .45em; }
.college-editorial .editorial-prose a { color: var(--ed-link) !important; text-decoration: underline; text-underline-offset: .16em; }
.college-editorial .editorial-prose :is(.wp-block-table, pre) { max-width: 100%; overflow: auto; }
.college-editorial .editorial-prose > table { display: block; max-width: 100%; overflow: auto; }
.college-editorial .editorial-prose :is(img, iframe, video, embed) { max-width: 100%; }
.college-editorial .editorial-prose img { height: auto; }
.college-editorial .editorial-prose blockquote { border-inline-start: 3px solid var(--ed-link); background: var(--ed-alt); padding: .65rem .9rem; }
.editorial-reading__toc .post-toc-nav,
.editorial-reading__column :is(#single-faq-section, .single-post-author-box),
.editorial-resource-body, .editorial-download, .editorial-quiz__card {
    background: var(--ed-paper);
    color: var(--ed-ink);
    border: 1px solid var(--ed-line);
    border-radius: .96rem;
    box-shadow: 0 9px 21px rgb(8 36 64 / .045);
    min-width: 0;
}
.college-editorial .editorial-reading__toc :is(#post-toc-toggle, .post-toc-nav > div:first-of-type) { background: var(--ed-alt); }
.editorial-reading__toc :is(#post-toc-toggle > span, #post-toc-toggle > svg, .post-toc-nav > div:first-of-type p) { color: var(--ed-ink); }
.editorial-reading__toc .post-toc-link { color: var(--ed-muted); overflow-wrap: anywhere; }
.editorial-reading__toc .post-toc-link:hover { color: var(--ed-link); background: var(--ed-alt); }
.editorial-reading__toc .post-toc-nav .post-toc-link.post-toc-link--active { color: var(--ed-link); background: var(--ed-alt); border-inline-start-color: var(--ed-link); }
.editorial-reading__toc .post-toc-nav a:focus-visible { outline-offset: -3px; }
.college-editorial .editorial-reading__column :is(.single-post-tags > p,.single-post-share > p,.single-faq-toggle > span.flex-1,.single-post-author-box p:first-child) { color: var(--ed-ink); }
.college-editorial .editorial-reading__column :is(.single-post-tags a, .single-post-share button, .single-faq-body > div) { background: var(--ed-alt); color: var(--ed-copy); }
.college-editorial .editorial-reading__column :is(.single-post-author-box p:last-child, .single-faq-body p, .single-faq-body .text-gray-600) { color: var(--ed-muted); }
.editorial-article :is(.single-post-navigation, .single-post-related, .single-post-comments) { width: min(100% - 2rem, 73rem); padding-inline: 0; }
.editorial-article .single-post-related h3 { color: var(--ed-ink); }
.editorial-article :is(.single-post-navigation a, .single-post-related .group, .single-post-comments > div) { background: var(--ed-paper); border-color: var(--ed-line); }
.editorial-article :is(.single-post-navigation, .single-post-related, .single-post-comments) :is(.text-navy, .text-gray-400, .text-gray-500, .text-gray-600) { color: var(--ed-copy); }
.editorial-article #comments, .editorial-quiz, .editorial-quiz :is(#article-quiz-title, #article-quiz-result-heading) { scroll-margin-block-start: 7rem; }

/* Keep the native grading form and result states, including a visible retry error. */
.editorial-quiz { margin-block: .4rem 1.6rem; }
.editorial-quiz__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem; border-block-end: 1px solid var(--ed-line); background: var(--ed-alt); border-radius: .96rem .96rem 0 0; }
.editorial-quiz__head h2 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 900; }
.editorial-quiz__head p { color: var(--ed-muted); font-size: .82rem; }
.editorial-quiz__done { color: var(--ed-good); font-weight: 800; font-size: .8rem; }
.editorial-quiz__inner { padding: clamp(.85rem, 3vw, 1.5rem); }
.editorial-quiz__question { min-width: 0; padding: .75rem; border: 1px solid var(--ed-line); border-radius: .85rem; background: var(--ed-alt); }
.editorial-quiz__question legend { max-width: 100%; color: var(--ed-ink); }
.college-editorial .editorial-quiz__question :is(.text-navy, .text-gray-700) { color: var(--ed-ink); }
.college-editorial .editorial-quiz .article-quiz-option {
    min-height: 46px; padding: .55rem .65rem; border-color: var(--ed-line); background: var(--ed-paper);
    overflow-wrap: anywhere; cursor: pointer;
}
.college-editorial .editorial-quiz .article-quiz-option:focus-within { outline: 3px solid var(--ed-focus); outline-offset: 2px; }
.college-editorial .editorial-quiz .article-quiz-option:has(input:checked) { border-color: var(--ed-link); background: var(--ed-alt); box-shadow: inset 0 0 0 1px var(--ed-link); }
.college-editorial .editorial-quiz .article-quiz-option-badge { color: var(--ed-ink); border-color: var(--ed-line); background: var(--ed-alt); }
.college-editorial .editorial-quiz .article-quiz-option:has(input:checked) .article-quiz-option-badge { background: var(--ed-link); color: var(--ed-page); }
.editorial-quiz__error, .editorial-notice { border: 1px solid var(--ed-line); border-radius: .65rem; padding: .65rem .85rem; background: var(--ed-alt); color: var(--ed-copy); font-size: .87rem; }
.editorial-quiz__error { margin-block-end: .75rem; background: var(--ed-error-bg); color: var(--ed-error); }
.college-editorial .editorial-quiz button:disabled { opacity: .7; cursor: wait; }
.college-editorial .editorial-quiz .article-quiz-results article { background: var(--ed-paper); border-color: var(--ed-line); }
.college-editorial .editorial-quiz .article-quiz-results article > div:first-child { background: var(--ed-alt); border-color: var(--ed-line); }
.college-editorial .editorial-quiz .article-quiz-results article :is(.bg-white, .text-navy, .text-brand, .text-gray-500, .text-gray-600) { color: var(--ed-copy); }
.college-editorial .editorial-quiz .article-quiz-results article .bg-white { background: var(--ed-alt); border-color: var(--ed-line); }
.college-editorial .editorial-quiz .article-quiz-results article .inline-flex.text-green-700 { color: var(--ed-good); }
.college-editorial .editorial-quiz .article-quiz-results article .inline-flex.text-red-600 { color: var(--ed-error); }
.college-editorial #article-quiz-retry { min-height: 46px; background: var(--ed-alt); color: var(--ed-link); border-color: var(--ed-line); }

/* Resource cards share the magazine's alternating tone and aligned action row. */
.editorial-resource-list h2, .editorial-resource-body h2, .editorial-download h2 { font-size: clamp(1.13rem, 2.2vw, 1.45rem); font-weight: 900; }
.editorial-resource-list h2 { margin-block-end: .8rem; }
.editorial-resource-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.9rem, 2vw, 1.3rem); }
.editorial-resource-card { min-width: 0; border: 1px solid var(--ed-line); border-radius: .96rem; background: var(--ed-paper); }
.editorial-resource-card:nth-child(even) { background: var(--ed-alt); }
.editorial-resource-card:focus-within, .editorial-resource-card:hover { border-color: var(--ed-link); }
.editorial-resource-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: inherit; }
.editorial-resource-card .resource-media, .editorial-resource-body > .resource-media { border-radius: .9rem .9rem 0 0; }
.resource-media { display: grid; place-items: center; aspect-ratio: 16 / 9; color: #d5efff; }
.resource-media__symbol { display: grid; justify-items: center; gap: .4rem; padding: .75rem; font-size: .76rem; font-weight: 800; }
.resource-media__symbol svg { width: 2rem; height: 2rem; }
.editorial-resource-card__body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: .8rem .9rem; }
.editorial-resource-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .65rem; font-size: .74rem; color: var(--ed-muted); }
.editorial-file-type { padding: .16rem .4rem; background: var(--ed-alt); color: var(--ed-link); border: 1px solid var(--ed-line); }
.editorial-file-type.resource-type--excel { color: var(--ed-good); }
.editorial-file-type.resource-type--pdf { color: var(--ed-error); }
.editorial-resource-card__body h3 { font-size: clamp(.98rem, 1.65vw, 1.08rem); line-height: 1.68; font-weight: 900; }
.editorial-resource-card__body p { color: var(--ed-muted); font-size: .84rem; line-height: 1.75; overflow-wrap: anywhere; }
.editorial-resource-card__action { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-block-start: auto; min-height: 42px; border-block-start: 1px solid var(--ed-line); color: var(--ed-link); font-size: .86rem; font-weight: 800; }
.editorial-resource-card__link:hover .editorial-resource-card__action { text-decoration: underline; text-underline-offset: 3px; }
.editorial-pager { margin-block-start: 1.3rem; }
.editorial-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.editorial-pager .page-numbers { display: grid; place-items: center; min-height: 44px; min-width: 44px; padding-inline: .6rem; background: var(--ed-paper); border: 1px solid var(--ed-line); border-radius: .55rem; color: var(--ed-link); }
.editorial-pager .current { font-weight: 900; border-color: var(--ed-link); }
.editorial-resource-detail { display: grid; gap: 1rem; align-items: start; }
.editorial-download, .editorial-resource-body__copy { padding: clamp(.9rem, 2.5vw, 1.5rem); }
.editorial-download dl { margin-block: .55rem .8rem; }
.editorial-download dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; border-block-end: 1px solid var(--ed-line); padding-block: .25rem; font-size: .86rem; }
.editorial-download dt, .editorial-download > p:not(.editorial-notice) { color: var(--ed-muted); }
.editorial-download dd { font-weight: 800; text-align: end; }
.editorial-download > p { margin-block-start: .5rem; font-size: .8rem; }
.editorial-download__action {
    display: inline-flex; align-items: center; justify-content: center; gap: .46rem;
    border: 1px solid #09314e; border-radius: .7rem; background: #073656; color: #fff;
    min-height: 48px; padding: .52rem .85rem; text-align: center; text-decoration: none;
    line-height: 1.5; font-size: .88rem; font-weight: 900; cursor: pointer;
}
.editorial-download .editorial-download__action { width: 100%; }
.editorial-download__action:hover { background: #0e4c73; }
[data-theme="dark"] .editorial-download__action { background: #c8ecfb; color: #10344f; border-color: #c8ecfb; }
[data-theme="dark"] .editorial-download__action:hover { background: #a9def4; }
.editorial-download__back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ed-link); font-size: .83rem; margin-block-start: .2rem; }
.editorial-download__back:hover { text-decoration: underline; }
.editorial-resource-body h2 { margin-block-end: .6rem; }

@media (min-width: 600px) {
    .editorial-shell { width: min(100% - 3rem, 73rem); }
    .editorial-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .editorial-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .editorial-resource-detail { grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: clamp(1.2rem, 3vw, 2rem); }
    .editorial-resource-detail--protected { grid-template-columns: minmax(0, 1fr); }
    .editorial-download { grid-column: 2; grid-row: 1; position: sticky; inset-block-start: 6.5rem; }
    .editorial-resource-body { grid-column: 1; grid-row: 1; }
    .editorial-reading__layout { grid-template-columns: minmax(0, 47rem); justify-content: center; }
    .editorial-reading__layout--toc { grid-template-columns: minmax(0, 46rem) minmax(12rem, 16rem); grid-template-areas: "body toc"; column-gap: clamp(1.1rem, 3vw, 2.4rem); }
    .editorial-reading__layout--toc:has(.editorial-reading__cover) { grid-template-areas: "cover toc" "body toc"; }
    .editorial-reading__layout--toc .editorial-reading__cover { grid-area: cover; }
    .editorial-reading__layout--toc .editorial-reading__column { grid-area: body; }
    .editorial-reading__layout--toc .editorial-reading__toc { grid-area: toc; align-self: start; position: sticky; inset-block-start: 6.5rem; }
    .editorial-reading__toc #post-toc-toggle { display: none; }
    .editorial-reading__toc .post-toc-nav > div:first-of-type, .editorial-reading__toc #post-toc-panel { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .college-editorial *, .college-editorial *::before, .college-editorial *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
