:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --panel: #fffdf9;
  --ink: #2e2330;
  --muted: #695e6c;
  --plum: #442846;
  --lilac: #e8dced;
  --line: #e2d9e2;
  --gold: #ead1a0;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button[hidden], [hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #805289; outline-offset: 4px; }
.hero a:focus-visible, .hero button:focus-visible { outline-color: #f2d69f; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; background: var(--panel); padding: 10px 16px; z-index: 10; }
#simulados, #checklist { scroll-margin-top: 18px; }
.site-header { border-bottom: 1px solid #e9e1e6; }
.header-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 24px/1 var(--serif); white-space: nowrap; letter-spacing: -.035em; }
.brand em { font-weight: normal; color: #784a77; }
.monogram { display: grid; place-items: center; width: 35px; height: 38px; border: 1px solid #bda9c2; border-radius: 18px 18px 7px 7px; color: #68416c; font: italic 22px var(--serif); }
nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 35px); font-size: 13px; font-weight: 600; color: #554459; }
nav a:hover, .nav-button:hover { color: #914b79; }
.nav-button { border: 0; background: none; padding: 6px 0; }
.nav-button span { color: #8a5680; padding-left: 2px; }
.hero { isolation: isolate; min-height: 420px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; position: relative; margin-top: 25px; border-radius: 23px; background: radial-gradient(ellipse at 76% 28%, #694774 0%, transparent 61%), linear-gradient(115deg,#342038 7%,#39263f 58%,#4a3157); color: #fff7eb; box-shadow: 0 14px 38px #36213d16; }
.hero::after { content: ""; position: absolute; inset: 9px; border: 1px solid #e9cbea2c; border-radius: 16px; z-index: -1; pointer-events: none; }
.hero-copy { padding: 44px 0 44px clamp(32px, 5vw, 66px); position: relative; z-index: 2; align-self: center; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .19em; color: #744778; display: flex; align-items: center; gap: 7px; }
.eyebrow span { font-size: 12px; }
.hero-eyebrow { color: #eed6b5; }
.hero h1 { font: 500 clamp(58px, 7.2vw, 104px)/.89 var(--serif); letter-spacing: -.078em; margin: 19px 0 20px; }
.hero h1 em { color: #e7c9e9; font-weight: 400; letter-spacing: -.085em; }
.hero-deck { color: #f0e1f0; max-width: 29ch; font-size: 15px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 43px; padding: 9px 15px; border-radius: 7px; font-size: 13px; font-weight: 680; white-space: nowrap; transition: background-color .18s, color .18s; }
.button-cream { background: #f1dfbc; color: #372639; }
.button-cream:hover { background: #fff2d4; }
.hero-link { color: #f4e6f2; font-size: 13px; border-bottom: 1px solid #d2afd38e; }
.hero-link:hover { color: white; }
.hero-photos { position: relative; min-width: 0; }
.portrait { position: absolute; top: 30px; right: 24%; width: 51%; height: 84%; border: 1px solid #e9cfa6; border-radius: 48% 48% 12px 12px / 34% 34% 12px 12px; padding: 5px; box-shadow: 0 18px 50px #20142875; transform: rotate(3deg); background: #e7cce41c; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: inherit; }
.orbit { position: absolute; width: 75%; height: 63%; border-radius: 50%; border: 1px solid #ead3ec39; top: 16%; right: 10%; transform: rotate(-35deg); pointer-events: none; }
.orbit-two { top: 23%; right: 5%; transform: rotate(-25deg); border-color: #ead3ec20; }
.polaroid { position: absolute; z-index: 2; right: 7%; bottom: 39px; width: 41%; background: #f9eee0; color: #5b385f; border: 0; padding: 7px 7px 10px; transform: rotate(-8deg); box-shadow: 0 13px 28px #26182e76; transition: transform .22s; border-radius: 3px; }
.polaroid:hover { transform: rotate(-4deg) translateY(-4px); }
.polaroid img { width: 100%; aspect-ratio: 1.53; object-fit: cover; object-position: 50% 80%; }
.polaroid span { display: block; padding-top: 8px; text-align: center; font: italic clamp(10px, 1.3vw, 15px)/1.1 var(--serif); }
.photo-note { position: absolute; bottom: 17px; left: 2%; color: #e7c4e8; font: italic 14px var(--serif); transform: rotate(-5deg); }
.sparkle { position: absolute; z-index: 2; color: #f2d598; pointer-events: none; }
.sparkle-one { right: 13%; top: 12%; font-size: 38px; }
.sparkle-two { left: 10%; top: 48%; font-size: 21px; }
.schedule { margin-top: 39px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.section-heading h2 { font: 400 clamp(32px, 4vw, 49px)/1.07 var(--serif); letter-spacing: -.054em; margin-top: 3px; }
.section-aside { color: var(--muted); font-size: 13px; max-width: 32ch; margin-bottom: 1px; }
.schedule-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.exam-card { --card-bg: #f0e4f2; position: relative; min-width: 0; padding: 17px 16px 14px; border: 1px solid #e1d3e6; border-radius: 12px; background: var(--card-bg); }
.exam-card:nth-child(2) { --card-bg: #f4e9e5; border-color: #e8dcd7; }
.exam-card:nth-child(3) { --card-bg: #f3eadb; border-color: #e8dcc6; }
.exam-card:nth-child(4) { --card-bg: #eae3f0; border-color: #e0d5e8; }
.exam-top, .exam-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.exam-top p { font-weight: 750; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #69436d; }
.exam-next { font-size: 9px; border-radius: 999px; background: #59415d; color: #fff9f3; padding: 3px 7px; font-weight: 650; }
.exam-date { display: block; margin-top: 3px; font: 400 42px/1.04 var(--serif); letter-spacing: -.075em; font-variant-numeric: lining-nums tabular-nums; }
.exam-weekday { font-size: 12px; color: #6a546a; margin-top: 3px; }
.exam-foot { border-top: 1px solid #6d4d6928; margin-top: 12px; padding-top: 10px; color: #544357; font-size: 11px; font-weight: 640; }
.coverage { display: grid; grid-template-columns: repeat(4, 10px); gap: 3px; }
.coverage i { width: 10px; height: 5px; border-radius: 10px; background: #76577f33; }
.coverage i.on { background: #785084; }
.study { margin-top: 49px; }
.study-heading { align-items: center; }
.study-sub { margin-top: 7px; color: var(--muted); font-size: 13px; }
.progress-panel { width: 252px; flex-shrink: 0; background: #eee6ef; border: 1px solid #e4d7e6; border-radius: 11px; padding: 12px 14px; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: #5d4263; font-size: 12px; font-weight: 680; }
.progress-label strong { color: #60376b; font-size: 14px; }
progress { appearance: none; display: block; width: 100%; height: 6px; margin: 7px 0; overflow: hidden; border: none; border-radius: 8px; background: #d9cadd; }
progress::-webkit-progress-bar { background: #d9cadd; }
progress::-webkit-progress-value { background: #785082; border-radius: 8px; }
progress::-moz-progress-bar { background: #785082; border-radius: 8px; }
#progress-caption { font-size: 11px; color: #625166; }
.catalog-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px; }
.toolbar { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(150px, .45fr) auto auto; align-items: center; gap: 8px; }
.search-wrap { position: relative; }
.search-icon { position: absolute; left: 13px; top: 13px; width: 12px; height: 12px; border: 1.5px solid #725977; border-radius: 50%; pointer-events: none; }
.search-icon::after { position: absolute; content: ""; width: 6px; height: 1.5px; background: #725977; right: -5px; bottom: -3px; transform: rotate(45deg); }
.toolbar input, .toolbar select { width: 100%; min-width: 0; height: 41px; border: 1px solid #dfd5e0; border-radius: 7px; background: #faf6f9; padding: 0 11px; font-size: 13px; }
.toolbar input { padding-left: 33px; }
.toolbar select { padding-right: 6px; text-overflow: ellipsis; }
.catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 8px; min-height: 37px; color: var(--muted); font-size: 12px; }
.text-button { color: #633971; background: none; border: 0; padding: 1px 0; font-size: 12px; text-decoration: underline; }
.area { border: 1px solid #e6dce6; border-radius: 9px; margin-bottom: 7px; overflow: clip; }
.area:last-child { margin-bottom: 0; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline-offset: -3px; }
.area > summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 10px 13px; gap: 11px; color: #442d48; background: #f7f0f7; }
.area > summary:hover { background: #f0e5f1; }
.area-title { font: 600 17px/1.2 var(--serif); }
.area-status, .group-status { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 11px; color: #6a5470; }
.arrow { flex: 0 0 auto; width: 7px; height: 7px; margin-right: 2px; border-right: 1.5px solid #784f80; border-bottom: 1.5px solid #784f80; transform: rotate(45deg) translateY(-2px); }
details[open] > summary .arrow { transform: rotate(225deg) translate(-2px,-1px); }
.groups { padding: 3px 10px 10px; }
.group > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 39px; padding: 6px 8px; font-weight: 680; font-size: 12px; color: #523459; }
.group:not(:last-child) { border-bottom: 1px solid #ebe3e9; }
.group > summary:hover { background: #faf5f9; }
.rows { padding: 0 5px 4px; }
.topic { border-top: 1px solid #eee7eb; }
.topic-main { display: flex; align-items: center; gap: 9px; padding: 6px 4px; }
.topic-main label { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; line-height: 1.35; cursor: pointer; min-height: 30px; }
.topic-main input { appearance: none; display: grid; place-content: center; width: 17px; height: 17px; flex: 0 0 17px; margin: 0; background: #fffdf9; border: 1px solid #a88cac; border-radius: 4px; cursor: pointer; }
.topic-main input:checked { background: #76517e; border-color: #76517e; }
.topic-main input:checked::after { content: ""; width: 8px; height: 4px; border: solid white; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); }
.topic-main input:checked + .topic-label { color: #66516b; }
.topic-main input:checked + .topic-label .topic-title { text-decoration: line-through; text-decoration-color: #a98aaa; }
.topic-label { min-width: 0; }
.topic-context { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.question-count { display: inline-block; border-radius: 5px; background: #efe6f1; padding: 3px 6px; color: #5d4362; font-size: 11px; white-space: nowrap; }
.details-button { flex: 0 0 30px; border: 1px solid transparent; background: transparent; border-radius: 5px; color: #6d4975; height: 32px; font-size: 17px; }
.details-button:hover { background: #f0e7f1; }
.topic-detail { margin: 0 5px 9px 27px; padding: 9px 11px; color: #5b495e; background: #f8f1f7; border-radius: 6px; font-size: 12px; }
.topic-detail p + p { margin-top: 5px; }
.topic-detail .references { font-size: 11px; color: #69586e; }
.catalog-panel:has(#frequency-note:not([hidden])) #order { border-color: #b79bbb; background: #efe4f0; font-weight: 650; color: #55345e; }
.frequency-note { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 12px 14px; border-radius: 9px; background: #f1e8f2; color: #54365b; }
.frequency-note h3 { font: 600 19px/1.2 var(--serif); }
.frequency-note p { margin-top: 3px; font-size: 12px; color: #614f66; }
.frequency-mark { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #fffaf5; font-size: 19px; }
.frequency-band { border: 1px solid #e7dce7; border-radius: 9px; margin-bottom: 7px; }
.frequency-band:last-child { margin-bottom: 0; }
.frequency-band > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 13px; min-height: 52px; border-radius: 8px; background: #faf5f9; color: #523459; }
.frequency-band > summary:hover { background: #f2e7f2; }
.frequency-band[open] > summary { border-radius: 8px 8px 0 0; border-bottom: 1px solid #e7dce7; }
.band-high > summary { background: #f0e2f0; }
.band-high > summary:hover { background: #ebdaed; }
.frequency-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; }
.frequency-heading strong { font: 600 17px/1.15 var(--serif); }
.frequency-range { font-size: 11px; color: #65446c; white-space: nowrap; }
.frequency-status { display: flex; align-items: center; gap: 10px; color: #654d69; font-size: 11px; white-space: nowrap; }
.frequency-areas { padding: 4px 9px; }
.frequency-area > summary { min-height: 42px; padding-inline: 9px; font-size: 13px; }
.frequency-area[open] > summary { background: #faf5f9; border-radius: 5px; }
.frequency-rows { padding: 0 12px; }
.frequency-rows .topic:first-child { border-top: 0; }
.frequency-rows .topic-main { padding-block: 7px; }
.frequency-rows .topic-main label { min-height: 36px; font-size: 14px; }
.frequency-rows .topic-title { font-weight: 580; }
.frequency-rows .question-count { min-width: 75px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.frequency-rows .details-button { height: 38px; flex-basis: 38px; }
.frequency-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; border-top: 1px solid #eee7eb; }
.frequency-shown { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.frequency-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.frequency-actions .text-button { min-height: 36px; }
.frequency-more { min-height: 36px; border: 1px solid #d9c7dc; border-radius: 6px; background: #f6edf6; color: #55345e; padding: 4px 10px; font-size: 12px; font-weight: 650; }
.frequency-more:hover { background: #eee0ef; }
.empty { padding: 22px 5px; color: var(--muted); text-align: center; }
.storage-note { margin: 8px 2px 0; font-size: 11px; color: var(--muted); }
.intermission { display: flex; align-items: center; gap: 17px; margin-top: 35px; padding: 13px 18px; background: #f4eae0; border: 1px solid #e9dbcc; border-radius: 13px; }
.intermission img { width: 62px; height: 62px; object-fit: cover; object-position: 61% 38%; border-radius: 50%; border: 2px solid #fff9f2; }
.intermission div { flex: 1; }
.intermission h2 { font: italic 24px/1.1 var(--serif); color: #5b3d60; }
.intermission p { margin-top: 4px; font-size: 12px; color: #635363; }
.button-outline { background: transparent; border: 1px solid #bba6b8; color: #5f4165; }
.button-outline:hover { background: #eee1ea; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 25px; padding-block: 17px 24px; color: #6b566f; font-size: 12px; }
.site-footer p span { color: #885582; }
.site-footer a { white-space: nowrap; }
dialog { padding: 16px; width: min(570px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid #dccde0; border-radius: 14px; background: var(--panel); color: var(--ink); box-shadow: 0 18px 60px #22142680; }
dialog::backdrop { background: #241629b8; }
.dialog-top, .gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-top h2 { font: 400 31px var(--serif); letter-spacing: -.04em; }
.icon-button { display: grid; place-items: center; border: 1px solid #ded0df; border-radius: 7px; background: #f7eef6; color: #623c6a; width: 40px; height: 40px; font-size: 20px; }
.icon-button:hover { background: #ebddec; }
.gallery-frame { margin: 12px 0; }
.gallery-frame img { width: 100%; height: min(53dvh,460px); object-fit: contain; background: #35263c; border-radius: 7px; }
.gallery-frame figcaption { text-align: center; color: #5e4165; font: italic 19px/1.25 var(--serif); margin-top: 10px; }
#gallery-position { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .shell { width: calc(100% - 36px); }
  .hero { min-height: 380px; }
  .hero-copy { padding-left: 36px; }
  .portrait { width: 59%; right: 22%; }
  .polaroid { width: 46%; right: 8%; }
  .toolbar { grid-template-columns: minmax(130px,1fr) minmax(120px,.7fr) auto auto; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; flex-wrap: wrap; gap: 9px; padding-block: 9px; }
  .brand { font-size: 21px; gap: 8px; }
  .monogram { width: 27px; height: 30px; font-size: 17px; }
  nav { gap: 11px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; margin-top: 13px; border-radius: 17px; }
  .hero-copy { padding: 29px 24px 9px; }
  .hero h1 { font-size: clamp(55px, 14vw, 75px); margin: 12px 0; }
  .hero-deck { font-size: 13px; }
  .hero-actions { margin-top: 15px; }
  .hero-photos { height: 243px; }
  .portrait { width: min(45%,190px); height: 88%; top: 8px; right: 29%; }
  .polaroid { width: min(41%,171px); right: 12%; bottom: 23px; }
  .photo-note { display: none; }
  .orbit { width: 57%; right: 16%; }
  .sparkle-one { right: 14%; top: 6%; font-size: 28px; }
  .sparkle-two { left: 16%; }
  .schedule, .study { margin-top: 30px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .section-aside { max-width: 42ch; font-size: 12px; }
  .schedule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .exam-card { padding: 12px 10px 10px; }
  .exam-date { font-size: 34px; }
  .exam-weekday { font-size: 11px; }
  .exam-foot { font-size: 10px; }
  .coverage { grid-template-columns: repeat(4,8px); gap: 2px; }
  .coverage i { width: 8px; }
  .progress-panel { width: 100%; }
  .catalog-panel { padding: 8px; }
  .toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search-wrap { grid-column: 1/-1; }
  #area-filter { grid-column: 1/-1; }
  .toolbar input, .toolbar select { font-size: 16px; }
  .toolbar select { font-size: 13px; }
  .area-title { font-size: 15px; }
  .groups { padding-inline: 4px; }
  .question-count { font-size: 10px; }
  .topic-main { gap: 4px; }
  .details-button { flex-basis: 29px; }
  .frequency-note { padding: 10px; gap: 8px; }
  .frequency-note h3 { font-size: 16px; }
  .frequency-band > summary { padding-inline: 9px; }
  .frequency-heading { flex-direction: column; }
  .frequency-areas { padding-inline: 4px; }
  .frequency-area > summary { padding-inline: 5px; font-size: 12px; }
  .frequency-rows { padding-inline: 5px; }
  .frequency-rows .question-count { min-width: 0; }
  .frequency-rows .details-button { flex-basis: 32px; }
  .frequency-footer { padding-inline: 9px; }
  .intermission { flex-wrap: wrap; gap: 10px; margin-top: 23px; }
  .intermission img { width: 46px; height: 46px; }
  .intermission .button { margin-left: 56px; }
  .site-footer { flex-wrap: wrap; }
}
@media (max-width: 365px) {
  .header-inner { justify-content: center; }
  .hero-copy { padding-inline: 18px; }
  .hero-actions { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
