:root {
    --bg: #f5efe3;
    --bg-strong: #efe4d1;
    --surface: rgba(255, 250, 242, 0.82);
    --surface-strong: #fff9f0;
    --line: rgba(13, 79, 77, 0.16);
    --text: #173230;
    --muted: #5f6967;
    --accent: #d08c36;
    --accent-deep: #b06d18;
    --secondary: #0d4f4d;
    --secondary-soft: #d8ecea;
    --danger: #a33d2d;
    --success: #21624e;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 50px rgba(23, 50, 48, 0.12);
    --shadow-soft: 0 14px 35px rgba(23, 50, 48, 0.08);
    --container: min(1180px, calc(100vw - 2rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(208, 140, 54, 0.16), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(13, 79, 77, 0.14), transparent 20%),
        linear-gradient(180deg, #f7f0e2 0%, #f2eadc 52%, #ede2cf 100%);
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section {
    padding: 2rem 0 4rem;
}

.surface {
    background: linear-gradient(180deg, rgba(255, 248, 238, 0.8), rgba(255, 255, 255, 0.34));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(247, 240, 226, 0.72);
    border-bottom: 1px solid rgba(13, 79, 77, 0.08);
}

.topbar,
.footer-grid,
.hero-grid,
.profile-hero-grid,
.section-heading-inline,
.panel-card__header--split,
.table-actions,
.hero-actions,
.profile-tags,
.card-tags,
.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar,
.footer-grid,
.section-heading-inline,
.panel-card__header--split,
.form-actions {
    justify-content: space-between;
}

.topbar {
    min-height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand strong,
h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
}

.brand strong {
    display: block;
    font-size: 1rem;
}

.brand small,
.table-subline,
.helper-text,
.mini-list__item span,
.admin-user-card span,
.meta-line,
.profile-copy p,
.content-card p,
.news-card p,
.info-card p,
.panel-card p,
.state-card p {
    color: var(--muted);
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--secondary), #2f7f77);
    color: #fef5e8;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.main-nav,
.admin-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a,
.admin-nav a,
.back-link,
.text-link,
.text-link-button {
    color: var(--secondary);
    font-weight: 600;
}

.main-nav a:hover,
.admin-nav a:hover,
.back-link:hover,
.text-link:hover,
.text-link-button:hover {
    color: var(--accent-deep);
}

.site-footer {
    padding: 2rem 0 2.6rem;
    border-top: 1px solid var(--line);
}

.hero,
.profile-hero {
    padding: 4rem 0;
}

.hero-grid,
.profile-hero-grid,
.admin-split-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid,
.profile-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
}

.hero-copy,
.hero-panel,
.search-panel,
.profile-copy,
.profile-photo,
.auth-card,
.state-card,
.panel-card,
.councilor-card,
.info-card,
.content-card,
.news-card,
.stat-card,
.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero-copy,
.hero-panel,
.search-panel,
.profile-copy,
.auth-card,
.state-card,
.panel-card,
.info-card,
.stat-card,
.metric-card {
    padding: 2rem;
}

.hero-copy h1,
.profile-copy h1,
.auth-card h1,
.state-card h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.96;
    margin: 0.3rem 0 1rem;
}

.section-heading h2,
.panel-card h2,
.info-card h2 {
    margin: 0.3rem 0 0.7rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--accent-deep);
    font-weight: 700;
}

.hero-panel,
.admin-stats-grid,
.card-grid,
.profile-content-grid,
.grid-cards,
.toggle-grid,
.form-grid,
.repeater-grid,
.admin-split-grid {
    display: grid;
}

.hero-panel,
.admin-stats-grid,
.toggle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.35rem;
}

.profile-content-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.35rem;
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.news-grid {
    gap: 1rem;
}

.section-heading {
    margin-bottom: 1.6rem;
}

.results-pill,
.status-pill,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.results-pill,
.badge-party {
    background: rgba(208, 140, 54, 0.15);
    color: var(--accent-deep);
}

.badge-role,
.status-pill--active {
    background: rgba(13, 79, 77, 0.12);
    color: var(--secondary);
}

.status-pill--inactive {
    background: rgba(163, 61, 45, 0.12);
    color: var(--danger);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), #1f6761);
    color: #fbf5eb;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.button:hover {
    transform: translateY(-1px);
}

.button-secondary {
    background: rgba(13, 79, 77, 0.08);
    color: var(--secondary);
    border: 1px solid rgba(13, 79, 77, 0.12);
}

.button-danger {
    background: var(--danger);
    color: #fff8f2;
    border: 1px solid rgba(163, 61, 45, 0.2);
}

.button-small {
    min-height: 2.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
}

.button-block {
    width: 100%;
}

.councilor-card {
    overflow: hidden;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.councilor-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 40%, rgba(208, 140, 54, 0.12));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.councilor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(208, 140, 54, 0.28);
}

.councilor-card:hover::after {
    opacity: 1;
}

.card-media {
    aspect-ratio: 4 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 79, 77, 0.12), rgba(208, 140, 54, 0.12));
}

.card-media img,
.profile-photo img,
.news-card > img,
.media-preview-card img,
.helper-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.councilor-card:hover .card-media img {
    transform: scale(1.08) rotate(-1.2deg);
}

.card-media img {
    transition: transform 0.5s ease;
}

.card-body {
    padding: 1.35rem;
}

.profile-photo {
    overflow: hidden;
    min-height: 420px;
}

.info-card,
.content-card,
.news-card {
    padding: 1.5rem;
}

.timeline-list {
    display: grid;
    gap: 0.95rem;
}

.timeline-item {
    padding-left: 1rem;
    border-left: 3px solid rgba(208, 140, 54, 0.44);
}

.tabs-shell {
    background: rgba(255, 249, 240, 0.74);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tab-button {
    border: 1px solid rgba(13, 79, 77, 0.12);
    background: rgba(13, 79, 77, 0.06);
    color: var(--secondary);
    padding: 0.8rem 1rem;
    border-radius: 999px;
    font-weight: 700;
}

.tab-button.is-active,
.tab-button:hover {
    background: var(--secondary);
    color: #f9f2e6;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.news-card {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
}

.news-card > img,
.helper-card img {
    border-radius: var(--radius-md);
    min-height: 180px;
}

.rich-copy p:last-child,
.info-card p:last-child,
.panel-card p:last-child,
.state-card p:last-child {
    margin-bottom: 0;
}

.flash-stack {
    margin-top: 1rem;
}

.flash {
    border-radius: 18px;
    padding: 1rem 1.15rem;
    border: 1px solid transparent;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.flash-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 220;
    width: min(420px, calc(100vw - 2rem));
    margin: 0;
    padding: 1.15rem 1.3rem;
    text-align: center;
    box-shadow: 0 22px 54px rgba(23, 50, 48, 0.22);
    transform: translate(-50%, -50%) scale(0.96);
    animation: flashModalIn 0.28s ease forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash-modal.is-hiding {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.98);
}

@keyframes flashModalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.flash-success {
    background: rgba(33, 98, 78, 0.14);
    border-color: rgba(33, 98, 78, 0.22);
    color: var(--success);
}

.flash-modal.flash-success {
    background: #21624e;
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.flash-warning {
    background: rgba(208, 140, 54, 0.12);
    border-color: rgba(208, 140, 54, 0.22);
    color: var(--accent-deep);
}

.flash-danger {
    background: rgba(163, 61, 45, 0.12);
    border-color: rgba(163, 61, 45, 0.22);
    color: var(--danger);
}

.auth-shell,
.narrow-state {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 2rem 0 4rem;
}

.auth-card,
.state-card {
    width: min(100%, 520px);
}

.admin-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 1.6rem;
    background: rgba(16, 60, 58, 0.95);
    color: #f8f0e5;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand--admin,
.admin-sidebar .admin-nav a,
.admin-user-card {
    color: #f8f0e5;
}

.admin-user-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    display: grid;
}

.admin-main {
    padding: 1.4rem 1.4rem 3rem;
}

.admin-section {
    margin-bottom: 1.4rem;
}

.admin-stats-grid {
    gap: 1rem;
}

.stat-card strong,
.metric-card strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
}

