@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/redesign/inter-variable.ttf") format("truetype");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/redesign/jetbrains-mono-variable.ttf") format("truetype");
}
:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f5f5f5;
  --surface2: #ebebeb;
  --border: #e0e0e0;
  --border2: #d0d0d0;
  --t1: #0a0a0a;
  --t2: #666;
  --t3: #666;
  --accent: #b5ea37;
  --accent-text: #466400;
  --glow: rgba(181, 234, 55, 0.08);
  --accent-b: rgba(181, 234, 55, 0.3);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --font-ui: "Inter", sans-serif;
  --font-reading: "Inter", sans-serif;
  --font-code: "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 64px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1c1c1c;
  --border: #292929;
  --border2: #383838;
  --t1: #fff;
  --t2: #a0a0a0;
  --t3: #919191;
  --accent: #b5ea37;
  --accent-text: #b5ea37;
  --glow: rgba(181, 234, 55, 0.12);
  --accent-b: rgba(181, 234, 55, 0.3);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-color: var(--border2) var(--bg);
  scrollbar-gutter: stable;
}
html::-webkit-scrollbar {
  width: 14px;
}
html::-webkit-scrollbar-thumb {
  background: var(--border2);
  border: 3px solid var(--bg);
  border-radius: 20px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}
input,
select,
textarea {
  min-width: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  color: inherit;
  background: var(--glow);
}
.sr-only,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 600;
  padding: 12px;
  background: var(--t1);
  color: var(--bg);
  transform: translateY(-150%);
  border-radius: 10px;
}
.skip-link:focus {
  transform: none;
}
.library-shell,
.site-header__inner,
.site-footer__inner,
.site-footer__bottom {
  width: min(1096px, calc(100% - 64px));
  margin-inline: auto;
}
.article-shell {
  width: min(1232px, calc(100% - 64px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(20px);
}
.site-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-lockup {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-lockup__logo {
  display: block;
  width: 52px;
  height: auto;
}
[data-theme="dark"] .brand-lockup__logo {
  filter: invert(1);
}
.brand-lockup__section {
  padding-left: 10px;
  border-left: 1px solid var(--border2);
  font-size: 16px;
  font-weight: 500;
}
.site-nav__links {
  display: flex;
  gap: 2px;
}
.site-nav__links a {
  padding: 7px 13px;
  color: var(--t2);
  font-size: 14px;
  white-space: nowrap;
  border-radius: 10px;
}
.site-nav__links a:hover,
.site-nav__links [aria-current] {
  color: var(--t1);
  background: var(--surface);
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--t2);
  font-size: 14px;
}
.header-search-link kbd {
  font: 11px var(--mono);
  padding: 1px 5px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
}
.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
}
.theme-toggle__moon {
  display: none;
}
[data-theme="dark"] .theme-toggle__sun {
  display: none;
}
[data-theme="dark"] .theme-toggle__moon {
  display: block;
}
.studio-link {
  white-space: nowrap;
  font-size: 14px;
  color: var(--t2);
}
.site-nav__heading,
.site-nav__studio,
.menu-toggle {
  display: none;
}
.library-hero__grid {
  padding-block: 54px 32px;
}
.library-hero--shapes {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: visible;
  contain: inline-size;
  background: var(--bg);
  color: var(--t1);
}
.library-hero--shapes .library-hero__grid {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font: 500 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.library-hero h1 {
  max-width: 700px;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin: 0 0 18px;
  text-wrap: balance;
}
.library-hero__heading > p:last-child {
  max-width: 560px;
  color: var(--t2);
  font-size: 17px;
  margin: 0 0 26px;
  line-height: 1.5;
}
.library-search {
  position: relative;
  max-width: 680px;
}
.library-search__form {
  position: relative;
}
.library-search__control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.library-search__control:focus-within {
  border-color: var(--t1);
  box-shadow: 0 0 0 3px var(--glow);
}
.library-search__icon {
  font-size: 22px;
  color: var(--t3);
}
.library-search input {
  flex: 1;
  width: 0;
  height: 32px;
  background: transparent;
  border: 0;
  font-size: 14.5px;
  padding: 0;
}
.library-search input:focus-visible {
  outline: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--t3);
  opacity: 1;
}
.library-search__control button,
.button,
.subscribe-form__row button {
  flex-shrink: 0;
  background: var(--t1);
  color: var(--bg);
  border-radius: 16px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
}
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--t3);
  font-size: 12px;
}
.quick-filters a {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--t2);
}
.quick-filters a:hover {
  background: var(--surface2);
  color: var(--t1);
}
.search-suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 380px;
  overflow: auto;
  border: 1px solid var(--border2);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 60px #0003;
}
.search-suggestion {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
}
.search-suggestion:hover,
.search-suggestion[aria-selected="true"] {
  background: var(--surface2);
}
.search-suggestion small,
.search-suggestion i {
  color: var(--t3);
  font: 10px var(--mono);
}
.search-suggestion--all {
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--border);
}
.featured-section,
.routes-section,
.start-section,
.series-section,
.activity-section,
.collections-section,
.subscribe-section {
  padding-block: 14px 28px;
}
.section-kicker {
  margin: 0 0 16px;
  color: var(--t2);
  font: 600 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-row,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}
