/* A live research notebook within the existing orange and paper identity. */
.research-tabs{gap:1.8rem;margin:0 0 2rem;border-bottom:1px solid var(--rule)}
.research-tabs [role=tab]{flex:0 1 auto;padding:.9rem .1rem;font-size:1rem;color:var(--muted)}
.research-tabs [role=tab][aria-selected=true]{background:transparent;color:var(--brand)}
.research-panel[hidden]{display:none}
.study-plan a{text-decoration:underline;text-underline-offset:.2em}
.study-document{max-width:1180px;margin:auto}
.study-document h1{font-size:clamp(2.6rem,5.2vw,5rem);line-height:1.08;letter-spacing:-.045em;font-weight:550;max-width:1000px;margin:1rem 0 1.5rem}
.study-document h1 em{color:var(--brand)}
.study-deck{max-width:730px;font-size:1.1rem;line-height:1.7;color:var(--muted);padding-bottom:2rem;border-bottom:1px solid var(--rule)}
.study-document-body{max-width:810px;font-size:1rem;line-height:1.8;color:var(--muted)}
.study-document-body h2{font-size:1.6rem;letter-spacing:-.025em;line-height:1.3;margin:2.4rem 0 1rem;color:var(--ink)}
.study-document-body p{margin:1rem 0}.study-document-body ul,.study-document-body ol{padding-left:1.4rem;margin:1rem 0}
.study-document-body li+li{margin-top:.8rem}.study-document-body strong{color:var(--ink)}
.study-document-body a:not(.button){text-decoration:underline;text-underline-offset:.2em;overflow-wrap:anywhere}
.study-table-wrap{overflow-x:auto;margin:1.5rem 0}.study-table-wrap table{border-collapse:collapse;width:100%;font-size:.95rem}
.study-table-wrap caption{text-align:left;color:var(--brand);font-size:.875rem;margin-bottom:.7rem}
.study-table-wrap th,.study-table-wrap td{text-align:left;padding:.8rem;border-bottom:1px solid var(--rule);vertical-align:top}
.study-table-wrap th{font-weight:600;color:var(--ink)}
#current-research{scroll-margin-top:120px}
.current-study{background:var(--sheet);border:1px solid var(--rule);border-top:5px solid var(--brand);padding:2.8rem;box-shadow:7px 7px 0 #e5e5e5}
.study-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:2rem}
.study-meta .small-label{font-size:.8rem;color:var(--muted)}
.study-status{font-size:.875rem;border:1px solid #cccccc;padding:.4rem .7rem;background:#ffffff;color:#8b320f;line-height:1.5}
.study-intro{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:3.5rem;margin-bottom:1.8rem}
.study-kicker{font-size:.875rem;color:var(--muted);margin-bottom:1.1rem}
.study-intro h3{font-size:clamp(2.5rem,4.5vw,4.4rem);line-height:1.05;font-weight:550;letter-spacing:-.045em}
.study-intro h3 em{color:var(--brand)}
.study-question{padding:1.6rem 1.8rem;border-left:3px solid var(--brand);background:#ffffff;rotate:1deg}
.study-question p{font-family:Georgia,serif;font-size:1.55rem;line-height:1.35;letter-spacing:-.025em}
.study-question span{display:block;font-size:.95rem;line-height:1.6;margin-top:1rem;color:var(--muted)}
.study-description{font-size:1.05rem;line-height:1.75;max-width:72rem;color:var(--muted)}
.study-lenses{display:grid;grid-template-columns:1fr 1fr;margin:2.2rem 0 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.study-lenses>div{padding:1.7rem 2rem 1.7rem 0}.study-lenses>div+div{border-left:1px solid var(--rule);padding-left:2rem;padding-right:0}
.study-lenses .small-label{font-size:.8rem;color:var(--muted)}
.study-lenses h4,.study-contribute h4{font-size:1.45rem;line-height:1.25;letter-spacing:-.025em;font-weight:550;margin:.75rem 0}
.study-lenses p{font-size:1rem;line-height:1.75;color:var(--muted);max-width:34rem}
.study-plan{margin:0;border-bottom:1px solid var(--rule)}
.study-plan summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 0;cursor:pointer;font-weight:550;font-size:1rem}
.study-plan summary::-webkit-details-marker{display:none}.study-plan summary span{font-size:1.6rem;color:var(--brand)}.study-plan[open] summary span{rotate:45deg}
.study-plan>div{padding:0 0 1.5rem;font-size:1rem;line-height:1.75;color:var(--muted);max-width:64rem}
.study-plan ul{padding-left:1.2rem;margin:0 0 1.2rem}.study-plan li+li{margin-top:.5rem}
.study-contribute{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin:1.8rem 0}
.study-contribute h4{margin:0 0 .5rem}.study-contribute p{max-width:42rem;font-size:1rem;color:var(--muted)}
.study-contribute .button{flex-shrink:0}
.study-transparency{font-size:.875rem;line-height:1.7;color:var(--muted);border-top:1px solid var(--rule);padding-top:1.2rem}
#research-story-dialog{width:min(720px,calc(100vw - 2rem));overscroll-behavior:contain}
#research-story-dialog h2 em{color:var(--brand)}
.story-form-note{font-size:.875rem;color:var(--muted);line-height:1.65;margin-top:-.3rem}
.story-permission{padding:1rem;border-left:2px solid var(--brand);background:#ffffff;font-size:.875rem;line-height:1.65}
#story-email-preview{padding-top:1.3rem;border-top:1px solid var(--rule);font-size:.95rem;line-height:1.65}
#story-email-preview[hidden]{display:none}#story-email-preview a:not(.button){text-decoration:underline}
#story-email-preview .button{margin:1rem 0 .5rem}#story-email-copy{font-size:.875rem}#story-copy-status{font-size:.875rem;margin-left:.7rem}
@media(max-width:1000px){.current-study{padding:2rem}.study-intro{gap:2rem}.study-question{padding:1.3rem}.study-contribute{align-items:flex-start;flex-direction:column;gap:1.3rem}}
@media(max-width:650px){
  #current-research{scroll-margin-top:145px}
  .research-tabs{gap:1.5rem;margin-bottom:1.5rem}.research-tabs [role=tab]{font-size:.95rem}
  .current-study{padding:1.35rem;box-shadow:5px 5px 0 #e5e5e5}.study-meta{margin-bottom:1.7rem;gap:.6rem}.study-status{font-size:.8rem}
  .study-intro{grid-template-columns:1fr;gap:1.6rem}.study-intro h3{font-size:2.7rem}.study-kicker{margin-bottom:.8rem}.study-question p{font-size:1.35rem}
  .study-description{font-size:1rem}.study-lenses{grid-template-columns:1fr;margin-top:1.7rem}
  .study-lenses>div,.study-lenses>div+div{padding:1.4rem 0;border-left:0}.study-lenses>div+div{border-top:1px solid var(--rule)}
  .study-contribute .button{width:100%}.study-transparency{font-size:.875rem}
}
