/* ===========================================================================
   Report-card table: a story's grades, then and now.
   ===========================================================================

   Pasted into the story body as a <figure class="osc-grades">, and this file
   loads only on a story that has one (news.php and news-feature.php match on
   the class, as they do for the gallery).

   The markup is a plain <table>, so a feed reader or the Markdown export gets
   an ordinary table. Arrows and tints live here, not in the words: "Dropped"
   is in the cell, and the colour never carries the meaning alone.

   The sanitizer allows no <caption> and no style attribute. No <strong>
   either, on purpose: .article-container strong paints it blue. */

.osc-grades {
  container: osc-grades / inline-size;
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #1b1d23;
  box-shadow: 0 10px 28px rgba(27, 29, 35, 0.16);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.osc-grades-head {
  display: block;
  padding: 18px 22px 16px;
  background: #1b1d23;
  border-top: 6px solid #b21f2d;
}
.osc-grades-kicker {
  display: block;
  color: #ffc53d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.osc-grades-title {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}
.osc-grades-dek {
  display: block;
  margin-top: 6px;
  color: #d9dbe1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.osc-grades-table {
  width: 100%;
  border-collapse: collapse;
  color: #1b1d23;
}
.osc-grades-table thead th {
  padding: 10px 8px;
  background: #f1eee6;
  border-bottom: 2px solid #1b1d23;
  color: #1b1d23;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.osc-grades-table thead th:first-child { padding-left: 22px; text-align: left; }
.osc-grades-year {
  display: block;
  color: #5d5a50;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
}

.osc-grades-table tbody th,
.osc-grades-table tbody td {
  padding: 11px 8px;
  border-bottom: 1px solid #e4e0d5;
  text-align: center;
  vertical-align: middle;
}
.osc-grades-table tbody tr:last-child th,
.osc-grades-table tbody tr:last-child td { border-bottom: 0; }
.osc-grades-table tbody th {
  padding-left: 16px;
  border-left: 6px solid transparent;
  color: #1b1d23;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.osc-grades-table .is-down { background: #fdf0ee; }
.osc-grades-table .is-up { background: #edf8f0; }
.osc-grades-table .is-down th { border-left-color: #b21f2d; }
.osc-grades-table .is-up th { border-left-color: #1a7f43; }
.osc-grades-table .is-same th { border-left-color: #c9c4b6; }

/* The grade. Last year's is a quiet tint; this year's is the loud one. */
.osc-grade {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2.5rem;
  text-align: center;
}
.osc-grade-a { background: #dcf3e3; color: #14663a; }
.osc-grade-b { background: #dfeafb; color: #1c4f9c; }
.osc-grade-c { background: #fdf0c4; color: #6e5200; }
.osc-grade-d { background: #fde2d4; color: #9c3208; }
.osc-grade-f { background: #f9d9dc; color: #8a1622; }

.osc-grades-now .osc-grade {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 2.1rem;
  line-height: 3.25rem;
  box-shadow: 0 3px 8px rgba(27, 29, 35, 0.28);
}
.osc-grades-now .osc-grade-a { background: #1a7f43; color: #fff; }
.osc-grades-now .osc-grade-b { background: #1f5fbf; color: #fff; }
.osc-grades-now .osc-grade-c { background: #ffc53d; color: #1b1d23; }
.osc-grades-now .osc-grade-d { background: #c8410b; color: #fff; }
.osc-grades-now .osc-grade-f { background: #b21f2d; color: #fff; }

/* The arrow from the old grade to the new one. */
.osc-grades-table td.osc-grades-was { position: relative; }
.osc-grades-table td.osc-grades-was::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -0.6em;
  transform: translateY(-50%);
  color: #8a8577;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.osc-grades-table .is-down td.osc-grades-was::after { color: #b21f2d; }
.osc-grades-table .is-up td.osc-grades-was::after { color: #1a7f43; }

.osc-grades-change span {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.is-down .osc-grades-change span { background: #b21f2d; color: #fff; }
.is-up .osc-grades-change span { background: #1a7f43; color: #fff; }
.is-same .osc-grades-change span { background: #e9e5da; color: #4b483f; }
.is-down .osc-grades-change span::before { content: "\25BC\00A0"; }
.is-up .osc-grades-change span::before { content: "\25B2\00A0"; }

.osc-grades-foot {
  display: block;
  padding: 10px 22px;
  background: #f1eee6;
  border-top: 2px solid #1b1d23;
  color: #5d5a50;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* A phone's column, or any narrow one: by the block's own width, not the
   window's, since the story column is narrower than the screen. */
@container osc-grades (max-width: 460px) {
  .osc-grades-head { padding: 15px 14px 13px; }
  .osc-grades-title { font-size: 1.32rem; }
  .osc-grades-table thead th { padding: 8px 3px; font-size: 0.68rem; letter-spacing: 0.04em; }
  .osc-grades-table thead th:first-child { padding-left: 14px; }
  .osc-grades-year { font-size: 0.66rem; white-space: nowrap; }
  .osc-grades-table tbody th,
  .osc-grades-table tbody td { padding: 9px 3px; }
  .osc-grades-table tbody th { padding-left: 8px; font-size: 0.92rem; }
  .osc-grade { width: 1.8rem; height: 1.8rem; font-size: 1.1rem; line-height: 1.8rem; }
  .osc-grades-now .osc-grade { width: 2.35rem; height: 2.35rem; font-size: 1.5rem; line-height: 2.35rem; }
  .osc-grades-table td.osc-grades-was::after { font-size: 0.95rem; right: -0.5em; }
  .osc-grades-table tbody td.osc-grades-change { padding-right: 8px; }
  .osc-grades-change span { padding: 4px 8px; font-size: 0.68rem; letter-spacing: 0; }
  .is-down .osc-grades-change span::before,
  .is-up .osc-grades-change span::before { content: none; }
  .osc-grades-foot { padding: 9px 14px; }
}

/* ---- Information tables in the same frame: osc-grades--election -----------
   Who holds a seat, what happens when. Navy and gold, to sit with the Election
   2027 graphic. Plain tables underneath, like the grades above. */
.osc-grades--election { border-color: #101a38; }
.osc-grades--election .osc-grades-head { background: #101a38; }
.osc-info-table td,
.osc-info-table tbody th { text-align: left; vertical-align: middle; }
.osc-grades-table.osc-info-table thead th { text-align: left; padding-left: 14px; }
.osc-grades-table.osc-info-table thead th:first-child { padding-left: 22px; }
.osc-grades-table.osc-info-table tbody th {
  padding: 13px 12px 13px 14px;
  border-left: 0;
  font-weight: 400;
}
.osc-grades-table.osc-info-table tbody td { padding: 13px 10px; }
.osc-grades-table.osc-info-table tbody td:first-child { padding-left: 20px; }
.osc-grades-table.osc-info-table tbody tr:nth-child(even) { background: #f7f4ec; }

.osc-info-name {
  display: block;
  color: #101a38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
}
.osc-info-note {
  display: block;
  margin-top: 3px;
  color: #4b483f;
  font-size: 0.92rem;
  line-height: 1.38;
}
.osc-info-flag {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fbe9c0;
  color: #6b4b00;
  font-size: 0.76rem;
  font-weight: 700;
}

/* A calendar leaf for each date. */
.osc-cal {
  display: inline-block;
  width: 5.9rem;
  overflow: hidden;
  border: 1px solid #101a38;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(16, 26, 56, 0.22);
  text-align: center;
}
.osc-cal-m {
  display: block;
  padding: 3px 0 2px;
  background: #b21f2d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.osc-cal-d {
  display: block;
  padding-top: 4px;
  color: #101a38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
}
.osc-cal-y {
  display: block;
  padding-bottom: 4px;
  color: #5d5a50;
  font-size: 0.72rem;
}

/* The seat, as a badge. */
.osc-seat {
  display: inline-block;
  min-width: 5.2rem;
  padding: 7px 8px 6px;
  border-radius: 8px;
  background: #101a38;
  color: #ffc53d;
  text-align: center;
}
.osc-seat-n {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.osc-seat-t {
  display: block;
  margin-top: 3px;
  color: #d9dbe1;
  font-size: 0.68rem;
  line-height: 1.15;
}

@container osc-grades (max-width: 460px) {
  .osc-grades-table.osc-info-table thead th:first-child { padding-left: 12px; }
  .osc-grades-table.osc-info-table thead th { padding-left: 8px; }
  .osc-grades-table.osc-info-table tbody td:first-child { padding-left: 10px; padding-right: 4px; }
  .osc-grades-table.osc-info-table tbody th { padding: 11px 10px 11px 8px; }
  .osc-info-name { font-size: 1.05rem; }
  .osc-info-note { font-size: 0.84rem; }
  .osc-cal { width: 4.9rem; }
  .osc-cal-d { font-size: 1.32rem; }
  .osc-seat { min-width: 4.3rem; padding: 6px 5px 5px; }
  .osc-seat-n { font-size: 0.88rem; }
  .osc-seat-t { font-size: 0.62rem; }
}

/* ---- A map in the same frame: tap the picture, get the full PDF ----------- */
.osc-mapcard img.osc-mapcard-img { display: block; width: 100%; height: auto; margin: 0; }
.article-container a.osc-mapcard-link,
a.osc-mapcard-link {
  display: block;
  position: relative;
  border-bottom: 2px solid #101a38;
  text-decoration: none;
}
.article-container a.osc-mapcard-link .osc-mapcard-cta,
.osc-mapcard-cta {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: #b21f2d;
  box-shadow: 0 4px 14px rgba(16, 26, 56, 0.45);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
a.osc-mapcard-link:hover .osc-mapcard-cta,
a.osc-mapcard-link:focus-visible .osc-mapcard-cta { background: #101a38; }
.osc-mapcard-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 11px 14px;
  background: #fff;
}
.osc-key {
  color: #1b1d23;
  font-size: 0.9rem;
  font-weight: 700;
}
.osc-key::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border: 1px solid #1b1d23;
  border-radius: 3px;
  vertical-align: -2px;
}
.osc-key-1::before { background: #fbf8b0; }
.osc-key-2::before { background: #f3b2fa; }
.osc-key-3::before { background: #b5e9fc; }

@container osc-grades (max-width: 460px) {
  .osc-mapcard-cta { bottom: 9px; padding: 8px 14px; font-size: 0.82rem; }
}

/* ---- A newspaper ledger in the same frame: osc-tax -------------------------
   Warm white, ink, fine rules, figures in columns. The plus and minus signs do
   the telling, so it holds up in grayscale. Plain table underneath; on a narrow
   column each row folds into a card, its labels supplied here so a feed reader
   gets an ordinary table. */
.osc-grades.osc-tax {
  border: 1px solid #1a1812;
  border-radius: 2px;
  background: #fbf8f0;
  box-shadow: none;
  color: #1a1812;
  font-variant-numeric: lining-nums tabular-nums;
}
.osc-tax-head { display: block; padding: 18px 20px 0; border-top: 5px solid #1a1812; }
.osc-tax-kicker { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #5b5546; }
.osc-tax-title { display: block; margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.62rem; font-weight: 700; line-height: 1.16; color: #1a1812; }
.osc-tax-dek { display: block; margin-top: 5px; font-size: 0.86rem; color: #5b5546; }
.osc-tax-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid #1a1812; }
.osc-tax-stat { display: block; padding: 11px 12px 12px 0; }
.osc-tax-stat + .osc-tax-stat { padding-left: 14px; border-left: 1px solid #cfc7b3; }
.osc-tax-n { display: block; font-family: Georgia, "Times New Roman", serif; font-feature-settings: "lnum" 1; font-size: 1.42rem; font-weight: 700; line-height: 1.1; color: #1a1812; white-space: nowrap; }
.osc-tax-k { display: block; margin-top: 3px; font-size: 0.74rem; color: #5b5546; }

.osc-tax-table { width: 100%; border-collapse: collapse; color: #1a1812; font-size: 0.8rem; line-height: 1.25; }
.osc-tax-table thead th { padding: 8px 6px; border-top: 1px solid #1a1812; border-bottom: 1px solid #1a1812; background: transparent; color: #1a1812; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.2; text-align: right; text-transform: uppercase; vertical-align: bottom; }
.osc-tax-table thead th:nth-child(-n+2) { text-align: left; }
.osc-tax-table thead th:first-child { padding-left: 16px; }
.osc-tax-table thead th:last-child { padding-right: 16px; }
.osc-tax-table tbody th, .osc-tax-table td { padding: 7px 6px; border-bottom: 1px solid #e0d9c7; text-align: right; vertical-align: middle; white-space: nowrap; }
.osc-tax-table tbody th { padding-left: 16px; color: #1a1812; font-weight: 700; text-align: left; }
.osc-tax-table td:nth-child(2) { color: #5b5546; text-align: left; }
.osc-tax-table td:last-child { padding-right: 16px; }
.osc-tax-table tr.is-total td:nth-child(2) { white-space: normal; }
.osc-tax-pct { display: block; font-weight: 700; }
.osc-tax-bar { display: block; position: relative; width: 66px; height: 5px; margin: 4px 0 0 auto; }
.osc-tax-bar::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: 50%; width: 1px; background: #1a1812; }
.osc-tax-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc(var(--w, 0) * 0.5%); }
.osc-tax-bar.is-up::after { left: 50%; background: #1a1812; }
.osc-tax-bar.is-down::after { right: 50%; background: #a23b2a; }
.osc-w5{--w:5}.osc-w10{--w:10}.osc-w15{--w:15}.osc-w20{--w:20}.osc-w25{--w:25}.osc-w30{--w:30}.osc-w35{--w:35}.osc-w40{--w:40}.osc-w45{--w:45}.osc-w50{--w:50}.osc-w55{--w:55}.osc-w60{--w:60}.osc-w65{--w:65}.osc-w70{--w:70}.osc-w75{--w:75}.osc-w80{--w:80}.osc-w85{--w:85}.osc-w90{--w:90}.osc-w95{--w:95}.osc-w100{--w:100}
.osc-tax-table tr.is-peak th, .osc-tax-table tr.is-peak td { background: #f5e8c4; }
.osc-tax-table tr.is-peak th { box-shadow: inset 4px 0 0 #1a1812; }
.osc-tax-table tr.is-total th, .osc-tax-table tr.is-total td { padding-top: 10px; padding-bottom: 10px; border-top: 1px solid #1a1812; border-bottom: 3px double #1a1812; color: #1a1812; font-weight: 700; }
.osc-tax-notes { padding: 11px 20px 14px; color: #4a4538; font-size: 0.78rem; line-height: 1.42; }
.osc-tax-notes p { margin: 0 0 6px; }
.osc-tax-notes p:last-child { margin-bottom: 0; }
.osc-tax-b { font-weight: 700; color: #1a1812; }

@container osc-grades (max-width: 610px) {
  .osc-tax-head { padding: 15px 14px 0; }
  .osc-tax-title { font-size: 1.36rem; }
  .osc-tax-stats { grid-template-columns: 1fr; }
  .osc-tax-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; }
  .osc-tax-stat + .osc-tax-stat { padding-left: 0; border-left: 0; border-top: 1px solid #cfc7b3; }
  .osc-tax-n { font-size: 1.14rem; }
  .osc-tax-k { margin-top: 0; font-size: 0.74rem; }
  .osc-tax-table { display: block; border-top: 1px solid #1a1812; font-size: 0.86rem; }
  .osc-tax-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .osc-tax-table tbody { display: block; }
  .osc-tax-table tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e0d9c7; }
  .osc-tax-table tbody th, .osc-tax-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .osc-tax-table td:last-child { padding-right: 0; }
  .osc-tax-table tbody th { grid-column: 1; grid-row: 1; padding-left: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; }
  .osc-tax-table td:nth-child(6) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .osc-tax-pct { font-size: 1.08rem; }
  .osc-tax-table td:nth-child(2) { grid-column: 1; grid-row: 2; margin-bottom: 6px; font-size: 0.78rem; }
  .osc-tax-table td:nth-child(2)::before { content: "Mainly reflects "; }
  .osc-tax-table td:nth-child(n+3):nth-child(-n+5) { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-top: 1px dotted #d6cfbc; }
  .osc-tax-table td:nth-child(n+3):nth-child(-n+5)::before { color: #5b5546; font-size: 0.76rem; text-align: left; }
  .osc-tax-table td:nth-child(3)::before { content: "Sales tax received"; }
  .osc-tax-table td:nth-child(4)::before { content: "Same month a year earlier"; }
  .osc-tax-table td:nth-child(5)::before { content: "Dollar change"; }
  .osc-tax-table tr.is-peak { background: #f5e8c4; box-shadow: inset 4px 0 0 #1a1812; }
  .osc-tax-table tr.is-peak th, .osc-tax-table tr.is-peak td { background: transparent; box-shadow: none; }
  .osc-tax-table tr.is-total { border-top: 1px solid #1a1812; border-bottom: 3px double #1a1812; }
  .osc-tax-table tr.is-total th, .osc-tax-table tr.is-total td { padding-top: 0; padding-bottom: 0; border-top: 0; border-bottom: 0; }
  .osc-tax-table tr.is-total td:nth-child(n+3):nth-child(-n+5) { padding: 2px 0; border-top: 1px dotted #d6cfbc; }
  .osc-tax-notes { padding: 11px 14px 14px; }
}

/* ---- A timeline in the same frame: osc-tl (story 221, 20 Nov 2026) ---------
   <figure class="osc-grades osc-tl"> > figcaption.osc-grades-head, then
   table.osc-grades-table.osc-tl-table: th[scope=row] holds span.osc-tl-date +
   span.osc-tl-time, td holds what happened. A rail with a dot per row runs
   down the left of the words; tr.osc-tl-new starts a new night (a heavier dot
   and a rule above), tr.osc-tl-end is the outcome (a red dot). Then an optional
   div.osc-tl-stats of span.osc-tl-stat > span.osc-tl-num + span.osc-tl-label,
   and span.osc-grades-foot for the source. Still a plain two-column table for
   feeds and the Markdown export. */
.osc-tl { border-color: #1b1d23; }
.osc-tl-table thead th { text-align: left; padding: 10px 14px 10px 0; }
.osc-tl-table thead th:first-child { padding-left: 22px; width: 9.5rem; }
.osc-tl-table tbody th,
.osc-tl-table tbody td { vertical-align: top; border-bottom: 0; }
.osc-tl-table tbody th {
  width: 9.5rem;
  padding: 16px 12px 14px 22px;
  border-left: 0;
  background: transparent;
  text-align: left;
}
.osc-tl-date {
  display: block;
  color: #b21f2d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.osc-tl-time {
  display: block;
  margin-top: 2px;
  color: #1b1d23;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}
.osc-tl-table tbody td {
  position: relative;
  padding: 16px 22px 14px 34px;
  text-align: left;
  color: #303030;
  font-size: 0.98rem;
  line-height: 1.5;
}
/* the rail, and a dot on it */
.osc-tl-table tbody td::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d8d2c3;
}
.osc-tl-table tbody tr:first-child td::before { top: 22px; }
.osc-tl-table tbody tr:last-child td::before { bottom: auto; height: 22px; }
.osc-tl-table tbody td::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  width: 8px;
  height: 8px;
  border: 2px solid #1b1d23;
  border-radius: 50%;
  background: #fff;
}
.osc-tl-table tr.osc-tl-new th,
.osc-tl-table tr.osc-tl-new td { border-top: 1px solid #d8d2c3; }
.osc-tl-table tbody tr:first-child th,
.osc-tl-table tbody tr:first-child td { border-top: 0; }
.osc-tl-table tr.osc-tl-new td::after { background: #1b1d23; }
.osc-tl-table tr.osc-tl-end td::after { background: #b21f2d; border-color: #b21f2d; }
.osc-tl-table tr.osc-tl-end { background: #fbf5ec; }

.osc-tl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #1b1d23;
  border-top: 2px solid #1b1d23;
}
.osc-tl-stat { display: block; padding: 14px 16px 15px 22px; }
.osc-tl-stat + .osc-tl-stat { border-left: 1px solid #3a3d46; padding-left: 16px; }
.osc-tl-num {
  display: block;
  color: #ffc53d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}
.osc-tl-label { display: block; margin-top: 3px; color: #d9dbe1; font-size: 0.8rem; line-height: 1.35; }

/* A narrow column: the time sits above the words, the rail runs down the left
   of both, and the figures stack. */
@container osc-grades (max-width: 520px) {
  .osc-tl-table thead { display: none; }
  .osc-tl-table, .osc-tl-table tbody, .osc-tl-table tr { display: block; width: 100%; }
  .osc-tl-table tbody tr { position: relative; }
  .osc-tl-table tbody th,
  .osc-tl-table tbody td { display: block; width: auto; }
  .osc-tl-table tbody th { padding: 14px 16px 0 34px; }
  .osc-tl-table tbody td { padding: 4px 16px 14px 34px; position: static; }
  .osc-tl-table tbody th .osc-tl-date,
  .osc-tl-table tbody th .osc-tl-time { display: inline; margin: 0 6px 0 0; }
  .osc-tl-table tbody th .osc-tl-time { font-size: 1.05rem; }
  .osc-tl-table tr.osc-tl-new td { border-top: 0; }
  .osc-tl-table tbody td::after { top: 18px; }
  .osc-tl-table tbody tr:first-child td::before { top: 18px; }
  .osc-tl-table tbody tr:last-child td::before { height: 18px; }
  .osc-tl-stats { grid-template-columns: 1fr; }
  .osc-tl-stat { display: flex; align-items: baseline; gap: 12px; padding: 10px 16px; }
  .osc-tl-stat + .osc-tl-stat { border-left: 0; border-top: 1px solid #3a3d46; padding-left: 16px; }
  .osc-tl-num { font-size: 1.35rem; flex: none; min-width: 4.2rem; }
}

/* A link to our earlier story at the end of a timeline row. */
.osc-tl-table a.osc-tl-link {
  display: inline-block;
  margin-left: 4px;
  color: #b21f2d;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.osc-tl-table a.osc-tl-link::after { content: "\00A0\2192"; }
.osc-tl-table a.osc-tl-link:hover { text-decoration: underline; }
.osc-tl-num { white-space: nowrap; }

/* ---- The Traffic Beat timeline: osc-tl--deer (story 223, 20 Nov 2026) ------
   A yellow rule instead of red, and a deer-crossing diamond in the top right
   corner: span.osc-deer-sign[aria-hidden] > span.osc-deer-sign-text > two
   spans, placed BEFORE the figcaption so the Markdown export (which reads the
   caption) never prints "DEER CROSSING". */
.osc-tl--deer { position: relative; }
.osc-tl--deer .osc-grades-head { border-top-color: #f2b705; padding-right: 128px; }
.osc-tl--deer .osc-tl-table tr.osc-tl-end td::after { background: #f2b705; border-color: #1b1d23; }
.osc-tl--deer .osc-tl-table tr.osc-tl-end { background: #fdf8e6; }
.osc-deer-sign {
  position: absolute;
  top: 30px;
  right: 34px;
  width: 66px;
  height: 66px;
  transform: rotate(45deg);
  background: #f2b705;
  border: 3px solid #f2b705;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px #111, 0 6px 16px rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.osc-deer-sign-text {
  position: absolute;
  inset: 0;
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111;
  font: 900 11px/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.osc-deer-sign-text span { display: block; }
.osc-deer-sign-text span:first-child { font-size: 15px; letter-spacing: 0.06em; }
@container osc-grades (max-width: 520px) {
  .osc-tl--deer .osc-grades-head { padding-right: 86px; }
  .osc-deer-sign { top: 24px; right: 22px; width: 46px; height: 46px; }
  .osc-deer-sign-text { font-size: 8px; }
  .osc-deer-sign-text span:first-child { font-size: 11px; }
}

/* ---- Power-line graphics: osc-grades--power (story 224, 20 Nov 2026) -------
   The route map's orange on the dark head. The map card keys a study segment
   (an orange line) and a substation (a white star on the ink). */
.osc-grades--power .osc-grades-head { border-top-color: #f5a623; }
.osc-grades--power .osc-grades-kicker { color: #f5a623; }
.osc-grades--power a.osc-mapcard-link { border-bottom-color: #1b1d23; }
.osc-key-route::before { width: 22px; height: 6px; border: 0; border-radius: 3px; background: #f5a623; vertical-align: 3px; }
.osc-key-sub::before {
  content: "\2605";
  width: auto; height: auto; border: 0; background: none;
  color: #1b1d23; font-size: 1.05rem; line-height: 1; vertical-align: -1px;
}
.osc-grades--power .osc-tl-table tr.osc-tl-end td::after { background: #f5a623; border-color: #1b1d23; }
.osc-grades--power .osc-tl-table tr.osc-tl-end { background: #fdf4e3; }

/* The price and the date: a three-column table, a bar under each cost. */
.osc-cost-table thead th { text-align: left; padding: 10px 12px; }
.osc-cost-table thead th:first-child { padding-left: 22px; width: 8.5rem; }
.osc-cost-table tbody th,
.osc-cost-table tbody td { text-align: left; vertical-align: top; padding: 14px 12px; }
.osc-cost-table tbody th { padding-left: 22px; border-left: 0; }
.osc-cost-when { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 700; }
.osc-cost-sub { display: block; margin-top: 2px; color: #5d5a50; font-size: 0.78rem; font-weight: 400; line-height: 1.3; }
.osc-cost-amt { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; line-height: 1.15; color: #1b1d23; }
.osc-cost-bar {
  display: block;
  height: 10px;
  margin-top: 8px;
  width: calc(var(--w, 0) * 1%);
  border-radius: 0 5px 5px 0;
  background: #b9b3a3;
}
.osc-cost-table tr.is-up .osc-cost-bar { background: #f5a623; }
.osc-cost-date { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 700; }
.osc-cost-table tr.osc-cost-change { background: #1b1d23; }
.osc-cost-table tr.osc-cost-change th,
.osc-cost-table tr.osc-cost-change td { color: #ffc53d; font-weight: 700; font-size: 1rem; padding-top: 12px; padding-bottom: 12px; }
.osc-cost-table tr.osc-cost-change th { color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Who's who: the information table, its name column a little wider. */
.osc-grades--power .osc-info-table tbody th { width: 34%; }
.osc-grades--power .osc-info-table tbody td { text-align: left; }
.osc-cost-table tr.is-up { background: #fdf4e3; }
@container osc-grades (max-width: 520px) {
  .osc-cost-table thead th:first-child,
  .osc-cost-table tbody th { padding-left: 14px; width: auto; }
  .osc-cost-table tbody th,
  .osc-cost-table tbody td { padding: 12px 8px; }
  .osc-cost-amt { font-size: 1.15rem; }
  .osc-cost-when, .osc-cost-date { font-size: 1rem; }
  .osc-grades--power .osc-info-table, .osc-grades--power .osc-info-table tbody,
  .osc-grades--power .osc-info-table tr { display: block; width: 100%; }
  .osc-grades--power .osc-info-table thead { display: none; }
  .osc-grades--power .osc-info-table tbody th,
  .osc-grades--power .osc-info-table tbody td { display: block; width: auto; padding: 4px 16px; }
  .osc-grades--power .osc-info-table tbody th { padding-top: 14px; }
  .osc-grades--power .osc-info-table tbody td { padding-bottom: 14px; }
}

/* ---- A game in the same frame: osc-grades--game (story 225, 21 Nov 2026) ---
   The Bluejays' blue on the dark head. Two pieces, each still a plain table
   for feeds and the Markdown export:
   - table.osc-score-table, a scoreboard: th[scope=row] the team, then a td per
     half and td.osc-score-final; tr.is-win carries the winner.
   - table.osc-season-table, the season game by game: each tr (is-win|is-loss,
     plus is-playoff) becomes a tile in a grid; th holds span.osc-gm-n, then
     td.osc-gm-opp (opponent, optional span.osc-gm-tag), td.osc-gm-res
     (span.osc-gm-wl + optional span.osc-gm-score), td.osc-gm-rec. The thead
     is hidden on screen but stays for the export. */
.osc-grades--game .osc-grades-head { border-top-color: #1f5fbf; }
.osc-grades--game .osc-grades-kicker { color: #8fb8ff; }

.osc-score-table { width: 100%; border-collapse: collapse; background: #111418; color: #fff; }
.osc-score-table thead th {
  padding: 10px 10px 6px;
  background: #111418;
  border-bottom: 1px solid #2c3038;
  color: #9aa0ab;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.osc-score-table thead th:first-child { padding-left: 22px; text-align: left; }
.osc-score-table tbody th {
  padding: 14px 10px 14px 18px;
  border-left: 4px solid #3a3d46;
  color: #d9dbe1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}
.osc-score-table tbody tr + tr th,
.osc-score-table tbody tr + tr td { border-top: 1px solid #2c3038; }
.osc-score-table tbody tr.is-guthrie th { border-left-color: #1f5fbf; }
.osc-score-table tbody td {
  width: 4.6rem;
  padding: 10px 6px;
  color: #ffc53d;
  font: 700 1.6rem/1 Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.osc-score-table tbody td.osc-score-final {
  width: 5.6rem;
  background: #000;
  color: #8a8f99;
  font-size: 2.3rem;
  font-weight: 900;
}
.osc-score-table tbody tr.is-win td.osc-score-final { color: #ffc53d; }
.osc-score-table tbody tr.is-win th { color: #fff; }
.osc-score-table td.is-run { background: #2a2410; }
.osc-score-note {
  display: block;
  padding: 11px 22px;
  background: #1b1d23;
  border-top: 1px solid #2c3038;
  color: #d9dbe1;
  font-size: 0.9rem;
  line-height: 1.4;
}
.osc-score-note b { color: #ffc53d; }

.osc-season-table { display: block; width: 100%; padding: 16px 16px 6px; box-sizing: border-box; background: #f7f4ec; }
.osc-season-table thead {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.osc-season-table tbody { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.osc-season-table tr {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 8px 9px;
  border: 1px solid #d8d2c3;
  border-top: 4px solid #c9c4b6;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}
.osc-season-table th,
.osc-season-table td { display: block; padding: 0; border: 0; background: none; text-align: center; }
.osc-gm-n { display: block; color: #8a8576; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.osc-gm-n::before { content: "Game "; }
.osc-season-table td.osc-gm-res { order: -1; margin-bottom: 4px; }
.osc-gm-wl {
  display: block;
  font: 900 1.7rem/1 Georgia, "Times New Roman", serif;
}
.osc-season-table tr.is-win { border-top-color: #1f5fbf; }
.osc-season-table tr.is-win .osc-gm-wl { color: #1f5fbf; }
.osc-season-table tr.is-loss .osc-gm-wl { color: #b21f2d; }
.osc-gm-score { display: block; margin-top: 3px; color: #1b1d23; font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.osc-season-table td.osc-gm-opp {
  margin-top: 4px;
  color: #1b1d23;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.osc-gm-tag { display: block; margin-top: 2px; color: #5d5a50; font-size: 0.66rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.osc-season-table td.osc-gm-rec { margin-top: auto; padding-top: 6px; color: #5d5a50; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.osc-season-table td.osc-gm-rec::before { content: "Record "; }
.osc-season-table tr.is-playoff { border-top-color: #ffc53d; background: #fffaeb; }
.osc-season-table tr.is-playoff.is-win { box-shadow: inset 0 3px 0 #1f5fbf; }
.osc-season-key {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  padding: 4px 18px 14px;
  background: #f7f4ec;
  color: #5d5a50;
  font-size: 0.76rem;
}
.osc-season-key span::before {
  content: ""; display: inline-block; width: 14px; height: 4px; margin-right: 6px; vertical-align: 3px; border-radius: 2px;
}
.osc-season-key .k-win::before { background: #1f5fbf; }
.osc-season-key .k-loss::before { background: #c9c4b6; }
.osc-season-key .k-playoff::before { background: #ffc53d; }

@container osc-grades (max-width: 620px) {
  .osc-season-table tbody { grid-template-columns: repeat(4, 1fr); }
}
@container osc-grades (max-width: 460px) {
  .osc-score-table thead th { padding: 9px 4px 5px; font-size: 0.62rem; letter-spacing: 0.04em; }
  .osc-score-table thead th:first-child { padding-left: 14px; }
  .osc-score-table tbody th { padding: 12px 6px 12px 10px; font-size: 1rem; }
  .osc-score-table tbody td { width: 3rem; padding: 8px 2px; font-size: 1.3rem; }
  .osc-score-table tbody td.osc-score-final { width: 3.8rem; font-size: 1.8rem; }
  .osc-score-note { padding: 10px 14px; }
  .osc-season-table { padding: 12px 10px 4px; }
  .osc-season-table tbody { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .osc-season-key { padding: 4px 12px 12px; }
}

/* ---- A document to take away: osc-grades--rights (story 227, 24 Nov 2026) --
   "Know your rights as a parent": the map card's frame around a picture of the
   policy itself, in the Education Beat's blue and gold. The button is a bar
   under the picture rather than a pill on it, because on a phone a pill sits
   over the highlighted sentence the picture exists to show. */
.osc-grades--rights { border-color: #0b1d4f; }
.osc-grades--rights .osc-grades-head { background: #0b1d4f; border-top-color: #ffc23a; }
.osc-grades--rights .osc-grades-kicker { color: #ffc23a; }
.osc-grades--rights a.osc-mapcard-link { border-bottom: 0; }
.article-container .osc-grades--rights a.osc-mapcard-link .osc-mapcard-cta,
.osc-grades--rights .osc-mapcard-cta {
  position: static;
  transform: none;
  display: block;
  padding: 14px 18px;
  border-radius: 0;
  box-shadow: none;
  background: #ffc23a;
  color: #0b1d4f;
  font-size: 1.02rem;
  text-align: center;
  white-space: normal;
}
.article-container .osc-grades--rights a.osc-mapcard-link:hover .osc-mapcard-cta,
.article-container .osc-grades--rights a.osc-mapcard-link:focus-visible .osc-mapcard-cta,
.osc-grades--rights a.osc-mapcard-link:hover .osc-mapcard-cta,
.osc-grades--rights a.osc-mapcard-link:focus-visible .osc-mapcard-cta { background: #0b1d4f; color: #fff; }

/* ---- A document to take away, in the paper's own ink and red: osc-grades--doc
   (story 230, 27 Nov 2026, Edmond's full list of 27 road projects). The same
   bar under the picture as the rights card, for the same reason: on a phone a
   pill would sit over the highlighted rows. */
.osc-grades--doc a.osc-mapcard-link { border-bottom: 0; }
.article-container .osc-grades--doc a.osc-mapcard-link .osc-mapcard-cta,
.osc-grades--doc .osc-mapcard-cta {
  position: static;
  transform: none;
  display: block;
  padding: 14px 18px;
  border-radius: 0;
  box-shadow: none;
  background: #b21f2d;
  color: #fff;
  font-size: 1.02rem;
  text-align: center;
  white-space: normal;
}
.article-container .osc-grades--doc a.osc-mapcard-link:hover .osc-mapcard-cta,
.article-container .osc-grades--doc a.osc-mapcard-link:focus-visible .osc-mapcard-cta,
.osc-grades--doc a.osc-mapcard-link:hover .osc-mapcard-cta,
.osc-grades--doc a.osc-mapcard-link:focus-visible .osc-mapcard-cta { background: #1b1d23; color: #fff; }

/* A card an email links to by its id (story 230's #all-27-projects, 27 Nov
   2026) lands below the fixed masthead, not under it. */
.osc-grades[id] { scroll-margin-top: 150px; }
