:root {
    --cream: #f5f2ed;
    --cream-deep: #ebe6dc;
    --white: #ffffff;
    --ink: #1a1a1a;
    --ink-soft: #2c2c2c;
    --muted: #6b675f;
    --line: #e4dfd6;
    --mint: #3d9b7a;
    --mint-soft: #e4f4ee;
    --coral: #c96b5e;
    --coral-soft: #f8e6e2;
    --blue-soft: #e8f0fa;
    --gold: #c9a227;
    --shadow: 0 24px 60px rgba(26, 26, 26, .08);
    --shadow-sm: 0 10px 28px rgba(26, 26, 26, .06);
    --radius: 24px;
    --radius-sm: 16px;
    --pill: 999px;
    --sans: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --header-sticky-top: 18px;
    --header-pad-top: 18px;
    --nav-pill-height: 64px;
    --subnav-gap: 10px;
    --subnav-hero-overlap: 22px;
    /* Sticky top for the profile subnav wrapper. Includes the inner pill's
       negative margin so the visible bar sits fully below the site header. */
    --subnav-sticky-top: calc(
        var(--header-sticky-top)
        + var(--header-pad-top)
        + var(--nav-pill-height)
        + var(--subnav-gap)
        + var(--subnav-hero-overlap)
    );
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--subnav-sticky-top) - var(--subnav-hero-overlap) + 58px); }
#snapshot, #breakdown, #update, #sources, #community, #discussion { scroll-margin-top: calc(var(--subnav-sticky-top) - var(--subnav-hero-overlap) + 58px); }
body {
    margin: 0;
    background:
        radial-gradient(1200px 420px at 12% -10%, rgba(255,255,255,.7), transparent 55%),
        radial-gradient(900px 380px at 92% 8%, rgba(255,255,255,.45), transparent 50%),
        repeating-linear-gradient(90deg, rgba(26,26,26,.015) 0 1px, transparent 1px 42px),
        var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
}
body, input, textarea, select, button { font: inherit; }
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow-shell { width: min(840px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 1000; font-weight: 700; border-radius: var(--pill); }
.skip-link:focus { top: 16px; }

/* Floating pill nav — Collective OS */
.site-header {
    position: sticky;
    top: var(--header-sticky-top);
    z-index: 80;
    display: flex;
    justify-content: center;
    padding: var(--header-pad-top) 16px 12px;
    pointer-events: none;
}
.page-home .site-header { position: absolute; left: 0; right: 0; top: 22px; padding: 0 16px; }
.page-home .nav-pill {
    background: rgba(18, 18, 18, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
}
.nav-pill, .hero-search, .category-card, .company-card { will-change: transform; }
.nav-pill {
    pointer-events: auto;
    width: min(1080px, 100%);
    min-height: var(--nav-pill-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 8px 8px 18px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--pill);
    box-shadow: 0 18px 50px rgba(26, 26, 26, .22);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
    display: block;
    height: 40px;
    width: auto;
}
.site-nav { display: flex; align-items: center; gap: 22px; padding-right: 6px; }
.site-nav > a:not(.button) { color: #eceae6; font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-nav > a:not(.button):hover { color: #fff; }
#site-nav > a[href*="representation"] { color: var(--gold); }
#site-nav > a[href*="representation"]:hover,
#site-nav > a[href*="representation"]:focus,
#site-nav > a[href*="representation"]:focus-visible {
    color: color-mix(in srgb, var(--gold) 72%, #fff);
}
.nav-user { color: #cfc9be; font-weight: 700; font-size: .82rem; }
.nav-toggle { display: none; }

.button {
    border: 0;
    background: var(--ink);
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--pill);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); background: #000; }
.button-small { min-height: 40px; padding: 0 16px; font-size: .82rem; }
.button-ghost { background: transparent; color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #f4f1eb; }
.button-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.button-outline:hover { background: var(--cream); }
.button-full { width: 100%; }
.text-link, .back-link { font-weight: 700; text-underline-offset: 4px; }
.back-link { display: inline-block; font-size: .84rem; color: var(--muted); margin-bottom: 24px; }

.flash {
    position: fixed; z-index: 100; left: 50%; top: 96px; transform: translateX(-50%);
    width: min(560px, calc(100% - 32px));
    border-radius: var(--pill); padding: 14px 22px;
    box-shadow: var(--shadow); font-weight: 700; text-align: center;
    animation: flash-in .25s ease both;
}
.flash-success { background: var(--mint); color: #fff; }
.flash-error { background: var(--coral); color: #fff; }
.flash-notice { background: var(--ink); color: #fff; }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -12px); } }

.eyebrow {
    display: inline-block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .68rem;
    font-weight: 800;
}
.eyebrow-dark { color: var(--ink); }

/* Directory hero layout */
.home-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 140px 0 150px;
    color: #fff;
    overflow: hidden;
    background: #141414;
}
.hero-atmosphere {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.09), transparent 52%),
        radial-gradient(ellipse at 80% 80%, rgba(61,155,122,.12), transparent 42%),
        linear-gradient(180deg, rgba(20,20,20,.55), rgba(20,20,20,.82)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 56px);
    pointer-events: none;
}
.hero-copy { position: relative; text-align: center; max-width: 920px; margin-inline: auto; }
.hero-kicker { margin: 0 0 18px; color: #cfc9be; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 {
    margin: 0 auto 18px;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 800;
    max-width: 16ch;
}
.hero-lead { margin: 0 auto 36px; color: #d8d3ca; font-size: 1.05rem; max-width: 58ch; }

.hero-search {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: stretch;
    gap: 0;
    background: #fff;
    color: var(--ink);
    border-radius: var(--pill);
    padding: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    text-align: left;
}
.search-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 18px;
    min-width: 0;
    border-right: 1px solid var(--line);
}
.search-field span { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.search-field input, .search-field select {
    border: 0; background: transparent; outline: none; padding: 0;
    font-size: .95rem; font-weight: 600; color: var(--ink); width: 100%;
}
.search-field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%231a1a1a' stroke-width='1.6' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right center; padding-right: 18px; }
.search-submit { min-height: 52px; padding: 0 22px; }
.search-suggestions {
    position: absolute; z-index: 12; left: 12px; right: 12px; top: calc(100% + 10px);
    background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; color: var(--ink);
}
.suggestion-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.suggestion-link:last-child { border: 0; }
.suggestion-link:hover, .suggestion-link:focus { background: var(--cream); }
.suggestion-link b { display: block; }
.suggestion-link small { color: var(--muted); }
.suggestion-status { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }

.trending-row { margin: 22px 0 0; color: #c8c2b8; font-size: .86rem; }
.trending-row span { margin-right: 10px; font-weight: 700; }
.trending-row a { color: #fff; text-decoration: none; margin-right: 12px; opacity: .85; }
.trending-row a:hover { opacity: 1; text-decoration: underline; }

.category-overlap { position: relative; z-index: 4; margin-top: -72px; margin-bottom: 28px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card {
    background: #fff;
    border-radius: 22px;
    padding: 22px 18px 18px;
    text-decoration: none;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    display: grid;
    gap: 8px;
    min-height: 148px;
    transition: transform .2s ease, border-color .2s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card.is-active { border-color: var(--ink); }
.category-icon {
    width: 42px; height: 42px; border-radius: 14px;
    background: var(--cream); color: var(--ink);
    display: grid; place-items: center;
}
.category-icon svg { width: 22px; height: 22px; }
.category-card b { font-size: .95rem; letter-spacing: -.02em; }
.category-card small { color: var(--muted); font-size: .75rem; }
.category-card.is-active .category-icon { background: var(--ink); color: #fff; }

.directory-section { padding: 40px 0 100px; }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; margin: 8px 0 0; letter-spacing: -.04em; font-weight: 800; }
.compact-heading { align-items: start; }
.compact-heading p { max-width: 440px; color: var(--muted); font-size: .88rem; }

.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.company-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,26,26,.04);
    transition: transform .25s ease, box-shadow .25s ease;
}
.company-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.company-card { overflow: hidden; }
.company-card-banner {
    margin: -26px -26px 18px;
    height: 108px;
    background: var(--cream-deep);
    overflow: hidden;
    position: relative;
}
.company-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.company-card-banner-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    background: linear-gradient(135deg, var(--cream-deep) 0%, var(--ink) 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.company-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.company-monogram {
    width: 56px; height: 56px; border-radius: 18px;
    background: var(--ink); color: #fff;
    display: grid; place-items: center; font-size: 1.4rem; font-weight: 800;
}
.status-chip { display: inline-flex; align-items: center; border-radius: var(--pill); padding: 7px 11px; font-size: .66rem; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.status-mixed { background: #f4ead0; color: #6d5410; }
.status-supportive { background: var(--mint-soft); color: #215744; }
.status-concern { background: var(--coral-soft); color: #7a352c; }
.company-meta { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.company-card h3 { font-size: 1.7rem; margin: 7px 0 12px; line-height: 1.1; letter-spacing: -.03em; }
.company-card h3 a { text-decoration: none; }
.company-card > p { color: var(--muted); font-size: .91rem; margin: 0; }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin: auto 0 0; padding: 18px 0; }
.card-stats div { border-right: 1px solid var(--line); padding-right: 10px; }
.card-stats div:not(:first-child) { padding-left: 12px; }
.card-stats div:last-child { border: 0; }
.card-stats dt { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.card-stats dd { margin: 4px 0 0; font-weight: 800; font-size: .82rem; }
.card-link { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; text-decoration: none; font-weight: 800; font-size: .85rem; }
.card-link span { font-size: 1.25rem; }

.empty-state, .not-found { padding: 70px 30px; background: var(--white); border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); }
.empty-mark { width: 74px; height: 74px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; font-size: 1.6rem; font-weight: 800; }
.empty-state h3 { font-size: 1.8rem; margin: 0; }

.method-banner { padding: 0 0 110px; }
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 16px;
    align-items: stretch;
    background: var(--ink);
    color: #fff;
    border-radius: 32px;
    padding: 28px;
}
.method-grid article { background: rgba(255,255,255,.05); border-radius: 22px; padding: 22px; }
.method-number { display: block; color: #9a958c; font-weight: 800; font-size: .78rem; margin-bottom: 10px; }
.method-grid h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.method-grid p { margin: 6px 0 0; color: #c8c2b8; font-size: .86rem; }
.method-grid .button { align-self: center; background: #fff; color: var(--ink); }

.profile-hero { background: var(--ink); color: #fff; padding: 48px 0 64px; border-radius: 0 0 36px 36px; }
.profile-hero .back-link { color: #bdb7aa; }
.profile-title-row { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.profile-monogram { width: 108px; height: 108px; border-radius: 32px; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 3rem; font-weight: 800; }
.profile-title .company-meta { color: #cfc9be; }
.profile-title h1 { margin: 5px 0 10px; font-size: clamp(3rem, 6vw, 5.2rem); line-height: .92; letter-spacing: -.05em; }
.profile-title p { max-width: 690px; margin: 0; color: #c8c2b5; font-size: 1rem; }
.verdict-stamp { min-width: 170px; border-radius: 28px; background: rgba(255,255,255,.06); padding: 18px 20px; text-align: center; }
.verdict-stamp span { text-transform: uppercase; letter-spacing: .15em; font-size: .57rem; color: #b8b4ac; }
.verdict-stamp strong { display: block; font-size: 1.15rem; line-height: 1.2; margin: 9px 0; }
.verdict-stamp small { opacity: .7; font-size: .6rem; }
.verdict-mixed { color: #f0d48a; }
.verdict-supportive { color: #8fd4b6; }
.verdict-concern { color: #f0a89c; }
.profile-nav {
    position: sticky;
    top: var(--subnav-sticky-top);
    z-index: 40;
    display: flex;
    justify-content: center;
    padding-inline: 16px;
}
.profile-nav .shell {
    width: max-content;
    max-width: min(860px, 100%);
    display: flex;
    justify-content: center;
    justify-content: safe center;
    gap: 8px;
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--pill);
    padding: 8px;
    box-shadow: var(--shadow-sm);
    margin-top: calc(var(--subnav-hero-overlap) * -1);
}
.profile-nav a { padding: 10px 16px; text-decoration: none; font-size: .76rem; font-weight: 700; white-space: nowrap; border-radius: var(--pill); }
.profile-nav a:hover { background: var(--cream); }

.snapshot-section { padding: 80px 0; }
.snapshot-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.snapshot-card { border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.snapshot-card > header { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.snapshot-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; font-weight: 800; }
.concern-card .snapshot-icon { background: var(--coral); }
.snapshot-card header small { display: block; color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.snapshot-card h3 { font-size: 1.35rem; margin: 0; letter-spacing: -.02em; }
.snapshot-summary { margin: 0; padding: 22px 24px; color: #4f4c45; border-bottom: 1px solid var(--line); min-height: 120px; }
.receipt-list { list-style: none; margin: 0; padding: 0; }
.receipt-list li { display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.receipt-list li:last-child { border: 0; }
.receipt-list li > strong { color: var(--mint); font-size: 1.05rem; line-height: 1.2; }
.concern-card .receipt-list li > strong { color: var(--coral); }
.receipt-list b, .receipt-list span, .receipt-list a { display: block; }
.receipt-list b { line-height: 1.25; }
.receipt-list span { color: var(--muted); font-size: .83rem; margin: 8px 0; }
.receipt-list a { color: var(--ink); font-size: .72rem; font-weight: 800; }

.article-section { padding: 90px 0; }
.article-layout { display: grid; grid-template-columns: 245px minmax(0, 760px); justify-content: space-between; gap: 80px; }
.article-rail { position: sticky; top: calc(var(--subnav-sticky-top) - var(--subnav-hero-overlap) + 52px); align-self: start; }
.article-rail > p { color: var(--muted); font-size: .87rem; border-top: 1px solid var(--line); padding-top: 17px; }
.rail-note { background: var(--white); border-radius: var(--radius-sm); padding: 17px; margin-top: 24px; box-shadow: var(--shadow-sm); }
.rail-note b, .rail-note span { display: block; }
.rail-note b { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.rail-note span { color: var(--muted); margin-top: 8px; font-size: .75rem; }
.longform-article + .longform-article { border-top: 1px solid var(--line); margin-top: 70px; padding-top: 70px; }
.article-meta { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .69rem; font-weight: 800; }
.longform-article h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; margin: 16px 0 22px; }
.bluf { background: var(--white); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow-sm); margin: 0 0 28px; }
.bluf span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bluf p { margin: 0; font-size: 1.12rem; line-height: 1.45; color: var(--ink); font-weight: 650; }
.article-body { color: #292822; font-size: 1.05rem; line-height: 1.7; margin: 0 0 36px; }
.article-body h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 28px 0 10px; }
.article-body p { margin: 0 0 16px; max-width: 62ch; }
.article-body p:last-child { margin-bottom: 0; }

.update-section { padding: 0 0 70px; }
.update-layout { max-width: 860px; }
.update-card { background: var(--ink); color: #f5f2ed; border-radius: var(--radius); padding: 28px 32px; }
.update-card h3 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #cfc8bc; margin: 0 0 10px; }
.update-card p { margin: 0 0 14px; line-height: 1.6; color: #f5f2ed; }
.update-card p:last-child { margin-bottom: 0; }

.sources-section { padding: 80px 0; }
.source-list { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.source-list li { display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 22px; }
.source-list li:last-child { border: 0; }
.source-list li > span { color: var(--muted); font-weight: 800; }
.source-list b { display: block; }
.source-list p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.source-list a { font-size: .76rem; font-weight: 800; }

.community-section { padding: 40px 0 90px; }
.community-grid { display: grid; grid-template-columns: minmax(0, 690px) 1fr; gap: 40px; align-items: center; }
.poll-card { background: var(--white); padding: 36px; border-radius: 32px; box-shadow: var(--shadow); }
.poll-card h2 { font-size: 2.4rem; margin: 7px 0 12px; line-height: 1.1; letter-spacing: -.03em; }
.poll-card > p { color: var(--muted); font-size: .88rem; }
.poll-card form, .poll-results { margin-top: 24px; }
.poll-option { position: relative; overflow: hidden; min-height: 74px; display: grid; grid-template-columns: 24px 1fr auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 14px 17px; cursor: pointer; margin-bottom: 10px; }
.poll-option.is-static { grid-template-columns: 1fr auto; cursor: default; }
.poll-option.selected { border-color: var(--ink); }
.poll-option input { width: 18px; height: 18px; accent-color: var(--ink); z-index: 2; }
.poll-copy, .poll-number { position: relative; z-index: 2; }
.poll-copy b, .poll-copy small, .poll-number strong, .poll-number small { display: block; }
.poll-copy small, .poll-number small { color: var(--muted); font-size: .68rem; }
.poll-number { text-align: right; }
.poll-number strong { font-size: 1.15rem; }
.poll-bar { position: absolute; inset: 0 auto 0 0; width: var(--poll-width); background: var(--cream-deep); transition: width .4s ease; }
.poll-card .button { margin-top: 18px; }
.poll-login-callout { background: var(--cream-deep); box-shadow: none; margin: 18px 0 0; padding: 20px 22px; }
.poll-auth-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.poll-auth-actions a:not(.button) { font-weight: 700; text-underline-offset: 4px; }
.poll-card .poll-login-callout .button { margin-top: 0; }
.poll-total { text-align: center; color: var(--muted); margin-top: 19px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.poll-total strong { color: var(--ink); }
.community-note .quote-mark { color: var(--ink); font-size: 5rem; line-height: .5; font-weight: 700; }
.community-note h3 { font-size: 2rem; line-height: 1.15; margin: 12px 0 16px; letter-spacing: -.03em; }
.community-note p { color: var(--muted); }

.discussion-section { padding: 80px 0 110px; }
.discussion-layout { display: grid; grid-template-columns: 290px minmax(0, 700px); justify-content: space-between; gap: 80px; }
.discussion-intro h2 { font-size: 2.4rem; margin: 8px 0 10px; letter-spacing: -.03em; }
.discussion-intro p { color: var(--muted); }
.comment-form, .login-callout { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.comment-form > label { display: block; font-weight: 800; margin-bottom: 10px; }
.comment-form textarea { width: 100%; resize: vertical; border: 1px solid var(--line); background: #fff; padding: 14px; outline: 0; border-radius: 16px; }
.comment-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,26,26,.08); }
.comment-form > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; }
.comment-form small { color: var(--muted); }
.login-callout { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.login-callout b, .login-callout span { display: block; }
.login-callout span { color: var(--muted); font-size: .82rem; }
.comment { border-top: 1px solid var(--line); padding: 25px 0; }
.comment header { display: flex; gap: 13px; align-items: center; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; }
.comment header b, .comment header time { display: block; }
.comment header time { color: var(--muted); font-size: .68rem; }
.comment > p { margin: 14px 0 0 53px; }
.blurred-name { filter: blur(5px); user-select: none; display: inline-block; }
.empty-comments { background: var(--white); border-radius: var(--radius-sm); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.empty-comments b, .empty-comments span { display: block; }
.empty-comments span { color: var(--muted); font-size: .83rem; }

.about-hero, .admin-hero { background: var(--ink); color: #fff; padding: 72px 0 80px; border-radius: 0 0 36px 36px; }
.about-hero h1, .admin-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.05em; margin: 18px 0 22px; font-weight: 800; }
.about-hero p { color: #cbc5b8; font-size: 1.08rem; max-width: 700px; }
.about-content { padding: 90px 0; }
.principles article { display: grid; grid-template-columns: 65px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles article > span { color: var(--ink); font-size: 1.2rem; font-weight: 800; }
.principles h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.02em; }
.principles p { margin: 8px 0 0; color: var(--muted); }

.auth-section { min-height: 70vh; padding: 48px 20px 80px; }
.auth-card { width: min(520px, 100%); margin: 0 auto; background: var(--white); border-radius: 32px; box-shadow: var(--shadow); padding: 42px; }
.auth-card h1 { font-size: 2.4rem; margin: 8px 0; letter-spacing: -.04em; }
.auth-card > p { color: var(--muted); }
.stack-form, .editor-form { display: grid; gap: 19px; }
.stack-form { margin-top: 28px; }
.stack-form label, .editor-form label { display: grid; gap: 7px; color: #49463f; font-size: .78rem; font-weight: 800; }
.stack-form input, .stack-form textarea, .stack-form select, .editor-form input, .editor-form textarea, .editor-form select, .moderation-list select { width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px 14px; outline: none; color: var(--ink); border-radius: 14px; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus, .editor-form input:focus, .editor-form textarea:focus, .editor-form select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,26,26,.08); }
.stack-form small { color: var(--muted); font-weight: 500; }
.stack-form textarea { min-height: 140px; resize: vertical; }
.suggest-card { width: min(560px, 100%); }
.suggest-login { margin: 28px 0 0; padding: 0; box-shadow: none; background: transparent; }
.suggest-inline { margin-top: 16px; color: var(--muted); font-size: .88rem; }
.suggest-inline a { font-weight: 800; }
.compact-suggest { margin-top: 0; }
.admin-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.admin-filter-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; font-weight: 800; font-size: .82rem; }
.admin-filter-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.auth-switch { text-align: center; font-size: .83rem; }
.auth-switch a { font-weight: 800; }
.form-errors { border-radius: 16px; background: var(--coral-soft); padding: 12px 16px; margin: 20px 0; }
.form-errors p { margin: 5px 0; font-weight: 700; font-size: .83rem; }

.admin-hero { padding: 56px 0 64px; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.admin-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 10px 0 16px; }
.admin-hero p { color: #c6c0b3; max-width: 680px; }
.admin-section { padding: 80px 0 110px; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 850px; }
.admin-table th { text-align: left; background: var(--cream-deep); padding: 14px; font-size: .67rem; text-transform: uppercase; letter-spacing: .09em; }
.admin-table td { border-top: 1px solid var(--line); padding: 15px 14px; font-size: .82rem; }
.admin-table td b, .admin-table td small { display: block; }
.admin-table td small { color: var(--muted); }
.admin-table td > a, .table-actions a { font-weight: 800; margin-left: 6px; }
.table-actions { white-space: nowrap; }
.admin-comments-heading { margin-top: 75px; }
.moderation-list article { display: grid; grid-template-columns: 1fr auto; gap: 24px; border-top: 1px solid var(--line); padding: 23px 0; }
.moderation-list article span { display: block; color: var(--muted); font-size: .7rem; }
.moderation-list article p { margin: 8px 0 0; }
.moderation-list form { display: flex; align-items: center; gap: 10px; }
.admin-form-section { padding: 70px 0 110px; }
.form-shell { max-width: 980px; }
.form-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 28px; margin-bottom: 35px; }
.form-page-heading .back-link { margin-bottom: 12px; }
.form-page-heading h1 { font-size: 2.8rem; line-height: 1; margin: 0; letter-spacing: -.04em; }
.form-page-heading p { color: var(--muted); margin-bottom: 0; }
.editor-form { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.three-columns { grid-template-columns: repeat(3, 1fr); align-items: end; }
.span-two { grid-column: span 2; }
.editor-form textarea { resize: vertical; }
.editor-form .body-editor { line-height: 1.7; }
.check-label { grid-template-columns: auto 1fr !important; align-items: center; background: var(--cream); padding: 13px; border-radius: 14px; }
.check-label input { width: auto; }
.form-actions { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.form-actions a { font-weight: 800; font-size: .8rem; }
.compact-editor { margin-bottom: 35px; }
.editor-record-list { border-top: 1px solid var(--line); }
.editor-record-list article { display: grid; grid-template-columns: 115px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.editor-record-list b, .editor-record-list p { display: block; margin: 0; }
.editor-record-list p { color: var(--muted); font-size: .75rem; }
.editor-record-list a { font-weight: 800; }

.not-found { margin-block: 120px; }
.not-found h1 { font-size: 2.2rem; }
.site-footer { background: var(--ink); color: #d7d1c5; padding: 70px 0 25px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 70px; align-items: start; }
.brand-footer { color: #fff; }
.brand-footer .brand-logo { height: 52px; }
.footer-grid p { margin: 0; color: #aaa497; font-size: .82rem; }
.footer-grid nav { display: grid; gap: 10px; font-size: .78rem; font-weight: 700; }
.site-footer nav a[href*="representation"] { color: var(--gold); }
.site-footer nav a[href*="representation"]:hover,
.site-footer nav a[href*="representation"]:focus,
.site-footer nav a[href*="representation"]:focus-visible {
    color: color-mix(in srgb, var(--gold) 72%, #fff);
}
.footer-bottom { border-top: 1px solid #3a3933; margin-top: 45px; padding-top: 22px; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 980px) {
    .hero-search { grid-template-columns: 1fr 1fr; }
    .search-submit { grid-column: 1 / -1; }
    .search-field:nth-child(2) { border-right: 0; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-card-banner { height: 96px; }
    .method-grid { grid-template-columns: 1fr 1fr; }
    .method-grid .button { grid-column: 1 / -1; width: max-content; }
    .profile-title-row { grid-template-columns: auto 1fr; }
    .verdict-stamp { grid-column: 2; }
    .article-layout { grid-template-columns: 190px 1fr; gap: 45px; }
    .discussion-layout { grid-template-columns: 230px 1fr; gap: 45px; }
    .community-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid nav { grid-column: 2; }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 28px, 1180px); }
    :root { --header-sticky-top: 10px; }
    .site-header { top: var(--header-sticky-top); }
    .page-home .site-header { top: 12px; }
    .nav-pill { border-radius: 28px; padding: 8px 10px 8px 14px; position: relative; flex-wrap: wrap; }
    .brand-logo { height: 32px; }
    .nav-toggle { display: block; border: 0; background: #fff; color: var(--ink); padding: 8px 14px; font-weight: 800; border-radius: var(--pill); }
    .site-nav {
        display: none; width: 100%;
        padding: 8px 8px 14px;
        flex-direction: column; align-items: stretch; gap: 12px;
    }
    .site-nav.open { display: flex; }
    .site-nav .button { width: 100%; }
    .home-hero { padding: 120px 0 130px; min-height: auto; }
    .hero-copy h1 { max-width: none; }
    .hero-search { grid-template-columns: 1fr; border-radius: 28px; }
    .search-field { border-right: 0; border-bottom: 1px solid var(--line); }
    .search-field:last-of-type { border: 0; }
    .category-overlap { margin-top: -56px; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .directory-section, .snapshot-section, .article-section, .update-section, .sources-section, .community-section, .discussion-section, .about-content { padding: 56px 0; }
    .section-heading { display: block; }
    .company-grid, .snapshot-grid { grid-template-columns: 1fr; }
    .company-card-banner { height: 80px; }
    .method-grid { grid-template-columns: 1fr; padding: 18px; }
    .profile-hero, .about-hero, .admin-hero { padding-top: 48px; }
    .auth-section { padding: 36px 14px 45px; }
    .profile-title-row { grid-template-columns: 72px 1fr; gap: 16px; }
    .profile-monogram { width: 72px; height: 72px; font-size: 2rem; border-radius: 20px; }
    .profile-title h1 { font-size: 2.6rem; }
    .profile-nav { top: var(--subnav-sticky-top); padding-inline: 14px; }
    .receipt-list li { grid-template-columns: 1fr; padding: 18px; }
    .article-layout, .discussion-layout { grid-template-columns: 1fr; gap: 28px; }
    .article-rail { position: static; }
    .source-list li { grid-template-columns: 40px 1fr; }
    .source-list li > a { grid-column: 2; }
    .poll-card { padding: 22px; }
    .poll-option { grid-template-columns: 22px 1fr; }
    .poll-option.is-static { grid-template-columns: 1fr; }
    .poll-number { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
    .poll-option.is-static .poll-number { grid-column: 1; }
    .login-callout, .comment-form > div { align-items: stretch; flex-direction: column; }
    .comment > p { margin-left: 0; }
    .auth-card { padding: 28px 22px; }
    .admin-title-row, .form-page-heading { align-items: start; flex-direction: column; }
    .two-columns, .three-columns { grid-template-columns: 1fr; }
    .span-two { grid-column: auto; }
    .form-actions { align-items: stretch; flex-direction: column; }
    .moderation-list article { grid-template-columns: 1fr; }
    .editor-record-list article { grid-template-columns: 1fr auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid nav { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
