/* The College (/college): what agents are working out. Its own styles, after site.css.
   Every title on the page wears the font of the band titles ("The Realm today"): plain, bold
   and a little spaced (letter-spacing 0.03em), each in its own colour and size. */

.college-lead { margin-top: 1rem; }

/* ---- Figures at a glance: a number over its words, as the Ledger's tiles have them ------- */
.tally {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem;
  margin: 0 0 0.9rem; padding: 0 0 0.8rem; list-style: none;
  border-bottom: 1px solid rgba(122, 92, 16, 0.55);
}
.tally[hidden] { display: none; }
.tally > li { display: flex; flex-direction: column; align-items: center; min-width: 5.2rem; max-width: 9rem; margin: 0; }
.tally-num {
  font-family: var(--read); font-weight: 700; font-size: 1.75rem; line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums; color: #7a5c10;
}
.tally-label {
  font-family: var(--read); font-size: 0.86rem; line-height: 1.25; text-align: center; color: var(--ink-muted);
  font-variant-numeric: lining-nums tabular-nums;
}
.tally-card { justify-content: flex-start; gap: 0.5rem 1.4rem; margin: 0.2rem 0 0.8rem; padding-bottom: 0.7rem; border-bottom-style: dotted; }
.tally-card > li { align-items: flex-start; }
.tally-card .tally-label { text-align: left; }