.panel-card {
    padding: 1.4rem;
}

.panel-card__header {
    margin-bottom: 1rem;
}

.panel-card__hint {
    margin: 0.35rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.panel-card--compact {
    padding: 1.15rem;
}

.large-form {
    padding-bottom: 6.75rem;
}

.mini-list,
.repeater-list,
.stack-form {
    display: grid;
    gap: 1rem;
}

.repeater-list--compact {
    gap: 0.75rem;
}

.mini-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(13, 79, 77, 0.08);
}

.mini-list__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.toggle-grid {
    gap: 0.85rem;
    margin: 1rem 0 1.2rem;
}

.toggle-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(13, 79, 77, 0.05);
}

.table-card {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(13, 79, 77, 0.08);
    vertical-align: top;
}

.admin-table--striped tbody tr:nth-child(odd) {
    background: linear-gradient(180deg, rgba(255, 249, 242, 0.92), rgba(255, 255, 255, 0.76));
}

.admin-table--striped tbody tr:nth-child(even) {
    background: linear-gradient(180deg, rgba(238, 247, 242, 0.96), rgba(255, 255, 255, 0.8));
}

.admin-table--striped tbody tr:hover {
    background: rgba(31, 94, 73, 0.08);
}

.text-link-button {
    border: 0;
    background: transparent;
    padding: 0;
}

.text-link-danger {
    color: var(--danger);
}

.form-grid {
    gap: 1rem;
}

.filters-grid,
.minutes-form-grid {
    display: grid;
    gap: 1rem;
}

.filters-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(105px, 0.7fr) minmax(118px, 0.72fr) minmax(118px, 0.72fr);
    align-items: end;
}

.minutes-form-grid {
    grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr) minmax(150px, 0.75fr) minmax(120px, 0.55fr);
}

.attendance-filters-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr);
}

.attendance-form-grid {
    grid-template-columns: minmax(160px, 0.55fr) minmax(260px, 1fr);
}

.user-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.minutes-filter-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

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

.three-stacks,
.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-block {
    display: grid;
    gap: 0.45rem;
}

.field-block--full {
    grid-column: 1 / -1;
}

.field-block span {
    font-weight: 700;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.inline-action-link {
    border: 0;
    background: transparent;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.field-block input,
.field-block select,
.field-block textarea,
.search-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(13, 79, 77, 0.14);
    padding: 0.88rem 1rem;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
}

.field-block textarea {
    min-height: 120px;
    resize: vertical;
}

.search-input {
    min-height: 3.2rem;
}

.media-preview-card,
.helper-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(13, 79, 77, 0.05);
    min-height: 180px;
}

.helper-card {
    align-content: start;
}

.helper-card--compact {
    min-height: 0;
    padding: 0.75rem 0.85rem;
}

.attendance-help {
    margin-top: -0.2rem;
}

.attendance-roster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
}

.attendance-roster__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(13, 79, 77, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.attendance-roster__item input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
    accent-color: var(--secondary);
}

.attendance-roster__item strong,
.attendance-roster__item small {
    display: block;
}

.attendance-roster__item small {
    color: var(--muted);
}

.session-type-manager[hidden] {
    display: none !important;
}

.session-type-manager {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.session-type-manager__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 50, 48, 0.54);
    backdrop-filter: blur(5px);
}

.session-type-manager__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 2rem));
    max-height: min(760px, calc(100vh - 2rem));
    overflow: auto;
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: #fffaf2;
    border: 1px solid rgba(31, 94, 73, 0.12);
    box-shadow: 0 24px 60px rgba(23, 50, 48, 0.22);
}

.session-type-manager__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.session-type-manager__header h2 {
    margin: 0;
}

.modal-close-button {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    border: 1px solid rgba(13, 79, 77, 0.12);
    background: rgba(13, 79, 77, 0.06);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
}

.session-type-manager__message {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: rgba(13, 79, 77, 0.08);
    color: var(--secondary);
    font-weight: 800;
}

.session-type-manager__message.is-error {
    background: rgba(163, 61, 45, 0.12);
    color: var(--danger);
}

.session-type-list {
    display: grid;
    gap: 0.75rem;
}

.session-type-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    align-items: end;
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(13, 79, 77, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.session-type-row small {
    color: var(--muted);
    font-weight: 800;
    padding-bottom: 0.85rem;
}

.session-type-row__actions,
.session-type-new {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.session-type-new {
    align-items: end;
    padding-top: 1rem;
    border-top: 1px solid rgba(13, 79, 77, 0.1);
}

.session-type-new .field-block {
    flex: 1 1 260px;
}

.helper-card--compact p {
    margin: 0;
}

.repeater-row {
    border: 1px solid rgba(13, 79, 77, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.repeater-row--compact {
    padding: 0.8rem;
}

.repeater-row--compact .field-block input,
.repeater-row--compact .field-block select {
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

.repeater-row--legislative .field-block {
    min-width: 0;
}

.repeater-row--legislative .field-block span,
.repeater-row--compact .field-block span {
    font-size: 0.81rem;
    line-height: 1.25;
}

.legislative-compact-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(105px, 0.72fr) minmax(105px, 0.72fr) minmax(140px, 0.9fr);
    gap: 0.75rem;
    align-items: end;
}

.repeater-row--legislative .field-block--full {
    grid-column: 1 / span 3;
}

.repeater-row--legislative .helper-card--compact {
    grid-column: 4;
}

.repeater-list > .repeater-row:nth-child(odd) {
    background: linear-gradient(180deg, rgba(255, 249, 242, 0.92), rgba(255, 255, 255, 0.76));
    border-color: rgba(208, 140, 54, 0.18);
}

.repeater-list > .repeater-row:nth-child(even) {
    background: linear-gradient(180deg, rgba(238, 247, 242, 0.96), rgba(255, 255, 255, 0.8));
    border-color: rgba(31, 94, 73, 0.16);
}

.repeater-list > .repeater-row:nth-child(odd) .helper-card {
    background: rgba(208, 140, 54, 0.09);
}

.repeater-list > .repeater-row:nth-child(even) .helper-card {
    background: rgba(31, 94, 73, 0.08);
}

.repeater-row:hover {
    box-shadow: 0 10px 22px rgba(23, 50, 48, 0.07);
}

.repeater-remove {
    justify-self: start;
}

.form-actions--floating {
    position: fixed;
    right: 1.4rem;
    bottom: 1rem;
    z-index: 90;
    padding: 0.8rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.94);
    border: 1px solid rgba(13, 79, 77, 0.12);
    box-shadow: 0 16px 34px rgba(23, 50, 48, 0.16);
    backdrop-filter: blur(14px);
}

.inline-delete-form {
    display: inline-flex;
    margin: 0;
}

.minutes-list-heading {
    margin: 0.8rem 0;
}

.minutes-filter-form {
    width: min(100%, 980px);
}

.search-panel.minutes-filter-form {
    width: min(100%, 980px);
}

.minutes-list {
    padding-bottom: 2rem;
}

.minutes-list-item__author {
    margin: 0;
    color: var(--secondary);
    font-weight: 700;
}

.minutes-list-item__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.minutes-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 94, 73, 0.08);
    border: 1px solid rgba(31, 94, 73, 0.12);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
}

.minutes-download-button {
    background: #174c3b;
    color: #ffffff;
    border: 1px solid rgba(23, 76, 59, 0.28);
    box-shadow: none;
}

.minutes-download-button:hover {
    background: #0f392c;
}

.minutes-list > article:nth-of-type(odd) {
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(255, 255, 255, 0.94));
    border-color: rgba(208, 140, 54, 0.14);
}

.minutes-list > article:nth-of-type(even) {
    background: linear-gradient(180deg, rgba(239, 248, 243, 0.98), rgba(255, 255, 255, 0.94));
    border-color: rgba(31, 94, 73, 0.14);
}

