:root {
  --ink: #123548;
  --ink-strong: #003f5c;
  --ink-soft: #58717e;
  --paper: #fffefa;
  --warm: #f8f5ef;
  --mist: #eef5f6;
  --line: #bfd2d8;
  --line-strong: #8fb1bc;
  --accent: #b6533d;
  --accent-dark: #93402f;
  --accent-soft: #f4d4c8;
  --success: #1f745e;
  --danger: #a43f32;
  --shadow: 0 20px 55px rgba(4, 54, 76, .09);
  --radius: 3px;
  --shell: 1420px;
}

* { box-sizing: border-box; }

[data-question-share][hidden], .question-detail-rapid[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  z-index: -1;
  width: clamp(10px, 3.8vw, 70px);
  background: linear-gradient(90deg, #eaf3f5, #f7fbfb);
  border-right: 1px solid var(--line);
}

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { max-width: 100%; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--ink-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: .65rem 1rem;
  transform: translateY(-150%);
  background: var(--ink-strong);
  color: #fff;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .96);
}
.site-header__inner {
  display: flex;
  width: min(calc(100% - 40px), 1620px);
  min-height: 92px;
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  margin-inline: auto;
}
.brand { display: inline-flex; flex: 0 0 auto; gap: .75rem; align-items: center; color: var(--ink-strong); font-family: Georgia, serif; font-size: 1.15rem; line-height: 1; text-decoration: none; }
.brand:hover { color: var(--ink-strong); }
.brand__mark { display: grid; width: 54px; height: 54px; place-items: center; background: var(--ink-strong); color: #fff; font-size: 2rem; }
.brand small { color: var(--ink-soft); font-family: ui-sans-serif, sans-serif; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; flex: 1; gap: clamp(14px, 2.5vw, 38px); align-items: center; justify-content: flex-end; }
.site-nav a { color: var(--ink-soft); font-size: .91rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink-strong); }
.nav-toggle { display: none; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink-strong); font-weight: 800; }
.nav-toggle-control {
  display: none;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle-control:focus-visible + .nav-toggle {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(182, 83, 61, .18);
}

.site-footer { border-top: 1px solid var(--line); background: var(--warm); }
.site-footer > div { width: min(calc(100% - 40px), 1620px); margin-inline: auto; }
.site-footer a { color: var(--ink-soft); }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: 48px; }
.site-footer-grid > section,
.site-footer-grid > nav { display: grid; align-content: start; gap: .55rem; }
.site-footer-grid strong { color: var(--ink-strong); }
.site-footer-grid p { max-width: 38rem; margin: 0; color: var(--ink-soft); }
.footer-brand { scroll-margin-top: 1.5rem; }
.footer-byline { margin-top: .55rem !important; }
.footer-bottom { display: flex; gap: 1rem 2rem; justify-content: space-between; padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; }
.footer-bottom p { margin: 0; }

