/* Front Page home: a newspaper front page. Tokens only, so light and dark both work. */

/* dateline */
.fp-dateline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin-top: 16px; padding: 10px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  font: 600 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fp-dateline > span:first-child { color: var(--ink); }
.fp-dateline a { color: inherit; }
.fp-dateline a:hover { color: var(--accent); }

/* masthead */
.fp-mast { padding: 32px 0 4px; text-align: center; }
.fp-mast .display { max-width: 13.5em; margin: 0 auto; font-size: clamp(38px, 4.6vw, 58px); }
.fp-mast .lede { margin: 12px auto 0; max-width: 46ch; }
.fp-search { position: relative; display: flex; gap: 8px; max-width: 600px; margin: 24px auto 0; }
.fp-search .input { height: 52px; padding-left: 46px; border-radius: 26px; flex: 1; min-width: 0; }
.fp-search .btn { height: 52px; border-radius: 26px; padding: 0 24px; }
.fp-icon { position: absolute; left: 17px; top: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.fp-icon svg { width: 20px; height: 20px; }
.fp-topics { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 8px; margin: 16px auto 0; overflow-x: auto; scrollbar-width: none; }
.fp-topics::-webkit-scrollbar { display: none; }
.fp-topics .pill { flex: none; }
.fp-topics .pill { height: 32px; line-height: 30px; font-size: 13px; }

/* decided: one lead, secondaries in a column */
.fp-decided { margin-top: 40px; }
.fp-links { display: flex; gap: 18px; }
.fp-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.fp-links a:hover { color: var(--accent); }
.fp-leads { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.fp-story { padding: 24px 0; }
.fp-story .row-top { margin-bottom: 10px; }
.fp-h { font: 500 21px/1.24 var(--serif); letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
.fp-h a:hover { color: var(--accent); }
.fp-sum { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.fp-story .meta { margin-top: 12px; }
.fp-left { padding-right: 44px; border-right: 1px solid var(--line); }
.fp-lead { padding: 28px 0 32px; }
.fp-brief { padding: 18px 0 8px; border-top: 1px solid var(--line); }
.fp-brief > .label { display: block; margin-bottom: 4px; }
.fp-brief ul { list-style: none; margin: 0; padding: 0; }
.fp-brief li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 500 16.5px/1.35 var(--serif); }
.fp-brief li:last-child { border-bottom: 0; }
.fp-brief li .tag { white-space: nowrap; }
.fp-brief a:hover { color: var(--accent); }
.fp-lead .fp-h { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.022em; }
.fp-lead .row-top { margin-bottom: 16px; }
.fp-lead .fp-sum { font: 400 19px/1.55 var(--serif); color: var(--ink-2); -webkit-line-clamp: 5; margin-top: 14px; max-width: 58ch; }
.fp-lead .meta { margin-top: 18px; }
.fp-seconds { padding-left: 36px; }
.fp-seconds .fp-story + .fp-story { border-top: 1px solid var(--line); }
.fp-seconds .fp-story:first-child { padding-top: 28px; }

/* vote: one mark per councilor, then the roll call */
.fp-roll { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.fp-roll > * { max-width: 560px; }
.fp-seats { display: flex; align-items: center; gap: 14px; }
.fp-seats .seats { margin: 0; }
.fp-count { font: 500 14px var(--mono); color: var(--ink); }
.fp-sides { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px 28px; margin: 16px 0 0; font-size: 14px; line-height: 1.6; }
.fp-sides dt { font: 600 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fp-sides dd { margin: 0; color: var(--ink-2); }
.fp-sides a:hover { color: var(--accent); }
.fp-also { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13.5px; color: var(--muted); }

/* the shared numbered list puts every child in the grid; keep them in the second column */
.fp-latest .numbered .row > * { grid-column: 2; }
.fp-latest .numbered .row::before { grid-row: 1 / span 4; }

/* middle band: latest and coming up */
.fp-mid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.fp-mid > .sec { margin-top: 64px; }
.fp-latest .row.compact { padding: 16px 0; }
.fp-latest .row-title { font-size: 18px; }

.fp-next { padding: 22px 0 4px; }
.fp-next > .label { display: block; }
.fp-when { display: block; font: 500 34px/1.1 var(--serif); letter-spacing: -0.02em; margin: 8px 0 8px; }
.fp-next .meta { margin-bottom: 4px; }
.fp-expect { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.fp-expect li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font: 500 16px/1.35 var(--serif); }
.fp-expect .label { font-size: 10.5px; }
.fp-expect a:hover { color: var(--accent); }
.fp-later { margin-top: 0; border-top: 0; }
.fp-next .rows { margin-top: 12px; }

.fp-week { margin-top: 36px; }
.fp-week > .label { display: block; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.fp-day { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.fp-day h4 { margin: 0 0 6px; font: 600 13px var(--sans); color: var(--ink); }
.fp-day > ul { list-style: none; margin: 0; padding: 0; }
.fp-day > ul > li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--muted); }
.fp-day .t { font-size: 12px; padding-top: 2px; color: var(--muted); }
.fp-day li.on .b { color: var(--ink); font-weight: 600; }
.fp-day .b:hover { color: var(--accent); }
.fp-items { list-style: none; margin: 4px 0 4px; padding: 0; }
.fp-items li { position: relative; padding: 3px 0 3px 14px; font: 400 15px/1.35 var(--serif); color: var(--ink-2); }
.fp-items li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 1px; background: var(--line-2); }
.fp-items a:hover { color: var(--accent); }

/* bottom band: ward, digest, how it works */
.fp-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 80px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.fp-cell { display: block; padding: 24px 28px 30px; }
.fp-cell + .fp-cell { border-left: 1px solid var(--line); }
.fp-cell:first-child { padding-left: 0; }
.fp-cell:last-child { padding-right: 0; }
.fp-cell > .label { display: block; margin-bottom: 12px; }
.fp-cell-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.fp-lookup { font-size: 13px; color: var(--muted); }
.fp-lookup:hover { color: var(--accent); }
.fp-t { display: block; font: 500 22px/1.2 var(--serif); letter-spacing: -0.012em; color: var(--ink); }
a.fp-go:hover .fp-t { color: var(--accent); }
.fp-points, .fp-steps { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.fp-points { counter-reset: p; }
.fp-points li { counter-increment: p; display: grid; grid-template-columns: 24px 1fr; padding: 3px 0; }
.fp-points li::before { content: counter(p); font: 500 12px/1.7 var(--mono); color: var(--muted); }
.fp-steps { display: flex; flex-wrap: wrap; gap: 6px 0; }
.fp-steps li { display: flex; align-items: center; }
.fp-steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--line-2); margin: 0 8px; }

.fp-wardpick { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.fp-wardpick button { height: 38px; border-radius: 19px; border: 1px solid var(--line-2); background: none; font: 500 14px var(--sans); color: var(--ink-2); padding: 0; }
.fp-wardpick button:hover { border-color: var(--ink); color: var(--ink); }
.fp-wardpick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fp-ward { display: grid; gap: 12px; margin-top: 18px; }
.fp-ward .person:hover b { color: var(--accent); }
.fp-ward .btn { justify-self: start; margin-top: 2px; }

@media (max-width: 860px) {
  .fp-leads { grid-template-columns: 1fr; }
  .fp-left { display: contents; }
  .fp-lead { order: 0; }
  .fp-seconds { order: 1; }
  .fp-brief { order: 2; margin-top: 8px; }
  .fp-seconds { padding-left: 0; }
  .fp-seconds .fp-story:first-child { padding-top: 24px; border-top: 1px solid var(--line); }
  .fp-mid { grid-template-columns: 1fr; gap: 0; }
  .fp-band { grid-template-columns: 1fr; }
  .fp-cell { padding: 24px 0 28px; }
  .fp-cell + .fp-cell { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .fp-dateline { margin-top: 14px; }
  .fp-dl-next, .fp-video { display: none; }
  .fp-mast { padding: 28px 0 0; text-align: left; }
  .fp-mast .display { margin: 0; font-size: 40px; }
  .fp-mast .lede { margin: 14px 0 0; font-size: 17px; }
  .fp-search { margin-top: 26px; }
  .fp-search .btn { display: none; }
  .fp-topics { justify-content: flex-start; margin: 14px -16px 0; padding: 0 16px; }
  .fp-decided { margin-top: 40px; }
  .fp-lead { padding: 22px 0 28px; }
  .fp-lead .fp-h { font-size: 32px; }
  .fp-lead .fp-sum { font-size: 18px; }
  .fp-h { font-size: 20px; }
  .fp-mid > .sec { margin-top: 52px; }
  .fp-when { font-size: 30px; }
  .fp-expect li { grid-template-columns: 1fr; gap: 4px; }
  .fp-band { margin-top: 60px; }
  .fp-wardpick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .fp-wardpick button { height: 42px; border-radius: 21px; font-size: 15px; }
}
.fp-ward .person b { color: var(--ink); }
