* { box-sizing:border-box }
:root { color-scheme:dark; font:100%/1.5 system-ui,sans-serif; color:#f4f6ed; background:#032a30 }
body { margin:0 }
header, main { max-width:70rem; margin:auto; padding:1rem clamp(1rem,4vw,3rem) }
header,.ct-guide-heading,.ct-tabs,.follow-strip-head,.follow-chips { display:flex; gap:.65rem 1rem; align-items:center; flex-wrap:wrap }
header,.ct-guide-heading { justify-content:space-between }
header { border-bottom:1px solid #267479 }
a { color:#a4efea }
.brand { color:white; font-size:1.9rem; font-weight:900; font-style:italic; text-decoration:none; letter-spacing:-.06em }
.brand span { color:#23ece6 }
main { padding-block:clamp(1.5rem,4vw,3rem) }
.eyebrow { color:#ffd667; font-size:.85rem; font-weight:750; letter-spacing:.09em }
h1 { margin:.2rem 0 1rem; line-height:1.1; font-size:clamp(2rem,5vw,3.7rem) }
h2,h3 { margin:0 0 .7rem; font-size:1.15rem; color:#ffd667 }
.ct-tabs { margin:1rem 0 1.4rem; gap:.35rem }
button { font:inherit; cursor:pointer; color:#eefdf9; background:#103d43; border:1px solid #4f9395; border-radius:.5rem; min-height:2.75rem; padding:.4rem .8rem }
button[aria-selected=true] { background:#ffd463; color:#08282e; border-color:#ffd463; font-weight:750 }
.government-guide-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:1rem }
.federal-group,.follow-strip { background:#07343a; border:1px solid #32747a; border-radius:.85rem; padding:1rem }
.federal-list { list-style:none; margin:0; padding:0 }
.federal-list li + li { margin-top:.4rem }
.federal-member { display:flex; align-items:center; gap:.75rem; min-height:3.4rem; padding:.5rem; color:white; font-weight:700; text-decoration:none; border-radius:.4rem; background:#10434a }
.federal-member:hover,.federal-member:focus-visible { background:#17535b }
.federal-member small { display:block; color:#c8ddd9; font-weight:450 }
.federal-member img,.guide-initials { width:2.7rem; height:3.1rem; object-fit:cover; object-position:center top; border-radius:.3rem }
.guide-initials { display:grid; place-items:center; background:#19545b; color:#ffdd89 }
.follow-strip { margin-top:1.5rem }
.follow-chips { margin:.75rem 0 }
:focus-visible { outline:3px solid #ffdd89; outline-offset:3px }
[hidden] { display:none!important }

:root {background:#002a30;color:#fff}
body {max-width:92rem;margin:auto;background:linear-gradient(125deg,#00252a,#003b40 62%,#00272c)}
.masthead,main {max-width:none}
.masthead {background:#00262d;flex-wrap:nowrap;padding:.35rem 2.5%;gap:1.5%;position:relative;z-index:2}
.brand img {display:block;width:clamp(10rem,22vw,22rem);height:auto}
.wide-nav {flex:1;display:flex;align-items:center;justify-content:space-evenly;gap:.5rem}
.masthead nav a {color:white;text-decoration:none;font-weight:750;font-size:clamp(.78rem,1.08vw,1.08rem)}
.masthead nav a[aria-current] {color:#ffdf78;border-bottom:3px solid #ffc94e}
.mobile-nav,.activity-mobile {display:none}
.search-link {display:grid;place-items:center;width:2.75rem;height:2.75rem}
.search-link span {width:1.12rem;height:1.12rem;border:2px solid white;border-radius:50%;position:relative}
.search-link span::after {content:"";position:absolute;width:.6rem;height:2px;background:white;right:-.46rem;bottom:-.16rem;transform:rotate(45deg)}
main {padding:0 2.1% 1.3rem}
.guide-hero {position:relative;margin-inline:-2.2%}
.guide-hero img,.accountability-banner img {width:100%;height:auto;display:block}
.sr,.guide-hero a span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.guide-hero a {position:absolute;top:59%;height:34%;border-radius:.7rem}
.hero-officials {left:4%;width:17%}.hero-votes {left:22%;width:17%}.hero-issues {left:41%;width:16%}.hero-find {left:58%;width:21%}
.ct-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:.55rem 1.2% 1.3rem}
.ct-tabs button,.federal-group,.profile-card,.activity-guide,.activity-mobile {border:1.5px solid #69d5d8;background:linear-gradient(155deg,#0a5054,#003338 55%,#03282d)}
.ct-tabs button {display:grid;grid-template-columns:auto auto;justify-content:center;align-content:center;align-items:center;gap:0 .9rem;color:white;padding:.55rem .4rem;line-height:1.12;border-radius:1.25rem 1.25rem .45rem .45rem;position:relative}
.ct-tabs button img {width:clamp(2rem,3.6vw,3.5rem);height:2.8rem;object-fit:contain;grid-row:span 2}
.ct-tabs strong {font-size:clamp(1.1rem,2.1vw,2rem)}
.ct-tabs small {font-size:clamp(.75rem,1vw,1rem)}
.ct-tabs button[aria-selected=true],.profile-action {background:linear-gradient(#ffe993,#ffd04f 48%,#e6a526);border-color:#fff0ba;color:#161c19}
.ct-tabs button[aria-selected=true] img {filter:brightness(.08)}
.ct-tabs button[aria-selected=true]::after {content:"";position:absolute;top:100%;left:calc(50% - .65rem);border:.65rem solid transparent;border-top-color:#e6a526}
.government-guide-groups {grid-template-columns:minmax(0, .65fr) minmax(0,1fr)}
.federal-group {min-width:0;padding:clamp(.6rem,1vw,1.1rem);border-radius:1.1rem}
.federal-group h2,.federal-group h3 {color:#fff;font-size:clamp(1rem,1.9vw,1.8rem);line-height:1.2;margin:0 0 .8rem;padding-bottom:.6rem;border-bottom:2px solid #dab953}
.federal-group h2 small {font-size:.65em}
.profile-grid {list-style:none;display:grid;gap:clamp(.3rem,.8vw,.8rem);padding:0;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.roster-group .profile-grid {grid-template-columns:repeat(5,minmax(0,1fr))}
.profile-card {color:#fff;text-decoration:none;position:relative;display:grid;align-content:start;text-align:center;height:100%;overflow:hidden;border-radius:.8rem;line-height:1.12;padding-bottom:.55rem}
.profile-card img {display:block;width:100%;aspect-ratio:1.6;object-fit:cover}
.profile-card strong {display:block;font-size:clamp(.94rem,1.45vw,1.5rem);margin:.3em 0 .15em}
.profile-card small {display:block;color:#ffe383;font-weight:650;font-size:clamp(.75rem,.98vw,1rem)}
.profile-action {display:block;align-self:end;justify-self:center;margin:.55rem auto 0;border:1px solid #ffeac1;border-radius:2rem;padding:.32em .75em;font-weight:800;font-size:clamp(.78rem,1.05vw,1rem);white-space:nowrap}
.leader-group .profile-card {grid-template-columns:48% 52%;grid-template-rows:minmax(5rem,1fr) auto;text-align:left;align-items:center;min-height:10rem}
.leader-group .profile-card img {position:absolute;left:0;top:0;width:48%;height:100%;object-position:center 22%}
.leader-group .profile-action {grid-column:1/-1;z-index:1}
.profile-card:hover,.federal-member:hover {border-color:#ffdb80;box-shadow:0 0 .75rem #1a939b}
.accountability-banner {display:block;margin:1.1rem 0;border-radius:1rem;overflow:hidden}
.activity-guide,.activity-mobile {border-radius:1rem;padding:.8rem 1.25rem}
.activity-guide,.activity-guide nav,.activity-title {display:flex;align-items:center;gap:1rem}
.activity-title {flex:1}.activity-title h2,.activity-title p {margin:0;color:white}
.activity-title b,.activity-mobile b {font-size:2.3rem;color:#ffd259}
.activity-guide nav {flex:1;justify-content:space-around}
.activity-guide nav a,.activity-mobile nav a {color:white;text-decoration:none;font-weight:700;padding:.5rem;border-left:1px solid #85845b}
.activity-guide nav a:hover,.activity-mobile nav a:hover,.masthead nav a:hover {text-decoration:underline}
@media(max-width:60rem) {
 .government-guide-groups {grid-template-columns:1fr}
 .wide-nav {display:none}.mobile-nav {display:block}
 .mobile-nav summary {font-size:1.65rem;list-style:none;cursor:pointer;padding:.25rem .5rem}
 .mobile-nav nav {position:absolute;top:100%;left:.5rem;display:grid;min-width:14rem;background:#052e33;border:1px solid #5ed3cb;border-radius:.6rem;padding:.5rem}
 .masthead .mobile-nav a {padding:.45rem;font-size:1rem}
 .activity-guide {display:none}.activity-mobile {display:block}
 .activity-mobile summary {display:flex;align-items:center;gap:.8rem;cursor:pointer;font-weight:800;font-size:1.25rem}
 .activity-mobile summary::after {content:'›';margin-left:auto;color:#ffce59;font-size:1.7rem}
 .activity-mobile[open] summary::after {transform:rotate(90deg)}
 .activity-mobile small {display:block;font-size:.82rem;font-weight:450}
 .activity-mobile nav {display:grid;margin:.6rem 0}
}
@media(max-width:48rem) {
 main {padding-inline:1.6%}.guide-hero {margin-inline:-1.65%}
 .masthead {justify-content:space-between}.brand img {width:min(55vw,20rem)}
 .guide-hero a {top:56%;height:21%}
 .hero-officials {left:4%;width:27%}.hero-votes {left:33%;width:33%}.hero-issues {left:68%;width:30%}
 .guide-hero .hero-find {top:76%;height:22%;left:14%;width:72%}
 /* Use a single phone grid for the three tabs and both delegation panels. */
 .masthead {padding-block:0;min-height:44px}
 .brand img {width:clamp(10rem,51vw,19rem)}
 .ct-tabs {align-items:stretch;gap:1%;margin:.4rem 0 .7rem}
 .ct-tabs button {min-width:0;grid-template-columns:1fr;grid-template-rows:auto auto auto;
   align-content:center;justify-items:center;padding:.2rem .1rem .3rem;gap:.08rem;
   border-radius:.8rem .8rem .5rem .5rem;font-family:Arial,sans-serif}
 .ct-tabs button img {grid-row:auto;width:clamp(1.25rem,5.8vw,2.3rem);height:clamp(1.05rem,4.6vw,1.8rem)}
 .ct-tabs button strong {font-size:clamp(.95rem,4vw,1.65rem)}
 .ct-tabs .house-prefix {display:none}
 .ct-tabs button small {max-width:100%;min-width:0;white-space:normal;font-weight:500;font-size:clamp(.6rem,2.32vw,.9rem);line-height:1.1}
 .government-guide-groups {gap:.55rem}
 .government-guide-groups .federal-group {padding:clamp(.4rem,1.75vw,.75rem);font-family:Arial,sans-serif}
 .government-guide-groups h2 {margin:0 0 .35rem;padding:0 0 .2rem;font-size:clamp(.875rem,3.72vw,1.55rem);line-height:1.15}
 .government-guide-groups h2 small {font-size:.78em}
 .leader-group .profile-grid {gap:1.7%}
 .leader-group .profile-card {grid-template-columns:47% minmax(0,1fr);grid-template-rows:1fr auto;
   min-height:0;aspect-ratio:1.92;padding:.25rem 0;align-items:center}
 .leader-group .profile-card img {width:47%;object-position:50% 20%}
 .leader-group .profile-card strong {margin:0 0 .16rem;font-size:clamp(.72rem,3.35vw,1.42rem);line-height:1.04}
 .leader-group .profile-card small {font-size:clamp(.58rem,2.64vw,1.05rem);line-height:1.17}
 .leader-group .profile-action {grid-column:2;margin:.18rem 0 0;justify-self:center;padding:.26em .48em;
   font-size:clamp(.58rem,2.54vw,1rem);line-height:1.12}
 .roster-group .profile-grid {gap:1.15%}
 .roster-group .profile-card {border-radius:.48rem;padding-bottom:.25rem}
 .roster-group .profile-card img {aspect-ratio:1.68}
 .roster-group .profile-card strong {font-size:clamp(.63rem,3vw,1.2rem);margin:.2rem 0 .12rem}
 .roster-group .profile-card small {font-size:clamp(.59rem,2.38vw,.94rem)}
 .roster-group .profile-action {margin:.25rem auto 0;font-size:clamp(.5rem,2.15vw,.87rem);padding:.25em .4em}
 .accountability-banner {margin:.55rem 0}
 .activity-mobile {padding:.35rem .7rem}
 .activity-mobile summary {min-height:36px;font-size:clamp(1rem,4vw,1.6rem);line-height:1.15}
 .activity-mobile small {font-size:clamp(.67rem,2.8vw,1rem)}
 .activity-mobile b {font-size:1.6em}
}
@media(forced-colors:active) {
 .guide-hero a {background:Canvas;color:LinkText;display:grid;place-items:center;text-align:center}
 .guide-hero a span {position:static;clip-path:none;white-space:normal;width:auto;height:auto}
}

.government-guide-groups h2::before,.activity-guide nav a::before {
  content:"";display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;
  margin-right:.4em;background:url('/images/governance/guide-symbols.png') 0 center / 500% 100% no-repeat;
}
.government-guide-groups .roster-group h2::before {background-position-x:25%}
.activity-guide nav a {flex:1;text-align:center}
.activity-guide nav a::before {display:block;margin:0 auto .25rem;background-position-x:50%}
.activity-guide nav a:nth-child(2)::before {background-position-x:75%}
.activity-guide nav a:nth-child(3)::before {background-position-x:100%}
.ct-tabs button {align-self:stretch}

/* Federal profile actions share a baseline, including cards with wrapped names. */
.roster-group .profile-card {align-content:stretch;grid-template-rows:auto 1fr auto}
.roster-group .profile-card img {aspect-ratio:1.07;object-position:50% 20%}
.roster-group .profile-card small {padding-inline:.12em;overflow-wrap:anywhere}
@media(min-width:60.001rem) {
  .government-guide-groups .federal-group {display:flex;flex-direction:column}
  .government-guide-groups .profile-grid {flex:1}
  .government-guide-groups .profile-card {min-width:0;padding-bottom:.65rem}
  .government-guide-groups .profile-action {
    width:calc(100% - .65rem);max-width:8.25rem;margin:.6rem auto 0;
    padding:.4em .2em;line-height:1.15;text-align:center;font-size:clamp(.78rem,1vw,1rem)
  }
  .leader-group .profile-card {align-content:stretch;grid-template-columns:44% minmax(0,1fr)}
  .leader-group .profile-card img {width:44%;object-position:center top}
  .leader-group .profile-card strong {overflow-wrap:anywhere}
}
@media(min-width:60.001rem) and (max-width:68rem) {
  .government-guide-groups {grid-template-columns:1fr}
}

/* Keep the portrait and its action in separate grid cells at every width. */
.government-guide-groups {grid-template-columns:minmax(0,1fr)}
.government-guide-groups .leader-group .profile-card {
  grid-template-columns:clamp(3.5rem,21vw,6.2rem) minmax(0,1fr);
  grid-template-rows:1fr auto;align-content:stretch;align-items:end;
  gap:.28rem .65rem;min-height:0;aspect-ratio:auto;padding:.48rem;
}
.government-guide-groups .leader-group .leader-portrait {
  position:relative;display:block;grid-row:1/3;grid-column:1;width:100%;aspect-ratio:4/5;
  padding:0;align-self:center;overflow:hidden;border-radius:.4rem;
}
.government-guide-groups .leader-group .leader-portrait img {
  position:static;display:block;width:100%;height:100%;object-fit:contain;
}
/* The Blumenthal source includes folded arms. Frame his head and shoulders. */
.leader-portrait[data-member="blumenthal"] img {transform:scale(1.45);transform-origin:56% 5%}
.government-guide-groups .leader-group .profile-card > .leader-info {grid-column:2;padding:0;min-width:0}
.government-guide-groups .leader-group .profile-action {grid-column:2;width:max-content;max-width:100%;justify-self:start;align-self:start;margin:0}
@media(min-width:60.001rem) {
  body {max-width:78rem}
  .roster-group .profile-card img {aspect-ratio:1.65;object-position:50% 22%}
  .leader-group .profile-card strong {font-size:1.3rem}
}
@media(max-width:48rem) {
  .government-guide-groups .leader-group .profile-card {grid-template-columns:42% minmax(0,1fr);gap:.15rem .28rem;padding:.2rem}
}

.directory-controls,.guide-links {display:flex;align-items:end;flex-wrap:wrap;gap:.65rem 1rem}
.directory-controls label {display:grid;gap:.2rem;font-weight:650}
.directory-controls input,.directory-controls select {font:inherit;background:#052930;color:white;border:1px solid #65a7ad;border-radius:.4rem;padding:.55rem .65rem;min-width:0}
.directory-controls label:first-child {flex:1 1 16rem;max-width:32rem}
.directory-status {margin:.75rem 0;color:#d4e9e4}
.directory-more {margin-top:.65rem}
.guide-links {margin-top:1rem;border-top:1px solid #40777c;padding-top:.65rem}
.guide-links a {color:#ffdf8a;text-underline-offset:.15em}
.level-notes {margin-top:1rem;color:#e4efea}
.level-notes summary {width:fit-content;color:#ffdf8a;font-weight:700;cursor:pointer}
.level-notes p {margin:.4rem 0}
.level-notes nav {display:flex;gap:.5rem 1rem;flex-wrap:wrap;margin-top:.5rem}

#ctState {--office-emblem:url('/images/governance/state-icon.png')}
#ctLocal {--office-emblem:url('/images/governance/local-icon.png')}
:is(#ctState,#ctLocal) .federal-group h2::before {
  background:var(--office-emblem) center / contain no-repeat;
  filter:brightness(0) saturate(100%) invert(86%) sepia(95%) saturate(501%) hue-rotate(333deg);
}
.office-photo {background:radial-gradient(ellipse at center,#1b5960,#092c33)}
.office-photo:empty {background:var(--office-emblem) center / auto 42% no-repeat,radial-gradient(ellipse at center,#1b5960,#092c33)}
.roster-group .office-photo {display:block;overflow:hidden;width:100%;aspect-ratio:1.07}
.roster-group .office-photo img {width:100%;height:100%;object-fit:cover;object-position:center 20%}
.leader-group .profile-card strong,.roster-group .profile-card strong {overflow-wrap:anywhere}
.directory-browser .directory-more {align-self:start}
.directory-browser details {margin-top:.65rem}
.directory-browser summary {width:fit-content;cursor:pointer;color:#ffe383;font-weight:700}
.directory-controls {margin-top:.55rem}
.directory-status {margin:.35rem 0;font-size:.9rem}
@media(min-width:60.001rem) {
  .roster-group .office-photo {aspect-ratio:1.65}
}
.roster-group .profile-card {grid-template-columns:minmax(0,1fr)}
@media(max-width:48rem) {
  .roster-group .profile-action {max-width:calc(100% - .2rem);white-space:normal}
}
