/*
 * Office-profile composition layer.
 *
 * Global color, typography, spacing, map, news, relationship, election,
 * coverage, and source patterns come from area-profile.css. This file owns
 * only the layout needed to compose those shared patterns into an Office Page.
 */

.office-profile {
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.office-hero .area-hero-inner {
  min-height: 535px;
}

.office-hero .area-hero-copy {
  padding-block: 8px;
}

.office-hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 5.3vw, 5rem);
  line-height: 0.96;
}

.office-hero-map img {
  aspect-ratio: 1.18;
  object-fit: contain;
  background: #eef3f4;
}

.office-context-strip {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 37, 59, 0.42);
}

.office-context-strip div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.office-context-strip div:last-child {
  border-right: 0;
}

.office-context-strip dt,
.office-context-strip dd {
  margin: 0;
}

.office-context-strip dt {
  margin-bottom: 4px;
  color: var(--area-gold-light);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.office-context-strip dd {
  color: #d7e4e8;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.35;
}

.office-overview-grid,
.office-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.office-detailed-stats {
  margin-top: 16px;
  border: 1px solid rgba(8, 47, 73, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.office-detailed-stats > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  color: var(--area-navy);
  cursor: pointer;
  list-style: none;
}

.office-detailed-stats > summary::-webkit-details-marker {
  display: none;
}

.office-detailed-stats > summary span {
  display: grid;
  gap: 3px;
}

.office-detailed-stats > summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 500;
}

.office-detailed-stats > summary small {
  color: var(--area-muted);
  font-size: 0.64rem;
  font-weight: 750;
}

.office-detailed-stats > summary i {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.office-detailed-stats[open] > summary i {
  transform: rotate(225deg);
}

.office-detailed-stats-body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(8, 47, 73, 0.12);
}

.office-detailed-stats-note {
  margin: 16px 0 0;
  color: var(--area-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.office-stat-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.office-stat-group {
  padding: 14px;
  border: 1px solid rgba(8, 47, 73, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.office-stat-group h3 {
  margin: 0 0 10px;
  color: var(--area-navy);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.office-stat-group dl,
.office-stat-group dt,
.office-stat-group dd {
  margin: 0;
}

.office-stat-group dl {
  display: grid;
  gap: 8px;
}

.office-stat-group dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.office-stat-group dt {
  color: var(--area-muted);
  font-size: 0.67rem;
}

.office-stat-group dd {
  display: grid;
  justify-items: end;
  color: var(--area-navy);
  text-align: right;
}

.office-stat-group dd strong {
  font-size: 0.75rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.office-stat-group dd small {
  margin-top: 2px;
  color: var(--area-muted);
  font-size: 0.58rem;
}

.office-panel-kicker {
  margin: 0 0 9px;
  color: var(--area-gold);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.office-explainer-panel h3,
.office-area-panel h3,
.office-map-intro h3,
.office-result-panel h3,
.officeholder-copy h3 {
  margin: 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.18;
}

.office-explainer-panel h3,
.office-area-panel h3 {
  font-size: 1.35rem;
}

.office-explainer-panel > p:not(.office-panel-kicker),
.office-area-panel p,
.office-result-panel p {
  color: var(--area-muted);
  font-size: 0.75rem;
  line-height: 1.58;
}

.office-explainer-panel > p.office-next-election {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--area-line);
  color: var(--area-navy);
}

.office-next-election span {
  color: var(--area-gold);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.office-next-election strong {
  color: var(--area-navy);
  font-size: 0.78rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.office-explainer-panel > a,
.office-area-panel a,
.office-secondary-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--area-teal);
  font-size: 0.69rem;
  font-weight: 850;
}

.office-explainer-panel > a:hover,
.office-explainer-panel > a:focus-visible,
.office-area-panel a:hover,
.office-area-panel a:focus-visible,
.office-secondary-link:hover,
.office-secondary-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.officeholder-section,
.office-related-section {
  padding-top: 40px;
}

.officeholder-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  border: 1px solid var(--area-line);
  border-top: 4px solid var(--area-gold-light);
  padding: 24px;
  background: var(--area-surface);
  box-shadow: 0 12px 32px rgba(8, 47, 73, 0.045);
}

.officeholder-portrait {
  margin: 0;
}

.officeholder-portrait img {
  display: block;
  width: 190px;
  height: 238px;
  border: 1px solid var(--area-line);
  object-fit: cover;
  object-position: center 22%;
}

.officeholder-portrait figcaption {
  padding-top: 8px;
  color: var(--area-muted);
  font-size: 0.59rem;
  line-height: 1.35;
}

.officeholder-portrait figcaption a:hover,
.officeholder-portrait figcaption a:focus-visible {
  color: var(--area-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.officeholder-copy {
  align-self: center;
}

.officeholder-copy h3 {
  font-size: clamp(2.25rem, 4vw, 3.45rem);
}

.officeholder-role {
  margin: 7px 0 22px;
  color: var(--area-muted);
  font-size: 0.8rem;
}

.officeholder-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--area-line);
  border-left: 1px solid var(--area-line);
}

.officeholder-facts div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--area-line);
  border-bottom: 1px solid var(--area-line);
}

.officeholder-facts dt,
.officeholder-facts dd {
  margin: 0;
}

.officeholder-facts dt {
  margin-bottom: 4px;
  color: var(--area-gold);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.officeholder-facts dd {
  color: var(--area-ink);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

.officeholder-facts a {
  color: var(--area-teal);
}

.officeholder-facts a:hover,
.officeholder-facts a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.officeholder-committees {
  margin-top: 18px;
  border-top: 1px solid var(--area-line);
  padding-top: 18px;
}

.officeholder-committees-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.officeholder-committees-heading .office-panel-kicker {
  margin-bottom: 4px;
}

.officeholder-committees-heading h4 {
  margin: 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.officeholder-committees-heading > span {
  color: var(--area-muted);
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}

.officeholder-committee-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.officeholder-committee-group {
  min-width: 0;
  border: 1px solid var(--area-line);
  background: rgba(237, 242, 241, 0.48);
}

.officeholder-committee-group h5 {
  margin: 0;
  border-bottom: 1px solid var(--area-line);
  padding: 7px 9px;
  color: var(--area-gold);
  background: var(--area-surface);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.officeholder-committee-group ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.officeholder-committee-group li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--area-line);
  color: var(--area-ink);
  font-size: 0.66rem;
  font-weight: 720;
  line-height: 1.35;
}

.officeholder-committee-group li:last-child {
  border-bottom: 0;
}

.officeholder-committee-group li small {
  flex: 0 0 auto;
  color: var(--area-teal);
  font-size: 0.54rem;
  font-weight: 850;
}

.officeholder-committees > .office-secondary-link {
  margin-top: 12px;
}

.officeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.officeholder-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.officeholder-roster-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--area-line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.07);
}

.officeholder-roster-monogram,
.officeholder-roster-portrait img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
}

.officeholder-roster-monogram {
  display: grid;
  place-items: center;
  background: var(--area-navy);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.officeholder-roster-portrait {
  margin: 0;
}

.officeholder-roster-portrait img {
  object-fit: cover;
}

.officeholder-roster-copy h3 {
  margin: 4px 0 12px;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.officeholder-roster-copy .officeholder-facts {
  grid-template-columns: 1fr;
}

.officeholder-roster-copy .officeholder-actions {
  margin-top: 14px;
}

.officeholder-history {
  margin-top: 12px;
  border: 1px solid var(--area-line);
  border-left: 4px solid var(--area-teal);
  background: var(--area-surface);
  box-shadow: 0 8px 24px rgba(8, 47, 73, 0.035);
}

.officeholder-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

.officeholder-history > summary::-webkit-details-marker {
  display: none;
}

.officeholder-history > summary span {
  display: grid;
  gap: 3px;
}

.officeholder-history > summary strong {
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.officeholder-history > summary small {
  color: var(--area-muted);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.officeholder-history > summary i {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--area-teal);
  border-bottom: 2px solid var(--area-teal);
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform 160ms ease;
}

.officeholder-history[open] > summary {
  border-bottom: 1px solid var(--area-line);
}

.officeholder-history[open] > summary i {
  transform: rotate(225deg) translate(-2px, 2px);
}

.officeholder-history > summary:hover strong,
.officeholder-history > summary:focus-visible strong {
  color: var(--area-teal);
}

.officeholder-history-body {
  padding: 22px;
}

.officeholder-history-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  align-items: end;
  gap: 28px;
}

.officeholder-history-intro .office-panel-kicker {
  margin-bottom: 4px;
}

.officeholder-history-intro h3 {
  margin: 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.officeholder-history-intro > p {
  margin: 0;
  color: var(--area-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.officeholder-history-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.officeholder-history-navigation {
  display: inline-flex;
}

.officeholder-history-navigation button {
  min-height: 44px;
  border: 1px solid var(--area-line);
  padding: 0 13px;
  color: var(--area-navy);
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.officeholder-history-navigation button + button {
  border-left: 0;
}

.officeholder-history-navigation button:hover:not(:disabled) {
  color: #fff;
  border-color: var(--area-teal);
  background: var(--area-teal);
}

.officeholder-history-navigation button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(36, 123, 119, 0.24);
  outline-offset: 2px;
}

.officeholder-history-navigation button:disabled {
  color: var(--area-muted);
  background: rgba(237, 242, 241, 0.72);
  cursor: not-allowed;
  opacity: 0.62;
}

.officeholder-history-picker {
  display: grid;
  flex: 1 1 250px;
  max-width: 360px;
  gap: 7px;
}

.officeholder-history-picker > span {
  color: var(--area-gold);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.officeholder-history-picker select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--area-line);
  border-radius: 0;
  padding: 0 38px 0 12px;
  color: var(--area-ink);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
}

.officeholder-history-picker select:focus-visible {
  outline: 3px solid rgba(36, 123, 119, 0.24);
  outline-offset: 2px;
}

.officeholder-history-panels {
  margin-top: 12px;
}

.past-officeholder-panel {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--area-line);
  padding: 18px;
  background: rgba(237, 242, 241, 0.42);
}

.past-officeholder-panel[hidden] {
  display: none;
}

.past-officeholder-portrait {
  margin: 0;
}

.past-officeholder-portrait img,
.past-officeholder-monogram {
  display: block;
  width: 154px;
  height: 190px;
  border: 1px solid var(--area-line);
}

.past-officeholder-portrait img {
  object-fit: cover;
}

.past-officeholder-portrait figcaption,
.past-officeholder-portrait-fallback p {
  margin: 0;
  padding-top: 7px;
  color: var(--area-muted);
  font-size: 0.56rem;
  line-height: 1.35;
}

.past-officeholder-portrait figcaption {
  display: grid;
  gap: 3px;
}

.past-officeholder-portrait figcaption > span {
  color: var(--area-muted);
  opacity: 0.86;
}

.past-officeholder-portrait figcaption a:hover,
.past-officeholder-portrait figcaption a:focus-visible {
  color: var(--area-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.past-officeholder-monogram {
  display: grid;
  place-items: center;
  color: #f5f1e6;
  background: linear-gradient(145deg, var(--area-navy), #24546a);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
}

.past-officeholder-copy {
  align-self: center;
  min-width: 0;
}

.past-officeholder-copy h4 {
  margin: 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
}

.past-officeholder-period {
  margin: 5px 0 14px;
  color: var(--area-teal);
  font-size: 0.72rem;
  font-weight: 850;
  font-variant-numeric: lining-nums tabular-nums;
}

.past-officeholder-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--area-line);
  border-left: 1px solid var(--area-line);
}

.past-officeholder-facts div {
  min-width: 0;
  border-right: 1px solid var(--area-line);
  border-bottom: 1px solid var(--area-line);
  padding: 9px 11px;
}

.past-officeholder-facts dt,
.past-officeholder-facts dd {
  margin: 0;
}

.past-officeholder-facts dt {
  margin-bottom: 3px;
  color: var(--area-gold);
  font-size: 0.53rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.past-officeholder-facts dd {
  color: var(--area-ink);
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.35;
}

.past-officeholder-copy .officeholder-actions {
  margin-top: 14px;
}

.officeholder-history-note {
  margin: 12px 0 0;
  color: var(--area-muted);
  font-size: 0.58rem;
  line-height: 1.5;
}

.office-legislation {
  margin-top: 18px;
  border: 1px solid var(--area-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.office-legislation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: var(--area-surface);
}

.office-legislation-heading .office-panel-kicker {
  margin-bottom: 4px;
}

.office-legislation-heading h3 {
  margin: 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.office-legislation-heading label {
  display: grid;
  gap: 5px;
  color: var(--area-muted);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.office-legislation-heading select {
  min-width: 190px;
  border: 1px solid rgba(8, 47, 73, 0.28);
  border-radius: 5px;
  padding: 9px 34px 9px 11px;
  color: var(--area-navy);
  background: #fff;
  font: 750 0.7rem/1.2 Arial, Helvetica, sans-serif;
  text-transform: none;
}

.office-legislation-intro,
.office-legislation-note {
  color: var(--area-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.office-legislation-intro {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--area-line);
  border-bottom: 1px solid var(--area-line);
}

.office-legislation-session {
  padding: 16px 18px 18px;
}

.office-legislation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.office-legislation-summary > button {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid var(--area-line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--area-muted);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 750;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.office-legislation-summary > button strong {
  color: var(--area-navy);
  font-size: 0.72rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.office-legislation-summary > button:hover {
  border-color: var(--area-navy);
}

.office-legislation-summary > button:focus-visible {
  outline: 2px solid var(--area-gold);
  outline-offset: 2px;
}

.office-legislation-summary > button[aria-pressed="true"] {
  border-color: var(--area-navy);
  color: #fff;
  background: var(--area-navy);
}

.office-legislation-summary > button[aria-pressed="true"] strong {
  color: #fff;
}

.office-legislation-summary > .is-active {
  border-color: rgba(2, 117, 126, 0.25);
  background: rgba(2, 117, 126, 0.07);
}

.office-legislation-summary > .is-active[aria-pressed="true"] {
  border-color: var(--area-teal);
  background: var(--area-teal);
}

.office-legislation-summary > .is-chaptered {
  border-color: rgba(42, 122, 82, 0.3);
  background: rgba(42, 122, 82, 0.08);
}

.office-legislation-summary > .is-chaptered[aria-pressed="true"] {
  border-color: #2a7a52;
  background: #2a7a52;
}

.office-legislation-summary > .is-vetoed,
.office-legislation-summary > .is-inactive {
  border-color: rgba(151, 85, 62, 0.25);
  background: rgba(151, 85, 62, 0.06);
}

.office-legislation-summary > .is-vetoed[aria-pressed="true"],
.office-legislation-summary > .is-inactive[aria-pressed="true"] {
  border-color: #97603e;
  background: #97603e;
}

.office-legislation-note {
  margin: 11px 0 14px;
}

.office-legislation-note [data-office-legislation-filter-status] {
  color: var(--area-navy);
  font-weight: 800;
}

.office-legislation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.office-legislation-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--area-line);
  border-left: 4px solid var(--area-teal);
  border-radius: 6px;
  padding: 10px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.office-legislation-item[hidden] {
  display: none;
}

.office-legislation-item:hover,
.office-legislation-item:focus-visible {
  border-color: var(--area-teal);
  outline: none;
}

.office-legislation-item.is-chaptered {
  border-left-color: #2a7a52;
}

.office-legislation-item.is-vetoed,
.office-legislation-item.is-inactive {
  border-left-color: #97603e;
}

.office-legislation-number {
  color: var(--area-navy);
  font-size: 0.68rem;
  font-weight: 900;
  font-variant-numeric: lining-nums tabular-nums;
}

.office-legislation-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.office-legislation-copy strong {
  color: var(--area-ink);
  font-size: 0.68rem;
  line-height: 1.35;
}

.office-legislation-copy small {
  color: var(--area-muted);
  font-size: 0.54rem;
}

.office-legislation-status {
  max-width: 110px;
  color: var(--area-muted);
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

.office-legislation-open {
  color: var(--area-teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.office-legislation-session > .office-secondary-link {
  margin-top: 14px;
}

.office-secondary-link {
  margin-top: 0;
}

.office-area-panel {
  min-height: 272px;
}

.office-community-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--area-line);
  list-style: none;
}

.office-community-list li {
  min-width: 0;
  border-bottom: 1px solid var(--area-line);
  padding: 8px 0;
  color: var(--area-ink);
  font-size: 0.69rem;
  font-weight: 750;
}

.office-community-list li:nth-child(odd) {
  border-right: 1px solid var(--area-line);
  padding-right: 12px;
}

.office-community-list li:nth-child(even) {
  padding-left: 12px;
}

.office-panel-note {
  margin-bottom: 0;
  font-size: 0.65rem !important;
}

.office-area-relationship {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.office-area-relationship > img {
  width: 150px;
  height: 150px;
  border: 1px solid var(--area-line);
  padding: 12px;
  object-fit: contain;
  background: var(--area-paper-deep);
}

.office-area-relationship p:not(.office-panel-kicker) {
  margin-bottom: 0;
}

.office-map-block {
  margin-top: 24px;
  border: 1px solid var(--area-line);
  background: var(--area-surface);
  box-shadow: 0 12px 32px rgba(8, 47, 73, 0.045);
}

.office-map-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 32px;
  align-items: end;
  border-bottom: 1px solid var(--area-line);
  padding: 22px 24px;
}

.office-map-intro h3 {
  font-size: 1.55rem;
}

.office-map-intro > div > p {
  margin-bottom: 7px;
}

.office-map-intro > p {
  margin: 0;
  color: var(--area-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.office-map-shell {
  display: grid;
  min-height: 510px;
  grid-template-columns: 225px minmax(0, 1fr);
}

.office-map-controls {
  border-right: 1px solid var(--area-line);
  padding: 20px 16px;
  background: var(--area-paper-deep);
}

.office-map-boundary-control {
  align-self: end;
}

.office-map-boundary-control label {
  display: block;
  margin-bottom: 8px;
  color: var(--area-gold);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.office-map-boundary-control select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(8, 47, 73, 0.28);
  border-radius: 0;
  padding: 8px 28px 8px 10px;
  color: var(--area-navy);
  background: var(--area-surface);
  font: inherit;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1.25;
}

.office-map-boundary-control select:hover,
.office-map-boundary-control select:focus-visible {
  border-color: var(--area-teal);
  outline: 2px solid color-mix(in srgb, var(--area-teal) 18%, transparent);
  outline-offset: 1px;
}

.office-map-control-group > p,
.office-map-control-heading > p {
  margin: 0 0 10px;
  color: var(--area-gold);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.office-map-control-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.office-map-control-group + .office-map-control-group {
  margin-top: 18px;
  border-top: 1px solid var(--area-line);
  padding-top: 16px;
}

.office-map-controls button {
  --office-map-control-color: var(--area-teal);
  --office-map-control-fill: var(--area-teal-light);
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--area-line);
  border-radius: 0;
  min-height: 36px;
  padding: 8px 11px;
  color: var(--area-navy);
  background: var(--area-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.office-map-controls button + button {
  margin-top: 9px;
}

.office-map-controls button:hover,
.office-map-controls button:focus-visible {
  border-color: var(--office-map-control-color);
  outline: 2px solid color-mix(in srgb, var(--office-map-control-color) 18%, transparent);
  outline-offset: 1px;
}

.office-map-controls button[aria-pressed="true"] {
  border-color: var(--office-map-control-color);
  background: color-mix(in srgb, var(--office-map-control-fill) 30%, var(--area-surface));
  box-shadow: inset 4px 0 0 var(--office-map-control-color);
}

.office-map-controls button[aria-pressed="true"] strong {
  color: var(--office-map-control-color);
}

.office-map-controls button span,
.office-map-controls button strong,
.office-map-controls button small {
  display: block;
}

.office-map-controls button strong {
  font-size: 0.69rem;
  line-height: 1.25;
}

.office-map-controls button[data-office-map-layer="places"] {
  --office-map-control-color: #9a6811;
  --office-map-control-fill: #e0bd68;
}

.office-map-controls button[data-office-map-layer="assembly"] {
  --office-map-control-color: #4d6392;
  --office-map-control-fill: #8798bd;
}

.office-map-controls button[data-office-map-layer="senate"] {
  --office-map-control-color: #356c86;
  --office-map-control-fill: #78a2b7;
}

.office-map-controls button[data-office-map-layer="congress"] {
  --office-map-control-color: #80517f;
  --office-map-control-fill: #b58bb3;
}

.office-map-controls button[data-office-map-layer="schools"] {
  --office-map-control-color: #16766f;
  --office-map-control-fill: #70c5af;
}

.office-map-controls button[data-office-map-layer="countyEducation"] {
  --office-map-control-color: #a14f43;
  --office-map-control-fill: #c87864;
}

.office-map-controls button[data-office-map-layer="appealsCourt"] {
  --office-map-control-color: #74651f;
  --office-map-control-fill: #c5b56f;
}

.office-map-controls button[data-office-map-layer="boardEqualization"] {
  --office-map-control-color: #91516e;
  --office-map-control-fill: #c887a4;
}

.office-map-controls button[data-office-map-context="county"] {
  --office-map-control-color: #9a6811;
  --office-map-control-fill: #e5c87e;
}

.office-map-controls button[data-office-map-context="state"] {
  --office-map-control-color: #173f57;
  --office-map-control-fill: #9bb7c3;
}

.office-map-controls .office-map-colors-toggle {
  display: block;
  width: auto;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid rgba(8, 47, 73, 0.28);
  padding: 0 0 3px;
  color: var(--area-teal);
  background: transparent;
  box-shadow: none;
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.office-map-controls .office-map-colors-toggle:hover,
.office-map-controls .office-map-colors-toggle:focus-visible,
.office-map-controls .office-map-colors-toggle[aria-pressed="true"] {
  border-color: var(--area-teal);
  outline: none;
  color: var(--area-navy);
  background: transparent;
  box-shadow: none;
}

.office-map-controls .office-map-reset {
  display: block;
  margin-top: 18px;
  border: 0;
  border-bottom: 1px solid rgba(8, 47, 73, 0.28);
  padding: 8px 0 4px;
  color: var(--area-teal);
  background: transparent;
  font-size: 0.64rem;
  font-weight: 850;
  text-align: left;
}

.office-map-stage {
  position: relative;
  min-width: 0;
  min-height: 510px;
  overflow: hidden;
  background: #e9f0f1;
}

.office-area-map {
  width: 100%;
  height: 510px;
  background: #e9f0f1;
}

.office-area-map .leaflet-tile-pane {
  transition: filter 180ms ease;
}

.office-area-map.is-muted-basemap .leaflet-tile-pane {
  filter: grayscale(1) saturate(0) contrast(0.88) brightness(1.07);
}

.office-area-map .leaflet-control-zoom {
  border: 1px solid rgba(8, 47, 73, 0.24);
  border-radius: 0;
  box-shadow: 0 8px 22px rgba(8, 47, 73, 0.12);
}

.office-area-map .leaflet-control-zoom a {
  color: var(--area-navy);
  background: var(--area-surface);
}

.office-area-map .leaflet-control-attribution {
  max-width: min(78%, 560px);
  color: #35505f;
  background: rgba(252, 251, 247, 0.9);
  font-size: 0.5rem;
  line-height: 1.25;
}

.office-area-map .leaflet-control-attribution a {
  color: var(--area-teal);
}

.office-area-map .leaflet-interactive:focus,
.office-area-map .leaflet-interactive:focus-visible {
  outline: none !important;
}

.office-area-map .leaflet-officeLayers-pane .leaflet-interactive {
  transition: fill-opacity 120ms ease, stroke-width 120ms ease;
}

.office-area-map .leaflet-officeLayers-pane .leaflet-interactive:hover,
.office-area-map .leaflet-officeLayers-pane .leaflet-interactive:focus-visible {
  fill-opacity: 0.8 !important;
  stroke-width: 3px;
}

.office-area-map .leaflet-officeContext-pane .leaflet-interactive {
  transition: fill-opacity 120ms ease, stroke-width 120ms ease;
}

.office-area-map .leaflet-officeContext-pane .leaflet-interactive:hover,
.office-area-map .leaflet-officeContext-pane .leaflet-interactive:focus-visible {
  fill-opacity: 0.8 !important;
  stroke-width: 4px;
}

.office-map-tooltip {
  border: 1px solid rgba(8, 47, 73, 0.24);
  border-radius: 0;
  color: var(--area-navy);
  background: var(--area-surface);
  box-shadow: 0 8px 20px rgba(8, 47, 73, 0.18);
  font-size: 0.64rem;
  font-weight: 800;
}

.office-map-popup-shell .leaflet-popup-content-wrapper,
.office-map-popup-shell .leaflet-popup-tip {
  border-radius: 0;
  background: var(--area-surface);
  box-shadow: 0 10px 26px rgba(8, 47, 73, 0.18);
}

.office-map-popup-shell .leaflet-popup-content {
  margin: 14px 16px;
}

.office-map-popup {
  min-width: 190px;
}

.office-map-popup > small {
  display: block;
  margin-bottom: 5px;
  color: var(--area-gold);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.office-map-popup-link {
  display: block;
}

.office-map-popup-link strong {
  display: block;
  color: var(--area-navy);
  font-size: 0.72rem;
  line-height: 1.35;
}

.office-map-link-action {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.office-map-popup-link > .office-map-link-action {
  margin-top: 7px;
  color: var(--area-teal);
  font-size: 0.61rem;
  font-weight: 850;
}

.office-map-link-action .ptp-inline-page-mark {
  top: 0;
  display: inline-grid;
  margin-right: 0;
}

.office-map-directory {
  border-top: 1px solid var(--area-line);
}

.office-map-page-index > summary {
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 16px;
  align-items: center;
  padding: 15px 24px;
  color: var(--area-navy);
  background: var(--area-paper-deep);
  cursor: pointer;
  list-style: none;
}

.office-map-page-index > summary::-webkit-details-marker {
  display: none;
}

.office-map-page-index > summary span,
.office-map-page-index > summary strong,
.office-map-page-index > summary small {
  display: block;
}

.office-map-page-index > summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.office-map-page-index > summary small {
  margin-top: 3px;
  color: var(--area-muted);
  font-size: 0.6rem;
}

.office-map-page-groups {
  padding: 8px 24px 24px;
}

.office-map-page-group {
  padding-top: 16px;
}

.office-map-page-group h5 {
  margin: 0 0 8px;
  color: var(--area-gold);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.office-map-page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--area-line);
}

.office-map-page-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--area-line);
  padding: 10px 12px 10px 0;
}

.office-map-page-link:nth-child(odd) {
  border-right: 1px solid var(--area-line);
}

.office-map-page-link:nth-child(even) {
  padding-right: 0;
  padding-left: 12px;
}

.office-map-page-link > strong {
  color: var(--area-navy);
  font-size: 0.68rem;
  line-height: 1.35;
}

.office-map-page-link > .office-map-link-action {
  color: var(--area-teal);
  font-size: 0.57rem;
  font-weight: 850;
  white-space: nowrap;
}

.office-map-page-link:hover > strong,
.office-map-page-link:focus-visible > strong,
.office-map-page-link:hover > .office-map-link-action,
.office-map-page-link:focus-visible > .office-map-link-action {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.office-map-page-empty {
  margin: 16px 0 0;
  color: var(--area-muted);
  font-size: 0.7rem;
}

.office-map-contained {
  border-top: 1px solid var(--area-line);
  padding: 24px;
  background: rgba(224, 189, 104, 0.08);
}

.office-map-contained-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
  gap: 10px 32px;
  align-items: end;
}

.office-map-contained-heading .office-panel-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.office-map-contained-heading h4,
.office-atlas-callout h4 {
  margin: 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
}

.office-map-contained-heading > p:last-child,
.office-atlas-callout p:not(.office-panel-kicker) {
  margin: 0;
  color: var(--area-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.office-map-contained-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.office-map-contained-list > a {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--area-line);
  padding: 14px;
  background: var(--area-surface);
}

.office-map-contained-list span,
.office-map-contained-list small,
.office-map-contained-list strong {
  display: block;
}

.office-map-contained-list small {
  margin-bottom: 5px;
  color: var(--area-gold);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.office-map-contained-list strong {
  color: var(--area-navy);
  font-size: 0.71rem;
  line-height: 1.38;
}

.office-map-contained-list em {
  margin-top: 14px;
  color: var(--area-teal);
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 850;
}

.office-map-contained-list > a:hover,
.office-map-contained-list > a:focus-visible {
  border-color: var(--area-teal);
  box-shadow: inset 3px 0 0 var(--area-teal);
}

.office-atlas-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--area-line);
  padding: 24px;
  background: var(--area-navy);
}

.office-atlas-callout .office-panel-kicker {
  margin-bottom: 7px;
}

.office-atlas-callout h4 {
  color: #ffffff;
}

.office-atlas-callout p:not(.office-panel-kicker) {
  margin-top: 5px;
  color: #bdd0d7;
}

.office-atlas-callout .primary-link {
  flex: 0 0 auto;
}

.office-map-status,
.office-map-fallback {
  position: absolute;
  z-index: 600;
  right: 12px;
  bottom: 10px;
  max-width: calc(100% - 24px);
  margin: 0;
  border-left: 3px solid var(--area-gold);
  padding: 8px 10px;
  color: #dce8eb;
  background: rgba(8, 47, 73, 0.92);
  font-size: 0.61rem;
  line-height: 1.4;
  pointer-events: none;
}

.office-map-status {
  bottom: 34px;
}

.office-map-data-warning {
  margin: -4px 0 16px;
  border: 1px solid #d7c28a;
  border-left: 4px solid var(--area-gold);
  padding: 11px 14px;
  color: var(--area-ink);
  background: #fff8e8;
  font-size: 0.72rem;
  line-height: 1.5;
}

.office-map-data-warning strong {
  display: block;
  margin-bottom: 3px;
  color: var(--area-navy);
}

.office-map-data-warning ul {
  margin: 0;
  padding-left: 18px;
}

.office-map-data-warning li + li {
  margin-top: 4px;
}

.office-election-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
}

.office-election-intro {
  max-width: 760px;
  margin: -12px 0 24px;
  color: var(--area-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.office-election-unavailable {
  min-height: 230px;
  border: 1px solid var(--area-line);
  border-left: 4px solid var(--area-gold-light);
  padding: 38px;
  background: var(--area-surface);
}

.office-election-unavailable strong {
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.office-election-unavailable p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--area-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.office-election-layout .race-card {
  min-height: 300px;
}

.office-election-layout .race-card h3 {
  max-width: 650px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.office-election-layout .race-card-meta {
  margin-top: 18px;
}

.office-election-layout .race-card-money dd {
  font-family: var(--area-numeral-font);
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.office-election-layout .race-card-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.office-election-layout .race-card-link-label .ptp-inline-page-mark {
  margin-right: 0;
}

.office-result-panel {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
}

.office-result-panel h3 {
  font-size: 1.48rem;
}

.office-result-value {
  margin-top: 22px;
  color: var(--area-navy);
  font-family: var(--area-numeral-font);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
}

.office-result-track {
  height: 8px;
  margin: 12px 0 6px;
  overflow: hidden;
  background: var(--area-paper-deep);
}

.office-result-track span {
  display: block;
  width: 73.23%;
  height: 100%;
  background: var(--area-teal);
}

.office-result-panel p strong {
  color: var(--area-navy);
  font-family: var(--area-numeral-font);
}

.office-result-panel small {
  display: block;
  margin-top: auto;
  border-top: 1px solid var(--area-line);
  padding-top: 12px;
  color: var(--area-muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.office-elections-section .records-note {
  color: var(--area-muted);
  background: rgba(224, 189, 104, 0.12);
}

.office-area-section {
  padding-bottom: 40px;
}

.office-elections-section {
  padding-top: 40px;
}

.office-related-section .related-item em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.office-related-section .related-item em .ptp-inline-page-mark {
  margin-right: 0;
}

.office-related-grid .related-group-heading {
  grid-template-columns: 40px minmax(0, 1fr) auto 22px;
  min-height: 74px;
}

.office-related-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--area-navy);
  background: var(--area-gold-light);
  font-family: var(--area-numeral-font);
  font-size: 0.68rem;
  font-weight: 850;
}

.office-related-heading-copy,
.office-related-heading-copy small,
.office-related-heading-copy strong {
  display: block;
}

.office-related-heading-copy small {
  margin-bottom: 3px;
  color: var(--area-gold);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.office-related-heading-copy strong {
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
}

.office-related-planned em {
  color: var(--area-muted);
  font-size: 0.57rem;
}

.office-related-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.office-related-columns .related-item {
  padding-right: 14px;
}

.office-related-columns .related-item:nth-child(odd) {
  border-right: 1px solid var(--area-line);
}

.office-related-columns .related-item:nth-child(even) {
  padding-right: 0;
  padding-left: 14px;
}

.office-news-section .news-card {
  text-decoration: none;
}

.office-news-empty {
  color: var(--area-ink);
}

.office-news-empty h3 {
  margin: 0 0 8px;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.office-news-empty p {
  margin: 0;
  color: var(--area-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.office-news-empty .office-secondary-link {
  margin-top: 15px;
}

.office-news-disclosure {
  margin: -4px 0 18px;
  border-left: 3px solid var(--area-gold);
  background: #eef3f4;
  padding: 11px 14px;
  color: var(--area-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.office-news-disclosure strong {
  color: var(--area-navy);
}

.office-news-type.is-office-selected {
  background: #f1e7c8;
  color: #5b4510;
}

.office-news-type.is-independent {
  background: #dcecf1;
  color: #17485b;
}

.office-news-type.is-external-public {
  background: #e8e3f3;
  color: #47346a;
}

.office-news-section .news-card-media.is-office-logo {
  background: linear-gradient(145deg, #f7f4ec, #e4ecee);
}

.office-news-section .news-card-media.is-office-logo img {
  object-fit: contain;
  padding: 30px;
}

.office-news-section .news-card-media.is-office-portrait img {
  object-position: center 20%;
}

.office-news-section .news-card-footer strong span,
.office-news-section .news-card-footer strong {
  white-space: nowrap;
}

.office-coverage-limit {
  margin-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 13px;
  color: #9fb9c4 !important;
  font-size: 0.67rem !important;
}

.office-error-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  border-left: 3px solid var(--area-gold);
  padding: 13px 16px;
  background: rgba(224, 189, 104, 0.14);
}

.office-error-callout strong {
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 500;
}

.office-error-callout p {
  margin: 3px 0 0;
  color: var(--area-muted);
  font-size: 0.66rem;
}

.office-error-callout a {
  flex: 0 0 auto;
  color: var(--area-teal);
  font-size: 0.69rem;
  font-weight: 850;
}

.office-error-callout a:hover,
.office-error-callout a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .office-context-strip {
    grid-template-columns: 1fr;
  }

  .office-context-strip div,
  .office-context-strip div:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .office-context-strip div:last-child {
    border-bottom: 0;
  }

  .officeholder-panel {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .past-officeholder-panel {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .past-officeholder-portrait img,
  .past-officeholder-monogram {
    width: 140px;
    height: 175px;
  }

  .officeholder-portrait img {
    width: 160px;
    height: 202px;
  }

  .office-map-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

}

@media (max-width: 760px) {
  .office-hero h1 {
    font-size: clamp(2.65rem, 11vw, 4rem);
  }

  .office-overview-grid,
  .office-area-grid,
  .office-election-layout {
    grid-template-columns: 1fr;
  }

  .office-stat-groups {
    grid-template-columns: 1fr;
  }

  .office-legislation-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .office-legislation-heading select {
    width: 100%;
  }

  .office-legislation-list {
    grid-template-columns: 1fr;
  }

  .office-legislation-item {
    grid-template-columns: 56px minmax(0, 1fr) 14px;
  }

  .office-legislation-status {
    grid-column: 2 / 3;
    max-width: none;
    text-align: left;
  }

  .office-legislation-open {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .office-map-intro,
  .office-map-shell {
    grid-template-columns: 1fr;
  }

  .office-map-intro {
    gap: 18px;
    align-items: stretch;
  }

  .office-map-controls {
    border-right: 0;
    border-bottom: 1px solid var(--area-line);
  }

  .office-map-control-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .office-map-control-group > p {
    grid-column: 1 / -1;
  }

  .office-map-controls button + button {
    margin-top: 0;
  }

  .office-map-controls .office-map-reset {
    margin-top: 16px;
  }

  .officeholder-panel {
    grid-template-columns: 1fr;
  }

  .officeholder-history-body {
    padding: 18px;
  }

  .officeholder-history-intro,
  .past-officeholder-panel {
    grid-template-columns: 1fr;
  }

  .past-officeholder-portrait,
  .past-officeholder-portrait-fallback {
    width: min(100%, 190px);
  }

  .past-officeholder-portrait img,
  .past-officeholder-monogram {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .past-officeholder-facts {
    grid-template-columns: 1fr;
  }

  .officeholder-portrait {
    width: min(100%, 220px);
  }

  .officeholder-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .officeholder-facts {
    grid-template-columns: 1fr;
  }

  .officeholder-committees-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .officeholder-committees-heading > span {
    text-align: left;
  }

  .officeholder-committee-groups {
    grid-template-columns: 1fr;
  }

  .officeholder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .officeholder-actions .primary-link,
  .officeholder-actions .office-secondary-link {
    justify-content: center;
  }

  .office-area-relationship {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .office-area-relationship > img {
    width: 105px;
    height: 105px;
  }

  .office-error-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-related-columns {
    grid-template-columns: 1fr;
  }

  .office-related-columns .related-item:nth-child(odd) {
    border-right: 0;
  }

  .office-related-columns .related-item:nth-child(even) {
    padding-right: 14px;
    padding-left: 0;
  }

  .office-map-page-list,
  .office-map-contained-list,
  .office-map-contained-heading {
    grid-template-columns: 1fr;
  }

  .office-map-contained-heading .office-panel-kicker {
    grid-column: auto;
  }

  .office-map-page-link:nth-child(odd) {
    border-right: 0;
  }

  .office-map-page-link:nth-child(even) {
    padding-right: 12px;
    padding-left: 0;
  }

  .office-atlas-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .office-community-list {
    grid-template-columns: 1fr;
  }

  .office-community-list li:nth-child(odd),
  .office-community-list li:nth-child(even) {
    border-right: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .office-area-relationship {
    grid-template-columns: 1fr;
  }

  .office-area-relationship > img {
    width: 130px;
    height: 130px;
  }

  .office-map-control-group {
    grid-template-columns: 1fr;
  }

  .office-related-grid .related-group-heading {
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    gap: 10px;
  }

  .office-related-grid .related-group-count {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .office-profile *,
  .office-profile *::before,
  .office-profile *::after {
    transition-duration: 0.01ms !important;
  }
}
