/* =============================================================================
   PlacementFlow — student Opportunities (research.html), O4 + O4.1.
   Owner-approved 28 Oct 2026: O4 Home, O4.1 Longitudinal Browse (full-width
   rows in monthly deadline sections), O4 Detail and O4 Saved.

   Composed from the approved design candidate (design worktree revision
   56bcd1491, tools/opportunities-variants-review: core/ov-core.css,
   o4/o4.css, o41/o41.css). Only the scoping changed — the candidate's
   body.ov-page / body.ov-o4 / body.ov-o41 became body.research-page — and the
   rules for primitives O4 never renders were dropped. Class names are the
   candidate's so the approved evidence stays comparable. Production-only
   additions are at the end of the file.
   ============================================================================= */

/* ---- shared primitives (core) ---- */
body.research-page {
  --ov-ink: #16233f; --ov-navy: #081f47; --ov-body: #1b2740; --ov-slate: #5d6b84; --ov-mist: #8a97ad;
  --ov-rule: #dfe4ec; --ov-rule-soft: #eaeef4; --ov-ground: #f6f8fc; --ov-sheet: #fff;
  --ov-brand: #1f6fd6; --ov-brand-2: #1559b0; --ov-tint: #eaf2fd;
  --ov-open: #137a40; --ov-open-tint: #e4f5eb; --ov-closing: #8a5208; --ov-closing-tint: #fdf1df;
  --ov-upcoming: #1559b0; --ov-upcoming-tint: #eaf2fd; --ov-closed: #5d6b84; --ov-closed-tint: #eef1f6;
  --ov-unconfirmed: #6b4c2a; --ov-unconfirmed-tint: #f7efe6; --ov-full: #7a3d6b; --ov-full-tint: #f6eaf2;
  --ov-ease: cubic-bezier(.16, 1, .3, 1); --ov-quick: 110ms; --ov-base: 170ms;
  --ov-font: var(--font-application-ui, "IBM Plex Sans", -apple-system, system-ui, sans-serif);
  color: var(--ov-ink);
}
body.research-page #ov-page { font-family: var(--ov-font); font-size: 15px; line-height: 1.55; color: var(--ov-body); }
body.research-page #ov-page *, body.research-page #ov-page *::before, body.research-page #ov-page *::after { box-sizing: border-box; }
body.research-page #ov-page h1, body.research-page #ov-page h2, body.research-page #ov-page h3, body.research-page #ov-page p, body.research-page #ov-page ul, body.research-page #ov-page dl { margin: 0; }
body.research-page #ov-page ul { list-style: none; padding: 0; }
body.research-page #ov-page button, body.research-page #ov-page input, body.research-page #ov-page select { font-family: inherit; font-size: inherit; }
body.research-page #ov-page a { color: inherit; text-decoration: none; }
body.research-page #ov-page svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
body.research-page #ov-page ::selection { background: #d9e9ff; color: var(--ov-navy); }
body.research-page #ov-page :focus-visible { outline: 2px solid var(--ov-brand); outline-offset: 3px; }
body.research-page #ov-page [tabindex="-1"]:focus { outline: 0; }
body.research-page #ov-page input { caret-color: var(--ov-brand-2); }
body.research-page #ov-page input::placeholder { color: #61758b; opacity: 1; }
body.research-page #ov-page [hidden] { display: none !important; }
body.research-page .ov-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.research-page .ov-num { font-variant-numeric: tabular-nums; }

/* ---- buttons ---- */
body.research-page #ov-page .ov-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; text-decoration: none; transition: background-color var(--ov-base), color var(--ov-base), transform var(--ov-quick) var(--ov-ease), box-shadow var(--ov-base); }
body.research-page #ov-page .ov-btn svg { width: 17px; height: 17px; }
body.research-page #ov-page .ov-btn--primary { background: var(--ov-navy); color: #fff; }
body.research-page #ov-page .ov-btn--primary:hover { background: #12489e; }
body.research-page #ov-page .ov-btn--primary:active { transform: translateY(1px); }
body.research-page #ov-page .ov-btn--secondary { background: #fff; color: var(--ov-ink); border-color: #c7d1e0; }
body.research-page #ov-page .ov-btn--secondary:hover { background: #f1f4f9; }
body.research-page #ov-page .ov-btn--ghost { background: transparent; color: var(--ov-brand-2); border-color: transparent; padding-left: 12px; padding-right: 14px; }
body.research-page #ov-page .ov-btn--ghost:hover { background: var(--ov-tint); }
body.research-page #ov-page .ov-btn[disabled] { opacity: .55; cursor: not-allowed; }
body.research-page #ov-page .ov-link { color: var(--ov-brand-2); font-weight: 500; text-decoration: none; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
body.research-page #ov-page .ov-link:hover { text-decoration: underline; }
body.research-page #ov-page .ov-link svg { width: 15px; height: 15px; }



