:root {
    --bg: #eef2ef;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --panel: #f6f8f6;
    --text: #1f2933;
    --muted: #607080;
    --line: rgba(31, 41, 51, 0.1);
    --primary: #1f5c49;
    --primary-soft: #d9ece4;
    --shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Aptos", sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(31, 92, 73, 0.08), transparent 220px),
        linear-gradient(135deg, #edf3ee 0%, #f7f8f5 45%, #eef4f0 100%);
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

body.home-page {
    background: linear-gradient(180deg, #f6f8fb 0%, #edf3f8 100%);
}

body.landing-page {
    background:
        radial-gradient(circle at top left, rgba(52, 115, 194, 0.16), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
}

.page-shell {
    width: min(1320px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.landing-shell {
    width: min(1260px, 100%);
    padding: 0 0 52px;
}

.landing-page-shell {
    width: min(1240px, calc(100% - 28px));
    padding-top: 28px;
}

.hero-copy,
.hero-panel,
.metric-card,
.card,
.feedback {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
    border-radius: 24px;
    padding: 24px;
}

.hero-copy-full {
    margin-bottom: 18px;
}

.hero-panel {
    margin-bottom: 20px;
}

.eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 14px 0 8px;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1;
}

.hero-copy p {
    margin: 0;
    max-width: 70ch;
    color: var(--muted);
    line-height: 1.55;
}

.filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.field select,
.field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    outline: none;
}

.field select:focus,
.field input:focus {
    border-color: rgba(31, 92, 73, 0.5);
    box-shadow: 0 0 0 4px rgba(31, 92, 73, 0.12);
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
}

.badge,
.result-count,
.pill,
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge,
.result-count {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    font-size: 0.88rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 20px;
}

.metric-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.metric-card strong {
    font-size: 1.35rem;
    line-height: 1;
}

.metric-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.25;
}

.feedback {
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: stretch;
    border-radius: 18px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(31, 41, 51, 0.1);
}

.card-photo-wrap {
    position: relative;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(31, 92, 73, 0.18), rgba(31, 92, 73, 0.02));
}

.card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    min-width: 36px;
    height: 24px;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(16, 24, 32, 0.88);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
}

.card-body {
    padding: 10px 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.card-main {
    min-width: 0;
}

.card-topline {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pill {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.pill-muted {
    background: rgba(31, 41, 51, 0.07);
    color: var(--text);
}

.pill-success {
    background: rgba(36, 132, 94, 0.14);
    color: #1f6f50;
}

.card h2 {
    margin: 0 0 3px;
    font-size: 0.88rem;
    line-height: 1.2;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.74rem;
    white-space: nowrap;
}

.profile-link:hover {
    background: #111820;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 30px 32px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(16, 67, 86, 0.98) 0%, rgba(35, 82, 126, 0.98) 56%, rgba(26, 73, 111, 0.98) 100%);
    box-shadow: 0 26px 54px rgba(20, 50, 78, 0.2);
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: auto -70px -80px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
}

.landing-nav,
.landing-hero-grid {
    position: relative;
    z-index: 1;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.landing-nav-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 700;
}

.landing-nav-links a:hover {
    color: #fff;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 52px;
}

.landing-copy {
    display: grid;
    align-content: start;
}

.landing-eyebrow {
    width: fit-content;
    background: rgba(255, 255, 255, 0.12);
    color: #eef6ff;
}

.landing-copy h1 {
    margin: 18px 0 16px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 1.03;
}

.landing-copy p {
    margin: 0;
    max-width: 58ch;
    color: rgba(236, 244, 252, 0.92);
    font-size: 1.12rem;
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.landing-button-primary {
    background: linear-gradient(180deg, #36a17c 0%, #2d8667 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(45, 134, 103, 0.25);
}

.landing-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #eef6ff;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 0;
}

.landing-stat-card {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.landing-stat-card dt {
    margin: 0 0 10px;
    color: rgba(229, 239, 251, 0.76);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.landing-stat-card dd {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
}

.landing-preview {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 40px rgba(14, 30, 50, 0.12);
}

.landing-preview-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf5ff;
    color: #23507a;
    font-size: 0.84rem;
    font-weight: 700;
}

.landing-preview h2 {
    margin: 18px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.15;
}

.landing-preview p {
    margin: 0;
    color: #556d87;
    line-height: 1.65;
}

.landing-checklist {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.landing-checklist li {
    position: relative;
    padding-left: 18px;
    color: #2d445f;
    line-height: 1.5;
}

.landing-checklist li::before {
    content: "";
    position: absolute;
    top: 0.58rem;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2f8b69;
}

.landing-inline-link {
    display: inline-flex;
    margin-top: 22px;
    color: #1f4e7a;
    font-weight: 700;
    text-decoration: none;
}

.landing-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.landing-info-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d7e3ef;
    box-shadow: 0 16px 30px rgba(29, 59, 92, 0.08);
}

.landing-info-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff5fb;
    color: #244d79;
    font-weight: 800;
}

.landing-info-card h2 {
    margin: 18px 0 10px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.landing-info-card p {
    margin: 0;
    color: #5d748c;
    line-height: 1.65;
}

.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;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 34px 126px;
    border-radius: 0 0 32px 32px;
    background:
        linear-gradient(135deg, rgba(25, 64, 94, 0.98) 0%, rgba(38, 86, 128, 0.98) 58%, rgba(20, 68, 88, 0.98) 100%);
    box-shadow: 0 24px 54px rgba(22, 43, 70, 0.22);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 72%);
}

.home-nav,
.home-hero-copy {
    position: relative;
    z-index: 1;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
    box-shadow: none;
    backdrop-filter: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #38a17d 0%, #2b8668 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-logo {
    width: 176px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 16px rgba(4, 16, 28, 0.22));
    box-shadow: none;
}

.brand-mark svg,
.field-icon svg,
.hero-feature svg,
.card-trend-icon svg,
.premium-chip svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-copy {
    display: grid;
    align-items: center;
    min-width: 0;
}

.brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.9rem;
    line-height: 0.95;
}

.brand-copy span {
    max-width: 150px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-nav-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.home-nav-links a.is-active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.home-nav-premium {
    color: #9ee0ba;
}

.home-hero-copy {
    max-width: 820px;
    margin: 78px auto 0;
    text-align: center;
}

.hero-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
}

.home-hero h1 {
    margin: 14px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    line-height: 1.05;
    color: #fff;
}

.home-hero p {
    margin: 0 auto;
    max-width: 740px;
    color: rgba(241, 246, 252, 0.9);
    font-size: 1.17rem;
    line-height: 1.65;
}

.business-hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: #ffffff;
    color: #21485c;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(5, 20, 34, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-cta-button:hover {
    background: #eef6fb;
    box-shadow: 0 20px 40px rgba(5, 20, 34, 0.22);
    transform: translateY(-1px);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f7fbff;
    font-weight: 700;
}

.home-filter-panel {
    position: relative;
    z-index: 2;
    margin: -56px 10px 34px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(34, 56, 84, 0.12);
    box-shadow: 0 18px 42px rgba(22, 43, 70, 0.12);
}

.view-switch {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
    padding: 6px;
    border: 1px solid rgba(39, 76, 94, 0.12);
    border-radius: 16px;
    background: #edf3f8;
}

.view-switch-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #274c5e;
    display: flex;
    font-weight: 800;
    justify-content: center;
    min-height: 50px;
    padding: 14px 18px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.view-switch-button:hover {
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 8px 18px rgba(32, 58, 70, 0.08);
    transform: translateY(-1px);
}

.view-switch-button.is-active {
    background: #274c5e;
    border-color: #274c5e;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(32, 58, 70, 0.18);
}

.filter-panel-heading {
    margin: 0 0 18px;
}

.filter-panel-heading h2 {
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 6px 0 0;
}

.home-filters {
    display: grid;
    gap: 18px;
}

.search-control,
.filter-control {
    position: relative;
    display: flex;
}

.search-control input,
.filter-control select {
    width: 100%;
    font: inherit;
    color: var(--text);
    outline: none;
    background: #fff;
    border: 1px solid #d5dfeb;
    box-shadow: inset 0 1px 2px rgba(18, 39, 61, 0.03);
}

.search-control input {
    min-height: 56px;
    padding: 0 18px 0 54px;
    border-radius: 16px;
}

.filter-control select {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
}

.filter-control select[multiple] {
    min-height: 92px;
    padding: 12px 14px;
}

.search-control input::placeholder {
    color: #67809a;
}

.search-control input:focus,
.filter-control select:focus {
    border-color: rgba(46, 91, 133, 0.55);
    box-shadow: 0 0 0 4px rgba(46, 91, 133, 0.12);
}

.field-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    display: grid;
    place-items: center;
    color: #617a95;
    pointer-events: none;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.projects-filters-grid {
    grid-template-columns: repeat(6, minmax(132px, 1fr));
}

.filter-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #dbe4ee;
    background: #f3f7fb;
    color: #47637f;
    font-size: 0.92rem;
    font-weight: 700;
}

