/* The Feed (feed, js/feed.js): everything new in one stream (news, bills that moved,
   measures, positions, yard signs, public meetings) plus every date and deadline that matters. */
.fd { --lav: #efedfd; --ok: #0a7d4f; --no: #c0262d; }

.fd { display: grid; grid-template-columns: 220px minmax(0, 620px) 300px; justify-content: center; gap: 24px; width: min(100% - 32px, 1220px); margin: 22px auto 60px; color: var(--navy); align-items: start; }
.fd * { box-sizing: border-box; }
.fd a { color: inherit; text-decoration: none; }
.fd h2, .fd h3 { margin: 0; }
.fd-rail { position: sticky; top: 16px; display: grid; gap: 14px; }
.fd-nav { display: grid; gap: 4px; }
.fd-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.fd-nav a:hover { background: var(--lav); }
.fd-nav a.is-on { background: var(--btn-go); color: #fff; }
.fd-nav a i { font-style: normal; width: 22px; text-align: center; }
.fd-nav .fd-n { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #f0b4f1; color: #21167c; font-size: 12px; }
.fd-label { margin: 6px 0 2px 12px; color: #8b88ad; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fd-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.fd-filters span { padding: 6px 11px; border-radius: 999px; background: var(--lav); font-size: 13px; font-weight: 700; }
.fd-filters span.off { background: #fff; box-shadow: inset 0 0 0 1.5px #dcd8f7; color: #8b88ad; }

.fd-main { display: grid; gap: 14px; }
.fd-head { display: flex; align-items: center; gap: 12px; }
.fd-head h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.fd-head .mk-seg { margin-left: auto; }
.fd-new { justify-self: center; padding: 8px 16px; border-radius: 999px; background: var(--btn-go); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 6px 18px rgba(33,22,124,.3); }
.fd-day { margin: 8px 0 -2px; color: #8b88ad; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* one item */
.fd-item { display: grid; gap: 12px; padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: var(--card-shadow); }
.fd-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #6b6890; }
.fd-kind { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.k-post { background: #efeafe; color: #4232d4; }
.k-news { background: #e8f0ff; color: #1f4fbf; }
.k-bill { background: #fff1dc; color: #8a4b00; }
.k-measure { background: #e3f5ec; color: #0a7d4f; }
.k-rating { background: #fde9f6; color: #a1247a; }
.k-said { background: #f2efe6; color: #5d4a1e; }
.k-sign { background: #e9f6fb; color: #1d6a86; }
.k-date { background: #21167c; color: #fff; }
.k-trend { background: #ffe9dc; color: #b23c00; }
.fd-why { margin-left: auto; font-size: 12px; color: #8b88ad; }
.fd-title { font-size: 19px; font-weight: 800; line-height: 1.28; letter-spacing: -.01em; }
.fd-body { margin: 0; font-size: 15px; line-height: 1.5; color: #2b2850; }
.fd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: -4px 0 -6px -8px; }
.fd-actions .mk-btn.is-go { margin-left: auto; padding: 7px 14px; font-size: 13px; }
.fd-who { display: flex; align-items: center; gap: 10px; }
.fd-who b { font-size: 15px; }
.fd-who small { color: #6b6890; font-size: 13px; }
.fd-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid #1f4fff; flex: none; }
.fd-face.is-r { border-color: #ff1f1f; }
.fd-face.is-sm { width: 30px; height: 30px; border-width: 2px; }
.fd-people { display: flex; flex-wrap: wrap; gap: 6px; }

/* bill progress */
.fd-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.fd-steps span { position: relative; padding-top: 16px; text-align: center; font-size: 11px; font-weight: 700; color: #a7a3c9; }
.fd-steps span::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; border-radius: 999px; background: #ece9fc; }
.fd-steps span::after { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #ece9fc; }
.fd-steps span.done { color: var(--navy); }
.fd-steps span.done::before, .fd-steps span.done::after { background: var(--btn-go); }
.fd-steps span.now::after { background: #fff; box-shadow: inset 0 0 0 3px var(--btn-go); }
.fd-votes { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-vote { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f7f5ff; font-size: 13px; font-weight: 700; }
.fd-vote b { padding: 1px 7px; border-radius: 999px; font-size: 11px; }
.fd-vote b.y { background: #3fb984; color: #fff; }
.fd-vote b.n { background: #e2535a; color: #fff; }

/* measure lean, rating change */
.fd-lean { display: grid; gap: 4px; }
.fd-lean .mk-bar, .fd-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #fde6e6; }
.fd-bar i { display: block; }
.fd-lean small { color: #6b6890; font-size: 12px; }
.fd-chart { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.fd-chart svg { width: 100%; height: 70px; }
.fd-delta { font-size: 30px; font-weight: 900; color: #c0262d; letter-spacing: -.02em; }
.fd-quote { margin: 0; padding: 12px 16px; border-left: 4px solid #d6cdfb; border-radius: 4px 14px 14px 4px; background: #f7f5ff; font-size: 15px; line-height: 1.5; font-style: italic; color: #2b2850; }
.fd-sign { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.fd-sign img.fd-photo { width: 150px; height: 120px; border-radius: 14px; object-fit: cover; }
.fd-src { display: flex; align-items: center; gap: 8px; color: #6b6890; font-size: 13px; }
.fd-src b { color: var(--navy); }
.fd-date { background: linear-gradient(135deg, #2a1d8f, #4b33c9 55%, #8d5be0); color: #fff; }
.fd-date .fd-top, .fd-date .fd-why { color: rgba(255,255,255,.8); }
.fd-date .fd-title { color: #fff; }
.fd-date .fd-body { color: rgba(255,255,255,.88); }
.fd-date .mk-btn.is-go { background: #fff; color: #21167c; }

/* right rail */
.fd-card { padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: var(--card-shadow); }
.fd-card h3 { font-size: 15px; margin-bottom: 10px; }
.fd-follow { display: grid; gap: 8px; }
.fd-follow a { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.fd-follow small { display: block; font-weight: 500; color: #6b6890; font-size: 12px; }
.fd-follow .fd-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--lav); font-size: 15px; flex: none; }
.fd-count { display: flex; align-items: baseline; gap: 8px; }
.fd-count b { font-size: 40px; line-height: 1; }

@media (max-width: 1100px) { .fd { grid-template-columns: 200px minmax(0, 1fr); } .fd-right { display: none; } }
@media (max-width: 760px) {
  .fd { grid-template-columns: minmax(0, 1fr); }
  .fd-rail.fd-left { position: static; }
  .fd-left .fd-nav { grid-auto-flow: column; overflow-x: auto; }
  .fd-left .fd-nav a { white-space: nowrap; }
  .fd-left .fd-label, .fd-left .fd-filters { display: none; }
  .fd-head .mk-seg { display: none; }
  .fd-sign { grid-template-columns: 1fr; }
  .fd-sign img.fd-photo { width: 100%; height: 180px; }
  .fd-coming-head .fd-kind { display: none; }
  .fd-steps span { font-size: 9px; }
}
/* deadlines: the "Coming up" timeline at the top, deadline items, the side card */
.fd-coming { padding: 16px 18px; border-radius: 22px; background: #fff; box-shadow: var(--card-shadow); }
.fd-coming-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fd-coming-head b { font-size: 16px; }
.fd-coming-head a { margin-left: auto; color: #4232d4; font-size: 13px; font-weight: 700; }
.fd-coming-head .cal-wrap { margin-left: auto; }
.fd-coming-all { padding: 0; border: 0; background: none; color: #4232d4; font: 700 13px/1.3 var(--font-read); cursor: pointer; }
.fd-coming-all:hover { text-decoration: underline; }
.fd-coming-head .cal-menu { left: auto; right: 0; }
.fd-cal-wide { display: flex; margin-top: 12px; }
.fd-cal-wide > .fd-btn { flex: 1; }
.fd-line { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; }
.fd-dl { position: relative; display: grid; gap: 3px; padding: 10px 10px 10px; border-radius: 16px; background: #f7f5ff; }
.fd-dl small { color: #6b6890; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fd-dl b { font-size: 14px; line-height: 1.2; }
.fd-dl em { font-style: normal; font-size: 12px; font-weight: 700; color: #4232d4; }
.fd-dl.is-past { opacity: .55; }
.fd-dl.is-past em { color: #0a7d4f; }
.fd-dl.is-next { background: linear-gradient(135deg, #2a1d8f, #4b33c9 60%, #8d5be0); color: #fff; }
.fd-dl.is-next small, .fd-dl.is-next em { color: rgba(255,255,255,.85); }
.fd-dl.is-urgent { box-shadow: inset 0 0 0 2px #f0a33a; background: #fff8ec; }
.fd-dl.is-urgent em { color: #a35a00; }
.k-deadline { background: #fff1dc; color: #a35a00; }
.k-meeting { background: #eef3ff; color: #1f4fbf; }
.fd-urgent { box-shadow: inset 0 0 0 2px #f0a33a, var(--card-shadow); }
.fd-big-date { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff1dc; color: #a35a00; flex: none; text-align: center; line-height: 1; }
.fd-big-date b { font-size: 24px; } .fd-big-date small { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.fd-dlrow { display: flex; gap: 14px; align-items: center; }
.fd-deadlines { display: grid; gap: 10px; }
.fd-deadlines div { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.fd-deadlines div span:first-child { display: grid; place-items: center; height: 40px; border-radius: 12px; background: var(--lav); font-weight: 800; font-size: 12px; line-height: 1.05; text-align: center; }
.fd-deadlines div.is-urgent span:first-child { background: #fff1dc; color: #a35a00; }
.fd-deadlines small { display: block; color: #6b6890; }
@media (max-width: 760px) { .fd-line { grid-template-columns: repeat(var(--n, 5), 140px); overflow-x: auto; padding-bottom: 6px; } }
.fd .fd-new { color: #fff; border: 0; cursor: pointer; font: 700 13px/1.1 var(--font-read); }
.fd > *, .fd-main > * { min-width: 0; }

/* buttons and chips (the mockup's mk-*, under the feed's own names) */
.fd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 0; border-radius: 14px; background: var(--btn-tint); color: var(--btn-ink); font: 700 14px/1.1 var(--font-read); cursor: pointer; text-decoration: none; }
.fd-btn:hover { background: var(--btn-tint-hover); }
.fd-btn.is-go { background: var(--btn-go); color: #fff; }
.fd-btn.is-go:hover { background: var(--btn-go-hover); }
.fd-btn.is-ghost { background: none; padding: 6px 8px; color: #5d5a7d; font-weight: 600; }
.fd-btn.is-ghost:hover { background: var(--lav); }
.fd-btn[aria-pressed="true"] { background: var(--lav); color: var(--navy); }
.fd .fd-btn.is-go, .fd .fd-btn.is-go:visited { color: #fff; }
.fd-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--lav); }
.fd-seg button { border: 0; padding: 6px 12px; border-radius: 999px; background: none; color: var(--navy); font: 700 13px/1 var(--font-read); cursor: pointer; }
.fd-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(30,26,103,.18); }
.fd-m { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 2px; border-radius: 999px; background: var(--lav); color: var(--navy); font-weight: 700; font-size: .92em; vertical-align: middle; white-space: nowrap; }
.fd a.fd-m:hover { background: #e2defc; }
.fd-m img, .fd-m .fd-mi { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: top; }
.fd-m .fd-mi { display: inline-grid; place-items: center; font-size: 12px; }
.fd-m.is-d img { box-shadow: 0 0 0 2px #1f4fff; } .fd-m.is-r img { box-shadow: 0 0 0 2px #ff1f1f; }
.fd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--lav); color: var(--navy); font-size: 11px; font-weight: 700; }
.fd-pill.is-new { background: #f0b4f1; color: #21167c; }
.fd-pill.is-soon { background: #fff4d6; color: #7a5300; }
.fd-nav a.is-off, .fd-filters button.is-soon { opacity: .55; cursor: default; }
.fd-nav a small { margin-left: auto; font-size: 11px; color: #8b88ad; font-weight: 700; }
.fd-filters button { border: 0; padding: 6px 11px; border-radius: 999px; background: var(--lav); color: var(--navy); font: 700 13px/1.1 var(--font-read); cursor: pointer; }
.fd-filters button[aria-pressed="false"] { background: #fff; box-shadow: inset 0 0 0 1.5px #dcd8f7; color: #8b88ad; }
.fd-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: none; color: var(--navy); font: 700 15px/1.2 var(--font-read); text-align: left; cursor: pointer; }
.fd-nav button:hover { background: var(--lav); }
.fd-nav button[aria-pressed="true"] { background: var(--btn-go); color: #fff; }
.fd-nav button i { font-style: normal; width: 22px; text-align: center; }
.fd-nav button[aria-pressed="true"] .fd-n { background: #f0b4f1; }
.fd-nav button:disabled { opacity: .5; cursor: default; background: none; }
.fd-nav button small { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8b88ad; }

.fd-soon { padding: 14px 16px; border-radius: 18px; border: 2px dashed #dcd8f7; color: #6b6890; font-size: 14px; line-height: 1.45; }
.fd-soon b { color: var(--navy); }
.fd-empty { padding: 28px 20px; border-radius: 22px; background: #fff; box-shadow: var(--card-shadow); text-align: center; color: #6b6890; }
.fd-empty b { display: block; margin-bottom: 6px; color: var(--navy); font-size: 17px; }
.fd-item.is-new::before { content: ""; position: absolute; top: 22px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: #e04fd0; box-shadow: 0 0 0 3px #fff; }
.fd-item { position: relative; }
.fd-topics { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; color: #2b2850; }
.fd-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #6b6890; font-size: 13px; }
.fd-meta b { color: var(--navy); }
.fd-speak { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f7f5ff; font-size: 14px; line-height: 1.4; }
.fd-speak.is-urgent { background: #fff8ec; box-shadow: inset 0 0 0 2px #f0a33a; }
.fd-speak b { color: var(--navy); }
.fd-list { display: grid; gap: 8px; }
.fd-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f7f5ff; font-size: 14px; }
.fd-list a:hover { background: #ece9fc; }
.fd-list a small { color: #6b6890; font-size: 12px; }
.fd-list .fd-pick { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #fff; color: #8b88ad; }
.fd-trend a { grid-template-columns: auto auto 1fr auto; }
.fd-rank { width: 18px; text-align: center; font-weight: 800; color: #b23c00; }
.fd-list .fd-pick.is-yes { background: #3fb984; color: #fff; } .fd-list .fd-pick.is-no { background: #e2535a; color: #fff; }
.fd-addr { display: grid; gap: 8px; font-size: 14px; color: #2b2850; }
.fd-addr small { color: #6b6890; }
.fd-more { justify-self: center; }
.fd-stance { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.fd-stance.is-for { background: #e3f5ec; color: #0a7d4f; } .fd-stance.is-against { background: #fde6e6; color: #c0262d; }
.fd-steps.is-7 { grid-template-columns: repeat(7, 1fr); }
.fd-dl.is-meeting { background: #eef3ff; }
.fd-dl a { position: absolute; inset: 0; border-radius: inherit; }
/* email reminders */
.fd-remind form { display: grid; gap: 8px; }
.fd-remind input[type="email"] { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: #f7f5ff; box-shadow: inset 0 0 0 1.5px #dcd8f7; color: var(--navy); font: 15px var(--font-read); }
.fd-remind label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #2b2850; }
.fd-remind p { margin: 0 0 8px; font-size: 13px; color: #6b6890; line-height: 1.45; }
.fd-remind .fd-msg { font-size: 13px; font-weight: 700; color: #4232d4; }
@media (max-width: 760px) {
  .fd-left .fd-nav { display: flex; overflow-x: auto; gap: 6px; }
  .fd-left .fd-nav button { width: auto; white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .fd-left .fd-soon { display: none; }
  .fd-item.is-new::before { left: 8px; top: 8px; }
  .fd-steps.is-7 span { font-size: 8px; }
}
.fd-mobile-rail { display: none; }
@media (max-width: 1100px) { .fd-mobile-rail { display: grid; gap: 14px; margin-top: 10px; } }
.fd-rail > * { min-width: 0; }
.fd-digest { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fd-digest li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid #ece9fc; }
.fd-digest li:last-child { border-bottom: 0; padding-bottom: 0; }
.fd-digest a { font-weight: 700; font-size: 15px; line-height: 1.35; }
.fd-digest a:hover { text-decoration: underline; }
.fd-digest small { color: #6b6890; font-size: 12px; }
.fd-signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fd-signs a { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.fd-signs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #f7f5ff; }
.fd-body-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
/* the home page's "Today in …" (home #homeFeed): the same items, in one column */
.fd.fd-embed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: auto; margin: 0; }
.fd.fd-embed .fd-item { padding: 16px 18px; }
.fd.fd-embed .fd-title { font-size: 17px; }
@media (max-width: 520px) { .fd-dlrow { align-items: flex-start; gap: 12px; } .fd-big-date { width: 50px; height: 50px; border-radius: 14px; } .fd-big-date b { font-size: 20px; } }
/* the card's main button, at its bottom right, in the light style (as in the top bar; js/feed.js liftGo) */
.fd .fd-actions .fd-btn.fd-corner { margin-left: auto; padding: 7px 14px; font-size: 13px; background: var(--btn-tint); color: var(--btn-ink); }
.fd .fd-actions .fd-btn.fd-corner:hover { background: var(--btn-tint-hover); color: var(--btn-ink); }
.fd .fd-date .fd-actions .fd-btn.fd-corner { background: #fff; color: #21167c; }