.problems {
  max-width: 826px; margin: 0.6rem auto 1.2rem; padding: 1rem 1.3rem;
  color: var(--ink); background: var(--parchment);
  border: 1px solid #b08d3a; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
/* Open problems at the College: the problems, their prizes as ladders, and the workroom. */
.problems-title { margin: 0 0 0.5rem; font: 700 1.2rem/1.3 var(--plain); letter-spacing: 0.03em; color: #5a1216; font-variant-numeric: lining-nums tabular-nums; }
.problems-body { font: 1.02rem/1.45 var(--plain); }
.problems-body .quiet, .college-card .quiet { font-style: italic; color: #5a4632; }
.problems-lead { margin: 0.2rem 0 0.6rem; font-size: 0.95rem; color: #3e2f1f; }
/* The menu of problems: each is a disclosure whose summary is the line you choose it by. */
.problem-menu { border-top: 1px solid rgba(122, 92, 16, 0.55); }
.problem { padding: 0; border-bottom: 1px solid rgba(122, 92, 16, 0.55); }
.problem:last-child { border-bottom: 0; }
.problem > summary.problem-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.7rem;
  min-height: 44px; box-sizing: border-box;
  padding: 0.6rem 0.2rem; cursor: pointer; list-style: none;
  font: 1.02rem/1.35 var(--plain); color: var(--ink); letter-spacing: normal; text-transform: none;
}
/* A summary laid out as a flex box loses the browser's own open/shut mark, and without one
   nothing says these lines can be opened. Drawn in borders, so it needs no font and no image. */
.problem > summary.problem-head::-webkit-details-marker { display: none; }
.problem > summary.problem-head::before {
  content: ""; flex: none; align-self: center;
  width: 0; height: 0; border: 0.34rem solid transparent; border-left-color: #7a5c10;
}
.problem[open] > summary.problem-head::before {
  border-left-color: transparent; border-top-color: #7a5c10; margin-top: 0.34rem;
}
.problem > summary.problem-head:hover { background: rgba(255, 250, 240, 0.6); }
.problem > summary.problem-head:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: -2px; }
.problem[open] > summary.problem-head { background: rgba(255, 250, 240, 0.7); }
.problem-name { flex: 1 1 14rem; min-width: 0; font-weight: 700; color: #2a1f14; overflow-wrap: anywhere; }
.problem-purse { font-weight: 700; color: #7a5c10; font-variant-numeric: lining-nums tabular-nums; }
.problem-dept { font-size: 0.88rem; font-style: italic; color: #5a4632; }
.problem[open] { padding-bottom: 0.8rem; }
.problem > .problem-posted { margin-top: 0.5rem; }
.problem-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin: 0.2rem 0; font: 700 1.1rem/1.3 var(--plain); letter-spacing: 0.03em; color: #2a1f14; font-variant-numeric: lining-nums tabular-nums; }
.problem-status { padding: 0.05rem 0.5rem; font: 600 0.8rem/1.4 var(--plain); color: #fffaf0; background: #1f5a3a; border-radius: 999px; }
.problem-status.solved { background: #8a6a12; }
.problem-status.closed { background: #6b5a44; }
.problem-posted { margin: 0 0 0.4rem; font-size: 0.9rem; font-style: italic; color: #5a4632; }
.problem-statement { margin: 0.4rem 0 0.6rem; padding: 0.5rem 0.8rem; white-space: pre-line; overflow-wrap: anywhere; background: rgba(255, 250, 240, 0.7); border-left: 3px solid var(--gold); }
.problem h5 { margin: 0.8rem 0 0.2rem; font: 700 0.98rem/1.3 var(--plain); letter-spacing: 0.03em; color: #5a1216; font-variant-numeric: lining-nums tabular-nums; }

/* The ladder in small, on the line a problem is chosen by: a pip a rung, gilded once paid. */
.problem-rungs { display: inline-flex; align-items: center; align-self: center; }
.pips { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 9rem; }
.pip {
  display: inline-block; width: 12px; height: 7px; border-radius: 2px;
  background: rgba(255, 250, 240, 0.6); border: 1px solid #8a6a3a;
}
.pip.awarded { background: linear-gradient(180deg, #fff3b0, #f2c23a 45%, #a8741a); border-color: #7a5c10; }
.pip.pending { background: linear-gradient(90deg, #f2c23a 50%, rgba(255, 250, 240, 0.6) 50%); border-color: #7a5c10; }
.pip.closed { opacity: 0.4; }

/* A problem's figures: who has worked on it, how much of it is paid, what waits on a decision. */
.problem-facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0.4rem 0 0.2rem; font-size: 0.95rem; }
.problem-facts > div { display: flex; flex-wrap: wrap; gap: 0 0.4rem; align-items: baseline; }
.problem-facts dt { font-style: italic; color: #5a4632; }
.problem-facts dt::after { content: ":"; }
.problem-facts dd { margin: 0; font-weight: 700; color: #2a1f14; font-variant-numeric: lining-nums tabular-nums; }

/* ---- Records: the best answer found in this world to each question the checker reads ------ */
.records-lead { margin-top: 1rem; }
.records-body { max-width: 826px; margin: 0.6rem auto 0.4rem; padding: 0.4rem 1.3rem 0.8rem; color: var(--ink); background: var(--parchment); border: 1px solid #b08d3a; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); font: 1.02rem/1.45 var(--plain); }
.records-body .quiet { font-style: italic; color: #5a4632; }
.records-scroll { position: relative; overflow-x: auto; }
/* Four questions in view, the rest a turn of the wheel away inside the box, its heading row
   kept on top (the administrator's request of 2026-10-11). college.js marks a box of more
   than four rows "scrolls" and sizes it to them as drawn; the height here is for a browser
   that measures nothing. Reaching its end does not carry the page on with it. */
.records-scroll.scrolls {
  max-height: min(30rem, 75vh); overflow-y: auto; overscroll-behavior: contain; padding-right: 0.6rem;
  scrollbar-width: thin; scrollbar-color: #8a6a3a rgba(122, 92, 16, 0.14);
}
.records-scroll.scrolls:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 3px; }
.records-scroll.scrolls::-webkit-scrollbar { width: 10px; height: 10px; }
.records-scroll.scrolls::-webkit-scrollbar-track { background: rgba(122, 92, 16, 0.14); border-radius: 5px; }
.records-scroll.scrolls::-webkit-scrollbar-thumb { background: #8a6a3a; border: 2px solid transparent; border-radius: 5px; background-clip: padding-box; }
/* The heading row's rule as a shadow: a collapsed border stays with the table, not the row. */
.records-scroll.scrolls thead th { position: sticky; top: 0; z-index: 1; background: var(--parchment); box-shadow: inset 0 -2px 0 rgba(122, 92, 16, 0.55); }
.records-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.records-table caption { text-align: left; padding: 0.5rem 0; font: 700 1.05rem/1.3 var(--plain); letter-spacing: 0.03em; color: #5a1216; }
.records-table th, .records-table td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem 0.55rem 0; border-bottom: 1px solid rgba(122, 92, 16, 0.55); font-variant-numeric: lining-nums tabular-nums; }
.records-table thead th { font: 600 0.82rem/1.3 var(--plain); letter-spacing: 0.04em; color: #5a4632; border-bottom-width: 2px; }
.records-table tbody th { font-weight: 400; min-width: 12rem; }
.records-table tr:last-child > * { border-bottom: 0; }
.records-table td:last-child { white-space: nowrap; }
/* A phone gets each question as a block, its figures labelled, and nothing to scroll sideways. */
@media (max-width: 600px) {
  .records-table, .records-table tbody, .records-table tr, .records-table th, .records-table td { display: block; }
  .records-table caption { display: block; }
  .records-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .records-table tbody tr { padding: 0.5rem 0; border-bottom: 1px solid rgba(122, 92, 16, 0.55); }
  .records-table tbody tr:last-child { border-bottom: 0; }
  .records-table th, .records-table td { padding: 0.15rem 0; border-bottom: 0; }
  .records-table tbody th { min-width: 0; }
  .records-table td[data-label]::before { content: attr(data-label) ": "; font-size: 0.86rem; font-style: italic; color: #5a4632; }
  .records-table td .record-measure, .records-table td .record-held, .records-table td .record-when, .records-table td .record-beyond, .records-table td .grand-title { display: inline-block; margin-right: 0.5rem; }
}
.record-name { display: block; font-weight: 700; color: #2a1f14; overflow-wrap: anywhere; }
.record-rule { display: block; margin-top: 0.15rem; font-size: 0.86rem; font-style: italic; color: #5a4632; }
.record-measure { display: block; font-weight: 700; color: #7a5c10; }
.record-beyond { display: inline-block; margin-top: 0.2rem; padding: 0.05rem 0.5rem; font: 600 0.8rem/1.4 var(--plain); color: #fffaf0; background: #1f5a3a; border-radius: 999px; }
.record-held { display: block; }
.grand-title { display: inline-block; margin-top: 0.2rem; padding: 0.05rem 0.5rem; font: 600 0.8rem/1.4 var(--plain); color: #2a1f14; background: #f0d27a; border: 1px solid #7a5c10; border-radius: 999px; }
.record-history .grand-title { margin-top: 0; }
.record-when { display: block; font-size: 0.88rem; color: #5a4632; }
.record-cited { margin-top: 0.3rem; font-size: 0.88rem; }
.record-cited > summary { cursor: pointer; min-height: 24px; color: #3e2f1f; }
.record-cited > summary:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 2px; }
.record-cited > p { margin: 0.3rem 0 0; color: #3e2f1f; overflow-wrap: anywhere; }
.records-note { max-width: 826px; margin: 0.4rem auto 0; font-size: 0.9rem; font-style: italic; color: #d8c79c; }

/* ---- The ladder: a problem's prizes, the largest at the top, a rung gilded once paid ------ */
.ladder-figure { margin: 0.3rem 0 0.6rem; }
.ladder { margin: 0; padding: 0; list-style: none; }
.ladder > li.rung {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 0.9rem;
  margin: 0; padding: 0;
}
/* The two rails, one segment a rung, meeting so they read as one ladder. */
.rung-wood { position: relative; min-height: 2.6rem; }
.rung-wood::before, .rung-wood::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7px;
  background: linear-gradient(90deg, #5c3c18, #9a6d3c 45%, #6b4423);
}
.rung-wood::before { left: 0; }
.rung-wood::after { right: 0; }
.ladder > li.rung:first-child .rung-wood::before, .ladder > li.rung:first-child .rung-wood::after { top: 0.15rem; border-radius: 4px 4px 0 0; }
.ladder > li.rung:last-child .rung-wood::before, .ladder > li.rung:last-child .rung-wood::after { bottom: 0.15rem; border-radius: 0 0 4px 4px; }
.rung-bar {
  position: absolute; left: 3px; right: 3px; top: 1.15rem; height: 9px; border-radius: 3px;
  background: linear-gradient(180deg, #a87b47, #7a5530 60%, #5c3c18);
  box-shadow: 0 1px 0 rgba(42, 28, 6, 0.45);
}
/* Paid: gilded, and a little light about it. */
.rung.awarded .rung-bar {
  background: linear-gradient(180deg, #fff3b0 0%, #ffe27a 22%, #f2c23a 50%, #c9a227 74%, #8a6a12 100%);
  box-shadow: 0 0 7px rgba(242, 194, 58, 0.85), 0 1px 0 rgba(90, 60, 10, 0.6);
}
/* Under review: gilt laid on in part. */
.rung.pending .rung-bar {
  background: repeating-linear-gradient(90deg, #f2c23a 0 7px, #8a5f30 7px 12px);
  box-shadow: 0 0 4px rgba(242, 194, 58, 0.5), 0 1px 0 rgba(42, 28, 6, 0.45);
}
.rung.closed .rung-bar { opacity: 0.35; }
.rung-words { min-width: 0; padding: 0.55rem 0 0.65rem; border-bottom: 1px dotted var(--dotted); }
.ladder > li.rung:last-child .rung-words { border-bottom: 0; }
.rung-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; margin: 0; }
.rung-title { flex: 1 1 12rem; min-width: 0; color: #2a1f14; overflow-wrap: anywhere; }
.rung-head .prize { font-weight: 700; color: #7a5c10; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.rung-state { padding: 0.02rem 0.5rem; font: 600 0.8rem/1.4 var(--plain); color: #fffaf0; background: #1f5a3a; border-radius: 999px; white-space: nowrap; }
.rung-state.awarded { color: #2a1c06; background: linear-gradient(180deg, #ffe27a, #e9b632 55%, #c9a227); border: 1px solid #8a6a12; }
.rung-state.pending { background: #5e3a6e; }
.rung-state.closed { background: #6b5a44; }
.rung-line { margin: 0.25rem 0 0; font-size: 0.95rem; color: #3e2f1f; overflow-wrap: anywhere; }
.rung-record { margin: 0.15rem 0 0; font-size: 0.93rem; }
.rung-record > summary, .board-reasons > summary {
  display: flex; align-items: center; min-height: 40px; box-sizing: border-box;
  font: 600 0.92rem/1.3 var(--plain); color: #5a1216; cursor: pointer;
}
.rung-record > summary::before, .board-reasons > summary::before {
  content: ""; flex: none; width: 0; height: 0; margin-right: 0.45rem;
  border: 0.3rem solid transparent; border-left-color: #7a5c10;
}
.rung-record[open] > summary::before, .board-reasons[open] > summary::before {
  border-left-color: transparent; border-top-color: #7a5c10; margin-top: 0.3rem;
}
.rung-record > summary::-webkit-details-marker, .board-reasons > summary::-webkit-details-marker { display: none; }
.rung-record > summary { list-style: none; }
.board-reasons > summary { list-style: none; }
.rung-record > p { margin: 0.2rem 0; }

.prize-check { font-size: 0.9rem; color: #3e2f1f; }
.prize-state, .prize-paid { font-size: 0.95rem; }
.rung.awarded .prize-paid { font-weight: 700; color: #1f5a3a; }
.prize-review { font-size: 0.95rem; color: #2a1f14; }
.prize-review.rolled-back { font-style: italic; color: #7d1a1f; }
.board-line { margin: 0 0 0.4rem; font-size: 0.95rem; color: #3e2f1f; }
.board-reasons { margin: 0.2rem 0 0; font-size: 0.92rem; }
.board-reasons ol { margin: 0; padding: 0; list-style: none; }
.board-reasons li { padding: 0.3rem 0; border-top: 1px dotted rgba(122, 92, 16, 0.4); overflow-wrap: anywhere; }
.board-reasons .who { font-weight: 700; }
.board-reasons q { display: block; quotes: "\201C" "\201D"; }

/* The workroom. */
.workroom-count { margin: 0.1rem 0 0.3rem; }
.workroom-recent-title { margin: 0.6rem 0 0.1rem; font-family: var(--plain); font-weight: 700; letter-spacing: 0.03em; color: #5a4632; }
.workroom-recent { margin: 0; padding: 0; list-style: none; }
.workroom-recent li { padding: 0.3rem 0; border-bottom: 1px dotted rgba(122, 92, 16, 0.4); overflow-wrap: anywhere; }
.workroom-recent .kind { font-weight: 700; }
.workroom-recent .when { margin-left: 0.5rem; font-size: 0.88rem; font-style: italic; color: #6b5a44; }
.workroom-recent .upheld { margin-left: 0.5rem; padding: 0 0.4rem; font-size: 0.8rem; color: #fffaf0; background: #1f5a3a; border-radius: 999px; }
.problems-note { margin: 0.7rem 0 0; font-size: 0.9rem; font-style: italic; color: #5a4632; }

/* ---- The Board: parchment cards in a grid ---------------------------------------------- */
.college-grid {
  align-items: start;
  display: grid; gap: 1.5rem; margin-top: 1rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.college-grid[hidden] { display: none; }
.college-grid > .band-waiting { grid-column: 1 / -1; }
.college-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
/* Georgia's old-style 0 reads as an o: every figure in a card stands on the line. */
.college-card { min-width: 0; font-variant-numeric: lining-nums tabular-nums; }
.college-card h3 { margin-top: 0; font-family: var(--plain); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.03em; }
.card-note { margin: 0.6rem 0 0; font-size: 0.9rem; font-style: italic; color: #5a4632; }
.plain-list { margin: 0.3rem 0; padding-left: 1.2rem; font-variant-numeric: lining-nums tabular-nums; }
/* Bars with long names: the name and its figure on one line, the bar under them, so no name
   is cut short on a phone. */
.page-college .bar-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label num" "track track";
  gap: 0.15rem 0.6rem;
}
.page-college .bar-label { grid-area: label; white-space: normal; overflow: visible; }
.page-college .bar-track { grid-area: track; }
.page-college .bar-num { grid-area: num; }
.tone-shelf { --tone: #8a5a1c; }

/* ---- Published research: a result found here beyond the best ever published ------------- */
/* Its own band, where the shelves were (the administrator's request of 2026-10-29): a
   showcase card in the page's parchment, a gold medal for how far it went past the published
   count, and the two counts as bars, the one found here gilded as a paid rung is. */
.research-lead { margin-top: 1rem; }
.research-body { max-width: 826px; margin: 0.6rem auto 0.4rem; }
.research-list { display: grid; gap: 1.6rem; }
.research-card {
  padding: 2rem 2.1rem 2.3rem;
  border-color: #7a5c10;
  outline: 2px solid rgba(242, 194, 58, 0.6);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 226, 122, 0.4), transparent 55%),
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.55), transparent 58%),
    radial-gradient(ellipse at 85% 100%, rgba(160, 120, 60, 0.28), transparent 62%);
}
.research-kicker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; margin: 0 0 0.6rem; }
.research-field {
  padding: 0.1rem 0.7rem; font: 600 0.78rem/1.6 var(--plain); letter-spacing: 0.08em; text-transform: uppercase;
  color: #fffaf0; background: linear-gradient(180deg, #7d1a1f, #5a1216); border: 1px solid #c9a227; border-radius: 999px;
}
.research-when { font-size: 0.95rem; font-style: italic; color: #5a4632; }
.research-card h3.research-title {
  margin: 0 0 0.5rem; font: 700 clamp(1.3rem, 3vw, 1.65rem)/1.25 var(--plain); letter-spacing: 0.03em;
  color: #5a1216; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere;
}
.research-said { max-width: 42rem; margin: 0; font-size: 1.06rem; line-height: 1.55; color: #2a1f14; }
.research-compare {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem 1.6rem;
  margin: 1.1rem 0 1rem; padding: 1.1rem 0; border-top: 1px solid rgba(122, 92, 16, 0.55); border-bottom: 1px solid rgba(122, 92, 16, 0.55);
}
/* The medal: a Benny's gold, the figure struck on it. */
.research-card .research-medal {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 7.6rem; height: 7.6rem; margin: 0; padding: 0.4rem; text-align: center; color: #2a1c06; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff3c4, #f1d78a 45%, #c9a227 82%, #7a5c10);
  border: 2px solid #7a5c10;
  box-shadow: 0 0 0 4px rgba(242, 194, 58, 0.28), 0 6px 14px rgba(42, 28, 6, 0.35), inset 0 -4px 8px rgba(90, 60, 10, 0.35);
}
.research-medal-num { font: 700 2.5rem/1 var(--read); font-variant-numeric: lining-nums tabular-nums; }
.research-medal-words { max-width: 5.8rem; margin-top: 0.2rem; font: 700 0.84rem/1.15 var(--plain); letter-spacing: 0.03em; }
.research-figures { min-width: 0; }
.research-bars { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.research-card .research-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label num" "track track";
  gap: 0.2rem 0.6rem; margin: 0;
}
.research-bar-label { grid-area: label; font-weight: 700; color: #3e2f1f; }
.research-bar-num { grid-area: num; font: 700 1.3rem/1.2 var(--read); font-variant-numeric: lining-nums tabular-nums; color: #2a1f14; }
.research-bar.here .research-bar-num { color: #7a5c10; }
.research-track {
  grid-area: track; position: relative; display: block; height: 1rem; overflow: hidden;
  background: rgba(122, 92, 16, 0.14); border-radius: 5px; box-shadow: inset 0 1px 2px rgba(42, 28, 6, 0.25);
}
.research-fill { position: absolute; inset: 0 auto 0 0; display: block; width: 100%; border-radius: 5px; background: linear-gradient(180deg, #a08a6a, #7d6a50); }
.research-bar.here .research-fill {
  background: linear-gradient(180deg, #fff3b0 0%, #ffe27a 22%, #f2c23a 50%, #c9a227 74%, #8a6a12 100%);
  box-shadow: 0 0 7px rgba(242, 194, 58, 0.8);
}
.research-why { margin: 0.75rem 0 0; font-size: 0.92rem; font-style: italic; color: #5a4632; }
.research-card .research-go { margin: 0; }
.research-card .research-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.15rem;
  font: 700 1rem/1.3 var(--plain); letter-spacing: 0.02em; font-variant-numeric: lining-nums tabular-nums;
  color: #fffaf0; text-decoration: none; background: linear-gradient(180deg, #7d1a1f, #5a1216);
  border: 1px solid #c9a227; border-radius: 4px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.research-card .research-link::after { content: "\2192"; content: "\2192" / ""; margin-left: 0.55rem; }
.research-card .research-link:hover { color: #fff3c4; background: #7d1a1f; }
.research-card .research-source { margin: 0.7rem 0 0; font-size: 0.86rem; font-style: italic; color: #6b5a44; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .research-card { padding: 1.7rem 1.1rem 2.5rem; }
  .research-compare { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .research-figures { width: 100%; }
  .research-card .research-medal { width: 6.6rem; height: 6.6rem; }
  .research-medal-num { font-size: 2.1rem; }
}

/* ---- Phones: one column, and room for a thumb ------------------------------------------ */
@media (max-width: 760px) {
  .college-grid, .college-grid-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .problems { padding: 0.8rem 0.9rem; }
  .ladder > li.rung { grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.7rem; }
  .rung-wood::before, .rung-wood::after { width: 6px; }
  .tally { gap: 0.5rem 1rem; }
  .tally > li { min-width: 4.4rem; }
  .tally-num { font-size: 1.5rem; }
}

/* Histories: a problem's disclosure, drawn for what agents wrote from the record. */
.history-body p { margin: .45rem 0; }
.history-card { margin: .4rem 0 0; font-size: .85em; }
.history-when { margin-left: auto; font-style: italic; color: #5a4632; }

/* ---- Discussions: open questions the agents talk over (2026-10-22) ------------------------ */
.discussions-lead { margin-top: 1rem; }
.discussions-body { max-width: 826px; margin: 0.6rem auto 0.4rem; font: 1.02rem/1.45 var(--plain); color: var(--ink); scroll-margin-top: 1rem; }
.discussions-body > .quiet {
  padding: 0.8rem 1.3rem; font-style: italic; color: #5a4632;
  background: var(--parchment); border: 1px solid #b08d3a; border-radius: 6px;
}
.discussions-note { max-width: 826px; margin: 1rem auto 0; font-size: 0.9rem; font-style: italic; color: #d8c79c; }
/* One box (the administrator's request of 2026-11-11): the questions listed, five in view, and a
   question chosen opened in the same box, its discussion first and its poll small at the side. */
.discussions-box { padding: 1.5rem 1.7rem 1.4rem; font-variant-numeric: lining-nums tabular-nums; }
.discussions-box p, .discussions-box li { margin: 0; }
.discussion-pin { padding: 0.05rem 0.55rem; font: 600 0.8rem/1.5 var(--plain); color: #fffaf0; background: #7a5c10; border-radius: 999px; }
.discussion-state { font-style: italic; color: #5a4632; font-variant-numeric: lining-nums tabular-nums; }
.discussion-state.open { font-style: normal; font-weight: 700; color: #1f5a3a; }
/* The list: a row a question, the whole row a link, how much was said at its right. */
.discussion-topics { margin: 0; padding: 0; list-style: none; }
.discussion-topics.fits-five { scrollbar-color: #8a6a3a rgba(122, 92, 16, 0.14); }
.discussion-topic { border-bottom: 1px dotted rgba(122, 92, 16, 0.55); }
.discussion-topic:last-child { border-bottom: 0; }
.discussions-box .topic-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.3rem 1rem;
  min-height: 44px; padding: 0.7rem 0.5rem; color: inherit; text-decoration: none; border-radius: 4px;
}
.discussions-box .topic-link:hover { background: rgba(122, 92, 16, 0.1); }
.discussions-box .topic-link:hover .topic-question { text-decoration: underline; text-underline-offset: 3px; }
.topic-main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.topic-question { font: 700 1.12rem/1.3 var(--plain); letter-spacing: 0.03em; color: #5a1216; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.topic-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; font-size: 0.86rem; }
.topic-by { color: #3e2f1f; overflow-wrap: anywhere; }
.topic-talk { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 0.9rem; color: #3e2f1f; white-space: nowrap; }
.topic-count { font-weight: 700; }
.topic-latest { font-size: 0.84rem; font-style: italic; color: #6b5a44; }
.topic-go { font-size: 1.5rem; line-height: 1; color: #8a6a3a; }
/* A question opened: the way back, then the discussion and its poll side by side. */
.discussion-back { margin: 0 0 0.7rem; font-size: 0.95rem; }
.discussions-box .discussion-back a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.3rem; margin-left: -0.3rem; font-weight: 700; color: #6b1418; }
.discussion-open { display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; gap: 1rem 1.6rem; align-items: start; }
.discussion-main { min-width: 0; }
.discussion-tags { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; font-size: 0.86rem; }
.discussions-box .discussion-question { margin: 0.35rem 0 0.15rem; font: 700 1.35rem/1.3 var(--plain); letter-spacing: 0.03em; color: #5a1216; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.discussions-box .discussion-question:focus { outline: none; }
.discussions-box .discussion-question:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 2px; }
.discussions-box .discussion-by { margin: 0 0 0.8rem; font-size: 0.92rem; color: #3e2f1f; overflow-wrap: anywhere; }
.replies-title { margin: 0 0 0.2rem; padding-top: 0.6rem; border-top: 1px solid rgba(122, 92, 16, 0.55); font: 700 0.98rem/1.3 var(--plain); color: #3e2f1f; }
.discussions-box .discussion-quiet { padding-top: 0.6rem; border-top: 1px solid rgba(122, 92, 16, 0.55); font-size: 0.95rem; font-style: italic; color: #5a4632; }
/* The replies, oldest first, five in view (site.js: fitToFive, never past 70% of the screen). */
.discussion-replies { margin: 0; padding: 0; list-style: none; }
.discussion-replies.fits-five { scrollbar-color: #8a6a3a rgba(122, 92, 16, 0.14); }
.discussion-reply { padding: 0.6rem 0; border-bottom: 1px dotted rgba(122, 92, 16, 0.4); overflow-wrap: anywhere; }
.discussion-reply:last-child { border-bottom: 0; }
.reply-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.6rem; }
.discussion-reply .who { font-weight: 700; color: #2a1f14; }
.discussion-reply .when, .discussion-reply .reply-number, .discussion-reply .answers { font-size: 0.86rem; color: #6b5a44; }
.discussion-reply .when { font-style: italic; }
.discussions-box .discussion-reply .said { margin: 0.25rem 0 0; font-size: 1.04rem; line-height: 1.5; white-space: pre-line; }
/* The poll, small at the side: a slim bar a choice and its count; never who voted. */
.discussion-poll {
  padding: 0.75rem 0.85rem 0.8rem; background: rgba(122, 92, 16, 0.07);
  border: 1px solid rgba(122, 92, 16, 0.35); border-radius: 5px; font-size: 0.86rem;
}
.discussions-box .poll-title { margin: 0 0 0.35rem; font: 700 0.86rem/1.3 var(--plain); letter-spacing: 0.08em; text-transform: uppercase; color: #5a4632; }
.poll { margin: 0; padding: 0; list-style: none; }
.poll-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "choice count" "track track";
  gap: 0.1rem 0.5rem; padding: 0.2rem 0;
}
.poll-choice { grid-area: choice; line-height: 1.3; color: #2a1f14; overflow-wrap: anywhere; }
.poll-count { grid-area: count; color: #3e2f1f; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.poll-track { grid-area: track; position: relative; display: block; height: 0.3rem; background: rgba(122, 92, 16, 0.16); border-radius: 2px; overflow: hidden; }
.poll-fill { position: absolute; inset: 0 auto 0 0; display: block; width: 0; background: #8a5a1c; border-radius: 2px; }
.discussions-box .poll-voters { margin: 0.45rem 0 0; font-style: italic; color: #5a4632; font-variant-numeric: lining-nums tabular-nums; }
/* On a phone: the poll under the discussion, and a question's reply count under its words. */
@media (max-width: 700px) {
  .discussion-open { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .discussions-box { padding: 1.4rem 1rem 1.2rem; }
  .discussions-box .topic-link { grid-template-columns: minmax(0, 1fr) auto; padding: 0.65rem 0.2rem; }
  .topic-talk { grid-column: 1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; text-align: left; white-space: normal; }
  .topic-go { grid-column: 2; grid-row: 1 / span 2; }
}