.empty-state {
    text-align: center;
    padding: 1rem 0 0;
}

/* Premium Admin Councilor Form */
.admin-premium-page {
    display: grid;
    gap: 1.2rem;
    padding-bottom: 7rem;
}

.admin-form-hero,
.premium-form-nav,
.premium-panel {
    border: 1px solid rgba(34, 105, 97, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(239, 248, 243, 0.98) 64%, rgba(247, 250, 252, 0.99));
    box-shadow: 0 22px 42px rgba(20, 56, 50, 0.1);
}

.admin-form-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.35rem;
}

.admin-form-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #226961, #ccb24e, #457b9d);
}

.admin-form-hero__copy,
.admin-form-hero__actions {
    position: relative;
    z-index: 1;
}

.admin-form-hero__copy {
    max-width: 780px;
}

.admin-form-hero__badge {
    min-height: 2rem;
    border: 1px solid rgba(34, 105, 97, 0.14);
    border-radius: 8px;
    background: rgba(34, 105, 97, 0.1);
    color: #226961;
    letter-spacing: 0;
}

.admin-form-hero h1 {
    margin: 0.55rem 0 0.55rem;
    color: #173230;
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: 0;
}

.admin-form-hero p {
    max-width: 70ch;
    margin: 0;
    color: #526763;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 700;
}

.admin-form-hero__actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 190px;
}

