/* Unit planner (Nov 24, 2026) */
.plannersec { padding-top: 40px !important; }
.planner { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.pform { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 20px; box-shadow: 0 3px 0 #D9EAD6, 0 1px 2px rgba(10,30,34,.05), 0 10px 26px rgba(10,30,34,.08); max-height: calc(100vh - 160px); overflow: auto; }
.pq { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.pq legend { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 17px; margin-bottom: 10px; padding: 0; }
.qn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--spruce); color: var(--snow); font-size: 14px; box-shadow: 0 2px 0 #0B2428; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg.stack { flex-direction: column; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 12px; background: var(--snow); border: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.3; box-shadow: 0 3px 0 #D6CCBF; transition: transform .12s ease, box-shadow .12s ease, background-color .15s; }
.seg:not(.stack) span { border-radius: 999px; }
.seg label:hover span { background: #E5F4E4; }
.seg input:checked + span { background: var(--spruce); color: var(--snow); border-color: var(--spruce); box-shadow: 0 3px 0 #0B2428; }
.seg input:focus-visible + span { outline: 3px solid var(--sunrise); outline-offset: 2px; }
.seg label:active span { transform: translateY(3px); box-shadow: 0 0 0 transparent; }
.row { margin-top: 12px; }
.row[hidden] { display: none; }
.num { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 3px 0 #D6CCBF; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--snow); color: var(--spruce); font: 800 20px/1 var(--body); cursor: pointer; }
.stepper button:hover { background: #E5F4E4; }
.stepper button:active { background: #D7EDD5; }
.stepper input { width: 56px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 800 18px/1 var(--display); font-stretch: 108%; color: var(--spruce); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chipsel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chipsel button, .exbtns button { cursor: pointer; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 14px/1.25 var(--body); color: var(--spruce); box-shadow: 0 2px 0 #D6CCBF; transition: transform .12s ease, box-shadow .12s ease, background-color .15s; text-align: left; }
.chipsel button:hover, .exbtns button:hover { background: #E5F4E4; transform: translateY(-1px); }
.chipsel button:active, .exbtns button:active { transform: translateY(2px); box-shadow: none; }
.chipsel button[aria-pressed="true"] { background: var(--glacier); color: #fff; border-color: var(--glacier); box-shadow: 0 2px 0 #3B5649; }
.examples { border-top: 1px dashed var(--line); padding-top: 14px; }
.exh { margin: 0 0 8px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.exbtns { display: flex; flex-wrap: wrap; gap: 6px; }

.presult { min-width: 0; scroll-margin-top: 140px; }
.psum { background: linear-gradient(180deg, #EEF5EC, #F7FAF5); border: 1px solid #CFE2CB; border-radius: 18px; padding: 20px 22px; box-shadow: 0 3px 0 #B9D6B4, 0 1px 2px rgba(10,30,34,.05), 0 10px 26px rgba(10,30,34,.08); margin-bottom: 18px; }
.psum h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; }
.pline { margin: 0 0 10px; color: var(--ink-soft); }
.pnotes { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 6px; }
.pnotes li { position: relative; padding: 8px 12px 8px 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 16px; }
.pnotes li::before { position: absolute; left: 10px; top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.pnotes li.ok::before { content: "✓" / ""; background: var(--glacier); }
.pnotes li.info::before { content: "i" / ""; background: var(--ink-soft); }
.pnotes li.warn::before { content: "!" / ""; background: #B0573E; }
.pnotes li.warn { background: #FBF1EC; border-color: #E3BBAE; }
.pactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pactions .btn { border: 0; cursor: pointer; }
.btn.ghost2 { --edge: #B9AA98; background: #fff; color: var(--spruce); box-shadow: inset 0 0 0 1px var(--line), 0 4px 0 var(--edge); }
.copied { font-size: 15px; color: var(--glacier); font-weight: 700; }

.pclasses { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pclass { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--meadow); border-radius: 16px; padding: 16px 20px 14px; box-shadow: 0 1px 2px rgba(10,30,34,.05), 0 8px 22px rgba(10,30,34,.08); }
.pclass.istest { border-left-color: var(--sunrise); background: linear-gradient(180deg, #FBF6EE, #fff 60%); }
.pchead { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.pcnum { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: var(--spruce); color: var(--snow); font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 21px; box-shadow: 0 3px 0 #0B2428; }
.pcmeta { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.pchead h3 { margin: 2px 0 0; font-size: 20px; }
.pblock { margin: 4px 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--snow); font-size: 15.5px; color: var(--ink-soft); max-width: none; }
.pcpart { margin-top: 8px; }
.pcpart + .pcpart { border-top: 1px dashed var(--line); padding-top: 10px; }
.pctitle { margin: 0 0 4px; font-weight: 700; }
.ptagk { display: inline-block; padding: 1px 9px; border-radius: 999px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; background: #E5F4E4; color: #2E5A3C; box-shadow: 0 2px 0 rgba(10,30,34,.12); }
.ptagk.tag-joined, .ptagk.tag-combined { background: #F1E6D4; color: #6B5230; }
.ptagk.tag-testday { background: var(--sunrise); color: var(--spruce); }
.ptagk.tag-firstclass, .ptagk.tag-secondclass { background: #E3EEE3; color: #2F4A3B; }
.ptagk.tag-extraclass, .ptagk.tag-secondhalf { background: var(--snow); color: var(--ink-soft); }
.pcpart ul { margin: 8px 0 4px; padding-left: 20px; }
.pcpart li { margin: 4px 0; }
.pcpart a, .pafter a { font-weight: 700; }
.pclass .printlinks { margin: 10px 0 0; }
.pafter, .pbetween { margin-top: 18px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(10,30,34,.05), 0 8px 22px rgba(10,30,34,.08); }
.pafter { border-left: 6px solid #B0573E; }
.pbetween { border-left: 6px solid var(--glacier); }
.pafter h3, .pbetween h3 { margin: 0 0 6px; }
.pafter ul, .pbetween ul { margin: 6px 0 0; padding-left: 20px; }
.pafter li, .pbetween li { margin: 5px 0; }
.pempty { padding: 20px; background: #fff; border-radius: 14px; border: 1px dashed var(--line); }

@media (max-width: 900px) {
  .planner { grid-template-columns: 1fr; }
  .pform { position: static; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .seg span, .chipsel button, .exbtns button { transition: none; transform: none !important; } }
@media print {
  .pform, .hero, .pactions, .topbar, footer, .skip { display: none !important; }
  .planner { display: block; }
  .plannersec { padding: 0 !important; }
  .pclass, .psum, .pafter, .pbetween { box-shadow: none !important; break-inside: avoid; }
  .pclass .printlinks a { box-shadow: none; }
}
.qhelp { margin: -4px 0 10px; font-size: 14.5px; color: var(--ink-soft); }
.seg.multi input:checked + span::before { content: "✓" / ""; margin-right: 6px; font-weight: 800; }
.pbands { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 6px; }
.pband { padding: 10px 12px 4px; border-radius: 12px; background: var(--snow); border: 1px solid var(--line); }
.pclass.istest .pband { background: #fff; }
.pbandname { margin: 0 0 6px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.pbandname span { font-family: var(--body); font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.pband ul { padding-left: 18px; margin: 6px 0; font-size: 15.5px; }
.rotex { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.pcov { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 0; }
.pcov span { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }
.pcov b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: #E5F4E4; color: #2E5A3C; font-family: var(--display); font-weight: 800; font-size: 13px; box-shadow: 0 2px 0 #B9D6B4; }
.ptime { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 4px; }
.ptime li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: start; padding: 6px 10px; border-radius: 9px; background: var(--snow); font-size: 15.5px; line-height: 1.4; }
.pband .ptime li { background: #fff; }
.ptime li.act { background: #EEF5EC; box-shadow: inset 3px 0 0 var(--meadow); }
.ptime .pm { font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 13.5px; white-space: nowrap; color: var(--spruce); }
.pactive { margin: 4px 0 2px; font-size: 14px; font-weight: 700; color: #45644F; }

/* Council C7: shorter planner hero so the form starts near the top */
.hero.hero-short { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 64px); }
.hero.hero-short h1 { font-size: clamp(34px, 5vw, 56px); }