/* ---- save (bookmark) ---- */
body.research-page .ov-save { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; min-width: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ov-slate); font-weight: 500; font-size: 13.5px; cursor: pointer; transition: color var(--ov-base), background-color var(--ov-base), transform var(--ov-quick) var(--ov-ease); }
body.research-page .ov-save svg { width: 18px; height: 18px; }
body.research-page .ov-save:hover { background: #f1f4f9; color: var(--ov-ink); }
body.research-page .ov-save:active { transform: scale(.96); }
body.research-page .ov-save.is-on { color: var(--ov-brand-2); }
body.research-page .ov-save.is-on:hover { background: var(--ov-tint); }
body.research-page .ov-save.ov-save--icon { padding: 0; width: 40px; justify-content: center; }

/* ---- kind and state dots ---- */
body.research-page .ov-kdot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--k-ink, var(--ov-slate)); margin-right: 8px; vertical-align: 1px; }
body.research-page .ov-sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: currentColor; }
body.research-page [data-tone="open"] { --t-ink: var(--ov-open); --t-tint: var(--ov-open-tint); }
body.research-page [data-tone="closing"] { --t-ink: var(--ov-closing); --t-tint: var(--ov-closing-tint); }
body.research-page [data-tone="upcoming"] { --t-ink: var(--ov-upcoming); --t-tint: var(--ov-upcoming-tint); }
body.research-page [data-tone="closed"] { --t-ink: var(--ov-closed); --t-tint: var(--ov-closed-tint); }
body.research-page [data-tone="unconfirmed"] { --t-ink: var(--ov-unconfirmed); --t-tint: var(--ov-unconfirmed-tint); }
body.research-page [data-tone="full"] { --t-ink: var(--ov-full); --t-tint: var(--ov-full-tint); }


body.research-page .ov-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 2px; border: 0; background: none; color: var(--ov-slate); font-size: 13.5px; font-weight: 500; cursor: pointer; border-radius: 6px; }
body.research-page .ov-back:hover { color: var(--ov-brand-2); }
body.research-page .ov-back svg { width: 17px; height: 17px; }



































