@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --panel: #f3f6f7;
  --text: #1f2a2e;
  --muted: #5f6e73;
  --line: #e1e8ea;
  --accent: #05dbd0;
  --accent-dark: #0b7d86;
  --accent-deep: #07555c;
  --accent-soft: #e0f4f7;
  --accent-softer: #f0f9fb;
  --on-accent: #06343a;
  --dark: #0f3a42;
  --sky: #a6d5e0;
  --violet: #7e6fc6;
  --violet-soft: #e6e2f6;
  --max: 1320px;
  --radius: 28px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 0 1 auto;
  margin-right: auto;
}
.brand-logo {
  display: block;
  width: 178px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}
.brand-logo-dark {
  display: none;
}
[data-theme="dark"] .brand-logo-light {
  display: none;
}
[data-theme="dark"] .brand-logo-dark {
  display: block;
}
.icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-arrow-left {
  --icon: url("assets/arrow-left.svg");
}
.icon-arrow-right {
  --icon: url("assets/arrow-right.svg");
}
.icon-arrow-up-right {
  --icon: url("assets/arrow-up-right.svg");
}
.brand-separator {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.brand-wiki {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  flex-shrink: 0;
}
.desktop-nav a,
.search-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.desktop-nav a:hover,
.search-open:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.search-open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}
.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}
.theme-icon-dark {
  fill: currentColor;
  stroke: none;
}
.theme-toggle[data-theme-choice="system"] .theme-icon-system,
.theme-toggle[data-theme-choice="light"] .theme-icon-light,
.theme-toggle[data-theme-choice="dark"] .theme-icon-dark {
  display: block;
}
kbd {
  padding: 3px 6px;
  margin-left: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.menu-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.menu-button span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.mobile-menu {
  display: none;
}
#app {
  min-height: calc(100vh - 200px);
  outline: none;
}
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 32px 48px;
}
.eyebrow {
  display: inline-flex;
  padding: 8px 11px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-softer);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.hero h1 {
  max-width: 1040px;
  margin: 28px 0 22px;
  font-size: clamp(54px, 8vw, 126px);
  line-height: 0.91;
  letter-spacing: -0.065em;
  font-weight: 800;
}
.hero h1::selection,
.page-top h1::selection,
.article-head h1::selection {
  background: var(--accent);
  color: #04313a;
}
.hero-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
}
.home-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.section-card {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 30px;
  border-radius: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 95, 97, 0.13);
}
.section-card.life {
  background: var(--accent);
  color: var(--on-accent);
}
.section-card.study {
  background: var(--dark);
  color: #fff;
}
[data-theme="dark"] .section-card.study {
  background: #1c1c1c;
  border: 1px solid var(--line);
}
.card-index {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.section-card h2 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.section-card p {
  max-width: 480px;
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.45;
  opacity: 0.82;
}
.card-arrow {
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.card-arrow .icon {
  width: 26px;
  height: 26px;
}
.life .card-arrow {
  background: var(--dark);
  color: #fff;
}
.latest {
  max-width: var(--max);
  margin: 0 auto;
  padding: 68px 32px 90px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.04em;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
}
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.article-tile {
  min-height: 230px;
  padding: 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.18s ease;
}
.article-tile:hover {
  background: var(--accent-softer);
}
.tile-meta {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}
.article-tile h3 {
  margin: 22px 0 8px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.article-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 32px 100px;
}
.page-top {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: end;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
}
.page-top h1 {
  margin: 14px 0 0;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.page-description {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}
.page-description code {
  color: var(--accent-deep);
}
.content-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 54px;
  padding-top: 38px;
}
.sidebar {
  position: sticky;
  top: 116px;
  align-self: start;
}
.sidebar-title {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sidebar a,
.day-button {
  width: 100%;
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  line-height: 1.45;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}
.sidebar a:hover,
.day-button:hover {
  color: var(--accent-dark);
  background: var(--accent-softer);
}
.sidebar .active,
.day-button.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.day-button.active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin-right: 8px;
}
.entries {
  display: grid;
  gap: 0;
}
.entry-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 22px;
  gap: 20px;
  align-items: center;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.entry-row:hover,
.entry-row:focus-visible {
  background: var(--accent-softer);
}
.entry-row:hover h3 {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}
.entry-row .date {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.entry-row h3 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}
.entry-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.entry-arrow {
  color: var(--accent-dark);
}
.entry-arrow .icon {
  width: 22px;
  height: 22px;
}
.article-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 100px;
}
.article-head {
  max-width: 900px;
  margin: 0 auto 46px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--accent-dark);
  font-weight: 700;
}
.back-link .icon {
  width: 18px;
  height: 18px;
}
.back-link:hover {
  color: var(--accent-deep);
}
.article-kicker {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-head h1 {
  margin: 14px 0 18px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.article-head .summary {
  max-width: 760px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}
.markdown {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.68;
}
.markdown .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
}
.markdown h2 {
  margin: 2.3em 0 0.7em;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.markdown h3 {
  margin: 2em 0 0.6em;
  font-size: 27px;
}
.markdown p {
  margin: 1em 0;
}
.markdown a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.markdown a[href*="challes-interactive-2026-10-27.html"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--accent-dark);
  border-radius: 10px;
  background: var(--accent-softer);
  color: var(--accent-deep);
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.markdown a[href*="challes-interactive-2026-10-27.html"]:hover,
.markdown a[href*="challes-interactive-2026-10-27.html"]:focus-visible {
  background: var(--accent-soft);
}
.markdown ul,
.markdown ol {
  margin: 1.2em 0;
  padding-left: 1.5em;
}
.markdown ul {
  list-style-type: disc;
}
.markdown ol {
  list-style-type: decimal;
}
.markdown li {
  margin: 0.45em 0;
  padding-left: 0.25em;
  line-height: 1.6;
}
.markdown li::marker {
  color: var(--accent-dark);
}
.markdown li > ul,
.markdown li > ol {
  margin: 0.5em 0;
}
.markdown blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-softer);
}
.markdown code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
.markdown pre {
  overflow: auto;
  padding: 22px;
  background: var(--dark);
  color: #effafa;
  border-radius: 16px;
}
.markdown pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.markdown img {
  max-width: 100%;
  border-radius: 16px;
}
.download-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--accent-softer);
}
.download-block strong {
  display: block;
  color: var(--accent-deep);
}
.download-block p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.download-block a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
}
.markdown hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.empty-state {
  padding: 54px 0;
  color: var(--muted);
  font-size: 18px;
}
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: start;
}
.site-footer strong {
  color: var(--accent-dark);
}
.site-footer p {
  color: var(--muted);
  margin: 8px 0 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.footer-links a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover {
  color: var(--accent-deep);
}
.footer-note {
  max-width: 420px;
  text-align: right;
}
.footer-update {
  display: grid;
  gap: 10px;
  justify-items: start;
  min-width: min(240px, 100%);
}
.app-version {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
#updateApp {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}
#updateApp:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-softer);
}
#updateApp:disabled {
  opacity: 0.5;
  cursor: default;
}
.footer-update-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  max-width: 280px;
}
.footer-update-status[data-error="true"] {
  color: #c45c5c;
}
.site-footer a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: var(--accent-deep);
}
.search-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: 80vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 68, 69, 0.2);
}
.search-dialog::backdrop {
  background: rgba(3, 41, 42, 0.42);
  backdrop-filter: blur(4px);
}
.search-shell {
  padding: 12px;
}
.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 10px 14px;
  border-bottom: 1px solid var(--line);
}
.search-row svg {
  width: 22px;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.8;
}
.search-row input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 0;
  outline: 0;
  font-size: 20px;
  color: var(--text);
  background: transparent;
}
.search-row input::placeholder {
  color: var(--muted);
}
.search-row button {
  border: 0;
  border-radius: 8px;
  padding: 6px 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
}
.search-results {
  overflow: auto;
  max-height: 58vh;
  padding: 8px 0;
}
.search-result {
  display: block;
  padding: 15px 14px;
  border-radius: 12px;
}
.search-result:hover,
.search-result.selected {
  background: var(--accent-softer);
}
.search-result strong {
  display: block;
  font-size: 16px;
}
.search-result span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 850px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
  }
  .brand-logo {
    width: 138px;
  }
  .brand-separator {
    height: 22px;
  }
  .brand-wiki {
    font-size: 14px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-button {
    display: flex;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 35;
    padding: max(96px, 18vw) 28px 40px;
    background: var(--bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.38s;
  }
  .mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }
  .mobile-menu nav {
    display: grid;
    gap: 6px;
    width: min(100%, 420px);
  }
  .mobile-menu a,
  .mobile-menu button {
    display: block;
    width: 100%;
    padding: 18px 8px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    text-align: left;
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    transform: translateX(28px);
    transition:
      color 0.18s ease,
      opacity 0.34s ease,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-menu a:last-child,
  .mobile-menu button:last-child {
    border-bottom: 0;
  }
  .mobile-menu.is-open a,
  .mobile-menu.is-open button {
    opacity: 1;
    transform: translateX(0);
  }
  .mobile-menu.is-open a:nth-child(1),
  .mobile-menu.is-open button:nth-child(1) { transition-delay: 0.06s; }
  .mobile-menu.is-open a:nth-child(2),
  .mobile-menu.is-open button:nth-child(2) { transition-delay: 0.1s; }
  .mobile-menu.is-open a:nth-child(3),
  .mobile-menu.is-open button:nth-child(3) { transition-delay: 0.14s; }
  .mobile-menu.is-open a:nth-child(4),
  .mobile-menu.is-open button:nth-child(4) { transition-delay: 0.18s; }
  .mobile-menu a:hover,
  .mobile-menu button:hover,
  .mobile-menu a:active,
  .mobile-menu button:active {
    color: var(--accent-dark);
  }
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .site-header {
    background: var(--bg);
    border-bottom-color: transparent;
    backdrop-filter: none;
  }
  .hero {
    padding: 50px 18px 28px;
  }
  .hero h1 {
    font-size: clamp(52px, 17vw, 88px);
  }
  .home-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .section-card {
    min-height: 330px;
    padding: 24px;
  }
  .latest {
    padding: 48px 18px 70px;
  }
  .article-list {
    grid-template-columns: 1fr;
  }
  .article-tile {
    min-height: 190px;
  }
  .page {
    padding: 42px 18px 70px;
  }
  .page-top {
    grid-template-columns: 1fr;
  }
  .page-top h1 {
    font-size: clamp(56px, 19vw, 92px);
  }
  .content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar {
    position: static;
    display: flex;
    gap: 8px;
    overflow: auto;
    margin: 0 -18px;
    padding: 0 18px 10px;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
  }
  .sidebar-title {
    display: none;
  }
  .sidebar a,
  .day-button {
    flex: 0 0 auto;
    width: auto;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    white-space: nowrap;
  }
  .day-button.active::before {
    display: none;
  }
  .day-button.active {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
  }
  .entry-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .entry-row .date {
    grid-column: 1 / -1;
  }
  .entry-row p {
    display: none;
  }
  .article-page {
    padding: 42px 18px 75px;
  }
  .article-head h1 {
    font-size: clamp(44px, 14vw, 72px);
  }
  .markdown {
    font-size: 17px;
  }
  .download-block {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer {
    padding: 34px 18px;
    flex-direction: column;
  }
  .footer-note {
    text-align: left;
    max-width: none;
  }
  .footer-update {
    width: 100%;
  }
  .footer-update-status {
    max-width: none;
  }
}

/* Study grouping: by day / by subject */
.study-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.study-switch-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.study-switch-button:hover {
  color: var(--accent-deep);
  background: var(--accent-softer);
}
.study-switch-button.active {
  background: var(--accent);
  color: var(--on-accent);
}
.subject-button {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .study-switch {
    width: 100%;
    margin-top: 20px;
  }
  .study-switch-button {
    flex: 1 1 50%;
  }
}

/* Theme, tools, schedule */
:root {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #000000;
  --text: #ededed;
  --muted: #9a9a9a;
  --line: #222222;
  --accent: #32c4bb;
  --accent-dark: #64d7ce;
  --accent-deep: #95e6df;
  --accent-soft: #141414;
  --accent-softer: #0a0a0a;
  --on-accent: #062d2e;
  --dark: #171717;
}

[data-theme="dark"] .search-dialog {
  box-shadow: none;
}

[data-theme="dark"] .section-card:hover {
  box-shadow: none;
}

#installHelp {
  max-width: min(560px, 92vw);
  border-radius: 20px;
  padding: 28px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.app-tools {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.app-tools select,
.app-tools button,
.schedule-page select,
.schedule-page input,
.schedule-toolbar button,
.schedule-reminders button,
.schedule-device-banner button,
#installHelp button {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.schedule-home {
  max-width: 1256px;
  margin: 24px auto;
  padding: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.schedule-home h2 {
  margin: 12px 0;
}

.schedule-page {
  max-width: 1280px;
  margin: 40px auto 90px;
  padding: 0 32px;
}

.schedule-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.schedule-page h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-date {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.schedule-date-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.schedule-shell {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.schedule-rail,
.schedule-main {
  min-width: 0;
}

.schedule-next {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.schedule-next strong {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.15;
}

.schedule-next span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.schedule-week-day {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 74px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.schedule-week-day:hover {
  border-color: var(--accent);
  background: var(--accent-softer);
}

.schedule-week-day .weekday {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-week-day .daynum {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.schedule-week-day .daycount {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.schedule-week-day.is-today .weekday {
  color: var(--accent-dark);
}

.schedule-week-day.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.schedule-week-day.active .weekday,
.schedule-week-day.active .daycount {
  color: color-mix(in srgb, var(--on-accent) 75%, transparent);
}

.schedule-week-day.is-empty .daycount {
  opacity: 0.55;
}

.schedule-meta-rail {
  display: none;
}

.schedule-day-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.schedule-day-bar h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.03em;
  text-transform: capitalize;
  font-weight: 700;
}

.schedule-count {
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.lesson-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.lesson-list-head {
  display: none;
}

.lesson {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  position: relative;
}

.lesson > * {
  min-width: 0;
}

.lesson-room,
.lesson-teacher {
  display: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  padding-top: 3px;
}

.lesson-room span,
.lesson-teacher span {
  display: block;
}

.lesson-room span + span,
.lesson-teacher span + span {
  margin-top: 6px;
}

.lesson.current::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.lesson h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.lesson-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.lesson-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  opacity: 0.45;
}

.lesson-variants {
  display: none;
}

.lesson-comment {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lesson-time {
  padding-top: 2px;
  overflow: hidden;
}

.lesson-time time {
  display: block;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.lesson-time span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.schedule-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 8px;
}

.schedule-reminders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.schedule-reminders #notificationStatus:empty,
.schedule-reminders #calendarStatus:empty {
  display: none;
}

.schedule-reminders #notificationStatus,
.schedule-reminders #calendarStatus {
  color: var(--muted);
  font-size: 13px;
}

.schedule-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.schedule-meta a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 980px) {
  .schedule-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }

  .schedule-rail {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 16px;
    align-content: start;
  }

  .schedule-next {
    padding: 18px 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--accent-soft);
  }

  .schedule-next strong {
    font-size: 22px;
  }

  .schedule-week {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .schedule-week-day {
    grid-template-columns: 44px 40px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    min-height: 0;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .schedule-week-day .daycount {
    justify-self: end;
  }

  .schedule-meta-rail {
    display: block;
  }

  .schedule-meta-foot {
    display: none;
  }

  .lesson-list-head {
    display: grid;
    grid-template-columns: 112px minmax(180px, 1.4fr) minmax(120px, 0.9fr) minmax(140px, 1.1fr);
    gap: 20px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .lesson {
    grid-template-columns: 112px minmax(180px, 1.4fr) minmax(120px, 0.9fr) minmax(140px, 1.1fr);
    gap: 20px;
    padding: 22px 8px;
  }

  .lesson.current {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-radius: 12px;
  }

  .lesson.current::before {
    left: -8px;
  }

  .lesson-room,
  .lesson-teacher {
    display: grid;
    gap: 6px;
  }

  .lesson-meta-line span:nth-child(2),
  .lesson-meta-line span:nth-child(3) {
    display: none;
  }

  .lesson-meta-line span:first-child::after {
    display: none;
  }

  .lesson h3 {
    font-size: 20px;
  }

  .lesson-time time {
    font-size: 20px;
  }
}

@media (max-width: 1320px) {
  .schedule-home {
    margin: 24px 24px;
  }
}

@media (max-width: 850px) {
  .entry-row {
    padding: 20px 0;
    gap: 10px;
  }

  .entry-row h3 {
    font-size: 21px;
  }

  .subject-button {
    max-width: 280px;
  }
}

@media (max-width: 760px) {
  .app-tools {
    padding: 0 18px;
    gap: 8px;
  }

  .schedule-page {
    margin-top: 24px;
    padding: 0 18px;
    overflow-x: clip;
  }

  .schedule-head {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .schedule-page h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .schedule-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .schedule-toolbar > select {
    width: 100%;
  }

  .schedule-date {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    min-width: 0;
  }

  .schedule-date input {
    width: 100%;
    min-width: 0;
  }

  .schedule-date-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .schedule-next {
    padding-bottom: 16px;
  }

  .schedule-next strong {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .schedule-week {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
  }

  .schedule-week-day {
    min-width: 0;
    min-height: 66px;
    padding: 8px 2px;
    border-radius: 12px;
  }

  .schedule-week-day .weekday {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .schedule-week-day .daynum {
    font-size: 16px;
  }

  .schedule-week-day .daycount {
    font-size: 11px;
  }

  .schedule-day-bar {
    margin-bottom: 12px;
    gap: 10px;
  }

  .schedule-day-bar h2 {
    font-size: clamp(18px, 5vw, 24px);
  }

  .schedule-home {
    margin: 24px 18px;
  }

  .lesson {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .lesson.current::before {
    left: -10px;
  }

  .lesson h3 {
    font-size: 17px;
  }

  .lesson-time time {
    font-size: 17px;
  }

  .lesson-meta-line {
    gap: 6px 10px;
    font-size: 13px;
  }

  .lesson-meta-line span:not(:last-child)::after {
    margin-left: 10px;
  }

  .lesson-multi .lesson-variants {
    display: grid;
    gap: 6px;
    margin-top: 10px;
  }

  .lesson-variant {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 13px;
  }

  .schedule-reminders {
    width: 100%;
  }

  .schedule-reminders select,
  .schedule-reminders button {
    flex: 1 1 auto;
  }

  .schedule-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.schedule-device-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ==========================================================================
   Sirius look: borrowed from siriusuniversity.ru — Montserrat, ink #333,
   soft-teal #4bbecf, grey "main_item" tiles with a long thin arrow,
   outline cards with an offset second sheet, thick rule under big headings.
   The header navigation, search, theme and menu buttons keep their own styles.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --panel: #f2f5f6;
  --text: #333333;
  --muted: #667075;
  --line: #e0e6e8;
  --outline: #bdbdbd;
  --accent: #05dbd0;
  --accent-dark: #0b7d86;
  --accent-deep: #07555c;
  --accent-soft: #e3f5f8;
  --accent-softer: #f1fafb;
  --on-accent: #05323a;
  --dark: #1d3a40;
  --violet: #7e6fc6;
  --violet-soft: #ece9f8;
  --pattern: #333333;
  --gutter: 32px;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #000000;
  --panel: #0f1213;
  --text: #f1f4f5;
  --muted: #9aa5a8;
  --line: #22292b;
  --outline: #3b4447;
  --accent: #05dbd0;
  --accent-dark: #6dd0de;
  --accent-deep: #a2e3ec;
  --accent-soft: #0e2226;
  --accent-softer: #081215;
  --on-accent: #032a30;
  --dark: #0f1213;
  --violet: #a99ee6;
  --violet-soft: #15122a;
  --pattern: #f1f4f5;
}
body {
  line-height: 1.5;
}
.icon-arrow-long {
  --icon: url("assets/arrow-long.svg");
  width: 44px;
  height: 18px;
}

/* Install button: a quiet pill, clear of the sticky header */
.app-tools {
  margin-top: 20px;
  padding: 0 var(--gutter);
  justify-content: flex-end;
}
.app-tools button {
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 999px;
  border-color: var(--line);
  color: var(--accent-dark);
  font-weight: 600;
}
.app-tools button:hover {
  border-color: var(--accent);
  background: var(--accent-softer);
}

/* Big section headings with the thick rule */
.latest {
  padding: 72px var(--gutter) 96px;
}
.section-heading {
  align-items: end;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 20px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--text);
}
.section-heading h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Section pages */
.page {
  padding: 48px var(--gutter) 100px;
}
.page-top {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 48px;
  align-items: end;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 2px solid var(--text);
  border-radius: 0;
  background: none;
}
.page-top h1 {
  margin-top: 16px;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-transform: none;
  color: var(--text);
}
.page-description {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
}
.content-layout {
  padding-top: 32px;
}
.sidebar-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.sidebar a,
.day-button {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
}
.sidebar .active,
.day-button.active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.day-button.active::before {
  display: none;
}
.study-switch-button.active {
  background: var(--accent);
  color: var(--on-accent);
}
.entry-row {
  padding: 24px 8px;
}
.entry-row:hover,
.entry-row:focus-visible {
  background: transparent;
}
.entry-row h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.entry-row:hover h3 {
  text-decoration: none;
}
.entry-row .date {
  font-weight: 600;
}
.entry-arrow {
  color: var(--text);
  transition: transform 0.3s ease, color 0.3s ease;
}
.entry-row:hover .entry-arrow {
  color: var(--accent-dark);
  transform: translateX(4px);
}

/* Articles */
.article-kicker {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.article-head {
  padding-bottom: 28px;
  border-bottom: 2px solid var(--text);
}
.article-head h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  overflow-wrap: break-word;
}
.article-head .summary {
  margin-bottom: 0;
  font-size: 19px;
}
.markdown {
  font-size: 17px;
  line-height: 1.75;
}
.markdown h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.markdown h1 {
  margin: 1.4em 0 0.6em;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.markdown > h1:first-child,
.markdown > h2:first-child {
  margin-top: 0;
}
.markdown h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}
.markdown h4 {
  margin: 1.6em 0 0.5em;
  font-size: 18px;
  line-height: 1.35;
}
.markdown blockquote {
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--accent-softer);
}
.markdown pre {
  border-radius: 16px;
  background: #1f2a2e;
}
[data-theme="dark"] .markdown pre {
  background: var(--panel);
  border: 1px solid var(--line);
}
.markdown table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.markdown th,
.markdown td {
  padding: 8px 12px;
  border: 1px solid var(--line);
}
.download-block {
  border: 1px solid var(--outline);
  border-left: 1px solid var(--outline);
  border-radius: 0;
  background: transparent;
  box-shadow: 8px 8px 0 -1px var(--bg), 8px 8px 0 0 var(--outline);
}
.download-block a {
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--on-accent);
  font-weight: 600;
}

/* Schedule */
.schedule-page {
  padding: 0 var(--gutter);
}
.schedule-page h1 {
  letter-spacing: -0.035em;
  font-weight: 800;
}
.schedule-week-day {
  border-radius: 14px;
}
.schedule-week-day.active {
  color: var(--on-accent);
}
.schedule-week-day .weekday,
.lesson-list-head {
  text-transform: none;
  letter-spacing: 0;
}
.lesson-list-head {
  font-size: 13px;
  font-weight: 600;
}
.lesson-meta-line span:not(:last-child)::after {
  content: none;
}
@media (min-width: 980px) {
  .schedule-next {
    border-radius: 20px;
    background: var(--panel);
    border-color: transparent;
  }
}

/* Footer */
.site-footer {
  max-width: none;
  margin-top: 40px;
  padding: 48px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  border: 0;
  background: var(--panel);
}
.site-footer strong {
  color: var(--text);
}


/* Phone */
@media (max-width: 850px) {
  :root {
    --gutter: 16px;
  }
  .latest {
    padding: 48px var(--gutter) 64px;
  }
  .section-heading {
    margin-bottom: 24px;
  }
  .page {
    padding: 28px var(--gutter) 64px;
  }
  .page-top {
    grid-template-columns: 1fr;
    padding-bottom: 22px;
  }
  .page-top h1 {
    font-size: clamp(40px, 13vw, 72px);
  }
  .page-description {
    font-size: 16px;
  }
  .sidebar {
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
  }
  .sidebar a,
  .day-button {
    padding: 9px 14px;
  }
  .study-switch {
    display: flex;
  }
  .study-switch-button {
    flex: 1 1 0;
    padding: 10px 8px;
    white-space: nowrap;
    font-size: 15px;
  }
  .entry-row {
    padding: 18px 0;
  }
  .article-page {
    padding: 28px var(--gutter) 64px;
  }
  .article-head {
    margin-bottom: 32px;
  }
  .article-head h1 {
    font-size: clamp(28px, 8.5vw, 44px);
  }
  .article-head .summary {
    font-size: 17px;
  }
  .back-link {
    margin-bottom: 22px;
  }
  .markdown {
    font-size: 16px;
  }
  .download-block {
    margin-right: 8px;
  }
  .schedule-page {
    margin-top: 24px;
    padding: 0 var(--gutter);
  }
  .site-footer {
    padding: 32px var(--gutter);
  }
}


/* --------------------------------------------------------------------------
   Home: official top layout — a big teal banner on the left, two grey
   "main_item" cards with the university's own illustrations on the right.
   -------------------------------------------------------------------------- */
.icon-arrow-sirius {
  --icon: url("assets/arrow-sirius.svg");
  width: 20px;
  height: 20px;
}
.round-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}
.round-arrow .icon {
  transition: transform 0.3s ease;
}
a:hover > .round-arrow,
a:focus-visible > .round-arrow,
a:hover .tile-foot .round-arrow,
a:focus-visible .tile-foot .round-arrow {
  background: var(--accent);
  color: var(--on-accent);
}
a:hover .round-arrow .icon,
a:focus-visible .round-arrow .icon {
  transform: rotate(-45deg);
}
[data-theme="dark"] .round-arrow {
  border: 1px solid var(--outline);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
.section-card,
.section-card.study,
.section-card.life,
[data-theme="dark"] .section-card.study,
[data-theme="dark"] .section-card.life {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border: 0;
  border-radius: 30px;
  background: #f4f6f7;
  color: var(--text);
  transition: background 0.3s ease;
}
.section-card:hover,
[data-theme="dark"] .section-card:hover {
  transform: none;
  box-shadow: none;
  background: #e8f6f8;
}
.card-art {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  height: 100%;
  max-width: 78%;
  object-fit: contain;
  object-position: right bottom;
  mix-blend-mode: multiply;
  transition: transform 0.4s ease;
  pointer-events: none;
}
.section-card h2 {
  min-width: 0;
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  transition: color 0.3s ease;
}
.section-card p {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  opacity: 1;
}
.section-card:hover h2 {
  color: var(--accent-dark);
}
[data-theme="dark"] .section-card,
[data-theme="dark"] .section-card.study,
[data-theme="dark"] .section-card.life {
  background: var(--panel);
  border: 1px solid var(--line);
}
[data-theme="dark"] .section-card:hover {
  background: var(--accent-softer);
  border-color: var(--accent);
}
[data-theme="dark"] .card-art {
  filter: invert(1) hue-rotate(180deg) saturate(1.2);
  mix-blend-mode: lighten;
  opacity: 0.9;
}

/* Latest materials: outline cards with an offset sheet and the university's
   own line patterns in the corner (official science-centre cards). */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 34px 30px;
  padding: 0 10px 10px 0;
  background: none;
  border: 0;
}
.article-tile {
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: transparent;
  transition: none;
}
.article-tile::before,
.article-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--outline);
  background: var(--bg);
}
.article-tile::before {
  z-index: -2;
  transform: translate(10px, 10px);
}
.article-tile::after {
  z-index: -1;
  transition: border-color 0.3s ease;
}
.article-tile:hover {
  background: transparent;
}
.article-tile:hover::after {
  border-color: var(--accent);
}
.tile-meta {
  display: grid;
  gap: 2px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 13px;
  line-height: 1.4;
}
.tile-subject {
  color: var(--accent-dark);
  font-weight: 600;
}
.tile-date {
  color: var(--muted);
}
.tile-body {
  flex: 1;
  min-width: 0;
}
.article-tile h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  transition: color 0.3s ease;
}
.article-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-tile:hover h3 {
  color: var(--accent-dark);
}
.tile-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 100px;
}
.tile-foot .round-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--outline);
  background: transparent;
}
.tile-art {
  display: block;
  height: 128px;
  width: auto;
  max-width: 66%;
  margin: 0 -28px -28px 0;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.9;
}
[data-theme="dark"] .tile-art {
  filter: invert(1);
  opacity: 0.7;
}

/* Tablet: banner on top, the two cards side by side */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .hero-banner {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .section-card,
  .section-card.study,
  .section-card.life {
    min-height: 220px;
  }
}

/* Phone */
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 16px;
  }
  .section-card,
  .section-card.study,
  .section-card.life {
    min-height: 168px;
    padding: 22px;
    border-radius: 24px;
  }
  .card-art {
    max-width: 70%;
  }
  .article-list {
    gap: 26px;
  }
  .article-tile {
    padding: 22px;
  }
  .tile-art {
    margin: 0 -22px -22px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .round-arrow .icon {
    transition: none;
  }
}

/* Header wordmark: the promo violet instead of teal */
.brand-wiki,
[data-theme="dark"] .brand-wiki {
  color: var(--accent);
}

/* Study drawing: quieter so it sits behind the title */
.study .card-art {
  opacity: 0.5;
  filter: saturate(0.6);
}
[data-theme="dark"] .study .card-art {
  opacity: 0.45;
  filter: invert(1) hue-rotate(180deg) saturate(0.6);
}

/* --------------------------------------------------------------------------
   Hero banner, after the official promo slide: light grey sheet with a warped
   grid, the title on a stepped violet plate, a thin wide tagline in caps,
   a white pill button with dashed chevrons, circles, pluses and loops.
   -------------------------------------------------------------------------- */
.hero-banner {
  --banner-bg: #eeeeef;
  --banner-grid: #b9c3c6;
  --banner-ink: #555b5e;
  grid-row: 1 / 3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 96px 48px 56px;
  border-radius: 30px;
  background: var(--banner-bg);
  color: var(--banner-ink);
  text-align: center;
}
[data-theme="dark"] .hero-banner {
  --banner-bg: #121617;
  --banner-grid: #2c3437;
  --banner-ink: #c3cbce;
  border: 1px solid var(--line);
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--banner-grid);
  -webkit-mask: url("assets/cards/hero-grid.svg") center / 100% 100% no-repeat;
  mask: url("assets/cards/hero-grid.svg") center / 100% 100% no-repeat;
  opacity: 0.8;
}
.hero-deco {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
/* grey disc with a teal disc, hanging from the top edge */
.hero-deco-circles {
  top: -24%;
  left: 38%;
  width: 34cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d5dbde;
}
.hero-deco-circles::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 30%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #05dbd0;
}
[data-theme="dark"] .hero-deco-circles {
  background: #232b2e;
}
[data-theme="dark"] .hero-deco-circles::after {
  background: #2f8c99;
}
.hero-deco-plus {
  top: 40px;
  left: -14px;
  width: 132px;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 36' fill='none' stroke='%23e09bf2' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M18 4v28M4 18h28M66 4v28M52 18h28M114 4v28M100 18h28'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-deco-rings {
  right: -34px;
  bottom: 20px;
  width: 150px;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 120' fill='none' stroke='%2305dbd0' stroke-width='5'%3E%3Cellipse cx='92' cy='58' rx='62' ry='26' transform='rotate(-32 92 58)'/%3E%3Cellipse cx='100' cy='70' rx='62' ry='26' transform='rotate(-32 100 70)'/%3E%3Cellipse cx='108' cy='82' rx='62' ry='26' transform='rotate(-32 108 82)'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-banner h1,
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  margin: 0;
  font-size: clamp(30px, 11.4cqi, 120px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: none;
  color: #fff;
}
.hero-banner h1 span {
  display: block;
  padding: 0.16em 0.32em 0.12em;
  border-radius: 0.36em;
  background: #6f1fc4;
}
/* the second line steps right and fuses with the first, like the promo plate */
.hero-banner h1 span + span {
  margin: -0.06em 0 0 0.9em;
  border-top-left-radius: 0;
}
.hero-tagline {
  margin: 0.5em 0 0;
  font-size: clamp(18px, 5.2cqi, 54px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--banner-ink);
}
.hero-banner .hero-text {
  width: auto;
  max-width: 46ch;
  margin: 18px 0 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--banner-ink);
  opacity: 1;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 16px 30px;
  border-radius: 14px;
  background: #fff;
  color: #2c9fbd;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}
.hero-cta:hover {
  box-shadow: 0 0 0 2px #05dbd0;
}
[data-theme="dark"] .hero-cta {
  background: #fff;
  color: #1f8aa6;
}
.hero-chevrons {
  width: 64px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke='%2305dbd0' stroke-width='2' stroke-dasharray='3 3' stroke-linecap='round'%3E%3Cpath d='M4 4l18 16L4 36M22 4l18 16-18 16M40 4l18 16-18 16'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 640px) {
  .hero-banner {
    min-height: 0;
    padding: 64px 18px 36px;
    border-radius: 24px;
  }
  .hero-banner h1,
  .hero h1 {
    font-size: clamp(26px, 12cqi, 64px);
  }
  .hero-deco-circles {
    top: -16%;
    left: auto;
    right: -12%;
    width: 46cqi;
  }
  .hero-deco-plus {
    top: 22px;
    width: 96px;
    height: 26px;
  }
  .hero-deco-rings {
    width: 84px;
    height: 68px;
    right: -34px;
    bottom: -14px;
  }
  .hero-tagline {
    font-size: clamp(16px, 6.4cqi, 30px);
  }
  .hero-banner .hero-text {
    font-size: 15px;
  }
  .hero-actions {
    margin-top: 24px;
  }
  .hero-cta {
    padding: 14px 24px;
    font-size: 16px;
  }
  .hero-chevrons {
    width: 44px;
    height: 28px;
  }
}

@media (max-width: 400px) {
  .hero-chevrons,
  .hero-deco-rings {
    display: none;
  }
}

/* Feedback: a quiet line of contacts in the footer */
.feedback {
  display: grid;
  gap: 6px;
  align-content: start;
  font-size: 14px;
}
.feedback h2 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.site-footer .feedback a {
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer .feedback a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Self-check: entry card on the study page, the review page and quiz blocks.
   Same vocabulary as the home page — grey rounded panels, round letter
   badges, teal for the right answer, the promo violet for the result.
   -------------------------------------------------------------------------- */
.study-review {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 190px;
  margin-top: 28px;
  padding: 28px 32px;
  border-radius: 30px;
  background: #f4f6f7;
  color: var(--text);
  transition: background 0.3s ease;
}
.study-review:hover {
  background: #e8f6f8;
}
.study-review-art {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  height: 100%;
  max-width: 60%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.55;
  pointer-events: none;
}
.study-review-text {
  min-width: 0;
  max-width: 560px;
}
.study-review-title {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  transition: color 0.3s ease;
}
.study-review:hover .study-review-title {
  color: var(--accent-dark);
}
.study-review p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.study-review-meta {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}
[data-theme="dark"] .study-review {
  background: var(--panel);
  border: 1px solid var(--line);
}
[data-theme="dark"] .study-review:hover {
  background: var(--accent-softer);
  border-color: var(--accent);
}
[data-theme="dark"] .study-review-art {
  filter: invert(1);
  opacity: 0.4;
}

/* Quiz block */
.quiz-block {
  margin: 36px 0;
  padding: 26px 28px 28px;
  border-radius: 24px;
  background: var(--panel);
}
[data-theme="dark"] .quiz-block {
  border: 1px solid var(--line);
}
.quiz-label {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.markdown .quiz-question,
.quiz-question {
  margin: 14px 0 18px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 18px 10px 11px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.quiz-option:hover:not(:disabled),
.quiz-option:focus-visible {
  border-color: var(--accent);
}
.quiz-option:disabled {
  opacity: 1;
  cursor: default;
}
.quiz-letter {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--outline);
  border-radius: 50%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.quiz-option:hover:not(:disabled) .quiz-letter {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.quiz-option-text {
  min-width: 0;
  overflow-wrap: break-word;
}
.quiz-block[data-answered] .quiz-option:not(.is-correct):not(.is-chosen) {
  opacity: 0.5;
}
.quiz-option.is-correct {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.quiz-option.is-correct .quiz-letter {
  border-color: var(--accent);
  background: var(--accent);
  color: #04313a;
}
.quiz-option.is-incorrect {
  border-color: #d9826f;
  background: #fdeeea;
}
.quiz-option.is-incorrect .quiz-letter {
  border-color: #d9826f;
  background: #d9826f;
  color: #fff;
}
[data-theme="dark"] .quiz-option.is-correct .quiz-letter {
  color: #04313a;
}
[data-theme="dark"] .quiz-option.is-incorrect {
  border-color: #c76b58;
  background: #2a1512;
}
.markdown .quiz-feedback,
.quiz-feedback {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.quiz-feedback::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: currentColor;
}
.quiz-feedback:empty {
  display: none;
}
.quiz-block[data-answered="correct"] .quiz-feedback {
  color: var(--accent-dark);
}
.quiz-block[data-answered="wrong"] .quiz-feedback {
  color: #b8513d;
}
[data-theme="dark"] .quiz-block[data-answered="wrong"] .quiz-feedback {
  color: #f0957f;
}
.quiz-explanation {
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
}
.quiz-explanation[hidden] {
  display: none;
}

/* Review page */
.review-page .back-link {
  display: inline-flex;
  margin-bottom: 24px;
}
.review-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 32px;
}
.review-nav {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 128px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.review-group {
  border-radius: 20px;
  background: var(--panel);
}
[data-theme="dark"] .review-group {
  border: 1px solid var(--line);
}
.review-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.3;
}
.review-group summary::-webkit-details-marker {
  display: none;
}
.review-group summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.review-group summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.review-group[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}
.review-group-body {
  display: grid;
  gap: 2px;
  padding: 0 8px 10px;
}
.review-topic {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.2s ease;
}
.review-topic span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.review-topic small {
  color: var(--muted);
  font-size: 12px;
}
.review-topic:hover {
  background: var(--surface);
}
.review-topic-all span {
  color: var(--accent-dark);
}
.review-topic.active,
.review-topic.active:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.review-topic.active span,
.review-topic.active small {
  color: var(--on-accent);
}
.review-session {
  min-width: 0;
  max-width: 820px;
}
.review-session-head {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--text);
}
.review-kicker {
  color: var(--muted);
  font-size: 14px;
}
.review-session-head h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: break-word;
}
.review-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.review-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.review-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.3s ease;
}
.review-progress strong {
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.review-questions {
  max-width: none;
  margin: 0;
}
.review-questions .quiz-block {
  margin: 20px 0;
}
.review-result {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 28px;
  padding: 28px 32px;
  border-radius: 24px;
  background: #6f1fc4;
  color: #fff;
}
.review-result[hidden] {
  display: none;
}
.review-result span {
  font-size: 14px;
  opacity: 0.85;
}
.review-score {
  display: block;
  margin-top: 2px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.review-verdict {
  margin: 10px 0 0;
  font-size: 16px;
}
.review-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.review-restart {
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #2c9fbd;
  font-weight: 700;
  cursor: pointer;
}
.review-restart:hover {
  box-shadow: 0 0 0 2px #05dbd0;
}
.review-theory {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .review-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }
  .review-nav {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 640px) {
  .study-review {
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
  }
  .study-review-art {
    max-width: 70%;
    opacity: 0.35;
  }
  .quiz-block {
    margin: 28px 0;
    padding: 20px 16px;
    border-radius: 20px;
  }
  .markdown .quiz-question,
  .quiz-question {
    font-size: 17px;
  }
  .quiz-option {
    gap: 12px;
    padding: 9px 14px 9px 9px;
    font-size: 15px;
  }
  .review-result {
    padding: 24px 20px;
  }
}

/* Section label pill (sentence case, soft teal) */
.eyebrow {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
/* entry lists never stretch their rows to the sidebar height */
.entries {
  align-content: start;
}
.study-review-art {
  right: 92px;
}
@media (max-width: 640px) {
  .study-review-art {
    right: 76px;
  }
}
/* "Самопроверка" always stays on one line: the heading gets the full row */
.review-page .page-top {
  grid-template-columns: 1fr;
  gap: 14px;
}
.review-page .page-top h1 {
  font-size: clamp(28px, 9.4vw, 96px);
  white-space: nowrap;
  overflow-wrap: normal;
}
.review-page .page-description {
  max-width: 62ch;
}
.review-picker {
  display: none;
}
@media (max-width: 900px) {
  .review-nav {
    display: none;
  }
  .review-picker {
    position: relative;
    display: grid;
    gap: 6px;
    margin-top: 20px;
  }
  .review-picker span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }
  .review-picker select {
    width: 100%;
    min-height: 52px;
    padding: 12px 44px 12px 18px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    text-overflow: ellipsis;
  }
  .review-picker select:focus-visible {
    border-color: var(--accent);
  }
  .review-picker::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 22px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    pointer-events: none;
  }
  .review-layout {
    padding-top: 20px;
  }
}
@media (max-width: 640px) {
  .review-page .page-description {
    display: none;
  }
  .review-page .page-top {
    padding-bottom: 16px;
  }
}
.site-footer .feedback-authors {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Markdown tables */
.markdown .table-wrap {
  margin: 1.4em 0;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.markdown .table-wrap table {
  display: table;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95em;
}
.markdown .table-wrap th,
.markdown .table-wrap td {
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.markdown .table-wrap th {
  background: var(--panel);
  font-weight: 700;
}
.markdown .table-wrap tr:last-child td {
  border-bottom: 0;
}
.markdown h4 {
  margin: 1.6em 0 0.5em;
  font-size: 18px;
  line-height: 1.35;
}
.markdown h5,
.markdown h6 {
  margin: 1.4em 0 0.4em;
  font-size: 16px;
  line-height: 1.4;
}
