/* Round 10 IA additions. Tokens and chrome come from round8. */

/* Document / source rows ------------------------------------------- */
.doc-intro {
  max-width: 40em;
  margin: 0 0 28px;
}
.doc-intro p { margin: 0 0 0.85em; font-size: 16px; line-height: 1.55; }

.meet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.meet-tabs a, .meet-tabs span {
  text-decoration: none;
  font-weight: 500;
}
.meet-tabs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.meet-tabs [aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.proc-block, .doc-group { margin: 0 0 36px; }
.proc-block h2, .doc-group h2 { margin-bottom: 6px; }
.proc-lead, .group-lead {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 40em;
}

.proc-list, .doc-list-ia { list-style: none; max-width: 46em; }
.proc-list li, .doc-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.proc-list li:last-child, .doc-item:last-child { border-bottom: 1px solid var(--line); }

.proc-title, .doc-item .t {
  font-weight: 650;
  font-size: 16.5px;
  line-height: 1.3;
  display: block;
}
.proc-title a, .doc-item .t a { text-decoration: none; }
.proc-title a:hover, .doc-item .t a:hover { text-decoration: underline; }
.proc-meta, .doc-item .meta {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}
.doc-item .item-num {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.doc-item .amount {
  font-size: 15px;
  line-height: 1.4;
  margin-top: 6px;
}
.doc-item .src-line, .proc-meta .src-line, .src-line {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
}
.src-line a { color: var(--ink); }

/* Status marks: shape + word, never color alone */
.mark-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 500;
}
.mark-shape {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  position: relative;
  top: 1px;
  border: 1.5px solid var(--ink);
  background: transparent;
  box-sizing: border-box;
}
.mark-shape.approved {
  background: var(--ink);
  border-color: var(--ink);
}
.mark-shape.upcoming {
  background: transparent;
  border: 1.5px solid var(--ink);
}
.mark-shape.referred {
  /* diamond via rotation, same ink */
  width: 9px;
  height: 9px;
  top: 0;
  transform: rotate(45deg);
  background: transparent;
  border: 1.5px solid var(--ink);
}
.mark-shape.voice {
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink);
}
.mark-word { font-weight: 650; }

/* Item permalink facts */
.fact-block { margin: 0 0 28px; max-width: 40em; }
.fact-block h2 { margin-bottom: 10px; }
.fact-row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 4px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}
.fact-row:last-of-type { border-bottom: 1px solid var(--line); }
.fact-row .lbl {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.permalink-box {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-all;
  padding: 8px 0 0;
  color: var(--ink);
}

/* Timeline on an issue page --------------------------------------- */
.status-panel {
  margin: 0 0 32px;
  max-width: 40em;
}
.status-panel .mark-line { margin: 0 0 8px; font-size: 16px; }
.status-panel p { font-size: 16px; line-height: 1.55; }

.timeline { max-width: 44em; }
.year-group { margin: 0 0 22px; }
.year-label {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.year-group:first-child .year-label { border-top: 0; padding-top: 0; }

.tl-event {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr);
  gap: 2px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.tl-event:first-of-type { border-top: 0; }
.tl-when {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-top: 2px;
}
.tl-body .t { font-weight: 650; font-size: 16px; line-height: 1.3; }
.tl-body p { font-size: 14.5px; line-height: 1.45; margin-top: 4px; }
.tl-body .src-line { margin-top: 6px; }

/* Collapsed older years: a real <details>, count in words */
.year-group.layout-example {
  border: 1.5px dashed var(--ink);
  padding: 10px 14px 8px;
  margin: 4px 0 28px;
}
.layout-flag {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 6px;
}
.year-group.layout-example > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 650;
  padding: 2px 0 6px;
}
.year-group.layout-example > summary::-webkit-details-marker { display: none; }
.year-group.layout-example > summary .count {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}
.year-group.layout-example > summary::before {
  content: "▸";
  display: inline-block;
  width: 1em;
  margin-right: 4px;
}
.year-group.layout-example[open] > summary::before { content: "▾"; }
.example-note {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 8px;
}

/* Share / OG card ------------------------------------------------- */
.og-card {
  width: 1200px;
  height: 630px;
  background: #F7F6F3;
  color: #171717;
  display: flex;
  flex-direction: column;
  padding: 48px 64px 44px;
  box-sizing: border-box;
  position: relative;
}
.og-card .og-mast {
  height: 4px;
  width: 100%;
  background: #9B2C2C;
  position: absolute;
  top: 0;
  left: 0;
}
.og-kicker {
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A4A4A;
  margin: 8px 0 16px;
}
.og-card h1 {
  font-family: "Source Serif 4", serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1B2F4E;
  margin: 0 0 16px;
  max-width: 18em;
  font-variation-settings: "opsz" 56;
}
.og-rule {
  width: 48px;
  height: 2px;
  background: #1B2F4E;
  display: block;
  margin: 0 0 22px;
}
.og-amount {
  font-family: "Source Serif 4", serif;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.og-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 24px;
  font-weight: 650;
  margin: 0 0 16px;
}
.og-status .mark-shape {
  width: 16px;
  height: 16px;
  top: 0;
  border-width: 2px;
  flex: 0 0 16px;
}
.og-desc {
  font-family: "Source Sans 3", sans-serif;
  font-size: 22px;
  line-height: 1.35;
  color: #171717;
  max-width: 28em;
  margin: 0;
}
.og-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #E2DFD8;
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  color: #4A4A4A;
}
.og-foot .wordmark {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 22px;
  color: #171717;
  letter-spacing: -0.03em;
}

body.page-og {
  --ink: #171717;
  --muted: #4A4A4A;
  --bg: #F7F6F3;
  --navy: #1B2F4E;
  background: #F7F6F3;
  margin: 0;
}
body.page-og .shell { display: block; min-height: 0; }

.og-status .mark-shape {
  background: transparent;
  border: 2px solid #171717;
}
.og-status .mark-shape.approved {
  background: #171717;
  border-color: #171717;
}
.og-status .mark-shape.upcoming {
  background: transparent;
  border: 2px solid #171717;
}

/* Honest gap year on a timeline (no events in the packets reviewed) */
.year-group.gap-year .year-label { color: var(--muted); }
.year-group.gap-year .tl-body p { color: var(--muted); }

/* Real collapsed year groups (count in words). Not the dashed layout-example. */
details.year-group > summary.year-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
details.year-group > summary.year-summary::-webkit-details-marker { display: none; }
details.year-group > summary.year-summary .count {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-left: auto;
}
details.year-group > summary.year-summary::before {
  content: "▸";
  display: inline-block;
  width: 1em;
  margin-right: 4px;
  font-size: 16px;
  font-family: var(--sans);
}
details.year-group[open] > summary.year-summary::before { content: "▾"; }