h1, h2, h3 {
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { margin: .25em 0 .38em; font-size: clamp(2.25rem, 5.5vw, 5.3rem); letter-spacing: -.035em; }
h2 { margin: .2em 0 .45em; font-size: clamp(1.65rem, 3vw, 2.8rem); letter-spacing: -.02em; }
h3 { margin: .2em 0 .45em; font-size: clamp(1.28rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; }

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(182, 83, 61, .18);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shell {
  width: min(calc(100% - clamp(44px, 9vw, 150px)), var(--shell));
  margin-inline: auto;
}

.section { padding-block: clamp(62px, 8vw, 116px); }
.soft-section { background: var(--warm); border-block: 1px solid #e8e0d4; }

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--accent-dark);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.lead {
  max-width: 810px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.62;
}

.ui-icon {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 1.15em;
  place-items: center;
  font-family: ui-sans-serif, sans-serif;
  font-size: .96em;
  font-weight: 800;
  line-height: 1;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .75rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-strong);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.button:hover { transform: translateY(-1px); border-color: var(--ink-strong); color: var(--ink-strong); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .46; cursor: not-allowed; transform: none; }
.button-primary { border-color: var(--ink-strong); background: var(--ink-strong); color: #fff; }
.button-primary:hover { background: #06324a; color: #fff; }
.button-secondary { border-color: #de8f75; background: #e7977c; color: #073f59; }
.button-secondary:hover { border-color: var(--accent); background: #df876c; }
.button-ghost { background: transparent; }
.button-danger { border-color: #dbb2aa; color: var(--danger); background: #fffaf8; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--ink-strong);
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.hero-actions,
.question-actions,
.review-actions,
.exam-finish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

.portal-hero,
.module-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(125deg, #fff 10%, #fbfaf5 55%, #edf5f6);
}

.portal-hero::after,
.module-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: -9vw;
  bottom: -21vw;
  width: min(620px, 46vw);
  aspect-ratio: 1;
  border: 1px solid rgba(12, 78, 102, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(237, 245, 246, .5), 0 0 0 110px rgba(237, 245, 246, .26);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  min-height: 640px;
  padding-block: clamp(78px, 10vw, 148px);
}

.hero-copy { max-width: 890px; }
.hero-copy .hero-actions { margin-top: 2rem; }

.hero-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-facts > div { padding: clamp(22px, 3vw, 38px); background: rgba(255, 254, 250, .96); }
.hero-facts strong { display: block; color: var(--ink-strong); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 500; line-height: 1; }
.hero-facts span { display: block; margin-top: .55rem; color: var(--ink-soft); }

.module-hero-art { align-self: end; max-height: 540px; overflow: hidden; }
.module-hero-art img { width: 100%; height: min(540px, 43vw); object-fit: cover; object-position: center; }

.page-hero .shell { position: relative; z-index: 1; padding-block: clamp(55px, 8vw, 98px); }
.page-hero h1 { max-width: 1020px; font-size: clamp(2.25rem, 5vw, 4.4rem); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  align-items: center;
  margin-bottom: 2.2rem;
  color: var(--ink-soft);
  font-size: .91rem;
}
.breadcrumbs a { color: inherit; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 58px);
}
.section-heading > p { max-width: 610px; justify-self: end; color: var(--ink-soft); }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.professional-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.module-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 36px rgba(13, 59, 76, .06);
}
.module-card-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--mist); font-size: .88rem; }
.module-card-top span { display: inline-grid; min-width: 46px; height: 34px; place-items: center; padding-inline: .55rem; background: var(--ink-strong); color: white; font-weight: 900; }
.module-card-top strong { color: var(--ink-soft); }
.module-card-art { height: 260px; overflow: hidden; background: linear-gradient(145deg, #f7faf8, #e7f0f2); }
.module-card-art img { width: 100%; height: 100%; object-fit: cover; }
.module-card-body { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 3vw, 35px); }
.module-card-body h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.module-card-body p { color: var(--ink-soft); }
.module-card-body ul { display: grid; gap: .55rem; padding: 0; margin: 1rem 0 2rem; list-style: none; font-size: .94rem; }
.module-card-body li { display: flex; gap: .55rem; }
.module-card-body .button { width: 100%; margin-top: auto; }

.source-note { margin: 2rem 0 0; color: var(--ink-soft); font-size: .92rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: solid var(--line);
  border-width: 1px 0 0 1px;
}
.feature-grid article { min-height: 250px; padding: clamp(25px, 4vw, 48px); border: solid var(--line); border-width: 0 1px 1px 0; }
.feature-grid article > span { color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.feature-grid h2 { margin-top: 1.3rem; font-size: clamp(1.4rem, 2.3vw, 2rem); }
.feature-grid p { color: var(--ink-soft); }

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.action-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 104px;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.action-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 12px 28px rgba(12, 57, 75, .07); color: var(--ink); }
.action-card > .ui-icon:first-child { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--mist); color: var(--ink-strong); }
.action-card strong, .action-card small { display: block; }
.action-card strong { color: var(--ink-strong); font-size: 1.05rem; }
.action-card small { margin-top: .12rem; color: var(--ink-soft); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.category-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1rem;
  align-content: start;
  min-height: 300px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--paper);
}
.category-card-icon { display: grid; width: 54px; height: 54px; place-items: center; background: var(--mist); color: var(--ink-strong); font-family: Georgia, serif; font-size: 1.6rem; }
.category-card-visual { width: 54px; height: 54px; margin: 0; overflow: hidden; background: var(--mist); }
.category-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.category-card span { color: var(--accent-dark); font-size: .78rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.category-card h2 { margin-top: .55rem; font-size: 1.45rem; }
.category-card p { color: var(--ink-soft); font-size: .94rem; }
.category-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: auto; padding-top: 1rem; }
.category-actions .button { min-height: 44px; padding: .65rem 1rem; font-size: .9rem; }

.notice,
.source-caution {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.3rem;
  border: 1px solid #d6b5aa;
  border-left: 5px solid var(--accent);
  background: #fff9f6;
}
.notice { margin-top: 2rem; }
.notice p, .source-caution p { margin: 0; }
.source-caution { display: block; margin: 0 0 1.5rem; }
.source-caution strong { color: var(--accent-dark); }

.topic-actions > .hero-actions { margin-bottom: 3rem; }
.continue-strip { border-block: 1px solid var(--line); background: var(--mist); }
.continue-strip > .shell { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.continue-strip p { margin: 0; }
.continue-list {
  display: grid;
  min-width: 0;
  flex: 1 1 720px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: .75rem;
}
.continue-item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem 1rem;
  align-items: center;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.continue-item > :not(.button) { min-width: 0; }
.continue-item strong,
.continue-item span { display: block; overflow-wrap: anywhere; }
.continue-item strong { color: var(--ink-strong); }
.continue-item span { color: var(--ink-soft); font-size: .86rem; }
.continue-item .button { min-height: 44px; padding: .55rem .85rem; font-size: .86rem; }
.creator-section { display: grid; gap: clamp(24px, 4vw, 42px); }
.creator-grid { display: grid; grid-template-columns: minmax(240px, .52fr) minmax(0, 1.48fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.creator-grid > figure { margin: 0; }
.creator-grid > figure img { width: 100%; max-height: 560px; object-fit: cover; object-position: center top; }
.creator-grid > figure figcaption { padding-top: .65rem; color: var(--ink-soft); font-size: .86rem; }
.creator-story { max-width: 880px; }
.creator-story > p { color: var(--ink-soft); }
.creator-story > p > strong { color: var(--ink-strong); }
.creator-subtitle { margin-top: .75rem; color: var(--ink-strong); font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.creator-story .creator-intro { color: var(--ink-strong); font-size: 1.08rem; }
.creator-quote { margin: 1.6rem 0; padding: 1.2rem 1.35rem; border-left: 5px solid var(--accent); background: var(--paper); color: var(--ink-strong); font-family: Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; }
.book-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); align-items: center; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); background: var(--paper); }
.book-card img { width: 100%; max-height: 220px; object-fit: contain; }
.book-card h3 { margin-top: .35rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.book-card p:not(.eyebrow) { max-width: 760px; color: var(--ink-soft); }
.book-card .button { margin-top: .45rem; }
.topic-progress { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; align-items: center; margin-bottom: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--mist); }
.topic-progress strong { color: var(--ink-strong); font-size: 1.2rem; }
.topic-progress progress { grid-column: 1 / -1; width: 100%; }
.topic-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-block: 2rem; border: 1px solid var(--line); background: var(--line); }
.topic-guide article { padding: 1.25rem; background: var(--paper); }
.topic-guide article > span { display: grid; width: 34px; height: 34px; place-items: center; background: var(--accent); color: #fff; font-weight: 900; }
.topic-guide h2 { margin-top: .8rem; font-size: 1.25rem; }
.topic-guide p { margin-bottom: 0; color: var(--ink-soft); }
.category-diagram-disclosure { min-width: 0; max-width: 100%; margin-block: 2rem; overflow: hidden; border: 1px solid var(--line-strong); background: var(--paper); }
.category-diagram-disclosure > summary { min-width: 0; padding: 1rem 1.2rem; color: var(--ink-strong); font-weight: 800; overflow-wrap: anywhere; cursor: pointer; }
.category-diagram-disclosure > summary span { color: var(--ink-soft); font-weight: 500; }
.category-diagram-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.category-diagram-disclosure .educational-diagram { min-width: 0; max-width: 100%; margin: 0; border: 0; }
.category-visual { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(220px, .35fr); gap: 0; margin: 2.5rem 0; border: 1px solid var(--line); background: var(--warm); }
.category-visual img { width: 100%; max-height: 500px; object-fit: contain; background: var(--mist); }
.category-visual figcaption { display: grid; place-items: center; padding: 1.5rem; color: var(--ink-soft); }
.topic-embedded-practice, .visual-study-section, .topic-terms, .related-topics { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.visual-study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.visual-study-grid figure { min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--paper); }
.visual-study-grid img { width: 100%; aspect-ratio: 11 / 7.2; object-fit: contain; background: var(--mist); }
.visual-study-grid figcaption { display: grid; gap: .45rem; padding: 1rem; }
.visual-study-grid figcaption small { color: var(--accent-dark); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.visual-study-grid figcaption strong { color: var(--ink-strong); }
.visual-study-grid figcaption span, .visual-study-grid figcaption em { color: var(--ink-soft); font-size: .9rem; overflow-wrap: anywhere; }
.visual-learner-note { display: grid; gap: .25rem; margin: .35rem 0 0; padding: .75rem .85rem; border-left: 4px solid var(--accent); background: var(--warm); }
.visual-learner-note strong { color: var(--ink-strong); font-size: .82rem; }
.visual-learner-note span { color: var(--ink-soft); }
.visual-professional-caution { margin-top: .35rem; padding: .75rem .85rem; border: 1px solid #d6a395; border-left: 4px solid #b84e38; background: #fff5f1; color: #713626; }
.visual-professional-caution > strong { display: block; margin-bottom: .2rem; color: #713626; font-size: .82rem; }
.visual-professional-caution p { margin: 0; color: inherit; font-size: .88rem; line-height: 1.55; }
.visual-attribution { margin-top: .35rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }
.visual-attribution summary { min-height: 44px; padding: .7rem 0; color: var(--blue); font-weight: 850; cursor: pointer; }
.visual-attribution summary:hover { color: var(--accent-dark); }
.visual-attribution summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visual-attribution > div { display: grid; gap: .55rem; padding: 0 0 .8rem; }
.visual-attribution .visual-source { margin: 0; padding: 0; border-top: 0; }
.visual-modification-note { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.visual-modification-note strong { color: var(--ink-strong); }
.topic-terms > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.topic-terms a { display: grid; gap: .3rem; padding: 1rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.topic-terms a span { color: var(--ink-soft); font-size: .9rem; }

.educational-diagram { margin: 2rem 0; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line-strong); background: var(--warm); }
.educational-diagram figcaption > span { color: var(--accent-dark); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.educational-diagram figcaption > strong { display: block; margin-top: .35rem; color: var(--ink-strong); font-family: Georgia, serif; font-size: clamp(1.35rem, 2vw, 2rem); }
.educational-diagram figcaption p, .diagram-note { color: var(--ink-soft); }
.diagram-flow { display: flex; flex-wrap: wrap; gap: .7rem; align-items: stretch; margin-top: 1.3rem; }
.diagram-step-wrap { display: flex; min-width: 0; gap: .7rem; align-items: center; }
.diagram-step { display: flex; min-width: 0; min-height: 64px; gap: .65rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--line); background: var(--paper); }
.diagram-step > span { display: grid; min-width: 28px; height: 28px; place-items: center; background: var(--mist); color: var(--ink-strong); font-weight: 900; }
.diagram-step > strong { min-width: 0; overflow-wrap: anywhere; }
.diagram-arrow { color: var(--accent); font-size: 1.3rem; }
.diagram-cycle-note { align-self: center; color: var(--accent-dark); font-weight: 800; }
.educational-diagram.is-compact { margin: 1.2rem 0; padding: 1rem; }
.educational-diagram.is-compact figcaption p, .educational-diagram.is-compact .diagram-note { font-size: .9rem; }
.educational-diagram.is-compact .diagram-step { min-height: 48px; padding: .5rem .7rem; font-size: .88rem; }
.learning-goals { max-width: 920px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: var(--mist); }
.learning-goals ul { display: grid; gap: .65rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.question-preview { margin-top: 4rem; }
.question-preview > article { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.question-preview > article > span { color: var(--accent-dark); font-weight: 800; }
.question-preview p { margin: 0; }

.practice-layout { max-width: 1500px; }
.practice-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 430px);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--mist);
}
.practice-toolbar > div { display: flex; gap: .45rem; align-items: baseline; }
.practice-toolbar strong { color: var(--ink-strong); font-family: Georgia, serif; font-size: 1.6rem; }
progress { width: 100%; height: 9px; overflow: hidden; border: 0; background: #d9e6e9; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #d9e6e9; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }

.question-card,
.rapid-question {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.question-meta,
.bank-item-top {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin-bottom: 1.65rem;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 700;
}
.question-meta > span:first-child,
.bank-item-top > span:first-child { color: var(--accent-dark); font-weight: 900; letter-spacing: .05em; }
.category-chip { display: inline-flex; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line); background: var(--mist); color: var(--ink-strong); }
.question-copy,
.bank-question-copy {
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 1.6vw, 1.65rem);
  line-height: 1.48;
}
.question-copy { margin-bottom: clamp(24px, 3vw, 36px); }
.source-bullet { display: block; padding-left: 1.15rem; position: relative; }
.source-bullet::before { content: "•"; position: absolute; left: .15rem; color: var(--accent); }
.source-table-wrap { max-width: 100%; margin: 1rem 0; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); font-family: Inter, ui-sans-serif, sans-serif; font-size: .93rem; scrollbar-color: var(--line-strong) var(--mist); }
.source-table-wrap:focus-visible,
.source-table-wrap:focus-within { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(182, 83, 61, .14); }
.source-table-wrap table { width: 100%; border-collapse: collapse; }
.source-table-wrap th, .source-table-wrap td { min-width: 150px; padding: .8rem .9rem; border: 1px solid var(--line); overflow-wrap: anywhere; text-align: left; vertical-align: top; }
.source-table-wrap th { background: var(--mist); color: var(--ink-strong); font-weight: 900; }

.figure-adaptation-note {
  margin-top: 1.3rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d9c3b9;
  border-left: 5px solid var(--accent);
  background: #fff9f6;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: .95rem;
  line-height: 1.6;
}
.figure-adaptation-note strong { color: var(--accent-dark); }
.figure-adaptation-note p { margin: .25rem 0 0; }

.response-panel {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  background: #fcfbf7;
}
.response-panel legend { padding: 0 1rem; color: var(--accent-dark); font-size: .83rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.response-heading { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1.8rem; }
.response-heading strong { display: block; color: var(--ink-strong); font-family: Georgia, serif; font-size: clamp(1.38rem, 1.85vw, 1.8rem); font-weight: 500; }
.response-heading p { margin: .3rem 0 0; color: var(--ink-soft); }
.response-type { flex: 0 0 auto; padding: .55rem .8rem; border: 1px solid var(--line); background: var(--mist); color: var(--ink-strong); font-size: .78rem; font-weight: 900; }

.response-options,
.binary-list,
.select-list { display: grid; gap: .75rem; }
.response-option {
  display: flex;
  min-width: 0;
  gap: .95rem;
  align-items: flex-start;
  min-height: 68px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.response-option:hover { border-color: var(--line-strong); background: #f9fcfc; }
.response-option:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.response-option input { flex: 0 0 auto; width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--accent); }
.response-option > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.binary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.binary-row > p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.binary-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.binary-options .response-option { min-height: auto; align-items: center; padding: .65rem .8rem; }

select,
input[type="search"],
input[type="text"],
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: .7rem .85rem;
}
select {
  min-width: 0;
  cursor: pointer;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
select option {
  max-width: 100%;
  padding-block: .35rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}
textarea { min-height: 104px; resize: vertical; }

@supports (field-sizing: content) {
  .select-row select,
  .cloze-blank select {
    field-sizing: content;
    min-height: 64px;
  }
}

.select-row { display: grid; min-width: 0; grid-template-columns: minmax(200px, .8fr) minmax(260px, 1.2fr); gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.select-row > span { min-width: 0; color: var(--ink-strong); font-weight: 700; overflow-wrap: anywhere; hyphens: auto; }
.select-row select { min-height: 74px; padding-block: .85rem; }
.select-row.has-value-preview { align-items: start; }
.select-row .select-value-preview { grid-column: 2; }
.select-value-preview {
  display: block;
  min-width: 0;
  margin-top: -.45rem;
  padding: .7rem .8rem;
  border-left: 4px solid var(--accent);
  background: var(--mist);
  color: var(--ink-strong);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.select-value-preview > span { font-weight: 850; }
.cloze-blank .select-value-preview { margin-top: .45rem; text-align: left; }
select[data-long-options="true"] { min-height: 86px; }

.cloze-sentence {
  display: block;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-strong);
  font-family: Georgia, serif;
  font-size: clamp(1.14rem, 1.55vw, 1.55rem);
  line-height: 2.05;
}
.cloze-blank { display: inline-block; width: min(100%, clamp(320px, 43vw, 620px)); max-width: 100%; margin-inline: .3rem; vertical-align: middle; }
.cloze-blank select { min-height: 64px; padding-block: .8rem; border: 2px solid var(--accent); background-color: #fffefa; font-family: ui-sans-serif, sans-serif; font-size: 1rem; font-weight: 650; }

.recall-box { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); background: var(--paper); }
.recall-box p { max-width: 750px; }
.recall-box label, #visual-written-form label { display: block; font-weight: 700; margin: 16px 0 8px; }
.recall-draft, #visual-written-answer { display: block; width: 100%; min-height: 150px; resize: vertical; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white, #fff); color: var(--ink); font: inherit; line-height: 1.65; margin: 0 0 16px; }
.recall-draft:focus, #visual-written-answer:focus { outline: 3px solid var(--teal, #247e76); outline-offset: 3px; }
.written-answer-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.recorded-written-answer { padding: 18px; border: 1px solid var(--line); border-radius: 10px; margin: 18px 0; }
.visual-assessment-card .visual-quiz-copy { min-width: 0; }
.visual-assessment-card .visual-quiz-copy h2 { font-size: clamp(20px, 2.1vw, 30px); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.visual-assessment-card .visual-quiz-image { align-self: start; position: sticky; top: 24px; }
.visual-assessment-card .visual-quiz-image img { max-height: 580px; object-fit: contain; }
.visual-written-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.visual-assessment-note, .visual-assessment-source { font-size: 14px; line-height: 1.6; }
.visual-written-feedback h3 { font-size: 24px; line-height: 1.35; }
.visual-written-feedback .response-comparison { grid-template-columns: 1fr; }
.visual-written-feedback .source-answer { overflow-wrap: anywhere; }
.visual-self-assessment { padding: 16px; border: 1px solid var(--line); border-radius: 12px; margin: 24px 0 12px; }
.visual-self-assessment legend { font-size: 16px; font-weight: 700; padding: 0 6px; }
.visual-self-assessment button { display: block; width: 100%; padding: 13px 16px; margin: 8px 0; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; color: inherit; }
.visual-self-assessment button[aria-pressed="true"] { background: #e3f1ec; border-color: #1d7066; box-shadow: inset 4px 0 #1d7066; }
@media (max-width: 900px) {
  .visual-assessment-card .visual-quiz-image { position: static; }
  .visual-assessment-card .visual-quiz-image img { max-height: 340px; }
}

.order-list { display: grid; gap: .65rem; padding: 0; list-style: none; counter-reset: item; }
.order-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: .8rem; align-items: center; min-height: 65px; padding: .75rem 1rem; border: 1px solid var(--line); background: var(--paper); }
.order-list li:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.order-position { display: grid; width: 36px; height: 36px; place-items: center; background: var(--mist); color: var(--ink-strong); font-weight: 900; }
.order-controls { display: flex; gap: .35rem; }
.order-controls button,
.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-strong);
  cursor: pointer;
}
.order-controls button:disabled { opacity: .35; cursor: not-allowed; }

.response-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.response-footer p { margin: .3rem 0; color: var(--ink-soft); font-size: .91rem; }
.response-readiness { display: flex; gap: .5rem; align-items: center; color: var(--accent-dark) !important; font-weight: 800; }
.response-readiness.is-ready { color: var(--success) !important; }
.response-status,
.storage-message,
.live-status,
.loading-status { min-height: 1.65em; overflow-wrap: anywhere; }
.response-status:not(:empty),
.storage-message:not(:empty),
.live-status:not(:empty) {
  margin-top: .65rem;
  padding: .65rem .8rem;
  border-left: 4px solid var(--success);
  background: #eff8f4;
  color: #155e4b !important;
  font-weight: 750;
}
.response-footer-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }

.solution-panel,
.rapid-feedback {
  margin-top: 1.5rem;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--accent);
  background: var(--mist);
}
.solution-close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.4rem;
  padding: .6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-strong);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.solution-close:hover { border-color: var(--ink-strong); color: var(--ink-strong); }
.comparison-line { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-strong); font-weight: 800; }
.solution-label { margin: 0 0 .75rem; color: var(--accent-dark); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.source-answer { color: var(--ink-strong); font-size: 1.07rem; line-height: 1.75; }
.source-list { display: grid; gap: .4rem; margin: .65rem 0; padding-left: 1.4rem; }
.source-list + br, br + .source-list { display: none; }
.response-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 1.7rem; }
.response-comparison > section { min-width: 0; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.response-comparison h3 { font-family: ui-sans-serif, sans-serif; font-size: 1rem; font-weight: 900; }
.learning-support, .question-glossary, .related-videos { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--paper); }
.question-feedback-visual { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(220px, .45fr); margin: 1.5rem 0; border: 1px solid var(--line); background: var(--paper); }
.question-feedback-visual img { width: 100%; max-height: 390px; object-fit: contain; background: var(--mist); }
.question-feedback-visual figcaption { display: grid; gap: .5rem; align-content: center; padding: 1.2rem; }
.question-feedback-visual figcaption span { color: var(--ink-soft); }
.learning-support h3 { font-size: 1.25rem; }
.learning-support p { margin: .45rem 0; }
.question-explanation { max-width: 72ch; line-height: 1.75; }
.question-explanation h4 { margin: .8rem 0 .65rem; font-size: 1rem; color: var(--ink-strong); }
.question-explanation p + p { margin-top: 1rem; }
.explanation-sources, .explanation-tips { margin-top: 1rem; }
.explanation-sources summary, .explanation-tips summary { cursor: pointer; font-weight: 700; }
.explanation-sources a { overflow-wrap: anywhere; }
.related-videos { padding: clamp(18px, 3vw, 28px); }
.related-videos h3 { margin-bottom: .35rem; font-size: 1.25rem; }
.related-videos > p { max-width: 820px; margin: 0; color: var(--ink-soft); }
.related-videos ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.related-videos li { min-width: 0; }
.related-videos a { display: grid; height: 100%; gap: .4rem; align-content: start; padding: 1rem; border: 1px solid var(--line); background: var(--warm); color: var(--ink-strong); text-decoration: none; }
.related-videos a:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-1px); }
.related-videos a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.related-video-source { color: var(--accent-dark); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.related-videos strong { line-height: 1.35; overflow-wrap: anywhere; }
.related-video-action { margin-top: auto; padding-top: .25rem; color: var(--ink-soft); font-size: .82rem; font-weight: 750; }
.related-videos .related-videos-privacy { margin-top: .85rem; font-size: .8rem; }
.memory-anchor { display: grid; gap: .35rem; margin: .9rem 0 1.1rem; padding: 1rem; border-left: 4px solid var(--accent); background: var(--warm); }
.memory-anchor span { color: var(--accent-dark); font-size: .8rem; font-weight: 900; }
.memory-anchor strong { color: var(--ink-strong); font-size: 1.05rem; overflow-wrap: anywhere; }
.memory-anchor p { color: var(--ink-soft); }
.question-glossary summary { color: var(--ink-strong); font-weight: 900; cursor: pointer; }
.question-glossary dl { display: grid; gap: .75rem; }
.question-glossary dl > div { display: grid; grid-template-columns: minmax(150px, .35fr) minmax(0, .65fr); gap: 1rem; }
.question-glossary dt { font-weight: 900; }
.question-glossary dd { margin: 0; color: var(--ink-soft); }
.single-choice { display: grid; gap: .65rem; }
.practice-complete { margin-top: 2rem; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); background: var(--warm); }
.practice-complete h2 { font-size: 1.65rem; }
.storage-alert, .initial-load-error { margin: 1rem auto; padding: 1rem 1.2rem; border: 1px solid #b84e38; border-left: 5px solid #b84e38; background: #fff1ed; color: #7f2f20; }
.storage-alert { width: min(calc(100% - 40px), var(--shell)); }
.response-status.is-error, .storage-message.is-error { border-left-color: #b84e38; background: #fff1ed; color: #7f2f20 !important; }
.recorded-response { margin: 0 0 1.5rem; padding: 1rem 1.15rem; border: 1px solid var(--line); background: var(--warm); color: var(--ink-soft); }
.recorded-response-list { margin: 0 0 1.5rem; padding: 1rem 1.2rem 1rem 2.4rem; border: 1px solid var(--line); background: var(--warm); }
.recorded-response-map { display: grid; gap: 1px; margin: 0 0 1.5rem; border: 1px solid var(--line); background: var(--line); }
.recorded-response-map > div { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(200px, 1.25fr); gap: 1rem; padding: .8rem 1rem; background: var(--warm); }
.recorded-response-map dt { color: var(--ink-strong); font-weight: 800; }
.recorded-response-map dd { margin: 0; }

.question-actions { margin-top: 1.15rem; }
.question-actions .button { min-height: 44px; font-size: .9rem; }
.note-field { display: grid; gap: .45rem; margin-top: 1.5rem; }
.note-field > span { color: var(--ink-strong); font-size: .88rem; font-weight: 800; }

.practice-nav,
.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(220px, .75fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background: var(--mist);
}
.filter-bar label,
.search-field { display: grid; gap: .42rem; }
.filter-bar label > span,
.search-field > span { color: var(--ink-strong); font-size: .88rem; font-weight: 800; }

.result-summary { margin: 1.5rem 0; color: var(--ink-soft); }
.result-summary strong { color: var(--ink-strong); font-size: 1.3rem; }
.bank-list { display: grid; gap: 1.5rem; }
.bank-item { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); background: var(--paper); }
.bank-item-top { justify-content: flex-start; }
.bank-item-top .review-mini { margin-left: auto; }
.review-mini { display: inline-flex; gap: .4rem; align-items: center; min-height: 38px; padding: .45rem .65rem; border: 0; background: transparent; color: var(--ink-strong); font-weight: 800; cursor: pointer; }
.bank-question-copy { margin-bottom: 1.5rem; font-size: clamp(1.22rem, 2vw, 1.6rem); }
.bank-practice-link { margin-top: 1.25rem; }

.review-list { display: grid; gap: 1rem; }
.review-list article { padding: 1.35rem; border: 1px solid var(--line); background: var(--paper); }
.review-list p { color: var(--ink-strong); font-family: Georgia, serif; font-size: 1.2rem; }

.glossary-group { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.glossary-group > h2 { position: sticky; top: 1rem; align-self: start; color: var(--accent); font-size: 2.6rem; }
.glossary-group dl { margin: 0; }
.glossary-group dl > div { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, .65fr); gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid #e3ecee; }
.glossary-group dt { color: var(--ink-strong); font-weight: 900; }
.glossary-group dd { margin: 0; color: var(--ink-soft); }
.glossary-group dd small { display: block; margin-top: .4rem; color: var(--accent-dark); }

.rapid-question { max-width: 1100px; margin-inline: auto; }
.rapid-instruction { color: var(--ink-soft); }
.rapid-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.rapid-card-grid > button { min-height: 180px; padding: 1.6rem; border: 2px solid var(--line); background: var(--paper); color: var(--ink-strong); text-align: left; cursor: pointer; }
.rapid-card-grid > button:hover { border-color: var(--accent); background: #fffaf7; }
.rapid-card-grid > button:disabled { cursor: default; opacity: .7; }
.rapid-card-grid > button.is-source-card { border-color: var(--success); background: #eff8f4; opacity: 1; }
.rapid-card-grid > button.is-trap-card { border-color: #b84e38; background: #fff1ed; opacity: 1; }
.rapid-context { color: var(--ink-strong); font-family: Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.mode-chip,
.exam-outcome {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: .3rem .6rem;
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--ink-soft);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
}
.mode-chip.is-aligned,
.mode-chip[data-outcome="aligned"],
.exam-outcome.is-aligned { border-color: #9bc9bb; background: #eff8f4; color: #155e4b; }
.mode-chip.needs-review,
.mode-chip.is-review,
.mode-chip[data-outcome="revisit"],
.exam-outcome.needs-review,
.exam-outcome.is-review { border-color: #d6b5aa; background: #fff6f1; color: #7f2f20; }
.mode-chip.is-unanswered,
.mode-chip[data-outcome="unanswered"],
.exam-outcome.is-unanswered { border-color: #c8cfd2; background: #f5f7f7; color: #4e636d; }
.rapid-card-grid span, .rapid-card-grid strong { display: block; }
.rapid-card-grid span { margin-bottom: .7rem; color: var(--accent-dark); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.rapid-card-grid strong { font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.25; }

.visual-mode-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.25fr) auto;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-bottom: 1.25rem;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--warm), var(--paper));
}
.visual-mode-panel h2 { margin-bottom: .35rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.visual-mode-panel p { margin: 0; color: var(--ink-soft); }
.visual-mode-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.visual-mode-actions > button {
  min-height: 72px;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-strong);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}
.visual-mode-actions > button:hover { border-color: var(--accent); }
.visual-mode-actions > button[aria-pressed="true"] { border: 2px solid var(--accent); background: #fff5ef; color: var(--accent-dark); }
.visual-mode-actions small { display: block; margin-top: .25rem; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.visual-scoreboard { display: grid; grid-template-columns: repeat(3, minmax(74px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.visual-scoreboard span { min-width: 108px; padding: .75rem; background: var(--paper); color: var(--ink-soft); text-align: center; font-size: .75rem; font-weight: 800; }
.visual-scoreboard strong { display: block; color: var(--ink-strong); font-family: Georgia, serif; font-size: 1.45rem; }
.visual-quiz-card {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(380px, 1.05fr);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.visual-quiz-image { position: relative; min-height: 560px; overflow: hidden; background: var(--mist); }
.visual-quiz-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.visual-quiz-image > span { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .6rem; background: rgba(0, 52, 76, .88); color: #fff; font-size: .8rem; font-weight: 900; }
.visual-quiz-copy { padding: clamp(24px, 4vw, 46px); }
.visual-quiz-copy .notice { margin: 0 0 2rem; }
.visual-option-grid { display: grid; gap: .7rem; margin: 1.4rem 0; }
.visual-option-grid > button { min-height: 68px; padding: 1rem 1.15rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.visual-option-grid > button:hover { border-color: var(--accent); }
.visual-option-grid > button:disabled { cursor: default; opacity: .72; }
.visual-option-grid > button.is-reference { border-color: var(--success); background: #eff8f4; color: #155e4b; font-weight: 800; }
.visual-option-grid > button.is-selected:not(.is-reference) { border-color: var(--accent); background: #fff6f1; opacity: 1; }
.visual-option-grid > button.is-wrong { border-color: #b84e38; color: #7f2f20; text-decoration: line-through; text-decoration-thickness: 1px; }
.visual-attempt-status { margin: 1rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--accent); background: #fff6f1; color: var(--ink-soft); }
.visual-attempt-status strong { display: block; margin-bottom: .2rem; color: var(--accent-dark); }
.visual-feedback { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); background: var(--mist); }
.visual-feedback h3 { font-size: 1.45rem; }
.visual-source { padding-top: .8rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }
.visual-source a { color: var(--blue); font-weight: 800; text-underline-offset: 3px; }
.visual-source a:hover { color: var(--accent-dark); }
.visual-feedback > div { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }

.exam-setup { display: grid; max-width: 780px; gap: 1.3rem; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); background: var(--warm); }
.exam-setup > label:not(.check-row) { display: grid; gap: .45rem; }
.exam-setup > label > span { color: var(--ink-strong); font-weight: 800; }
.check-row { display: flex; gap: .8rem; align-items: center; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.check-row input { width: 22px; height: 22px; accent-color: var(--accent); }
.check-row span, .check-row strong, .check-row small { display: block; }
.check-row small { color: var(--ink-soft); font-weight: 400; }
.exam-status { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin-bottom: 1rem; padding: 1rem 1.2rem; background: var(--mist); border: 1px solid var(--line); }
.exam-review-map { margin: 2rem 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); background: var(--warm); }
.exam-review-map > h2 { margin-bottom: .35rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.exam-review-map > p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.exam-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.exam-review-card {
  display: grid;
  min-width: 0;
  gap: .7rem;
  align-content: start;
  padding: 1rem;
  background: var(--paper);
}
.exam-review-card h3 { margin: 0; font-family: ui-sans-serif, sans-serif; font-size: 1rem; font-weight: 900; overflow-wrap: anywhere; }
.exam-review-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.exam-review-card dl { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; margin: 0; font-size: .86rem; }
.exam-review-card dt { color: var(--ink-soft); }
.exam-review-card dd { margin: 0; color: var(--ink-strong); font-weight: 900; }
.exam-review-card .button,
.exam-review-card .text-link { align-self: end; justify-self: start; }
.exam-solution-list { display: grid; gap: 1.25rem; }
.exam-solution-list > article { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); }
.exam-solution-list > article.needs-review { border-left: 5px solid var(--accent); }
.exam-solution-list > article.is-aligned { border-left: 5px solid var(--success); }
.exam-finish-actions { margin-top: 2rem; }

.dashboard-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-bottom: 4rem; border: 1px solid var(--line); background: var(--line); }
.dashboard-stat-grid article { min-height: 130px; padding: 1.2rem; background: var(--paper); }
.dashboard-stat-grid strong, .dashboard-stat-grid span { display: block; }
.dashboard-stat-grid strong { color: var(--ink-strong); font-family: Georgia, serif; font-size: 2.5rem; font-weight: 500; }
.dashboard-stat-grid span { margin-top: .3rem; color: var(--ink-soft); font-size: .85rem; }
.category-progress { margin-top: 4rem; }
.category-progress > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.category-progress h3 { margin: 0; font-family: ui-sans-serif, sans-serif; font-size: 1.05rem; font-weight: 800; }
.category-progress p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.data-transfer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; margin-top: 4rem; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: var(--mist); }
.data-transfer > div:nth-child(2) { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }
.storage-message { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }
.data-transfer label.button[for="import-progress"]:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(182, 83, 61, .18);
}
@supports selector(label:has(+ input:focus-visible)) {
  .data-transfer label.button[for="import-progress"]:has(+ #import-progress:focus-visible) {
    position: relative;
    z-index: 2;
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(182, 83, 61, .18);
  }
}

.reading-shell { max-width: 980px; }
.legal-copy > section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.legal-copy h2 { font-size: 1.8rem; }
.legal-copy p { color: var(--ink-soft); }
.legal-copy dl { display: grid; gap: 0; margin: 1.25rem 0; border: 1px solid var(--line); background: var(--paper); }
.legal-copy dl > div { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.legal-copy dl > div:last-child { border-bottom: 0; }
.legal-copy dt { color: var(--ink-strong); font-weight: 850; }
.legal-copy dd { min-width: 0; margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.legal-copy code { padding: .1em .35em; border-radius: 3px; background: var(--mist); color: var(--ink-strong); font-size: .92em; }

.empty-state {
  padding: clamp(44px, 8vw, 100px);
  border: 1px solid var(--line);
  background: var(--warm);
  text-align: center;
}
.empty-state p { max-width: 680px; margin-inline: auto; color: var(--ink-soft); }
.error-state { margin-block: 5rem; }

.page-loading { display: grid; min-height: 55vh; place-items: center; align-content: center; gap: 1rem; color: var(--ink-soft); }
.loader { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 1.2.0 – továbbfejlesztett, szerkesztőségi tanulói felület */
:root {
  --ink: #17394a;
  --ink-strong: #063e59;
  --ink-soft: #5c7480;
  --paper: #fffefb;
  --warm: #f7f3ec;
  --mist: #edf5f6;
  --line: #c3d4d9;
  --line-strong: #8fadb7;
  --accent: #b4543d;
  --accent-dark: #8e3d2c;
  --accent-soft: #f2d0c3;
  --success: #1d705b;
  --danger: #9f3d31;
  --shadow: 0 24px 70px rgba(6, 62, 89, .1);
  --shadow-soft: 0 14px 38px rgba(6, 62, 89, .07);
  --shadow-lift: 0 28px 68px rgba(6, 62, 89, .14);
  --radius: 6px;
}

body {
  background:
    radial-gradient(circle at 92% 4%, rgba(219, 235, 237, .48), transparent 25rem),
    var(--paper);
}

body::before {
  background:
    linear-gradient(180deg, rgba(180, 84, 61, .11), transparent 32%),
    linear-gradient(90deg, #e9f2f4, #f8fbfb);
  box-shadow: 10px 0 34px rgba(6, 62, 89, .035);
}

.site-header {
  position: sticky;
  top: 0;
  border-bottom-color: rgba(143, 173, 183, .72);
  background: rgba(255, 254, 251, .92);
  box-shadow: 0 8px 28px rgba(6, 62, 89, .055);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink-strong) 0 8%, var(--accent) 8% 14%, transparent 14%);
  pointer-events: none;
}

.site-header__inner { min-height: 96px; }
.brand { gap: .85rem; letter-spacing: -.01em; }
.brand__mark {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px;
  background: linear-gradient(145deg, #0b4a67, #04364f);
  box-shadow: 8px 9px 0 rgba(180, 84, 61, .13);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 2px;
  background: var(--accent-soft);
}
.brand small { margin-top: .18rem; font-weight: 750; }

.site-nav a {
  position: relative;
  padding-block: .7rem;
  letter-spacing: .01em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: .2rem;
  left: 50%;
  height: 2px;
  background: var(--accent);
  transition: right .18s ease, left .18s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; left: 0; }

.button {
  border-radius: var(--radius);
  box-shadow: 0 5px 14px rgba(6, 62, 89, .035);
  letter-spacing: .005em;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6, 62, 89, .09); }
.button-primary {
  border-color: #063e59;
  background: linear-gradient(145deg, #0a4b68, #063b55);
  box-shadow: 0 10px 24px rgba(6, 62, 89, .16);
}
.button-primary:hover { border-color: #042f45; background: linear-gradient(145deg, #0b5575, #073a53); }
.button-secondary { border-color: #a84834; background: linear-gradient(145deg, #c66b50, #b6533d); color: #fff; }
.button-secondary:hover { border-color: #8e3d2c; background: linear-gradient(145deg, #bd6048, #a84834); color: #fff; }
.button-ghost { background: rgba(255, 254, 251, .72); }

.portal-hero,
.module-hero,
.page-hero {
  border-bottom-color: var(--line-strong);
  background:
    linear-gradient(116deg, rgba(255, 255, 255, .98) 5%, rgba(250, 247, 240, .95) 53%, rgba(232, 243, 245, .96)),
    var(--paper);
}
.portal-hero::before,
.module-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(6, 62, 89, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 62, 89, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 18%, #000 72%, transparent);
  pointer-events: none;
}
.portal-hero::after,
.module-hero::after,
.page-hero::after {
  border-color: rgba(6, 62, 89, .2);
  box-shadow: 0 0 0 55px rgba(232, 243, 245, .62), 0 0 0 110px rgba(232, 243, 245, .32), 0 0 0 165px rgba(180, 84, 61, .035);
}
.hero-grid { min-height: 680px; }
.hero-copy {
  position: relative;
  padding-left: clamp(22px, 3vw, 42px);
  border-left: 4px solid var(--accent);
}
.hero-copy h1 { max-width: 860px; }
.hero-copy .lead { max-width: 780px; }
.hero-facts {
  border-color: var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.hero-facts > div { position: relative; background: rgba(255, 254, 251, .95); }
.hero-facts > div::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .18s ease;
}
.hero-facts > div:hover::before { opacity: 1; }
.hero-facts strong { letter-spacing: -.04em; }

.page-hero .shell { padding-block: clamp(62px, 8vw, 108px); }
.page-hero h1 { position: relative; padding-bottom: .28em; }
.page-hero h1::after {
  content: "";
  display: block;
  width: clamp(70px, 8vw, 118px);
  height: 4px;
  margin-top: .42em;
  background: linear-gradient(90deg, var(--accent) 0 58%, var(--ink-strong) 58%);
}
.breadcrumbs { margin-bottom: 2.4rem; }
.breadcrumbs a { text-decoration-color: rgba(6, 62, 89, .35); }

.section-heading { position: relative; }
.section-heading::before {
  content: "";
  position: absolute;
  top: -.8rem;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--accent);
}
.soft-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .3), transparent 44%),
    var(--warm);
}

.module-card {
  --module-accent: var(--ink-strong);
  position: relative;
  border-top: 4px solid var(--module-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.module-card.module-egeszsegugyi { --module-accent: #9e4938; }
.module-card.module-termeszetgyogyaszati { --module-accent: #48745f; }
.module-card.module-eu-tudasmelyites { --module-accent: #425f7c; }
.module-card.module-akupresszor { --module-accent: #8a5a78; }
.module-card.module-reflexologus { --module-accent: #6c6750; }
.module-card.module-alternativ-mozgas-masszazsterapeuta { --module-accent: #8c6045; }
.module-card.module-eletmod-tanacsado-terapeuta { --module-accent: #3f7276; }
.module-card-top { background: linear-gradient(90deg, color-mix(in srgb, var(--module-accent) 9%, white), var(--mist)); }
.module-card-top span { background: var(--module-accent); box-shadow: 4px 4px 0 color-mix(in srgb, var(--module-accent) 18%, transparent); }
.module-card-art { border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #fff, #e7f0f2); }
.module-card-art img { transition: transform .35s ease; }
.module-card:hover .module-card-art img { transform: scale(1.025); }
.module-card-body h2 { position: relative; padding-bottom: .65rem; }
.module-card-body h2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 48px; height: 2px; background: var(--module-accent); }
.module-card-body li .ui-icon { color: var(--success); }

.feature-grid { border-color: var(--line-strong); background: var(--line-strong); box-shadow: var(--shadow-soft); }
.feature-grid article { position: relative; overflow: hidden; border-color: var(--line-strong); background: var(--paper); }
.feature-grid article::after { content: ""; position: absolute; right: -45px; bottom: -55px; width: 130px; height: 130px; border: 1px solid rgba(6, 62, 89, .1); border-radius: 50%; }
.feature-grid article > span { display: inline-flex; min-width: 40px; height: 28px; align-items: center; justify-content: center; border-bottom: 2px solid var(--accent); }

.action-card,
.category-card,
.bank-item,
.review-list article,
.visual-study-grid figure,
.topic-terms a {
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(6, 62, 89, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.action-card:hover,
.category-card:hover,
.bank-item:hover,
.review-list article:hover,
.visual-study-grid figure:hover,
.topic-terms a:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.action-card > .ui-icon:first-child,
.category-card-icon { border: 1px solid var(--line); border-radius: 50%; background: linear-gradient(145deg, #f7fbfb, #e4eff1); }
.category-card { position: relative; overflow: hidden; border-top: 3px solid var(--ink-strong); }
.category-card::after { content: ""; position: absolute; top: 0; right: 0; width: 82px; height: 82px; background: linear-gradient(135deg, transparent 49%, rgba(180, 84, 61, .08) 50%); pointer-events: none; }
.category-card-visual { border: 1px solid var(--line); border-radius: 50%; }
.category-actions { border-top: 1px solid rgba(195, 212, 217, .7); }

.notice,
.source-caution {
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fff7f3, #fffdf9);
  box-shadow: 0 8px 22px rgba(180, 84, 61, .05);
}
.notice > .ui-icon { display: grid; width: 34px; height: 34px; border: 1px solid #ddb5a9; border-radius: 50%; background: #fff; }

.creator-grid > figure {
  position: relative;
  padding: clamp(10px, 1.5vw, 18px);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.creator-grid > figure::before { content: ""; position: absolute; top: -12px; right: -12px; width: 42%; height: 42%; border-top: 4px solid var(--accent); border-right: 4px solid var(--accent); pointer-events: none; }
.creator-grid > figure img { filter: saturate(.92) contrast(1.025); }
.creator-grid > figure figcaption { padding: .8rem .25rem .1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.creator-story { padding-top: .4rem; }
.creator-quote { position: relative; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-soft); }
.creator-quote::before { content: "„"; position: absolute; top: -.25rem; right: 1.2rem; color: rgba(180, 84, 61, .15); font-size: 5rem; line-height: 1; }
.book-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #073e59, #0a526c);
  box-shadow: var(--shadow-lift);
}
.book-card h3,
.book-card p:not(.eyebrow) { color: #fff; }
.book-card .eyebrow { color: #f2b6a4; }
.book-card img { filter: drop-shadow(0 15px 18px rgba(0, 0, 0, .25)); }
.book-card .button-primary { border-color: #fff; background: #fff; color: var(--ink-strong); box-shadow: none; }
.book-card .button-primary:hover { background: var(--warm); color: var(--ink-strong); }

.practice-toolbar {
  position: static;
  border-color: var(--line-strong);
  border-radius: var(--radius);
  background: rgba(237, 245, 246, .94);
  box-shadow: var(--shadow-soft);
}
.question-card,
.rapid-question {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.question-card::before,
.rapid-question::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 16%, var(--ink-strong) 16% 34%, var(--mist) 34%);
}
.question-meta,
.bank-item-top { padding-bottom: 1rem; border-bottom: 1px solid rgba(195, 212, 217, .72); }
.category-chip,
.mode-chip,
.exam-outcome,
.response-type { border-radius: 999px; }
.question-copy,
.bank-question-copy { text-wrap: pretty; }

.response-panel {
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fcfaf5, #f8f5ee);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.response-panel legend { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.response-heading { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.response-option,
.select-row,
.cloze-sentence,
.recall-box,
.order-list li { border-radius: var(--radius); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; }
.response-option:hover,
.select-row:hover,
.order-list li:hover { transform: translateX(3px); border-color: var(--line-strong); box-shadow: 0 8px 20px rgba(6, 62, 89, .055); }
@supports selector(.response-option:has(input:checked)) {
  .response-option:has(input:checked) { border-color: var(--accent); background: #fff8f4; box-shadow: inset 4px 0 0 var(--accent); }
}
select,
input[type="search"],
input[type="text"],
textarea { border-radius: var(--radius); box-shadow: inset 0 1px 2px rgba(6, 62, 89, .035); }
.cloze-sentence { border-color: var(--line-strong); box-shadow: inset 0 0 0 5px rgba(237, 245, 246, .8); }
.cloze-blank select { box-shadow: 0 7px 18px rgba(180, 84, 61, .1); }

.solution-panel,
.rapid-feedback {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(140deg, #edf5f6, #f7fbfb);
  box-shadow: var(--shadow-soft);
}
.solution-panel::after,
.rapid-feedback::after { content: ""; position: absolute; top: -70px; right: -70px; width: 170px; height: 170px; border: 1px solid rgba(6, 62, 89, .09); border-radius: 50%; pointer-events: none; }
.comparison-line { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.source-answer {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper);
  box-shadow: 0 9px 26px rgba(6, 62, 89, .055);
}
.learning-support,
.question-glossary,
.related-videos { border-radius: var(--radius); box-shadow: 0 8px 24px rgba(6, 62, 89, .045); }
.related-videos { background: linear-gradient(140deg, #fffefb, #faf6ef); }
.related-videos a { border-radius: var(--radius); box-shadow: 0 5px 16px rgba(6, 62, 89, .04); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.related-videos a:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.topic-progress,
.topic-guide,
.learning-goals,
.educational-diagram,
.category-visual,
.filter-bar,
.exam-setup,
.exam-review-map,
.data-transfer,
.empty-state { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.topic-guide { overflow: hidden; }
.topic-guide article > span { border-radius: 50%; box-shadow: 4px 4px 0 var(--accent-soft); }
.visual-study-grid figure { overflow: hidden; }
.visual-study-grid img { transition: transform .3s ease; }
.visual-study-grid figure:hover img { transform: scale(1.025); }
.exam-solution-list > article { border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.dashboard-stat-grid { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent);
  background: linear-gradient(135deg, #073c55, #052f46);
  color: #eaf2f3;
}
.site-footer::after { content: ""; position: absolute; right: -160px; bottom: -220px; width: 460px; height: 460px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018); pointer-events: none; }
.site-footer > div { position: relative; z-index: 1; }
.site-footer a { color: #d9eaed; text-decoration-color: rgba(217, 234, 237, .5); }
.site-footer a:hover { color: #fff; }
.site-footer-grid strong { color: #fff; }
.site-footer-grid p,
.footer-bottom { color: #bfd0d5; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .16); }

@supports not (background: color-mix(in srgb, red 10%, white)) {
  .module-card-top { background: var(--mist); }
  .module-card-top span { box-shadow: 4px 4px 0 rgba(6, 62, 89, .12); }
}

@media (max-width: 1120px) {
  .site-header__inner { gap: 24px; }
  .site-nav { gap: 14px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .button { grid-column: 1 / -1; justify-self: start; }
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-grid { grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); }
  .visual-mode-panel { grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr); }
  .visual-scoreboard { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  body::before { display: none; }
  .site-header__inner { min-height: 78px; flex-wrap: wrap; padding-block: 10px; }
  .brand__mark { width: 46px; height: 46px; }
  .nav-toggle-control { display: block; }
  .nav-toggle { display: inline-flex; margin-left: auto; cursor: pointer; }
  .site-nav { display: none; flex: 0 0 100%; flex-direction: column; gap: 0; align-items: stretch; padding: .5rem 0 1rem; }
  .nav-toggle-control:checked ~ .site-nav,
  .site-header.is-menu-open .site-nav { display: flex; }
  .site-nav { margin-top: .25rem; border-top: 1px solid var(--line); }
  .site-nav a { padding: .9rem .35rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { top: 0; right: auto; bottom: 0; left: -.35rem; width: 3px; height: auto; }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { right: auto; left: -.35rem; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .module-hero-art { display: none; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p { justify-self: start; }
  .feature-grid { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .response-footer { grid-template-columns: 1fr; }
  .response-footer-actions { justify-content: flex-start; }
  .select-row { grid-template-columns: minmax(0, 1fr); }
  .select-row select { min-height: 86px; }
  .data-transfer { grid-template-columns: 1fr; }
  .data-transfer > div:nth-child(2) { justify-content: flex-start; }
  .visual-mode-panel { grid-template-columns: 1fr; }
  .visual-mode-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-scoreboard { grid-column: auto; }
  .visual-quiz-card { grid-template-columns: 1fr; }
  .visual-study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-quiz-image { height: clamp(340px, 72svh, 680px); min-height: 0; aspect-ratio: auto; }
  .category-visual { grid-template-columns: 1fr; }
  .topic-guide { grid-template-columns: 1fr; }
  .response-comparison { grid-template-columns: 1fr; }
  .question-feedback-visual { grid-template-columns: 1fr; }
  .category-diagram-disclosure > summary span { display: block; margin-top: .25rem; }
  .creator-grid { grid-template-columns: 1fr; }
  .creator-grid > figure { max-width: 420px; }
  .practice-toolbar { position: static; }
  .diagram-flow { display: grid; grid-template-columns: 1fr; }
  .diagram-step-wrap { display: grid; grid-template-columns: 1fr; }
  .diagram-step { width: 100%; }
  .diagram-arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .section { padding-block: 54px; }
  .hero-grid { gap: 2.5rem; padding-block: 64px; }
  .hero-copy { padding-left: 16px; border-left-width: 3px; }
  .page-hero h1::after { height: 3px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { padding: 1.25rem; }
  .module-grid,
  .professional-grid,
  .category-grid,
  .rapid-card-grid { grid-template-columns: 1fr; }
  .visual-mode-actions { grid-template-columns: 1fr; }
  .visual-scoreboard { grid-template-columns: 1fr; }
  .visual-scoreboard span { display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
  .visual-scoreboard strong { display: inline; }
  .module-card-art { height: 220px; }
  .category-card { min-height: auto; }
  .practice-toolbar { grid-template-columns: 1fr; }
  .question-card, .rapid-question { padding: 24px 18px 20px; }
  .question-meta, .bank-item-top { align-items: flex-start; }
  .response-panel { padding: 18px 14px; }
  .response-heading { display: grid; }
  .response-type { justify-self: start; }
  .binary-row { grid-template-columns: 1fr; }
  .binary-options { display: grid; grid-template-columns: 1fr 1fr; }
  .response-option { gap: .7rem; padding: .9rem; }
  .select-row { gap: .65rem; padding: .85rem; }
  .select-row select { min-height: 104px; font-size: .94rem; }
  .select-row .select-value-preview { grid-column: 1; margin-top: 0; }
  .select-value-preview { font-size: .92rem; }
  .legal-copy dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .cloze-sentence { line-height: 1.8; }
  .cloze-blank { display: block; width: 100%; margin: .55rem 0; }
  .cloze-blank select { min-height: 88px; font-size: .94rem; }
  .response-footer-actions .button { width: 100%; }
  .practice-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .practice-nav .text-link { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar .button { grid-column: auto; }
  .glossary-group { grid-template-columns: 1fr; gap: .5rem; }
  .glossary-group > h2 { position: static; }
  .glossary-group dl > div { grid-template-columns: 1fr; gap: .4rem; }
  .dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-progress > article { grid-template-columns: 1fr; }
  .question-preview > article { grid-template-columns: 1fr; gap: .3rem; }
  .order-list li { grid-template-columns: 36px minmax(0, 1fr); }
  .order-controls { grid-column: 2; }
  .recorded-response-map > div { grid-template-columns: 1fr; gap: .25rem; }
  .continue-strip > .shell { align-items: flex-start; flex-direction: column; }
  .continue-list,
  .exam-review-grid { width: 100%; grid-template-columns: 1fr; }
  .continue-item { grid-template-columns: 1fr; }
  .continue-item .button { width: 100%; }
  .creator-grid, .site-footer-grid, .topic-terms > div, .visual-study-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .book-card { grid-template-columns: 90px minmax(0, 1fr); }
  .book-card .button { grid-column: 1 / -1; width: 100%; }
  .question-glossary dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .related-videos ul { grid-template-columns: 1fr; }
  .module-card:hover,
  .action-card:hover,
  .category-card:hover,
  .bank-item:hover,
  .review-list article:hover,
  .visual-study-grid figure:hover,
  .topic-terms a:hover { transform: none; }
  .response-option:hover,
  .select-row:hover,
  .order-list li:hover { transform: none; }
}

@media print {
  body::before,
  header,
  footer,
  .page-hero,
  .practice-toolbar,
  .response-footer,
  .question-actions,
  .practice-nav,
  .filter-bar,
  .pagination,
  .print-control,
  .note-field,
  .response-panel,
  .rapid-card-grid,
  .visual-option-grid,
  .visual-feedback .button,
  .exam-setup,
  .exam-status,
  .exam-finish-actions,
  .data-transfer,
  .review-mini,
  .solution-close,
  .related-videos,
  .bank-practice-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .shell { width: 100%; }
  .section { padding: 0; }
  .question-card, .bank-item, .review-list article { break-inside: avoid; border-color: #999; box-shadow: none; }
  .solution-panel {
    display: block !important;
    break-inside: avoid;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #666;
    border-left: 4px solid #333;
    background: #fff;
    color: #000;
    box-shadow: none;
  }
  .solution-panel *,
  .source-answer,
  .recorded-response,
  .recorded-response-list,
  .recorded-response-map dt,
  .recorded-response-map dd { color: #000 !important; }
  .source-answer { font-size: 11pt; line-height: 1.5; overflow-wrap: anywhere; }
  .recorded-response,
  .recorded-response-list,
  .recorded-response-map > div { background: #fff; }
  .source-table-wrap { overflow: visible; border-color: #777; }
  .source-table-wrap table { table-layout: fixed; }
  .source-table-wrap th,
  .source-table-wrap td { min-width: 0; padding: .4rem; border-color: #777; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 1.8.5 – Micare ihlette, nyugodt tanulófelület; az 1.8.0 klinikai arculat folytatása. */
/* Az arculat képernyőre érvényes; a nyomtatást a fenti célzott szabályok kezelik. */
@media screen {
:root {
  --ink: #193747;
  --ink-strong: #082f49;
  --ink-soft: #526a72;
  --paper: #ffffff;
  --warm: #f3f9f8;
  --mist: #e8f3f1;
  --line: #d4e3e1;
  --line-strong: #afc4cb;
  --accent: #188878;
  --accent-dark: #12695f;
  --accent-soft: #ccebea;
  --success: #17735f;
  --danger: #b5483e;
  --navy: #082f49;
  --navy-light: #104a62;
  --cyan: #28c3cc;
  --coral: #e46c55;
  --shadow: 0 16px 40px rgba(8, 47, 73, .07);
  --shadow-soft: 0 6px 20px rgba(8, 47, 73, .035);
  --shadow-lift: 0 16px 36px rgba(8, 47, 73, .09);
  --radius: 20px;
  --shell: 1320px;
  --header-clearance: 1.5rem;
}

html { scroll-padding-top: var(--header-clearance); }

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before { display: none; }

::selection {
  background: var(--accent-soft);
  color: var(--navy);
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
  line-height: 1.12;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  margin: .22em 0 .4em;
  font-size: clamp(2.3rem, 3.8vw, 3.75rem);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.75rem);
  letter-spacing: -.032em;
}

h3 { letter-spacing: -.02em; }

a { color: var(--accent-dark); }
a:hover { color: var(--navy); }

.shell { width: min(calc(100% - 48px), var(--shell)); }
.section { padding-block: clamp(52px, 6vw, 80px); }
.soft-section { border-block: 1px solid var(--line); background: var(--warm); }

.eyebrow {
  margin-bottom: .85rem;
  color: var(--accent-dark);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .065em;
}

.lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.7;
}

.ui-icon {
  min-width: 1.2rem;
  color: currentColor;
  font-size: 1em;
}

.ui-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon__letters {
  font-size: .84em;
  font-weight: 850;
  letter-spacing: -.04em;
}

.site-header {
  position: relative;
  top: auto;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: none;
}

.site-header::after { display: none; }

.site-utility {
  min-height: 34px;
  background: var(--navy);
  color: #dbe9ed;
  font-size: .76rem;
}

.site-utility__inner {
  display: flex;
  width: min(calc(100% - 48px), var(--shell));
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-inline: auto;
}

.site-utility p {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
}

.site-utility p span {
  position: relative;
  padding-left: 1rem;
}

.site-utility p span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
}

.site-utility a {
  color: #ffffff;
  font-weight: 750;
  text-decoration-color: rgba(255, 255, 255, .45);
}

.site-header__inner {
  width: min(calc(100% - 48px), var(--shell));
  min-height: 84px;
  gap: 24px;
}

.brand {
  gap: .8rem;
  color: var(--navy);
  font-family: "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand:hover { color: var(--navy); }

.brand__mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px 3px 12px 3px;
  background: var(--navy);
  box-shadow: none;
  color: #ffffff;
  font-family: "Avenir Next", Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.brand__mark::after {
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 7px 0 10px 0;
  background: var(--cyan);
}

.brand__copy {
  display: grid;
  gap: .05rem;
  line-height: 1;
}

.brand__copy strong {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand small {
  margin: 0;
  color: var(--accent-dark);
  font-family: inherit;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.site-nav { min-width: 0; gap: clamp(12px, 1.3vw, 20px); }

.site-nav a {
  padding-block: 1rem;
  color: #48616e;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.005em;
}

.site-nav a::after {
  right: 0;
  bottom: .55rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--navy); }

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
  left: 0;
  transform: scaleX(1);
}

.nav-toggle {
  min-height: 44px;
  border-color: var(--line-strong);
  border-radius: 9px;
  background: #ffffff;
  color: var(--navy);
}

.button {
  min-height: 50px;
  padding: .78rem 1.25rem;
  border-radius: 999px;
  box-shadow: none;
  font-size: .91rem;
  font-weight: 650;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(8, 47, 73, .1); }

.button-primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
  box-shadow: none;
}

.button-primary:hover {
  border-color: #0c554c;
  background: #0c554c;
  color: #ffffff;
}

.button-secondary {
  border-color: #a8ccc5;
  background: var(--mist);
  color: var(--accent-dark);
}

.button-secondary:hover {
  border-color: var(--accent-dark);
  background: #d5eae5;
  color: var(--accent-dark);
}

.button-ghost {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--navy);
}

.button-danger { border-color: #dfb5b0; background: #fff7f6; }

.portal-hero,
.module-hero,
.page-hero {
  border-bottom: 0;
}

.portal-hero::before,
.portal-hero::after,
.module-hero::before,
.module-hero::after,
.page-hero::before { display: none; }

.portal-hero {
  overflow: clip;
  background: #ffffff;
}

.portal-hero .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: 0;
  gap: clamp(28px, 4vw, 56px);
  margin-block: 24px 0;
  padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(110deg, #eff8f6 0%, #e2f0ed 100%);
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
  padding-left: 0;
  border-left: 0;
}

.hero-copy h1 { max-width: 720px; }
.hero-copy .lead { max-width: 690px; }
.hero-copy .hero-actions { margin-top: 1.75rem; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  padding: 0;
  margin: 1.6rem 0 0;
  color: #49616d;
  list-style: none;
  font-size: .875rem;
  font-weight: 500;
}

.hero-proof li { display: inline-flex; gap: .38rem; align-items: center; }
.hero-proof .ui-icon { color: var(--accent-dark); }
.hero-proof .ui-icon svg { width: .95rem; height: .95rem; stroke-width: 2.2; }

.hero-visual {
  position: relative;
  min-height: 0;
  padding: 0 0 30px;
}

.hero-visual::before {
  display: none;
}

.hero-photo {
  position: relative;
  z-index: 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: none;
}

.hero-photo img {
  width: 100%;
  height: clamp(320px, 31vw, 410px);
  min-height: 0;
  object-fit: cover;
  object-position: 56% center;
  filter: none;
}

.hero-metric {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 20px;
  min-width: 210px;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-metric strong,
.hero-metric span { display: block; }

.hero-metric strong {
  color: var(--navy);
  font-family: "Avenir Next", Inter, sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}

.hero-metric span {
  margin-top: .35rem;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 750;
}

.hero-visual-note {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  gap: .22rem;
  min-width: 0;
  padding: .65rem .9rem;
  border-radius: 12px;
  background: var(--accent-dark);
  color: #ffffff;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.module-hero {
  overflow: clip;
  background: #ffffff;
}

.module-hero .hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  min-height: 0;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 24px;
  padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--warm);
}

.module-hero .hero-copy h1,
.module-hero .hero-copy .lead { color: var(--navy); }

.module-hero .hero-copy .lead { color: var(--ink-soft); }
.module-hero .eyebrow { color: var(--accent-dark); }
.module-hero .breadcrumbs { color: var(--ink-soft); }
.module-hero .breadcrumbs a { color: var(--accent-dark); }

.module-hero-art {
  position: relative;
  align-self: center;
  max-height: none;
  overflow: visible;
}

.module-hero-art::before {
  display: none;
}

.module-hero-art img {
  position: relative;
  width: 100%;
  height: clamp(280px, 29vw, 370px);
  border-radius: 18px;
  object-fit: cover;
  filter: none;
}

.module-hero-metric {
  position: absolute;
  bottom: -20px;
  left: 16px;
  min-width: 188px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.module-hero-metric strong,
.module-hero-metric span { display: block; }
.module-hero-metric strong { color: var(--navy); font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.module-hero-metric span { margin-top: .35rem; color: var(--ink-soft); font-size: .875rem; font-weight: 600; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--warm);
}

.page-hero::after {
  display: none;
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  height: 7px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: none;
}

.page-hero .shell { padding-block: clamp(28px, 4vw, 48px); }
.page-hero h1 { max-width: 960px; padding-bottom: 0; color: var(--navy); font-size: clamp(2rem, 3.3vw, 3rem); }
.page-hero h1::after { display: none; }
.page-hero .lead { color: var(--ink-soft); }
.page-hero .eyebrow { color: var(--accent-dark); }
.page-hero .breadcrumbs { margin-bottom: 1rem; color: var(--ink-soft); }
.page-hero .breadcrumbs a { color: var(--accent-dark); text-decoration-color: currentColor; }
.breadcrumbs > * { min-width: 0; overflow-wrap: anywhere; }

.section-heading {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-heading::before { display: none; }
.section-heading h2 { max-width: 680px; }
.section-heading > p { color: var(--ink-soft); }

.module-grid { gap: 24px; }

.module-card {
  --module-accent: var(--accent);
  --module-label: var(--accent-dark);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.module-card:hover { transform: translateY(-2px); border-color: var(--module-accent); box-shadow: var(--shadow-lift); }
.module-card.module-egeszsegugyi { --module-accent: #e26751; --module-label: #a73f2c; }
.module-card.module-termeszetgyogyaszati { --module-accent: #168c78; --module-label: #12715f; }
.module-card.module-eu-tudasmelyites { --module-accent: #2478a0; --module-label: #1f688c; }
.module-card.module-akupresszor { --module-accent: #8668a3; --module-label: #755491; }
.module-card.module-reflexologus { --module-accent: #a27643; --module-label: #825a2d; }
.module-card.module-alternativ-mozgas-masszazsterapeuta { --module-accent: #b45f50; --module-label: #994a3c; }
.module-card.module-eletmod-tanacsado-terapeuta { --module-accent: #29858e; --module-label: #216d75; }

.module-card-top {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 22px;
  left: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.module-card-top span,
.module-card-top strong {
  min-height: 32px;
  padding: .42rem .68rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: .875rem;
  line-height: 1;
  box-shadow: 0 5px 15px rgba(8, 47, 73, .16);
}

.module-card-top span { min-width: 46px; height: auto; background: var(--module-label); }
.module-card-top strong { display: inline-flex; align-items: center; background: #ffffff; color: var(--navy); }

.module-card-art {
  position: relative;
  height: 210px;
  border-radius: 12px;
  border-bottom: 0;
  background: #dfeaec;
}

.module-card-art::after {
  display: none;
}

.module-card-art img { filter: none; }
.module-card:hover .module-card-art img { transform: scale(1.02); }

.module-card-body { padding: 24px 12px 12px; }
.module-card-kicker { margin: 0 0 .65rem !important; color: var(--module-label) !important; font-size: .875rem; font-weight: 650; letter-spacing: .035em; text-transform: none; }
.module-card-body h2 { margin-bottom: .65rem; padding-bottom: 0; font-size: clamp(1.35rem, 1.8vw, 1.72rem); }
.module-card-body h2::after { display: none; }
.module-card-body p { font-size: 1rem; line-height: 1.65; }
.module-card-body ul { gap: .48rem; margin: .85rem 0 1.5rem; color: #49616d; font-size: .875rem; }
.module-card-body li { align-items: center; }
.module-card-body li .ui-icon { color: var(--module-accent); }
.module-card-body li .ui-icon svg { width: .95rem; height: .95rem; stroke-width: 2.2; }

.feature-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--warm);
  box-shadow: none;
}

.feature-grid article {
  min-height: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 0;
  background: var(--warm);
}

.feature-grid article:nth-child(2) { background: #e8f3f1; }
.feature-grid article:nth-child(3) { background: #dceee8; }
.feature-grid article::after { display: none; }
.feature-grid article > span { min-width: 0; height: auto; border: 0; color: var(--accent-dark); }
.feature-grid h2 { color: var(--navy); }
.feature-grid p { color: var(--ink-soft); }

.action-grid { gap: .85rem; }

.action-card {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 100px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.action-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  border-left-color: var(--accent-dark);
  box-shadow: var(--shadow-soft);
}

.action-card > .ui-icon:first-child {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--accent-dark);
}

.action-card strong { color: var(--navy); font-size: .98rem; }
.action-card small { color: var(--ink-soft); font-size: .875rem; }
.action-card > .ui-icon:last-child { color: var(--accent-dark); }

.category-grid { gap: 1rem; }

.category-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.category-card::after { display: none; }
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.category-card-icon,
.category-card-visual {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
}

.category-card-icon { color: var(--accent-dark); font-family: inherit; font-size: 1.35rem; font-weight: 800; }
.category-card span { color: var(--accent-dark); font-size: .875rem; }
.category-card h2 { font-size: 1.28rem; }
.category-card p { font-size: 1rem; line-height: 1.6; }
.category-actions { border-top-color: var(--line); }

.continue-strip {
  border: 0;
  background: var(--navy);
  color: #ffffff;
}

.continue-strip h2 { color: #ffffff; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.continue-strip .eyebrow { color: #7de0df; }
.continue-item { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); }
.continue-item strong { color: #ffffff; }
.continue-item .button-primary { border-color: var(--cyan); background: var(--cyan); color: var(--navy); }

.notice,
.source-caution {
  border: 1px solid #cde3e4;
  border-left: 5px solid var(--accent);
  border-radius: 9px;
  background: #f3fbfb;
  box-shadow: none;
}

.source-caution { border-color: #ead4ce; border-left-color: var(--coral); background: #fff8f6; }
.source-caution strong { color: #963e32; }
.notice > .ui-icon { border: 0; background: #ffffff; color: var(--accent-dark); }

.creator-grid { grid-template-columns: minmax(260px, .56fr) minmax(0, 1.44fr); }

.creator-grid > figure {
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: var(--shadow);
}

.creator-grid > figure::before {
  display: none;
}

.creator-grid > figure img { border-radius: inherit; }
.creator-grid > figure figcaption { padding: .8rem 0 0; color: var(--ink-soft); font-size: .875rem; }
.creator-subtitle { font-size: clamp(1.18rem, 1.65vw, 1.48rem); }
.creator-quote { border-left-color: var(--accent); border-radius: 0 9px 9px 0; background: #ffffff; font-family: inherit; font-size: clamp(1.1rem, 1.55vw, 1.32rem); font-weight: 700; }
.creator-quote::before { display: none; }

.book-card {
  border-radius: 20px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.book-card .eyebrow { color: #7de0df; }
.book-card .button-primary { border-color: var(--cyan); background: var(--cyan); color: var(--navy); }
.book-card .button-primary:hover { border-color: #ffffff; background: #ffffff; }

.practice-toolbar {
  position: static;
  padding: .7rem 1rem;
  gap: .75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--warm);
  box-shadow: none;
}

.practice-toolbar strong { font-size: 1.25rem; }
.practice-toolbar progress { height: 6px; border-radius: 999px; }

.practice-toolbar strong,
.dashboard-stat-grid strong,
.visual-scoreboard strong { font-family: "Avenir Next", Inter, sans-serif; }

.question-card,
.rapid-question {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.question-card::before,
.rapid-question::before {
  display: none;
}

.question-copy,
.bank-question-copy,
.rapid-context {
  color: var(--navy);
  font-family: "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 680;
}

.question-copy,
.bank-question-copy { font-size: clamp(1.18rem, 1.5vw, 1.52rem); line-height: 1.5; }
.rapid-context { font-size: clamp(1.08rem, 1.45vw, 1.35rem); }

.category-chip,
.mode-chip,
.exam-outcome,
.response-type {
  border-radius: 999px;
  background: var(--mist);
}

.response-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--warm);
  box-shadow: none;
}

.response-panel legend { border: 1px solid var(--line); border-radius: 999px; background: #ffffff; color: var(--accent-dark); letter-spacing: .04em; }
.response-heading strong { font-family: "Avenir Next", Inter, sans-serif; font-weight: 750; }
.response-option,
.select-row,
.cloze-sentence,
.recall-box,
.order-list li { border-radius: 12px; background: #ffffff; }

.response-option:hover,
.select-row:hover,
.order-list li:hover { transform: none; box-shadow: none; border-color: var(--accent); }

@supports selector(.response-option:has(input:checked)) {
  .response-option:has(input:checked) { border-color: var(--accent); background: #f0fbfa; box-shadow: inset 4px 0 0 var(--accent); }
}

.cloze-sentence { font-family: inherit; line-height: 1.85; border: 0; padding: .5rem 0; background: transparent; box-shadow: none; }
.cloze-blank { width: min(100%, clamp(260px, 32vw, 480px)); }
.cloze-blank select { min-height: 56px; padding-block: .65rem; border: 1px solid var(--accent); border-radius: 10px; background-color: #ffffff; box-shadow: none; }
.cloze-blank select[data-long-options="true"] { min-height: 86px; }

progress { background: #d9e7e9; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #d9e7e9; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }

.solution-panel,
.rapid-feedback {
  border: 1px solid #c7dfe0;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: #eff9f9;
  box-shadow: none;
}

.solution-panel::after,
.rapid-feedback::after { display: none; }

.source-answer {
  border-color: var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
  background: #ffffff;
  box-shadow: none;
}

.learning-support,
.question-glossary,
.related-videos,
.related-videos a { border-radius: 8px; box-shadow: none; }
.related-videos { background: #ffffff; }
.related-videos a { background: var(--warm); }

.topic-progress,
.topic-guide,
.learning-goals,
.educational-diagram,
.category-visual,
.filter-bar,
.exam-setup,
.exam-review-map,
.data-transfer,
.empty-state,
.exam-solution-list > article,
.dashboard-stat-grid { border-radius: 10px; box-shadow: none; }

.topic-guide article > span { border-radius: 7px; box-shadow: none; }
.educational-diagram { background: var(--warm); }
.educational-diagram figcaption > strong { font-family: "Avenir Next", Inter, sans-serif; font-weight: 750; }
.diagram-step { border-radius: 7px; }
.visual-study-grid figure { border-radius: 9px; }
.visual-study-grid figure:hover img { transform: scale(1.015); }
.bank-item,
.review-list article,
.exam-solution-list > article { border-radius: 10px; box-shadow: none; }
.bank-item:hover,
.review-list article:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.visual-mode-panel,
.visual-quiz-card,
.exam-review-map,
.data-transfer { border-radius: 12px; }
.visual-mode-actions > button,
.visual-option-grid > button,
.rapid-card-grid > button { border-radius: 8px; }
.visual-mode-actions > button[aria-pressed="true"] { border-color: var(--accent); background: #effafa; color: var(--accent-dark); }
.visual-quiz-card { overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.visual-quiz-image { background: #e8f0f2; }
.visual-option-grid > button:hover { border-color: var(--accent); background: #f6fbfb; }

/* Dentivo: valós helyi adatok, különálló mutatók és témánkénti haladás. */
.dashboard-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 3rem; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.dashboard-stat-grid article { min-width: 0; min-height: 120px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--warm); }
.dashboard-stat-grid article.is-due { border-color: #e8ca89; background: #fff5df; }
.dashboard-stat-grid article.is-due strong { color: #805900; }
.dashboard-stat-grid strong { color: var(--navy); font-size: 2.2rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; }
.dashboard-stat-grid span { margin-top: .55rem; font-size: .95rem; overflow-wrap: anywhere; }
.category-progress { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: #ffffff; }
.category-progress h2 { margin-bottom: 1.25rem; }
.category-progress > article { gap: 1.5rem; padding-block: 1.35rem; }
.category-progress progress { display: block; height: 7px; margin-block: .7rem; border-radius: 999px; }
.category-progress .category-progress-detail { font-size: .875rem; }
.category-progress .text-link { min-height: 44px; padding: .5rem .8rem; border-radius: 999px; background: var(--mist); }

.site-footer {
  border-top: 0;
  background: var(--navy);
  color: #e5eff2;
}

.site-footer::after { display: none; }
.site-footer a { color: #cfe0e5; }
.site-footer-grid { padding-block: 52px; }
.site-footer-grid strong { color: #ffffff; font-family: "Avenir Next", Inter, sans-serif; font-size: .92rem; }
.site-footer-grid p,
.footer-bottom { color: #a9c0c9; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .14); }
.site-footer > div { width: min(calc(100% - 48px), var(--shell)); }

@media (max-width: 1240px) {
  .site-header__inner,
  .site-utility__inner { width: min(calc(100% - 48px), var(--shell)); }
  .site-header__inner { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .nav-toggle-control { display: block; }
  .nav-toggle { display: inline-flex; margin-left: auto; cursor: pointer; }
  .site-nav { display: none; flex: 0 0 100%; flex-direction: column; gap: 0; align-items: stretch; margin-top: .25rem; padding-block: .5rem; border-top: 1px solid var(--line); }
  .nav-toggle-control:checked ~ .site-nav,
  .site-header.is-menu-open .site-nav { display: flex; }
  .site-nav a { padding: .8rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { border-radius: 8px; background: var(--mist); color: var(--accent-dark); }
}

@media (max-width: 980px) {
  .site-utility p span:last-child { display: none; }
  .portal-hero .hero-grid,
  .module-hero .hero-grid { grid-template-columns: 1fr; }
  .portal-hero .hero-grid { gap: 28px; }
  .hero-copy { max-width: 800px; }
  .hero-visual { min-height: 0; width: 100%; }
  .hero-photo img { height: 340px; }
  .module-hero-art { display: block; width: min(100%, 620px); }
  .module-hero-art img { height: clamp(260px, 40vw, 340px); }
  .module-hero-metric { left: 18px; }
}

@media (max-width: 880px) {
  .creator-grid { grid-template-columns: minmax(0, 1fr); }
  .creator-grid > figure { width: min(100%, 420px); }
  .site-header__inner { min-height: 76px; padding-block: 9px; }
  .site-nav { margin-top: .35rem; padding-bottom: .7rem; border-top-color: var(--line); }
  .site-nav a { padding: .8rem; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { padding-left: .8rem; border-left: 3px solid var(--accent); }
  .practice-toolbar { position: static; }
}

@media (max-width: 720px) {
  .site-utility { display: none; }
  .site-header__inner { width: min(calc(100% - 28px), var(--shell)); }
  .brand__mark { width: 44px; height: 44px; font-size: 1.4rem; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding-block: 54px; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.55rem, 7.5vw, 2.1rem); }
  .portal-hero .hero-grid,
  .module-hero .hero-grid { gap: 24px; margin-top: 14px; padding: 24px 18px; border-radius: 20px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-proof { display: grid; grid-template-columns: 1fr; gap: .5rem; }
  .hero-visual { min-height: 0; padding: 0 0 24px; }
  .hero-photo { border-radius: 14px; }
  .hero-photo img { height: 280px; }
  .hero-visual-note { top: 12px; right: 12px; }
  .hero-metric { left: 12px; min-width: 0; padding: .85rem 1rem; }
  .hero-metric strong { font-size: 2.1rem; }
  .module-hero-art { margin-bottom: 16px; }
  .module-hero-art img { height: 260px; border-radius: 14px; }
  .module-hero-metric { right: 14px; bottom: -16px; left: 14px; min-width: 0; }
  .page-hero .shell { padding-block: 28px 32px; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .page-hero::after { width: 54%; height: 5px; }
  .module-card-art { height: 210px; }
  .module-card-body { padding: 22px 10px 12px; }
  .feature-grid { border-radius: 20px; }
  .feature-grid article { min-height: 0; }
  .creator-grid > figure { max-width: 100%; border-radius: 20px; }
  .creator-grid > figure::before { display: none; }
  .book-card { grid-template-columns: 78px minmax(0, 1fr); }
  .question-card,
  .rapid-question { border-radius: 16px; }
  .cloze-blank { display: block; width: 100%; margin: .65rem 0; }
  .cloze-blank select { min-height: 56px; font-size: 1rem; }
  .site-footer > div { width: min(calc(100% - 28px), var(--shell)); }
  .dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dashboard-stat-grid article { padding: 18px 16px; }
  .category-progress > article { grid-template-columns: 1fr; gap: .65rem; }
  .category-progress .text-link { justify-self: start; }
  .question-copy,
  .bank-question-copy { font-size: clamp(1.1rem, 4.7vw, 1.3rem); }
  .action-card:hover,
  .module-card:hover,
  .category-card:hover,
  .bank-item:hover,
  .review-list article:hover { transform: none; }
}

@media (max-width: 420px) {
  .brand__copy strong { font-size: 1rem; }
  .brand small { font-size: .59rem; }
  .nav-toggle { padding-inline: .62rem; }
  .hero-photo img { height: 240px; }
  .hero-visual-note { display: none; }
  .hero-metric { right: 16px; min-width: 0; }
  .module-card-top { top: 22px; right: 22px; left: 22px; gap: .4rem; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
}
/* Shareable, server-rendered question pages. */
.question-detail { max-width: 72rem; padding-top: 2rem; }
.question-detail > .breadcrumbs { margin-bottom: 1.5rem; flex-wrap: wrap; }
.question-detail-card { padding: clamp(1.25rem, 3vw, 2.75rem); }
.question-detail-heading { font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; max-width: 36ch; margin: 1rem 0 1.5rem; overflow-wrap: anywhere; }
.question-detail-source { font-size: 1.0625rem; line-height: 1.75; }
.question-detail-source p, .question-detail-answer p { margin: .75rem 0; }
.question-detail-answer { border: 1px solid var(--line, #c9dcde); border-radius: 1rem; margin-top: 1.75rem; background: var(--surface, #fff); }
.question-detail-answer > summary { padding: 1.2rem 1.35rem; cursor: pointer; font-size: 1.0625rem; font-weight: 750; }
.question-detail-answer > .source-answer, .question-detail-answer > .notice, .question-detail-sources { margin: 0 1.35rem 1.35rem; }
.question-detail-answer > summary:focus-visible, .question-sharing button:focus-visible { outline: 3px solid var(--accent, #168778); outline-offset: 3px; }
.question-detail-rapid { padding: 1.25rem 0 1.75rem; border-bottom: 1px solid var(--line, #c9dcde); margin-bottom: 1.5rem; }
.question-detail-rapid h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.4; }
.question-sharing { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; margin-top: 1.5rem; }
.question-share-status { flex-basis: 100%; margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.question-share-status:empty { display: none; }
.question-share-status input { display: block; width: 100%; min-width: 0; padding: .8rem; margin-top: .5rem; border: 1px solid var(--line, #c9dcde); border-radius: .5rem; font: inherit; }
.question-detail-related { margin-top: 2.5rem; }
.question-detail-related h2, .question-detail-sources h2 { font-size: 1.25rem; }
.question-detail-related ul { list-style: none; padding: 0; display: grid; gap: .75rem; }
.question-detail-related a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line, #c9dcde); border-radius: .75rem; background: #fff; font-size: 1rem; line-height: 1.5; }
@media (max-width: 40rem) {
  .question-detail { padding-top: 1.25rem; }
  .question-sharing .button { width: 100%; }
  .question-detail-answer > summary { padding: 1rem; }
  .question-detail-answer > .source-answer, .question-detail-answer > .notice, .question-detail-sources { margin-left: 1rem; margin-right: 1rem; }
}
