:root {
  color-scheme: light;
  --paper: #f9f8f2;
  --ink: #14332e;
  --muted: #4a6058;
  --line: #cdd7cb;
  --green: #164c42;
  --salmon: #b64e36;
  --gold: #8d5a28;
  --serif: Georgia, serif;
  --sans: system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
button, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--salmon); outline-offset: 4px; }
.skip { position: absolute; z-index: 4; left: 1rem; top: -5rem; background: white; padding: .5rem; }
.skip:focus { top: 1rem; }
.shell { max-width: 77rem; width: calc(100% - 5rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.65rem; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.75rem); }
.site-header nav a, .site-footer a { font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .26em; }
.wordmark { display: inline-flex; align-items: center; gap: .05em; font: 700 1.6rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.wordmark > span:last-child, h1 > span { color: var(--salmon); }
.brand-mark { display: grid; width: 1.95rem; height: 1.95rem; margin-right: .38rem; place-items: center; border-radius: 50%; background: var(--green); color: #fff3d4; font: 1.17rem/1 var(--sans); }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.4rem); }
.eyebrow { color: var(--green); font-size: .88rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; margin: 0 0 .75rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .65em; }
h1 { font-size: clamp(2.65rem, 5.3vw, 5rem); letter-spacing: -.055em; margin-bottom: .28em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.55rem); letter-spacing: -.028em; }
h3 { font-size: 1.35rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40rem; margin: 0 0 1.65rem; }
.hero .lead { max-width: 25rem; }
.button { display: inline-block; border: 1px solid var(--green); border-radius: .45rem; background: var(--green); color: white; padding: .68rem 1rem; text-decoration: none; font-weight: 700; }
.button:hover { background: #0c362f; }
.secondary { background: none; color: var(--green); }
.secondary:hover { background: #e8eee1; }
.hero-art { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1.23; margin: 0; border-radius: 1.15rem; border: 1px solid #c2d0b9; background: radial-gradient(circle at 21% 26%, #f6f4d8 0%, transparent 42%), linear-gradient(128deg,#e7ecd4,#c5d6b9); }
.hero-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#52795721 1px, transparent 1px), linear-gradient(90deg, #52795721 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse at center, #000 3%, transparent 82%); }
.orbit { position: absolute; border: 1px dashed #41655070; border-radius: 50%; width: 76%; height: 57%; left: 12%; top: 20%; transform: rotate(-15deg); }
.orbit-two { transform: rotate(21deg); }
.spark { position: absolute; color: #285d50; font-size: clamp(1.6rem, 4vw, 3.5rem); }
.spark-one { left: 16%; top: 9%; }
.spark-two { right: 12%; bottom: 10%; }
.compass { position: absolute; top: 20%; left: 15%; width: 37%; aspect-ratio: 1; background: #225f68; border-radius: 50%; border: 3px solid #12373b; box-shadow: .48rem .6rem 0 #567f6e5c, inset 0 0 0 .28rem #5d8e86; padding: 2%; transform: rotate(-13deg); }
.compass-face { position: relative; width: 100%; height: 100%; border-radius: 50%; background: #f9efd6; border: 2px solid #183d3b; }
.direction { position: absolute; font-size: clamp(.52rem, 1.7vw, .93rem); font-weight: 700; }
.direction.n { top: 3%; left: 46%; }
.direction.s { bottom: 3%; left: 46%; }
.direction.e { right: 6%; top: 43%; }
.direction.w { left: 6%; top: 43%; }
.needle { position: absolute; left: 41%; top: 20%; width: 18%; height: 60%; background: linear-gradient(#c85d44 50%, #286473 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform: rotate(23deg); }
.pin, .scale-pin { position: absolute; left: calc(50% - .29rem); top: calc(50% - .29rem); width: .58rem; aspect-ratio: 1; border-radius: 50%; background: #f9dc89; border: 1px solid #524529; }
.scale { position: absolute; right: 9%; top: 30%; width: 43%; height: 44%; transform: rotate(9deg); filter: drop-shadow(.32rem .46rem 0 #80775548); }
.scale span { position: absolute; display: block; }
.scale-post { left: 47%; width: 7%; top: 3%; height: 90%; border: 1px solid #76491f; border-radius: .4rem; background: #bc8747; }
.scale-base { left: 26%; width: 49%; height: 12%; bottom: 1%; border: 2px solid #76491f; border-radius: 75% 75% 20% 20%; background: #ce9c57; }
.scale-beam { left: 8%; width: 84%; height: 7%; top: 21%; border-radius: .3rem; background: #9c6833; }
.scale-pin { top: 20%; }
.hanger { top: 24%; width: 29%; height: 46%; background: #825221; clip-path: polygon(50% 0, 100% 100%, 94% 100%, 50% 8%, 6% 100%, 0 100%); }
.hanger-left { left: 1%; } .hanger-right { right: 1%; }
.pan { top: 66%; width: 32%; height: 15%; border: 2px solid #805124; border-radius: 0 0 90% 90%; background: #e4ad55; }
.pan-left { left: 0; } .pan-right { right: 0; }
.art-label { position: absolute; padding: .25rem .8rem; border-radius: .25rem; background: #f8f4dc; color: #274c3c; font-weight: 700; }
.label-norte { left: 16%; bottom: 16%; transform: rotate(-8deg); }
.label-libra { right: 14%; top: 14%; transform: rotate(8deg); }
.subjects { border-top: 1px solid var(--line); padding-block: 2rem 3.5rem; }
.course-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; width: min(100%, 39rem); padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fffef9; text-decoration: none; }
.course-card:hover { border-color: var(--green); background: #f0f3e8; }
.course-icon, .mini-mark { display: grid; place-items: center; border-radius: .45rem; width: 2.65rem; height: 2.65rem; background: #dce8d9; color: var(--green); font-size: 1.35rem; }
.course-card strong { display: block; font-size: 1.22rem; }
.course-card small, .branches small { display: block; color: var(--muted); font-size: .88rem; }
.course-action { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: .24em; }
.hint { color: var(--muted); }
.subpage { min-height: 58vh; padding-block: 2rem 4rem; }
.subpage h1 { font-size: clamp(2.45rem, 5.3vw, 4.5rem); }
.crumbs { display: flex; flex-wrap: wrap; column-gap: .85rem; row-gap: .2rem; margin-bottom: 2rem; color: var(--muted); font-size: .95rem; }
.crumbs > :not(:first-child)::before { content: '/'; margin-right: .8rem; color: #6b8375; }
.unit-grid, .about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.unit-card, .about-grid article { border: 1px solid var(--line); border-radius: .8rem; padding: clamp(1rem, 3vw, 2rem); background: #fffef9; }
.january { background: #edf0e3; }
.status { display: inline-block; border: 1px solid #aebfa8; border-radius: 3rem; color: var(--green); font-weight: 700; font-size: .9rem; padding: .25rem .65rem; }
.unit-nav { display: flex; gap: .35rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; }
.unit-nav a { padding: .64rem .85rem; font-weight: 700; text-decoration: none; border-radius: .45rem .45rem 0 0; }
.unit-nav a:hover { background: #e7eee0; }
.unit-nav a[aria-current] { background: var(--green); color: white; }
.study-panel { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(11rem, 1fr); align-items: start; gap: 1rem; }
.study-content { padding: clamp(1rem, 3vw, 2rem); background: #fffef9; border: 1px solid var(--line); border-radius: .8rem; }
.study-content h2, .study-content h3 { margin-top: .2em; }
.study-content h3 { margin-top: 1.2em; }
.study-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .55rem; }
.study-heading button { padding: .36rem .7rem; }
.study-content details { margin: 1rem 0; }
.study-content summary { width: fit-content; cursor: pointer; font-weight: 700; }
.projecting { grid-template-columns: 1fr; }
.projecting .study-content, .projecting .callout { font-size: clamp(1.2rem, 2.8vw, 2rem); }
.projecting .branches small { font-size: .82em; }
.projecting h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.callout { padding: 1.25rem; background: #e7eee2; border: 1px solid #c3d5c1; border-radius: .8rem; }
.callout h3 { margin: .55rem 0 .2rem; }
.callout p { margin: 0; }
.callout.amber { background: #f4ebd0; border-color: #e2d0a8; }
.callout.amber .mini-mark { background: #ebd8a7; color: #704b27; }
.decision { padding: 1rem; background: #eef4e6; border-radius: .55rem; margin: 1.5rem 0; text-align: center; }
.decision-root { display: table; margin: 0 auto .65rem; padding: .32rem .85rem; border-radius: 2rem; background: var(--green); color: white; }
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.branches div { border: 1px solid #a9bea9; border-radius: .35rem; background: #fdfcf4; padding: .5rem .3rem; }
.branches div:nth-child(2) { border-color: #a86436; background: #f6e6c6; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: .85rem; }
.choice { display: flex; align-items: baseline; gap: .65rem; padding: .65rem; margin: .4rem 0; border: 1px solid var(--line); border-radius: .4rem; cursor: pointer; }
.choice:has(input:checked) { background: #edf3e6; border-color: var(--green); }
.choice input { accent-color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.feedback { background: #eef3e7; border-left: .25rem solid #598671; border-radius: .25rem; padding: .8rem 1rem; margin: 1rem 0; }
.feedback p:last-child { margin-bottom: 0; }
.text-link { display: inline-block; font-weight: 700; margin-top: 1rem; text-underline-offset: .22em; }
.answer-label { display: block; font-weight: 700; }
textarea { display: block; min-height: 5rem; width: 100%; border: 1px solid #9aafa0; border-radius: .4rem; padding: .5rem; resize: vertical; }
.exam-list li { margin-bottom: .35rem; }
.about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 1.5rem; }
.about-grid h2 { font-size: 1.45rem; }
.about-grid p { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); }
@media (max-width: 48rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; padding-block: 2.6rem; }
  .hero-art { max-width: 34rem; }
  .study-panel, .about-grid { grid-template-columns: 1fr; }
  .header-inner, .site-footer .shell { gap: .65rem; }
  .site-footer .shell { flex-wrap: wrap; padding-block: 1rem; }
}
@media (max-width: 31rem) {
  .unit-grid { grid-template-columns: 1fr; }
  .site-header nav { gap: .65rem; font-size: .875rem; }
  .course-card { gap: .6rem; }
  .course-action { font-size: .875rem; }
  .decision { padding: .65rem; }
  .branches small { font-size: .78rem; }
}
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .skip, .crumbs, .unit-nav, .callout, .actions, #exam-solution { display: none !important; }
  .shell { width: 100%; }
  .subpage, .study-content { padding: 0; }
  .study-panel { display: block; }
  .study-content, textarea { border-color: #777; background: white; }
  .study-content { margin: 1rem 0; padding: 1rem; }
}

.skip:focus{top:1rem}.study-panel:not(:has(aside)){grid-template-columns:1fr}.study-content{max-width:74ch}