/* My Representation state pages (full width, no right-hand box) */
.tracker-page #primary { width: 100%; float: none; }
.tracker-page #secondary { display: none; }
.tracker { --az-blue: #00205b; --az-red: #bf0a30; --az-gold: #fed700; --az-copper: #ce5c17; --ink: #1d1d1d; --muted: #555; --line: #d6d9df; }
.tracker h2 { color: var(--az-blue); font-size: 26px; margin: 1.4em 0 .5em; }
.tracker .hint { color: var(--muted); font-size: 14px; }

/* State banner: flag, name and motto, outline */
.state-banner { display: flex; align-items: center; gap: 24px; padding: 20px 24px; border-radius: 6px;
	background: linear-gradient(90deg, #fff 0%, #fff 55%, #fdf3e8 100%); border: 1px solid var(--line); border-bottom: 6px solid var(--az-copper); }
.state-flag svg { display: block; width: 150px; height: 100px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.state-name { flex: 1; }
.state-name h1 { margin: 0; font-size: 46px; line-height: 1.05; letter-spacing: 2px; text-transform: uppercase; color: var(--az-blue); }
.state-name .motto { margin: 6px 0 0; font-size: 20px; color: var(--ink); }
.state-name .nickname { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.state-outline { width: 92px; height: auto; flex: none; }
.state-outline path { fill: var(--az-copper); }
@media (max-width: 640px) {
	.state-banner { flex-wrap: wrap; gap: 14px; padding: 16px; }
	.state-flag svg { width: 105px; height: 70px; }
	.state-name h1 { font-size: 34px; }
	.state-outline { display: none; }
}

/* Finding your districts */
.find-ways { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.find-way { flex: 1 1 280px; margin: 0; }
.find-way label { display: block; font-weight: 700; margin-bottom: 6px; }
.address-row { display: flex; gap: 8px; }
.address-row input { flex: 1; min-width: 0; font-size: 17px; padding: 9px 10px; border: 1px solid #888; border-radius: 4px; }
.big-button { font: inherit; font-size: 17px; font-weight: 700; padding: 10px 18px; border-radius: 4px; cursor: pointer;
	border: 1px solid var(--az-blue); background: var(--az-blue); color: #fff; }
.big-button:hover, .big-button:focus-visible { background: var(--az-gold); color: #111; border-color: #b39400; }
#find-status { font-weight: 700; color: var(--az-blue); min-height: 1.4em; }

/* Map */
.map-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.map-tabs a { padding: 9px 16px; border: 2px solid var(--az-blue); border-radius: 4px; color: var(--az-blue); font-weight: 700; text-decoration: none; }
.map-tabs a[aria-selected="true"] { background: var(--az-blue); color: #fff; }
.zoom-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.zoom-buttons button { font: inherit; font-size: 15px; padding: 6px 14px; border-radius: 4px; border: 1px solid #888; background: #fff; color: var(--ink); cursor: pointer; }
.zoom-buttons button[aria-pressed="true"] { background: #333; color: #fff; border-color: #333; }
.map-info { min-height: 3em; margin: 6px 0; font-size: 16px; }
.map-wrap { border: 1px solid var(--line); border-radius: 6px; background: #eef3f8; }
.district-map { display: block; width: 100%; height: auto; max-height: 82vh; }
.district-map[hidden] { display: none; }
.district-map .state-bg { fill: #fff; stroke: #333; }
.district path { fill: #f3e3c3; stroke: #3b4351; stroke-linejoin: round; cursor: pointer; transition: fill .15s; }
/* five soft colors; neighboring districts never share one */
.district.c0 path { fill: #f3e3c3; }
.district.c1 path { fill: #cfe3c6; }
.district.c2 path { fill: #cfe0f0; }
.district.c3 path { fill: #f2cfc2; }
.district.c4 path { fill: #e2d6ee; }
.district:hover path, .district:focus path { fill: var(--az-gold); }
.district:focus { outline: none; }
.district:focus path { stroke: #000; }
.district.selected path { fill: var(--az-blue); }
.labels text { font-family: "Open Sans", sans-serif; font-weight: 700; fill: #111; stroke: #fff; paint-order: stroke; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.labels text.selected { fill: #fff; stroke: var(--az-blue); }
.district-list { margin: 12px 0; }
.district-list summary { cursor: pointer; font-weight: 700; color: var(--az-blue); font-size: 17px; }
.district-list h3 { margin-top: 1em; }
.district-list li { margin: 4px 0; }

/* Officials */
.your-districts { font-size: 17px; }
.tracker h3.tier { margin: 1.6em 0 .4em; padding: 6px 12px; background: var(--az-blue); color: #fff; font-size: 20px; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; }
.office-group h4 { margin: 1em 0 .4em; font-size: 19px; color: var(--ink); }
.cards { display: flex; flex-wrap: wrap; gap: 14px; }
.card { display: flex; gap: 14px; flex: 1 1 300px; max-width: 470px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.card img, .card .no-photo { width: 96px; height: 120px; object-fit: cover; border-radius: 4px; flex: none; background: #e8e8e8; }
.card .no-photo { display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #666; }
.card p { margin: 0 0 4px; }
.card .person { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.card .office { font-size: 15px; color: var(--muted); }
.card .party { font-size: 16px; }
.card .term { font-size: 14px; color: var(--muted); }
.card .links a { font-weight: 700; }
.officials .empty { font-size: 17px; padding: 10px 14px; background: #fff8d6; border-left: 4px solid var(--az-gold); margin: 0; }
.officials .sources { margin-top: 2em; }

/* Small header on state pages: site name, then the way back */
.mini-header { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #d6d9df; }
.mini-logo img { display: block; width: 250px; height: auto; max-width: 70vw; }
.back-link { font-size: 18px; font-weight: 700; color: #0a1a4f; text-decoration: none; padding: 4px 0; }
.back-link:hover, .back-link:focus-visible { text-decoration: underline; }

/* After the first step the banner gets smaller */
.tracker-step2 .state-banner, .tracker-mine .state-banner { padding: 10px 16px; gap: 16px; border-bottom-width: 4px; }
.tracker-step2 .state-flag svg, .tracker-mine .state-flag svg { width: 84px; height: 56px; }
.tracker-step2 .state-name h1, .tracker-mine .state-name h1 { font-size: 32px; }
.tracker-step2 .state-name .motto, .tracker-mine .state-name .motto { font-size: 16px; }
.tracker-step2 .nickname, .tracker-mine .nickname, .tracker-step2 .state-outline, .tracker-mine .state-outline { display: none; }

.welcome-back { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 0; padding: 12px 16px; background: #fff8d6; border-left: 4px solid var(--az-gold); font-size: 17px; }
.welcome-back[hidden] { display: none; }
.welcome-back .big-button { text-decoration: none; }
.link-button { font: inherit; font-size: 15px; background: none; border: 0; padding: 0; color: #0a1a4f; text-decoration: underline; cursor: pointer; }

.found-one { margin: 16px 0 0; padding: 10px 14px; font-size: 18px; background: #e7f3e4; border-left: 4px solid #2e7d32; }
.found-one .tick { color: #2e7d32; font-weight: 700; }

/* Step 3: my officials */
.my-districts { margin: 16px 0 10px; font-size: 18px; }
.my-districts p { margin: 0; }
.level-tabs { display: flex; gap: 0; margin: 14px 0 0; border-bottom: 4px solid var(--az-blue); }
.level-tabs a { flex: 1; display: flex; flex-direction: column; padding: 12px 16px; text-decoration: none; color: var(--az-blue); background: #eef1f6; border: 2px solid var(--az-blue); border-bottom: 0; border-radius: 6px 6px 0 0; }
.level-tabs a + a { margin-left: 6px; }
.level-tabs .tab-title { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.level-tabs .tab-sub { font-size: 15px; }
.level-tabs a[aria-selected="true"] { background: var(--az-blue); color: #fff; }
.level-tabs a:focus-visible { outline: 3px solid var(--az-gold); outline-offset: 2px; }
.tracker [role="tabpanel"] { padding-top: 4px; }
.tracker [role="tabpanel"][hidden] { display: none; }
.office-group h3 { margin: 1.2em 0 .5em; font-size: 21px; color: var(--ink); }

/* Landing: street map */
.pick-intro { font-size: 18px; }
.find-ways.compact { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 10px 0; }
.find-ways.compact .address-row { flex: 1 1 340px; }
.privacy-note { margin: 6px 0 12px; }
.privacy-note summary { cursor: pointer; font-weight: 700; color: var(--az-blue); }
.privacy-note p { margin: 6px 0; }
.map-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 10px 0 8px; }
.layer-buttons, .map-controls .zoom-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.layer-buttons span, .map-controls .zoom-buttons span { font-weight: 700; margin-right: 2px; }
.layer-buttons button { font: inherit; font-size: 15px; padding: 6px 14px; border-radius: 4px; border: 1px solid #888; background: #fff; color: var(--ink); cursor: pointer; }
.layer-buttons button[aria-pressed="true"] { background: #333; color: #fff; border-color: #333; }
.street-map { height: 72vh; min-height: 420px; border: 1px solid var(--line); border-radius: 6px; cursor: crosshair; }
.street-map.leaflet-container { font: 14px/1.4 "Open Sans", sans-serif; }
.district-label span { display: inline-block; transform: translate(-50%, -50%); padding: 1px 7px; border-radius: 12px; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid #b04a0f; color: #111; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.district-label.congress span { border-color: #00205b; font-size: 16px; }
.pick-result { margin: 10px 0; padding: 14px 18px; background: #fff; border: 3px solid var(--az-blue); border-radius: 6px; font-size: 18px; }
.pick-result[hidden] { display: none; }
.pick-result p { margin: 0 0 6px; }
.pick-where { font-weight: 700; }
.pick-districts { margin: 0 0 10px 1.2em; }
.pick-districts li { margin: 4px 0; }
.pick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pick-actions .big-button { text-decoration: none; }
.remember-row { margin: 6px 0 0; }

/* The confirm bubble on the map */
.leaflet-popup-content { margin: 14px 16px; font-size: 17px; line-height: 1.4; }
.pick-popup p { margin: 0 0 8px; }
.pick-popup .pick-where { font-weight: 700; color: var(--az-blue); }
.pick-popup .pick-actions { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.pick-popup .big-button { display: block; text-align: center; text-decoration: none; color: #fff; }
.pick-popup .big-button:hover, .pick-popup .big-button:focus-visible { color: #111; }
.plain-button { font: inherit; font-size: 16px; font-weight: 700; padding: 9px 14px; border-radius: 4px; cursor: pointer; border: 2px solid var(--az-blue); background: #fff; color: var(--az-blue); }
.plain-button:hover, .plain-button:focus-visible { background: #eef1f6; }
.leaflet-container a.leaflet-popup-close-button { font-size: 24px; width: 30px; height: 30px; }
.officials .ballot-note { font-size: 17px; margin: 24px 0 0; padding-top: 14px; border-top: 1px solid #ccc; }

/* Federal cards: link to the member's own page */
.card .person a { color: var(--az-blue); }
.card .more { margin-top: 8px; }
.card .more .big-button { display: inline-block; font-size: 15px; padding: 7px 12px; text-decoration: none; color: #fff; }
.card .more .big-button:hover, .card .more .big-button:focus-visible { color: #111; }

/* Member page */
.member { font-size: 17px; color: var(--ink); }
.member-banner { display: flex; gap: 22px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-bottom: 6px solid var(--az-blue); border-radius: 6px; background: #fff; }
.member-banner img { width: 150px; height: 188px; object-fit: cover; border-radius: 4px; flex: none; }
.member-banner h1 { margin: 0 0 6px; font-size: 40px; line-height: 1.1; color: var(--az-blue); }
.member-banner p { margin: 0 0 4px; }
.member-office { font-size: 21px; font-weight: 700; }
.member-party { font-size: 18px; }
.member-term { font-size: 16px; color: var(--muted); }
.member .listen { margin: 12px 0 0; }
.member-nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 8px 0; background: #fff; border-bottom: 2px solid var(--line); }
.member-nav a { padding: 8px 14px; border: 2px solid var(--az-blue); border-radius: 4px; font-weight: 700; color: var(--az-blue); text-decoration: none; }
.member-nav a:hover, .member-nav a:focus-visible { background: var(--az-blue); color: #fff; }
.member-section { padding-top: 6px; scroll-margin-top: 70px; }
.member-section h2 { margin: 1.3em 0 .5em; padding-bottom: 6px; border-bottom: 3px solid var(--az-copper); font-size: 28px; }
.member-section h3 { margin: 1.4em 0 .5em; font-size: 21px; color: var(--ink); }
.member .entry-content p { margin: 0 0 .7em; }

.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.contact-buttons .big-button { text-decoration: none; color: #fff; font-size: 18px; }
.contact-buttons .big-button:hover, .contact-buttons .big-button:focus-visible { color: #111; }
.offices { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.office-box { flex: 1 1 240px; padding: 12px 16px; border: 1px solid var(--line); border-left: 5px solid var(--az-copper); border-radius: 4px; background: #fbfbfb; }
.member-section .office-box h3 { margin: 0 0 4px; font-size: 18px; }
.office-box p { margin: 0 0 2px !important; }
.office-box a { font-size: 19px; font-weight: 700; }

.vote-summary { font-size: 18px; }
.vote-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vote-filters a { padding: 8px 14px; border: 2px solid var(--az-blue); border-radius: 4px; font-weight: 700; color: var(--az-blue); text-decoration: none; }
.vote-filters a[aria-current="true"] { background: var(--az-blue); color: #fff; }
.vote-filters .count { font-weight: 400; }
.vote-search { margin: 10px 0 4px; max-width: 640px; }
.vote-search label { display: block; font-weight: 700; margin-bottom: 4px; }
.vote-list, .bill-list { list-style: none; margin: 10px 0; padding: 0; }
.vote { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vote-cast { flex: none; width: 130px; align-self: flex-start; padding: 8px 6px; border-radius: 4px; text-align: center; font-weight: 700; font-size: 17px; color: #fff; background: #4a4a4a; }
.vote-cast.yes { background: #1b5e20; }
.vote-cast.no { background: #b71c1c; }
.vote-text { flex: 1; min-width: 0; }
.vote-text p { margin: 0 0 4px !important; }
.vote-date { font-size: 15px; color: var(--muted); }
.vote-date a { font-weight: 700; }
.vote-title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.vote-amend { font-size: 16px; font-style: italic; }
.vote-what { font-size: 16px; }
.vote-result { font-size: 15px; }
.broke { font-weight: 700; color: #7a3e00; background: #fff1d6; padding: 0 4px; border-radius: 3px; }
.vote-pages { display: flex; align-items: center; gap: 16px; margin: 14px 0; }
.vote-pages .plain-button { text-decoration: none; }

.bill { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bill p { margin: 0 0 4px !important; }
.bill-head { font-size: 15px; color: var(--muted); }
.bill-head a { font-weight: 700; }
.bill-title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.bill-latest { font-size: 15px; }
.bill details { margin-top: 6px; }
.bill summary { cursor: pointer; font-weight: 700; color: var(--az-blue); }
.bill details p { font-size: 16px; }
.status { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 14px; font-weight: 700; color: #fff; }
.status.law { background: #1b5e20; }
.status.passed { background: #0d47a1; }
.cosponsor-list li { margin: 6px 0; }

.money-totals { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.money-totals div { flex: 1 1 150px; padding: 12px 16px; border: 1px solid var(--line); border-top: 5px solid var(--az-blue); border-radius: 4px; }
.money-totals .label { display: block; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.money-totals .num { display: block; font-size: 26px; font-weight: 700; color: var(--ink); }
.money-bar { display: flex; height: 30px; border-radius: 4px; overflow: hidden; border: 1px solid #999; }
.money-parts { list-style: none; margin: 10px 0; padding: 0; }
.money-parts li { margin: 4px 0; }
.swatch { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; border: 1px solid #555; }
.p-ind { background: #0d5fa8; } .p-pac { background: #ce5c17; } .p-party { background: #7b1fa2; }
.p-self { background: #2e7d32; } .p-xfer { background: #f2c200; } .p-other { background: #9e9e9e; }
.money-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 16px; }
.money-table th, .money-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.money-table th { background: #eef1f6; color: var(--az-blue); }
.money-table .amt { text-align: right; white-space: nowrap; }
.committee-list li { margin: 4px 0; }
.member-sources { margin: 30px 0 10px; padding: 14px 18px; background: #f4f6f9; border-radius: 6px; font-size: 15px; }
.member-sources p { margin: 0 0 6px; }

@media (max-width: 640px) {
	.member-banner { flex-direction: column; align-items: flex-start; padding: 14px; }
	.member-banner h1 { font-size: 32px; }
	.vote { flex-direction: column; gap: 8px; }
	.vote-cast { width: auto; min-width: 110px; }
	.money-table th:nth-child(2), .money-table td:nth-child(2) { display: none; }
}

/* ===== Red, white and blue (Dennis 10-09) =====
   Black text on white, large type; color goes on bars, buttons, tabs, stripes and box edges.
   Every color used behind white text or as text is dark enough to read (5:1 or better), even with
   blue-blocking glasses. Federal = red, white and blue; state officials = the state flag's colors. */
.tracker-page { --navy: #0a3161; --red: #b31942; --tint: #eef2f9; }
.tracker-page #content, .tracker-page #primary, .tracker-page .site-main, .tracker { background: #fff; }
.tracker, .theme-us { --c1: #0a3161; --c2: #b31942; --c3: #b31942; }
.theme-az { --c1: #00205b; --c2: #a3410a; --c3: #fed700; }
.tracker { --az-blue: var(--c1); --ink: #000; --muted: #000; --line: #9aa7bd; font-size: 20px; line-height: 1.5; color: #000; }
.tracker p, .tracker li, .tracker td, .tracker th, .tracker summary, .tracker label { color: #000; }
.tracker .hint, .member-term, .vote-date, .vote-what, .vote-result, .bill-head, .bill-latest,
.card .office, .card .term, .state-name .nickname, .member-sources { color: #000 !important; font-size: 18px !important; }
.tracker a { color: var(--c1); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.tracker a:hover { color: var(--c2); }
.tracker h1, .tracker h2 { color: var(--c1); }
.tracker h3 { color: #000; }

/* Header of the whole My Representation area: logo back home, navy bar, flag stripes */
.zone-header { background: #fff; }
.zone-top { padding: 12px 20px 10px; }
.zone-logo { display: inline-block; }
.zone-logo img { display: block; width: 250px; height: auto; max-width: 70vw; }
.zone-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 10px 20px; background: #0a3161; }
.zone-title { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none; font-size: 26px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.zone-title:hover { text-decoration: underline; }
.zone-flag svg { display: block; width: 48px; height: 32px; border: 2px solid #fff; }
.zone-state { text-transform: none; letter-spacing: 0; }
.zone-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.zone-nav a { padding: 7px 14px; border: 2px solid #fff; border-radius: 4px; color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }
.zone-nav a:hover, .zone-nav a:focus-visible { background: #fff; color: #0a3161; }
.zone-nav a[aria-current="page"] { background: #b31942; border-color: #b31942; }
.zone-stripe { height: 18px; background: repeating-linear-gradient(180deg, #b31942 0 6px, #fff 6px 12px); border-bottom: 1px solid #b31942; }
.tracker-page #content { padding-top: 10px; }

/* Buttons: dark color with white letters; red when pointed at */
.tracker .big-button, .vote-filters a, .plain-button, .card .more .big-button {
	background: var(--c1) !important; color: #fff !important; border: 2px solid var(--c1) !important; text-decoration: none; font-size: 19px; }
.tracker .big-button:hover, .tracker .big-button:focus-visible, .vote-filters a:hover, .vote-filters a:focus-visible,
.plain-button:hover, .plain-button:focus-visible, .card .more .big-button:hover {
	background: var(--c2) !important; border-color: var(--c2) !important; color: #fff !important; }
.vote-filters a[aria-current="true"] { background: var(--c2) !important; border-color: var(--c2) !important; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c2); }
.vote-filters .count { color: inherit; }

/* Federal / State tabs on "my representatives": each in its own colors */
.level-tabs { border-bottom: 5px solid var(--c1); }
.level-tabs a { color: #fff !important; text-decoration: none; border: 0; }
.level-tabs a.theme-us { background: #0a3161; } .level-tabs a.theme-az { background: #00205b; }
.level-tabs a[aria-selected="false"] { opacity: .75; }
.level-tabs a[aria-selected="true"] { opacity: 1; box-shadow: inset 0 6px 0 var(--c3); }
.level-tabs a:hover { opacity: 1; }
.level-tabs .tab-sub { font-size: 17px; }
.officials.theme-az { border-top: 6px solid #fed700; }
.officials.theme-az .office-group h3 { color: #00205b; }
.officials .office-group h3 { color: var(--c1); border-left: 6px solid var(--c2); padding-left: 10px; }

/* Boxes: white with a colored edge */
.card, .office-box { background: #fff !important; border: 2px solid var(--line) !important; border-top: 6px solid var(--c1) !important; }
.office-box { border-top-color: var(--c2) !important; }
.member-sources, .officials .ballot-note { background: var(--tint) !important; border: 0 !important; border-left: 6px solid var(--c1) !important; }
.officials .empty, .found-one, .welcome-back, .pick-result { background: #fff !important; border: 2px solid var(--c1) !important; border-left-width: 8px !important; }
.card .person a { color: var(--c1); }

/* Member page: banner, tabs that stay on screen, overview boxes */
.member-banner { border: 0; border-radius: 6px; background: var(--c1); color: #fff; box-shadow: inset 0 -8px 0 var(--c2); padding-bottom: 26px; }
.member-banner img { border: 4px solid #fff; }
.member-banner h1 { color: #fff !important; font-size: 46px; margin: 0 0 4px; }
.member-banner p { color: #fff !important; }
.member-office { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; }
.member-party { font-size: 21px; font-weight: 700; }
.member-term { font-size: 18px !important; }
.member-tabs { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; padding: 10px 0;
	background: #fff; border-bottom: 5px solid var(--c1); }
.member-tabs .tabs-name { display: none; font-weight: 700; font-size: 18px; margin-right: 6px; color: var(--c1); }
.member-tabs a { padding: 9px 16px; border: 2px solid var(--c1); border-radius: 4px; background: #fff; color: var(--c1); font-size: 19px; text-decoration: none; }
.member-tabs a:hover, .member-tabs a:focus-visible { background: var(--c1); color: #fff; }
.member-tabs a[aria-current="page"] { background: var(--c2); border-color: var(--c2); color: #fff; }
.member-section h2 { font-size: 34px; border-bottom: 0; padding-bottom: 0; margin-top: .8em; }
.member-section h2::after { content: ""; display: block; width: 120px; height: 6px; margin-top: 6px; background: linear-gradient(90deg, var(--c2) 0 33%, #fff 33% 40%, var(--c1) 40%); }
.member-section h3 { font-size: 25px; color: var(--c1); }
.member-section h3[id] { scroll-margin-top: 90px; }
.fact-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 6px; }
.tracker a.fact-box { display: flex; flex-direction: column; padding: 14px 18px; border: 2px solid var(--line); border-top: 8px solid var(--c1); border-radius: 6px; color: #000; text-decoration: none; font-weight: 400; }
.tracker a.fact-box:nth-child(even) { border-top-color: var(--c2); }
.tracker a.fact-box:hover, .tracker a.fact-box:focus-visible { border-color: var(--c2); box-shadow: 0 0 0 2px var(--c2); }
.fact-box .label { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--c1); }
.fact-box .num { font-size: 36px; font-weight: 700; line-height: 1.2; }
.fact-box .sub { font-size: 18px; }
.fact-box .go { margin-top: 8px; font-weight: 700; color: var(--c2); text-decoration: underline; }
.member-next { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding-top: 16px; border-top: 5px solid var(--c1); }
.member-next a { padding: 8px 14px; border: 2px solid var(--c1); border-radius: 4px; text-decoration: none; }
.member-next a:hover { background: var(--c1); color: #fff; }

.office-box a { font-size: 22px; }
.money-totals div { background: #fff !important; border: 2px solid var(--line) !important; border-top: 8px solid var(--c1) !important; }
.money-totals div:nth-child(2) { border-top-color: var(--c2) !important; }
.money-totals .label { color: var(--c1); font-weight: 700; font-size: 17px; }
.money-totals .num { font-size: 30px; }
.money-table th { background: var(--c1); color: #fff !important; }
.money-table th, .money-table td { border-bottom: 1px solid var(--line); font-size: 19px; }
.money-table tbody tr:nth-child(even) td { background: var(--tint); }
.watch-lines { margin: 6px 0 4px 30px; padding: 0; list-style: none; }
.watch-lines li { margin: 4px 0; padding-left: 12px; border-left: 4px solid var(--c2); }
.vote, .bill { border-bottom: 1px solid var(--line); }
.vote-title, .bill-title { font-size: 21px; }
.vote-cast { font-size: 20px; padding: 10px 6px; }
.vote-cast.yes { background: #1b5e20; }
.vote-cast.no { background: #b31942; }
.vote-cast.other { background: #fff; color: #000; border: 3px solid #000; }
.broke { background: #ffd400; color: #000; padding: 1px 6px; border: 2px solid #000; }
.status.law { background: #1b5e20; } .status.passed { background: var(--c1); }
.status { font-size: 16px; }
.vote-search input, .address-row input { font-size: 20px; border: 2px solid var(--c1); color: #000; }
.bill summary { color: var(--c1); }

@media (max-width: 640px) {
	.zone-bar { padding: 10px 14px; }
	.zone-title { font-size: 20px; }
	.zone-nav a { font-size: 16px; padding: 6px 10px; }
	.member-banner h1 { font-size: 34px; }
	.member-tabs { gap: 4px; padding: 6px 0; }
	.member-tabs a { font-size: 16px; padding: 6px 9px; }
	.fact-box .num { font-size: 30px; }
}

/* Back-to-top button: bigger and in the page colors */
.tracker-page #back_top { width: 56px; height: 56px; right: 18px; bottom: 18px; opacity: 1; background: #0a3161; border: 3px solid #fff; box-shadow: 0 0 0 2px #0a3161; }
.tracker-page #back_top i { line-height: 50px; font-size: 36px; }
.tracker-page #back_top:hover { background: #b31942; box-shadow: 0 0 0 2px #b31942; }

/* State legislator bills: what finally happened */
.bill-latest { font-size: 18px !important; }
.status { font-size: 17px; padding: 2px 10px; }
.status.law { background: #1b5e20; color: #fff; }
.status.veto { background: #b31942; color: #fff; }
.status.stopped { background: #fff; color: #000; border: 2px solid #000; font-weight: 700; }
.theme-az .member-banner { box-shadow: inset 0 -8px 0 #fed700; }
.bill-head { font-size: 18px !important; }

/* Logo line: the way back to the start of My Representation, far right */
.zone-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.zone-start { padding: 9px 16px; border: 2px solid #0a3161; border-radius: 4px; background: #0a3161; color: #fff; font-size: 19px; font-weight: 700; text-decoration: none; }
.zone-start:hover, .zone-start:focus-visible { background: #b31942; border-color: #b31942; color: #fff; }
