:root:where(html[data-wp-theme="learn-base.ru"]) {
  --wave-surface: var(--c-surface, var(--surface, #fff));
  --wave-line: var(--c-line, var(--line, var(--border, #dfe3e8)));
  --c-surface: var(--surface, #fff);
  --c-line: var(--line, var(--border, #dfe3e8));
  --line: var(--border, #dfe3e8);
  --bg-soft: var(--surface-soft, #f5f7fa);
  --accent: var(--c-accent, #365678);
  --ink-soft: var(--muted, #4e5665);
  --bg: var(--c-bg, #fff);
  --radius: .7rem;
}

/*
Theme Name: dds_learn-base.ru
Author: Ольга Некрасова
Description: Информационная тема для образовательного портала learn-base.ru.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lbase
*/

/* ============================================================
   1. Переменные и сброс
   ============================================================ */
:root:where(html[data-wp-theme="learn-base.ru"]) {
    --c-bg: #f4f6f9;
    --c-surface: #ffffff;
    --c-ink: #1c2733;
    --c-ink-soft: #51606e;
    --c-primary: #1f4e79;
    --c-primary-dark: #163a5a;
    --c-accent: #e07b39;
    --c-accent-dark: #c8652a;
    --c-teal: #2f8f8a;
    --c-line: #dde3ea;
    --c-footer: #16222e;
    --c-footer-ink: #c4d0db;
    --radius: 12px;
    --shell: min(92%, 1180px);
    --shadow: 0 6px 24px rgba(22, 42, 70, 0.08);
}

:where(html[data-wp-theme="learn-base.ru"]) * { box-sizing: border-box; }

html:where(html[data-wp-theme="learn-base.ru"]) { scroll-behavior: smooth; }

:where(html[data-wp-theme="learn-base.ru"]) body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);
    overflow-x: hidden;
}

:where(html[data-wp-theme="learn-base.ru"]) img { max-width: 100%; height: auto; }

:where(html[data-wp-theme="learn-base.ru"]) a { color: var(--c-primary); text-decoration: none; }
:where(html[data-wp-theme="learn-base.ru"]) a:hover { text-decoration: underline; }

:where(html[data-wp-theme="learn-base.ru"]) h1, :where(html[data-wp-theme="learn-base.ru"]) h2, :where(html[data-wp-theme="learn-base.ru"]) h3, :where(html[data-wp-theme="learn-base.ru"]) h4 {
    line-height: 1.25;
    color: var(--c-ink);
    margin: 0 0 0.6em;
    font-weight: 700;
}
:where(html[data-wp-theme="learn-base.ru"]) h1 { font-size: 2rem; }
:where(html[data-wp-theme="learn-base.ru"]) h2 { font-size: 1.55rem; }
:where(html[data-wp-theme="learn-base.ru"]) h3 { font-size: 1.2rem; }

:where(html[data-wp-theme="learn-base.ru"]) p { margin: 0 0 1rem; }

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-shell {
    width: var(--shell);
    margin-inline: auto;
}

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-archive-head { margin-bottom: 1.6rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-archive-head h1 { margin-bottom: 0.4rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-archive-desc { color: var(--c-ink-soft); }

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-skip-link:focus { left: 0; }

/* ============================================================
   2. Шапка
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-logo, :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-logo-svg {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    display: block;
    border-radius: 10px;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-text { min-width: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46vw;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-name:hover { text-decoration: none; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-desc {
    font-size: 0.82rem;
    color: var(--c-ink-soft);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46vw;
}

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-main-nav { flex: 0 1 auto; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-menu-toggle {
    display: none;
    background: var(--c-primary);
    color: #fff;
    border: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-main-nav a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: var(--c-ink);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.96rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-main-nav a:hover {
    background: var(--c-bg);
    color: var(--c-primary);
    text-decoration: none;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-main-nav .wp-learn-base-dot-ru-current-menu-item > a {
    background: var(--c-primary);
    color: #fff;
}

/* ============================================================
   3. Макет страниц
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-main { padding: 2rem 0 3rem; }

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 3%;
    align-items: start;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-layout-single .wp-learn-base-dot-ru-content-area,
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-no-sidebar .wp-learn-base-dot-ru-content-area { }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-layout-single {
    width: var(--shell);
    margin-inline: auto;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-content-area { min-width: 0; }

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-breadcrumbs {
    font-size: 0.86rem;
    color: var(--c-ink-soft);
    margin-bottom: 1.4rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-breadcrumbs a { color: var(--c-primary); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-breadcrumbs .wp-learn-base-dot-ru-sep { margin: 0 0.35rem; color: var(--c-line); }

/* ============================================================
   4. Карточки записей
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.6rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: var(--c-bg);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card:hover .wp-learn-base-dot-ru-card-thumb-wrap img { transform: scale(1.04); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-body {
    flex: 1;
    padding: 1.3rem 1.5rem 1.5rem;
    min-width: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-meta {
    font-size: 0.8rem;
    color: var(--c-ink-soft);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-meta a { color: var(--c-teal); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-title { font-size: 1.3rem; margin: 0 0 0.5rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-title a { color: var(--c-ink); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-title a:hover { color: var(--c-primary); text-decoration: none; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-excerpt { color: var(--c-ink-soft); font-size: 0.97rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-excerpt p { margin: 0 0 0.5em; background: none; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-more {
    display: inline-block;
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--c-accent-dark);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-card-more:hover { text-decoration: underline; }

/* ============================================================
   5. Сайдбар и виджеты
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-sidebar { min-width: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-widget {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-widget-title {
    font-size: 1.1rem;
    margin: 0 0 0.9rem;
    color: var(--c-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--c-line);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-widget ul { list-style: none; margin: 0; padding: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-widget li { padding: 0.4rem 0; border-bottom: 1px solid var(--c-line); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-widget li:last-child { border-bottom: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-widget a { color: var(--c-ink); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-widget a:hover { color: var(--c-primary); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-widget .wp-learn-base-dot-ru-post-date { display: block; font-size: 0.78rem; color: var(--c-ink-soft); }

/* ============================================================
   6. Записи и страницы (single / page)
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-thumb img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    display: block;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-inner { padding: 1.8rem 2rem 2.2rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-title { font-size: 2rem; margin-bottom: 0.6rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-meta {
    font-size: 0.85rem;
    color: var(--c-ink-soft);
    margin-bottom: 1.4rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content { font-size: 1.04rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content p { margin: 0 0 1.1rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content h2 { margin-top: 1.8rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content h3 { margin-top: 1.4rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content img { border-radius: 8px; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content ul, :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content ol { padding-left: 1.4rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content li { margin-bottom: 0.4rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content blockquote {
    margin: 1.4rem 0;
    padding: 1rem 1.4rem;
    background: var(--c-bg);
    border-left: 4px solid var(--c-accent);
    border-radius: 0 8px 8px 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-content blockquote p:last-child { margin-bottom: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-tags { margin-top: 1.6rem; font-size: 0.88rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-tags a {
    display: inline-block;
    background: var(--c-bg);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin: 0 0.3rem 0.3rem 0;
    color: var(--c-teal);
}

:where(html[data-wp-theme="learn-base.ru"]) table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
}
:where(html[data-wp-theme="learn-base.ru"]) table th, :where(html[data-wp-theme="learn-base.ru"]) table td {
    border: 1px solid var(--c-line);
    padding: 0.6rem 0.8rem;
    text-align: left;
}
:where(html[data-wp-theme="learn-base.ru"]) table th { background: var(--c-bg); }

/* ============================================================
   7. Главная
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-front-section { padding: 2.8rem 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-front-section + .wp-learn-base-dot-ru-front-section { border-top: 1px solid var(--c-line); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-section-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-section-head h2 { font-size: 1.8rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-section-head p { color: var(--c-ink-soft); margin: 0; }

/* Блок: текст + иллюстрация */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-split.wp-learn-base-dot-ru-reverse .wp-learn-base-dot-ru-fs-split-media { order: -1; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-split-media img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-split-text h2 { font-size: 1.7rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-split-text p { color: var(--c-ink-soft); }

/* Блок: сетка карточек/иконок */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-feature {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-feature .wp-learn-base-dot-ru-fs-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-bg);
    border-radius: 10px;
    margin-bottom: 0.9rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-feature h3 { margin-bottom: 0.5rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-feature p { color: var(--c-ink-soft); font-size: 0.95rem; margin: 0; }

/* Блок: шаги */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    counter-reset: step;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-step {
    position: relative;
    padding: 1.5rem 1.3rem 1.3rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--c-accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 0.8rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-step p { color: var(--c-ink-soft); font-size: 0.92rem; margin: 0; }

/* Блок: последние записи */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-latest-grid .wp-learn-base-dot-ru-card { margin-bottom: 0; }

/* Блок: CTA */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-cta {
    background: var(--c-primary);
    color: #fff;
    padding: 2.6rem 2.4rem;
    border-radius: var(--radius);
    text-align: center;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-cta h2 { color: #fff; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-cta p { color: #d6e2ef; max-width: 640px; margin: 0 auto 1.4rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-btn {
    display: inline-block;
    background: var(--c-accent);
    color: #fff;
    padding: 0.75rem 1.7rem;
    border-radius: 8px;
    font-weight: 700;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-btn:hover { background: var(--c-accent-dark); text-decoration: none; color: #fff; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-btn-outline {
    background: transparent;
    border: 2px solid #fff;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-btn-outline:hover { background: #fff; color: var(--c-primary); }

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-front-latest-foot { text-align: center; margin-top: 2rem; }

/* ============================================================
   8. Пагинация
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 2rem 0 0.5rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pagination .wp-learn-base-dot-ru-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    background: var(--c-surface);
    color: var(--c-ink);
    font-weight: 600;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pagination a.wp-learn-base-dot-ru-page-numbers:hover {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    text-decoration: none;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pagination .wp-learn-base-dot-ru-page-numbers.wp-learn-base-dot-ru-current {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pagination .wp-learn-base-dot-ru-page-numbers.wp-learn-base-dot-ru-dots {
    border: 0;
    background: transparent;
}

/* ============================================================
   9. Комментарии
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comments-area {
    margin-top: 2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem 2rem 2rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-list { list-style: none; margin: 0; padding: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-list .wp-learn-base-dot-ru-children { list-style: none; margin: 0 0 0 1.5rem; padding: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-item { margin-bottom: 1.2rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-body {
    border: 1px solid var(--c-line);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    background: var(--c-bg);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-meta { font-size: 0.85rem; margin-bottom: 0.5rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-author { font-weight: 700; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-date { color: var(--c-ink-soft); margin-left: 0.6rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-awaiting { color: var(--c-accent-dark); font-size: 0.85rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-reply a { font-size: 0.85rem; font-weight: 600; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-respond {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--c-line);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-form input[type="text"],
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-form input[type="email"],
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-form input[type="url"],
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-top: 0.3rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-form label { font-weight: 600; font-size: 0.9rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-form p { margin-bottom: 0.9rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comment-form .wp-learn-base-dot-ru-submit,
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-form-submit input {
    background: var(--c-primary);
    color: #fff;
    border: 0;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   10. Форма поиска
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-search-form {
    display: flex;
    gap: 0.5rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-search-form .wp-learn-base-dot-ru-search-field {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    font-size: 1rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-search-form .wp-learn-base-dot-ru-search-submit {
    background: var(--c-primary);
    color: #fff;
    border: 0;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================================
   11. 404
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-error-404 {
    text-align: center;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-error-404 .wp-learn-base-dot-ru-code { font-size: 4rem; font-weight: 800; color: var(--c-primary); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-error-404 .wp-learn-base-dot-ru-search-form { max-width: 420px; margin: 1.6rem auto 0; }

/* ============================================================
   12. Подвал
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer {
    background: var(--c-footer);
    color: var(--c-footer-ink);
    padding: 2.8rem 0 1.4rem;
    margin-top: 2rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-widget {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.18);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-widget,
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-widget p,
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-textwidget { color: var(--c-footer-ink); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-widget li { border-bottom-color: rgba(255,255,255,0.1); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-widget a { color: #e6edf3; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-widget a:hover { color: #fff; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-widget .wp-learn-base-dot-ru-post-date { color: #93a4b3; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
    color: #93a4b3;
}

/* ============================================================
   13. Cookie-баннер
   ============================================================ */
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-cookie-banner[hidden] { display: none !important; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: rgba(22, 34, 46, 0.97);
    color: #e6edf3;
    padding: 1rem 1.2rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-cookie-inner {
    width: var(--shell);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-cookie-inner p { margin: 0; font-size: 0.9rem; flex: 1 1 320px; min-width: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-cookie-inner a { color: #f0b787; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-cookie-accept {
    background: var(--c-accent);
    color: #fff;
    border: 0;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-cookie-accept:hover { background: var(--c-accent-dark); }

/* ============================================================
   14. Адаптив
   ============================================================ */
@media (max-width: 960px) {
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-sidebar { margin-top: 1.5rem; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    :where(html[data-wp-theme="learn-base.ru"]) body { font-size: 16px; }
    :where(html[data-wp-theme="learn-base.ru"]) h1 { font-size: 1.6rem; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-header-inner { gap: 0.8rem; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-name, :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-desc { max-width: 60vw; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-menu-toggle { display: block; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-main-nav { flex-basis: 100%; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-main-nav ul {
        display: none;
        flex-direction: column;
        margin-top: 0.6rem;
    }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-main-nav.wp-learn-base-dot-ru-is-open ul { display: flex; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-split { grid-template-columns: minmax(0, 1fr); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-split.wp-learn-base-dot-ru-reverse .wp-learn-base-dot-ru-fs-split-media { order: 0; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-grid { grid-template-columns: minmax(0, 1fr); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-steps { grid-template-columns: minmax(0, 1fr); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-latest-grid { grid-template-columns: minmax(0, 1fr); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-footer-cols { grid-template-columns: minmax(0, 1fr); }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-entry-inner { padding: 1.3rem 1.2rem 1.6rem; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-comments-area { padding: 1.2rem; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-fs-cta { padding: 1.9rem 1.4rem; }
    :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-front-section { padding: 2rem 0; }
}

:where(html[data-wp-theme="learn-base.ru"]) body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-main { flex: 1; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-page .wp-learn-base-dot-ru-site-main .wp-learn-base-dot-ru-layout-single .wp-learn-base-dot-ru-content-area { width: 100%; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-main > .wp-learn-base-dot-ru-shell { min-width: 0; }
[data-wp-theme="build-guide.ru"]:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-brand-name { display: block; }

/* The Emotion Logic front page has a separate wrapper in WordPress. */
[data-wp-theme="emotion-logic.ru"]:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-main > .wp-learn-base-dot-ru-front-wrap { width: var(--shell); }
[data-wp-theme="emotion-logic.ru"]:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-front-latest { padding-inline: clamp(1rem, 2vw, 1.75rem); }

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-page :is(.wp-learn-base-dot-ru-breadcrumbs, .wp-learn-base-dot-ru-crumbs) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .45rem;
  margin-block-end: .75rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-crumb-step { display: inline-flex; align-items: baseline; gap: .35rem; min-width: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-crumb-step .wp-learn-base-dot-ru-sep { margin-inline: 0; }

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-rubrics ul {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-rubrics a { display: inline-block; padding-block: .2rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-rubrics a[aria-current] { text-decoration: underline; text-underline-offset: .2em; }

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry-content { overflow-wrap: break-word; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-page .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry-content { max-inline-size: 74ch; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry-thumb img { height: auto; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry-content pre { max-inline-size: 100%; overflow-x: auto; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry-content > section + section { margin-block-start: 1.75rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-lead { font-size: 1.12em; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-project-story { max-inline-size: 74ch; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-project-links {
  margin-block-start: 1.75rem;
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border: 1px solid var(--c-line, var(--line));
  border-radius: var(--radius);
  background: var(--c-surface, var(--bg-soft, var(--bg)));
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-project-links h2 { margin-block-start: 0; font-size: 1.3rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-project-links li + li { margin-block-start: .4rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-project-links > :last-child { margin-block-end: 0; }

@media (min-width: 900px) {
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-page .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry-content.wp-learn-base-dot-ru-pilot-project {
    max-inline-size: none;
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5.5vw, 5rem);
  }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-project-links { margin-block-start: 0; }
}

/* Keep the source article panel. Service pages join the same reading axis as archives. */
[data-wp-theme="build-guide.ru"]:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-page .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* The WordPress widget areas have no confirmed content for this pilot. */
:where(html[data-wp-theme="learn-base.ru"]) body .wp-learn-base-dot-ru-site-footer { padding-block: 1.35rem 0; }
:where(html[data-wp-theme="learn-base.ru"]) body .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-footer-cols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 2rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-pilot-footer-brand > a { font-size: 1.08rem; font-weight: 700; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-pilot-footer-brand > p { margin: .25rem 0 0; font-size: .85rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-pilot-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-pilot-footer-nav li { padding: 0; border: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-footer-cols a { color: inherit; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-pilot-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-footer-cols a:is(:hover, [aria-current]) { text-decoration: underline; text-underline-offset: .2em; }
:where(html[data-wp-theme="learn-base.ru"]) body .wp-learn-base-dot-ru-site-footer :is(.wp-learn-base-dot-ru-site-info, .wp-learn-base-dot-ru-footer-bottom) {
  margin-top: .85rem;
  padding-block: .75rem .9rem;
  text-align: start;
}

@media (max-width: 680px) {
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry-content table { display: block; max-inline-size: 100%; overflow-x: auto; }
  :where(html[data-wp-theme="learn-base.ru"]) body .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-footer-cols { display: grid; gap: .1rem; }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-site-footer .wp-learn-base-dot-ru-pilot-footer-nav ul { display: grid; grid-template-columns: repeat(2, max-content); }
  :where(html[data-wp-theme="learn-base.ru"]) body .wp-learn-base-dot-ru-site-footer :is(.wp-learn-base-dot-ru-site-info, .wp-learn-base-dot-ru-footer-bottom) { margin-top: .35rem; }
}

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-route {
  margin-block-start: 2.6rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem 1rem; margin-block-end: 1rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-title h2 { margin: 0; font-size: 1.4rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-title a { font-size: .9rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-route ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-route li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--bg);
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-route .wp-learn-base-dot-ru-learning-current { border-color: var(--accent); box-shadow: inset 0 .18rem var(--accent); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-step { font-size: .8rem; color: var(--ink-soft); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-label { font-size: .94rem; font-weight: 700; line-height: 1.4; }
@media (max-width: 680px) {
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-learning-route ol { grid-template-columns: 1fr; }
}


:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave main { flex: 1; min-width: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer { margin-block-start: 0; padding-block: 1.25rem .85rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-wave-footer-shell { display: block; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-pilot-native-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
  margin: 0;
  padding: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-footer-brand > a { font-weight: 700; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-footer-brand p { margin-block: .16rem 0; line-height: 1.45; font-size: .88rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-pilot-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-pilot-footer-nav li { margin: 0; padding: 0; border: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-pilot-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-pilot-footer-nav a[aria-current] { text-decoration: underline; text-underline-offset: .2em; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-footer-note {
  border-block-start: 1px solid color-mix(in srgb, currentColor 23%, transparent);
  padding-block-start: .65rem;
  margin-block-start: .65rem;
  opacity: .82;
  font-size: .85rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer a { color: inherit; }
@media (max-width: 600px) {
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-pilot-native-footer { display: grid; justify-content: stretch; gap: .25rem; }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-pilot-footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-footer-note { margin-block-start: .45rem; padding-block-start: .5rem; }
}

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave.wp-learn-base-dot-ru-wave-feed main { padding-block: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-feed-frame { padding-block: clamp(1.15rem, 2.5vw, 2.25rem) clamp(2.4rem, 4vw, 3.5rem); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-feed-frame :is(.wp-learn-base-dot-ru-shell, .wp-learn-base-dot-ru-layout-single, .wp-learn-base-dot-ru-content-area) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-feed-frame .wp-learn-base-dot-ru-main-area { padding: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-feed-frame .wp-learn-base-dot-ru-layout-single { max-inline-size: none; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-feed-frame h1 { margin-block-start: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-feed-frame :is(.wp-learn-base-dot-ru-entry-header, .wp-learn-base-dot-ru-page-header, .wp-learn-base-dot-ru-page-head, .wp-learn-base-dot-ru-section-head, .wp-learn-base-dot-ru-archive-head) {
  margin-block-end: .85rem;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-feed-frame [data-wave-archive-intro],
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-category-intro { max-inline-size: 72ch; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave.wp-learn-base-dot-ru-wave-category [data-wave-archive-intro] { display: none; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave main nav[aria-label="Хлебные крошки"] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .55rem;
  row-gap: .12rem;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave main .wp-learn-base-dot-ru-crumb-step .wp-learn-base-dot-ru-sep { margin: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-rubrics ul { gap: .45rem .55rem; margin-block: 1rem 1.35rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-rubrics a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.25rem;
  padding: .26rem .78rem;
  border: 1px solid var(--wave-line);
  border-radius: 30px;
  text-decoration: none;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-rubrics a:is(:hover, :focus-visible) { text-decoration: underline; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-rubrics a[aria-current] {
  color: var(--color-primary, var(--c-accent, var(--accent)));
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
  font-weight: 650;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-wave-feed-list] { min-inline-size: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-wave-feed-frame [data-wave-feed-grid]:has(> [data-wave-card]:only-child) {
  grid-template-columns: minmax(0, min(100%, 35rem));
}
@media (min-width: 720px) {
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-wave-feed-grid]:has(> [data-wave-card]:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-wave-menu-toggle] { display: none; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave #wave-primary-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-text-card] { display: block; text-decoration: none; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-text-card] [class$="-card-body"] { grid-column: 1 / -1; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-text-card] :is(h2, h3) { margin-block: .2rem .55rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-native-entry] { min-width: 0; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-native-entry] img { max-width: 100%; height: auto; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-native-entry] pre { overflow-x: auto; max-width: 100%; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-native-entry] h2 { scroll-margin-top: 1.2rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave-category-intro { margin-block-end: .75rem; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave-outline .wp-learn-base-dot-ru-content-area { width: 100%; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-guide-aside-inner { background: var(--wave-surface); border-color: var(--wave-line); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-journal-related-grid article:not(:has(img)) { padding-block-start: .55rem; background: var(--wave-surface); }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-journal-related-grid > article:only-child { grid-column: 1 / -1; }
:where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-pilot-page .wp-learn-base-dot-ru-entry { overflow-wrap: break-word; }
@media (min-width: 681px) {
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-learning-route ol:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-journal-related-grid > article:only-child:has(img) {
    display: grid;
    grid-template-columns: minmax(12rem, 38%) 1fr;
    column-gap: 1.2rem;
    align-items: start;
  }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-journal-related-grid > article:only-child:has(img) > a { display: contents; }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-journal-related-grid > article:only-child:has(img) > a:focus-visible h3 { outline: 2px solid currentColor; outline-offset: .2rem; }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-journal-related-grid > article:only-child:has(img) img {
    grid-row: 1 / 3;
    height: 100%;
  }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave .wp-learn-base-dot-ru-journal-related-grid > article:only-child:has(img) :is(h3, p) { margin-inline: 0 1rem; }
}
@media (min-width: 1000px) {
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave.wp-learn-base-dot-ru-wave-outline .wp-learn-base-dot-ru-content-area:has(> [data-native-entry]) {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 24%);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: start;
  }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave.wp-learn-base-dot-ru-wave-outline .wp-learn-base-dot-ru-content-area > nav { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave header:has([data-wave-menu-toggle]) > .wp-learn-base-dot-ru-shell {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: .6rem;
    position: relative;
  }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave header:has([data-wave-menu-toggle]) > .wp-learn-base-dot-ru-shell > :is(.wp-learn-base-dot-ru-brand, .wp-learn-base-dot-ru-site-brand, .wp-learn-base-dot-ru-brand-link) { min-inline-size: 0; }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-wave-menu-toggle] { display: inline-flex; align-items: center; white-space: nowrap; flex: none; margin-inline-start: auto; }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-wave-menu-host]:has([data-wave-menu-toggle]) {
    display: block;
    position: static;
    flex: none;
    width: auto;
    margin-inline-start: auto;
  }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave [data-wave-menu-host]:not(:has([data-wave-menu-toggle])) { display: contents; }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave #wave-primary-menu:not([data-open]) { display: none; }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave #wave-primary-menu[data-open] {
    display: grid;
    position: absolute;
    z-index: 15;
    inset-inline: 0;
    top: calc(100% + .2rem);
    align-content: start;
    padding: .8rem 1rem;
    gap: .6rem;
    margin: 0;
    width: auto;
    list-style: none;
    background: var(--wave-surface);
    border: 1px solid var(--wave-line);
    border-radius: var(--radius);
    color: var(--ink, #16263b);
  }
  :where(html[data-wp-theme="learn-base.ru"]) .wp-learn-base-dot-ru-wave #wave-primary-menu[data-open] a { display: block; padding: .35rem; color: inherit; }
}

/* Corrections for individual native layouts. */
html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="room-upgrade.ru"] .wp-learn-base-dot-ru-home > main > .wp-learn-base-dot-ru-layout-single > .wp-learn-base-dot-ru-content-area,
html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="study-map.ru"] .wp-learn-base-dot-ru-home > main > .wp-learn-base-dot-ru-front-area,
html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="znaniya-online.ru"] .wp-learn-base-dot-ru-home > main > :is(.wp-learn-base-dot-ru-hero, .wp-learn-base-dot-ru-home-section) {
  width: min(92%, 1180px);
  margin-inline: auto;
}

html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="interior-route.ru"] body.wp-learn-base-dot-ru-home { padding-block-end: 0; }
html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="learn-daily.ru"] .wp-learn-base-dot-ru-pilot-site-footer .wp-learn-base-dot-ru-current-menu-item > a { background: transparent; }

html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="interior-route.ru"] .wp-learn-base-dot-ru-slide-caption h1 {
  color: inherit;
  font-size: 2rem;
  margin-block: 0 .4rem;
}

@media (max-width: 960px) {
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="interior-route.ru"] .wp-learn-base-dot-ru-brand-logo { width: 160px; height: auto; }
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="interior-route.ru"] .wp-learn-base-dot-ru-brand-text { display: none; }
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="mind-trend.ru"] .wp-learn-base-dot-ru-header-inner { flex: 1; }
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="mind-trend.ru"] .wp-learn-base-dot-ru-menu-toggle { flex-direction: column; margin-inline-start: auto; }
}
@media (max-width: 700px) {
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="interior-route.ru"] .wp-learn-base-dot-ru-slide-caption {
    position: static;
    background: #2c261e;
    padding-block-end: 2.4rem;
  }
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="interior-route.ru"] .wp-learn-base-dot-ru-slide-caption h1 { font-size: 1.25rem; }
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="interior-route.ru"] .wp-learn-base-dot-ru-slider-arrow { top: .8rem; transform: none; }
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="interior-route.ru"] .wp-learn-base-dot-ru-slider-dots { bottom: .8rem; }
}

@media (min-width: 1000px) {
  html:where(html[data-wp-theme="learn-base.ru"]):is([data-wp-theme="edu-direction.ru"], [data-wp-theme="interior-route.ru"],
    [data-wp-theme="learn-base.ru"], [data-wp-theme="online-skill-base.ru"],
    [data-wp-theme="study-map.ru"]) .wp-learn-base-dot-ru-wave-feed [data-wave-feed-list] [data-wave-card] img, html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="edu-direction.ru"] .wp-learn-base-dot-ru-home [data-wave-feed-list] [data-wave-card] img {
    max-block-size: 22rem;
    object-fit: cover;
  }
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="edu-direction.ru"] .wp-learn-base-dot-ru-wave [data-wave-card] img { object-position: center 30%; }
  html:where(html[data-wp-theme="learn-base.ru"])[data-wp-theme="study-map.ru"] .wp-learn-base-dot-ru-wave-feed .wp-learn-base-dot-ru-card:not(.wp-learn-base-dot-ru-card-row) .wp-learn-base-dot-ru-card-thumb-wrap {
    max-block-size: 22rem;
  }
}
