/* Scoped to the research page's thesis directory; uses the site's editorial palette. */
#thesis-program { padding: 2.4rem 0 3rem; border-bottom: 1px solid var(--line); scroll-margin-top: 2rem; }
#thesis-program .thesis-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.8fr); gap: 1rem 3rem; align-items: end; }
#thesis-program .thesis-heading h2 { margin: .6rem 0 .9rem; }
#thesis-program .thesis-heading p:not(.eyebrow) { max-width: 62ch; color: var(--muted); font-size: 1rem; }
#thesis-program .thesis-methods-overview { padding-bottom: .9rem; }
#thesis-program .thesis-snapshot { margin: 1.6rem 0 .65rem; font-size: .8rem; color: var(--muted); }
#thesis-program .thesis-notice { padding: .9rem 1.1rem; border-left: 3px solid #93a78a; background: var(--panel-soft); font-size: .95rem; max-width: 100%; }
#thesis-program .thesis-source-scope { color: var(--muted); font-size: .9rem; max-width: 75ch; margin: .75rem 0; }
#thesis-program .thesis-controls { display: grid; grid-template-columns: minmax(200px,1.6fr) minmax(170px,1fr) minmax(180px,1fr) auto; gap: 1rem; align-items: end; margin-top: 1.7rem; }
#thesis-program .thesis-field { min-width: 0; }
#thesis-program label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; }
#thesis-program input, #thesis-program select { display: block; width: 100%; min-width: 0; min-height: 46px; padding: .65rem .8rem; font-size: 1rem; }
#thesis-program button { min-height: 46px; border: 1px solid #aab6a7; border-radius: 3px; background: var(--panel-soft); color: var(--ink); font-size: .9rem; padding: .65rem 1rem; }
#thesis-program button:hover:not(:disabled) { background: #e0e9da; }
#thesis-program button:disabled { opacity: .5; }
#thesis-program .thesis-results-status { margin: 1.2rem 0; color: var(--muted); font-size: .85rem; scroll-margin-top: 2rem; }
#thesis-program .thesis-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 1.15rem; }
#thesis-program .thesis-card { padding: clamp(1.1rem,2vw,1.8rem); background: var(--panel); border: 1px solid var(--line); border-radius: 3px; min-width: 0; overflow-wrap: anywhere; scroll-margin-top: 2rem; }
#thesis-program .thesis-card:has(details[open]) { border-color: #8ca183; }
#thesis-program .thesis-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; color: var(--muted); font-size: .8rem; margin: 0 0 .9rem; }
#thesis-program .thesis-id { color: var(--accent); font-weight: 700; letter-spacing: .08em; }
#thesis-program h3 { font-size: clamp(1.35rem,2vw,1.75rem); margin: 0 0 .8rem; }
#thesis-program .thesis-coverage-label { display: inline-block; margin: 0; padding: .2rem .5rem; color: #315343; background: var(--panel-soft); font-size: .8rem; border: 1px solid #cfdbc8; border-radius: 2px; }
#thesis-program .thesis-question { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 65ch; margin: 1rem 0; }
#thesis-program .thesis-detail { margin-top: 1.1rem; border-top: 1px solid var(--line); }
#thesis-program summary { cursor: pointer; color: var(--accent); font-size: .9rem; font-weight: 600; padding-block: .8rem; min-height: 46px; scroll-margin-top: 2rem; }
#thesis-program .thesis-detail-body { font-size: 1rem; line-height: 1.7; max-width: 65ch; padding-top: .25rem; }
#thesis-program dl { margin: 0 0 1rem; }
#thesis-program dt { font-size: .8rem; color: var(--accent); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; margin-top: 1.35rem; }
#thesis-program dd { margin: .4rem 0 0; }
#thesis-program h4 { margin: 1.7rem 0 .8rem; font-size: 1.05rem; }
#thesis-program .thesis-sources { list-style: none; padding: 0; margin: 0; }
#thesis-program .thesis-sources li { border-top: 1px solid var(--line); padding-block: 1rem; }
#thesis-program .thesis-source-link, #thesis-program .thesis-source-title { font-weight: 600; }
#thesis-program .thesis-source-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; overflow-wrap: anywhere; }
#thesis-program .thesis-source-link:hover { text-decoration-thickness: .12em; }
#thesis-program .thesis-source-access { color: var(--accent); font-size: .8rem; margin: .6rem 0; }
#thesis-program .thesis-source-note { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: .5rem 0; }
#thesis-program .thesis-permalink { display: inline-block; font-size: .8rem; margin-top: .8rem; }
#thesis-program .thesis-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; font-size: .85rem; }
#thesis-program .thesis-pagination[hidden] { display: none; }
#thesis-program .thesis-empty { grid-column: 1/-1; padding: 1.5rem; border: 1px dashed #9ba994; }
#thesis-program .thesis-empty p { font-size: 1rem; color: var(--muted); }
#thesis-program :focus-visible, #thesis-program [tabindex="-1"]:focus { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1000px) {
  #thesis-program .thesis-controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  #thesis-program .thesis-heading, #thesis-program .thesis-results { grid-template-columns: 1fr; }
  #thesis-program .thesis-heading { gap: 0; }
}
@media (max-width: 480px) {
  #thesis-program .thesis-controls { grid-template-columns: 1fr; }
  #thesis-program .thesis-pagination { gap: .7rem; }
}