.premium-form-shell {
    display: grid;
    grid-template-columns: minmax(210px, 255px) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.premium-form-stack {
    display: grid;
    gap: 1.1rem;
    min-width: 0;
}

.premium-form-nav {
    position: sticky;
    top: 1rem;
    z-index: 3;
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
}

.premium-form-nav .eyebrow {
    color: #226961;
    letter-spacing: 0;
}

.premium-nav-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.68rem 0.72rem;
    border: 1px solid rgba(34, 105, 97, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: #173230;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.premium-nav-item span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(34, 105, 97, 0.09);
    color: #226961;
    font-size: 0.78rem;
}

.premium-nav-item:hover,
.premium-nav-item.is-active {
    transform: translateY(-1px);
    border-color: rgba(34, 105, 97, 0.34);
    background: #226961;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(20, 56, 50, 0.14);
}

.premium-nav-item:hover span,
.premium-nav-item.is-active span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.premium-panel {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.premium-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #226961, #ccb24e, #457b9d);
}

.premium-panel > * {
    position: relative;
    z-index: 1;
}

.premium-panel .panel-card__header {
    margin: 0;
    padding: 1.25rem 1.35rem 1rem 1.55rem;
    border-bottom: 1px solid rgba(34, 105, 97, 0.1);
    background: rgba(255, 255, 255, 0.56);
}

.premium-panel .panel-card__header--split {
    align-items: flex-start;
}

.premium-panel .panel-card__header .eyebrow,
.premium-panel .panel-card__hint {
    letter-spacing: 0;
}

.premium-panel .panel-card__header h2 {
    margin: 0.28rem 0 0;
    color: #173230;
    font-size: 1.55rem;
    line-height: 1.18;
}

.premium-panel .panel-card__hint {
    max-width: 58ch;
}

.premium-panel > .form-grid,
.premium-panel > .repeater-list {
    padding: 1.35rem 1.35rem 1.35rem 1.55rem;
}

.premium-form .field-block {
    gap: 0.5rem;
}

.premium-form .field-block span {
    color: #234b47;
    font-size: 0.86rem;
    letter-spacing: 0;
}

.premium-form .field-block input,
.premium-form .field-block select,
.premium-form .field-block textarea {
    min-height: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(34, 105, 97, 0.16);
    background: rgba(255, 255, 255, 0.94);
    color: #173230;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.premium-form .field-block input:focus,
.premium-form .field-block select:focus,
.premium-form .field-block textarea:focus {
    outline: 3px solid rgba(34, 105, 97, 0.15);
    border-color: rgba(34, 105, 97, 0.48);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(20, 56, 50, 0.08);
}

.premium-form .field-block input[type="file"] {
    display: block !important;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.52rem 0.62rem;
    appearance: auto;
    opacity: 1 !important;
    visibility: visible !important;
    color: #173230 !important;
    background: #ffffff !important;
    cursor: pointer;
}

.premium-form .field-block input[type="file"]::file-selector-button {
    min-height: 2rem;
    margin-right: 0.85rem;
    padding: 0.45rem 0.78rem;
    border: 1px solid rgba(34, 105, 97, 0.28);
    border-radius: 8px;
    background: #226961;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.premium-form .field-block input[type="file"]::-webkit-file-upload-button {
    min-height: 2rem;
    margin-right: 0.85rem;
    padding: 0.45rem 0.78rem;
    border: 1px solid rgba(34, 105, 97, 0.28);
    border-radius: 8px;
    background: #226961;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.premium-form .media-preview-card,
.premium-form .helper-card {
    border: 1px solid rgba(34, 105, 97, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.premium-form .media-preview-card img,
.premium-form .helper-card img {
    border-radius: 8px;
}

.premium-form .selected-file-note {
    margin: 0.45rem 0 0;
    color: #226961;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.premium-form .repeater-list {
    gap: 0.9rem;
}

.premium-form .repeater-row {
    border: 1px solid rgba(34, 105, 97, 0.13);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 249, 0.94));
    box-shadow: 0 12px 24px rgba(20, 56, 50, 0.06);
}

.premium-form .repeater-row:hover {
    border-color: rgba(34, 105, 97, 0.28);
    box-shadow: 0 16px 30px rgba(20, 56, 50, 0.09);
}

.premium-form .repeater-remove {
    margin-top: 0.65rem;
    color: #226961;
}

.premium-form-actions {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(34, 105, 97, 0.16);
    box-shadow: 0 18px 34px rgba(20, 56, 50, 0.16);
}

.premium-form .btn {
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .premium-form-shell {
        grid-template-columns: 1fr;
    }

    .premium-form-nav {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-form-hero {
        display: grid;
        padding: 1rem;
    }

    .admin-form-hero h1 {
        font-size: 2rem;
    }

    .admin-form-hero__actions,
    .admin-form-hero__actions .button {
        width: 100%;
    }

    .premium-form-nav {
        grid-template-columns: 1fr;
    }

    .premium-panel .panel-card__header,
    .premium-panel > .form-grid,
    .premium-panel > .repeater-list {
        padding-left: 1.1rem;
        padding-right: 1rem;
    }

    .premium-form-actions {
        left: 1rem;
        right: 1rem;
        justify-content: stretch;
    }

    .premium-form-actions .button {
        flex: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-delay {
    transition-delay: 0.12s;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1280px) {
    .legislative-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .repeater-row--legislative .field-block--full,
    .repeater-row--legislative .helper-card--compact {
        grid-column: auto;
    }

    .session-type-row {
        grid-template-columns: 1fr;
    }

    .session-type-row small {
        padding-bottom: 0;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .profile-hero-grid,
    .admin-layout,
    .admin-split-grid,
    .news-card {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .two-columns,
    .three-stacks,
    .three-columns,
    .four-columns,
    .legislative-compact-grid,
    .filters-grid,
    .minutes-form-grid,
    .attendance-filters-grid,
    .attendance-form-grid,
    .user-form-grid,
    .admin-stats-grid,
    .toggle-grid {
        grid-template-columns: 1fr;
    }

    .repeater-row--legislative .field-block--full {
        grid-column: 1 / -1;
    }

    .repeater-row--legislative .helper-card--compact {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .topbar,
    .footer-grid,
    .section-heading-inline,
    .panel-card__header--split,
    .hero-actions,
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        display: none;
    }

    .hero,
    .profile-hero,
    .section {
        padding: 2.5rem 0;
    }

    .panel-card,
    .hero-copy,
    .hero-panel,
    .search-panel,
    .profile-copy,
    .auth-card,
    .state-card,
    .info-card,
    .content-card,
    .news-card {
        padding: 1.25rem;
    }

    .large-form {
        padding-bottom: 7.5rem;
    }

    .form-actions--floating {
        left: 1rem;
        right: 1rem;
        bottom: 0.85rem;
        justify-content: flex-start;
        border-radius: 22px;
    }
}

/* Public Refresh - Mauriti */
:root {
    --bg: #f4f8f6;
    --bg-strong: #e7f0eb;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --line: rgba(28, 91, 67, 0.13);
    --text: #1d3028;
    --muted: #5f706a;
    --accent: #d4b661;
    --accent-deep: #8e6e27;
    --secondary: #1f5e49;
    --secondary-soft: #e5f0ea;
    --danger: #a33d2d;
    --success: #21624e;
    --shadow: 0 22px 44px rgba(29, 48, 40, 0.14);
    --shadow-soft: 0 12px 28px rgba(29, 48, 40, 0.09);
}

body {
    background: linear-gradient(180deg, #f7fbf9 0%, #eef5f1 58%, #e8f0eb 100%);
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.brand strong,
h1,
h2,
h3 {
    font-family: "Palatino Linotype", Georgia, serif;
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(31, 94, 73, 0.08);
    box-shadow: 0 10px 24px rgba(21, 44, 34, 0.06);
}

.site-footer {
    background: rgba(255, 255, 255, 0.72);
}

.brand-mark {
    background: linear-gradient(135deg, #1f5e49, #3d8a69);
    color: #f8fcfa;
}

.main-nav a {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a.is-active,
.main-nav a:hover {
    background: rgba(31, 94, 73, 0.1);
    color: var(--secondary);
}

.topbar {
    min-height: 62px;
}

.brand {
    gap: 0.7rem;
}

.brand-mark {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 8px;
}

.brand strong {
    font-size: 0.92rem;
}

.brand small {
    font-size: 0.76rem;
}

.main-nav {
    gap: 0.55rem;
}

.main-nav a {
    min-height: 2.2rem;
    padding: 0.42rem 0.75rem;
}

.main-nav__admin {
    width: 2.2rem;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
}

.brand small,
.table-subline,
.helper-text,
.mini-list__item span,
.admin-user-card span,
.meta-line,
.profile-copy p,
.content-card p,
.news-card p,
.info-card p,
.panel-card p,
.state-card p {
    color: var(--muted);
}

.helper-text {
    margin: 0;
    font-size: 0.92rem;
}

.hero-copy h1,
.profile-copy h1,
.auth-card h1,
.state-card h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.06;
}

.section-heading h2,
.panel-card h2,
.info-card h2 {
    font-size: clamp(1.3rem, 2.7vw, 1.8rem);
}

.eyebrow {
    color: var(--secondary);
}

.button {
    background: linear-gradient(135deg, var(--secondary), #2f7c60);
    color: #f8fcfa;
}

.button-secondary {
    background: rgba(31, 94, 73, 0.08);
    color: var(--secondary);
    border: 1px solid rgba(31, 94, 73, 0.15);
}

.button-light {
    background: var(--secondary-soft);
    color: var(--secondary);
    border: 1px solid rgba(31, 94, 73, 0.12);
    box-shadow: none;
}

.button-light:hover {
    background: #dbeae3;
}

.button-danger {
    background: var(--danger);
    color: #fff8f2;
    border: 1px solid rgba(163, 61, 45, 0.2);
}

.results-pill,
.status-pill,
.badge {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
}

.results-pill,
.badge-party {
    background: rgba(212, 182, 97, 0.16);
    color: var(--accent-deep);
}

.badge-role,
.status-pill--active {
    background: rgba(31, 94, 73, 0.1);
    color: var(--secondary);
}

.councilor-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 246, 0.98));
    border-radius: 24px;
}

.councilor-card::after {
    background: linear-gradient(180deg, transparent 46%, rgba(31, 94, 73, 0.06));
}

.councilor-card:hover {
    border-color: rgba(31, 94, 73, 0.18);
}

.card-media {
    background: linear-gradient(180deg, #edf5f1, #dcebe4);
}

.card-body {
    padding: 1.2rem;
}

.card-tags {
    flex-wrap: wrap;
}

.timeline-item {
    border-left-color: rgba(31, 94, 73, 0.24);
}

.tabs-shell {
    background: rgba(255, 255, 255, 0.9);
}

.tab-button {
    background: rgba(31, 94, 73, 0.06);
    border-color: rgba(31, 94, 73, 0.12);
}

.tab-button.is-active,
.tab-button:hover {
    background: var(--secondary);
    color: #f7fbf8;
}

.directory-section {
    padding: 2.35rem 0 1rem;
}

.directory-header {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.search-panel--centered {
    width: min(100%, 720px);
    padding: 1.4rem 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 247, 0.96));
}

.field-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--text);
}

.results-pill--directory {
    background: rgba(31, 94, 73, 0.08);
    color: var(--secondary);
}

.section--compact {
    padding-top: 1rem;
}

.directory-grid {
    align-items: stretch;
}

.card-media--portrait {
    aspect-ratio: 4 / 4.45;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-width: 0;
}

.card-head .badge-party {
    max-width: 48%;
    flex: 0 1 auto;
}

.card-kicker {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
}

.card-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.card-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 4.55em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-page {
    padding-top: 2.25rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.profile-sidebar,
.profile-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 247, 0.98));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.profile-sidebar {
    position: sticky;
    top: 104px;
    overflow: hidden;
}

.profile-sidebar__media {
    aspect-ratio: 4 / 4.6;
    background: linear-gradient(180deg, #eaf3ee, #dcebe4);
}

.profile-sidebar__body {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.profile-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
}

.profile-sidebar h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.profile-summary {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
}

.profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.profile-facts {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.profile-fact {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(31, 94, 73, 0.06);
}

.profile-fact dt {
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
}

.profile-fact dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
}

.profile-main {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.profile-panel {
    padding: 1.45rem 1.5rem;
}

.profile-panel h2 {
    margin: 0.35rem 0 0.85rem;
    font-size: 1.4rem;
}

.profile-panel--compact h2 {
    font-size: 1.2rem;
}

.section-heading--tight {
    margin-bottom: 1rem;
}

.lead-text {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.72;
    font-weight: 600;
}

.muted-copy {
    margin: 0;
    color: var(--muted);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.rich-copy,
.rich-copy p,
.content-card,
.content-card p,
.news-card,
.news-card p {
    overflow-wrap: anywhere;
}

.rich-copy p,
.content-card p,
.news-card p,
.info-card p {
    font-size: 0.96rem;
    line-height: 1.72;
}

.timeline-item span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.tabs-nav--profile {
    margin-bottom: 1.15rem;
}

.profile-panel--tabs {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 246, 0.98));
}

.content-card,
.news-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 94, 73, 0.08);
    border-radius: 22px;
    box-shadow: none;
}

.content-card h3,
.news-card h3 {
    margin: 0.35rem 0 0.7rem;
    font-size: 1.12rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.news-card {
    align-items: start;
    grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
}

.news-card > img {
    min-height: 170px;
}

.empty-state p {
    color: var(--muted);
}

@media (max-width: 980px) {
    .profile-layout,
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .directory-section {
        padding-top: 1.5rem;
    }

    .search-panel--centered {
        padding: 1.1rem;
    }

    .card-title {
        font-size: 1.18rem;
    }

    .profile-sidebar__body,
    .profile-panel,
    .content-card,
    .news-card {
        padding: 1.2rem;
    }

    .profile-sidebar h1 {
        font-size: 2rem;
    }

    .news-card {
        grid-template-columns: 1fr;
    }
}

/* Councilor Profile Refresh */
.councilor-profile {
    padding-top: 2rem;
}

.councilor-profile__stack {
    display: grid;
    gap: 1.35rem;
}

.profile-overview,
.profile-section-card,
.profile-mini-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 247, 0.98));
    border: 1px solid rgba(31, 94, 73, 0.12);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

.profile-overview {
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: 1.35rem;
    padding: 1.35rem;
    align-items: stretch;
}

.profile-overview__media {
    position: relative;
    min-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #eaf3ee, #d9e9e1);
}

.profile-overview__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-party-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(29, 48, 40, 0.14);
}

.profile-overview__content {
    display: grid;
    align-content: start;
    gap: 0.95rem;
    min-width: 0;
    padding: 0.2rem 0;
}

.profile-overview__name {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.profile-overview__role {
    margin: -0.1rem 0 0;
    color: var(--secondary);
    font-size: 1.05rem;
    font-weight: 700;
}

.profile-overview__summary {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-overview__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-mini-card,
.profile-section-card {
    padding: 1.35rem 1.4rem;
}

.profile-mini-card h2,
.profile-section-card h2 {
    margin: 0.35rem 0 0.85rem;
    font-size: 1.22rem;
    line-height: 1.3;
}

.rich-copy--compact p,
.profile-mini-card p,
.profile-section-card p,
.profile-info-list dd,
.document-note,
.tab-intro,
.news-card__summary,
.content-card__meta {
    font-size: 0.95rem;
}

.rich-copy--compact p {
    line-height: 1.68;
}

.mandate-chip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
}

.mandate-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(31, 94, 73, 0.08);
    color: var(--secondary);
    box-shadow: inset 0 0 0 1px rgba(31, 94, 73, 0.14);
    font-size: 0.88rem;
    font-weight: 700;
}

.mandate-chip::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #226961;
    box-shadow: 0 0 0 4px rgba(34, 105, 97, 0.12);
}

.mandate-chip.mandate-chip--other {
    background: #fff8cf !important;
    color: #6e5f18 !important;
    box-shadow: inset 0 0 0 1px #f2e8a6 !important;
}

.mandate-chip.mandate-chip--other::before {
    background: #f5df7a !important;
    box-shadow: 0 0 0 4px rgba(245, 223, 122, 0.28) !important;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
    gap: 1.35rem;
}

.profile-section-card--full {
    width: 100%;
}

.profile-info-list {
    display: grid;
    gap: 0.95rem;
    margin: 0;
}

.profile-info-list div {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(31, 94, 73, 0.05);
}

.profile-info-list dt {
    margin: 0 0 0.2rem;
    color: var(--secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-info-list dd {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.profile-tabs-card {
    padding-bottom: 1.45rem;
}

.tab-intro {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.content-card--document {
    display: grid;
    align-content: start;
    gap: 0.8rem;
}

.content-card__meta {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.document-note {
    color: var(--muted);
    font-weight: 600;
}

.legislative-summary {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.legislative-chart-card {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(240, 248, 243, 0.96));
    border: 1px solid rgba(31, 94, 73, 0.1);
}

.legislative-chart {
    position: relative;
    width: min(220px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.legislative-chart-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 10px 18px rgba(23, 50, 48, 0.08));
}

.legislative-chart-track,
.legislative-chart-segment {
    fill: none;
    stroke-width: 28;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.legislative-chart-track {
    stroke: rgba(31, 94, 73, 0.1);
}

.legislative-chart-segment {
    cursor: pointer;
    transition: stroke-width 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.legislative-chart-segment:hover,
.legislative-chart-segment:focus {
    stroke-width: 31;
    filter: brightness(1.06);
    opacity: 0.98;
    outline: none;
}

.legislative-chart-center {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    gap: 0.1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(31, 94, 73, 0.08);
    text-align: center;
}

.legislative-chart-center strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--secondary);
}

.legislative-chart-center span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.legislative-chart-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 190px;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
    background: rgba(23, 50, 48, 0.94);
    color: #fffdf8;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 14px 26px rgba(23, 50, 48, 0.18);
    transform: translate(-999px, -999px);
    z-index: 3;
}

.legislative-chart-total {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.legislative-breakdown {
    display: grid;
    gap: 0.7rem;
}

.legislative-breakdown__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(31, 94, 73, 0.09);
}

.legislative-breakdown__dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--legend-color, var(--secondary));
}

.legislative-breakdown__label {
    font-weight: 700;
    color: var(--text);
}

.legislative-breakdown__value {
    color: var(--secondary);
    font-size: 1.02rem;
}

.legislative-filter {
    margin: 0 0 0.95rem;
}

.legislative-search-field {
    min-width: 0;
    margin: 0;
    padding: 0.52rem 0.7rem 0.72rem;
    border: 1px solid rgba(31, 94, 73, 0.2);
    border-radius: 8px;
    background: rgba(247, 248, 249, 0.92);
}

.legislative-search-field legend {
    padding: 0 0.42rem;
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 800;
}

.legislative-search-control {
    position: relative;
}

.legislative-search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 1;
    color: rgba(31, 94, 73, 0.72);
    font-size: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.legislative-search-input {
    min-height: 3.25rem;
    padding-left: 2.75rem;
    border-radius: 8px;
    border-color: rgba(31, 94, 73, 0.12);
    background: #f1f3f5;
}

.legislative-search-input::placeholder {
    color: rgba(48, 63, 61, 0.7);
}

.legislative-list {
    display: grid;
    gap: 0.8rem;
}

.legislative-list-item {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(31, 94, 73, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.legislative-list-item__header,
.legislative-list-item__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legislative-list-item__header {
    justify-content: space-between;
}

.legislative-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    border: 1px solid var(--badge-color, var(--secondary));
    color: var(--badge-color, var(--secondary));
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legislative-list-item__description {
    margin: 0;
    color: var(--text);
    line-height: 1.72;
}

.legislative-empty-state {
    margin: 0;
    color: var(--muted);
}

.attendance-summary {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.attendance-chart-card,
.attendance-total-card,
.attendance-breakdown__item {
    border-radius: 8px;
    border: 1px solid rgba(31, 94, 73, 0.1);
    background: rgba(255, 255, 255, 0.88);
}

.attendance-chart-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.attendance-chart-frame {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
}

.attendance-chart-scale {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 160px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    text-align: right;
}

.attendance-chart-scale span:nth-child(2) {
    align-self: center;
}

.attendance-chart-scale span:nth-child(3) {
    align-self: end;
}

.attendance-bar-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: end;
    min-height: 230px;
}

.attendance-bar-chart__item {
    display: grid;
    grid-template-rows: 160px auto auto;
    gap: 0.25rem;
    min-width: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.attendance-bar-chart__track {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 160px;
    border-radius: 8px;
    background:
        linear-gradient(to top, rgba(13, 79, 77, 0.08) 0 1px, transparent 1px 25%),
        rgba(13, 79, 77, 0.06);
    overflow: hidden;
}

.attendance-bar-chart__bar {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #1f7b62, #d0a143);
}

.attendance-bar-chart__item span,
.attendance-bar-chart__item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-chart-total {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.attendance-type-chart {
    display: grid;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(13, 79, 77, 0.1);
}

.attendance-type-chart__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.attendance-type-chart__heading strong {
    color: var(--text);
}

.attendance-type-chart__heading span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.attendance-type-chart__body {
    display: grid;
    grid-template-columns: minmax(132px, 170px) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.attendance-pie-chart {
    position: relative;
    width: min(170px, 100%);
    aspect-ratio: 1;
}

.attendance-pie-chart__svg {
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 12px 26px rgba(23, 50, 48, 0.1));
}

.attendance-pie-chart__slice {
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
    transform-origin: center;
}

.attendance-pie-chart__slice:hover,
.attendance-pie-chart__slice:focus {
    filter: brightness(1.06);
    opacity: 0.96;
    outline: none;
    transform: scale(1.025);
}

.attendance-pie-chart__empty {
    fill: rgba(13, 79, 77, 0.12);
    stroke: rgba(31, 94, 73, 0.12);
}

.attendance-type-legend {
    display: grid;
    gap: 0.55rem;
}

.attendance-type-legend__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem 0.6rem;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(31, 94, 73, 0.08);
}

.attendance-type-legend__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--legend-color, var(--secondary));
}

.attendance-type-legend__item span:not(.attendance-type-legend__dot) {
    min-width: 0;
    color: var(--text);
    font-weight: 800;
}

.attendance-type-legend__item strong {
    color: var(--secondary);
}

.attendance-type-legend__item small {
    grid-column: 2 / -1;
    color: var(--muted);
    font-weight: 700;
}

.attendance-breakdown {
    display: grid;
    gap: 0.65rem;
}

.attendance-total-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(31, 94, 73, 0.12), rgba(208, 161, 67, 0.14));
}

.attendance-total-card span,
.attendance-breakdown__item span {
    color: var(--muted);
    font-weight: 800;
}

.attendance-total-card strong {
    color: var(--secondary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    line-height: 1;
}

.attendance-total-card small,
.attendance-breakdown__item small {
    color: var(--muted);
}

.attendance-breakdown__item {
    display: grid;
    grid-template-columns: minmax(78px, 0.8fr) auto minmax(130px, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
}

.attendance-breakdown__item strong {
    color: var(--secondary);
    font-size: 1.05rem;
}

.profile-tabs-card .compact-grid > article:nth-child(odd),
.profile-tabs-card .news-grid > article:nth-child(odd),
.profile-tabs-card .legislative-list > article:nth-child(odd) {
    background: linear-gradient(180deg, rgba(255, 249, 242, 0.94), rgba(255, 255, 255, 0.92));
    border-color: rgba(208, 140, 54, 0.15);
}

.profile-tabs-card .compact-grid > article:nth-child(even),
.profile-tabs-card .news-grid > article:nth-child(even),
.profile-tabs-card .legislative-list > article:nth-child(even) {
    background: linear-gradient(180deg, rgba(239, 247, 242, 0.96), rgba(255, 255, 255, 0.92));
    border-color: rgba(31, 94, 73, 0.14);
}

.news-card--profile {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
}

.news-card--profile h3,
.content-card h3 {
    font-size: 1.08rem;
}

.news-card--profile .rich-copy p,
.content-card p,
.profile-section-card .rich-copy p {
    font-size: 0.96rem;
    line-height: 1.72;
}

.news-card__summary {
    margin: 0 0 0.7rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 600;
}

@media (max-width: 980px) {
    .profile-overview,
    .profile-detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-overview__media {
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    .profile-overview,
    .profile-mini-card,
    .profile-section-card {
        padding: 1.1rem;
    }

    .profile-overview__cards,
    .news-card--profile {
        grid-template-columns: 1fr;
    }

    .legislative-summary,
    .attendance-summary {
        grid-template-columns: 1fr;
    }

    .attendance-bar-chart {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .attendance-bar-chart__item {
        min-width: 42px;
    }

    .attendance-type-chart__body {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .attendance-type-legend {
        width: 100%;
    }

    .attendance-breakdown__item {
        grid-template-columns: 1fr auto;
    }

    .attendance-breakdown__item small {
        grid-column: 1 / -1;
    }

    .profile-overview__media {
        min-height: 300px;
    }

    .profile-overview__name {
        font-size: 1.8rem;
    }

    .profile-overview__role {
        font-size: 0.98rem;
    }
}
/* Profile Detail Refinements */
.directory-grid {
    grid-template-columns: repeat(auto-fit, 250px);
    justify-content: center;
}

.councilor-card--directory {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
}

.card-body--directory {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    height: 100%;
    grid-template-rows: auto auto minmax(4.86em, 1fr) auto;
}

.card-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: stretch;
}

.card-meta-box {
    min-width: 0;
    min-height: 4.5rem;
    padding: 0.75rem 0.8rem;
    border-radius: 16px;
    background: rgba(31, 94, 73, 0.06);
    border: 1px solid rgba(31, 94, 73, 0.08);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.28rem;
}

.card-meta-label {
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
}

.card-meta-value {
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--text);
    overflow-wrap: anywhere;
    display: flex;
    align-items: flex-start;
}

.card-name-band {
    min-height: 4.9rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(224, 239, 231, 0.98), rgba(214, 233, 221, 0.98));
    border: 1px solid rgba(31, 94, 73, 0.1);
    display: flex;
    align-items: center;
}

.card-name-band .card-title {
    font-size: 1.2rem;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.36em;
}

.card-summary--directory {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    line-height: 1.62;
    color: #6b7a74;
    min-height: 4.86em;
}

.card-body--directory > .button {
    width: 100%;
    margin-top: auto;
}

.profile-overview__topbar {
    display: flex;
    justify-content: flex-end;
}

.profile-back-button {
    min-height: 2.15rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-mini-card,
.profile-section-card {
    display: grid;
    align-content: start;
    gap: 0.85rem;
}

.profile-info-list {
    gap: 0.8rem;
}

.profile-contact-link {
    color: var(--secondary);
    text-decoration: underline;
    text-decoration-color: rgba(31, 94, 73, 0.28);
    text-underline-offset: 0.14em;
}

.profile-contact-link:hover {
    color: var(--accent-deep);
}

@media (max-width: 720px) {
    .directory-grid {
        grid-template-columns: minmax(0, 320px);
    }

    .card-meta-grid {
        grid-template-columns: 1fr;
    }

    .profile-overview__topbar {
        justify-content: flex-start;
    }
}
/* Admin Panel Refinements */
.admin-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    flex-wrap: nowrap;
}

.admin-nav a {
    display: block;
    width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.admin-sidebar__footer {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-users-link,
.admin-public-link,
.admin-logout-button {
    display: flex;
    width: 100%;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
}

.admin-users-link {
    background: rgba(216, 236, 234, 0.96);
    color: #123f3d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.admin-users-link:hover,
.admin-users-link.is-active {
    background: #ffffff;
    color: var(--secondary);
}

.admin-public-link {
    background: rgba(240, 207, 135, 0.96);
    color: #173230;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.admin-public-link:hover {
    background: #f5dda3;
}

.admin-logout-button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #b85f5b;
    color: #fffdf8;
}

.admin-logout-button:hover {
    background: #a9524e;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.85rem;
}

.permission-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: flex-start;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(13, 79, 77, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.permission-item input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    accent-color: var(--secondary);
}

.permission-item strong,
.permission-item small {
    display: block;
}

.permission-item small {
    margin-top: 0.25rem;
    color: var(--muted);
    line-height: 1.45;
}

.permission-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: rgba(13, 79, 77, 0.1);
    color: var(--secondary);
    font-size: 0.86rem;
    font-weight: 800;
}

.user-delete-panel {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.media-preview-card,
.helper-card {
    align-content: start;
    gap: 0.7rem;
}

.media-preview-card {
    width: min(100%, 220px);
    min-height: auto;
    justify-self: start;
}

.media-preview-card img {
    height: 140px;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
}

.helper-card {
    min-height: 140px;
}

.helper-card img {
    max-width: 220px;
    min-height: 140px;
}

.helper-card p {
    margin: 0;
}

/* Councilor Statement Cards */
.directory-grid--statement {
    grid-template-columns: repeat(auto-fit, minmax(255px, 292px));
    justify-content: center;
    align-items: stretch;
    gap: 1.6rem;
}

.councilor-card--statement {
    min-height: 414px;
    padding: 1.05rem 1rem 1rem;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
    gap: 0.62rem;
    overflow: visible;
    color: #073f3d;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 248, 0.99)),
        linear-gradient(90deg, transparent 0 22px, rgba(7, 79, 76, 0.07) 22px 24px, transparent 24px calc(100% - 24px), rgba(7, 79, 76, 0.07) calc(100% - 24px) calc(100% - 22px), transparent calc(100% - 22px)),
        radial-gradient(circle at 18% 12%, rgba(6, 88, 83, 0.08), transparent 24%);
    border: 1.5px solid #074f4c;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(7, 63, 61, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.councilor-card--statement::after {
    content: none;
}

.councilor-card--statement:hover,
.councilor-card--statement:focus-visible {
    transform: translateY(-9px) scale(1.015);
    border-color: #0b6a63;
    box-shadow: 0 22px 42px rgba(7, 63, 61, 0.22);
    outline: none;
}

.statement-card__name,
.statement-card__description {
    min-width: 0;
    display: grid;
    padding: 0.74rem 0.88rem;
    background: #ffffff;
    border: 2px solid #074f4c;
    border-radius: 8px;
}

.statement-card__party {
    position: absolute;
    top: 0.9rem;
    right: 0.85rem;
    z-index: 2;
    max-width: 42%;
    min-height: 2.5rem;
    padding: 0.4rem 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #226961;
    color: #ffffff;
    border: 2px solid #226961;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(7, 63, 61, 0.22);
}

.statement-card__name {
    width: min(100%, 218px);
    min-height: 3.55rem;
    margin: 0 auto;
    align-content: center;
    padding: 0.58rem 0.72rem;
    background: #226961;
    border-color: #226961;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(7, 63, 61, 0.18);
}

.statement-card__description {
    position: relative;
    min-height: 8rem;
    align-content: start;
    background: #ffffff;
    padding-top: 1.08rem;
}

.statement-card__description::before {
    content: "";
    position: absolute;
    top: 0.52rem;
    left: 0.82rem;
    width: 0.34rem;
    height: 0.34rem;
    background: #3e945f;
    border-radius: 50%;
    box-shadow: 0.78rem 0 0 #3e945f, 1.56rem 0 0 #3e945f;
}

.statement-card__party strong,
.statement-card__name strong {
    display: -webkit-box;
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.12;
    -webkit-box-orient: vertical;
}

.statement-card__party strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.statement-card__name strong {
    color: #ffffff;
    font-size: 1.08rem;
    -webkit-line-clamp: 2;
}

.statement-card__photo {
    width: 142px;
    height: 142px;
    margin: 0.35rem auto 0.2rem;
    overflow: hidden;
    border: 3px solid #074f4c;
    border-radius: 50%;
    background: #e8f2ed;
    outline: 1px solid rgba(7, 79, 76, 0.28);
    outline-offset: 4px;
    box-shadow: 0 10px 20px rgba(7, 63, 61, 0.16);
}

.statement-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.councilor-card--statement:hover .statement-card__photo img,
.councilor-card--statement:focus-visible .statement-card__photo img {
    transform: scale(1.06);
}

.statement-card__role {
    min-width: 0;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.statement-card__role strong {
    max-width: 100%;
    padding: 0;
    color: #074f4c;
    background: transparent;
    border-radius: 0;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.statement-card__description p {
    margin: 0;
    color: #45645f;
    font-size: 0.9rem;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

@media (max-width: 720px) {
    .directory-grid--statement {
        grid-template-columns: minmax(0, 320px);
        gap: 1.25rem;
    }

    .councilor-card--statement {
        min-height: 430px;
    }
}

/* Flowbite + daisyUI + Alpine Councilor Cards */
.directory-section--flow {
    padding: 2rem 0 1rem;
}

.directory-header--flow {
    position: relative;
}

.search-panel--flow {
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.councilor-search-field {
    min-width: 0;
    margin: 0;
    padding: 0.52rem 0.7rem 0.72rem;
    border: 1px solid rgba(34, 105, 97, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.councilor-search-field legend {
    padding: 0 0.42rem;
    color: #226961;
    font-size: 0.82rem;
    font-weight: 800;
}

.councilor-search-control {
    position: relative;
}

.councilor-search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 1;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.councilor-search-icon::before {
    content: "";
    position: absolute;
    top: 0.08rem;
    left: 0.08rem;
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid rgba(34, 105, 97, 0.72);
    border-radius: 50%;
}

.councilor-search-icon::after {
    content: "";
    position: absolute;
    right: 0.06rem;
    bottom: 0.12rem;
    width: 0.42rem;
    height: 2px;
    border-radius: 2px;
    background: rgba(34, 105, 97, 0.72);
    transform: rotate(45deg);
    transform-origin: center;
}

.councilor-search-input {
    padding-left: 2.75rem;
    border-radius: 8px;
}

.results-pill--flow {
    border-radius: 8px;
    background: rgba(34, 105, 97, 0.1);
    color: #226961;
}

.directory-grid--flow {
    grid-template-columns: repeat(auto-fit, minmax(260px, 294px));
    justify-content: center;
    align-items: stretch;
    gap: 1.35rem;
}

.councilor-card--flow {
    position: relative;
    min-height: 398px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0;
    overflow: hidden;
    isolation: isolate;
    padding: 1rem;
    color: #173230;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 248, 0.98)),
        radial-gradient(circle at 18% 8%, rgba(204, 178, 78, 0.14), transparent 25%),
        radial-gradient(circle at 88% 18%, rgba(69, 123, 157, 0.12), transparent 27%);
    border: 1px solid rgba(34, 105, 97, 0.18);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(20, 56, 50, 0.11);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.councilor-card--flow::after {
    content: none;
}

.councilor-card--flow:hover,
.councilor-card--flow:focus-visible,
.councilor-card--flow.is-selected {
    transform: translateY(-7px);
    border-color: rgba(34, 105, 97, 0.38);
    box-shadow: 0 24px 48px rgba(20, 56, 50, 0.18);
    outline: none;
}

.flow-card__accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #226961, #ccb24e, #457b9d);
    z-index: 1;
}

.flow-card__topline,
.flow-card__portrait-wrap,
.flow-card__body {
    position: relative;
    z-index: 2;
}

.flow-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.flow-card__party {
    max-width: 56%;
    min-height: 2rem;
    padding: 0.38rem 0.68rem;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: #226961;
    border: 1px solid #226961;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-card__portrait-wrap {
    display: grid;
    place-items: center;
    padding: 1.05rem 0 0.85rem;
}

.flow-card__avatar > div {
    width: 142px;
    height: 142px;
    overflow: hidden;
    border: 4px solid rgba(34, 105, 97, 0.9);
    border-radius: 50%;
    background: #e9f1ed;
    outline: 1px solid rgba(204, 178, 78, 0.7);
    outline-offset: 5px;
    box-shadow: 0 16px 28px rgba(20, 56, 50, 0.16);
}

.flow-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.councilor-card--flow:hover .flow-card__avatar img,
.councilor-card--flow.is-selected .flow-card__avatar img {
    transform: scale(1.06);
}

.flow-card__body {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 0;
}

.flow-card__name {
    margin: 0;
    color: #173230;
    font-size: 1.28rem;
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flow-card__role {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0.35rem 0.58rem;
    color: #226961;
    background: rgba(34, 105, 97, 0.08);
    border-left: 3px solid #226961;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.flow-card__description {
    margin: 0;
    color: #566a65;
    font-size: 0.9rem;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.councilor-card--flow .tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    max-width: 220px;
    padding: 0.55rem 0.7rem;
    color: #ffffff;
    background: rgba(23, 50, 48, 0.94);
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 14px 28px rgba(20, 56, 50, 0.18);
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
    z-index: 30;
}

.councilor-card--flow .tooltip:not(.invisible) {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 720px) {
    .directory-grid--flow {
        grid-template-columns: minmax(0, 320px);
        gap: 1.1rem;
    }

    .councilor-card--flow {
        min-height: 390px;
    }
}

/* Enhanced Councilor Profile */
.councilor-profile--enhanced {
    padding-top: 2rem;
}

.profile-showcase,
.profile-feature-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 251, 248, 0.98));
    border: 1px solid rgba(34, 105, 97, 0.16);
    border-radius: 8px;
    box-shadow: 0 24px 46px rgba(20, 56, 50, 0.12);
}

.profile-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 245px) minmax(0, 1fr);
    gap: 0.9rem;
    min-height: 0;
    padding: 0.65rem;
    overflow: hidden;
}

.profile-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(34, 105, 97, 0.08), transparent 26%),
        linear-gradient(180deg, transparent 0 72%, rgba(34, 105, 97, 0.06));
}

.profile-showcase__media,
.profile-showcase__content {
    position: relative;
    z-index: 1;
}

.profile-showcase__media {
    position: relative;
    min-height: 0;
    height: auto;
    max-height: 335px;
    aspect-ratio: 4 / 5;
    align-self: center;
    border-radius: 8px;
    overflow: hidden;
    background: #e8f1ec;
    box-shadow: inset 0 0 0 1px rgba(34, 105, 97, 0.14);
}

.profile-showcase__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(8, 43, 40, 0.62));
    pointer-events: none;
}

.profile-showcase__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-showcase__party {
    left: 1rem;
    right: auto;
    bottom: 1rem;
    top: auto;
    z-index: 2;
    gap: 0.45rem;
    min-height: 2.35rem;
    background: rgba(34, 105, 97, 0.94);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.profile-showcase__content {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 0.58rem;
    padding: 0.25rem 0.45rem 0.25rem 0;
}

.profile-showcase__topbar {
    justify-content: flex-end;
}

.profile-back-button {
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.72rem;
}

.profile-showcase__eyebrow,
.profile-card-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.profile-showcase__eyebrow {
    color: #7b6f2c;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-showcase__eyebrow i,
.profile-card-heading i {
    color: #226961;
    font-size: 1.05rem;
}

.profile-showcase__name {
    max-width: 16ch;
    font-size: clamp(1.75rem, 3.5vw, 2.7rem);
    line-height: 1;
    letter-spacing: 0;
}

.profile-showcase__role {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.42rem 0.68rem;
    color: #226961;
    background: rgba(34, 105, 97, 0.08);
    border-left: 4px solid #226961;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.profile-showcase__summary {
    max-width: 68ch;
    color: #4b615d;
    font-size: 0.92rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
}

.profile-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-contact-action {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.7rem;
    padding: 0.62rem 0.82rem;
    color: #17453f;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(34, 105, 97, 0.16);
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(20, 56, 50, 0.06);
}

.profile-contact-action span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-contact-action--muted {
    color: #65746f;
    background: rgba(255, 255, 255, 0.52);
}

.profile-showcase__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding-top: 0.15rem;
}

.profile-showcase__metrics div {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon label"
        "icon value";
    gap: 0.08rem 0.6rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    background: rgba(34, 105, 97, 0.07);
    border: 1px solid rgba(34, 105, 97, 0.12);
    border-radius: 8px;
}

.profile-showcase__metrics i {
    grid-area: icon;
    color: #226961;
    font-size: 1.03rem;
}

.profile-showcase__metrics span {
    grid-area: label;
    color: #6b7b76;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-showcase__metrics strong {
    grid-area: value;
    color: #173230;
    line-height: 1.25;
    overflow-wrap: anywhere;
    font-size: 0.94rem;
}

.profile-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.profile-feature-card {
    display: grid;
    align-content: start;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1.25rem;
}

.profile-card-heading {
    color: #226961;
}

.profile-card-heading .eyebrow {
    color: #226961;
}

.councilor-profile--enhanced .profile-story-card,
.councilor-profile--enhanced .profile-facts-card,
.councilor-profile--enhanced .profile-achievement-card {
    border-color: rgba(34, 105, 97, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(20, 56, 50, 0.09);
}

.profile-story-card {
    position: relative;
    overflow: hidden;
}

.profile-story-card::before,
.profile-achievement-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #226961;
}

.profile-story-card > *,
.profile-achievement-card > * {
    position: relative;
}

.profile-info-list--icon {
    gap: 0.75rem;
}

.profile-info-list--icon div {
    border-radius: 8px;
    background: rgba(34, 105, 97, 0.06);
    border: 1px solid rgba(34, 105, 97, 0.1);
}

.profile-info-list--icon dt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    letter-spacing: 0;
}

.profile-info-list--icon dt i {
    color: #226961;
}

.profile-achievement-card {
    position: relative;
    overflow: hidden;
}

/* Flowbite + daisyUI + Alpine Councilor Profile */
.profile-flow .profile-showcase--flow,
.profile-flow .profile-flow-card,
.profile-flow .profile-tabs-card--flow {
    border: 1px solid rgba(34, 105, 97, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 248, 0.98)),
        radial-gradient(circle at 8% 12%, rgba(204, 178, 78, 0.12), transparent 24%),
        radial-gradient(circle at 92% 10%, rgba(69, 123, 157, 0.11), transparent 28%);
    box-shadow: 0 22px 42px rgba(20, 56, 50, 0.11);
}

.profile-flow .profile-showcase--flow {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-flow .profile-showcase--flow.is-floating {
    transform: translateY(-4px);
    border-color: rgba(34, 105, 97, 0.3);
    box-shadow: 0 28px 52px rgba(20, 56, 50, 0.16);
}

.profile-flow .profile-showcase__media--flow {
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(34, 105, 97, 0.12), rgba(255, 255, 255, 0.78)),
        radial-gradient(circle at center, rgba(204, 178, 78, 0.18), transparent 55%);
}

.profile-flow .profile-showcase__media--flow::after {
    display: none;
}

.profile-flow__avatar {
    width: min(100%, 214px);
}

.profile-flow__avatar > div {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 4px solid rgba(34, 105, 97, 0.9);
    border-radius: 8px;
    outline: 1px solid rgba(204, 178, 78, 0.7);
    outline-offset: 5px;
    background: #e9f1ed;
    box-shadow: 0 18px 30px rgba(20, 56, 50, 0.16);
}

.profile-flow .profile-flow__avatar img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-flow__body {
    min-width: 0;
}

.profile-flow__eyebrow {
    width: fit-content;
    min-height: 2rem;
    padding: 0.4rem 0.68rem;
    border-radius: 8px;
    color: #226961;
    background: rgba(34, 105, 97, 0.1);
    border: 1px solid rgba(34, 105, 97, 0.16);
}

.profile-flow__role {
    min-height: 2.15rem;
    border: 0;
    background: rgba(34, 105, 97, 0.08);
}

.profile-flow__stats {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 0 0 1px rgba(34, 105, 97, 0.1);
}

.profile-flow__stat {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon label"
        "icon value";
    align-items: center;
    gap: 0.08rem 0.62rem;
    padding: 0.74rem 0.85rem;
}

.profile-flow__stat i {
    grid-area: icon;
    color: #226961;
    font-size: 1.08rem;
}

.profile-flow__stat .stat-title {
    grid-area: label;
    color: #6a7b76;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-flow__stat .stat-value {
    grid-area: value;
    color: #173230;
    font-size: 1rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.profile-flow .profile-flow-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-flow .profile-flow-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 105, 97, 0.28);
    box-shadow: 0 24px 44px rgba(20, 56, 50, 0.14);
}

.profile-flow .profile-card-heading {
    width: fit-content;
    padding: 0.38rem 0.62rem;
    border-radius: 8px;
    background: rgba(34, 105, 97, 0.08);
}

.profile-flow .profile-info-list--icon div {
    background: rgba(255, 255, 255, 0.78);
}

.profile-flow .profile-tabs-card--flow {
    background: rgba(255, 255, 255, 0.98);
}

@media (max-width: 980px) {
    .profile-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .profile-showcase__media {
        width: min(100%, 320px);
        max-height: none;
        justify-self: center;
    }

    .profile-showcase__content {
        padding: 0.35rem;
    }

    .profile-showcase__metrics {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 720px) {
    .profile-showcase {
        padding: 0.75rem;
    }

    .profile-showcase__media {
        width: min(100%, 260px);
        min-height: 0;
    }

    .profile-showcase__topbar {
        justify-content: flex-start;
    }

    .profile-showcase__name {
        max-width: 100%;
        font-size: 2.05rem;
    }

    .profile-contact-actions,
    .profile-contact-action {
        width: 100%;
    }

    .profile-showcase__metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 980px) {
    .councilor-profile--enhanced .profile-showcase__metrics.profile-flow__stats.stats {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.65rem !important;
        overflow: visible;
    }

    .councilor-profile--enhanced .profile-showcase__metrics.profile-flow__stats.stats > .profile-flow__stat {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }

    .councilor-profile--enhanced .profile-flow__stat .stat-value {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