body.research-page .ov-pill { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #c7d1e0; background: #fff; color: var(--ov-slate); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color var(--ov-base), color var(--ov-base), border-color var(--ov-base); }
body.research-page .ov-pill:hover { background: #f1f4f9; color: var(--ov-ink); }
body.research-page .ov-pill.is-on { background: var(--ov-navy); border-color: var(--ov-navy); color: #fff; }
















/* ---- toast ---- */
body.research-page .ov-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); background: var(--ov-navy); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: 0 12px 30px rgba(11, 20, 40, .35); opacity: 0; pointer-events: none; transition: opacity var(--ov-base), transform var(--ov-base) var(--ov-ease); z-index: 1200; max-width: calc(100vw - 32px); text-align: center; }
body.research-page .ov-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.research-page .ov-toast[data-tone="error"] { background: #7a1f17; }
@media (max-width: 768px) { body.research-page .ov-toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {

}

/* ---- O4 ---- */
body.research-page { --o4-rule:#dce3ec; --o4-wash:#f3f6fa; --o4-muted:#53657c; --o4-deep:#15394b; --o4-measure:62ch; }
body.research-page.student-shell-unified .pf-page { max-width:1240px!important; }
body.research-page #ov-page { padding-bottom:48px; font-size:15px; scrollbar-color:#bdcbdc transparent; }
body.research-page #ov-page h2, body.research-page #ov-page h3 { color:var(--ov-ink); letter-spacing:-.02em; font-weight:600; }
body.research-page .o4-head { margin-bottom:20px!important; }
body.research-page #ov-page .o4-head .o4-sub { font-size:16px!important; font-weight:400!important; color:var(--o4-muted)!important; margin-top:5px; }
body.research-page .o4-bar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-bottom:16px; border-bottom:1px solid var(--o4-rule); margin-bottom:30px; }
body.research-page .o4-nav { display:flex; gap:6px; }
body.research-page #ov-page .o4-nav a { display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:10px 17px; border-radius:8px; font-size:15px; font-weight:500; color:var(--o4-muted); white-space:nowrap; }
body.research-page #ov-page .o4-nav a[aria-current] { color:#1559b0; background:#eaf2fd; }
body.research-page #ov-page .o4-nav a:hover { background:#f1f5fa; color:#1559b0; }
body.research-page .o4-nav b { font-size:12px; background:#d8e8fc; border-radius:10px; padding:0 6px; }
body.research-page .o4-homesearch { position:relative; width:320px; }
body.research-page .o4-search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--o4-muted); pointer-events:none; }
body.research-page .o4-homesearch input, body.research-page .o4-search input { width:100%; min-height:46px; border:1px solid #c7d2e2; border-radius:9px; background:white; padding:10px 40px; color:var(--ov-ink); }
body.research-page .o4-homesearch input { font-size:14px!important; }
body.research-page .o4-view { transition:opacity 180ms var(--ov-ease),transform 220ms var(--ov-ease); }
body.research-page .o4-view.is-entering { opacity:0; transform:translateY(6px); transition:none; }
body.research-page .o4-sec { margin-bottom:42px; }
body.research-page .o4-sechead { display:flex; align-items:center; justify-content:space-between; gap:12px 25px; margin-bottom:19px; }
body.research-page .o4-sechead h2 { font-size:25px; line-height:1.25; }
body.research-page #ov-page .o4-sechead p { margin-top:5px; color:var(--o4-muted); font-size:15px; }
body.research-page #ov-page .ov-link { min-height:40px; }
body.research-page .o4-sechead>.ov-link { flex:none; font-size:14px; }
body.research-page .o4-spread { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,1fr); gap:18px; }
body.research-page .o4-card { position:relative; display:flex; flex-direction:column; border:1px solid var(--o4-rule); border-radius:14px; padding:20px 24px; min-width:0; background:#fff; }
body.research-page .o4-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:-6px -8px 10px 0; min-height:40px; }
body.research-page .o4-kind { display:inline-flex; gap:8px; align-items:center; color:var(--k-ink,var(--o4-muted)); font-size:13px; font-weight:500; line-height:1.4; }
body.research-page .o4-kind svg { width:18px!important; height:18px!important; }
body.research-page .o4-card-link { display:flex; flex-direction:column; flex:1; min-width:0; border-radius:4px; }
body.research-page .o4-card-title { font-size:21px; font-weight:600; letter-spacing:-.022em; line-height:1.25; color:var(--ov-ink); text-wrap:pretty; }
body.research-page .o4-card-link:hover .o4-card-title { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
body.research-page .o4-card-provider { color:var(--o4-muted); font-size:13px; line-height:1.45; margin-top:7px; }
body.research-page .o4-card-summary { font-size:15px; line-height:1.55; margin-top:14px; color:#354860; }
body.research-page .o4-card-facts { display:flex; gap:6px 16px; flex-wrap:wrap; margin-top:14px; font-size:13px; color:var(--o4-muted); }
body.research-page .o4-card-facts:empty { display:none; }
body.research-page .o4-card-facts strong { color:var(--k-ink); font-size:16px; font-weight:500; }
body.research-page .o4-card-foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:7px 14px; margin-top:auto; padding-top:18px; font-size:13px; }
body.research-page .o4-when { display:inline-flex; align-items:center; gap:6px; color:var(--t-ink,var(--o4-muted)); }
body.research-page .o4-when svg { width:15px!important; height:15px!important; }
body.research-page .o4-card-open { color:#1559b0; display:inline-flex; align-items:center; gap:7px; font-weight:500; min-height:30px; }
body.research-page .o4-spread .o4-card--lead { grid-row:span 2; background:var(--o4-deep); border-color:var(--o4-deep); padding:27px 30px; }
body.research-page .o4-card--lead .o4-kind { color:#c0e4df; }
body.research-page .o4-card--lead .o4-card-title { color:white; font-size:30px; line-height:1.18; margin-top:6px; }
body.research-page .o4-card--lead .o4-card-provider { color:#c8dce6; margin-top:14px; }
body.research-page .o4-card--lead .o4-card-summary { color:#e5eff4; margin-top:22px; font-size:16px; line-height:1.55; }
body.research-page .o4-card--lead .o4-card-facts { color:#d5e5ed; margin-top:20px; }
body.research-page .o4-card--lead .o4-card-facts strong { color:white; font-size:23px; }
body.research-page .o4-card--lead .o4-card-foot { border-top:1px solid #4c6a79; margin-top:24px; padding-top:15px; }
body.research-page .o4-card--lead .o4-when { color:#ffddac; }
body.research-page .o4-card--lead .o4-card-open { color:white; }
body.research-page .o4-card--lead .ov-save { color:#d8e8ef; }
body.research-page .o4-card--lead .ov-save:hover,body.research-page .o4-card--lead .ov-save.is-on { background:#34576a; color:white; }
body.research-page .o4-card--lead :focus-visible { outline-color:#a8d2ff!important; }
body.research-page .o4-card--compact { background:var(--k-tint); border-color:transparent; padding:18px 24px; }
body.research-page .o4-card--compact .o4-card-top { margin-bottom:4px; }
body.research-page .o4-card--compact .o4-card-summary { display:none; }
body.research-page .o4-card--compact .o4-card-foot { padding-top:9px; }
body.research-page #ov-page .o4-selection { color:var(--o4-muted); font-size:12px; margin-top:12px; line-height:1.5; }
body.research-page .o4-categories { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 24px; border-top:1px solid var(--o4-rule); }
body.research-page #ov-page .o4-categories a { display:flex; align-items:center; gap:9px; min-height:59px; border-bottom:1px solid var(--o4-rule); color:var(--ov-ink); font-size:14px; font-weight:500; }
body.research-page .o4-categories svg { color:var(--k-ink); }
body.research-page #ov-page .o4-categories a:hover { color:#1559b0; }
body.research-page .o4-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
body.research-page .o4-deadlines { padding-top:2px; }
body.research-page .o4-deadline { display:flex; gap:14px; align-items:center; border-bottom:1px solid var(--o4-rule); padding:14px 0; }
body.research-page .o4-deadline:first-child { border-top:1px solid var(--o4-rule); }
body.research-page .o4-deadline>a { display:flex; align-items:center; gap:18px; min-width:0; flex:1; }
body.research-page .o4-deadline>a>span:nth-child(2) { display:grid; gap:4px; flex:1; }
body.research-page .o4-deadline strong { font-size:17px; line-height:1.35; font-weight:500; color:var(--ov-ink); }
body.research-page .o4-deadline>a>span:nth-child(2)>span { color:var(--o4-muted); font-size:13px; }
body.research-page .o4-deadline>a:hover strong { text-decoration:underline; text-underline-offset:4px; }
body.research-page .o4-leaf { display:grid; justify-items:center; align-content:center; flex:none; width:54px; min-height:58px; border-radius:9px; background:#fbf0dd; color:#865313; }
body.research-page .o4-leaf b { font-size:24px; line-height:1.1; font-weight:500; }
body.research-page .o4-leaf>span { font-size:12px; }
body.research-page .o4-leaf--word { font-size:12px; text-align:center; }
body.research-page .o4-library { display:flex; align-items:center; gap:30px; justify-content:space-between; background:#edf3fb; padding:28px 30px; border-radius:14px; }
body.research-page .o4-library h2 { font-size:24px; }
body.research-page #ov-page .o4-library p { margin-top:8px; max-width:50ch; color:var(--o4-muted); }
body.research-page .o4-library>div:last-child { display:grid; justify-items:start; gap:7px; flex:none; }
/* Catalogue: comfortable boxed previews, collapsible secondary controls. */
body.research-page .o4-view-h { font-size:27px; line-height:1.3; margin-bottom:22px!important; }
body.research-page .o4-tools { padding:22px; border-radius:14px; background:var(--o4-wash); }
body.research-page .o4-search { position:relative; }
body.research-page .o4-search input { min-height:48px; }
body.research-page .o4-filters { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:14px; }
body.research-page .o4-select { position:relative; min-width:0; }
body.research-page .o4-select select { appearance:none; min-height:44px; max-width:100%; border:1px solid #c6d0df; border-radius:8px; background:white; color:var(--ov-ink); padding:9px 36px 9px 13px; font-size:14px!important; cursor:pointer; }
body.research-page .o4-select>svg { pointer-events:none; position:absolute; right:11px; top:50%; transform:translateY(-50%); width:14px!important; }
body.research-page .o4-more { position:relative; }
body.research-page .o4-morebtn { display:flex; align-items:center; gap:7px; min-height:44px; cursor:pointer; font-size:14px; color:var(--o4-muted); padding:9px 12px; border-radius:8px; list-style:none; }
body.research-page .o4-morebtn::-webkit-details-marker { display:none; }
body.research-page .o4-morebtn:hover,body.research-page .o4-more[open] .o4-morebtn { background:#e4edf9; color:#1559b0; }
body.research-page .o4-morebtn b { font-size:12px; }
body.research-page .o4-more-panel { position:absolute; top:calc(100% + 8px); right:0; width:300px; display:grid; gap:12px; padding:18px; background:white; box-shadow:0 8px 28px #102b4926; border-radius:12px; z-index:5; }
body.research-page .o4-more-panel select { width:100%; }
body.research-page .o4-check { display:flex; align-items:center; gap:9px; min-height:44px; }
body.research-page .o4-check input { width:18px; height:18px; accent-color:#1559b0; }
body.research-page .o4-clear { position:absolute; right:4px; top:4px; width:40px; height:40px; border:0; border-radius:6px; background:white; color:var(--o4-muted); cursor:pointer; }
body.research-page #ov-page .o4-summary { display:flex; align-items:center; gap:5px; flex-wrap:wrap; color:var(--o4-muted); font-size:14px; margin:19px 0 24px; }
body.research-page .o4-reset { min-height:40px; padding:0 10px; margin-left:auto; border:0; background:none; color:#1559b0; cursor:pointer; font-weight:500; }
body.research-page .o4-group { margin-bottom:30px; }
body.research-page .o4-group-h { display:flex; align-items:center; gap:10px; font-size:18px; margin-bottom:14px!important; }
body.research-page .o4-group-n { font-size:13px; color:var(--o4-muted); font-weight:400; }
body.research-page #ov-page .o4-group-note { margin-bottom:15px; font-size:14px; color:var(--o4-muted); }
body.research-page .o4-rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
body.research-page .o4-rows--browse .o4-card-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
body.research-page .o4-rows--browse .o4-card { padding:18px 22px; }
body.research-page .o4-rows--browse .o4-card-title { font-size:20px; }
body.research-page .o4-showclosed { border:1px solid var(--o4-rule); border-radius:10px; background:var(--o4-wash); min-height:48px; padding:10px 18px; color:#1559b0; cursor:pointer; }
body.research-page #ov-page .o4-foot { color:var(--o4-muted); font-size:13px; line-height:1.6; max-width:85ch; margin-top:25px; }
/* Saved keeps the same recognisable preview with a separate remove action. */
body.research-page .o4-savedhead { margin-bottom:25px; }
body.research-page #ov-page .o4-savedline { margin-top:-10px; color:var(--o4-muted); max-width:65ch; }
body.research-page .o4-filters--saved { margin-bottom:22px; }
body.research-page .o4-remove { display:flex; align-items:center; gap:5px; border:0; min-height:40px; border-radius:7px; padding:0 7px; background:none; color:var(--o4-muted); font-size:13px!important; cursor:pointer; }
body.research-page .o4-remove:hover { color:#9a332b; background:#faeeec; }
body.research-page .o4-undo { position:sticky; bottom:34px; display:flex; align-items:center; justify-content:space-between; gap:20px; max-width:480px; border-radius:10px; padding:10px 18px; color:white; background:var(--ov-navy); margin-top:20px; }
body.research-page .o4-undo-btn { color:white; background:none; border:0; text-decoration:underline; text-underline-offset:3px; min-height:44px; cursor:pointer; }
/* Detail: full-width tinted masthead/action row, then reading body + facts. */
body.research-page .o4-head--slim { margin-bottom:5px!important; }
body.research-page .o4-head--slim .o4-title { font-size:15px!important; color:var(--o4-muted)!important; font-weight:500!important; }
body.research-page .o4-read { display:grid; grid-template-columns:minmax(0,1fr) 300px; column-gap:42px; }
body.research-page .o4-read-top { grid-column:1/-1; margin-bottom:18px; }
body.research-page .o4-read-head { grid-column:1/-1; background:var(--k-tint); border-radius:16px 16px 0 0; padding:30px 34px 25px; }
body.research-page .o4-read-title { font-size:36px; line-height:1.16; max-width:30ch; letter-spacing:-.03em!important; text-wrap:pretty; }
body.research-page #ov-page .o4-read-prov { color:var(--o4-muted); font-size:15px; margin-top:15px; max-width:85ch; }
body.research-page #ov-page .o4-read-kind { margin-top:18px; }
body.research-page #ov-page .o4-read-status { color:var(--t-ink); font-weight:500; margin-top:12px; font-size:15px; }
body.research-page .o4-actionbar { grid-column:1/-1; padding:18px 34px 20px; background:var(--k-tint); border-top:1px solid var(--k-line); border-radius:0 0 16px 16px; margin-bottom:36px; }
body.research-page .o4-actionbar>div { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
body.research-page #ov-page .o4-actionbar>p { font-size:13px; color:var(--o4-muted); margin-top:10px; }
body.research-page #ov-page .o4-actionbar .ov-btn--primary { background:#1559b0; }
body.research-page #ov-page .o4-actionbar .ov-btn--primary:hover { background:#0c438e; }
body.research-page .o4-read-aside { grid-column:2; grid-row:4; min-width:0; }
body.research-page .o4-glance { padding:24px; border:1px solid var(--o4-rule); border-radius:14px; }
body.research-page .o4-glance h3 { font-size:20px; margin-bottom:18px!important; }
body.research-page .o4-facts { display:grid; gap:18px; }
body.research-page .o4-facts dt { color:var(--o4-muted); font-size:13px; }
body.research-page .o4-facts dd { font-size:16px; font-weight:500; color:var(--ov-ink); margin:4px 0 0; overflow-wrap:anywhere; }
body.research-page .o4-source-note { display:flex; gap:10px; padding:24px 4px; }
body.research-page .o4-source-note>svg { color:#277266; margin-top:3px; }
body.research-page .o4-source-note h3 { font-size:16px; }
body.research-page #ov-page .o4-source-note p { font-size:13px; color:var(--o4-muted); margin-top:8px; }
body.research-page .o4-source-note .ov-link { overflow-wrap:anywhere; font-size:13px; }
body.research-page .o4-read-body { grid-column:1; grid-row:4; min-width:0; }
body.research-page .o4-read-body p { max-width:var(--o4-measure); font-size:16px; line-height:1.65; }
body.research-page .o4-about-title { font-size:23px; margin-bottom:14px!important; }
body.research-page .o4-read-lede { color:#354860; }
body.research-page .o4-read-sec { padding-top:28px; margin-top:28px; border-top:1px solid var(--o4-rule); }
body.research-page .o4-read-sec h3 { font-size:23px; margin-bottom:14px!important; }
body.research-page .o4-read-sec h4 { font-size:16px; margin:20px 0 8px; }
body.research-page #ov-page .o4-read-sec p+p { margin-top:12px; }
body.research-page .o4-read-list li { padding-left:20px; position:relative; margin:8px 0; font-size:16px; line-height:1.6; }
body.research-page .o4-read-list li::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--k-ink); position:absolute; left:2px; top:.7em; }
body.research-page #ov-page .o4-elig { display:grid; gap:0; margin-top:20px; background:#f3f6fa; padding:5px 18px; border-radius:12px; }
body.research-page .o4-elig li { display:grid; grid-template-columns:120px minmax(0,1fr); gap:12px; padding:13px 0; font-size:14px; line-height:1.55; }
body.research-page .o4-elig li+li { border-top:1px solid var(--o4-rule); }
body.research-page .o4-elig b { font-weight:500; color:var(--ov-ink); }
body.research-page .o4-elig [data-tone=check] { color:#865313; }
body.research-page .o4-elig [data-tone=no] { color:#9a332b; }
body.research-page #ov-page .o4-read-body .o4-quiet { color:var(--o4-muted); font-size:13px; margin-top:16px; }
body.research-page .o4-read-source { background:#f3f6fa; border-radius:14px; border:0; padding:24px; }
body.research-page .o4-read-source p { font-size:14px; }
body.research-page .o4-links { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:12px; }
body.research-page .o4-links a { overflow-wrap:anywhere; }
body.research-page .o4-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
body.research-page .o4-pills .ov-pill { min-height:44px; }
body.research-page .o4-crosslink { margin-top:20px!important; padding:14px 18px; background:#eaf2fd; border-radius:10px; font-size:14px!important; }
body.research-page #ov-page .o4-crosslink a { color:#1559b0; text-decoration:underline; }
/* Honest states and feedback. */
body.research-page .o4-empty { padding:44px 30px; background:var(--o4-wash); border-radius:14px; }
body.research-page .o4-empty h3 { font-size:25px; line-height:1.3; }
body.research-page #ov-page .o4-empty p { max-width:62ch; margin-top:12px; color:var(--o4-muted); font-size:16px; }
body.research-page .o4-empty-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
body.research-page .o4-banner { padding:15px 18px; border-radius:10px; background:#fff1dc; color:#825012; margin-bottom:24px!important; }
body.research-page #ov-page .o4-banner a { text-decoration:underline; }
body.research-page .o4-quietline { color:var(--o4-muted); margin-bottom:24px!important; }
body.research-page .o4-skel { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
body.research-page .o4-skel span { height:190px; border-radius:14px; background:#edf2f8; }
@media(min-width:768px) and (max-width:1100px) {
 body.research-page .o4-spread { grid-template-columns:1fr 1fr; }
 body.research-page .o4-card,body.research-page .o4-card--compact { padding:18px; }
 body.research-page .o4-spread .o4-card--lead { padding:24px; }
 body.research-page .o4-card--lead .o4-card-title { font-size:26px; }
 body.research-page .o4-card-title { font-size:19px; }
 body.research-page .o4-card-foot { align-items:flex-start; flex-direction:column; }
 body.research-page .o4-categories { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.research-page .o4-read { grid-template-columns:minmax(0,1fr) 245px; column-gap:28px; }
 body.research-page .o4-read-title { font-size:32px; }
 body.research-page .o4-library { align-items:flex-start; }
 body.research-page .o4-library>div:last-child { flex:1 0 220px; }
}
@media(max-width:767.98px) {
 body.research-page #ov-page { padding-bottom:35px; }
 body.research-page .o4-head { display:none!important; }
 body.research-page .o4-bar { flex-direction:column; align-items:stretch; padding-bottom:18px; gap:14px; margin-bottom:24px; }
 body.research-page .o4-nav { gap:5px; }
 body.research-page #ov-page .o4-nav a { flex:1; justify-content:center; padding:10px 8px; font-size:14px; }
 body.research-page .o4-homesearch { width:100%; }
 body.research-page .o4-homesearch input { font-size:16px!important; }
 body.research-page .o4-sechead { gap:6px 12px; flex-wrap:wrap; margin-bottom:15px; }
 body.research-page .o4-sechead h2 { font-size:23px; }
 body.research-page #ov-page .o4-sechead p { font-size:14px; }
 body.research-page .o4-sechead>.ov-link { min-height:32px; font-size:13px; }
 body.research-page .o4-sec { margin-bottom:32px; }
 body.research-page .o4-spread,body.research-page .o4-pair,body.research-page .o4-rows { grid-template-columns:1fr; gap:14px; }
 body.research-page .o4-spread .o4-card--lead { grid-row:auto; padding:20px 22px; }
 body.research-page .o4-card--lead .o4-card-title { font-size:26px; }
 body.research-page .o4-card--lead .o4-card-summary { margin-top:17px; font-size:15px; }
 body.research-page .o4-card--lead .o4-card-provider { margin-top:12px; font-size:13px; }
 body.research-page .o4-card--lead .o4-card-facts { margin-top:16px; }
 body.research-page .o4-card--lead .o4-card-foot { margin-top:18px; }
 body.research-page .o4-card { padding:18px 20px; }
 body.research-page .o4-card-title { font-size:21px; }
 body.research-page .o4-categories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
 body.research-page #ov-page .o4-categories a { font-size:13px; line-height:1.4; gap:7px; min-height:62px; }
 body.research-page .o4-categories svg { width:16px!important; height:16px!important; }
 body.research-page .o4-deadline { gap:4px; }
 body.research-page .o4-deadline>a { gap:12px; }
 body.research-page .o4-deadline>a>svg { display:none; }
 body.research-page .o4-deadline strong { font-size:16px; }
 body.research-page .o4-leaf { width:46px; min-height:55px; }
 body.research-page .o4-library { flex-direction:column; align-items:stretch; padding:24px 22px; gap:20px; }
 body.research-page .o4-library h2 { font-size:24px; }
 body.research-page .o4-library>div:last-child { gap:8px; }
 body.research-page .o4-view-h { font-size:24px; margin-bottom:18px!important; }
 body.research-page .o4-tools { padding:15px; }
 body.research-page .o4-search input { font-size:16px!important; padding-left:38px; }
 body.research-page .o4-filters { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
 body.research-page .o4-select select { width:100%; padding-left:10px; font-size:13px!important; }
 body.research-page .o4-more-panel { width:min(300px,calc(100vw - 64px)); right:0; }
 body.research-page .o4-morebtn { padding-left:8px; font-size:13px; }
 body.research-page .o4-summary { margin:15px 0 20px!important; }
 body.research-page .o4-group-h { font-size:17px; }
 body.research-page .o4-rows--browse .o4-card-summary { -webkit-line-clamp:3; }
 body.research-page .o4-read { display:flex; flex-direction:column; gap:0; }
 body.research-page .o4-read-top { margin-bottom:14px; }
 body.research-page .o4-read-head { padding:23px 22px; }
 body.research-page .o4-read-title { font-size:28px; line-height:1.18; }
 body.research-page .o4-read-prov { font-size:14px!important; }
 body.research-page .o4-read-status { font-size:14px!important; }
 body.research-page .o4-actionbar { padding:18px 22px; margin-bottom:25px; }
 body.research-page .o4-actionbar>div { gap:10px; }
 body.research-page .o4-actionbar .ov-btn--primary { width:100%; }
 body.research-page .o4-read-body { order:4; }
 body.research-page .o4-read-aside { order:5; margin-top:30px; }
 body.research-page .o4-glance { padding:22px; }
 body.research-page .o4-facts { grid-template-columns:1fr 1fr; gap:18px; }
 body.research-page .o4-facts dd { font-size:15px; }
 body.research-page .o4-read-sec h3,body.research-page .o4-about-title { font-size:23px; }
 body.research-page .o4-elig li { grid-template-columns:1fr; gap:5px; }
 body.research-page .o4-read-sec { margin-top:24px; padding-top:24px; }
 body.research-page .o4-read-source { padding:22px; }
 body.research-page .o4-empty { padding:30px 23px; }
 body.research-page .o4-empty h3 { font-size:23px; }
 body.research-page .o4-empty-actions { flex-direction:column; align-items:stretch; }
 body.research-page .o4-undo { bottom:110px; }
 body.research-page .o4-skel { grid-template-columns:1fr; }
}
@media(max-width:350px) {
 body.research-page .o4-card--lead .o4-card-title { font-size:24px; }
 body.research-page .o4-card-foot { flex-direction:column; align-items:flex-start; }
 body.research-page .o4-spread .o4-card--lead,body.research-page .o4-card { padding:18px; }
 body.research-page .o4-read-head,body.research-page .o4-actionbar { padding:20px; }
 body.research-page .o4-read-title { font-size:25px; }
 body.research-page .o4-categories { grid-template-columns:1fr; }
 body.research-page #ov-page .o4-categories a { min-height:46px; }
}
@media(prefers-reduced-motion:reduce) {
 body.research-page *,body.research-page *::before,body.research-page *::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
 body.research-page .o4-view.is-entering { opacity:1; transform:none; }
}
/* First render refinement: use companion space for real context; shorten mobile introduction. */
body.research-page .o4-card--compact .o4-card-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:14px; line-height:1.5; margin-top:10px; }
body.research-page .o4-actionbar .o4-checked { font-size:12px; color:var(--o4-muted); margin-top:10px!important; }
body.research-page[data-ov-view=browse] .o4-head,body.research-page[data-ov-view=saved] .o4-head { margin-bottom:15px!important; }
body.research-page[data-ov-view=browse] .o4-sub,body.research-page[data-ov-view=saved] .o4-sub { display:none; }
@media(max-width:767.98px) {
 body.research-page .o4-opening .o4-sechead { flex-wrap:nowrap; align-items:center; }
 body.research-page .o4-opening .o4-sechead>div>p { display:none; }
 body.research-page .o4-opening .o4-sechead h2 { font-size:22px; }
 body.research-page .o4-opening .o4-sechead>.ov-link { font-size:12px; gap:4px; }
 body.research-page .o4-opening .o4-sechead>.ov-link svg { width:14px!important; }
 body.research-page .o4-card--lead .o4-card-top { margin-bottom:4px; }
 body.research-page .o4-card--lead .o4-card-summary { font-size:14px; }
}
body.research-page .o4-rows--saved .o4-card-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
/* Independent critique: controls on demand; essential detail facts before the article. */
body.research-page .o4-filter-toggle { display:none; }
@media(max-width:767.98px) {
 body.research-page .o4-view--browse>.o4-view-h { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 body.research-page .o4-view--browse .o4-tools { padding:0; border-radius:0; background:none; }
 body.research-page .o4-filter-drawer { margin-top:7px; border-bottom:1px solid var(--o4-rule); padding-bottom:4px; }
 body.research-page .o4-filter-toggle { display:flex; align-items:center; gap:8px; min-height:44px; padding:7px 2px; color:#1559b0; font-size:14px; font-weight:500; cursor:pointer; list-style:none; }
 body.research-page .o4-filter-toggle::-webkit-details-marker { display:none; }
 body.research-page .o4-filter-toggle>svg:last-child { margin-left:auto; width:14px!important; }
 body.research-page .o4-filter-toggle>b { font-size:12px; background:#eaf2fd; border-radius:5px; padding:2px 7px; }
 body.research-page .o4-sort-hint { margin-left:auto; font-size:13px; color:var(--o4-muted); font-weight:400; }
 body.research-page .o4-filter-toggle .o4-sort-hint+svg { margin-left:0; }
 body.research-page .o4-filter-drawer[open]>.o4-filter-toggle>svg:last-child { transform:rotate(180deg); }
 body.research-page .o4-filter-drawer .o4-filters { padding:8px 0 12px; margin:0; }
 body.research-page .o4-filter-drawer .o4-more[open] { grid-column:1/-1; }
 body.research-page .o4-filter-drawer .o4-more-panel { position:static; width:100%; margin-top:8px; box-shadow:none; background:#f3f6fa; }
 body.research-page #ov-page .o4-view--browse .o4-summary { margin:10px 0 15px!important; }
 body.research-page .o4-view--browse .o4-group-h { margin-bottom:12px!important; }
 body.research-page .o4-rows--browse .o4-card { padding:16px 18px; }
 body.research-page .o4-rows--browse .o4-card-title { font-size:19px; }
 body.research-page .o4-rows--browse .o4-card-summary { -webkit-line-clamp:2; font-size:14px; margin-top:10px; }
 body.research-page .o4-rows--browse .o4-card-top { margin-bottom:6px; }
 body.research-page .o4-rows--browse .o4-card-facts { margin-top:10px; }
 body.research-page .o4-rows--browse .o4-card-foot { padding-top:10px; }
 body.research-page .o4-read-aside { order:4; margin:0 0 28px; }
 body.research-page .o4-read-body { order:5; }
 body.research-page .o4-read-aside .o4-glance { padding:18px 20px; }
 body.research-page .o4-read-aside .o4-glance h3 { font-size:18px; margin-bottom:14px!important; }
 body.research-page .o4-read-aside .o4-source-note { padding:18px 3px 0; }
}

/* ---- O4.1 Longitudinal Browse ---- */
body.research-page .o4-view--browse { container-type:inline-size; }
body.research-page .o4-view--browse .o4-rows--browse { display:block; }
body.research-page .o4-view--browse .o4-group { margin-bottom:36px; }
body.research-page .o4-view--browse .o4-group-h { margin-bottom:0!important; padding-bottom:14px; border-bottom:1px solid #c7d2e2; font-size:19px; gap:12px; }
body.research-page .o41-row { display:grid; grid-template-columns:132px minmax(0,1fr) 164px 112px; grid-template-rows:auto auto; column-gap:24px; row-gap:12px; padding:20px 0; border-bottom:1px solid var(--o4-rule); position:relative; background:#fff; }
body.research-page .o41-row:hover { background:#f7f9fc; }
body.research-page .o41-row:focus-within { background:#f3f7fd; }
body.research-page .o41-category { grid-column:1; grid-row:1/3; display:flex; align-items:flex-start; gap:8px; font-size:13px; line-height:1.45; font-weight:500; color:var(--k-ink); padding-top:3px; }
body.research-page .o41-category svg { width:17px; height:17px; flex:none; margin-top:1px; }
body.research-page .o41-info { grid-column:2; grid-row:1/3; min-width:0; }
body.research-page #ov-page .o41-title { font-size:20px; font-weight:600; line-height:1.3; letter-spacing:-.018em; color:var(--ov-ink); margin:0; overflow-wrap:anywhere; }
body.research-page #ov-page .o41-provider { font-size:13px; line-height:1.45; color:var(--o4-muted); margin:5px 0 0; overflow-wrap:anywhere; }
body.research-page #ov-page .o41-description { font-size:14px; line-height:1.5; color:#425675; margin:10px 0 0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
body.research-page .o41-facts { grid-column:3; grid-row:1; display:grid; align-content:start; gap:8px; font-size:13px; line-height:1.45; color:var(--o4-muted); }
body.research-page .o41-funding { color:var(--ov-ink); font-size:15px; line-height:1.4; font-weight:500; }
body.research-page .o41-facts small { display:block; font-size:12px; margin-top:2px; }
body.research-page .o41-status { grid-column:3; grid-row:2; align-self:end; display:flex; gap:7px; color:var(--o4-muted); font-size:13px; line-height:1.4; }
body.research-page .o41-status svg { width:14px; height:14px; margin-top:2px; flex:none; }
body.research-page .o41-status small { display:block; margin-top:3px; font-size:12px; color:#8a5208; }
body.research-page .o41-actions { grid-column:4; grid-row:1/3; display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
body.research-page #ov-page .o41-open { min-height:44px; display:inline-flex; align-items:center; gap:7px; color:#1559b0; font-size:13px; line-height:1.3; font-weight:500; white-space:nowrap; border-radius:4px; text-decoration:none; }
body.research-page .o41-open svg { width:16px; height:16px; }
body.research-page #ov-page .o41-open:hover { text-decoration:underline; text-underline-offset:4px; }
body.research-page .o41-actions .ov-save { width:44px; height:44px; }
body.research-page .o41-open:focus-visible { outline:2px solid #1f6fd6; outline-offset:3px; }
@container (min-width: 601px) and (max-width: 940px) {
  body.research-page .o4-view--browse .o4-filters { flex-wrap:nowrap; }
  body.research-page .o4-view--browse .o4-filters>.o4-select { flex:1; }
  body.research-page .o4-view--browse .o4-filters>.o4-select select { width:100%; }
}
@container (max-width: 940px) {
  body.research-page .o41-row { grid-template-columns:minmax(0,1fr) 154px 108px; grid-template-rows:auto auto auto; gap:10px 20px; padding:22px 0; }
  body.research-page .o41-category { grid-column:1; grid-row:1; padding:0; align-items:center; }
  body.research-page .o41-info { grid-column:1; grid-row:2/4; }
  body.research-page .o41-facts { grid-column:2; grid-row:2; }
  body.research-page .o41-status { grid-column:2; grid-row:3; }
  body.research-page .o41-actions { grid-column:3; grid-row:2/4; }
}
@container (max-width: 600px) {
  body.research-page .o41-row { grid-template-columns:minmax(0,1fr); grid-template-rows:none; gap:0; padding:18px 0 12px; }
  body.research-page .o41-category, body.research-page .o41-info, body.research-page .o41-facts, body.research-page .o41-status, body.research-page .o41-actions { grid-column:1; grid-row:auto; }
  body.research-page .o41-category { margin-bottom:10px; }
  body.research-page #ov-page .o41-title { font-size:19px; }
  body.research-page #ov-page .o41-description { margin-top:8px; -webkit-line-clamp:1; }
  body.research-page .o41-facts { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:8px; }
  body.research-page .o41-facts:empty { display:none; }
  body.research-page .o41-facts small { display:inline; margin-left:5px; }
  body.research-page .o41-status { margin-top:8px; }
  body.research-page .o41-status small { display:inline; margin-left:6px; }
  body.research-page .o41-actions { flex-direction:row; justify-content:space-between; align-items:center; gap:12px; margin-top:4px; }
  body.research-page .o4-view--browse .o4-group { margin-bottom:30px; }
  body.research-page .o4-view--browse .o4-group-h { flex-wrap:wrap; gap:4px 10px; font-size:18px; padding-bottom:12px; }
}

/* ---- Production additions ---- */
/* #ov-page sits inside .app-inner.pf-page here (the student shell moves the
   page's children into its own route cell), so the page keeps the frame's own
   bottom padding rather than adding the candidate's on top of it. */
body.research-page #ov-page { padding-bottom: 0; }
/* Browse names the board's scope once, beneath its own footnote. */
body.research-page #ov-page .o4-foot + .o4-scope { margin-top: 8px; }
