/* Who's who in Michigan (/whos-who/): a drifting wall of faces in the hero, then one card per seat: who holds it today
   and, where the November 3, 2026 election changes it, who takes over (amber) and from which day. Dark ink and warm
   paper chapters alternate like the election board. Party is a plain grey line, never a colour. No inline styles. */
.ww-page { --deep: #0c1422; --deep2: #111b2e; --paper: #f4efe3; --card: #fffdf7; --ink: #17201b; --muted: #5b655e; --muted-l: #b6bfd0;
  --lime: #e9fc82; --amber: #ffb547; --amber-d: #b86e00; --line: rgba(23, 32, 27, .13); --line-l: rgba(247, 245, 236, .14);
  background: var(--deep); color: #f7f5ec; }
.ww-page main { overflow: hidden; overflow: clip; }
.ww-page a { color: inherit; }
.ww-page h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.02em; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; margin: .2rem 0 1rem; }
.ww-page .home-header { color: #f7f5ec; border-bottom-color: var(--line-l); }
.ww-page .home-language a { color: var(--muted-l); }
.ww-page .home-language a[aria-current] { color: #fff; }
.ww-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero: the wall of faces */
.ww-hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; isolation: isolate; padding: 5rem 0 4rem; }
.ww-wall { position: absolute; inset: 0; z-index: -2; display: grid; align-content: center; gap: 14px; transform: rotate(-6deg) scale(1.18); transform-origin: 50% 50%; }
.ww-row { display: flex; width: max-content; }
.ww-track { display: flex; gap: 14px; padding-right: 14px; animation: ww-drift 110s linear infinite; }
.ww-row-2 .ww-track { animation-duration: 140s; animation-direction: reverse; }
.ww-row-3 .ww-track { animation-duration: 125s; }
@keyframes ww-drift { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.ww-tile { flex: 0 0 auto; width: clamp(92px, 11vw, 150px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #1b2740; }
.ww-tile img, .ww-tile .ww-mono { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.75) contrast(1.02); opacity: .62; }
.ww-tile .ww-mono { border-radius: 0; font-size: 2rem; }
.ww-wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 20, 34, .55) 0%, rgba(12, 20, 34, .78) 42%, rgba(12, 20, 34, .97) 82%, var(--deep) 100%), radial-gradient(55% 45% at 20% 25%, rgba(233, 252, 130, .12), transparent 70%); }
.ww-hero-inner { position: relative; }
.ww-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin: 0 0 1.1rem; }
.ww-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: ww-pulse 2.4s infinite; }
@keyframes ww-pulse { 0% { box-shadow: 0 0 0 0 rgba(233, 252, 130, .6); } 70% { box-shadow: 0 0 0 12px rgba(233, 252, 130, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 252, 130, 0); } }
.ww-hero h1 { font-size: clamp(2.9rem, 8vw, 7rem); font-weight: 900; letter-spacing: -.05em; line-height: .92; margin: 0 0 1.3rem; max-width: 12ch; }
.ww-hero h1 em { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -.03em; color: var(--lime); }
.ww-lead { max-width: 64ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.65; margin: 0 0 1.8rem; color: #e7eaf2; }
.ww-stats { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; max-width: 1100px; }
.ww-stats li { display: grid; gap: .3rem; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(12, 20, 34, .6); border: 1px solid var(--line-l); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ww-stats strong { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: #fff; }
.ww-stats li:nth-child(n+3) strong { color: var(--amber); }
.ww-stats span { font-size: .8rem; line-height: 1.45; color: var(--muted-l); }
.ww-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 0; }
.ww-page a.ww-button { display: inline-flex; align-items: center; gap: .9rem; padding: 1rem 1.4rem; background: var(--lime); color: var(--ink); font-weight: 800; font-size: .86rem; letter-spacing: .04em; text-decoration: none; border-radius: 4px; transition: transform .2s, background .2s; }
.ww-page a.ww-button:hover { transform: translateY(-2px); background: #d8ef69; }
.ww-textlink { font-weight: 700; font-size: .86rem; text-decoration: none; border-bottom: 1px solid rgba(247, 245, 236, .4); padding-bottom: 2px; }
.ww-textlink:hover { border-bottom-color: #fff; }

/* Handover calendar */
.ww-handover { background: var(--deep); padding: 0 0 2.4rem; }
.ww-steps { list-style: none; margin: 0; padding: 1.4rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; position: relative; }
.ww-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 1.4rem; height: 2px; background: linear-gradient(90deg, var(--lime), var(--amber)); opacity: .5; }
.ww-steps li { position: relative; padding-top: 1.3rem; display: grid; gap: .35rem; }
.ww-steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--deep); border: 2px solid var(--amber); }
.ww-steps li.is-done::before { background: var(--lime); border-color: var(--lime); }
.ww-steps li:not(.is-done)::before { animation: ww-ring 2.6s infinite; }
@keyframes ww-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); } }
.ww-steps time { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.ww-steps span { font-size: .82rem; line-height: 1.45; color: var(--muted-l); }

/* Chapter bar with search */
.ww-toc { position: sticky; top: 0; z-index: 20; background: rgba(12, 20, 34, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-l); border-top: 1px solid var(--line-l); }
.ww-toc .wrap { display: flex; align-items: center; gap: 1rem; }
.ww-toc-links { flex: 1 1 auto; display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.ww-toc-links::-webkit-scrollbar { display: none; }
.ww-toc-links a { flex: 0 0 auto; padding: .85rem .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; color: var(--muted-l); border-bottom: 3px solid transparent; }
.ww-toc-links a:hover, .ww-toc-links a.is-on { color: #fff; border-bottom-color: var(--lime); }
.ww-search { flex: 0 0 auto; }
.ww-search input { width: clamp(150px, 22vw, 260px); padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line-l); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: .86rem; }
.ww-search input::placeholder { color: var(--muted-l); }
.ww-search input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.ww-nomatch { padding: 2rem 0; color: var(--muted-l); }

/* Chapters */
.ww-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.ww-paper { background: var(--paper); color: var(--ink); }
.ww-deep { background: var(--deep); color: #f7f5ec; }
.ww-deep + .ww-deep { background: var(--deep2); }
.ww-head { max-width: 76ch; margin-bottom: 2.2rem; }
.ww-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .2em; color: var(--muted); margin: 0; }
.ww-deep .ww-kicker { color: var(--muted-l); }
.ww-intro { font-size: 1.04rem; line-height: 1.65; margin: 0; }
.ww-intro-link { margin: .9rem 0 0; font-size: .86rem; font-weight: 700; }
.ww-note { max-width: 76ch; margin: -1rem 0 2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--amber); background: rgba(255, 181, 71, .1); border-radius: 0 10px 10px 0; font-size: .92rem; line-height: 1.6; }
.ww-note p { margin: 0; } .ww-note p + p { margin-top: .5rem; }

/* Sector chips */
.ww-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.6rem 0 1.8rem; }
.ww-chip { font: inherit; font-size: .8rem; font-weight: 700; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; transition: background .2s, color .2s; }
.ww-chip:hover { border-color: var(--ink); }
.ww-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Seat cards */
.ww-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; align-items: start; }
.ww-grid-feature { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.ww-seat { position: relative; border-radius: 18px; padding: 1.1rem 1.1rem .9rem; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(23, 32, 27, .04), 0 12px 30px -22px rgba(23, 32, 27, .35); transition: transform .25s, box-shadow .25s; }
.ww-deep .ww-seat { background: rgba(255, 255, 255, .045); border-color: var(--line-l); box-shadow: none; }
.ww-seat:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(23, 32, 27, .04), 0 22px 40px -24px rgba(23, 32, 27, .45); }
.ww-seat.is-change { border-color: rgba(255, 181, 71, .55); }
.ww-office { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ww-deep .ww-office { color: var(--muted-l); }
.ww-district { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .82rem; letter-spacing: 0; }
.ww-deep .ww-district { background: #fff; color: var(--ink); }
.ww-holders { display: grid; gap: .8rem; }
.ww-person { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .85rem; align-items: start; }
.ww-face { margin: 0; width: 72px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #dcd6c6; }
.ww-deep .ww-face { background: #1f2b44; }
.ww-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; transition: transform .6s; }
.ww-seat:hover .ww-face img { transform: scale(1.05); }
.ww-person.is-next .ww-face { box-shadow: 0 0 0 3px var(--amber); }
.ww-who { display: grid; gap: .18rem; min-width: 0; }
.ww-name { font-size: 1.06rem; line-height: 1.2; letter-spacing: -.01em; }
.ww-party { font-size: .74rem; color: var(--muted); }
.ww-deep .ww-party { color: var(--muted-l); }
.ww-when { font-size: .74rem; color: var(--muted); font-weight: 600; }
.ww-deep .ww-when { color: var(--muted-l); }
.ww-one { margin: .3rem 0 0; font-size: .86rem; line-height: 1.5; }
.ww-tag { justify-self: start; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; }
.ww-tag.is-next { background: var(--amber); color: #2a1a00; }
.ww-person.is-empty p { margin: 0; font-size: .86rem; color: var(--muted); }
.ww-hand { display: flex; align-items: center; gap: .7rem; padding-left: 20px; }
.ww-arrow { position: relative; width: 34px; height: 34px; flex: 0 0 auto; border-left: 2px dashed var(--amber); }
.ww-arrow::after { content: ""; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: ww-flow 2.2s ease-in-out infinite; }
@keyframes ww-flow { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.ww-hand time { font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--amber-d); }
.ww-deep .ww-hand time { color: var(--amber); }

@media (min-width: 720px) { .ww-grid:not(.ww-grid-feature) > .ww-feature { grid-column: span 2; } }

/* Feature cards: big portraits, today and next side by side */
.ww-feature .ww-person { grid-template-columns: 112px minmax(0, 1fr); }
.ww-feature .ww-face { width: 112px; border-radius: 16px; }
.ww-feature .ww-name { font-size: 1.28rem; }
.ww-feature.is-change .ww-holders { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; }
.ww-feature.is-change .ww-person { grid-template-columns: 1fr; }
.ww-feature.is-change .ww-face { width: 100%; max-width: 170px; }
.ww-feature.is-change .ww-hand { flex-direction: column; padding: 2.5rem 0 0; gap: .5rem; }
.ww-feature.is-change .ww-arrow { width: 44px; height: 2px; border-left: 0; border-top: 2px dashed var(--amber); }
.ww-feature.is-change .ww-arrow::after { left: 0; top: -6px; animation-name: ww-flow-x; }
@keyframes ww-flow-x { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(34px); opacity: 0; } }
.ww-feature.is-change .ww-hand time { text-align: center; max-width: 9ch; line-height: 1.3; }

/* Who are they? */
.ww-more { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.ww-deep .ww-more { border-top-color: var(--line-l); }
.ww-more summary { cursor: pointer; font-size: .78rem; font-weight: 800; letter-spacing: .06em; list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
.ww-more summary::-webkit-details-marker { display: none; }
.ww-more summary::after { content: "+"; font-size: 1rem; line-height: 1; transition: transform .2s; }
.ww-more[open] summary::after { transform: rotate(45deg); }
.ww-bio { margin-top: .9rem; }
.ww-bio h4 { margin: 0 0 .35rem; font-size: .95rem; }
.ww-bio h4 span { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); }
.ww-deep .ww-bio h4 span { color: var(--muted-l); }
.ww-bio p { margin: 0 0 .5rem; font-size: .88rem; line-height: 1.6; }
.ww-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-weight: 700; font-size: .8rem; }
.ww-links a { text-decoration: none; border-bottom: 1px solid currentColor; }
.ww-src { font-size: .72rem !important; color: var(--muted); line-height: 1.6; }
.ww-deep .ww-src { color: var(--muted-l); }
.ww-src a { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; margin-right: .1rem; border-radius: 50%; border: 1px solid currentColor; text-decoration: none; font-weight: 700; font-size: .66rem; }
.ww-src br + a, .ww-src br ~ a { display: inline; min-width: 0; height: auto; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; font-size: inherit; font-weight: 400; }

/* Monograms when there is no free portrait */
.ww-mono { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; color: #fff; }
.ww-mono-0 { background: linear-gradient(135deg, #2f6df6, #1b3a8a); } .ww-mono-1 { background: linear-gradient(135deg, #0f766e, #134e4a); }
.ww-mono-2 { background: linear-gradient(135deg, #b45309, #7c2d12); } .ww-mono-3 { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.ww-mono-4 { background: linear-gradient(135deg, #be123c, #881337); } .ww-mono-5 { background: linear-gradient(135deg, #3f6212, #1a2e05); }
.ww-feature .ww-mono { font-size: 2.2rem; }

/* End: recently left, questions, sources */
.ww-narrow { max-width: 860px; }
.ww-sub { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-l); margin: 0 0 .8rem; }
.ww-former { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: .5rem; }
.ww-former li { padding: .7rem 0; border-bottom: 1px solid var(--line-l); font-size: .92rem; }
.ww-former span { color: var(--muted-l); }
.ww-faq-title { margin-top: 0; }
.ww-faq { border-top: 1px solid var(--line-l); padding: 1rem 0; }
.ww-faq:last-of-type { border-bottom: 1px solid var(--line-l); }
.ww-faq summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; }
.ww-faq p { margin: .7rem 0 0; line-height: 1.65; color: #dfe3ec; }
.ww-sourcenote { margin: 2rem 0; font-size: .88rem; line-height: 1.6; color: var(--muted-l); }

/* Filtering */
.ww-seat.ww-off-search, .ww-seat.ww-off-sector, .ww-section.ww-off-search { display: none; }

/* Reveal (only with JavaScript; the safety net shows everything) */
html.ww-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.ww-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .ww-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
  .ww-steps::before { display: none; }
  .ww-toc .wrap { flex-wrap: wrap; gap: 0; }
  .ww-search { width: 100%; padding: 0 0 .7rem; }
  .ww-search input { width: 100%; }
}
@media (max-width: 560px) {
  .ww-feature.is-change .ww-holders { grid-template-columns: 1fr; }
  .ww-feature.is-change .ww-person { grid-template-columns: 96px minmax(0, 1fr); }
  .ww-feature.is-change .ww-face { width: 96px; }
  .ww-feature.is-change .ww-hand { flex-direction: row; padding: 0 0 0 20px; }
  .ww-feature.is-change .ww-arrow { width: 34px; height: 34px; border-top: 0; border-left: 2px dashed var(--amber); }
  .ww-feature.is-change .ww-arrow::after { left: -6px; top: 0; animation-name: ww-flow; }
  .ww-feature.is-change .ww-hand time { max-width: none; text-align: left; }
  .ww-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-track, .ww-pulse, .ww-steps li::before, .ww-arrow::after { animation: none !important; }
  html.ww-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ww-seat, .ww-face img { transition: none; }
}
