:root{--ink:#263d31;--green:#29513e;--muted:#6a756d;--paper:#faf9f5;--line:#ddE2d7;--sage:#edf0e6}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 "Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ab7533;outline-offset:4px}.wrap{max-width:1200px;margin:auto;padding-left:48px;padding-right:48px}.header{height:118px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;font-size:21px;font-weight:650;line-height:1.05}.brand small{font-size:12px;font-weight:400;letter-spacing:.05em}.brand-icon{font-size:42px;color:var(--green)}nav{display:flex;align-items:center;gap:34px;font-size:14px}nav form{margin:0}.button{border:1px solid var(--green);background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:space-between;gap:30px;padding:15px 23px;border-radius:6px;font-size:15px;font-weight:600;cursor:pointer}.button:hover{background:#183d2b}.button.outline{background:transparent;color:var(--green)}.button.outline:hover{background:var(--sage)}.button.small{padding:10px 21px}.button.full{width:100%;margin-top:8px}.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;padding-top:48px;padding-bottom:66px;align-items:center}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.17em;margin:0 0 25px}.eyebrow span{display:inline-block;width:7px;height:7px;background:#759064;border-radius:50%;margin-right:7px}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:64px;font-weight:400;line-height:1.12;letter-spacing:-2px;margin-bottom:25px}h1 em{font-weight:400;color:#537747}h2{font-family:Georgia,"Times New Roman",serif;font-size:36px;font-weight:400;line-height:1.2;letter-spacing:-.7px}h3{font-size:18px;font-weight:600}.lead{font-size:17px;color:var(--muted);line-height:1.8}.actions{display:flex;align-items:center;gap:26px;margin-top:30px}.text-link{font-size:13px;border-bottom:1px solid #a8b6a1;padding:7px 0}.text-link span{margin-left:10px}.quiet{font-size:11px;color:var(--muted);margin:27px 0 0}.hero-art{min-width:0}.hero-art img{display:block;width:100%;height:auto;border-radius:12.5% / 13.2%}.approach{background:#f0f1eb;padding:57px 0 60px}.section-head{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:0 60px}.section-head .eyebrow{grid-column:1/-1;margin-bottom:16px}.section-head h2{margin-bottom:28px}.section-head>p:last-child{color:var(--muted);font-size:14px;margin-bottom:30px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.cards article{border-top:1px solid #c8d0c0;padding-top:20px}.number{color:#7d8a71;font-size:11px;letter-spacing:.1em;display:block;margin-bottom:18px}.cards h3{margin-bottom:10px}.cards p{font-size:14px;color:var(--muted);margin-bottom:0}.subjects{display:grid;grid-template-columns:1fr 1fr;gap:70px;padding-top:70px;padding-bottom:60px}.subjects .eyebrow{margin-bottom:18px}.subject-list p{border-bottom:1px solid var(--line);padding:18px 0;margin:0;display:flex;align-items:center;gap:20px}.subject-list b{font-size:10px;color:#7d8a71;font-weight:400}.subject-list span{margin-left:auto;color:var(--muted);font-size:12px}.contact{padding-top:35px;padding-bottom:45px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:30px}.contact .eyebrow{margin-bottom:15px}.contact h2{margin-bottom:15px}.contact p{color:var(--muted);font-size:14px}.contact-note{font-size:14px;max-width:340px}.contact-note span{font-size:12px;color:var(--muted)}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding-top:24px;padding-bottom:24px;font-size:11px;color:var(--muted)}.auth-layout{display:grid;grid-template-columns:1fr 1fr;gap:100px;padding-top:65px;padding-bottom:75px;min-height:650px}.auth-intro{padding-top:25px}.auth-intro h1{font-size:58px}.mini-leaf{font-size:100px;line-height:1.5;color:#c3cfb5}.auth-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:36px;align-self:start;box-shadow:0 12px 40px #243a2a05}.pill{display:inline-block;font-size:9px;letter-spacing:.14em;color:#5b7650;background:var(--sage);border-radius:4px;padding:6px 9px;margin-bottom:22px}.auth-card h2{font-size:32px;margin-bottom:9px}.auth-card>p{color:var(--muted);font-size:14px}.field{margin:20px 0}.field label{display:block;font-size:14px;margin-bottom:7px}.field input:not([type=checkbox]){width:100%;min-height:47px;border:1px solid #c9d1c4;background:#fcfcfa;border-radius:5px;padding:10px 12px;color:var(--ink)}.field.check{display:flex;align-items:start;gap:9px}.field.check input{margin-top:6px;accent-color:var(--green)}.field.check label{font-size:12px}.help{font-size:12px!important;color:var(--muted);margin-top:17px}.auth-bottom{border-top:1px solid var(--line);padding-top:20px;margin-top:22px;font-size:12px;color:var(--muted)}.error-summary,.field-error{color:#9a3429;font-size:13px}.error-summary{background:#fff1ed;padding:12px;border-radius:5px}.error-summary ul,.field-error ul{list-style:none;padding:0;margin:0}.setup{max-width:650px;padding-top:45px;padding-bottom:60px}.setup h1{font-size:38px;letter-spacing:-1px}.cabinet{padding-top:50px;padding-bottom:70px;min-height:650px}.cabinet h1{font-size:44px;letter-spacing:-1px;overflow-wrap:anywhere}.stage-note{background:var(--sage);padding:22px 25px;border-radius:8px;margin:30px 0}.stage-note p{font-size:14px;margin:5px 0 0;color:var(--muted)}.cabinet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.cabinet-grid article{background:white;border:1px solid var(--line);padding:25px;border-radius:8px}.cabinet-grid h2{font-size:25px;margin-bottom:10px}.cabinet-grid p{font-size:13px;color:var(--muted);min-height:42px}.soon{font-size:11px;color:#6a756d;background:#f3f4ef;padding:5px 8px;border-radius:4px}.skip{position:absolute;top:-100px;left:20px;background:white;padding:15px;z-index:10}.skip:focus{top:10px}@media(max-width:1000px){.wrap{padding-left:30px;padding-right:30px}.hero{gap:25px}h1{font-size:52px}.actions{flex-wrap:wrap;gap:12px}.auth-layout{gap:45px}.auth-intro h1{font-size:48px}}@media(max-width:700px){.wrap{padding-left:22px;padding-right:22px}.header{height:90px}.brand{font-size:18px}.brand-icon{font-size:34px}nav{gap:12px}.desktop{display:none}.hero{grid-template-columns:1fr;padding-top:36px;padding-bottom:35px;gap:35px}h1{font-size:48px;letter-spacing:-1.5px}.hero .eyebrow{font-size:9px}.lead{font-size:16px}.hero-art{max-width:420px;width:100%;justify-self:center}.section-head,.cards,.subjects,.auth-layout{grid-template-columns:1fr}.section-head{gap:0}.approach{padding:36px 0}.cards{gap:25px}.cards article{padding-top:15px}.number{margin-bottom:12px}h2{font-size:31px}.subjects{gap:10px;padding-top:40px;padding-bottom:40px}.contact{align-items:start;flex-direction:column;gap:10px;padding-top:30px}.footer{gap:15px;flex-direction:column}.auth-layout{padding-top:30px;gap:25px}.auth-intro{padding:0}.auth-intro h1{font-size:40px;margin-bottom:15px}.auth-intro .eyebrow{margin-bottom:14px}.auth-intro .lead{margin-bottom:0}.mini-leaf{display:none}.auth-card{padding:25px}.cabinet h1{font-size:35px}.cabinet-grid{grid-template-columns:1fr}.cabinet{padding-top:32px}.subject-list p{gap:12px;font-size:14px}.subject-list span{font-size:11px}}

/* Student management, using the existing palette and controls. */
.back-link{display:inline-block;color:var(--muted);font-size:13px;margin-bottom:25px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:25px}.page-heading h1{margin-bottom:15px}.page-heading .eyebrow{margin-bottom:15px}.page-heading form{flex-shrink:0}.student-list{border-top:1px solid var(--line);margin-top:30px}.student-row{padding:24px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:25px}.student-row h2{font-size:25px;margin-bottom:5px;overflow-wrap:anywhere}.student-row p{color:var(--muted);font-size:12px;margin:0}.student-actions{display:flex;align-items:center;gap:20px;flex-shrink:0}.danger-link{font-size:13px;color:#963d31;text-decoration:underline;text-underline-offset:4px}.danger-button{background:#963d31;border-color:#963d31}.danger-button:hover{background:#792c23}.empty-state{padding:45px 25px;text-align:center;border:1px dashed #c8d0c0;border-radius:10px;margin-top:30px}.empty-state p{color:var(--muted);font-size:14px}.empty-state h2{font-size:29px}.warning-note{background:#fff2ed;border-left:3px solid #963d31;padding:15px;font-size:14px;margin-bottom:25px}.warning-note p{margin:8px 0 0}.notices{padding-top:20px}.notice{background:var(--sage);border-radius:6px;padding:14px 20px;font-size:14px;margin:0 0 10px}#student-link{font-size:13px}.setup .stage-note{padding:17px}.setup .stage-note p{font-size:13px}.setup .auth-card h1{overflow-wrap:anywhere}@media(max-width:700px){.page-heading,.student-row{align-items:stretch;flex-direction:column}.page-heading form .button{width:100%}.student-actions{flex-wrap:wrap;gap:16px}.student-row{gap:16px}.setup .auth-card h1{font-size:32px}.empty-state{padding:30px 15px}}

/* Question bank: same palette and simple controls. */
.bank-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.bank-search{display:flex;align-items:center;gap:18px;padding:15px 0;border-block:1px solid var(--line);margin:20px 0}.bank-search .field{flex:1;margin:0}.field select,.field textarea{width:100%;border:1px solid #c9d1c4;background:#fcfcfa;border-radius:5px;padding:10px 12px;color:var(--ink);font:inherit}.field textarea{resize:vertical}.question-list{display:grid;gap:18px}.question-card{padding:25px;background:white;border:1px solid var(--line);border-radius:8px}.question-card .pill{margin-bottom:12px}.question-card h2{font-size:24px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.question-card-title:hover h2{text-decoration:underline;text-underline-offset:5px}.section-tags{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 18px}.section-tags span{font-size:11px;color:#537247;padding:4px 9px;background:var(--sage);border-radius:4px}.pagination{justify-content:center;margin:30px 0}.question-editor{max-width:1050px;padding-top:40px;padding-bottom:60px}.question-editor h1{font-size:43px;letter-spacing:-1px}.question-editor .eyebrow{margin-bottom:15px}.question-edit-form{padding:30px}.question-edit-form fieldset{border:0;padding:20px 0;margin:0 0 15px;min-width:0}.question-edit-form legend{font-size:19px;font-weight:600}.section-select #id_sections{display:flex;gap:12px 25px;flex-wrap:wrap}.section-select label{font-size:14px}.section-select input{accent-color:var(--green)}.option-row{display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:7px 0}.option-row .option-text{flex:1;min-width:0}.option-row .field{margin:10px 0}.option-row .check{min-width:100px}.option-row .check.remove-option{min-width:65px;color:var(--muted)}.option-row .check label{margin:0}.option-row input[type=checkbox]{accent-color:var(--green)}.option-editor #add-option{margin-top:20px}.current-question-image img{display:block;max-width:100%;max-height:260px}.question-image{display:block;max-width:100%;max-height:600px;width:auto;height:auto;margin:20px auto 10px}.question-text{font-size:21px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.answer-list{list-style:decimal inside;padding:0}.answer-list li{border:1px solid var(--line);padding:13px 16px;margin:10px 0;border-radius:6px;overflow-wrap:anywhere;white-space:pre-wrap}.answer-list b{display:block;font-size:11px;font-weight:600;margin-top:6px}.answer-list .correct-answer{background:var(--sage);border-color:#a5b89a}.question-detail{margin-top:25px}.question-edit-form ul.errorlist{list-style:none;padding:0;color:#9a3429;font-size:13px}.question-edit-form .error-summary:empty{display:none}@media(max-width:700px){.bank-search{align-items:stretch;flex-direction:column}.bank-search .field{width:100%}.question-editor h1{font-size:34px}.question-edit-form{padding:20px}.option-row{flex-wrap:wrap;gap:0 20px}.option-row .option-text{flex-basis:100%}.option-row .check{margin-top:0}.question-card h2{font-size:21px}.question-text{font-size:18px}.question-card .student-actions{flex-shrink:1;flex-wrap:wrap}.question-card{padding:20px}.section-select #id_sections{flex-direction:column;gap:8px}}

.section-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:25px 0}.section-tile{background:var(--sage);border:1px solid var(--line);border-radius:8px;padding:18px;font-size:19px;overflow-wrap:anywhere}.section-tile span{display:block;font-size:12px;color:var(--muted);margin-top:8px}.section-tile:hover{border-color:#8ba17e}.direct-questions-heading{margin-top:42px}.subsection-select #id_subsections>div{margin:10px 0}.subsection-select #id_subsections>div>label{font-weight:600}.subsection-select #id_subsections label:has(input){font-weight:400;display:block;margin:8px 0}@media(max-width:700px){.section-tiles{grid-template-columns:1fr}}

.import-image{margin:20px 0;padding:15px;border:1px solid var(--line);border-radius:8px}.import-image img{display:block;max-width:100%;max-height:420px;height:auto;margin:auto}.import-image figcaption{font-size:12px;color:var(--muted);margin-top:10px}.import-finish{margin:30px 0}.import-warnings{font-size:13px;color:#81512d;margin:15px 0}.import-warnings summary{cursor:pointer}.needs-review{font-size:12px;color:#91552d}.skipped-import{opacity:.65}.question-card .question-image{max-height:350px}.current-question-image img{margin-bottom:12px}

.matching-table-wrap{overflow-x:auto}.matching-table{width:100%;border-collapse:collapse;font-size:15px;margin:20px 0}.matching-table th,.matching-table td{padding:13px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.matching-table th{background:var(--sage);font-weight:600}.matching-target-list{margin:20px 0}.matching-target-list p{margin:7px 0}.matching-edit-row{display:flex;align-items:start;gap:15px;border-bottom:1px solid var(--line)}.matching-label{width:65px;flex-shrink:0}.matching-text{flex:1;min-width:0}.matching-answer{width:230px}.matching-edit-row .check{margin-top:52px}.question-edit-form [data-add-matching]{margin-top:20px}.source-text{white-space:pre-wrap;font:inherit;overflow-wrap:anywhere}.question-card .matching-table{font-size:14px}@media(max-width:800px){.matching-edit-row{flex-wrap:wrap;gap:0 12px}.matching-text{flex-basis:calc(100% - 80px)}.matching-answer{width:100%}.matching-edit-row .check{margin:5px 0 15px}.matching-table th,.matching-table td{padding:9px}.matching-table{font-size:14px}}

.import-selection { margin-block: 16px; }
.import-selection .button:disabled { background: var(--sage); color: var(--muted); border-color: var(--line); cursor: default; }
.word-select-item { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; cursor: pointer; }
.word-select-item input { accent-color: var(--green); }
.site-settings textarea{width:100%;padding:10px 12px;border:1px solid #c9d1c4;background:#fcfcfa;border-radius:5px;color:var(--ink);font:inherit;resize:vertical}.hero-copy h1,.hero-copy .lead,.brand span:last-child{overflow-wrap:anywhere}



.contact-links{display:flex;flex-wrap:wrap;gap:10px;max-width:100%}
.brand-text{display:grid;gap:4px}.brand-text small{color:var(--muted);letter-spacing:0;line-height:1.25}.teacher-profile{padding-top:34px;padding-bottom:54px;border-top:1px solid var(--line)}.teacher-profile-layout{display:grid;align-items:start;gap:24px}.teacher-profile-layout.has-photo{grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:48px}.teacher-profile-layout img,.teacher-photo-preview{display:block;width:100%;height:auto;border-radius:14px}.teacher-profile-layout h2{margin-bottom:8px}.teacher-signature{font:italic 20px Georgia,serif;color:var(--green);margin-bottom:0}.teacher-photo-preview{max-width:144px}@media(max-width:700px){.teacher-profile-layout.has-photo{grid-template-columns:1fr;gap:22px}.teacher-profile-layout img{max-width:340px}.teacher-profile{padding-bottom:36px}}

@font-face {
  font-family: "Bad Script";
  src: url("fonts/BadScript-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Marck Script";
  src: url("fonts/MarckScript-Regular.ttf") format("truetype");
  font-display: swap;
}
.hero-copy h1, .teacher-story-opening {
  font-family: "Bad Script", Georgia, serif;
  color: var(--green);
}
.hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.35;
  letter-spacing: normal;
}
.hero-copy h1 em { color: inherit; font-style: inherit; }
.teacher-details { padding-inline-start: 1.25em; margin-bottom: 1.5rem; }
.teacher-details li + li { margin-top: .35rem; }
.teacher-story-opening {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.65;
  margin-bottom: .85rem;
}
.teacher-story-paragraph { line-height: 1.65; }
.teacher-profile .teacher-signature {
  margin-inline-start: clamp(1rem, 4vw, 2.5rem);
  font: 400 clamp(2rem, 4vw, 2.75rem)/1.25 "Marck Script", Georgia, serif;
}
.teacher-profile-layout > div { overflow-wrap: anywhere; }

.theory-handout { display:block; width:fit-content; max-width:100%; margin-bottom:24px; }
.theory-handout img { display:block; max-width:100%; height:auto; }
@media(max-width:540px) {
  .student-header { height:auto; min-height:90px; padding-block:12px; flex-wrap:wrap; gap:8px; }
  .student-header nav { flex-wrap:wrap; }
}
