/* GENERATED by scripts/page_weight/make_browse_base.py - do not edit by hand. The rules of css/style.css and
   css/reskin.css that the subject and unit pages (browse.html) use, word for word, in their order. Regenerate after
   a change to either file (unit test u37 says when). */
@import url("https://fonts.googleapis.com/css2?family=Young+Serif&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400..600;1,7..72,400..500&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Andika:ital,wght@0,400;0,700;1,400;1,700&family=Schibsted+Grotesk:wght@400..800&display=swap");

/* ---- from css/style.css ---- */
body {
  opacity: 0;
  animation: page-enter 0.3s ease-out forwards;
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes page-leave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  
  --bg-body: #faf8f5;
  --bg-card: #ffffff;
  --text-primary: #2d2a26;
  --text-secondary: #6b6560;
  --text-muted: #9b9590;
  --border-light: #e8e4df;
  --border-lighter: #f0ece7;

  
  --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 8px 24px rgba(45, 42, 38, 0.1);

  
  --exam-tip-bg: #fffbeb;
  --exam-tip-border: #f59e0b;
  --exam-tip-text: #92400e;

  
  --accent: #2d2a26;
  --accent-light: #f0ece7;
  --accent-badge: #e8e4df;

  
  --content-max: 760px;
  --sidebar-width: 260px;
  --page-max: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
}
html, body {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
}
h1 { font-size: 2.15rem; font-weight: 800; margin-bottom: 0.5em; }
h2 { font-size: 1.55rem; margin-bottom: 0.4em; }
h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
h4 { font-size: 1.05rem; margin-bottom: 0.25em; font-weight: 600; }
p {
  margin-bottom: 1em;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
ul, ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}
li {
  margin-bottom: 0.35em;
}
body.dark-mode {
  --bg-body: #1c1b19;
  --bg-card: #2a2826;
  --text-primary: #e8e4df;
  --text-secondary: #a39e98;
  --text-muted: #7a756f;
  --border-light: #3a3836;
  --border-lighter: #2f2d2b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
  --exam-tip-bg: #332d1f;
  --exam-tip-border: #d97706;
  --exam-tip-text: #fbbf24;
  background-color: var(--bg-body);
}
body.dark-mode img {
  opacity: 0.9;
}
@keyframes drawTick {
  to { stroke-dashoffset: 0; }
}
@keyframes deck-shimmer-bg {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
@keyframes deck-shimmer-sweep {
  from { background-position: 220% 0; }
  to { background-position: -120% 0; }
}
@keyframes deck-card-reveal {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateY(75deg) scale(0.88);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  55% {
    opacity: 1;
    transform: perspective(900px) rotateY(-6deg) scale(1.02);
    box-shadow: 0 16px 40px rgba(45,42,38,0.18);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateY(0) scale(1);
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  }
}
@keyframes kc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes kc-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes narration-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px){
body {
    font-size: 16px;
  }
}
@media (max-width: 600px){
html:root body .revision-tip-popup.rt-sheet .rt-task { padding-right: 0; }
}
@media print{
body {
    background: white;
    color: black;
    font-size: 12pt;
  }
a {
    color: inherit;
    text-decoration: underline;
  }
}
@keyframes sv-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sv-fade-up-damped {
  0%   { opacity: 0; transform: translateY(28px); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes sv-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.sv-legal-footer { text-align: center; padding: 1.5rem 1rem; margin-top: 2rem; border-top: 1px solid #e5e7eb; }
.sv-legal-footer p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.sv-legal-footer a { color: var(--text-muted); text-decoration: underline; }
.sv-legal-footer p.sv-company { font-size: 0.68rem; margin-top: 0.3rem; opacity: 0.8; }
.sv-legal-footer a:hover { color: var(--text-color); }
@keyframes svBubblePop { from { opacity: 0; transform: scale(0.8) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes svShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes sv-tr-pulse { 50% { opacity: 0.45; } }

/* ---- from css/reskin.css ---- */
body[data-skin]{ font-family:var(--font-ui); color:var(--text-primary); background:var(--bg-body); }
body[data-skin="reader"] :is(p,h2,h3,h4,li)[data-narration-id].narration-active{ padding-left:0 !important; }
body[data-skin="reader"]{
  
  --accent:var(--subject-accent,#566a72);
  --accent-light:color-mix(in srgb,var(--accent) 8%,#ffffff);
  --accent-badge:color-mix(in srgb,var(--accent) 15%,#ffffff);
  --bg-body:#f7f6f4; --bg-card:#ffffff;
  --text-primary:#1d1c1a; --text-secondary:#54524d; --text-muted:#7f7c75;
  --border-light:#e6e4e0; --border-lighter:#f0eeea;
  --radius:4px; --radius-sm:3px;
  --font-read:"Literata",Georgia,serif;
  --font-head:"Schibsted Grotesk",system-ui,sans-serif;
  --font-ui:"Schibsted Grotesk",system-ui,sans-serif;
  --read-size:1.22rem; --read-lh:1.78; --head-weight:700; --head-ls:-.02em;
}
@keyframes svExitMicPulse{
  0%,100%{ box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 35%,transparent); }
  50%{ box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 0%,transparent); }
}
body[data-skin="reader"] .bugr-fab{ bottom:1rem !important; right:1rem !important; top:auto !important; left:auto !important; }
@keyframes sv-page-enter-fade{ from{ opacity:0; } to{ opacity:1; } }
body[data-skin="reader"]{ animation:sv-page-enter-fade .3s ease-out both !important; }
body[data-skin="reader"] .bugr-fab{
  position:fixed !important;   
  background:var(--bg-card); color:var(--text-muted);
  border:1px solid var(--border-light);
  box-shadow:0 1px 2px rgba(29,28,26,.05), 0 8px 20px -12px rgba(29,28,26,.2);
}
body[data-skin="reader"] .bugr-fab:hover{
  filter:none; color:var(--accent); border-color:var(--accent);
}
body[data-skin="reader"] .bugr-modal{
  background:var(--bg-card); border:1px solid var(--border-light); border-radius:4px;
  box-shadow:0 1px 2px rgba(29,28,26,.06), 0 24px 48px -22px rgba(29,28,26,.34);
}
body[data-skin="reader"].dark-mode .bugr-modal{ box-shadow:0 1px 2px rgba(0,0,0,.4), 0 24px 48px -22px rgba(0,0,0,.6); }
body[data-skin="reader"] .bugr-header h2{ font-family:var(--font-head); color:var(--text-primary); }
body[data-skin="reader"] .bugr-field > .bugr-label{ font-family:var(--font-ui); color:var(--text-secondary); }
body[data-skin="reader"] .bugr-field .bugr-meta{ color:var(--text-muted); }
body[data-skin="reader"] .bugr-field textarea,
body[data-skin="reader"] .bugr-field input[type="email"]{
  font-family:var(--font-ui); background:var(--bg-card); color:var(--text-primary);
  border:1px solid var(--border-light); border-radius:var(--radius-sm);
}
body[data-skin="reader"] .bugr-field textarea::placeholder,
body[data-skin="reader"] .bugr-field input::placeholder{ color:var(--text-muted); }
body[data-skin="reader"] .bugr-field textarea:focus,
body[data-skin="reader"] .bugr-field input:focus{
  border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent);
}
body[data-skin="reader"] .bugr-screenshot{
  background:color-mix(in srgb,var(--accent) 5%,var(--bg-card)); border-radius:var(--radius-sm); color:var(--text-secondary);
}
body[data-skin="reader"] .bugr-screenshot input[type="checkbox"]{ accent-color:var(--accent); }
body[data-skin="reader"] .bugr-screenshot label{ color:var(--text-secondary); font-family:var(--font-ui); }
body[data-skin="reader"] .bugr-msg{ font-family:var(--font-ui); color:var(--text-muted); }
body[data-skin="reader"] .sv-legal-footer{ border-top:1px solid var(--border-light); }
body[data-skin="reader"] .sv-legal-footer p{ font-family:var(--font-ui); }
body[data-skin="reader"].dark-mode{
  --bg-body:#181614; --bg-card:#211f1c;
  --text-primary:#ece9e4; --text-secondary:#b3aea6; --text-muted:#8a857c;
  --border-light:#36332e; --border-lighter:#2b2925;
  
  --accent:color-mix(in srgb,var(--subject-accent,#566a72) 68%,#fff 32%);
  --accent-light:color-mix(in srgb,var(--accent) 14%,var(--bg-card));
  --accent-badge:color-mix(in srgb,var(--accent) 22%,var(--bg-card));
}
html:has(body[data-skin="reader"].dark-mode){ background:#181614 !important; }
body[data-skin="reader"]{ position:relative; }
body[data-skin="reader"]::before{
  content:""; position:absolute; top:0; left:0; right:0; height:660px; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 80% at 12% -10%, color-mix(in srgb,var(--accent) 34%, transparent), transparent 62%),
    radial-gradient(48% 68% at 90% 0%, color-mix(in srgb,#c4895c 26%, transparent), transparent 58%),
    radial-gradient(54% 66% at 67% -8%, color-mix(in srgb,#5f8a74 22%, transparent), transparent 60%);
  -webkit-mask-image:linear-gradient(to bottom,#000 60%, transparent 100%);
          mask-image:linear-gradient(to bottom,#000 60%, transparent 100%);
  animation:sv-ambient 30s ease-in-out infinite alternate;
}
body[data-skin="reader"].dark-mode::before{ opacity:.72; }
@keyframes sv-ambient{
  from{ transform:translate3d(0,0,0) scale(1); }
  to{   transform:translate3d(-3.5%,2%,0) scale(1.09); }
}
@media (prefers-reduced-motion:reduce){
body[data-skin="reader"]::before{ animation:none; }
}
@media (pointer:coarse){
body[data-skin] .sv-es-go, body[data-skin] .report-error-btn,
  body[data-skin] .bugr-fab, body[data-skin] .sv-tour-replay{ min-height:46px; }
}
@media (max-width:700px){
body[data-skin] .sv-video-dur,body[data-skin] .lesson-progress-summary,body[data-skin] .exam-cd-days,body[data-skin] .report-error-btn,
  body[data-skin] .svtl-worth,body[data-skin] .svtl-name,body[data-skin] .svtl-next span,body[data-skin] .rm-launcher-label,
  body[data-skin] .rm-launcher-count,body[data-skin] .bugr-fab-label,body[data-skin] .sv-tour-replay span,body[data-skin] .header-nav a span,
  body[data-skin] .sidebar-panel-nav a,body[data-skin] .narration-speed,body[data-skin] .sv-es-go,body[data-skin] .audio-tab,
  body[data-skin] .narration-time,body[data-skin] .sv-legal-footer p,body[data-skin] .sv-legal-footer a{font-size:.94rem}
body[data-skin] .sv-legal-footer .sv-company{font-size:.82rem}
html:root body .rm-close{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;top:.25rem;right:.35rem}
html:root body .rm-panel .sidebar-collapsible-toggle{min-height:44px;padding-bottom:0}
html:root body .rm-panel .sidebar-collapsible-toggle span{font-size:.84rem}
html:root body .rm-panel .sidebar-media-item strong{font-size:1rem}
html:root body .rm-panel .sidebar-media-item span{font-size:.94rem}
html:root body .sidebar-podcast-feed-btn{min-height:44px;font-size:.94rem}
html:root body .lightbox-close{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;top:.5rem;right:.5rem}
html:root body .a11y-rd-label{font-size:.84rem}
html:root body .a11y-rd-seg{gap:8px}
html:root body .a11y-rd-opt{min-height:48px;font-size:.94rem}
html:root body .a11y-rd-fonts .a11y-rd-opt{font-size:1rem}
html:root body .a11y-overlay-intensity input[type="range"]{height:44px;background:linear-gradient(var(--border-light),var(--border-light)) center/100% 4px no-repeat}
html:root body .a11y-rd-reset{min-height:44px;font-size:.94rem}
html:root body .a11y-reading-pop .a11y-overlay{position:relative;width:36px;height:36px}
html:root body .a11y-reading-pop .a11y-overlay::before{content:"";position:absolute;inset:-6px;border-radius:50%}
html:root body .a11y-overlay-pop{width:min(92vw,340px)}
html:root body .a11y-overlay-chips{gap:8px}
html:root body .a11y-overlay-pop .a11y-overlay{position:relative;width:36px;height:36px}
html:root body .a11y-overlay-pop .a11y-overlay::before{content:"";position:absolute;inset:-6px;border-radius:50%}
html:root body .a11y-overlay-intensity span{font-size:.84rem}
html:root body .revision-tip-popup .rt-task{padding-right:2.8rem}
html:root body .revision-tip-popup .rt-note-label{font-size:.84rem}
html:root body .ai-tip{font-size:.94rem}
html:root body .term-popup{font-size:.94rem;max-width:min(300px,86vw)}
html:root body .practice-show-marks{min-height:44px;font-size:.94rem}
}
body[data-skin="reader"].dark-mode{
  --bg-body:var(--sv-night-page,#181614); --bg-card:var(--sv-night-card,#211f1c);
  --text-primary:var(--sv-night-ink,#ece9e4); --text-secondary:var(--sv-night-sec,#b3aea6); --text-muted:var(--sv-night-mut,#8a857c);
  --border-light:var(--sv-night-line,#36332e); --border-lighter:var(--sv-night-linel,#2b2925);
}
html:has(body[data-skin="reader"].dark-mode){ background:var(--sv-night-page,#181614) !important; }