.section-row .section-kicker {
  margin: 0;
}
.section-heading h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}
.section-heading .section-kicker {
  margin-bottom: 6px;
}
.section-note,
.text-link {
  font-size: 13px;
  color: var(--t2);
}
.text-link:hover {
  color: var(--accent-text);
}
.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 40px;
  align-items: center;
  min-height: 320px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(120deg, var(--surface) 62%, var(--glow));
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s;
}
.featured-story:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
}
.featured-story__content {
  min-width: 0;
  display: block;
}
.featured-story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.content-chip,
.article-type span {
  padding: 3px 8px;
  font: 500 10px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--t2);
  background: var(--surface2);
}
.content-chip--accent,
.article-type span:first-child {
  color: var(--accent-text);
  border-color: var(--accent-b);
  background: var(--glow);
}
.featured-story__title {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.featured-story__intro {
  display: block;
  margin-top: 12px;
  color: var(--t2);
  font-size: 14.5px;
  line-height: 1.6;
}
.featured-story__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font: 11px var(--mono);
  color: var(--t3);
}
.featured-story__read {
  padding: 9px 20px;
  background: var(--t1);
  color: var(--bg);
  border-radius: 22px;
  font: 700 14px var(--font-ui);
  white-space: nowrap;
}
.featured-story__facts {
  padding-left: 20px;
  border-left: 1px solid var(--border2);
  display: grid;
  gap: 18px;
}
.featured-story__fact > span {
  display: block;
  margin-bottom: 5px;
  color: var(--t3);
  font: 10px/1.4 var(--mono);
  text-transform: uppercase;
}
.featured-story__fact > strong,
.featured-story__fact > time {
  display: block;
  color: var(--t1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.start-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-block: 1px solid var(--border);
}
.route-card {
  min-width: 0;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.route-card:first-child {
  padding-left: 0;
}
.route-card:last-child {
  border-right: 0;
}
.route-num {
  color: var(--accent-text);
  font: 10px var(--mono);
  margin-bottom: 20px;
}
.route-title {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 8px;
  font-weight: 800;
}
.route-desc {
  color: var(--t2);
  font-size: 13.5px;
  line-height: 1.5;
}
.route-link {
  padding-top: 18px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
}
.route-card:hover .route-link {
  color: var(--accent-text);
}
.category-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
}
.category-index li {
  border-top: 1px solid var(--border);
}
.category-index a {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 17px 2px;
}
.category-index__number {
  grid-row: 1/3;
  color: var(--accent-text);
  font: 11px var(--mono);
}
.category-index__name {
  font-size: 14px;
  font-weight: 700;
}
.category-index__count {
  grid-column: 2;
  grid-row: 2;
  color: var(--t3);
  font: 11px var(--mono);
}
.category-index a > span:last-child {
  grid-column: 3;
  grid-row: 1/3;
  color: var(--t3);
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.series-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  padding: 24px;
  transition: transform 0.2s;
}
.series-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
}
.series-card h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 12px 0;
  font-weight: 800;
}
.series-card p {
  font-size: 13.5px;
  color: var(--t2);
}
.series-card__index {
  color: var(--accent-text);
  font: 11px var(--mono);
}
.series-card div > span {
  color: var(--t3);
  font: 11px var(--mono);
}
.series-visual {
  height: 118px;
  margin: -24px -24px 20px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(
      90deg,
      transparent 49.5%,
      var(--accent-b) 50%,
      transparent 50.5%
    ),
    repeating-linear-gradient(0deg, transparent 0 23px, var(--border) 24px),
    repeating-linear-gradient(90deg, var(--surface2) 0 23px, var(--border) 24px);
  position: relative;
}
.series-visual::after {
  content: "";
  position: absolute;
  inset: 28px 25%;
  border: 1px solid var(--accent);
  border-radius: 10px;
  transform: skew(-15deg);
}
.series-preview {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  border-top: 1px solid var(--border);
}
.series-preview li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.series-card__cover {
  display: block;
  height: 118px;
  margin: -24px -24px 20px;
  overflow: hidden;
}
.series-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.series-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.series-card__heading h3 {
  margin: 0;
}
.series-card__heading .content-chip {
  flex-shrink: 0;
}
.series-card__outcome {
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface2);
  color: var(--t2);
  font-size: 13px;
  margin-block: 16px;
}
.series-preview a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.series-preview a > span:nth-child(2) {
  flex: 1;
  color: var(--t1);
  font-family: var(--font-ui);
  font-size: 13px;
}
.series-preview small {
  color: var(--t3);
  font: 10px var(--mono);
  white-space: nowrap;
}
.series-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.activity-panel {
  min-width: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.activity-panel .section-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.activity-panel .material-row__link {
  min-height: 120px;
  padding: 18px 0;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
}
.activity-panel .material-row + .material-row {
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.activity-panel .material-row:hover {
  border-color: transparent;
  background: var(--surface2);
}
.activity-panel .material-row + .material-row:hover {
  border-top-color: var(--border);
}
.popular-panel .material-row__index {
  color: var(--accent-text);
}
.material-list,
.ranked-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.material-row {
  border: 1px solid transparent;
  border-radius: 16px;
}
.material-row:hover {
  background: var(--surface);
  border-color: var(--border);
}
.material-row__link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.material-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.material-row__index,
.material-row__arrow {
  font: 11px var(--mono);
  color: var(--t3);
}
.material-row__meta,
.material-row__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--t3);
  font: 11px/1.5 var(--mono);
}
.material-row__title {
  font-size: 15px;
  line-height: 1.3;
  margin: 5px 0;
  font-weight: 700;
}
.material-row__intro {
  font-size: 13px;
  color: var(--t2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.material-row__details {
  margin-top: 7px;
  gap: 10px;
}
.material-row__cover {
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 10px;
}
.material-row__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ranked-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ranked-list span {
  color: var(--accent-text);
  font: 11px var(--mono);
}
.ranked-list a {
  font-size: 14px;
  font-weight: 700;
}
.ranked-list small {
  grid-column: 2;
  color: var(--t3);
}
.collection-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.collection-list > a {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.collection-list p {
  grid-column: 2;
  font-size: 13px;
  color: var(--t2);
  margin: 0;
}
.collection-list span {
  color: var(--accent-text);
  font: 11px var(--mono);
}
.subscribe-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.subscribe-panel h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}
.subscribe-panel__heading > p:last-child {
  color: var(--t2);
  font-size: 13px;
}
.subscribe-form__row {
  display: flex;
  gap: 8px;
}
.subscribe-form__row input {
  width: 0;
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg);
}
.consent-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  color: var(--t2);
  margin-top: 12px;
}
.consent-check input {
  accent-color: var(--accent);
  flex-shrink: 0;
}
.consent-check a {
  text-decoration: underline;
}
.form-status {
  font-size: 12px;
  margin: 8px 0;
}
.form-status:empty {
  display: none;
}
.catalog-section {
  padding: 0 0 80px;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 20px 0;
  gap: 16px;
}
.catalog-toolbar h1 {
  font-size: 44px;
  letter-spacing: -0.035em;
  margin: 0;
}
.catalog-toolbar h2 {
  font-size: 20px;
  margin: 0;
}
.result-count {
  color: var(--t3);
  font: 12px var(--mono);
}
.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.catalog-filters {
  position: sticky;
  top: 80px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.filter-group {
  margin-bottom: 16px;
}
.filter-group label {
  display: block;
  font: 11px var(--mono);
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 7px;
}
.filter-group input,
.filter-group select,
.issue-report input,
.issue-report textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  font-size: 13px;
}
.button {
  display: inline-block;
  border: 1px solid transparent;
  text-align: center;
}
.button:hover {
  opacity: 0.85;
}
.button--full {
  width: 100%;
}
.filter-reset {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--t2);
  margin-top: 10px;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.active-filters span,
