:root{font-family:system-ui,sans-serif;color:#183c3d;background:#f5f2e9}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1160px;margin:auto;padding:22px}header{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:.9rem}a{color:#165d75;text-underline-offset:4px}h1{font-size:clamp(2.4rem,5vw,4.2rem);line-height:1.07;margin:14px 0}h2{font-size:1.7rem}p,li{line-height:1.65}.hero{display:grid;grid-template-columns:2fr 1fr;align-items:center;gap:15px;padding:25px 0}.hero p{max-width:680px}.eyebrow{font-size:.8rem;font-weight:750;letter-spacing:.08em}.twins{display:flex;align-items:end;justify-content:center}.twins img{width:48%;max-width:170px}.twins img:first-child{width:39%}.panel,.adult{background:#fff;border:1px solid #d6dcd3;border-radius:20px;padding:24px;margin:20px 0}.adult{background:#eef3ed}.tabs,.choices{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}button,select,input,textarea{font:inherit;border:1px solid #809d9b;border-radius:10px;padding:12px;color:#183c3d;background:#fff;min-height:48px;max-width:100%}button{cursor:pointer;font-weight:650}button:hover{background:#e5efe7}button[aria-pressed=true]{background:#1d5857;color:#fff}button:disabled{opacity:.55;cursor:default}:focus-visible{outline:4px solid #dd8b21;outline-offset:3px}label{display:flex;flex-direction:column;gap:8px;margin:10px 0}textarea{min-height:90px;width:100%}figure{margin:12px 0}.art-image{display:block;width:100%;height:460px;object-fit:contain;background:#f0efea;border-radius:8px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:22px}.pair article{min-width:0;border:1px solid #d6dcd3;border-radius:15px;padding:15px}.pair .art-image{height:300px}figcaption,.credit,.small{font-size:.85rem;line-height:1.55}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}details{padding:15px 0;border-bottom:1px solid #d6dcd3}details.adult{padding:22px}summary{font-weight:700;cursor:pointer;min-height:35px}.confirm{display:flex;flex-direction:row;align-items:center}.confirm input{width:23px;flex-shrink:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:.9rem}#pattern svg,.trial-grid svg{max-width:100%;height:auto;display:block}#pattern{max-width:650px;border:1px solid #ccc;border-radius:15px;overflow:hidden}.trial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.trial-grid figure{padding:10px;border:1px solid #ccc;background:#fff}.prompts{padding:8px 20px;background:#f4f5ee;border-radius:10px}[hidden]{display:none!important}#error{color:#8c2318;font-weight:700}footer{font-size:.85rem} @media(max-width:700px){header,main,footer{padding:14px}.hero{grid-template-columns:1fr}.twins{max-width:210px}.panel{padding:18px}.pair,.fields{grid-template-columns:1fr}.art-image{height:380px}.pair .art-image{height:300px}.trial-grid{grid-template-columns:1fr 1fr}h2{font-size:1.4rem}select{width:100%}}
#source-view .source-art{max-width:360px}#source-view svg{width:100%;height:auto}.source-card{border-left:5px solid #b27830;padding:14px 18px;background:#faf8ef;margin:15px 0}.source-meta{font-size:.88rem}#sequence li{padding:15px;margin:12px 0;border:1px solid #c5d4ce;border-radius:12px}#sequence li button{margin:6px}fieldset{border:1px solid #b8c8c2;border-radius:12px;padding:15px}#account-sources label{padding:10px;background:#fff;max-width:320px;flex-direction:row;align-items:center}#account-sources input{width:24px;min-width:24px;min-height:24px}#model-view{padding:18px;background:#f7ecd3;border-left:5px solid #b27830}
#source-view .source-art{float:left;max-width:240px;width:34%;margin:0 22px 14px 0}.source-card::after{content:"";display:block;clear:both}@media(max-width:700px){#source-view .source-art{float:none;width:100%;max-width:220px;margin:0 auto 18px}}

.source-card.has-art{display:grid;grid-template-columns:minmax(140px,240px) minmax(0,1fr);gap:22px;align-items:start}#source-view .source-art{float:none;max-width:240px;width:100%;margin:0}.source-card.has-art::after{display:none}.source-copy{min-width:0}.source-copy h3{margin-top:0}@media(max-width:700px){.source-card.has-art{grid-template-columns:1fr}#source-view .source-art{max-width:220px;margin:auto}}

#local-photo-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}#local-photo-images figure{margin:0;min-width:0;}#local-photo-images img{display:block;width:100%;height:350px;object-fit:contain;background:#edf1e8;}#local-photo-images figcaption{font-size:.9rem;line-height:1.45;}#local-photo-images figcaption a{overflow-wrap:anywhere;}#local-photo-study label{display:block;margin:1rem 0;}#local-photo-study textarea{display:block;width:100%;box-sizing:border-box;min-height:95px;font:inherit;padding:.65rem;}#local-photo-study button,#local-photo-study select{font:inherit;min-height:44px;max-width:100%;white-space:normal;}@media(max-width:760px){#local-photo-images{grid-template-columns:1fr;}}

#locality-builder fieldset label{flex-direction:row;align-items:flex-start;gap:.75rem;font-weight:400}#locality-builder fieldset input[type=checkbox]{width:23px;height:23px;min-height:23px;flex:0 0 23px;padding:0;margin:.2rem 0 0;accent-color:#1d5857}

#local-photo-images img[hidden]{display:none!important}#local-photo-study .local-photo-preparation{display:flex;flex-direction:row;align-items:flex-start;gap:12px}#local-photo-ready{flex:0 0 24px;width:24px;height:24px;min-height:24px;padding:0;margin:3px 0}#local-photo-availability{border-left:4px solid #809d9b;padding-left:12px}

/* Screen-only expanded-teaching reflow: retain every word and print rule. */
@media screen and (max-width:480px){:where(p,li,a,h1,h2,h3,h4,label,legend,button,summary,figcaption){overflow-wrap:anywhere}button{max-width:100%;white-space:normal}fieldset{min-width:0}}

#report-validation{font-weight:700;color:#8a3030;min-height:1.5em;overflow-wrap:anywhere}
