/* issuer-detail.css — issuer detail page layout, extracted verbatim from the
   former Alpine static/pages/issuer.html at the Alpine→Lit cutover. Linked by the
   baked per-issuer pages (build-issuer-pages.mjs). */
/* Page Layout */
        .issuer-page {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Section */
        .issuer-header {
            display: flex;
            align-items: flex-start;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        .issuer-logo-large {
            width: 80px;
            height: 80px;
            background: #fff;
            border: 1px solid var(--card-border);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }
        .issuer-logo-large img {
            width: 72%;
            height: 72%;
            object-fit: contain;
            display: block;
        }
        .issuer-logo-large.is-mono {
            background: var(--logo-color, var(--accent));
            color: #fff;
            font-size: 1.9rem;
            font-weight: 800;
        }
        .issuer-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }
        .issuer-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--muted);
            font-size: 0.875rem;
            margin-top: 0.5rem;
            flex-wrap: wrap;
        }
        .issuer-type-badge {
            background: rgba(99, 255, 226, 0.1);
            color: var(--accent);
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }
        /* Light mode: var(--accent) #0e7490 on the pale-teal badge lands at ~4.38:1 (just
           under AA); deepen the text so it clears 4.5. */
        [data-theme="light"] .issuer-type-badge {
            color: #0b5d6e;
        }
        .issuer-link {
            color: var(--accent);
            text-decoration: none;
        }
        .issuer-link:hover {
            text-decoration: underline;
        }
        .action-links {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }
        .action-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: var(--card);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            color: var(--fg);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.15s;
        }
        .action-link:hover {
            border-color: var(--accent);
            color: var(--accent);
        }
        .action-link svg {
            width: 16px;
            height: 16px;
        }

        /* Enforcement summary — headline matches the home top-token card; the
           three breakdown stats (blacklist/freeze/seizure) sum to the headline.
           Scoped, self-contained classes so the global .stat-card (app.css
           display:flex) can never leak in and clip the labels. */
        .issuer-enforce {
            display: grid;
            grid-template-columns: minmax(200px, 0.9fr) 1.7fr;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .issuer-enforce-total {
            background: color-mix(in srgb, var(--accent) 9%, var(--card));
            border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--card-border));
            border-radius: 14px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .ie-total-value {
            font-size: clamp(2.2rem, 4vw, 3rem);
            font-weight: 800;
            color: var(--accent);
            line-height: 1;
            letter-spacing: -0.02em;
        }
        .ie-total-label {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--fg);
            margin-top: 0.6rem;
            line-height: 1.3;
        }
        .ie-total-sub {
            font-size: 0.8rem;
            color: var(--muted);
            margin-top: 0.4rem;
        }
        .issuer-enforce-breakdown {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }
        .ie-stat {
            background: var(--card);
            border: 1px solid var(--card-border);
            border-radius: 14px;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            min-width: 0;
        }
        .ie-stat-value {
            font-size: clamp(1.5rem, 2.5vw, 2rem);
            font-weight: 800;
            color: var(--fg);
            line-height: 1;
        }
        .ie-stat-label {
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--muted);
        }
        @media (max-width: 760px) {
            .issuer-enforce { grid-template-columns: 1fr; }
        }
        @media (max-width: 460px) {
            .issuer-enforce-breakdown { grid-template-columns: 1fr; }
        }

        /* Two Column Layout */
        .content-grid {
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 1.5rem;
        }
        @media (max-width: 900px) {
            .content-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Section Cards */
        .section-card {
            background: var(--card);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 1.5rem;
        }
        .section-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--card-border);
            font-weight: 600;
        }
        .section-header svg {
            width: 20px;
            height: 20px;
            color: var(--accent);
        }
        .section-content {
            padding: 1.25rem;
        }

        /* About Section */
        .about-text {
            color: var(--fg);
            line-height: 1.7;
            white-space: pre-line;
        }
        .about-meta {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--card-border);
        }
        .meta-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }
        .meta-label {
            font-size: 0.75rem;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .meta-value {
            font-weight: 500;
        }
        .social-links {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: var(--bg-secondary);
            border-radius: 8px;
            color: var(--muted);
            transition: all 0.15s;
        }
        .social-link:hover {
            background: var(--accent);
            color: var(--bg);
        }
        .social-link svg {
            width: 18px;
            height: 18px;
        }

        /* Token Overview */
        .token-detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--card-border);
        }
        .token-detail-row:last-child {
            border-bottom: none;
        }
        .token-detail-label {
            color: var(--muted);
            font-size: 0.875rem;
        }
        .token-detail-value {
            font-weight: 500;
        }

        /* Deployments */
        .deployment-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 1rem;
            background: var(--bg-secondary);
            border-radius: 8px;
            margin-bottom: 0.5rem;
            transition: background 0.15s;
            flex-wrap: wrap;
        }
        .deployment-row:hover {
            background: rgba(99, 255, 226, 0.05);
        }
        .deployment-note {
            flex-basis: 100%;
            margin-top: 0.5rem;
            padding: 0.5rem 0.75rem;
            background: rgba(250, 204, 21, 0.08);
            border-left: 3px solid rgba(250, 204, 21, 0.7);
            border-radius: 4px;
            color: var(--muted);
            font-size: 0.78rem;
            line-height: 1.4;
        }
        .deployment-note strong {
            color: var(--fg);
            font-weight: 600;
        }
        .chain-logo {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 700;
            flex-shrink: 0;
        }
        .deployment-info {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }
        .deployment-chain {
            font-weight: 500;
        }
        .deployment-address {
            color: var(--muted);
            font-size: 0.8rem;
            font-family: monospace;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .deployment-controller {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            min-width: 0;
        }
        .deployment-controller-label {
            color: var(--muted);
            font-size: 0.75rem;
        }
        .deployment-actions {
            display: flex;
            gap: 0.5rem;
        }
        .deployment-btn {
            padding: 0.375rem 0.75rem;
            background: transparent;
            border: 1px solid var(--card-border);
            border-radius: 6px;
            color: var(--muted);
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.15s;
            text-decoration: none;
        }
        .deployment-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* Capabilities */
        .capability-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--card-border);
        }
        .capability-item:last-child {
            border-bottom: none;
        }
        .capability-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .capability-icon.yes {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
        }
        .capability-icon.no {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }
        .capability-content {
            flex: 1;
        }
        .capability-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        .capability-desc {
            font-size: 0.8rem;
            color: var(--muted);
        }

        /* Recent Events */
        .event-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--card-border);
        }
        .event-row:last-child {
            border-bottom: none;
        }
        .event-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.75rem;
        }
        .event-icon.blacklist {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }
        .event-icon.whitelist {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
        }
        .event-icon.freeze {
            background: rgba(59, 130, 246, 0.15);
            color: #3b82f6;
        }
        .event-icon.other {
            background: rgba(156, 163, 175, 0.15);
            color: #9ca3af;
        }
        .event-content {
            flex: 1;
            min-width: 0;
        }
        .event-type {
            font-weight: 500;
            font-size: 0.875rem;
        }
        .event-target {
            font-size: 0.75rem;
            font-family: monospace;
            color: var(--muted);
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .event-meta {
            text-align: right;
            flex-shrink: 0;
        }
        .event-time {
            font-size: 0.75rem;
            color: var(--muted);
        }
        .event-chain {
            font-size: 0.7rem;
            color: var(--muted);
            opacity: 0.7;
        }
        .view-all-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem;
            background: var(--bg-secondary);
            color: var(--accent);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: background 0.15s;
        }
        .view-all-link:hover {
            background: rgba(99, 255, 226, 0.1);
        }
        .view-all-link svg {
            width: 14px;
            height: 14px;
        }

        /* Event Breakdown */
        .breakdown-bar {
            display: flex;
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
            background: var(--bg-secondary);
            margin-bottom: 1rem;
        }
        .breakdown-segment {
            height: 100%;
            transition: width 0.3s;
        }
        .breakdown-segment.blacklist { background: #ef4444; }
        .breakdown-segment.whitelist { background: #22c55e; }
        .breakdown-segment.freeze { background: #3b82f6; }
        .breakdown-segment.other { background: #9ca3af; }
        .breakdown-legend {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
        }
        .legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        .legend-dot.blacklist { background: #ef4444; }
        .legend-dot.whitelist { background: #22c55e; }
        .legend-dot.freeze { background: #3b82f6; }
        .legend-dot.other { background: #9ca3af; }
        .legend-count {
            color: var(--muted);
            margin-left: auto;
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 2rem;
            color: var(--muted);
        }
        .empty-state svg {
            width: 48px;
            height: 48px;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

/* Enrichment: About / Screening / FAQ prose inside section-content (2026-07-03) */
.issuer-page .section-content p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}
.issuer-page .section-content p:last-child { margin-bottom: 0; }
.issuer-page .section-content a { color: var(--accent); text-decoration: none; }
.issuer-page .section-content a:hover { text-decoration: underline; }
.issuer-page details.issuer-faq { border-top: 1px solid var(--card-border); padding: 0.75rem 0 0; margin-top: 0.75rem; }
.issuer-page details.issuer-faq:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.issuer-page details.issuer-faq summary { color: var(--fg); font-weight: 600; cursor: pointer; font-size: 0.9375rem; }
.issuer-page details.issuer-faq p { margin: 0.5rem 0 0; }