.active-filters a {
  padding: 4px 11px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 22px;
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-size: 12px;
}
.pagination [aria-disabled] {
  color: var(--t3);
}
.empty-state {
  text-align: center;
  padding: 60px 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.empty-state p {
  color: var(--t2);
}
.empty-state__mark {
  font-size: 28px;
  color: var(--accent-text);
}
.empty-state > div {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 36px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  margin-bottom: 28px;
}
.site-footer__identity strong {
  font-size: 15px;
  font-weight: 800;
}
.site-footer__identity p {
  font-size: 13px;
  color: var(--t2);
  max-width: 300px;
  margin: 5px 0;
}
.site-footer__links,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--t2);
}
.site-footer__contact > span {
  font: 11px var(--mono);
  margin-bottom: 4px;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--t3);
}
.toast {
  position: fixed;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  padding: 12px 20px;
  max-width: calc(100% - 48px);
  border-radius: 16px;
  background: var(--t1);
  color: var(--bg);
  box-shadow: 0 8px 32px #0003;
  font-size: 13px;
}
.flash-messages {
  width: min(1096px, calc(100% - 32px));
  margin: 16px auto;
}
.flash-messages p {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 10px;
}
.flash-messages [data-state="error"] {
  border-color: var(--accent);
}
.utility-panel {
  min-height: 60vh;
  padding: 80px 0;
}
.utility-panel .library-shell {
  max-width: 680px;
}
.utility-panel h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.utility-panel p {
  color: var(--t2);
}
.utility-panel form {
  display: flex;
  gap: 16px;
  align-items: center;
}
.site-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.site-map-grid section {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.site-map-grid h2 {
  font-size: 17px;
  margin-top: 0;
}
.site-map-grid ul {
  list-style: none;
  padding: 0;
}
.site-map-grid li {
  margin: 10px 0;
  font-size: 14px;
  color: var(--t2);
}
.site-map-grid__materials {
  grid-column: 1/-1;
}
.site-map-grid__materials ul {
  columns: 2;
}
/* Reading layout follows the prototype: text on the left, contents on the right. */
.reading-progress {
  position: fixed;
  z-index: 200;
  inset: 0 0 auto;
  height: 3px;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
}
.article-header {
  padding-top: 48px;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--t3);
  font: 12px var(--mono);
  margin-bottom: 24px;
}
.article-heading {
  max-width: 740px;
}
.article-type {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.article-heading h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 0 0 20px;
}
.article-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--t2);
  margin-bottom: 24px;
}
.article-byline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--t3);
  font: 12px/1.6 var(--mono);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.article-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 36px;
}
.article-taxonomy a {
  font: 11px var(--mono);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--t2);
}
.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
  padding-bottom: 60px;
}
.article-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.article-sidebar {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.article-toc {
  grid-column: 1;
  grid-row: 1;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.article-layout > .article-context {
  grid-column: 3;
  grid-row: 1;
}
.article-layout > .article-toc,
.article-layout > .article-context {
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
}
.cycle-card li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 160ms, color 160ms;
}
.cycle-card li a:hover,
.cycle-card li a:focus-visible,
.cycle-card li[aria-current="page"] a {
  background: var(--surface2);
  color: var(--accent-text);
}
.series-card--text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
  border-radius: 20px;
  min-height: 260px;
  transition: transform 180ms ease, border-color 180ms ease;
}
.series-card--text h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.series-card--text p { margin: 0; line-height: 1.65; }
.series-card__body { flex: 1; }
.series-card__eyebrow { font: 11px var(--mono); color: var(--accent-text); text-transform: uppercase; letter-spacing: .06em; }
.series-card__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--border); }
.series-card__bottom .series-card__open { color: var(--t1); font: 600 13px var(--font-ui); }
.series-card--text:hover .series-card__open,
.series-card--text:focus-visible .series-card__open { color: var(--accent-text); }
@media (max-width: 640px) {
  .series-card--text { padding: 24px; min-height: 240px; }
  .series-card--text h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .series-card--text { transition: none; }
  .series-card--text:hover { transform: none; }
}
.carousel-controls { display: flex; gap: 8px; margin-left: auto; }
.carousel-controls[hidden],
[data-carousel-slide][hidden] { display: none; }
.carousel-controls button {
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--t1);
  min-height: 40px;
  padding: 8px 14px;
  cursor: pointer;
}
.carousel-controls button:hover { background: var(--surface2); }
.featured-carousel__viewport {
  display: grid;
  overflow: hidden;
  border-radius: 22px;
}
.featured-carousel__viewport > [data-carousel-slide] {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 450ms ease, transform 450ms ease, visibility 450ms;
}
.featured-carousel__viewport > .is-current {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .featured-carousel__viewport > [data-carousel-slide] { transition: none; transform: none; }
}
.article-toc summary {
  font: 600 11px var(--mono);
  text-transform: uppercase;
  color: var(--t3);
  list-style: none;
}
.article-toc summary span {
  float: right;
}
.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.article-toc a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--t3);
  border-left: 2px solid transparent;
  border-radius: 10px;
  line-height: 1.45;
}
.article-toc .toc-level-3 a {
  padding-left: 20px;
  font-size: 12px;
}
.article-toc a:hover,
.article-toc a.is-active {
  background: var(--surface2);
  color: var(--t1);
}
.article-toc a.is-active {
  border-left-color: var(--accent-text);
}
.article-context {
  font-size: 13px;
}
.cycle-card,
.contact-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.cycle-card h2,
.contact-card h2 {
  font-size: 17px;
}
.cycle-card ol {
  padding: 0;
  list-style: none;
}
.cycle-card li {
  margin: 12px 0;
}
.cycle-card li[aria-current] {
  color: var(--accent-text);
}
.contact-card span {
  display: block;
  color: var(--t2);
  margin-bottom: 16px;
}
.article-content {
  font: 16px/1.7 var(--font-reading);
  overflow-wrap: anywhere;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 48px 0 16px;
  line-height: 1.3;
}
.article-content h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  line-height: 1.35;
}
.article-content p {
  margin: 0 0 20px;
}
.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--t2);
}
.article-content li {
  margin-bottom: 8px;
}
.article-content a {
  color: var(--accent-text);
  text-decoration: underline;
}
.article-content strong {
  color: var(--t1);
}
.article-content blockquote,
.article-content aside {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--t2);
}
.article-content blockquote p:last-child {
  margin-bottom: 0;
}
.article-content cite {
  font-size: 13px;
}
.article-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.article-content code {
  font-family: var(--font-code);
  font-size: 0.875em;
  background: var(--surface2);
  padding: 2px 5px;
  border-radius: 4px;
}
.article-content .code-block {
  position: relative;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.article-content pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  background: var(--surface);
  font-family: var(--font-code);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
}
.article-content pre code {
  font-size: inherit;
  padding: 0;
  background: none;
}
.code-copy {
  padding: 5px 10px;
  color: var(--t2);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  font-size: 12px;
}
.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.code-language {
  font: 600 11px var(--mono);
  color: var(--t2);
  letter-spacing: 0.04em;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-type {
  color: #7037a2;
}
.hljs-string,
.hljs-regexp,
.hljs-addition {
  color: #276936;
}
.hljs-number,
.hljs-literal {
  color: #975010;
}
.hljs-comment,
.hljs-quote {
  color: #626970;
  font-style: italic;
}
.hljs-title,
.hljs-section,
.hljs-selector-id,
.hljs-selector-class {
  color: #225fa0;
}
.hljs-attr,
.hljs-attribute,
.hljs-variable,
.hljs-template-variable {
  color: #8e3b19;
}
.hljs-built_in,
.hljs-symbol,
.hljs-bullet {
  color: #226875;
}
.hljs-meta,
.hljs-deletion {
  color: #a02d37;
}
[data-theme="dark"] .hljs-keyword,
[data-theme="dark"] .hljs-selector-tag,
[data-theme="dark"] .hljs-type {
  color: #c792ea;
}
[data-theme="dark"] .hljs-string,
[data-theme="dark"] .hljs-regexp,
[data-theme="dark"] .hljs-addition {
  color: #a8ce8d;
}
[data-theme="dark"] .hljs-number,
[data-theme="dark"] .hljs-literal {
  color: #eab87b;
}
[data-theme="dark"] .hljs-comment,
[data-theme="dark"] .hljs-quote {
  color: #929daa;
}
[data-theme="dark"] .hljs-title,
[data-theme="dark"] .hljs-section,
[data-theme="dark"] .hljs-selector-id,
[data-theme="dark"] .hljs-selector-class {
  color: #82aaff;
}
[data-theme="dark"] .hljs-attr,
[data-theme="dark"] .hljs-attribute,
[data-theme="dark"] .hljs-variable,
[data-theme="dark"] .hljs-template-variable {
  color: #f4b584;
}
[data-theme="dark"] .hljs-built_in,
[data-theme="dark"] .hljs-symbol,
[data-theme="dark"] .hljs-bullet {
  color: #82d3d1;
}
[data-theme="dark"] .hljs-meta,
[data-theme="dark"] .hljs-deletion {
  color: #f18e98;
}
.code-copy:hover {
  color: var(--t1);
}
.article-content table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-content th,
.article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: var(--surface);
}
.article-cover {
  margin-block: 24px;
}
.article-cover img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 22px;
}
.content-image {
  margin: 32px 0;
}
.content-image img {
  width: 100%;
  border-radius: 16px;
}
.content-image--inline {
  max-width: 420px;
  margin-inline: auto;
}
figcaption {
  font-size: 12px;
  color: var(--t3);
  margin-top: 8px;
}
.content-video {
  margin: 32px 0;
}
.content-video__frame {
  aspect-ratio: 16/9;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
}
.content-video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.content-download {
  display: flex;
  gap: 16px;
  align-items: center;
}
.content-download h3 {
  margin: 0;
  font-size: 16px;
}
.content-download p {
  font-size: 11px;
}
.content-download__icon {
  font-size: 28px;
}
.content-download a {
  margin-left: auto;
  white-space: nowrap;
}
.article-related,
.article-about,
.series-navigation,
.article-feedback,
.share-section,
.service-cta {
  margin-top: 36px;
}
.article-related h2,
.article-about h2,
.article-feedback h2,
.share-section h2,
.service-cta h2 {
  font-size: 18px;
}
.article-related ol {
  list-style: none;
  padding: 0;
}
.article-related li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.article-related li > span {
  font: 11px var(--mono);
  color: var(--accent-text);
}
.article-related small {
  display: block;
  color: var(--t2);
  margin-top: 6px;
}
.article-about,
.service-cta {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.article-about p,
.service-cta p {
  color: var(--t2);
  font-size: 14px;
}
.service-cta > a {
  display: inline-block;
  padding: 10px 16px;
  background: var(--t1);
  color: var(--bg);
  border-radius: 10px;
  margin-top: 12px;
  font-size: 13px;
}
.series-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.series-navigation > a {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.series-navigation > a:hover,
.series-navigation > a:focus-visible { border-color: var(--accent); background: var(--surface2); }
.series-navigation__next { grid-column: 2; text-align: right; }
.series-navigation > a:only-child { grid-column: 1 / -1; text-align: left; }
.series-navigation span {
  display: block;
  color: var(--accent-text);
  font: 11px var(--mono);
  margin-bottom: 0;
}
.series-navigation strong {
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .series-navigation { grid-template-columns: 1fr; }
  .series-navigation__next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .series-navigation > a { transition: none; } }
.series-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}
.series-strip__label {
  color: var(--accent-text);
  font: 10px var(--mono);
}
.article-feedback {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.article-feedback h2 {
  margin: 0;
}
.article-feedback .section-kicker {
  margin-bottom: 6px;
}
.article-feedback > form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-feedback > form button {
  padding: 8px 16px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  font-size: 13px;
}
.article-feedback [aria-pressed="true"] {
  color: var(--accent-text);
  background: var(--glow);
}
.article-feedback [data-form-status] {
  width: 100%;
  font-size: 12px;
}
.issue-report {
  flex-basis: 100%;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
}
.issue-report form {
  margin-top: 16px;
}
.issue-report label {
  display: block;
  margin-bottom: 12px;
}
.issue-report label > span {
  display: block;
  margin-bottom: 6px;
}
.issue-report .consent-check {
  display: flex;
}
.issue-report textarea {
  min-height: 110px;
}
.share-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.share-section > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.share-section a,
.share-section button {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
}
.howto-steps > ol {
  list-style: none;
  padding: 0;
}
.howto-steps li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.howto-steps li > span {
  font: 12px var(--mono);
  color: var(--accent-text);
}
.cookie-banner {
  position: fixed;
  z-index: 300;
  bottom: 20px;
  left: 20px;
  width: min(400px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid var(--border2);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 16px 48px #0003;
}
.cookie-banner__title {
  font-weight: 700;
  margin: 0 0 10px;
}
.cookie-banner__body {
  font-size: 13px;
  color: var(--t2);
}
.cookie-banner__more {
  font-size: 12px;
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cookie-banner__btn {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
}
.cookie-banner__btn--accept {
  background: var(--t1);
  color: var(--bg);
}
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.alpha-nav a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font: 13px var(--mono);
}
.alpha-letter {
  color: var(--accent-text);
  font: 700 13px var(--mono);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-top: 32px;
}
.glossary-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.glossary-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.glossary-item p {
  font-size: 13.5px;
  color: var(--t2);
  margin: 0;
}
.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: end;
  padding-block: 40px 64px;
}
.course-back { display: inline-block; color: var(--t2); font-size: 13px; margin-bottom: 48px; }
.course-back:hover { color: var(--accent-text); }
.course-hero h1 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 850; line-height: 1.08; letter-spacing: -.045em; margin: 0 0 22px; overflow-wrap: anywhere; }
.course-description { color: var(--t2); font-size: 17px; line-height: 1.65; max-width: 580px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 26px 0; color: var(--t2); font: 11px var(--mono); }
.course-start { min-height: 48px; gap: 24px; }
.course-overview { border: 1px solid var(--border); border-radius: 20px; padding: 30px; background: var(--surface); }
.course-overview h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; margin: 18px 0; }
.course-overview > p:not(.section-kicker) { font-size: 14px; line-height: 1.7; color: var(--t2); }
.course-overview__note { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 24px; font-size: 12px; color: var(--t2); }
.course-overview__note > span:first-child { color: var(--accent-text); font-size: 24px; }
.course-program { padding-block: 36px 80px; border-top: 1px solid var(--border); }
.course-program__heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.course-program__heading h2 { font-size: 30px; letter-spacing: -.03em; margin: 10px 0 0; }
.course-progress { padding: 22px 24px; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 28px; }
.course-progress__heading { display: flex; gap: 16px; justify-content: space-between; font-size: 12px; }
.course-progress__heading > span { color: var(--t3); }
.course-progress p { font-size: 11px; color: var(--t2); margin: 10px 0 0; }
.course-progress progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; overflow: hidden; margin-top: 16px; background: var(--border); accent-color: var(--accent); }
.course-progress progress::-webkit-progress-bar { background: var(--border); }
.course-progress progress::-webkit-progress-value { background: var(--accent); }
.course-progress progress::-moz-progress-bar { background: var(--accent); }
.course-lessons { list-style: none; margin: 0; padding: 0; }
.course-lesson { display: flex; align-items: center; border-bottom: 1px solid var(--border); border-radius: 12px; transition: background-color 180ms; }
.course-lesson:hover, .course-lesson:focus-within { background: var(--surface); }
.course-lesson__link { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; padding: 26px 20px; }
.course-lesson__link > div { flex: 1; min-width: 0; }
.course-lesson h3 { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; margin: 0 0 8px; transition: color 180ms; }
.course-lesson:hover h3, .course-lesson:focus-within h3 { color: var(--accent-text); }
.course-lesson p { color: var(--t2); font-size: 13px; line-height: 1.65; margin: 0; max-width: 700px; }
.course-lesson__time { white-space: nowrap; color: var(--t2); font: 11px var(--mono); }
.course-lesson__arrow { font-size: 22px; color: var(--accent-text); }
.course-lesson__check { padding-left: 20px; cursor: pointer; }
.course-lesson__check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.course-lesson.is-complete h3::after { content: ' ✓'; color: var(--accent-text); }
.course-empty { padding: 36px 0; color: var(--t2); }
@media (max-width: 800px) {
  .course-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 28px 36px; }
  .course-back { margin-bottom: 32px; }
  .course-overview { padding: 24px; }
  .course-program__heading { display: block; }
  .course-program__heading .section-note { display: block; margin-top: 14px; }
  .course-lesson__link { flex-wrap: wrap; gap: 8px 16px; padding: 22px 12px; }
  .course-lesson__link > div { flex-basis: 100%; }
  .course-lesson__arrow { margin-left: auto; }
  .course-lesson__check { padding-left: 10px; }
  .course-progress { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .course-lesson, .course-lesson h3 { transition: none; } }
