body.study { background: var(--paper); color: var(--ink); font-family: "Inter","Segoe UI",Arial,sans-serif; }
.study header.bar { background: #fffdf4; padding: 0; overflow: visible; box-shadow: none; border-bottom: 2px solid var(--ink); }
.study .mast nav a,.study .mast .brand { color: var(--ink); }
.study .workspace-intro { background: #ffdf97; border-bottom: 2px solid var(--ink); }
.workspace-intro-inner { display: flex; align-items: center; gap: 1.25rem; width: min(1180px,90%); margin: auto; padding: 1.6rem 0; }
.workspace-intro small { color: #37594e; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.workspace-intro h1 { color: var(--ink); font-size: clamp(2rem,5vw,3.8rem); margin: .3rem 0; }
.workspace-intro p { color: var(--text); }
.workspace-symbol { width: clamp(3rem,7vw,5rem); flex: none; }
.study main { width: min(1180px,90%); padding: 1.25rem 0 3rem; margin: auto; }
.study .section-nav,.study .topbar,.study .app-panel,.study .revision-tools,.study .essay-studio,.study .link,.study .path {
  color: var(--ink); border: 2px solid var(--ink); border-radius: 1rem; box-shadow: 3px 3px 0 #50645b; background: #fffdf6;
}
.study .revision-tools { background: #e3f1e6; }
.study .section-nav { align-items: stretch; background: #fff4cd; }
.study .section-nav a { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 750; background: #fffdf4; border: 1px solid #768b80; border-radius: .6rem; }
.study .section-nav a:hover { background: #c6ead4; }
.study .section-nav .lab-icon { width: 1.55rem; height: 1.55rem; }
.study :is(h1,h2,h3,.topic strong) { font-family: var(--display); font-weight: 800; color: var(--ink); }
.study h2 { font-size: clamp(1.65rem,3.5vw,2.4rem); }
.study h3 { font-size: 1.3rem; }
.study .topic { text-align: left; background: #fffdf6; border: 2px solid var(--ink); border-radius: .85rem; box-shadow: 2px 3px 0 #66796d; }
.study .topic .lab-icon { width: 2.5rem; height: 2.5rem; margin-bottom: .25rem; }
.study .topic strong { font-size: 1.15rem; letter-spacing: -.035em; }
.study .topic .code,.study .topic small { color: #3d6056; }
.study .topic.active,.study .topic:hover { background: #c9e8d3; color: var(--ink); }
.study .topic.active strong,.study .topic:hover strong,.study .topic.active small,.study .topic:hover small,.study .topic.active .code { color: var(--ink); }
.study .year-tabs button,.study .topbar button,.study .compare-grid button,.study .chip,.study .top-link,.study .pager button {
  color: var(--ink); background: #fff4d4; border: 1.5px solid #425e55; border-radius: .65rem; font-weight: 700;
}
.study .year-tabs .active,.study #compare-go { background: var(--teal); color: #fff; border-color: var(--ink); }
.study #links { display: grid; }
.study .link .why,.study .essay-guide { background: #e3f1e5; border-left-color: #428174; }
.study .count-badge { background: #ffe19a; color: var(--ink); }
.study .essay-studio { padding: clamp(1rem,2.4vw,1.65rem); }
.study .essay { border-color: #a6b7a8; background: #fffdf7; }
.study :is(input:not([type=checkbox]),select,textarea) { background-color: white; border: 1.5px solid #70867b; color: var(--ink); border-radius: .55rem; }
.study .foot { background: #dcebd9; color: var(--ink); }
.study .page-image { background: var(--teal); border: 2px solid var(--ink); border-radius: 1rem; }
.study .page-image strong,.study .page-image p { color: white; }
@media(max-width:650px){
  .study .section-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); position: static; }
  .study .section-nav a { padding: .2rem; font-size: .81rem; }
  .study .section-nav .lab-icon { width: 1.2rem; height: 1.2rem; }
}

.study select {
  appearance: none;
  padding-inline-end: 2.1rem;
  background: white url("/assets/dropdown.svg") right .55rem center / 1.15rem no-repeat;
}
.study .essay > summary { position: relative; padding-inline-end: 2.5rem; }
.study .essay > summary::before {
  position: absolute;
  inset-inline-end: .85rem;
  top: 50%;
  translate: 0 -50%;
  margin-inline-end: 0;
}
.study .essay > summary::after { content: none; }
@media (forced-colors: active) {
  .study select {
    appearance: auto;
    background-image: none;
    padding-inline-end: 13px;
  }
}
