/*
Theme Name: HomeEnglish
Theme URI: https://homeenglish.ru
Author: HomeEnglish
Description: Clean learning-focused theme for the HomeEnglish WordPress migration.
Version: 0.1.0
Text Domain: homeenglish
*/

:root {
    --he-ink: #17202a;
    --he-muted: #5f6975;
    --he-line: #d8dee6;
    --he-surface: #ffffff;
    --he-soft: #f5f7fa;
    --he-red: #c2412f;
    --he-teal: #147c78;
    --he-green: #4b7f42;
    --he-amber: #c58b26;
    --he-blue: #265f9f;
    --he-shadow: 0 14px 35px rgba(23, 32, 42, 0.12);
    --he-shadow-soft: 0 8px 24px rgba(23, 32, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--he-ink);
    background: var(--he-soft);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--he-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    background: var(--he-surface);
    border-bottom: 1px solid var(--he-line);
}

.site-header__inner,
.site-footer__inner,
.wrap {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--he-ink);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.brand span {
    color: var(--he-red);
}

.primary-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    color: var(--he-ink);
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--he-red);
}

.hero {
    min-height: 520px;
    display: grid;
    align-items: end;
    background-image:
        linear-gradient(90deg, rgba(10, 16, 24, 0.78), rgba(10, 16, 24, 0.24)),
        url("assets/images/hero-learning.jpg");
    background-position: center;
    background-size: cover;
}

.hero__content {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0 58px;
    color: #fff;
}

.hero__eyebrow {
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
}

.hero p {
    max-width: 680px;
    margin: 0 0 26px;
    font-size: 20px;
}

.search-panel {
    display: flex;
    width: min(680px, 100%);
    min-height: 54px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--he-shadow);
}

.search-panel input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 18px;
    color: var(--he-ink);
    font: inherit;
}

.search-panel button,
.button-link {
    border: 0;
    background: var(--he-red);
    color: #fff;
    padding: 0 22px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.stats-strip {
    background: var(--he-ink);
    color: #fff;
}

.stats-strip__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item strong {
    font-size: 30px;
    line-height: 1;
}

.stat-item span {
    margin-top: 6px;
    color: #cbd6e1;
}

.section-band {
    padding: 42px 0;
}

.section-band--white {
    background: var(--he-surface);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-heading h2,
.archive-title,
.entry-title {
    margin: 0;
    line-height: 1.15;
}

.section-heading h2 {
    font-size: 30px;
}

.section-heading p {
    max-width: 560px;
    margin: 0;
    color: var(--he-muted);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.section-tile {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid var(--he-line);
    background: var(--he-surface);
    color: var(--he-ink);
    text-decoration: none;
}

.section-tile__badge {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid var(--he-line);
    color: var(--he-muted);
    font-size: 12px;
    font-weight: 900;
}

.section-tile strong {
    font-size: 20px;
}

.section-tile span {
    color: var(--he-muted);
}

.section-tile[data-accent="teal"] {
    border-top: 4px solid var(--he-teal);
}

.section-tile[data-accent="green"] {
    border-top: 4px solid var(--he-green);
}

.section-tile[data-accent="amber"] {
    border-top: 4px solid var(--he-amber);
}

.section-tile[data-accent="red"] {
    border-top: 4px solid var(--he-red);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.path-card {
    min-height: 260px;
    padding: 22px;
    background: var(--he-surface);
    border: 1px solid var(--he-line);
    box-shadow: var(--he-shadow-soft);
}

.path-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

.path-card h3 a {
    color: var(--he-ink);
    text-decoration: none;
}

.path-card p {
    margin: 0 0 18px;
    color: var(--he-muted);
}

.path-card ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
}

.path-card li::marker {
    color: var(--he-red);
    font-weight: 900;
}

.split-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.section-heading--stacked {
    display: block;
}

.section-heading--stacked p {
    margin-top: 10px;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-list a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--he-line);
    background: var(--he-soft);
    color: var(--he-ink);
    font-weight: 800;
    text-decoration: none;
}

.focus-panel {
    padding: 24px;
    background: var(--he-ink);
    color: #e8eef5;
}

.focus-panel h2 {
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.2;
}

.focus-panel p {
    margin: 0;
}

.format-list {
    display: grid;
    gap: 12px;
}

.format-list a {
    display: block;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
}

.format-list strong,
.format-list span {
    display: block;
}

.format-list span {
    margin-top: 4px;
    color: #d4dde7;
}

.content-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--he-line);
    background: var(--he-surface);
}

.content-card__type {
    color: var(--he-red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.content-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}

.content-card h3 a {
    color: var(--he-ink);
    text-decoration: none;
}

.content-card p {
    margin: 0;
    color: var(--he-muted);
}

.archive-header,
.entry-header {
    padding: 44px 0 26px;
}

.archive-title,
.entry-title {
    font-size: clamp(32px, 5vw, 56px);
}

.entry-shell {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
    gap: 36px;
    padding-bottom: 56px;
}

.entry-content {
    padding: 30px;
    background: var(--he-surface);
    border: 1px solid var(--he-line);
}

.entry-content h2,
.entry-content h3 {
    line-height: 1.25;
}

.entry-sidebar {
    align-self: start;
    padding: 22px;
    border: 1px solid var(--he-line);
    background: var(--he-surface);
}

.site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--he-line);
    background: var(--he-ink);
    color: #dfe7ef;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 920px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .section-grid,
    .path-grid,
    .content-grid,
    .entry-shell,
    .split-band {
        grid-template-columns: 1fr 1fr;
    }

    .stats-strip__inner {
        grid-template-columns: 1fr 1fr;
    }

    .split-band .focus-panel {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 460px;
    }

    .hero__content {
        padding: 76px 0 38px;
    }

    .hero p {
        font-size: 18px;
    }

    .search-panel {
        flex-direction: column;
    }

    .search-panel input,
    .search-panel button {
        min-height: 52px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-grid,
    .path-grid,
    .content-grid,
    .entry-shell,
    .split-band,
    .stats-strip__inner {
        grid-template-columns: 1fr;
    }

    .split-band .focus-panel {
        grid-column: auto;
    }
}

/* Editorial redesign pass */
:root {
    --he-ink: #111827;
    --he-muted: #667085;
    --he-line: #e1e7ef;
    --he-surface: #ffffff;
    --he-soft: #f7fafc;
    --he-panel: #eef6f3;
    --he-red: #bd4235;
    --he-teal: #087b77;
    --he-green: #4c7b3d;
    --he-amber: #b87916;
    --he-blue: #1f5d95;
    --he-radius: 8px;
    --he-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
    --he-shadow-soft: 0 12px 34px rgba(17, 24, 39, 0.08);
}

body {
    background: #fff;
    color: var(--he-ink);
}

html,
body {
    overflow-x: clip;
}

html {
    scroll-padding-top: 96px;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
}

.site-header__inner {
    min-height: 76px;
}

.brand {
    gap: 0;
    font-size: 25px;
    letter-spacing: 0;
}

.brand-mark {
    display: none;
}

.primary-nav ul {
    gap: 24px;
}

.primary-nav {
    min-width: 0;
}