.series-progress {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 24px;
}
.series-progress p {
  color: var(--t3);
  font-size: 12px;
}
.lesson-checklist {
  list-style: none;
  padding: 0;
}
.lesson-checklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.lesson-checklist input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.lesson-checklist a {
  flex: 1;
  min-width: 0;
}
.lesson-checklist small {
  display: block;
  color: var(--t3);
  font: 11px var(--mono);
  margin-top: 6px;
}
.learning-goals {
  margin: 28px 0;
  padding: 20px 0;
  border-block: 1px solid var(--border);
}
.learning-goals h2 {
  font: 600 11px var(--mono);
  color: var(--accent-text);
  text-transform: uppercase;
}
.learning-goals p {
  color: var(--t2);
  white-space: pre-line;
  font-size: 14px;
}
@media (max-width: 1100px) {
  .site-nav__links a {
    padding-inline: 8px;
    font-size: 12px;
  }
  .studio-link {
    display: none;
  }
  .article-layout {
    gap: 28px;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .article-layout > .article-context { grid-column: 2; grid-row: 2; position: static; max-height: none; }
}
@media (max-width: 900px) {
  .site-header__inner {
    gap: 8px;
  }
  .site-actions {
    margin-left: auto;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    order: 4;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }
  .menu-toggle__label {
    display: none;
  }
  .menu-toggle__icon {
    width: 16px;
    height: 11px;
    border-block: 1px solid currentColor;
  }
  .js .site-nav {
    display: none;
  }
  .js .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    height: 100dvh;
    padding: 16px;
    background: var(--bg);
    z-index: 400;
    overflow: auto;
  }
  .site-nav__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 11px var(--mono);
    color: var(--t3);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav__heading button {
    font-size: 26px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface2);
  }
  .site-nav__links {
    display: flex;
    flex-direction: column;
  }
  .site-nav__links a {
    padding: 18px 2px;
    font-size: 20px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .site-nav__studio {
    display: block;
    margin-top: 24px;
    padding: 14px;
    background: var(--t1);
    color: var(--bg);
    border-radius: 10px;
  }
  .menu-is-open {
    overflow: hidden;
  }
  html:not(.js) .site-header__inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }
  html:not(.js) .site-nav {
    order: 5;
    flex-basis: 100%;
  }
  html:not(.js) .site-nav__links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  html:not(.js) .menu-toggle {
    display: none;
  }
  .featured-story {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .featured-story__facts {
    padding: 20px 0 0;
    margin-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--border);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .series-grid,
  .activity-grid,
  .subscribe-panel,
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    position: static;
  }
  .catalog-filters form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .filter-group {
    margin: 0;
  }
  .category-index {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: contents;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .article-main {
    grid-column: 1;
    grid-row: 2;
  }
  .article-toc {
    grid-column: 1;
    grid-row: 1;
    position: static;
    max-height: none;
    margin-bottom: 24px;
    padding: 16px;
  }
  .article-layout > .article-toc,
  .article-layout > .article-context { position: static; max-height: none; }
  .article-layout > .article-context { grid-column: 1; grid-row: 3; }
  .article-context {
    grid-column: 1;
    grid-row: 3;
  }
  .article-heading {
    max-width: none;
  }
  .site-map-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .activity-panel {
    padding: 20px;
  }
  .activity-panel .material-row__link {
    padding: 16px 0;
    min-height: 110px;
    gap: 10px;
  }
  .brand-lockup__logo {
    width: 44px;
  }
  .brand-lockup__section {
    display: none;
  }
  .series-card__heading {
    flex-wrap: wrap;
  }
  .series-card__footer {
    flex-wrap: wrap;
  }
  .series-preview small {
    display: none;
  }
  .library-shell,
  .article-shell,
  .site-header__inner,
  .site-footer__inner,
  .site-footer__bottom {
    width: calc(100% - 32px);
  }
  .header-search-link {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .header-search-link span,
  .header-search-link kbd {
    display: none;
  }
  .header-search-link::before {
    content: "⌕";
    font-size: 24px;
  }
  .site-actions {
    gap: 6px;
  }
  .brand-lockup {
    font-size: 14px;
    gap: 8px;
  }
  .library-hero__grid {
    padding: 34px 0;
  }
  .library-hero h1 {
    font-size: clamp(32px, 10vw, 42px);
    max-width: 100%;
  }
  .library-hero__heading > p:last-child {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .library-search__control {
    gap: 8px;
    padding-left: 14px;
  }
  .library-search input {
    font-size: 13px;
  }
  .library-search__control button {
    padding-inline: 14px;
  }
  .quick-filters > span {
    flex-basis: 100%;
  }
  .featured-story {
    padding: 24px 20px;
    min-height: 0;
  }
  .featured-story__title {
    font-size: 23px;
  }
  .featured-story__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .start-routes {
    grid-template-columns: 1fr;
  }
  .route-card,
  .route-card:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .route-card:last-child {
    border-bottom: 0;
  }
  .route-num {
    margin-bottom: 10px;
  }
  .category-index,
  .collection-list,
  .site-map-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-note {
    display: none;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .material-row__link {
    grid-template-columns: 20px minmax(0, 1fr) 12px;
    gap: 10px;
    padding: 14px 8px;
  }
  .material-row__cover {
    display: none;
  }
  .material-row__title {
    font-size: 15px;
  }
  .catalog-filters {
    padding: 18px;
  }
  .catalog-filters form {
    gap: 12px;
  }
  .filter-group input,
  .filter-group select {
    padding: 9px 8px;
  }
  .catalog-toolbar h1 {
    font-size: 34px;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .empty-state > div {
    flex-direction: column;
  }
  .subscribe-panel {
    padding: 24px;
    gap: 24px;
  }
  .subscribe-form__row {
    flex-wrap: wrap;
  }
  .subscribe-form__row input {
    flex-basis: 100%;
    width: 100%;
  }
  .site-map-grid__materials {
    grid-column: 1;
  }
  .site-map-grid__materials ul {
    columns: 1;
  }
  .utility-panel {
    padding: 48px 0;
  }
  .utility-panel h1 {
    font-size: 34px;
  }
  .utility-panel form {
    flex-wrap: wrap;
  }
  .article-header {
    padding-top: 32px;
  }
  .article-heading h1 {
    font-size: 32px;
  }
  .article-intro {
    font-size: 17px;
  }
  .article-byline {
    font-size: 11px;
    gap: 10px;
  }
  .article-content h2 {
    font-size: 22px;
  }
  .article-content pre {
    font-size: 14px;
  }
  .series-navigation {
    grid-template-columns: 1fr;
  }
  .article-feedback {
    padding: 20px;
  }
  .content-download {
    flex-wrap: wrap;
  }
  .content-download a {
    margin-left: 0;
  }
  .article-content table {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.sections-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.topic-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s;
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
}
.topic-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
}
.topic-card__index {
  font: 12px var(--mono);
  color: var(--accent-text);
  margin-bottom: 28px;
}
.topic-card h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 800;
}
.topic-card p {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.6;
  margin: 0 0 28px;
}
.topic-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--t3);
  font: 11px var(--mono);
}
.topic-card__footer > span:last-child {
  color: var(--accent-text);
  font-size: 18px;
}
@media (max-width: 900px) {
  .sections-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .sections-overview {
    grid-template-columns: 1fr;
  }
  .topic-card > a {
    padding: 24px;
  }
}
.recent-section {
  padding-block: 28px 40px;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.recent-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s;
}
.recent-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
}
.recent-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.recent-card__cover {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.recent-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.recent-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font: 10px/1.5 var(--mono);
  color: var(--t3);
  margin-bottom: 14px;
}
.recent-card__type {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-text);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.recent-card h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
}
.recent-card p {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-card__read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
}
.recent-card__read > span {
  color: var(--accent-text);
}
.global-search:not([open]) {
  display: none;
}
.global-search {
  width: min(680px, calc(100% - 32px));
  max-height: min(75dvh, 720px);
  padding: 0;
  margin: 12vh auto 0;
  background: var(--surface);
  color: var(--t1);
  border: 1px solid var(--border2);
  border-radius: 22px;
  box-shadow: 0 32px 120px #0006;
  overflow: hidden;
}
.global-search::backdrop {
  background: #0009;
  backdrop-filter: blur(8px);
}
.global-search__form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.global-search__icon {
  color: var(--accent-text);
  font-size: 28px;
  line-height: 1;
}
.global-search__form input {
  flex: 1;
  width: 0;
  height: 36px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 18px;
  color: var(--t1);
  outline: 0;
}
.global-search__form:focus-within {
  box-shadow: inset 0 -2px var(--accent);
}
.global-search__close {
  flex-shrink: 0;
  padding: 4px 7px;
  font: 10px var(--mono);
  background: var(--surface2);
  color: var(--t3);
  border: 1px solid var(--border2);
  border-radius: 6px;
}
.global-search__body {
  max-height: calc(75dvh - 160px);
  overflow: auto;
  padding: 12px;
}
.global-search__status {
  margin: 0;
  padding: 10px 12px;
  color: var(--t3);
  font: 11px/1.5 var(--mono);
}
.global-search__result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 3px 0;
}
.global-search__result:hover,
.global-search__result[aria-selected="true"] {
  background: var(--surface2);
  border-color: var(--border2);
}
.global-search__result[aria-selected="true"] {
  box-shadow: inset 2px 0 var(--accent);
}
.global-search__result small {
  font: 10px var(--mono);
  text-transform: uppercase;
  color: var(--accent-text);
}
.global-search__result strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}
.global-search__result > span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--t2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.global-search__result--all {
  font-size: 13px;
  color: var(--t2);
  border-top-color: var(--border);
  margin-top: 10px;
}
.global-search__shortcuts {
  display: grid;
  gap: 4px;
}
.global-search__shortcuts a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 14px 12px;
  border-radius: 10px;
}
.global-search__shortcuts a:hover {
  background: var(--surface2);
}
.global-search__shortcuts a > span:last-child {
  color: var(--t3);
}
.global-search__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--t3);
}
.global-search__footer kbd {
  font: 10px var(--mono);
  padding: 2px 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.search-is-open {
  overflow: hidden;
}
@media (max-width: 900px) {
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .recent-grid {
    grid-template-columns: 1fr;
  }
  .global-search {
    margin-top: 8vh;
  }
  .global-search__form {
    gap: 10px;
    padding: 16px;
  }
  .global-search__form input {
    font-size: 16px;
  }
  .global-search__footer {
    gap: 12px;
    padding: 12px 16px;
  }
  .global-search__body {
    padding: 8px;
  }
  .recent-card__body {
    padding: 20px;
  }
}
@media print {
  .library-index main * {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-header,
  .site-footer,
  .article-toc,
  .article-context,
  .cookie-banner,
  .article-feedback,
  .share-section,
  .reading-progress {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .article-layout {
    display: block;
  }
  .article-shell {
    width: 100%;
  }
  .article-content pre {
    white-space: pre-wrap;
  }
}