.summary-pill-static {
    background: #edf4ff;
    color: #264d79;
}

.home-listing {
    padding: 0 6px;
}

.home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-eyebrow {
    background: rgba(38, 77, 121, 0.08);
    color: #254d78;
}

.home-section-title {
    margin: 14px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.1;
}

.home-section-copy {
    max-width: 450px;
    margin: 0;
    color: #61758b;
    line-height: 1.6;
}

.home-feedback {
    margin-bottom: 18px;
    border: 1px solid #dbe4ee;
    background: #fff;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-card {
    border-radius: 18px;
    background: #fff;
    border: 1px solid #d2dde8;
    box-shadow: 0 10px 24px rgba(20, 39, 65, 0.08);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-card:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 91, 133, 0.34);
    box-shadow: 0 18px 32px rgba(20, 39, 65, 0.12);
}

.home-card-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 16px 18px;
    color: inherit;
    text-decoration: none;
}

.home-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, #f1f5fa 0%, #eef3f7 100%);
    border: 1px solid #e5edf4;
}

.home-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-avatar-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #627792;
}

.home-avatar-fallback svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-card-main {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.home-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.home-card-head h3 {
    margin: 0;
    font-size: clamp(1.08rem, 2vw, 1.42rem);
    line-height: 1.2;
}

.home-card-title-link {
    color: inherit;
    text-decoration: none;
}

.home-card-title-link:hover h3 {
    color: var(--accent);
}

.score-badge {
    color: #18775c;
    display: grid;
    justify-items: end;
    line-height: 1;
    min-width: 72px;
}

.score-badge strong {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.score-badge span {
    color: #526b82;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 4px;
    text-transform: uppercase;
}

.score-tooltip {
    position: relative;
    cursor: help;
    outline: none;
}

.score-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(360px, 78vw);
    padding: 12px 14px;
    border-radius: 12px;
    background: #17232d;
    color: #fff;
    box-shadow: 0 16px 34px rgba(17, 24, 32, 0.22);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: pre-line;
}

.score-tooltip::before {
    content: "";
    position: absolute;
    z-index: 21;
    right: 18px;
    bottom: calc(100% + 5px);
    border: 7px solid transparent;
    border-top-color: #17232d;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.score-tooltip:hover::after,
.score-tooltip:focus-visible::after,
.score-tooltip:hover::before,
.score-tooltip:focus-visible::before {
    opacity: 1;
    transform: translateY(0);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.party-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--party-bg, #eef4ff);
    color: var(--party-fg, #365884);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.state-chip {
    align-items: center;
    background: #f1eee5;
    border-radius: 999px;
    color: #6e654e;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    min-height: 30px;
    padding: 0 12px;
}

.card-subtitle {
    margin: 0;
    color: #5d7893;
    font-size: 1rem;
    line-height: 1.45;
}

.card-insights {
    color: #30465a;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 750;
    gap: 10px 18px;
}

.card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.card-trend-icon {
    display: grid;
    place-items: center;
    color: #5a718b;
}

.card-progress {
    height: 10px;
    border-radius: 999px;
    background: #edf1f6;
    overflow: hidden;
}

.card-progress-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #47b587 0%, #1f9c6f 100%);
}

.card-rank-note {
    color: #4d6883;
    font-size: 0.95rem;
    font-weight: 700;
}

.premium-panel {
    margin: 36px 6px 0;
    padding: 38px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #cfe1da;
    text-align: center;
    box-shadow: 0 14px 30px rgba(26, 63, 53, 0.08);
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ecf7f1;
    color: #2d8464;
    font-weight: 700;
}

.premium-panel h2 {
    margin: 18px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
}

.premium-panel p {
    max-width: 700px;
    margin: 0 auto 24px;
    color: #61758b;
    font-size: 1.05rem;
    line-height: 1.7;
}

.premium-button {
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #2f8b69 0%, #27785a 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(39, 120, 90, 0.24);
}

.premium-button:hover {
    filter: brightness(1.03);
}

.detail-page {
    padding-top: 28px;
}

.detail-hero,
.detail-list-section,
.process-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.detail-hero,
.detail-list-section {
    border-radius: 24px;
    padding: 24px;
}

.detail-hero {
    margin-bottom: 18px;
}

.detail-toggle-bar {
    margin-bottom: 18px;
}

.listing-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.toggle-button {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.toggle-button.is-active {
    background: var(--text);
    color: #fff;
}

.detail-highlight {
    border: 1px solid rgba(31, 92, 73, 0.2);
    box-shadow: 0 20px 48px rgba(31, 92, 73, 0.08);
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.detail-header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.detail-photo {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    background: var(--panel);
}

.detail-copy h1 {
    margin: 12px 0 6px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
}

.detail-fullname {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1rem;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.profile-summary {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(124, 184, 81, 0.36);
    background: rgba(232, 247, 214, 0.76);
    color: #3f7a2a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.profile-summary strong {
    color: #2f6f22;
}

.attendance-card {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.attendance-copy {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.attendance-copy strong {
    font-size: 1rem;
    line-height: 1.3;
}

.attendance-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.attendance-progress {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(31, 41, 51, 0.08);
    overflow: hidden;
}

.attendance-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f5c49 0%, #3f8b6e 100%);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
}

.matter-header .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matter-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    gap: 20px;
    align-items: start;
}

.matter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 16px;
}

.matter-main,
.matter-sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
}

.matter-section-title,
.matter-subtitle {
    margin: 0 0 12px;
}

.matter-subtitle {
    margin-top: 18px;
    font-size: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.detail-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(108px, 0.34fr) minmax(112px, 0.34fr) minmax(260px, 1fr);
    gap: 12px;
    align-items: end;
    margin-bottom: 22px;
}

.detail-filters-votes {
    grid-template-columns: minmax(300px, 1.45fr) minmax(108px, 0.32fr) minmax(112px, 0.32fr) minmax(150px, 0.45fr) minmax(240px, 0.9fr);
}

.filter-field-number {
    min-width: 108px;
}

.filter-field-year {
    min-width: 112px;
}

.filter-field-vote {
    min-width: 150px;
}

.detail-filters .field {
    min-width: 0;
    gap: 6px;
}

.detail-filters .field input,
.detail-filters .field select {
    min-height: 38px;
    width: 100%;
    padding: 0 11px;
    font-size: 0.9rem;
}

.detail-filters .field span {
    min-height: 26px;
    display: flex;
    align-items: end;
    line-height: 1.15;
}

.process-list {
    display: grid;
    gap: 12px;
}

.project-list {
    display: grid;
    gap: 16px;
}

.project-card {
    display: grid;
    gap: 12px;
}

.project-card .process-links .profile-link {
    display: none;
}

.project-votings {
    display: grid;
    gap: 10px;
}

.project-votings-header {
    margin-bottom: 0;
}

.project-votings-header h3 {
    margin: 0;
    font-size: 1rem;
}

.voting-row,
.voting-detail {
    border: 1px solid var(--line);
    background: var(--surface-strong);
    border-radius: 14px;
}

.voting-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 12px 14px;
    min-width: 0;
}

.voting-row strong {
    display: block;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.voting-row p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.vote-summary {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.vote-summary .status-chip {
    min-height: 26px;
    max-width: 100%;
    white-space: normal;
}

.compact-feedback {
    margin: 0;
    padding: 12px 14px;
    box-shadow: none;
}

.voting-detail {
    overflow: hidden;
}

.voting-detail summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.voting-detail summary strong {
    white-space: nowrap;
    color: var(--muted);
}

.vote-summary-detail {
    justify-content: flex-start;
    padding: 0 16px 14px;
}

.votes-table {
    display: grid;
    border-top: 1px solid var(--line);
}

.vote-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 120px;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.vote-row strong {
    overflow-wrap: anywhere;
}

.vote-row span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.process-card {
    border-radius: 18px;
    padding: 18px;
    min-width: 0;
}

.process-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.process-title {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.process-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.process-date {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.9rem;
}

.process-authors,
.process-summary {
    margin: 0 0 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.process-summary-direct {
    color: var(--text);
    font-weight: 800;
}

.topic-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: -2px 0 14px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(111, 91, 218, 0.12);
    color: #5b4ab2;
    font-size: 0.78rem;
    font-weight: 800;
}

.process-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.process-inline-note {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.process-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-link-light {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

.profile-link-light:hover {
    background: var(--panel);
}

.document-list,
.author-list,
.timeline {
    display: grid;
    gap: 10px;
}

.document-link,
.author-item,
.timeline-item {
    border: 1px solid var(--line);
    background: var(--surface-strong);
    border-radius: 14px;
}

.document-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.document-link span:first-child {
    min-width: 0;
}

.document-link:hover {
    background: var(--panel);
}

.author-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
}

.author-item span {
    color: var(--muted);
    font-size: 0.88rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
}

.timeline-content {
    min-width: 0;
}

.timeline-content p {
    margin: 6px 0 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.matter-copy,
.matter-main,
.matter-sidebar,
.timeline-content,
.author-item,
.metric-card {
    min-width: 0;
}

.matter-copy h1,
.detail-fullname,
.pill,
.metric-card strong,
.timeline-content strong,
.author-item strong,
.author-item span {
    overflow-wrap: anywhere;
}

.matter-actions {
    margin-top: 14px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.status-chip-muted {
    min-height: 24px;
    background: rgba(31, 41, 51, 0.08);
    color: var(--muted);
    font-size: 0.72rem;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.74rem;
    white-space: nowrap;
}

.secondary-link:hover {
    background: var(--panel);
}

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

    .landing-hero-grid,
    .landing-info {
        grid-template-columns: 1fr;
    }

    .landing-preview {
        max-width: none;
    }

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

    .filter-summary {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .voting-row,
    .vote-row {
        grid-template-columns: 1fr;
    }

    .vote-summary {
        justify-content: flex-start;
    }
}

@media (max-width: 920px) {
    .filters {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .landing-stats {
        grid-template-columns: 1fr;
    }

    .home-cards {
        grid-template-columns: 1fr;
    }

    .card-body {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .home-section-heading {
        flex-direction: column;
        align-items: start;
    }

    .detail-header,
    .matter-header,
    .matter-layout,
    .detail-meta-grid,
    .matter-header .detail-meta-grid,
    .detail-filters,
    .detail-filters-votes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 18px, 1240px);
        padding-top: 16px;
    }

    .landing-shell {
        width: min(100%, 1260px);
        padding-top: 0;
    }

    .hero-copy,
    .hero-panel {
        padding: 20px;
        border-radius: 20px;
    }

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

    .landing-page-shell {
        width: min(100% - 18px, 1240px);
        padding-top: 18px;
    }

    .landing-hero {
        padding: 22px 18px 24px;
        border-radius: 24px;
    }

    .landing-nav {
        flex-direction: column;
        align-items: start;
    }

    .landing-nav-links {
        gap: 16px;
    }

    .landing-hero-grid {
        margin-top: 34px;
    }

    .landing-actions {
        flex-direction: column;
    }

    .landing-button {
        width: 100%;
    }

    .landing-preview,
    .landing-info-card {
        padding: 20px;
        border-radius: 20px;
    }

    .home-hero {
        padding: 20px 18px 114px;
        border-radius: 0 0 24px 24px;
    }

    .home-nav {
        flex-direction: column;
        align-items: start;
    }

    .home-nav-links {
        gap: 16px;
    }

    .home-hero-copy {
        margin-top: 56px;
    }

    .hero-feature {
        width: 100%;
        justify-content: center;
    }

    .home-filter-panel {
        margin: -48px 10px 28px;
        padding: 18px;
        border-radius: 20px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .summary-pill {
        width: 100%;
    }

    .home-card-link {
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 14px;
    }

    .home-avatar {
        width: 56px;
        height: 56px;
    }

    .home-card-head {
        align-items: flex-start;
    }

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

    .card-rank-note {
        justify-self: start;
    }

    .score-badge {
        justify-items: start;
        min-width: 0;
    }

    .premium-panel {
        margin: 28px 10px 0;
        padding: 30px 20px;
    }

    .card {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .search-control input,
    .filter-control select {
        font-size: 16px;
    }

    .process-topline,
    .process-actions {
        flex-direction: column;
        align-items: start;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}

.site-share {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
    .site-share {
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: 76px;
    }

    .brand {
        max-width: 100%;
    }

    .brand-copy span {
        max-width: 132px;
        font-size: 0.72rem;
    }

    .brand-logo {
        width: 136px;
        height: 44px;
        padding: 5px 7px;
    }

    .landing-nav,
    .home-nav {
        gap: 18px;
    }

    .landing-nav-links,
    .home-nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .landing-nav-links a,
    .home-nav-links a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .landing-copy h1,
    .home-hero h1,
    .detail-copy h1,
    .matter-copy h1 {
        overflow-wrap: anywhere;
    }

    .home-hero h1,
    .landing-copy h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .home-hero p,
    .landing-copy p {
        font-size: 1rem;
    }

    .home-filter-panel {
        margin-left: 0;
        margin-right: 0;
    }

    .filter-summary,
    .hero-features,
    .detail-tags,
    .matter-actions,
    .process-links,
    .vote-summary {
        width: 100%;
    }

    .summary-pill,
    .hero-feature,
    .profile-link,
    .secondary-link,
    .premium-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .detail-hero,
    .detail-list-section {
        padding: 18px;
        border-radius: 20px;
    }

    .detail-toggle-bar {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .listing-toggle {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(170px, 1fr);
        scroll-snap-type: x proximity;
    }

    .toggle-button {
        scroll-snap-align: start;
        white-space: normal;
    }

    .detail-photo {
        width: min(100%, 220px);
        justify-self: center;
    }

    .metric-card,
    .process-card,
    .project-card,
    .voting-detail,
    .author-item {
        min-width: 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-count {
        width: 100%;
    }

    .voting-detail summary,
    .voting-row,
    .vote-row {
        grid-template-columns: 1fr;
    }

    .voting-detail summary {
        display: grid;
    }

    .votes-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vote-row {
        min-width: 320px;
    }

    .site-share {
        left: 50%;
        right: auto;
        bottom: 10px;
        transform: translateX(-50%);
        max-width: calc(100% - 20px);
        justify-content: center;
        flex-wrap: wrap;
    }
}
.abbr-help {
    cursor: help;
    text-decoration: underline dotted currentColor;
    text-underline-offset: 0.18em;
}

.data-source-footer {
    color: var(--muted);
    font-size: 0.92rem;
    padding: 24px 0 8px;
    text-align: center;
}

.business-contact-panel {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    padding: 48px 0 24px;
}

.business-contact-copy h2 {
    color: var(--ink);
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.02;
    margin: 12px 0 16px;
}

.business-contact-copy p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
}

.business-contact-form {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(39, 76, 94, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(18, 38, 50, 0.08);
    display: grid;
    gap: 18px;
    padding: clamp(22px, 4vw, 34px);
}

.business-submit {
    border: 0;
    cursor: pointer;
    justify-content: center;
    min-height: 48px;
}

@media (max-width: 720px) {
    .page-shell {
        width: 100%;
    }

    .home-hero {
        min-height: auto;
        padding: 18px 16px 86px;
        border-radius: 0 0 22px 22px;
    }

    .home-nav {
        align-items: center;
        gap: 14px;
    }

    .brand-logo {
        width: 132px;
        height: 36px;
    }

    .home-nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-nav-links a {
        min-height: 38px;
        padding: 0 10px;
        font-size: 0.9rem;
        border-color: rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
    }

    .home-hero-copy {
        margin-top: 44px;
    }

    .home-hero h1 {
        margin-bottom: 12px;
        font-size: clamp(2.1rem, 12vw, 3.1rem);
        line-height: 1.05;
    }

    .home-hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .home-filter-panel {
        margin: -50px 12px 26px;
        padding: 14px;
        border-radius: 18px;
    }

    .view-switch {
        gap: 6px;
        padding: 5px;
        border-radius: 14px;
    }

    .view-switch-button {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.94rem;
    }

    .filters-grid,
    .projects-filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-control input,
    .filter-control select {
        min-height: 48px;
        font-size: 1rem;
    }

    .home-listing {
        padding: 0 12px;
    }

    .home-cards,
    .project-list {
        gap: 14px;
    }

    .home-card {
        border-radius: 14px;
    }

    .home-card-link,
    .home-card-head,
    .process-topline,
    .process-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-avatar {
        width: 72px;
        height: 72px;
    }

    .score-badge {
        align-self: stretch;
        justify-content: space-between;
    }

    .card-insights,
    .card-footer,
    .process-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-card {
        padding: 16px;
    }

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

    .business-hero-actions {
        margin-top: 22px;
    }

    .hero-cta-button {
        width: 100%;
        max-width: 280px;
    }

    .business-contact-panel {
        margin: 24px 12px;
        padding: 18px;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .home-nav-links {
        grid-template-columns: 1fr;
    }

    .home-filter-panel {
        margin-left: 8px;
        margin-right: 8px;
    }

    .home-hero h1 {
        font-size: clamp(1.95rem, 13vw, 2.7rem);
    }

    .view-switch-button,
    .home-nav-links a {
        font-size: 0.88rem;
    }
}

.business-success {
    background: rgba(237, 247, 240, 0.98);
    border-color: rgba(43, 134, 79, 0.24);
    color: #23633e;
    margin: 0;
}

@media (max-width: 760px) {
    .business-contact-panel {
        grid-template-columns: 1fr;
        padding-top: 32px;
    }
}
