/* ==========================================================================
   research.html — the notebook: a reading list, then the study itself
   Loaded after seidr-v2.css; only page-specific rules live here.
   ========================================================================== */

/* ---------- reading list ---------- */
.reading-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.reading-head h2 { font-size: var(--t-h2); margin-top: 18px; }

.reading-list { list-style: none; margin: 0; padding: 0; }
.entry {
  position: relative; display: grid; grid-template-columns: 110px minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line);
}
.entry-no { font-family: var(--f-display); font-size: clamp(3rem, 5vw, 4.6rem); line-height: .9; font-weight: 400; color: var(--sap); opacity: .85; font-variant-numeric: lining-nums; }
.entry-main { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.entry-title { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.05; }
.entry-title a { text-decoration: none; background: linear-gradient(var(--sap), var(--sap)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.entry-title a:hover { color: var(--sap); background-size: 100% 1px; }
.entry-summary { color: var(--mist); font-size: 1.02rem; max-width: 62ch; }
.entry-side { display: grid; gap: 18px; align-content: start; padding-top: 6px; min-width: 0; }
.entry-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.entry-quiet .entry-no { color: var(--mist-2); }
.entry-quiet .entry-title { color: var(--mist); }
.entry-quiet .entry-summary { color: var(--mist-2); }
@media (max-width: 900px) {
  .entry { grid-template-columns: 64px minmax(0, 1fr); }
  .entry-side { grid-column: 2; }
  .entry-no { font-size: 2.6rem; }
}
@media (max-width: 520px) {
  .entry { grid-template-columns: 1fr; gap: 16px; }
  .entry-side { grid-column: auto; }
  .entry-no { font-size: 2.2rem; }
}

/* ---------- the paper ---------- */
.paper {
  position: relative; padding-block: clamp(80px, 11vw, 140px);
  border-top: 1px solid var(--line);
  background: radial-gradient(70% 50% at 15% 0%, rgba(174, 150, 255, .08), transparent 70%), linear-gradient(180deg, var(--night-2), var(--night) 40%);
  scroll-margin-top: 70px;
}
.paper-head { display: grid; gap: 22px; justify-items: start; max-width: 980px; margin-bottom: clamp(44px, 6vw, 72px); }
.paper-title { font-size: var(--t-h2); font-weight: 400; max-width: 22ch; }
.paper-sub { max-width: 64ch; }

.paper-body { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.paper-side { position: sticky; top: 100px; }
.paper-side .panel { display: grid; gap: 18px; }
.paper-side .label { color: var(--violet); }
.paper-meta { grid-template-columns: 1fr; gap: 3px 0; }
.paper-meta dd { margin-bottom: 12px; }
.paper-actions { display: grid; gap: 10px; }
.paper-actions .btn { justify-content: center; white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 960px) {
  .paper-body { grid-template-columns: 1fr; }
  .paper-side { position: static; }
  .paper-actions { display: flex; flex-wrap: wrap; }
}

.paper-main { min-width: 0; display: grid; gap: 12px; }

/* disclosures */
.disclose { border: 1px solid var(--line); border-radius: var(--r-m); background: rgba(10, 19, 22, .6); transition: border-color .3s, background .3s; scroll-margin-top: 100px; }
.disclose[open] { border-color: var(--line-2); background: linear-gradient(180deg, var(--moss), var(--night-2)); }
.disclose > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 20px clamp(18px, 2.4vw, 28px); border-radius: inherit;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary:hover h3 { color: var(--sap); }
.disclose > summary h3 { flex: 1; font-size: clamp(1.45rem, 2vw, 1.9rem); transition: color .25s; }
.disclose .count { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist-2); white-space: nowrap; }
.disclose .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .35s var(--ease), border-color .3s; }
.disclose .chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border-right: 1.5px solid var(--mist); border-bottom: 1.5px solid var(--mist); transform: translate(-50%, -50%) rotate(45deg); }
.disclose[open] .chev { transform: rotate(180deg); border-color: var(--sap); }
.disclose-body { padding: 0 clamp(18px, 2.4vw, 28px) clamp(22px, 3vw, 32px); }
.disclose-body.prose, .disclose-body .prose { max-width: 72ch; font-size: 1rem; }
.disclose-body > .prose + .findings { margin-top: 24px; }
.aside-note { color: var(--mist-2); font-size: .94rem; padding-left: 16px; border-left: 2px solid var(--line-2); }
.prose .aside-note { color: var(--mist-2); }
.aside-note a { color: var(--sap); }

/* probes */
.findings { display: grid; gap: 14px; }
.finding { display: grid; gap: 12px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-m); border: 1px solid var(--line); background: rgba(4, 8, 9, .5); color: var(--mist); font-size: .97rem; }
.finding strong { color: var(--bone); font-weight: 600; }
.finding-top { display: flex; align-items: flex-start; gap: 14px; }
.finding h4 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.12; color: var(--bone); padding-top: 4px; }
.probe-id {
  flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 12px;
  font-family: var(--f-mono); font-size: .86rem; font-weight: 500; color: var(--violet);
  border: 1px solid color-mix(in srgb, var(--violet) 35%, transparent); background: rgba(174, 150, 255, .08);
}
.probe-id.small { min-width: 38px; height: 30px; font-size: .75rem; border-radius: 8px; }
.verdict { margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(243, 183, 95, .06); border: 1px solid rgba(243, 183, 95, .2); color: var(--bone); font-size: .94rem; }
.verdict-label { display: inline-block; margin-right: 8px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sap); }

/* verdict table */
.verdict-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.verdict-table th, .verdict-table td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.verdict-table thead th { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-2); padding-top: 4px; }
.verdict-table tbody th { font-weight: 400; width: 34%; }
.verdict-table tbody th strong { display: block; color: var(--bone); font-weight: 600; }
.verdict-table tbody th span { display: block; color: var(--mist-2); font-size: .86rem; margin-top: 2px; }
.verdict-table td { color: var(--mist); }
.verdict-table tr:last-child th, .verdict-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .verdict-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .verdict-table, .verdict-table tbody, .verdict-table tr, .verdict-table th, .verdict-table td { display: block; width: auto !important; }
  .verdict-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .verdict-table tr:last-child { border-bottom: 0; }
  .verdict-table th, .verdict-table td { border: 0; padding: 4px 0; }
  .verdict-table td[data-label="Probe"] { padding: 8px 0; }
}

/* bottom line */
.callout {
  font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.35; color: var(--bone);
  padding: clamp(20px, 3vw, 30px); border-radius: var(--r-m); border-left: 3px solid var(--sap);
  background: linear-gradient(90deg, rgba(243, 183, 95, .08), transparent 80%);
}
.callout strong { color: var(--sap); font-weight: 600; font-style: italic; }

/* references */
.refs { margin: 18px 0 0; padding-left: 2.2em; display: grid; gap: 10px; color: var(--mist); font-size: .93rem; }
.refs li::marker { color: var(--violet); font-family: var(--f-mono); font-size: .8rem; }
.refs em { color: var(--bone); }
.refs .venue { font-style: italic; color: var(--bone); }
.refs .note { color: var(--mist-2); }

/* ---------- CTA ---------- */
.cta-rune { font-size: 2.6rem; color: var(--sap); }