.primary-nav a {
    min-height: 40px;
    padding: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #1d2735;
    font-size: 15px;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a.is-current,
.primary-nav .current-menu-item > a {
    background: transparent;
    border-bottom-color: var(--he-teal);
    color: var(--he-teal);
}

.hero {
    min-height: 640px;
    align-items: end;
    background-image:
        linear-gradient(90deg, rgba(7, 13, 20, 0.9) 0%, rgba(7, 13, 20, 0.72) 38%, rgba(7, 13, 20, 0.22) 76%),
        url("assets/images/hero-learning-v2.png");
    background-position: center;
}

.hero__layout {
    grid-template-columns: minmax(0, 840px);
    align-items: end;
}

.hero__content {
    padding: 102px 0 84px;
}

.hero__copy {
    max-width: 840px;
}

.hero__eyebrow {
    margin-bottom: 18px;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 3px solid #f0b35a;
    border-radius: 0;
    background: transparent;
    color: #eef7f5;
    font-size: 14px;
    letter-spacing: 0.03em;
}

.hero h1,
.section-heading h2,
.archive-title,
.entry-title,
.content-card h3,
.path-card h3,
.section-tile strong {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(58px, 8vw, 104px);
    font-weight: 700;
    line-height: 0.96;
}

.hero p {
    max-width: 720px;
    color: #eef3f6;
    font-size: 22px;
    line-height: 1.55;
}

.hero-digest,
.stats-strip {
    display: none;
}

.search-panel {
    min-height: 62px;
    border: 0;
    border-radius: var(--he-radius);
    box-shadow: var(--he-shadow);
}

.search-panel input {
    padding: 0 20px;
}

.search-panel button,
.button-link,
.archive-search button,
.sidebar-search button {
    background: var(--he-red);
}

.hero-links {
    gap: 18px;
    margin-top: 22px;
}

.hero-links a {
    min-height: auto;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 0;
    background: transparent;
}

.section-band {
    padding: 82px 0;
}

.section-band--white,
.section-band--catalog {
    background: #fff;
}

.section-band:nth-of-type(even) {
    background: var(--he-soft);
}

.section-heading {
    align-items: flex-start;
    margin-bottom: 34px;
}

.section-heading h2 {
    max-width: 520px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
}

.section-heading p {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.7;
}

.section-grid {
    gap: 0;
    border-top: 1px solid var(--he-line);
    border-bottom: 1px solid var(--he-line);
}

.section-tile {
    min-height: 210px;
    padding: 30px 24px;
    border: 0;
    border-right: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.section-tile:nth-child(4n) {
    border-right: 0;
}

.section-tile:hover,
.section-tile:focus {
    border-color: var(--he-line);
    background: #fff;
    box-shadow: none;
    transform: none;
}

.section-tile__badge {
    display: none;
}

.section-tile__body {
    gap: 10px;
}

.section-tile strong {
    font-size: 28px;
    font-weight: 700;
}

.section-tile span {
    font-size: 16px;
    line-height: 1.55;
}

.section-tile em {
    margin-top: 22px;
    color: var(--he-teal);
    font-size: 14px;
}

.path-grid {
    gap: 34px;
}

.path-card {
    min-height: auto;
    padding: 0 0 0 22px;
    border: 0;
    border-left: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.path-card::before {
    display: none;
}

.path-card__number {
    margin-bottom: 18px;
    color: #cfd8e3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
}

.path-card h3 {
    font-size: 25px;
    font-weight: 700;
}

.path-card p {
    font-size: 16px;
    line-height: 1.65;
}

.path-card ol {
    gap: 10px;
    margin-top: 20px;
}

.split-band {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.topic-list a {
    min-height: auto;
    padding: 0 0 7px;
    border: 0;
    border-bottom: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    color: var(--he-ink);
}

.topic-list a:hover,
.topic-list a:focus {
    background: transparent;
}

.focus-panel {
    background: #f4faf7;
    border: 1px solid #dbeadf;
    box-shadow: none;
    color: var(--he-ink);
}

.focus-panel h2 {
    color: var(--he-ink);
}

.format-list a {
    padding: 16px 0 16px 18px;
    border: 0;
    border-left: 3px solid var(--he-green);
    background: transparent;
    color: var(--he-ink);
}

.format-list span {
    color: var(--he-muted);
}

.home .section-band--catalog .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 48px;
    max-width: 1040px;
}

.content-card {
    min-height: auto;
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 12px;
}

.content-card::before {
    display: none;
}

.content-card:hover {
    border-color: var(--he-line);
    box-shadow: none;
    transform: none;
}

.content-card__meta {
    justify-content: flex-start;
    gap: 14px;
}

.content-card__type {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--he-red);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.content-card__fact {
    max-width: none;
    color: var(--he-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.content-card h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;
}

.content-card p {
    color: #536173;
    font-size: 16px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
}

.content-card__footer {
    justify-content: flex-start;
    gap: 18px;
    color: var(--he-muted);
    font-weight: 600;
}

.content-card__link {
    border-bottom: 1px solid currentColor;
    color: var(--he-teal);
}

.archive-header,
.entry-header {
    padding: 70px 0 42px;
    background: #fff;
    border-bottom: 0;
}

.archive-header--red,
.archive-header--green,
.archive-header--amber,
.archive-header--404 {
    background: #fff;
}

.archive-header__inner {
    grid-template-columns: minmax(0, 780px) minmax(280px, 360px);
    align-items: center;
}

.archive-kicker,
.entry-type {
    color: var(--he-red);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.archive-title {
    max-width: 820px;
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 700;
}

.archive-header p,
.entry-header p {
    font-size: 19px;
    line-height: 1.7;
}

.archive-summary {
    display: flex;
    margin-top: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--he-muted);
}

.archive-summary span {
    color: var(--he-ink);
    font-size: 17px;
}

.archive-summary em {
    font-weight: 500;
}

.archive-search,
.sidebar-search {
    border-color: var(--he-line);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.archive-filter-band {
    padding: 0 0 34px;
    border-bottom: 0;
    background: #fff;
}

.archive-filters {
    gap: 0 22px;
}

.archive-filters a,
.term-pills a {
    min-height: 34px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
}

.archive-filters a:hover,
.archive-filters a:focus,
.term-pills a:hover,
.term-pills a:focus {
    background: transparent;
}

body.archive .section-band--catalog,
body.search .section-band--catalog {
    padding-top: 28px;
    background: #fff;
}

body.archive .content-grid,
body.search .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 56px;
}

.pagination-shell {
    margin-top: 48px;
}

.page-numbers {
    border-radius: 0;
    background: transparent;
}

.entry-header__inner {
    max-width: 960px;
}

.entry-breadcrumbs {
    margin-bottom: 24px;
}

.entry-title {
    font-size: clamp(44px, 5.5vw, 76px);
    font-weight: 700;
}

.entry-meta-strip {
    gap: 0 20px;
}

.entry-meta-strip span {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--he-muted);
    font-weight: 600;
}

.entry-shell {
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 58px;
    padding-top: 28px;
}

.entry-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #202b3a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.85;
}

.entry-content h2,
.entry-content h3 {
    color: var(--he-ink);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.entry-content table {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.entry-content blockquote {
    border-left-color: var(--he-green);
    background: #f4faf7;
}

.entry-sidebar {
    gap: 0;
}

.sidebar-block {
    padding: 22px 0;
    border: 0;
    border-top: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar-block--accent {
    border-top: 3px solid var(--he-red);
}

.song-context {
    border: 0;
    border-top: 1px solid var(--he-line);
    border-bottom: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.related-materials {
    margin-top: 56px;
}

.related-grid {
    gap: 30px;
}

.site-footer {
    background: #101827;
}

@media (max-width: 1040px) {
    .section-tile:nth-child(4n) {
        border-right: 1px solid var(--he-line);
    }

    .section-tile:nth-child(2n) {
        border-right: 0;
    }

    .home .section-band--catalog .content-grid,
    body.archive .content-grid,
    body.search .content-grid {
        gap: 30px;
    }
}

@media (max-width: 920px) {
    .site-header__inner {
        gap: 12px;
    }

    .primary-nav ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .primary-nav a {
        justify-content: flex-start;
        white-space: nowrap;
    }

    .archive-header__inner,
    .entry-shell,
    .split-band {
        grid-template-columns: 1fr;
    }

    .entry-sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        padding: 14px 0 12px;
    }

    .hero {
        min-height: 560px;
        background-position: 58% center;
    }

    .hero__content {
        padding: 76px 0 52px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-links {
        gap: 12px 16px;
    }

    .section-band {
        padding: 54px 0;
    }

    .section-grid {
        border-bottom: 0;
    }

    .section-tile,
    .section-tile:nth-child(2n),
    .section-tile:nth-child(4n) {
        min-height: auto;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--he-line);
    }

    .path-card {
        padding-left: 18px;
    }

    .home .section-band--catalog .content-grid,
    body.archive .content-grid,
    body.search .content-grid,
    .related-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .content-card h3 {
        font-size: 24px;
    }

    .archive-header,
    .entry-header {
        padding: 42px 0 28px;
    }

    .archive-title,
    .entry-title {
        font-size: 42px;
    }

    .archive-filter-band {
        padding-bottom: 24px;
    }

    .archive-filters a {
        flex: 0 0 auto;
    }

    .entry-content {
        font-size: 18px;
    }
}

/* Design pass: production catalog look */
:root {
    --he-ink: #101827;
    --he-muted: #536173;
    --he-line: #d9e2ec;
    --he-surface: #ffffff;
    --he-soft: #f3f6fa;
    --he-panel: #eaf1f7;
    --he-red: #bd3f31;
    --he-teal: #087b77;
    --he-green: #4c7b3d;
    --he-amber: #b87916;
    --he-blue: #265f95;
    --he-radius: 8px;
    --he-shadow: 0 18px 44px rgba(16, 24, 39, 0.15);
    --he-shadow-soft: 0 12px 28px rgba(16, 24, 39, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, #ffffff 0, var(--he-soft) 440px),
        var(--he-soft);
    color: var(--he-ink);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

a {
    color: var(--he-blue);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 10px;
    z-index: 100;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--he-ink);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(217, 226, 236, 0.9);
    box-shadow: 0 8px 24px rgba(16, 24, 39, 0.05);
    backdrop-filter: blur(14px);
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header__inner,
.site-footer__inner,
.wrap {
    width: min(1180px, calc(100% - 36px));
}

.site-header__inner {
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    line-height: 1;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--he-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.brand-text span,
.footer-brand span {
    color: var(--he-red);
}

.primary-nav ul {
    gap: 6px;
}

.primary-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    color: #182233;
    font-size: 15px;
    transition: background 0.18s ease, color 0.18s ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
    background: #f0f4f8;
    color: var(--he-red);
}

.hero {
    min-height: 610px;
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(9, 19, 31, 0.86), rgba(9, 19, 31, 0.54) 46%, rgba(9, 19, 31, 0.18)),
        url("assets/images/hero-learning.jpg");
    background-position: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.24);
}

.hero__content {
    padding: 72px 0 48px;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 44px;
    align-items: end;
}

.hero__copy {
    max-width: 790px;
}

.hero__eyebrow {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    letter-spacing: 0;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: 76px;
    line-height: 0.96;
}

.hero p {
    max-width: 700px;
    margin-bottom: 28px;
    color: #f2f6fa;
    font-size: 21px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.search-panel,
.archive-search,
.sidebar-search {
    border-radius: var(--he-radius);
    overflow: hidden;
}

.search-panel {
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.search-panel input,
.archive-search input,
.sidebar-search input {
    outline: none;
}

.search-panel input:focus,
.archive-search input:focus,
.sidebar-search input:focus {
    box-shadow: inset 0 0 0 2px rgba(8, 123, 119, 0.26);
}

.search-panel button,
.button-link,
.archive-search button,
.sidebar-search button {
    border-radius: 0;
    background: var(--he-red);
    transition: background 0.18s ease, transform 0.18s ease;
}

.search-panel button:hover,
.button-link:hover,
.archive-search button:hover,
.sidebar-search button:hover {
    background: #a93428;
}

.button-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.button-link--light {
    margin-top: 18px;
    background: #fff;
    color: var(--he-ink);
}

.button-link--light:hover {
    background: #e8eef5;
}

.hero-links a {
    min-height: 38px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-digest {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: var(--he-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--he-shadow);
    color: var(--he-ink);
}

.hero-digest__kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--he-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-digest > strong {
    display: block;
    font-size: 44px;
    line-height: 1;
}

.hero-digest > span:not(.hero-digest__kicker) {
    display: block;
    margin-top: 8px;
    color: var(--he-muted);
}

.hero-digest__rows {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.hero-digest__rows div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--he-line);
}

.hero-digest__rows b {
    font-size: 20px;
}

.hero-digest__rows span {
    color: var(--he-muted);
    text-align: right;
}

.stats-strip {
    background: #101827;
}

.stats-strip__inner {
    gap: 0;
}

.stat-item {
    min-height: 104px;
    padding: 20px 24px;
}

.stat-item strong {
    font-size: 34px;
}

.section-band {
    padding: 66px 0;
}

.section-band--white {
    background: #fff;
}

.section-band--catalog {
    background:
        linear-gradient(180deg, #f7f9fc 0, #eef3f8 100%);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: 34px;
}

.section-heading p {
    color: var(--he-muted);
    font-size: 17px;
}

.section-grid {
    gap: 16px;
}

.section-tile {
    min-height: 178px;
    padding: 20px;
    border-radius: var(--he-radius);
    box-shadow: 0 1px 0 rgba(16, 24, 39, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-tile:hover,
.section-tile:focus {
    border-color: rgba(38, 95, 149, 0.42);
    box-shadow: var(--he-shadow-soft);
    transform: translateY(-3px);
}

.section-tile__badge {
    border-radius: 5px;
    background: #f2f5f8;
    letter-spacing: 0;
}

.section-tile__body {
    display: grid;
    gap: 8px;
}

.section-tile strong {
    font-size: 23px;
}

.section-tile em {
    color: var(--he-muted);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

.section-tile[data-accent="teal"] {
    border-top-color: var(--he-teal);
}

.section-tile[data-accent="green"] {
    border-top-color: var(--he-green);
}

.section-tile[data-accent="amber"] {
    border-top-color: var(--he-amber);
}

.section-tile[data-accent="red"] {
    border-top-color: var(--he-red);
}

.path-grid,
.content-grid {
    gap: 18px;
}

.path-card,
.content-card,
.entry-content,
.entry-sidebar,
.focus-panel {
    border-radius: var(--he-radius);
}

.path-card {
    min-height: 292px;
    position: relative;
    overflow: hidden;
    border-color: #dce5ee;
}

.path-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--he-teal), var(--he-red), var(--he-amber));
}

.path-card__number {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--he-muted);
    font-size: 13px;
    font-weight: 900;
}

.path-card p {
    font-size: 15px;
}

.path-card ol {
    margin-top: auto;
}

.topic-list a {
    min-height: 44px;
    border-radius: 6px;
    background: #f6f8fb;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.topic-list a:hover,
.topic-list a:focus {
    border-color: var(--he-teal);
    background: #eef8f7;
    color: var(--he-teal);
}

.focus-panel {
    background:
        linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(16, 24, 39, 0.9)),
        #101827;
    box-shadow: var(--he-shadow-soft);
}

.focus-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.focus-list li {
    padding-left: 18px;
    position: relative;
}

.focus-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--he-amber);
}

.content-card {
    min-height: 236px;
    border-radius: var(--he-radius);
    box-shadow: 0 1px 0 rgba(16, 24, 39, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.content-card:hover {
    border-color: rgba(8, 123, 119, 0.36);
    box-shadow: var(--he-shadow-soft);
    transform: translateY(-2px);
}

.content-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.content-card__type {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 5px;
    background: #f8e9e6;
    color: var(--he-red);
    letter-spacing: 0;
}

.content-card time {
    color: var(--he-muted);
    font-size: 13px;
    white-space: nowrap;
}

.content-card h3 {
    font-size: 22px;
}

.content-card h3 a:hover,
.content-card h3 a:focus {
    color: var(--he-teal);
}

.content-card__link {
    margin-top: auto;
    color: var(--he-blue);
    font-weight: 900;
    text-decoration: none;
}

.archive-header,
.entry-header {
    padding: 58px 0 38px;
    background:
        linear-gradient(180deg, #ffffff 0, #f1f5f9 100%);
    border-bottom: 1px solid var(--he-line);
}

.archive-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: end;
}

.archive-kicker,
.entry-type {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--he-red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.archive-title,
.entry-title {
    font-size: 54px;
    line-height: 1.02;
}

.archive-header p,
.entry-header p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--he-muted);
    font-size: 18px;
}

.archive-search,
.sidebar-search {
    display: flex;
    border: 1px solid var(--he-line);
    background: #fff;
}

.archive-search input,
.sidebar-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 14px;
    font: inherit;
}

.archive-search button,
.sidebar-search button {
    border: 0;
    color: #fff;
    padding: 0 16px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.archive-search {
    min-height: 50px;
}

.pagination-shell {
    margin-top: 34px;
}

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--he-line);
    border-radius: 6px;
    background: #fff;
    color: var(--he-ink);
    font-weight: 800;
    text-decoration: none;
}

.page-numbers.current {
    border-color: var(--he-ink);
    background: var(--he-ink);
    color: #fff;
}

.entry-header__inner {
    max-width: 920px;
}

.entry-shell {
    grid-template-columns: minmax(0, 780px) minmax(260px, 1fr);
    padding-top: 36px;
}

.entry-content {
    border-radius: var(--he-radius);
    box-shadow: 0 1px 0 rgba(16, 24, 39, 0.04);
    font-size: 18px;
    line-height: 1.75;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content blockquote {
    margin-top: 0;
    margin-bottom: 1.1em;
}

.entry-content h2,
.entry-content h3 {
    margin: 1.6em 0 0.65em;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.entry-content th,
.entry-content td {
    padding: 10px 12px;
    border: 1px solid var(--he-line);
    vertical-align: top;
}

.entry-content blockquote {
    margin-left: 0;
    padding: 16px 20px;
    border-left: 4px solid var(--he-teal);
    background: #f3f8f8;
}

.translation-block {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--he-line);
}

.entry-sidebar {
    display: grid;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

.sidebar-block {
    padding: 22px;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    background: #fff;
    box-shadow: 0 1px 0 rgba(16, 24, 39, 0.04);
}

.sidebar-block strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

.sidebar-block p {
    margin: 0 0 14px;
    color: var(--he-muted);
}

.sidebar-search {
    min-height: 44px;
}

.site-footer {
    padding: 42px 0;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px 44px;
    align-items: start;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
}

.site-footer p {
    max-width: 620px;
    margin: 10px 0 0;
    color: #cad4df;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    max-width: 520px;
}

.footer-nav a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.footer-copy {
    grid-column: 1 / -1;
    font-size: 14px;
}

.empty-note {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    background: #fff;
    color: var(--he-muted);
}

@media (max-width: 1040px) {
    .hero__layout,
    .archive-header__inner {
        grid-template-columns: 1fr;
    }

    .hero-digest {
        max-width: 640px;
    }

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

    .entry-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .site-header__inner {
        align-items: stretch;
    }

    .primary-nav ul {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .primary-nav a {
        justify-content: center;
        text-align: center;
    }

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

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header__inner,
    .site-footer__inner,
    .wrap {
        width: min(100% - 28px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

    .primary-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primary-nav a {
        min-height: 34px;
        padding: 0 8px;
        font-size: 14px;
    }

    .hero {
        min-height: auto;
    }

    .hero__content {
        padding: 54px 0 34px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-digest {
        padding: 18px;
    }

    .hero-digest > strong {
        font-size: 36px;
    }

    .section-band {
        padding: 44px 0;
    }

    .section-heading h2,
    .archive-title,
    .entry-title {
        font-size: 36px;
    }

    .section-grid,
    .path-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .archive-search {
        flex-direction: column;
    }

    .archive-search input,
    .archive-search button {
        min-height: 48px;
    }

    .entry-content {
        padding: 22px;
        font-size: 17px;
    }
}

/* Design audit implementation */
.primary-nav a.is-current,
.primary-nav .current-menu-item > a {
    background: #eef8f7;
    color: var(--he-teal);
}

.archive-header--red,
.archive-header--404 {
    background:
        linear-gradient(180deg, #fff 0, #fff5f3 100%);
}

.archive-header--green {
    background:
        linear-gradient(180deg, #fff 0, #f3f9f0 100%);
}

.archive-header--amber {
    background:
        linear-gradient(180deg, #fff 0, #fff8ec 100%);
}

.archive-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 12px;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    background: rgba(255, 255, 255, 0.76);
}

.archive-summary span {
    font-size: 22px;
    font-weight: 900;
}

.archive-summary em {
    color: var(--he-muted);
    font-style: normal;
    font-weight: 800;
}

.archive-filter-band {
    padding: 22px 0;
    border-bottom: 1px solid var(--he-line);
    background: #fff;
}

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.archive-filters a,
.term-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--he-line);
    border-radius: 6px;
    background: #f7f9fc;
    color: var(--he-ink);
    font-weight: 800;
    text-decoration: none;
}

.archive-filters a:hover,
.archive-filters a:focus,
.term-pills a:hover,
.term-pills a:focus {
    border-color: var(--he-teal);
    background: #eef8f7;
    color: var(--he-teal);
}

.archive-filters em {
    color: var(--he-muted);
    font-size: 13px;
    font-style: normal;
}

.content-card {
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--he-teal);
}

.content-card--he_lesson::before,
.content-card--he_hub::before {
    background: var(--he-red);
}

.content-card--he_grammar::before,
.content-card--he_media::before {
    background: var(--he-amber);
}

.content-card--he_song::before,
.content-card--he_reading::before {
    background: var(--he-green);
}

.content-card__fact {
    color: var(--he-muted);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.content-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: var(--he-muted);
    font-size: 14px;
    font-weight: 800;
}

.content-card__link {
    white-space: nowrap;
}

.empty-state {
    padding: 32px;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    background: #fff;
    box-shadow: var(--he-shadow-soft);
}

.empty-state--wide {
    padding: 38px;
}

.empty-state__kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--he-red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.empty-state h2 {
    max-width: 760px;
    margin: 0;
    font-size: 30px;
    line-height: 1.18;
}

.empty-state p {
    max-width: 700px;
    color: var(--he-muted);
}

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.quick-link-grid a {
    min-height: 108px;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    background: #f7f9fc;
    color: var(--he-ink);
    text-decoration: none;
}

.quick-link-grid a:hover,
.quick-link-grid a:focus {
    border-color: var(--he-teal);
    background: #eef8f7;
}

.quick-link-grid span {
    color: var(--he-muted);
}

.entry-header__inner {
    max-width: 980px;
}

.entry-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--he-muted);
    font-size: 14px;
}

.entry-breadcrumbs a {
    color: var(--he-muted);
    font-weight: 800;
    text-decoration: none;
}

.entry-breadcrumbs a:hover,
.entry-breadcrumbs a:focus {
    color: var(--he-teal);
}

.entry-breadcrumbs em {
    color: #9aa7b5;
    font-style: normal;
}

.entry-title {
    max-width: 940px;
    font-size: clamp(34px, 4vw, 58px);
}

.entry-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.entry-meta-strip span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--he-line);
    border-radius: 6px;
    background: #fff;
    color: var(--he-muted);
    font-size: 14px;
    font-weight: 800;
}

.entry-main {
    min-width: 0;
}

.entry-content {
    overflow-wrap: anywhere;
}

.entry-content a {
    font-weight: 700;
}

.entry-content img {
    display: block;
    margin: 20px auto;
    border-radius: 6px;
}

.song-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    background: #fff;
    box-shadow: 0 1px 0 rgba(16, 24, 39, 0.04);
}

.song-context span {
    color: var(--he-red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.song-context strong {
    font-size: 20px;
}

.song-context a {
    margin-left: auto;
    font-weight: 900;
    text-decoration: none;
}

.sidebar-block--accent {
    border-top: 4px solid var(--he-red);
}

.term-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-materials {
    margin-top: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.related-grid .content-card {
    min-height: 210px;
}

.translation-block {
    border-top: 1px solid var(--he-line);
}

@media (max-width: 1040px) {
    .quick-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .archive-header {
        padding: 34px 0 24px;
    }

    .archive-summary {
        margin-top: 14px;
    }

    .archive-filter-band {
        padding: 16px 0;
    }

    .archive-filters {
        flex-wrap: nowrap;
        margin-right: -14px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .archive-filters a {
        flex: 0 0 auto;
    }

    .content-card__meta {
        align-items: flex-start;
    }

    .content-card__fact {
        max-width: 48%;
    }

    .content-card h3 {
        font-size: 20px;
    }

    .quick-link-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .empty-state,
    .empty-state--wide {
        padding: 22px;
    }

    .empty-state h2 {
        font-size: 24px;
    }

    .entry-title {
        font-size: 34px;
    }

    .entry-meta-strip span {
        min-height: 32px;
        font-size: 13px;
    }

    .song-context {
        display: grid;
    }

    .song-context a {
        margin-left: 0;
    }
}

/* Final editorial override: keep this block last. */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
}

.brand-mark {
    display: none;
}

.brand {
    gap: 0;
    font-size: 25px;
}

.primary-nav ul {
    gap: 24px;
}

.primary-nav a,
.primary-nav a.is-current,
.primary-nav .current-menu-item > a {
    min-height: 40px;
    padding: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a.is-current,
.primary-nav .current-menu-item > a {
    border-bottom-color: var(--he-teal);
    color: var(--he-teal);
}

.hero {
    min-height: 640px;
    align-items: end;
    background-image:
        linear-gradient(90deg, rgba(7, 13, 20, 0.9) 0%, rgba(7, 13, 20, 0.72) 38%, rgba(7, 13, 20, 0.22) 76%),
        url("assets/images/hero-learning-v2.png");
    background-position: center;
}

.hero__layout {
    grid-template-columns: minmax(0, 840px);
}

.hero__content {
    padding: 102px 0 84px;
}

.hero__eyebrow {
    padding: 0 0 0 14px;
    border: 0;
    border-left: 3px solid #f0b35a;
    border-radius: 0;
    background: transparent;
}

.hero h1,
.section-heading h2,
.archive-title,
.entry-title,
.content-card h3,
.path-card h3,
.section-tile strong {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.hero h1 {
    font-size: clamp(58px, 8vw, 104px);
    font-weight: 700;
    line-height: 0.96;
}

.hero p {
    color: #eef3f6;
    font-size: 22px;
    line-height: 1.55;
}

.hero-digest,
.stats-strip {
    display: none;
}

.hero-links a {
    min-height: auto;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 0;
    background: transparent;
}

.section-band {
    padding: 82px 0;
}

.section-band--white,
.section-band--catalog {
    background: #fff;
}

.section-band:nth-of-type(even) {
    background: var(--he-soft);
}

.section-grid {
    gap: 0;
    border-top: 1px solid var(--he-line);
    border-bottom: 1px solid var(--he-line);
}

.section-tile,
.section-tile[data-accent="teal"],
.section-tile[data-accent="green"],
.section-tile[data-accent="amber"],
.section-tile[data-accent="red"] {
    min-height: 210px;
    padding: 30px 24px;
    border: 0;
    border-right: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.section-tile:nth-child(4n) {
    border-right: 0;
}

.section-tile:hover,
.section-tile:focus {
    background: #fff;
    box-shadow: none;
    transform: none;
}

.section-tile__badge {
    display: none;
}

.section-tile strong {
    font-size: 28px;
    font-weight: 700;
}

.path-card {
    min-height: auto;
    padding: 0 0 0 22px;
    border: 0;
    border-left: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.path-card::before,
.content-card::before {
    content: none;
    display: none;
}

.path-card__number {
    margin-bottom: 18px;
    color: #cfd8e3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
}

.focus-panel {
    background: #f4faf7;
    border: 1px solid #dbeadf;
    box-shadow: none;
    color: var(--he-ink);
}

.focus-panel h2 {
    color: var(--he-ink);
}

.format-list a {
    padding: 16px 0 16px 18px;
    border: 0;
    border-left: 3px solid var(--he-green);
    background: transparent;
    color: var(--he-ink);
}

.format-list span {
    color: var(--he-muted);
}

.home .section-band--catalog .content-grid,
body.archive .content-grid,
body.search .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 56px;
}

.content-card,
.related-grid .content-card {
    min-height: auto;
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.content-card:hover {
    border-color: var(--he-line);
    box-shadow: none;
    transform: none;
}

.content-card__type {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    letter-spacing: 0.04em;
}

.content-card__fact {
    max-width: none;
    font-weight: 600;
    text-align: left;
    white-space: normal;
}

.content-card h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;
}

.content-card p {
    color: #536173;
    font-size: 16px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
}

.content-card__footer {
    justify-content: flex-start;
    gap: 18px;
    font-weight: 600;
}

.content-card__link {
    border-bottom: 1px solid currentColor;
    color: var(--he-teal);
}

.archive-header,
.entry-header,
.archive-header--red,
.archive-header--green,
.archive-header--amber,
.archive-header--404 {
    background: #fff;
    border-bottom: 0;
}

.archive-header {
    padding: 70px 0 42px;
}

.archive-title {
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 700;
}

.archive-summary {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.archive-summary span {
    font-size: 17px;
}

.archive-summary em {
    font-weight: 500;
}

.archive-filter-band {
    padding: 0 0 34px;
    border-bottom: 0;
    background: #fff;
}

.archive-filters {
    gap: 0 22px;
}

.archive-filters a,
.term-pills a {
    min-height: 34px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
}

.archive-filters a:hover,
.archive-filters a:focus,
.term-pills a:hover,
.term-pills a:focus {
    background: transparent;
}

.entry-title {
    font-size: clamp(44px, 5.5vw, 76px);
    font-weight: 700;
}

.entry-meta-strip span {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-weight: 600;
}

.entry-shell {
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 58px;
    padding-top: 28px;
}

.entry-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.85;
}

.entry-content h2,
.entry-content h3,
.entry-content table {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.sidebar-block {
    padding: 22px 0;
    border: 0;
    border-top: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar-block--accent {
    border-top: 3px solid var(--he-red);
}

.song-context {
    border: 0;
    border-top: 1px solid var(--he-line);
    border-bottom: 1px solid var(--he-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 1040px) {
    .section-tile:nth-child(4n) {
        border-right: 1px solid var(--he-line);
    }

    .section-tile:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 920px) {
    .site-header__inner {
        min-width: 0;
    }

    .primary-nav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .primary-nav ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 18px;
        padding-bottom: 4px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .primary-nav a {
        justify-content: flex-start;
        text-align: left;
        white-space: nowrap;
    }

    .archive-header__inner,
    .entry-shell,
    .split-band {
        grid-template-columns: 1fr;
    }

    .entry-sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
    .primary-nav {
        overflow: visible;
    }

    .primary-nav ul {
        flex-wrap: wrap;
        gap: 8px 16px;
        overflow: visible;
    }

    .primary-nav a {
        min-height: 28px;
        white-space: normal;
    }

    .hero {
        min-height: 560px;
        background-position: 58% center;
    }

    .hero__content {
        padding: 76px 0 52px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-band {
        padding: 54px 0;
    }

    .section-tile,
    .section-tile:nth-child(2n),
    .section-tile:nth-child(4n) {
        min-height: auto;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--he-line);
    }

    .home .section-band--catalog .content-grid,
    body.archive .content-grid,
    body.search .content-grid,
    .related-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .content-card h3 {
        font-size: 24px;
    }

    .archive-title,
    .entry-title {
        font-size: 42px;
    }

    .entry-title {
        font-size: 38px;
    }

    .archive-filters {
        flex-wrap: wrap;
        gap: 8px 14px;
        margin-right: 0;
        overflow: visible;
    }

    .archive-filters a {
        flex: 0 1 auto;
    }

    .entry-content {
        padding: 0;
        font-size: 18px;
    }
}

/* Pleasant UX sprint: learning-first presentation. */
.hero {
    min-height: 600px;
}

.hero p {
    max-width: 760px;
}

.section-band--intent {
    padding-top: 74px;
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.intent-card {
    min-height: 236px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    background: #fff;
    color: var(--he-ink);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.intent-card:hover,
.intent-card:focus {
    border-color: rgba(8, 123, 119, 0.38);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.09);
}

.intent-card strong {
    display: block;
    max-width: 230px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.1;
}

.intent-card span {
    color: var(--he-muted);
    line-height: 1.65;
}

.intent-card em {
    width: fit-content;
    border-bottom: 1px solid currentColor;
    color: var(--he-teal);
    font-style: normal;
    font-weight: 900;
}

.intent-card--amber em {
    color: var(--he-amber);
}

.intent-card--green em {
    color: var(--he-green);
}

.intent-card--red em {
    color: var(--he-red);
}

.section-grid--compact .section-tile {
    min-height: 156px;
}

.path-card__cta,
.section-more a {
    width: fit-content;
    display: inline-flex;
    margin-top: 18px;
    border-bottom: 1px solid currentColor;
    color: var(--he-teal);
    font-weight: 900;
    text-decoration: none;
}

.section-more {
    margin-top: 34px;
}

.content-card h3 {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.22;
}

.content-card__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.content-card__benefits li {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #dde8ee;
    border-radius: 999px;
    background: #f8fbfc;
    color: #485668;
    font-size: 13px;
    font-weight: 700;
}

.content-card__footer {
    margin-top: 4px;
}

.archive-title {
    font-size: clamp(44px, 5.2vw, 68px);
}

.entry-title {
    max-width: 900px;
    font-size: clamp(40px, 4.8vw, 66px);
}

.entry-content {
    font-size: 19px;
}

.song-study-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 30px;
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid #dbeadf;
    border-radius: var(--he-radius);
    background: #f6fbf8;
}

.song-study-panel__kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--he-green);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.song-study-panel h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.15;
}

.song-study-panel p {
    margin: 0;
    color: var(--he-muted);
    line-height: 1.7;
}

.song-study-panel ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
}

.song-study-panel li::marker {
    color: var(--he-green);
    font-weight: 900;
}

.entry-content--song {
    max-width: 680px;
    padding: 26px 0 0;
    border-top: 1px solid var(--he-line);
    font-size: 20px;
    line-height: 1.9;
}

.entry-content--song p {
    margin-bottom: 1.3em;
}

.learning-entry--he_song .entry-title {
    font-size: clamp(48px, 6vw, 82px);
}

.learning-entry--he_song .entry-header p {
    max-width: 760px;
}

@media (max-width: 1040px) {
    .intent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .song-study-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 500px;
    }

    .section-band--intent {
        padding-top: 48px;
    }

    .intent-grid {
        grid-template-columns: 1fr;
    }

    .intent-card {
        min-height: auto;
        padding: 20px;
    }

    .intent-card strong {
        font-size: 24px;
    }

    .section-grid--compact .section-tile {
        min-height: auto;
    }

    .content-card h3 {
        font-size: 21px;
    }

    .content-card__benefits {
        gap: 6px;
    }

    .content-card__benefits li {
        min-height: 26px;
        padding: 0 8px;
        font-size: 12px;
    }

    .archive-title {
        font-size: 38px;
    }

    .entry-title,
    .learning-entry--he_song .entry-title {
        font-size: 34px;
    }

    .song-study-panel {
        padding: 20px;
    }

    .song-study-panel h2 {
        font-size: 24px;
    }

    .entry-content,
    .entry-content--song {
        font-size: 18px;
    }

    .section-band--library .section-heading {
        margin-bottom: 18px;
    }

    .section-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        border: 0;
    }

    .section-grid--compact .section-tile,
    .section-grid--compact .section-tile:nth-child(2n),
    .section-grid--compact .section-tile:nth-child(4n) {
        padding: 14px;
        border: 1px solid var(--he-line);
        border-radius: var(--he-radius);
        background: #fff;
    }

    .section-grid--compact .section-tile strong {
        font-size: 18px;
    }

    .section-grid--compact .section-tile span {
        font-size: 13px;
    }

    .section-grid--compact .section-tile em {
        margin-top: 10px;
        font-size: 12px;
    }
}

/* Single word and song UX templates. */
.entry-anchor-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.entry-anchor-list a {
    width: fit-content;
    border-bottom: 1px solid currentColor;
    color: var(--he-teal);
    font-weight: 850;
    text-decoration: none;
}

.word-entry__title span {
    display: block;
}

.word-entry__title small {
    display: block;
    max-width: 700px;
    margin-top: 12px;
    color: var(--he-muted);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 650;
    line-height: 1.35;
}

.word-answer-panel,
.song-hero-card,
.song-reader {
    margin-bottom: 30px;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    background: #fff;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.07);
}

.word-answer-panel {
    overflow: hidden;
}

.word-answer-panel__top {
    padding: 30px 32px 22px;
    border-bottom: 1px solid var(--he-line);
    background: linear-gradient(135deg, #f3fbfa 0%, #fff 58%, #fff7ed 100%);
}

.word-answer-panel__kicker,
.song-hero-card > div > span,
.song-reader__head span,
.word-practice-panel > div > span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--he-teal);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.word-answer-panel h2,
.song-hero-card h2,
.song-reader__head h2,
.word-practice-panel h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.word-answer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.78fr);
    border-bottom: 1px solid var(--he-line);
}

.word-answer-fact {
    min-height: 170px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 28px 32px;
}

.word-answer-fact + .word-answer-fact {
    border-left: 1px solid var(--he-line);
}

.word-answer-fact span {
    color: var(--he-muted);
    font-size: 14px;
    font-weight: 800;
}

.word-answer-fact strong {
    color: var(--he-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1;
}

.word-answer-fact em {
    color: var(--he-teal);
    font-size: 20px;
    font-style: normal;
    font-weight: 750;
}

.word-answer-fact--translation {
    background: #fff7ed;
}

.word-answer-fact--translation strong {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.16;
}

.word-example-strip {
    padding: 26px 32px;
}

.word-example-strip h3 {
    margin: 0 0 16px;
    font-size: 22px;
}

.word-example-list {
    display: grid;
    gap: 0;
}

.word-example {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 26px;
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid var(--he-line);
}

.word-example:first-child {
    border-top: 0;
    padding-top: 0;
}

.word-example blockquote,
.word-example figcaption {
    margin: 0;
}

.word-example blockquote {
    color: var(--he-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
}

.word-example figcaption {
    color: var(--he-muted);
    line-height: 1.6;
}

.word-answer-actions,
.song-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 22px 32px 30px;
}

.word-answer-actions a,
.song-hero-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid currentColor;
    color: var(--he-teal);
    font-weight: 900;
    text-decoration: none;
}

.word-practice-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
    gap: 34px;
    margin-bottom: 34px;
    padding: 26px 0;
    border-top: 1px solid var(--he-line);
    border-bottom: 1px solid var(--he-line);
}

.word-practice-panel ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 24px;
}

.word-practice-panel li {
    color: #344154;
    line-height: 1.65;
}

.word-practice-panel li::marker {
    color: var(--he-red);
    font-weight: 900;
}

.entry-content--word {
    padding-top: 26px;
    border-top: 1px solid var(--he-line);
}

.entry-content--word h2:first-child,
.entry-content--word p:first-child {
    margin-top: 0;
}

.song-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, max-content);
    gap: 26px;
    align-items: end;
    padding: 32px;
    background: linear-gradient(135deg, #f6fbf8 0%, #fff 56%, #fff7ed 100%);
}

.song-hero-card p {
    max-width: 700px;
    margin: 14px 0 0;
    color: var(--he-muted);
    line-height: 1.7;
}

.song-hero-actions {
    justify-content: flex-end;
    padding: 0;
}

.song-study-panel--reader {
    background: #f7fbfc;
    border-color: #d7e8ee;
}

.song-reader {
    overflow: hidden;
}

.song-reader__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px;
    border-bottom: 1px solid var(--he-line);
    background: #fff;
}

.song-reader__head p {
    max-width: 260px;
    margin: 0;
    color: var(--he-muted);
    line-height: 1.6;
}

.song-reader__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.song-reader__grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.song-reader__column {
    min-width: 0;
    padding: 30px 32px;
}

.song-reader__column + .song-reader__column {
    border-left: 1px solid var(--he-line);
    background: #fbfcf7;
}

.song-reader__column h3 {
    margin: 0 0 22px;
    color: var(--he-muted);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.song-stanza {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--he-line);
}

.song-stanza:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.song-stanza span {
    color: var(--he-green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.song-stanza p {
    margin: 0;
    color: var(--he-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.9;
}

.song-reader__column--translation .song-stanza p {
    color: #4b5667;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.8;
}

.song-phrases {
    margin-top: 34px;
}

.song-phrase-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.song-phrase {
    display: grid;
    gap: 8px;
    padding: 18px 0;
    border-top: 1px solid var(--he-line);
}

.song-phrase strong {
    font-size: 19px;
    line-height: 1.35;
}

.song-phrase span {
    color: var(--he-muted);
    font-size: 14px;
    font-weight: 750;
}

.word-answer-panel,
.word-practice-panel,
.song-hero-card,
.song-study-panel,
.song-reader,
.song-phrases {
    scroll-margin-top: 96px;
}

@media (max-width: 1040px) {
    .word-answer-grid,
    .word-practice-panel,
    .song-hero-card,
    .song-reader__grid,
    .song-phrase-list {
        grid-template-columns: 1fr;
    }

    .word-answer-fact + .word-answer-fact,
    .song-reader__column + .song-reader__column {
        border-left: 0;
        border-top: 1px solid var(--he-line);
    }

    .song-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .word-entry__title small {
        font-size: 17px;
    }

    .word-answer-panel__top,
    .word-answer-fact,
    .word-example-strip,
    .word-answer-actions,
    .song-hero-card,
    .song-reader__head,
    .song-reader__column {
        padding-left: 20px;
        padding-right: 20px;
    }

    .word-answer-panel h2,
    .song-hero-card h2,
    .song-reader__head h2,
    .word-practice-panel h2 {
        font-size: 28px;
    }

    .word-answer-fact {
        min-height: auto;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .word-answer-fact strong {
        font-size: 34px;
    }

    .word-answer-fact--translation strong {
        font-size: 28px;
    }

    .word-example {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 0;
    }

    .word-example blockquote {
        font-size: 18px;
    }

    .word-practice-panel {
        gap: 18px;
    }

    .song-reader__head {
        display: grid;
    }

    .song-reader__head p {
        max-width: none;
    }

    .song-stanza {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
    }

    .song-stanza p {
        font-size: 18px;
        line-height: 1.8;
    }

    .song-reader__column--translation .song-stanza p {
        font-size: 17px;
    }

    .song-phrase strong {
        font-size: 17px;
    }
}

/* Search and 404 recovery routes. */
.recovery-route-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 24px;
}

.recovery-route {
    min-height: 150px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--he-line);
    border-top: 3px solid var(--he-teal);
    border-radius: var(--he-radius);
    background: #fff;
    color: var(--he-ink);
    text-align: left;
    text-decoration: none;
}

.recovery-route--amber {
    border-top-color: var(--he-amber);
}

.recovery-route--green {
    border-top-color: var(--he-green);
}

.recovery-route--red {
    border-top-color: var(--he-red);
}

.recovery-route strong {
    font-size: 20px;
    line-height: 1.15;
}

.recovery-route span {
    color: var(--he-muted);
    font-size: 14px;
    line-height: 1.55;
}

.recovery-route:hover,
.recovery-route:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

@media (max-width: 1040px) {
    .recovery-route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .recovery-route-grid {
        grid-template-columns: 1fr;
    }

    .recovery-route {
        min-height: auto;
        padding: 18px;
    }
}

/* Beauty pass: softer editorial UI for home and inner pages. */
:root {
    --he-ink: #121826;
    --he-muted: #657083;
    --he-line: #e1e7ef;
    --he-soft: #f7f9f6;
    --he-red: #ba3d31;
    --he-teal: #087b75;
    --he-green: #477b52;
    --he-amber: #b97719;
    --he-blue: #285f91;
    --he-shadow: 0 20px 55px rgba(18, 24, 38, 0.1);
    --he-shadow-soft: 0 12px 32px rgba(18, 24, 38, 0.07);
}

body {
    background:
        linear-gradient(180deg, #ffffff 0, #ffffff 280px, var(--he-soft) 280px, var(--he-soft) 100%);
    color: var(--he-ink);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.site-header {
    border-bottom-color: rgba(225, 231, 239, 0.82);
    box-shadow: 0 1px 0 rgba(18, 24, 38, 0.02);
}

.brand {
    letter-spacing: -0.01em;
}

.primary-nav a {
    color: #222b3a;
    font-size: 15px;
    font-weight: 850;
}

.primary-nav a[aria-current="page"],
.primary-nav .current-menu-item > a,
.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--he-teal);
}

.hero {
    min-height: 620px;
    background-image:
        linear-gradient(90deg, rgba(9, 14, 24, 0.76), rgba(9, 14, 24, 0.34) 48%, rgba(9, 14, 24, 0.08)),
        url("assets/images/hero-learning-v2.png");
}

.hero__content {
    padding: 98px 0 74px;
}

.hero__eyebrow,
.archive-kicker,
.entry-type,
.empty-state__kicker {
    letter-spacing: 0.04em;
}

.hero h1 {
    letter-spacing: 0;
    text-shadow: 0 12px 42px rgba(0, 0, 0, 0.32);
}

.hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 21px;
    line-height: 1.65;
}

.search-panel,
.archive-search {
    overflow: hidden;
    border-radius: 8px;
}

.search-panel {
    border-color: rgba(255, 255, 255, 0.72);
}

.hero-links a {
    min-height: 32px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    background: transparent;
}

.section-band {
    padding: 78px 0;
}

.section-band--white,
.section-band--catalog {
    background: #fff;
}

.home .section-band:nth-of-type(3),
.home .section-band:nth-of-type(5) {
    background: #f3f7f4;
}

.section-heading {
    align-items: end;
}

.section-heading h2,
.archive-title,
.entry-title,
.empty-state h2,
.related-materials h2 {
    letter-spacing: 0;
}

.section-heading h2,
.archive-title,
.entry-title {
    color: #151b28;
}

.section-heading h2,
.related-materials h2,
.word-all-examples h2,
.song-phrases h2,
.empty-state h2,
.focus-panel h2 {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.section-heading p,
.archive-header p,
.entry-header p {
    color: var(--he-muted);
    font-size: 18px;
    line-height: 1.75;
}

.intent-card,
.path-card,
.content-card,
.recovery-route,
.empty-state,
.quick-link-grid a {
    border-color: #dde6ef;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(18, 24, 38, 0.045);
}

.intent-card {
    min-height: 250px;
    padding: 26px;
    border-top: 3px solid var(--he-teal);
}

.intent-card--amber {
    border-top-color: var(--he-amber);
}

.intent-card--green {
    border-top-color: var(--he-green);
}

.intent-card--red {
    border-top-color: var(--he-red);
}

.intent-card strong {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.path-card {
    background: transparent;
    box-shadow: none;
}

.path-card__number {
    color: rgba(8, 123, 117, 0.14);
}

.section-grid--compact {
    gap: 14px;
    border: 0;
}

.section-grid--compact .section-tile,
.section-grid--compact .section-tile:nth-child(2n),
.section-grid--compact .section-tile:nth-child(4n) {
    min-height: 142px;
    padding: 22px;
    border: 1px solid #dde6ef;
    border-radius: 8px;
    background: #fff;
}

.section-grid--compact .section-tile:hover,
.section-grid--compact .section-tile:focus {
    border-color: rgba(8, 123, 117, 0.34);
    background: #fbfefd;
}

.topic-list a {
    border-radius: 8px;
    background: #fff;
}

.focus-panel {
    background: #f8fcf7;
}

.content-grid,
.related-grid {
    gap: 34px 48px;
}

.content-card,
.related-grid .content-card {
    min-height: auto;
    padding: 24px 0 28px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.content-card:hover {
    transform: none;
    box-shadow: none;
}

.content-card::before {
    display: none;
}

.content-card__meta {
    margin-bottom: 10px;
}

.content-card h3 {
    max-width: 560px;
    font-size: 27px;
    line-height: 1.13;
}

.content-card p {
    max-width: 600px;
    color: #667085;
    font-size: 16px;
}

.content-card__benefits li {
    border-color: #dce6ea;
    background: #f9fbfb;
}

.content-card__footer {
    margin-top: 14px;
}

body.archive .content-grid,
body.search .content-grid,
.home .section-band--catalog .content-grid,
.related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-header,
.entry-header,
.archive-header--red,
.archive-header--green,
.archive-header--amber,
.archive-header--404 {
    background:
        linear-gradient(135deg, #ffffff 0%, #ffffff 52%, #f7fbf8 100%);
    border-bottom: 1px solid #e8eef5;
}

.archive-header {
    padding: 96px 0 54px;
}

.entry-header {
    padding: 68px 0 48px;
}

.archive-title {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(52px, 6vw, 84px);
    font-weight: 900;
    line-height: 0.98;
}

.entry-title,
.learning-entry--he_song .entry-title {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(42px, 5.4vw, 72px);
    font-weight: 900;
    line-height: 1;
}

.entry-meta-strip {
    color: #5a6678;
}

.entry-shell {
    display: block;
    grid-template-columns: none;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
    padding-top: 44px;
}

.entry-sidebar {
    display: none !important;
}

.sidebar-block {
    color: #253044;
}

.sidebar-block--accent {
    border-top-color: var(--he-teal);
}

.word-answer-panel,
.song-hero-card,
.song-reader {
    border-color: #dbe7ef;
    box-shadow: 0 18px 46px rgba(18, 24, 38, 0.06);
}

.word-answer-panel__top,
.song-hero-card {
    background:
        linear-gradient(135deg, #f5fbfa 0%, #ffffff 56%, #fffaf4 100%);
}

.word-answer-panel h2,
.song-hero-card h2,
.song-reader__head h2,
.word-practice-panel h2 {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-weight: 900;
}

.word-answer-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
}

.word-answer-fact strong {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.word-answer-fact--translation {
    background: #fff9f1;
}

.word-example blockquote {
    font-size: 19px;
}

.word-practice-panel {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    padding: 28px 0;
}

.word-practice-panel h2 {
    font-size: 30px;
    line-height: 1.12;
}

.word-all-examples {
    margin: 34px 0 0;
}

.word-all-example-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--he-line);
}

.word-all-example {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--he-line);
}

.word-all-example > span {
    color: var(--he-teal);
    font-size: 13px;
    font-weight: 900;
}

.word-all-example strong {
    display: block;
    margin-bottom: 6px;
    color: var(--he-ink);
    font-size: 20px;
    line-height: 1.45;
}

.word-all-example p {
    margin: 0;
    color: var(--he-muted);
    line-height: 1.65;
}

.song-reader__head {
    align-items: end;
    background: #fff;
}

.song-reader__column {
    padding-top: 26px;
}

.song-stanza {
    grid-template-columns: 44px minmax(0, 1fr);
}

.song-stanza p {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.8;
}

.song-phrase-list {
    gap: 4px 36px;
}

.song-phrase strong {
    font-size: 18px;
}

.recovery-route-grid {
    gap: 16px;
}

.recovery-route {
    background: #fff;
}

@media (max-width: 1040px) {
    .archive-header__inner,
    .entry-shell,
    .split-band {
        grid-template-columns: 1fr;
    }

    .entry-main,
    .entry-sidebar {
        min-width: 0;
    }

    .entry-sidebar {
        position: static;
    }

    .word-practice-panel,
    .word-answer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        background: var(--he-soft);
    }

    .site-header__inner {
        min-height: 58px;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        min-height: 560px;
    }

    .hero__content {
        padding: 62px 0 46px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero p,
    .section-heading p,
    .archive-header p,
    .entry-header p {
        font-size: 16px;
    }

    .section-band {
        padding: 54px 0;
    }

    .section-heading {
        gap: 12px;
        margin-bottom: 24px;
    }

    .intent-card {
        min-height: auto;
    }

    .path-card {
        padding: 22px 0;
    }

    body.archive .content-grid,
    body.search .content-grid,
    .home .section-band--catalog .content-grid,
    .related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .content-card,
    .related-grid .content-card {
        padding: 22px 0;
    }

    .content-card h3 {
        font-size: 24px;
    }

    .archive-header,
    .entry-header {
        padding: 52px 0 36px;
    }

    .archive-title {
        font-size: 44px;
    }

    .entry-title,
    .learning-entry--he_song .entry-title {
        font-size: 38px;
    }

    .entry-shell {
        padding-top: 28px;
    }

    .word-answer-panel__top,
    .word-answer-fact,
    .word-example-strip,
    .word-answer-actions,
    .song-hero-card,
    .song-reader__head,
    .song-reader__column {
        padding-left: 18px;
        padding-right: 18px;
    }

    .word-answer-fact strong,
    .word-answer-fact--translation strong {
        font-size: 30px;
    }

    .word-practice-panel h2 {
        font-size: 24px;
    }

    .word-all-example {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
    }

    .word-all-example strong {
        font-size: 17px;
    }

    .song-stanza p {
        font-size: 17px;
    }
}

/* UI system pass: controls, filters, pagination and small navigation. */
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(8, 123, 117, 0.24);
    outline-offset: 3px;
}

:where(button, .button-link, .content-card__link, .path-card__cta, .section-more a, .word-answer-actions a, .song-hero-actions a, .entry-anchor-list a) {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.search-panel,
.archive-search,
.sidebar-search {
    border: 1px solid #d9e3ec;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 24, 38, 0.06);
}

.search-panel input,
.archive-search input,
.sidebar-search input {
    min-height: 52px;
    color: var(--he-ink);
    font-size: 16px;
}

.search-panel input::placeholder,
.archive-search input::placeholder,
.sidebar-search input::placeholder {
    color: #8a95a5;
}

.search-panel button,
.archive-search button,
.sidebar-search button,
.button-link {
    min-height: 52px;
    border-radius: 0;
    background: var(--he-red);
    color: #fff;
    font-weight: 900;
}

.search-panel button:hover,
.archive-search button:hover,
.sidebar-search button:hover,
.button-link:hover {
    background: #a9342a;
}

.sidebar-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: 8px;
}

.sidebar-search input {
    width: 100%;
    border: 0;
    padding: 0 14px;
}

.sidebar-search button {
    border: 0;
    padding: 0 16px;
}

.archive-filter-band {
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
    background: rgba(255, 255, 255, 0.78);
}

.archive-filters {
    gap: 10px;
    padding: 18px 0;
}

.archive-filters a,
.term-pills a,
.topic-list a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fff;
    color: #1e2a3a;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.archive-filters a:hover,
.archive-filters a:focus,
.term-pills a:hover,
.term-pills a:focus,
.topic-list a:hover,
.topic-list a:focus {
    border-color: rgba(8, 123, 117, 0.34);
    background: #f4fbfa;
    color: var(--he-teal);
}

.archive-filters a.is-current {
    border-color: #087b75;
    background: #087b75;
    color: #fff;
}

.archive-filters a.is-current em {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.archive-filters em {
    min-width: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #edf4f4;
    color: #526173;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.content-card__benefits li {
    min-height: 30px;
    border-radius: 999px;
    color: #536274;
}

.content-card__link,
.path-card__cta,
.section-more a,
.word-answer-actions a,
.song-hero-actions a,
.entry-anchor-list a {
    color: var(--he-teal);
    font-weight: 900;
    text-decoration: none;
}

.content-card__link:hover,
.content-card__link:focus,
.path-card__cta:hover,
.path-card__cta:focus,
.section-more a:hover,
.section-more a:focus,
.word-answer-actions a:hover,
.word-answer-actions a:focus,
.song-hero-actions a:hover,
.song-hero-actions a:focus,
.entry-anchor-list a:hover,
.entry-anchor-list a:focus {
    color: #065f5a;
}

.pagination-shell {
    margin-top: 54px;
}

.he-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px;
    border: 1px solid #dfe7ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 24, 38, 0.045);
}

.he-pagination__meta {
    display: grid;
    gap: 2px;
    min-width: 132px;
}

.he-pagination__meta span {
    color: var(--he-ink);
    font-size: 14px;
    font-weight: 900;
}

.he-pagination__meta em {
    color: var(--he-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

.he-pagination__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.he-pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fff;
    color: #263246;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.he-pagination a.page-numbers:hover,
.he-pagination a.page-numbers:focus {
    border-color: rgba(8, 123, 117, 0.38);
    background: #f4fbfa;
    color: var(--he-teal);
    transform: translateY(-1px);
}

.he-pagination .page-numbers.current {
    border-color: var(--he-teal);
    background: var(--he-teal);
    color: #fff;
}

.he-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #7b8796;
}

.he-pagination .prev,
.he-pagination .next {
    min-width: 108px;
    gap: 7px;
}

.sidebar-block {
    padding: 24px 0;
}

.sidebar-block strong {
    color: #172033;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.entry-anchor-list a {
    min-height: 32px;
    border-bottom-color: rgba(8, 123, 117, 0.36);
}

.empty-state,
.empty-state--wide {
    border-radius: 10px;
}

.quick-link-grid {
    gap: 14px;
}

.quick-link-grid a {
    min-height: 120px;
    border-radius: 8px;
}

.site-footer {
    background: #101827;
}

.footer-nav a,
.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-nav a:hover,
.footer-nav a:focus,
.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
}

@media (max-width: 920px) {
    .he-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .he-pagination__links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .archive-filter-band {
        overflow: hidden;
    }

    .archive-filters {
        flex-wrap: wrap;
        margin: 0;
        padding: 14px 16px;
        overflow: visible;
    }

    .archive-filters a {
        flex: 0 1 auto;
        max-width: 100%;
        white-space: normal;
    }

    .search-panel,
    .archive-search {
        display: grid;
        grid-template-columns: 1fr;
    }

    .archive-search,
    .sidebar-search {
        border-radius: 8px;
    }

    .search-panel input,
    .archive-search input,
    .search-panel button,
    .archive-search button {
        width: 100%;
    }

    .he-pagination {
        padding: 14px;
    }

    .he-pagination__links {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .he-pagination .page-numbers {
        min-width: 0;
        width: 100%;
        padding: 0 8px;
    }

    .he-pagination .prev,
    .he-pagination .next {
        grid-column: span 2;
        min-width: 0;
    }

    .sidebar-search {
        grid-template-columns: 1fr;
    }

    .sidebar-search button {
        width: 100%;
    }
}

.he-faq,
.he-cta-grid,
.he-ad-slot,
.archive-intro {
    margin: 24px 0;
}

.he-faq {
    scroll-margin-top: 96px;
}

.he-faq details {
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--he-line);
    border-radius: 12px;
    background: #fff;
}

.he-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.he-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.he-cta-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--he-line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.he-ad-slot {
    display: grid;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    overflow: hidden;
    place-content: center;
    text-align: center;
}

.he-ad-slot--top,
.he-ad-slot--bottom {
    min-height: 90px;
    margin: 20px auto;
    max-width: 1100px;
    width: 100%;
}

.front-page .he-ad-slot--top,
.home .he-ad-slot--top,
.front-page .he-ad-slot--bottom,
.home .he-ad-slot--bottom {
    padding: 0 20px;
    box-sizing: border-box;
}

.he-ad-slot--mid {
    min-height: 120px;
    margin: 28px 0;
}

.he-ad-slot--sidebar {
    min-height: 250px;
    margin-top: 20px;
}

.he-ad-slot iframe,
.he-ad-slot > div {
    margin: 0 auto;
    max-width: 100%;
}

.entry-meta-strip a {
    color: #087b75;
    font-weight: 700;
    text-decoration: none;
}

.entry-meta-strip a:hover,
.entry-meta-strip a:focus {
    text-decoration: underline;
}

.he-verb-chips,
.he-article-scheme {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 8px;
}

.he-article-scheme {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.he-verb-chips div,
.he-article-scheme div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 12px;
    background: #fff;
}

.he-verb-chips strong,
.he-article-scheme strong {
    font-size: 18px;
}

.he-verb-chips span,
.he-article-scheme em,
.he-article-scheme p {
    color: var(--he-muted, #5b6b7a);
    font-size: 13px;
    font-style: normal;
    margin: 0;
}

.he-jump-table {
    margin: 8px 0 20px;
    font-weight: 700;
}

.he-jump-table a {
    color: #087b75;
}

@media (max-width: 860px) {
    .he-verb-chips,
    .he-article-scheme {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.archive-intro {
    max-width: 720px;
    color: var(--he-muted);
}

@media (max-width: 720px) {
    .he-cta-grid {
        grid-template-columns: 1fr;
    }

    .he-ad-slot--sidebar {
        display: none;
    }
}

.hub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 24px;
}

.hub-hero-actions__cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: #087b75;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.hub-hero-actions__cta:hover,
.hub-hero-actions__cta:focus {
    background: #06635e;
    color: #fff;
}

.hub-hero-actions__ghost {
    color: #087b75;
    font-weight: 700;
    text-decoration: none;
}

.hub-hero-actions__ghost:hover,
.hub-hero-actions__ghost:focus {
    text-decoration: underline;
}

.hub-path {
    margin-top: 48px;
    padding-top: 8px;
    scroll-margin-top: 96px;
}

.hub-path__kicker {
    margin: 0 0 8px;
    color: #087b75;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hub-path__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.hub-path__item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border: 0;
    border-top: 1px solid var(--he-line, #dde6ef);
    border-radius: 0;
    background: transparent;
    scroll-margin-top: 96px;
}

.hub-path__item:last-child {
    border-bottom: 1px solid var(--he-line, #dde6ef);
}

.hub-path__num {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
    color: #087b75;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.hub-path__num em {
    font-style: normal;
    font-size: 16px;
}

.hub-path__num span {
    color: var(--he-muted, #5b6b7a);
    font-size: 12px;
    font-weight: 600;
}

.hub-path__body h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.25;
}

.hub-path__body h3 a {
    color: inherit;
    text-decoration: none;
}

.hub-path__body h3 a:hover,
.hub-path__body h3 a:focus {
    color: #087b75;
}

.hub-path__body p {
    margin: 0 0 12px;
    color: var(--he-muted, #5b6b7a);
}

.hub-path__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.hub-path__meta span {
    color: var(--he-muted, #5b6b7a);
    font-size: 13px;
}

.hub-path__cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #087b75;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.hub-path__cta:hover,
.hub-path__cta:focus {
    background: #06635e;
}

.hub-next {
    margin-top: 40px;
}

.he-video {
    position: relative;
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 12px;
    background: #101820;
    aspect-ratio: 16 / 9;
}

.he-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.he-series-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0 8px;
    padding: 18px 0 4px;
    border-top: 1px solid var(--he-line, #dde6ef);
}

.he-series-nav--letters {
    margin: 0 0 18px;
    padding: 0 0 4px;
    border-top: 0;
}

.he-letter-index {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.he-letter-index a,
.he-letter-index span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.he-letter-index a:hover,
.he-letter-index a:focus {
    border-color: rgba(8, 123, 117, 0.45);
    background: #fbfefd;
}

.he-letter-index span[aria-current="page"] {
    background: #087b75;
    border-color: #087b75;
    color: #fff;
}

.he-series-nav__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.he-series-nav__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.he-series-nav__link--next {
    text-align: right;
}

.he-series-nav__link span {
    color: var(--he-muted, #5b6b7a);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.he-series-nav__link strong {
    font-size: 16px;
}

.he-series-nav__link:hover,
.he-series-nav__link:focus {
    border-color: rgba(8, 123, 117, 0.4);
    background: #fbfefd;
}

.he-series-nav__link--empty {
    border: 0;
    background: transparent;
}

.glossary-entry .entry-title {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.glossary-entry .entry-header p {
    max-width: 42rem;
}

.glossary-entry .entry-content {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.glossary-entry .he-glossary-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 12px;
    background: #fff;
}

.glossary-entry .he-glossary-table th,
.glossary-entry .he-glossary-table td {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--he-line, #dde6ef);
    text-align: left;
    vertical-align: top;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.glossary-entry .he-glossary-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4faf8;
    color: #5b6b7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.glossary-entry .he-glossary-table td:first-child {
    width: 38%;
    color: var(--he-ink, #202b3a);
    font-size: 16px;
    font-weight: 650;
}

.glossary-entry .he-glossary-table td:last-child {
    color: #3d4d5c;
    font-size: 15px;
    font-weight: 400;
}

.glossary-entry .he-glossary-table--ru-en td:first-child {
    width: 36%;
    color: #3d4d5c;
    font-weight: 500;
}

.glossary-entry .he-glossary-table--ru-en td:last-child {
    color: var(--he-ink, #202b3a);
    font-size: 16px;
    font-weight: 650;
}

.glossary-entry .he-glossary-table--3col td:first-child {
    width: 18%;
    font-weight: 700;
}

.glossary-entry .he-glossary-table--3col td:nth-child(2) {
    width: 44%;
    color: var(--he-ink, #202b3a);
    font-weight: 500;
}

.glossary-entry .he-glossary-table tbody tr:nth-child(even) td {
    background: #fbfefd;
}

.glossary-entry .he-glossary-table tbody tr:hover td {
    background: #f3f8f8;
}

.glossary-entry .he-glossary-table tbody tr:last-child td {
    border-bottom: 0;
}

.entry-content .video:empty {
    display: none;
}

.vocab-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 0;
    overflow: hidden;
    margin: 0 0 28px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 16px;
    background: #fff;
}

.vocab-card__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 28px 32px;
}

.vocab-card__text span {
    color: var(--he-teal, #087b75);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vocab-card__text strong {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
}

.vocab-card__text em {
    color: var(--he-muted, #5b6b7a);
    font-size: 20px;
    font-style: normal;
}

.vocab-card__text p {
    margin: 8px 0 0;
    color: var(--he-ink, #202b3a);
    font-size: 22px;
    font-weight: 650;
}

.vocab-card__image {
    margin: 0;
    background: #f4faf8;
}

.vocab-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vocab-entry .entry-title {
    font-size: clamp(32px, 5vw, 48px);
}

@media (max-width: 700px) {
    .he-series-nav__row {
        grid-template-columns: 1fr;
    }

    .he-series-nav__link--next {
        text-align: left;
    }

    .glossary-entry .he-glossary-table,
    .glossary-entry .he-glossary-table tbody,
    .glossary-entry .he-glossary-table tr,
    .glossary-entry .he-glossary-table th,
    .glossary-entry .he-glossary-table td {
        display: block;
        width: 100%;
    }

    .glossary-entry .he-glossary-table thead {
        display: none;
    }

    .glossary-entry .he-glossary-table tr {
        padding: 12px 14px;
        border-bottom: 1px solid var(--he-line, #dde6ef);
    }

    .glossary-entry .he-glossary-table td {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .glossary-entry .he-glossary-table td:first-child {
        width: auto;
        margin-bottom: 4px;
    }

    .vocab-card {
        grid-template-columns: 1fr;
    }

    .vocab-card__image {
        min-height: 220px;
    }

    .glossary-entry .he-glossary-table tbody tr:nth-child(even) td,
    .glossary-entry .he-glossary-table tbody tr:hover td {
        background: transparent;
    }

    .glossary-entry .he-glossary-table tbody tr:nth-child(even) {
        background: #fbfefd;
    }
}

.hub-next__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hub-next__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.hub-next__card:hover,
.hub-next__card:focus {
    border-color: rgba(8, 123, 117, 0.4);
    background: #fbfefd;
}

.hub-next__card strong {
    font-size: 17px;
}

.hub-next__card span {
    color: var(--he-muted, #5b6b7a);
    font-size: 14px;
}

.word-catalog {
    margin: 0 0 36px;
    scroll-margin-top: 96px;
}

.word-catalog__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.word-catalog__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    scroll-margin-top: 96px;
}

.word-catalog__card:hover,
.word-catalog__card:focus {
    border-color: rgba(8, 123, 117, 0.4);
    background: #fbfefd;
}

.word-catalog__card strong {
    font-size: 18px;
    line-height: 1.3;
}

.word-catalog__card span {
    color: var(--he-muted, #5b6b7a);
    font-size: 14px;
    line-height: 1.45;
}

.word-catalog__card em {
    margin-top: auto;
    color: #087b75;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.hub-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

.hub-toc--hero {
    margin: 20px 0 0;
}

.hub-toc a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 999px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.hub-toc a:hover,
.hub-toc a:focus {
    border-color: rgba(8, 123, 117, 0.4);
    color: #087b75;
}

.entry-shell--hub {
    display: block;
    grid-template-columns: none;
    max-width: none;
    padding-top: 36px;
}

/* Internal pages are single-column: no sticky right sidebar. */
.entry-shell:not(.entry-shell--hub) {
    display: block;
    grid-template-columns: none;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.entry-sidebar {
    display: none !important;
}

.hub-entry .entry-header {
    padding: 56px 0 44px;
}

.hub-entry .entry-header__inner {
    max-width: none;
}

.hub-entry .entry-type {
    margin-bottom: 10px;
}

.hub-entry .entry-title {
    max-width: none;
    margin: 0;
    padding: 0.06em 0 0.08em;
    line-height: 1.22;
    overflow: visible;
}

.hub-entry .entry-header p {
    max-width: none;
    margin-top: 14px;
}

.hub-entry .hub-hero-actions {
    margin-top: 22px;
}

.hub-entry .hub-toc--hero {
    margin-top: 18px;
}

.hub-entry .entry-content {
    max-width: none;
}

.hub-guide {
    margin: 0 0 28px;
    scroll-margin-top: 96px;
}

.hub-guide h2 {
    margin-top: 0;
}

.hub-guide ol {
    margin: 0 0 14px;
    padding-left: 1.35em;
}

.hub-guide ol li {
    margin: 0 0 10px;
    padding-left: 4px;
    line-height: 1.5;
}

.hub-guide__table-wrap {
    overflow-x: auto;
    margin: 0 0 8px;
}

/* Practice tables contain sentences rather than short glossary values. */
.hub-entry #praktika-dalshe .hub-guide__table {
    table-layout: fixed;
}

.hub-entry #praktika-dalshe .hub-guide__table th,
.hub-entry #praktika-dalshe .hub-guide__table td {
    width: auto;
    white-space: normal;
    overflow-wrap: break-word;
}

@media (max-width: 560px) {
    .hub-entry #praktika-dalshe .hub-guide__table th,
    .hub-entry #praktika-dalshe .hub-guide__table td {
        padding: 8px;
        font-size: 14px;
    }
}

.hub-guide__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 15px;
}

.hub-guide__table th,
.hub-guide__table td {
    padding: 12px 14px;
    border: 1px solid var(--he-line, #dde6ef);
    text-align: left;
    vertical-align: top;
}

.hub-guide__table th:first-child,
.hub-guide__table td:first-child {
    width: 24%;
}

.hub-guide__table th:last-child,
.hub-guide__table td:last-child {
    width: 22%;
    white-space: nowrap;
}

.hub-guide__table thead th {
    background: #f5f7fa;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.he-quick-answer {
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid var(--he-line, #dde6ef);
    border-left: 4px solid var(--he-teal, #147c78);
    border-radius: 12px;
    background: #fff;
    scroll-margin-top: 96px;
}

.he-quick-answer h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.hub-catalog {
    margin: 36px 0 8px;
    scroll-margin-top: 96px;
}

.hub-catalog__jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.hub-catalog__jump a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 999px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.hub-catalog__jump a:hover,
.hub-catalog__jump a:focus {
    border-color: rgba(8, 123, 117, 0.4);
    color: #087b75;
}

.hub-catalog__jump span {
    color: #087b75;
    font-weight: 800;
}

.hub-catalog__group {
    margin: 0 0 20px;
    padding: 24px 26px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 16px;
    background: #fff;
    scroll-margin-top: 96px;
}

.hub-catalog__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hub-catalog__head h3 {
    margin: 0;
    font-size: 20px;
}

.hub-catalog__head em {
    color: #087b75;
    font-style: normal;
    font-weight: 800;
}

.hub-catalog__door {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 12px;
    background: #fbfefd;
    text-decoration: none;
    color: inherit;
}

.hub-catalog__door:hover,
.hub-catalog__door:focus {
    border-color: rgba(8, 123, 117, 0.45);
}

.hub-catalog__door strong {
    font-size: 16px;
    line-height: 1.3;
}

.hub-catalog__door span {
    color: var(--he-muted, #5b6b7a);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.hub-catalog__door em {
    color: #087b75;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.hub-catalog__group--fold > summary {
    cursor: pointer;
    list-style: none;
}

.hub-catalog__group--fold > summary::-webkit-details-marker {
    display: none;
}

.hub-catalog__group--fold > summary::before {
    content: "+";
    color: #087b75;
    font-weight: 800;
}

.hub-catalog__group--fold[open] > summary::before {
    content: "–";
}

.hub-catalog__group > p {
    margin: 8px 0 14px;
    color: var(--he-muted, #5b6b7a);
    font-size: 14px;
}

.hub-catalog__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
}

.hub-catalog__list--ordered {
    grid-template-columns: 1fr;
    max-width: none;
}

.hub-catalog__list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1px solid #eef2f6;
}

.hub-catalog__list a {
    display: block;
    width: 100%;
    padding: 11px 0;
    color: inherit;
    text-decoration: none;
}

.hub-catalog__list a:hover,
.hub-catalog__list a:focus {
    color: #087b75;
    border-bottom-color: rgba(8, 123, 117, 0.25);
}

.hub-catalog__badge {
    flex: none;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(8, 123, 117, 0.1);
    color: #087b75;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.archive-letter-index {
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 14px;
    background: #fff;
}

.archive-letter-index p {
    margin: 0 0 12px;
    color: var(--he-muted, #5b6b7a);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.he-letter-index--archive a,
.he-letter-index--archive span {
    min-width: 40px;
    height: 40px;
    font-size: 16px;
}

.archive-letter-hint {
    margin: 0;
    color: var(--he-muted, #5b6b7a);
}

.term-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.term-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #f4fbfa;
    color: #1e2a3a;
    font-size: 13px;
    font-weight: 700;
}

.he-series-nav__index {
    margin: 0 0 12px;
}

.he-series-nav__index a {
    color: #087b75;
    font-weight: 700;
    text-decoration: none;
}

.he-series-nav__index a:hover,
.he-series-nav__index a:focus {
    text-decoration: underline;
}

.extra-episodes {
    margin: 0 0 36px;
    scroll-margin-top: 96px;
}

.extra-episodes__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.extra-episodes__item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--he-line, #dde6ef);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.extra-episodes__item:hover,
.extra-episodes__item:focus {
    border-color: rgba(8, 123, 117, 0.45);
}

.extra-episodes__num {
    color: #087b75;
    font-size: 15px;
    font-weight: 800;
}

.extra-episodes__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.extra-episodes__body strong {
    font-size: 15px;
    line-height: 1.3;
}

.extra-episodes__body span {
    color: var(--he-muted, #5b6b7a);
    font-size: 13px;
    line-height: 1.4;
}

.extra-episodes__item em {
    color: #087b75;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.content-card--index {
    opacity: 0.88;
    border-style: dashed;
}

.content-card--index .content-card__fact {
    background: #f3f0e8;
    color: #6a5d45;
}

.artists-az {
    margin: 0 0 2.5rem;
}

.artists-az__letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
}

.artists-az__letters a {
    display: inline-flex;
    min-width: 2rem;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    border: 1px solid #d7e2e8;
    border-radius: 8px;
    color: #0f3d4c;
    font-weight: 700;
    text-decoration: none;
}

.artists-az__letters a:hover,
.artists-az__letters a:focus {
    border-color: #087b75;
    color: #087b75;
}

.artists-az__group {
    margin: 0 0 1.5rem;
}

.artists-az__group h3 {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
}

.artists-az__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 1rem;
}

.artists-az__list a {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #edf2f5;
}

.artists-az__list a:hover,
.artists-az__list a:focus {
    color: #087b75;
}

.artists-az__list em {
    color: var(--he-muted, #5b6b7a);
    font-style: normal;
    font-size: 12px;
}

.archive-filter-group {
    margin: 0 0 1rem;
}

.archive-filter-group:last-child {
    margin-bottom: 0;
}

.archive-filter-group__label {
    margin: 0 0 0.45rem;
    color: var(--he-muted, #5b6b7a);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.archive-filter-group--archive .archive-filters a {
    opacity: 0.92;
    border-style: dashed;
}

@media (max-width: 860px) {
    .artists-az__list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .artists-az__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hub-guide__table {
        table-layout: auto;
    }

    .hub-guide__table th:first-child,
    .hub-guide__table td:first-child,
    .hub-guide__table th:last-child,
    .hub-guide__table td:last-child {
        width: auto;
        white-space: normal;
    }

    .hub-next__grid {
        grid-template-columns: 1fr;
    }

    .word-catalog__grid {
        grid-template-columns: 1fr;
    }

    .hub-catalog__list {
        grid-template-columns: 1fr;
    }

    .hub-path__item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 0;
        align-items: start;
    }

    .hub-path__cta {
        justify-self: start;
    }

    .hub-path__num {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .extra-episodes__list {
        grid-template-columns: 1fr;
    }
}

.archive-hub-link {
    margin-top: 14px;
}

.archive-hub-link a {
    color: var(--he-red);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.archive-guide {
    padding-top: 0;
}

.archive-guide__inner {
    max-width: 46rem;
}

.archive-guide__inner h2 {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.25;
}

.archive-guide__inner p {
    margin: 0 0 12px;
    color: var(--he-muted, #5b6472);
    line-height: 1.65;
}

.archive-guide__inner p:last-child {
    margin-bottom: 0;
}

/* Brand identity: one vector mark for the header, footer and browser icon. */
.brand {
    gap: 10px;
    flex: 0 0 auto;
}
.brand-symbol {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
}
.brand .brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.brand .brand-text {
    color: var(--he-ink);
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.8px;
}
.brand .brand-text span { color: var(--he-teal); }
.brand .brand-caption {
    color: #657083;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}
.brand--footer .brand-text { color: #fff; }
.brand--footer .brand-text span { color: #85d4c7; }
.brand--footer .brand-caption { color: #c2cbd6; }
.mobile-nav-heading, .mobile-nav-search { display: none; }
.mobile-nav-search .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Mobile disclosure navigation. */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--he-ink);
    border-radius: 1px;
    transition: none;
}

.nav-toggle__bars {
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.site-header.is-nav-open .nav-toggle__bars {
    background: transparent;
}

.site-header.is-nav-open .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.learning-entry:not(.hub-entry) .entry-title {
    font-size: clamp(1.7rem, 1.15rem + 1.8vw, 2.5rem);
    line-height: 1.2;
    font-weight: 800;
}

.hub-entry .entry-title,
.archive-title {
    font-size: clamp(1.85rem, 1.2rem + 2vw, 3rem);
    line-height: 1.18;
}

.entry-breadcrumbs {
    max-width: 52rem;
    line-height: 1.45;
}

.he-ad-slot:empty {
    display: none;
}

@media (max-width: 1040px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header__inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        min-height: 64px;
        padding: 0;
        gap: 12px;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        max-height: var(--nav-available-height, calc(100dvh - 76px));
        overflow: auto;
        overscroll-behavior: contain;
        padding: 16px max(18px, calc((100% - 1180px) / 2)) 20px;
        border-top: 1px solid var(--he-line);
        border-bottom: 1px solid var(--he-line);
        border-radius: 0 0 18px 18px;
        background: #fff;
        box-shadow: 0 20px 30px rgba(18, 24, 38, 0.14);
    }

    .site-header.is-nav-open .primary-nav {
        display: block;
    }

    .primary-nav ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        width: 100%;
        overflow: visible;
        flex-wrap: nowrap;
    }

    .primary-nav a,
    .primary-nav a.is-current,
    .primary-nav a[aria-current="page"] {
        display: flex;
        min-height: 48px;
        padding: 0 12px;
        justify-content: flex-start;
        border-bottom-width: 0;
        border-radius: 8px;
        white-space: normal;
        font-size: 16px;
    }

    .primary-nav a.is-current,
    .primary-nav a[aria-current="page"] {
        color: var(--he-teal);
        background: #edf7f4;
    }
    .mobile-nav-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        color: var(--he-muted);
        font-size: 13px;
    }
    .mobile-nav-heading a { font-size: 14px; min-height: 44px; }
    .mobile-nav-search {
        display: flex;
        gap: 8px;
        margin-top: 14px;
        padding-top: 16px;
        border-top: 1px solid var(--he-line);
    }
    .mobile-nav-search input {
        min-width: 0;
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid #cbd5df;
        border-radius: 8px;
        background: #f7f9f8;
        font: inherit;
        font-size: 16px;
    }
    .mobile-nav-search button {
        min-height: 44px;
        padding: 10px 14px;
        border: 0;
        border-radius: 8px;
        background: var(--he-teal);
        color: #fff;
        font: inherit;
        font-weight: 700;
    }
    .brand-symbol { width: 38px; height: 38px; }
    .brand .brand-text { font-size: 21px; }
    .brand .brand-caption { font-size: 9px; letter-spacing: 1px; }
    .site-header { background: #fff; backdrop-filter: none; }
    .nav-toggle { touch-action: manipulation; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        transition: none;
    }
}

@media (max-width: 640px) {
    .learning-entry:not(.hub-entry) .entry-title {
        font-size: clamp(1.5rem, 5vw, 1.85rem);
    }

    .hub-entry .entry-title,
    .archive-title {
        font-size: clamp(1.65rem, 6vw, 2rem);
    }

    .entry-header,
    .archive-header {
        padding: 28px 0 22px;
    }

    .entry-breadcrumbs {
        font-size: 13px;
    }
}
