/* ═══════════════════════════════════════════════════════════════════════════
   Public Brand Report Pages — BrandsIndexPage + BrandReportPage (/brands)
   NorthGrid-style deep-dive layout.
   All colors via design tokens in styling.css :root / [data-theme="dark"]
   ═══════════════════════════════════════════════════════════════════════════ */

.br-page {
    max-width: 760px;
    padding-top: 48px;
    padding-bottom: 80px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.br-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.br-eyebrow-dot {
    margin-right: 6px;
    font-size: 9px;
    vertical-align: 2px;
}

.br-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin: 0 0 16px;
}

.br-archive-banner {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.br-verified-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.br-verified-row strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ── Narrative ───────────────────────────────────────────────────────────── */

.br-narrative {
    margin-bottom: 40px;
}

.br-narrative-p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-primary);
    margin: 0 0 18px;
}

.br-narrative-p--lead::first-letter {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 800;
    line-height: 0.9;
    color: var(--accent);
    float: left;
    padding: 4px 8px 0 0;
}

/* ── Shared card ─────────────────────────────────────────────────────────── */

.br-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* ── Constellation ───────────────────────────────────────────────────────── */

.br-constellation-card {
    padding: 28px 24px 18px;
    text-align: center;
    margin-bottom: 48px;
}

.br-constellation {
    width: 100%;
    max-width: 380px;
    height: auto;
}

.br-orbit {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 1;
}

.br-lens-thread {
    stroke: var(--border-subtle);
    stroke-width: 1;
}

.br-lens-dot {
    fill: var(--bg-primary);
    stroke: var(--border);
    stroke-width: 1.25;
}

.br-lens.is-lit .br-lens-dot {
    stroke: var(--accent);
}

.br-lens-label {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    fill: var(--text-muted);
}

.br-lens.is-lit .br-lens-label {
    fill: var(--text-primary);
}

.br-core {
    fill: var(--color-charcoal);
    stroke: var(--accent);
    stroke-width: 2;
}

/* The core node keeps its fixed charcoal fill in both themes, so its text is
   the fixed cream — never the theme-flipped inverse token. */
.br-core-name {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    fill: var(--color-cream);
}

.br-core-score {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    fill: var(--accent);
}

.br-constellation-caption {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 14px 0 0;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.br-section {
    margin-bottom: 48px;
}

.br-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin: 0 0 18px;
}

.br-section-dot {
    color: var(--accent);
    font-size: 15px;
    margin-right: 2px;
}

/* ── At a glance tiles ───────────────────────────────────────────────────── */

.br-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.br-tile {
    padding: 20px 18px 16px;
}

.br-tile-value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.br-tile-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Social reach ────────────────────────────────────────────────────────── */

.br-verified-dot {
    color: var(--accent);
    font-size: 8px;
    margin-left: 5px;
    vertical-align: 1px;
}

.br-social-handle {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    margin-top: 8px;
}

.br-social-handle:hover {
    text-decoration: underline;
}

.br-tile-value--up   { color: var(--accent-sage); }
.br-tile-value--down { color: var(--accent); }

/* ── Brand identity ──────────────────────────────────────────────────────── */

.br-identity-card {
    padding: 24px 26px;
}

.br-tagline {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 0 0 18px;
}

.br-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.br-chip {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
}

.br-chip--value {
    color: var(--accent);
    background: var(--accent-light);
    border-color: transparent;
}

.br-chip--link {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

.br-chip--link:hover {
    border-color: var(--accent);
}

.br-chip--current {
    color: var(--text-primary);
    border-color: var(--accent);
}

.br-history {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.br-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.br-swatch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.br-swatch-chip {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: inline-block;
}

.br-swatch-hex {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}

.br-fonts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 18px;
}

.br-font {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Tech stack ──────────────────────────────────────────────────────────── */

.br-tech-card {
    padding: 24px 26px;
}

.br-tech-group + .br-tech-group {
    margin-top: 18px;
}

.br-tech-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ── Key people ──────────────────────────────────────────────────────────── */

.br-people {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.br-person {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
}

.br-person--lead {
    border-color: var(--accent);
    background: var(--accent-light);
}

.br-person-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-charcoal);
    color: var(--color-cream);
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
}

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

.br-person-id {
    flex: 1;
    min-width: 0;
}

.br-person-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.br-person-title {
    font-size: 13px;
    color: var(--text-secondary);
}

.br-person-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* ── Brand Score ─────────────────────────────────────────────────────────── */

.br-score-card {
    overflow: hidden;
}

.br-score-top {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 26px 20px;
}

.br-score-ring {
    width: 116px;
    height: 116px;
    flex-shrink: 0;
}

.br-ring-track {
    fill: none;
    stroke: var(--bg-muted);
    stroke-width: 9;
}

.br-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 9;
    stroke-linecap: round;
}

.br-ring-value {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    fill: var(--text-primary);
}

.br-ring-denom {
    font-family: var(--font-ui);
    font-size: 12px;
    fill: var(--text-muted);
}

.br-score-headline {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin: 0 0 6px;
}

.br-score-sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.br-score-locked {
    position: relative;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.br-score-blur {
    filter: blur(5px);
    opacity: 0.55;
    padding: 18px 26px;
    user-select: none;
    pointer-events: none;
}

.br-score-blur-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 7px 0;
}

.br-score-gate {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.br-score-gate-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.br-cta-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-ui);
    padding: 11px 22px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.br-cta-btn:hover {
    background: var(--accent-hover);
}

/* ── Related hunts ───────────────────────────────────────────────────────── */

.br-related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.br-related-card {
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.br-related-card:hover {
    border-color: var(--accent);
}

.br-related-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.br-related-industry {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.br-related-score {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 10px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.br-footer {
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 28px;
}

.br-footer-brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.br-footer-brand span {
    color: var(--accent);
    margin-right: 4px;
}

.br-footer-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.br-inline-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.br-inline-link:hover {
    text-decoration: underline;
}

/* ── Index page ──────────────────────────────────────────────────────────── */

.br-index-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 36px;
}

.br-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.br-index-card {
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.br-index-card:hover {
    border-color: var(--accent);
}

.br-index-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.br-index-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--bg-secondary);
}

.br-index-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.br-index-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 10px;
}

.br-index-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.br-version-chip {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 999px;
    padding: 3px 9px;
}

/* ── States: skeleton / 404 / error ──────────────────────────────────────── */

.br-skeleton {
    padding-top: 8px;
}

.br-skel {
    background: var(--bg-muted);
    border-radius: 8px;
    margin-bottom: 16px;
    animation: br-pulse 1.4s ease-in-out infinite;
}

.br-skel--eyebrow { width: 180px; height: 14px; }
.br-skel--title   { width: 80%;   height: 40px; }
.br-skel--body    { width: 100%;  height: 90px; }
.br-skel--card    { width: 100%;  height: 300px; }

@keyframes br-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.br-not-found {
    text-align: center;
    padding: 80px 0;
}

.br-nf-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 12px;
}

.br-nf-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin: 0 0 8px;
}

.br-nf-sub {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 22px;
}

.br-error {
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .br-title { font-size: 32px; }

    .br-score-top {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}
