:root{color-scheme:light;font:16px/1.65 "Inter","PingFang SC","Microsoft Yahei",sans-serif;color:#172e33;background:#f4f7f7;--ink:#124f52;--line:#d6e2e1}*{box-sizing:border-box}body{margin:0}header{min-height:66px;background:#103c42;color:#eaf4f3;display:flex;align-items:center;gap:1rem;padding:0 max(5vw,calc((100vw - 900px)/2))}header strong{font:700 1.25rem/1.2 "IBM Plex Mono",monospace;letter-spacing:.09em}header span{padding-left:1rem;border-left:1px solid #668388}main{max-width:940px;margin:auto;padding:2.8rem 1.25rem 4rem}h1,h2,h3,p{margin:0 0 .75rem}h1{font-size:clamp(1.8rem,4vw,2.65rem);line-height:1.24;letter-spacing:-.04em}h2{font-size:1.25rem}h3,legend{font-size:1rem;font-weight:650}.intro{margin-bottom:1.65rem}.eyebrow{font-size:.9rem;color:var(--ink);font-weight:650;letter-spacing:.03em}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:clamp(1rem,3vw,1.6rem);margin:1rem 0}.bar,form#create,.person{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem}.bar{justify-content:space-between}.bar h2{margin:0}.person{border-top:1px solid var(--line);padding:1rem 0}.person:first-child{margin-top:1rem}.person input{min-width:7rem;flex:1}.person span{color:#456366}input,textarea,button{font:inherit}input,textarea{padding:.5rem .7rem;border:1px solid #9aafaf;border-radius:7px}input[type=number]{width:5rem}textarea{width:100%;display:block;min-height:4.4rem}button{background:var(--ink);color:white;font-weight:650;cursor:pointer;border:1px solid transparent;border-radius:8px;padding:.55rem 1rem}button.light{background:white;border-color:#a9bdbb;color:var(--ink)}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #bd781b;outline-offset:3px}fieldset{border:0;padding:0;margin:1.25rem 0}legend{margin-bottom:.45rem}.choice{display:flex;gap:.6rem;padding:.45rem .7rem;align-items:baseline;background:#f4f7f7;margin:.3rem 0;border-radius:6px}.choice input{accent-color:var(--ink)}summary{cursor:pointer;color:var(--ink);font-weight:650}.material{white-space:pre-wrap;overflow-wrap:anywhere;margin:.5rem 0 1.4rem}.steps{display:flex;gap:5px;margin:.8rem 0 1.4rem}.steps i{flex:1;max-width:52px;height:4px;background:#d6e2e1}.steps i.on{background:#247775}#notice{color:#8a412a}a{color:var(--ink)}@media(max-width:600px){main{padding-top:1.6rem}.person input{width:100%}}
.source{margin-top:.8rem;border-top:1px solid var(--line);padding-top:.65rem}.source summary{color:#254348}.source .material{margin:.5rem 0;line-height:1.7}
.question-note{color:#456366;margin-top:-.25rem}.question-card{border:1px solid var(--line);border-radius:10px;padding:1rem 1rem .75rem;margin:1rem 0;background:#fbfdfd}.question-card legend{font-size:1.05rem;line-height:1.5;padding:0}.question-context{margin:.8rem 0 1rem;padding:.65rem .8rem;background:#f1f7f6;border-radius:7px}.question-context h3{font-size:.9rem;margin:0 0 .25rem}.context-location{font-size:.92rem;color:#456366;margin:0}.background{margin-top:.55rem;padding-top:.55rem;border-top:1px solid #d6e2e1}.background-section{border-top:1px solid #d6e2e1;margin-top:.65rem;padding-top:.55rem}.background-section:first-of-type{border-top:0;margin-top:.3rem}.background-section h3{color:#254348}.question-card fieldset{margin:0}.question-card .choice{background:white}
.schedule{flex-basis:100%;font-size:.9rem}.schedule ol{padding-left:1.5rem;color:#456366}
.question-card .choice{flex-wrap:wrap}.choice-detail{flex-basis:100%;margin:.35rem 0 0 1.35rem;min-height:3.8rem}.choice-detail:disabled{display:none}
.field-guidance{margin:.7rem 0;padding:.65rem .8rem;background:#fff8e8;border-left:3px solid #bd781b;color:#5c4a27;font-size:.92rem}
.study-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(20rem,.85fr);gap:1.25rem;align-items:start}.study-layout>.card{margin:0}.role-materials{position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow:auto}.role-materials .source{margin-top:1rem}.role-materials .source:first-of-type{margin-top:.5rem}.material-facts{display:grid;grid-template-columns:minmax(5.5rem,.28fr) minmax(0,1fr);column-gap:.8rem;row-gap:.55rem;margin:.65rem 0}.material-facts dt{font-weight:650;color:#285457}.material-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.material-facts dd:not(:first-of-type){border-top:1px solid #edf2f1;padding-top:.55rem}.material-statement{margin:.65rem 0}.material-list{margin:.45rem 0;padding-left:1.25rem}.material-list li{margin:.25rem 0}.material-rich p{margin:.45rem 0;white-space:pre-wrap;overflow-wrap:anywhere}.material-rich h4{font-size:.97rem;margin:1rem 0 .35rem;color:#285457}.material-rich h4:first-child{margin-top:.35rem}.interaction-panel{min-width:0}.choice-guidance{margin-top:.75rem}.question-card .choice-detail{order:2}.question-card .choice{align-items:flex-start}.question-card .choice input{margin-top:.35rem}@media(max-width:820px){.study-layout{grid-template-columns:1fr}.role-materials{position:static;max-height:none}.interaction-panel{margin-top:0}}
main.answering {
  max-width: 1420px;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}
.study-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.5vw, 2rem);
}
.study-answers, .role-materials, .question-card { min-width: 0; }
main:not(.answering) .role-materials {
  position: static;
  max-height: none;
}
.question-card { overflow-wrap: anywhere; }
.answer-options {
  display: grid;
  gap: .55rem;
}
.answer-option {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.answer-option.selected {
  border-color: #247775;
  background: #f0f7f5;
}
.answer-option .choice {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: .6rem;
  margin: 0;
  padding: .65rem .8rem;
  background: transparent;
  cursor: pointer;
}
.choice-label { display: block; }
.choice-help {
  display: block;
  color: #456366;
  margin-top: .12rem;
  font-size: .87rem;
}
.answer-option .choice-detail {
  width: calc(100% - 3.2rem);
  margin: 0 .8rem .75rem 2.4rem;
  resize: vertical;
}
.choice-detail[hidden] { display: none; }
@media (max-width: 820px) {
  .study-layout { grid-template-columns: minmax(0, 1fr); }
}
.study-layout .role-materials { grid-column: 1; grid-row: 1; }
.study-answers { grid-column: 2; grid-row: 1; }
.persona .material-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.persona .material-facts dd { padding: 0; border: 0; }
.visible-source:focus, .material-facts dt:focus, .file-facts dt:focus { outline: 2px solid #247775; outline-offset: 3px; }
.file-facts { margin: 0; }
.file-facts > div { border-bottom: 1px solid #e7eeed; padding: .5rem 0; }
.file-facts > div:last-child { border-bottom: 0; }
.file-facts dt { font-weight: 650; overflow-wrap: anywhere; }
.file-column-gloss { display: block; margin: .12rem 0 .18rem; color: #285457; font-weight: 500; }
.file-facts dd { margin: 0; display: flex; gap: .15rem .65rem; flex-wrap: wrap; color: #456366; overflow-wrap: anywhere; }
.material-link { display: inline-block; background: transparent; color: var(--ink); padding: .18rem 0; text-align: left; text-decoration: underline; }
.context-location { margin: .24rem 0; }
.context-location strong { display: inline-block; margin-right: .55rem; color: #254348; }
@media (max-width: 820px) {
  .study-layout .role-materials, .study-answers { grid-column: auto; grid-row: auto; }
}
.study-main {
  max-width: 1420px;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}
.study-main #notice:empty { display: none; }
.study-main #view > h1 {
  font-size: 1.65rem;
  letter-spacing: 0;
}
.case-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  margin-bottom: .65rem;
}
.case-bar h2 { margin: 0; }
.case-bar span { color: #456366; margin-right: auto; }
.case-navigation {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
  margin-bottom: 1.6rem;
}
.case-tab {
  min-width: 0;
  text-align: left;
  padding: .55rem .7rem;
  color: #172e33;
  background: white;
  border-color: var(--line);
}
.case-tab strong, .case-state { display: block; }
.case-tab[aria-current], .case-tab:hover { background: #e7f1ef; border-color: #247775; }
.case-state { font-size: .85rem; font-weight: 500; color: #456366; }
.case-state.question { color: #784412; font-weight: 650; }
.case-state.error { color: #923d2e; }
@media (max-width: 760px) {
  .case-navigation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .case-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
