/* Shared editorial language for every public page. */
:root { --editorial-serif: Georgia, 'Times New Roman', serif; --editorial-rule: #d8cfc4; }
.hero__backdrop-shield { position: absolute; z-index: 0; top: 7%; right: 3%; width: 58%; height: 88%; fill: none; stroke: #ffe18a; stroke-width: 1; opacity: .095; pointer-events: none; }
.hero__backdrop-shield path { vector-effect: non-scaling-stroke; }
.section-portrait { min-width: 0; margin: 0; overflow: hidden; background: #160f0a; aspect-ratio: 3 / 2; border-radius: 2px; }
.section-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section-portrait--news img { object-position: 30% center; }
.section-portrait--schemes img { object-position: center 40%; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 32px; color: #795020; font-size: 14px; font-weight: 400; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.page-hero { padding: 70px 0 55px; background: #160f0a; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; min-height: 440px; }
.page-hero__copy { position: relative; z-index: 1; padding-block: 16px; }
.page-hero .back-link { color: #d3bd9c; margin-bottom: 28px; }
.page-hero .eyebrow { color: #e0c087; font-size: 12px; font-weight: 400; letter-spacing: .16em; }
.page-hero h1 { max-width: 800px; font: 400 clamp(48px, 5.6vw, 86px)/1.04 var(--editorial-serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-hero h1::after { content: ''; display: block; width: 64px; height: 1px; background: #c9a458; margin-top: 30px; }
.page-hero__intro { max-width: 660px; color: #ddd2c6; font-size: 18px; line-height: 1.65; margin-top: 26px; }
.page-hero__scroll { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; margin-top: 14px; color: #ffe18a; font-size: 14px; text-underline-offset: 5px; }
.page-hero__scroll span { font-size: 24px; }
.page-hero .section-portrait { width: calc(100% + 36px); aspect-ratio: 1.12; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 92%, transparent), linear-gradient(0deg, transparent, #000 8%, #000 94%, transparent); mask-composite: intersect; }
.listing { padding-block: 80px 110px; scroll-margin-top: 28px; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 48px; }
.content-card { display: flex; flex-direction: column; min-width: 0; padding: 0 0 30px; background: transparent; border: 0; border-bottom: 1px solid var(--editorial-rule); border-radius: 0; box-shadow: none; overflow: visible; }
.content-card>img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.content-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 0; }
.content-card--illustrated .content-card__body { padding-top: 24px; }
.content-card__tag { padding: 0; color: #896329; background: transparent; border-radius: 0; font-size: 12px; font-weight: 500; letter-spacing: .09em; }
.content-card h2 { margin: 16px 0 12px; font: 400 clamp(28px, 2.6vw, 38px)/1.14 var(--editorial-serif); letter-spacing: -.02em; overflow-wrap: anywhere; }
.content-card p { margin: 0 0 22px; color: #615b55; font-size: 17px; line-height: 1.65; }
.content-card .text-link { margin-top: auto; font-size: 15px; font-weight: 400; gap: 18px; }
.content-card .text-link span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ad8a51; border-radius: 50%; transition: transform 250ms ease; }
.content-card .text-link:hover span { transform: translateX(4px); }
.text-link { font-weight: 500; text-decoration-thickness: 1px; }
.empty-state { max-width: 860px; padding: 38px 0; background: transparent; border: 0; border-block: 1px solid var(--editorial-rule); border-radius: 0; }
.empty-state h2 { font: 400 clamp(28px, 3vw, 42px)/1.15 var(--editorial-serif); letter-spacing: -.02em; }
.empty-state p { color: #615b55; max-width: 620px; }
.article { max-width: 1160px; padding-block: 80px 110px; }
.article__header { padding-bottom: 34px; border-bottom: 1px solid var(--editorial-rule); }
.article__header:has(.section-portrait) { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; }
.article__intro { min-width: 0; }
.article .back-link { display: flex; width: fit-content; margin-bottom: 25px; font-weight: 400; }
.article time { font-size: 14px; }
.article h1 { margin: 20px 0 24px; font: 400 clamp(38px, 4.7vw, 68px)/1.08 var(--editorial-serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.article__lead { color: #625a52; font-size: 20px; line-height: 1.65; }
.article__header .section-portrait { aspect-ratio: .95; }
.article__header .section-portrait img { object-position: 35% center; }
.article__cover { border-radius: 2px; margin-block: 44px; }
.article__body { max-width: 820px; margin: 48px auto; font-size: 19px; line-height: 1.8; overflow-wrap: anywhere; }
.article__body img { max-width: 100%; height: auto; border-radius: 2px; }
.article__body iframe { max-width: 100%; }
.article__body .responsive-object { position: relative; }
.article__body .responsive-object iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.rich-text h2, .rich-text h3 { font-family: var(--editorial-serif); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
.rich-text h2 { font-size: clamp(30px, 3vw, 42px); }
.rich-text h3 { font-size: clamp(25px, 2.5vw, 32px); }
.rich-text blockquote { background: #faf8f4; border-left: 2px solid #ac8542; padding: 22px 28px; }
.rich-text a { text-underline-offset: 4px; }
.rich-text pre { white-space: pre-wrap; }
.callout { padding: 28px 30px; border-radius: 0; }
.callout--danger { background: #fcf2f2; border-left: 2px solid #b8333c; }
.callout--safe { background: #f1f7f1; border-left: 2px solid #438351; }
.source-line { max-width: 820px; margin-inline: auto; color: #625a52; font-size: 15px; border-color: var(--editorial-rule); overflow-wrap: anywhere; }.search-page { min-height: 80vh; padding: 80px 0 110px; background: #fff; }.search-page .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .13em; }.search-page h1, .success-page h1 { font: 400 clamp(42px, 4.7vw, 72px)/1.07 var(--editorial-serif); letter-spacing: -.03em; overflow-wrap: anywhere; }.search-page__form input { min-width: 0; border: 1px solid #a99e90; border-radius: 2px; padding: 14px 16px; font-size: 17px; line-height: 1.5; }.search-page__form input:focus-visible { border-color: #93651e; box-shadow: 0 0 0 2px #f4e6c7; }.errorlist { font-size: 15px; color: #a40008; }
.search-page__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 350px); gap: 70px; align-items: center; }
.search-page__intro .section-portrait { aspect-ratio: 1.2; }
.search-page__intro .section-portrait img { object-position: 50% 25%; }
.search-page__form { max-width: 900px; gap: 10px; margin: 44px 0 50px; }
.search-page__form input { min-height: 60px; }
.search-summary { padding-bottom: 22px; border-bottom: 1px solid var(--editorial-rule); max-width: 900px; font-size: 17px; }
.search-results { gap: 0; }
.search-results article { padding: 30px 0; border: 0; border-bottom: 1px solid var(--editorial-rule); border-radius: 0; background: transparent; }
.search-results h2 { font: 400 clamp(28px, 2.8vw, 38px)/1.15 var(--editorial-serif); overflow-wrap: anywhere; }
.search-results h2 a { text-decoration: none; }
.search-results p { color: #615b55; line-height: 1.65; font-size: 17px; }
.search-results .text-link { font-size: 15px; font-weight: 400; }
.pagination { font-size: 15px; padding-top: 22px; gap: 20px; }
.pagination a { text-underline-offset: 5px; }
.success-page { min-height: 86svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 480px); gap: 70px; align-items: center; padding-block: 90px; }
.success-mark { width: 62px; height: 62px; margin-bottom: 28px; border: 1px solid #8a6a35; background: transparent; color: #8a6a35; font-size: 30px; }
.success-page p { max-width: 650px; font-size: 19px; color: #625a52; }
.site-footer__brand strong { font-family: var(--editorial-serif); font-size: 26px; font-weight: 400; line-height: 1.2; }
.site-footer .social-link, .social-list--light .social-link { border-radius: 2px; font-weight: 400; }
.site-motion-toggle { min-height: 44px; padding: 8px 0; color: #d3bd9c; background: none; border: 0; border-bottom: 1px solid #725638; font-size: 13px; cursor: pointer; }
.site-motion-toggle[hidden] { display: none; }
.site-footer__bottom { margin-top: 30px; }
.reading-progress { position: fixed; z-index: 35; top: 50%; right: 20px; transform: translateY(-50%); color: #896329; }
.reading-progress[hidden] { display: none; }
.reading-progress__label { position: absolute; right: 10px; top: 0; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .09em; }
.reading-progress__track { display: block; width: 1px; height: 180px; background: #d7cbb5; }
.reading-progress__fill { display: block; width: 100%; height: 100%; background: #987139; transform: scaleY(var(--reading-progress, 0)); transform-origin: top; }
.reading-progress[data-on-dark] { color: #ffe18a; }
.reading-progress[data-on-dark] .reading-progress__fill { background: #ffe18a; }
[data-motion-disabled] .section-portrait { transition: none; }
@media (max-width: 1150px) {
    .page-hero__grid { gap: 28px; }
    .article__header:has(.section-portrait) { grid-template-columns: minmax(0, 1fr) 240px; gap: 30px; }
    .search-page__intro { gap: 38px; grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 960px) {
    .hero__backdrop-shield { top: auto; bottom: 0; right: -4%; width: 105%; height: 55%; }
    .page-hero { padding: 130px 0 38px; }
    .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); min-height: 0; }
    .page-hero h1 { font-size: clamp(42px, 6vw, 64px); }
    .page-hero .section-portrait { width: 100%; }
    .page-hero .back-link { margin-bottom: 18px; }
    .page-hero__intro { font-size: 16px; }
    .listing { padding-block: 54px 80px; scroll-margin-top: 100px; }
    .card-grid { gap: 38px 28px; }.article, .search-page { padding-block: 125px 80px; }
    .reading-progress { top: 78px; right: 0; left: 0; transform: none; }
    .reading-progress__label { display: none; }
    .reading-progress__track { width: 100%; height: 2px; background: transparent; }
    .reading-progress__fill { background: #d7ad54; transform: scaleX(var(--reading-progress, 0)); transform-origin: left; }
    .success-page { padding-top: 130px; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(200px, .7fr); }
}
@media (max-width: 620px) {
    .page-hero { padding-top: 115px; }
    .page-hero__grid { grid-template-columns: 1fr; gap: 22px; }
    .page-hero h1 { font-size: clamp(40px, 10.5vw, 60px); }
    .page-hero .section-portrait { aspect-ratio: 3 / 2; max-height: 350px; }
    .page-hero .section-portrait--schemes,
    .page-hero .section-portrait--help { aspect-ratio: 1.12; max-height: none; }
    .page-hero h1::after { margin-top: 24px; }
    .page-hero__intro { margin-top: 20px; }
    .card-grid { grid-template-columns: 1fr; }
    .content-card h2 { font-size: 30px; }
    .article__header:has(.section-portrait) { grid-template-columns: 1fr; gap: 20px; }
    .article__header .section-portrait { aspect-ratio: 3 / 2; }.article h1, .search-page h1, .success-page h1 { font-size: clamp(36px, 10vw, 48px); }
    .article__lead { font-size: 18px; }
    .article__body { margin-block: 32px; font-size: 17px; }
    .article__body ul, .article__body ol { padding-left: 24px; }
    .callout { padding: 22px 20px; }
    .search-page__intro { grid-template-columns: 1fr; gap: 24px; }
    .search-page__intro .section-portrait { aspect-ratio: 3 / 2; }
    .search-page__form { grid-template-columns: 1fr; margin-top: 30px; }
    .search-page__form .button { min-height: 54px; }
    .empty-state { padding-block: 28px; }
    .success-page { grid-template-columns: 1fr; padding-bottom: 70px; }
    .site-footer__brand strong { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero__scroll { scroll-behavior: auto; }
}
/* The knowledge base owns both keyword search and manual topic browsing. */
.scheme-search { width: 100%; max-width: 960px; margin: 30px 0 38px; }
.scheme-search > label { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 500; }
.scheme-search__fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.scheme-search input[type="search"] { min-width: 0; width: 100%; min-height: 60px; padding: 14px 18px; border: 1px solid #a99e90; border-radius: 2px; color: #101010; background: #fff; font-size: 16px; }
.scheme-search > p { margin: 12px 0 0; color: #625a52; font-size: 14px; }
.page-hero .scheme-search { margin: 28px 0 4px; }
.page-hero .scheme-search > p { color: #ddd2c6; }
.page-hero .scheme-search__fields { grid-template-columns: minmax(0, 1fr) auto; }
.page-hero .scheme-search .button { padding-inline: 18px; font-size: 16px; }
.scheme-categories { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 38px; padding-bottom: 24px; border-bottom: 1px solid var(--editorial-rule); }
.scheme-categories a { display: inline-flex; align-items: center; min-height: 44px; color: #625a52; font-size: 15px; text-decoration: none; border-bottom: 1px solid transparent; }
.scheme-categories a:hover, .scheme-categories a[aria-current] { color: #795020; border-color: #a78241; }
.scheme-results-summary { margin-bottom: 36px; font-size: 17px; overflow-wrap: anywhere; }
.scheme-results-summary a { margin-left: 12px; font-size: 14px; color: #795020; text-underline-offset: 4px; }
@media(max-width:620px) {
    .scheme-search__fields, .page-hero .scheme-search__fields { grid-template-columns: 1fr; }
    .scheme-search .button { width: 100%; min-height: 54px; }
    .scheme-search input[type="search"] { font-size: 16px; }
}
/* The fragment target is a reading landmark; links and controls retain focus rings. */
.listing[tabindex="-1"]:focus { box-shadow: none; outline: none; }
/* Compact footer: unframed social links in a single column. */
.site-footer { padding: 28px 0 16px; }
.site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .65fr); gap: 40px; align-items: start; }
.site-footer__brand { align-items: flex-start; gap: 16px; }
.site-footer__brand > img { width: 64px; height: 64px; flex: none; }
.site-footer__brand strong { font-size: 23px; }
.site-footer__brand p { font-size: 14px; line-height: 1.5; }
.site-footer nav { gap: 4px; }
.site-footer nav a { display: flex; align-items: center; min-height: 32px; font-size: 15px; text-underline-offset: 4px; }
.site-footer__grid > div > strong { font-size: 14px; font-weight: 500; }
.site-footer .social-list { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 8px; }
.site-footer .social-link { min-height: 32px; gap: 9px; padding: 4px 0; border: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 400; }
.site-footer .social-link img { width: 22px; height: 22px; }
.site-footer .social-link__arrow { display: none; }
.site-footer .social-link:hover { background: none; color: #ffe18a; }
.site-footer .social-link:hover .social-link__label { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .site-motion-toggle { margin-top: 6px; min-height: 32px; padding: 4px 0; font-size: 12px; }
.site-footer__bottom { margin-top: 20px; padding-top: 14px; gap: 24px; font-size: 12px; line-height: 1.5; }
@media (max-width: 960px) {
    .site-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer nav a, .site-footer .social-link, .site-footer .site-motion-toggle { min-height: 44px; }
    .site-footer__bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 620px) {
    .site-footer__brand > img { width: 56px; height: 56px; }
    .site-footer__brand { gap: 12px; }
    .site-footer__brand strong { font-size: 21px; }
    .site-footer nav a { font-size: 14px; }
}
@media (pointer: coarse) {
    .site-footer nav a, .site-footer .social-link, .site-footer .site-motion-toggle { min-height: 44px; }
}
/* Resources lead; channel previews remain small and secondary. */
.resource-section { padding-block: 76px; }
.resources-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.useful-resources { min-width: 0; border-top: 1px solid #b79a68; }
.resource-contacts { padding: 20px 0; border-bottom: 1px solid var(--editorial-rule); }
.resource-contacts summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; cursor: pointer; list-style: none; font-size: 20px; font-weight: 500; }
.resource-contacts summary::-webkit-details-marker { display: none; }
.resource-contacts summary > span { color: #987139; transition: transform 200ms ease; }
.resource-contacts:not([open]) summary > span { transform: rotate(-90deg); }
.resource-contacts__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; margin: 14px 0 2px; }
.resource-phone { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 70px; color: #795020; text-decoration: none; }
.resource-phone > span:first-child { font-size: 14px; color: #625a52; }
.resource-phone strong { font: 400 38px/1.2 var(--editorial-serif); }
.resource-phone:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.resource-contacts__body p { display: flex; flex-direction: column; gap: 5px; margin: 0; padding-left: 24px; border-left: 1px solid var(--editorial-rule); }
.resource-contacts__body p strong { font-size: 15px; font-weight: 500; }
.resource-contacts__body p span { max-width: 350px; font-size: 14px; line-height: 1.6; color: #625a52; }
.resource-link { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; min-height: 78px; border-bottom: 1px solid var(--editorial-rule); text-decoration: none; }
.resource-link strong { display: block; font-size: 18px; font-weight: 500; line-height: 1.4; }
.resource-link small { display: block; margin-top: 5px; color: #6b6258; font-size: 13px; line-height: 1.5; }
.resource-link > span:last-child { color: #987139; }
.resource-link:hover strong { color: #795020; text-decoration: underline; text-underline-offset: 4px; }
.resource-channels { width: 100%; max-width: 370px; justify-self: end; min-width: 0; }
.resource-channels h3 { margin: 0 0 20px; font: 400 28px/1.15 var(--editorial-serif); }
.channel-card { display: block; text-decoration: none; }
.channel-card__image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #160f0a; border-radius: 2px; }
.channel-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.channel-card__play { position: absolute; left: 16px; bottom: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #ffe18a; color: #160f0a; font-size: 16px; }
.resources-layout--directory { margin-bottom: 60px; }
@media(max-width:960px) {
    .resources-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; }
    .resource-contacts__body { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
    .resource-contacts__body p { padding-left: 16px; }
}
@media(max-width:620px) {
    .resource-section { padding-block: 54px; }
    .resources-layout { grid-template-columns: 1fr; gap: 36px; }
    .resource-channels { max-width: 370px; justify-self: start; }
    .resource-contacts summary { font-size: 18px; }
    .resource-contacts__body { grid-template-columns: 76px minmax(0, 1fr); }
    .resource-link strong { font-size: 17px; }
}


.resource-channels .channel-card + .channel-card { margin-top: 20px; }
.channel-card--antimosh .channel-card__image img { object-position: center; }
/* Five latest-news slots; examples remain visibly labelled until populated. */
#latest .feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
#latest .feature-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #e7dcc8; border-radius: 3px; background: #fff; box-shadow: none; overflow: hidden; }
#latest .feature-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 25%; }
#latest .feature-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px 18px; }
#latest .feature-card time, #latest .feature-card__example { display: block; min-height: 20px; color: #876c46; font-size: 12px; line-height: 1.5; }
#latest .feature-card h3 { margin: 12px 0; font: 400 23px/1.2 var(--editorial-serif); letter-spacing: -.015em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#latest .feature-card h3 a { text-decoration: none; }
#latest .feature-card h3 a:hover { color: #795020; }
#latest .feature-card__excerpt { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: #625a52; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
#latest .feature-card .text-link { display: inline-flex; justify-content: space-between; width: 100%; min-height: 44px; margin-top: auto; font-size: 14px; font-weight: 400; text-decoration-thickness: 1px; }
@media(max-width:1200px) { #latest .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width:900px) { #latest .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:600px) {
    #latest .feature-grid { grid-template-columns: 1fr; gap: 24px; }
    #latest .feature-card h3 { font-size: 25px; }
    #latest .feature-card__body { padding: 22px; }
}
#latest { padding-block: 48px; }
#latest .section-heading { margin-bottom: 28px; }
/* The home knowledge-base preview uses five compact text cards. */
#schemes { padding-block: 64px; }
#schemes .section-heading { margin-bottom: 32px; }
#schemes .scheme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
#schemes .scheme-card { display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: 24px 20px 20px; }
#schemes .scheme-card > span { font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
#schemes .scheme-card h3 { max-width: none; margin: 18px 0 12px; font-size: 22px; line-height: 1.22; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#schemes .scheme-card p { font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
#schemes .scheme-card b { position: static; align-self: flex-end; margin-top: auto; padding-top: 16px; line-height: 1; }
@media(max-width:1200px) { #schemes .scheme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width:900px) { #schemes .scheme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:600px) {
    #schemes .scheme-grid { grid-template-columns: 1fr; gap: 20px; }
    #schemes .scheme-card { min-height: 250px; padding: 26px; }
    #schemes .scheme-card h3 { font-size: 24px; }
}

.literacy__all { margin-top: 22px; min-height: 44px; }
.channel-card__brand { position: absolute; top: 15px; right: 15px; display: flex; flex-direction: column; align-items: flex-end; width: 44%; color: #fff; text-align: right; pointer-events: none; text-shadow: 0 1px 5px rgb(0 0 0 / 35%); }
.channel-card__platform { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11px; font-weight: 500; line-height: 1; }
.channel-card__platform img { width: 20px; height: 14px; object-fit: contain; }
.channel-card__brand strong { font: 400 23px/1.1 var(--editorial-serif); color: #ffe18a; }
.channel-card__brand-subtitle { margin-top: 5px; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
@media(max-width:360px) {
    .channel-card__brand { top: 12px; right: 12px; }
    .channel-card__platform { margin-bottom: 7px; }
    .channel-card__brand strong { font-size: 20px; }
    .channel-card__brand-subtitle { font-size: 9px; }
}

/* Full project names span the masthead. */
.home-masthead { justify-content: space-between; gap: clamp(16px, 2.4vw, 48px); }
.home-masthead__name {
    color: var(--color-gold-light);
    font: 400 clamp(14px, 1.95vw, 40px)/1.35 Georgia, serif;
    letter-spacing: .14em;
    white-space: nowrap;
}
.home-masthead__name { min-width: 0; }
.home-masthead__letters { display: inline-block; overflow: clip; vertical-align: top; }
.home-masthead__letter { display: inline-block; white-space: pre; }
.home-masthead__name--right { text-align: right; }
@media(max-width:620px) {
    .home-masthead { display: grid; grid-template-columns: 1fr; justify-items: stretch; gap: 6px; }
    .home-masthead__name { font-size: clamp(13px, 4.4vw, 24px); letter-spacing: .05em; text-align: center; }
    .template-homepage .hero__inner { padding-top: 220px; }
}

.site-footer .social-link { max-width: 100%; }
.site-footer .social-link__label { white-space: normal; overflow-wrap: anywhere; }
@media(max-width:620px) {
    .site-footer__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
    .site-footer .social-link { font-size: 13px; }
}

.channel-card__brand, .channel-card__play { z-index: 2; }
.channel-card--antimosh .channel-card__brand { width: 65%; max-width: 238px; }
.channel-card--antimosh .channel-card__brand strong { font-size: 20px; }
.channel-card--antimosh .channel-card__image::after { content: ''; position: absolute; z-index: 1; inset: 0 0 45%; background: linear-gradient(180deg, rgb(0 0 0 / 60%), transparent); pointer-events: none; }
@media(max-width:360px) { .channel-card--antimosh .channel-card__brand strong { font-size: 18px; } }

.channel-card--rutube .channel-card__platform img { width: 18px; height: 18px; }

/* Keep four video channels together in the first social column. */
.site-footer__grid { grid-template-columns: minmax(0, .95fr) minmax(0, .9fr) minmax(0, 1.15fr); gap: 32px; }
.site-footer .social-list { display: grid; grid-auto-flow: column; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: repeat(4, minmax(32px, auto)); column-gap: 20px; row-gap: 0; align-items: center; }
@media(max-width:960px) {
    .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 22px; }
    .site-footer .social-list { grid-template-rows: repeat(4, minmax(44px, auto)); }
}
@media(max-width:620px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 20px; }
    .site-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
    .site-footer .social-list { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

/* Render the HQ footer movie at screen density, with a lossless still fallback. */
.site-footer__brand { gap: 12px; }
.site-footer__brand-media {
    position: relative; display: block; flex: 0 0 112px; width: 112px; height: 112px;
    --footer-logo-size: 144px; --footer-logo-offset: -16px;
    overflow: hidden; border-radius: 50%; background: #030102;
}
.site-footer__brand-media > img, .site-footer__logo-video, .site-footer__logo-canvas {
    position: absolute; top: var(--footer-logo-offset); left: var(--footer-logo-offset);
    width: var(--footer-logo-size); height: var(--footer-logo-size); max-width: none;
    object-fit: contain;
}
.site-footer__logo-video, .site-footer__logo-canvas { opacity: 0; pointer-events: none; }
.site-footer__logo-video[data-playing] + .site-footer__logo-canvas[data-ready],
.site-footer__logo-video[data-playing][data-native-renderer] { opacity: 1; }
[data-motion-disabled] .site-footer__logo-video,
[data-motion-disabled] .site-footer__logo-canvas { display: none; }
@media(prefers-reduced-motion: reduce) {
    .site-footer__logo-video, .site-footer__logo-canvas { display: none; }
}
@media(max-width:1200px) {
    .site-footer__brand-media {
        flex-basis: 96px; width: 96px; height: 96px;
        --footer-logo-size: 124px; --footer-logo-offset: -14px;
    }
}
/* Source marks sit beside the external-link arrow, without competing with copy. */
.resource-link > span:first-child { min-width: 0; flex: 1; }
.resource-link__source { display: inline-flex; flex: 0 0 118px; align-items: center; justify-content: flex-end; gap: 14px; }
.resource-logo { display: block; width: 90px; height: 40px; object-fit: contain; }
.resource-logo--symbol { width: 40px; height: 40px; }
.resource-logo--wide { width: 90px; height: 40px; }
@media(max-width:620px) {
    .resource-link { gap: 14px; }
    .resource-link__source { flex-basis: 78px; gap: 9px; }
    .resource-logo--wide { width: 58px; height: 32px; }
    .resource-logo--symbol { width: 32px; height: 32px; }
}
/* Slightly heavier white footer links, without changing their text metrics. */
.site-footer nav a { color: #fff; text-shadow: none; transition: text-shadow 140ms ease; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: #fff; text-shadow: .3px 0 0 currentColor, -.3px 0 0 currentColor; }
.site-footer nav a:focus-visible { box-shadow: none; outline: 2px solid #fff; outline-offset: 3px; }

/* News article reading column */
.article--news .article__body,
.article--news .source-line { max-width: 680px; margin-inline: auto; }
.article--news .article__body { font-size: 18px; line-height: 1.75; }
.article--news .article__body p { margin: 0 0 1.2em; }
.article--news .article__body ul,
.article--news .article__body ol { margin-block: 1.2em; padding-inline-start: 1.4em; }
.article--news .article__body li + li { margin-top: .45em; }
.article--news .article__body h2,
.article--news .article__body h3 { margin-block: 1.5em .65em; }
.article--news .article__body > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
    .article--news .article__body { font-size: 17px; line-height: 1.7; }
}

/* Keep the news studio and its display visible together. */
.page-hero .section-portrait--news { aspect-ratio: 3 / 2; }

/* Four video channels stay in one vertical column beside the resource list. */
.resource-channels__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.resource-channels__grid .channel-card { min-width: 0; }
.resource-channels__grid .channel-card + .channel-card { margin-top: 0; }
