/* Stats page - Figma design */
/* Blue complement tokens (nav pills + assumptions icons); only when .stats-page wraps content */
.stats-page {
    --color-cert-complement-50: #e8f2fc;
    --color-cert-complement-border: #88b0db;
    --color-cert-complement-600: #1763cb;
}

/* Sentinel sits above sticky submenu; when it leaves the viewport (below header), subnav gets --scrolled */
.stats-subnav-sentinel {
    height: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
    visibility: hidden;
}

.stats-page.stats-page--ribbons-top {
    position: sticky;
    top: 72px;
    z-index: 90;
    border: none;
    margin-top: 24px;
    margin-bottom: 0;
    padding: 8px 0 10px;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

/* Full-viewport-width background layer (animated on scroll via --scrolled) */
.stats-page.stats-page--ribbons-top::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    z-index: -1;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0);
    box-shadow: none;
    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}

.stats-page.stats-page--ribbons-top.stats-page--ribbons-top--scrolled::before {
    background-color: #fff;
    box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.14);
}

/* In-page anchors: land below sticky site header (72px) with a little air */
.stats-page .section[id] {
    scroll-margin-top: 5.5rem;
}

/* Cert pages with sticky section nav: offset anchors for header + submenu */
body:has(.stats-page--ribbons-top) .stats-page .section[id] {
    scroll-margin-top: calc(72px + 4.75rem);
}

@media (max-width: 640px) {
    .stats-page.stats-page--ribbons-top {
        top: 60px;
    }

    body:has(.stats-page--ribbons-top) .stats-page .section[id] {
        scroll-margin-top: calc(60px + 4.75rem);
    }
}

/* Specifications card: optional legacy column layout */
.stats-page .stats-public-specs-columns {
    display: none !important;
}

.stats-page .stats-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: .912rem;
    margin-top: .912rem;
}

/* Badge / trust failure: directly under page title */
.stats-page .stats-cert-trust-banner {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto 1rem;
    box-sizing: border-box;
}

.stats-page .stats-cert-trust-banner .stats-trust-cert-badge {
    margin-top: 0.35rem;
}

.stats-page .stats-cert-trust-banner .stats-trust-badge-fail {
    margin-top: 0.35rem;
    margin-left: auto;
    margin-right: auto;
}

.stats-page .stats-subtitle {
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 8px 0;
    margin-bottom: 20px;
}

.stats-page .stats-cert-lead {
    font-size: 17px;
    line-height: 1.45;
    max-width: 90%;
    margin: 0 auto 16px;
    color: #333;
    margin-bottom: 24px
}


/* Lead: small color chips (match certified vs neutral UI) */
.stats-page .stats-cert-swatch {
    display: inline-block;
    width: 1.25em;
    height: 0.52em;
    margin-right: 0.3em;
    vertical-align: 0.1em;
    border-radius: 2px;
    line-height: 0;
}

/* Match .stats-summary-card (e.g. Certification date pill) */
.stats-page .stats-cert-swatch--green {
    background: #ecfae8;
    border: 1px solid #3fbb14;
    box-sizing: border-box;
}

.stats-page .stats-cert-swatch--white {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.stats-page .stats-lite-note {
    margin: 1rem 0 1.25rem;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.stats-page .stats-manifest-intro {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.stats-page .stats-manifest-sha {
    margin: 1rem 0;
}

.stats-page .stats-manifest-sha-value {
    word-break: break-all;
    font-size: 14px;
}

.stats-page .stats-manifest-pre {
    background: #f4f4f6;
    border: 1px solid #d9dade;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.45;
    overflow-x: auto;
    max-height: 28rem;
    overflow-y: auto;
}

.stats-page .stats-manifest-hint {
    margin-top: 12px;
    font-size: 14px;
}

.stats-page .stats-inline-compare {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #c5d4e8;
    border-radius: 10px;
}

.stats-page .stats-inline-compare-title {
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 15px;
}

.stats-page .stats-verification-status {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* Summary cards (green-accent boxes) */
.stats-summary-cards {
    margin-bottom: 32px;
}

.stats-summary-cards .col {
    display: flex;
}

.stats-summary-ethereum-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.stats-summary-card {
    background: #ecfae8;
    border: 1px solid #3fbb14;
    border-radius: 16px;
    padding: 20px;
    height: 120px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-summary-label {
    font-size: 15px;
    color: #0a0a0a;
    display: block;
    margin-bottom: 8px;
}

.stats-summary-value {
    font-size: 16px;
    font-weight: 600;
}

.stats-summary-value--green {
    color: #3fbb14;
}

/* Functions Verified: numerator and denominator both green and bold */
.stats-summary-functions-verified .stats-summary-fv-num,
.stats-summary-functions-verified .stats-summary-fv-denom {
    color: #3fbb14;
    font-weight: 700;
}

.stats-summary-functions-verified .stats-summary-fv-sep {
    color: #3fbb14;
    font-weight: 700;
}

.stats-summary-value--blue {
    color: #217ef0;
    text-decoration: underline;
}

.stats-summary-value--blue:hover {
    text-decoration: underline;
}

/* Package Summary / Info cards */
.stats-card {
    background: #ffffff;
    border: 1px solid #d9dade;
    border-radius: 16px;
    padding: 24px;
    margin: 0 12px 24px 12px;
}

.stats-card h5 {
    margin: 0 0 16px 0;
    font-size: 24px;
}

.stats-card h6 {
    font-size: 21px;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

.stats-project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 16px 0;
}

.stats-project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 500;
}

.stats-project-link:hover {
    text-decoration: underline;
}

.stats-verified-example {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.stats-verified-example-label {
    font-weight: 600;
    color: #0a0a0a;
}

.stats-verified-example-link {
    font-weight: 500;
}

/* Verify it yourself section */
.stats-verify-steps {
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    padding-left: 24px;
    color: #0a0a0a;
}

.stats-verify-steps li {
    margin-bottom: 16px;
}

.stats-verify-steps a {
    color: #217ef0;
    text-decoration: underline;
}

.stats-verify-steps a:hover {
    text-decoration: underline;
}

/* Section titles above script vs manual lists */
.stats-card .stats-verify-section-title {
    margin: 1rem 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.3;
}

.stats-card ol.stats-verify-steps + .stats-verify-section-title {
    margin-top: 1.75rem;
}

.stats-card .stats-verify-section-title + p.grey-text {
    margin-top: -4px;
    margin-bottom: 10px;
}

.stats-card .stats-verify-section-title.stats-verify-step-title--large {
    font-size: 24px;
    margin-bottom: 6px;
    line-height: 1.25;
}

/* Step subheads inside Verify it yourself (override .stats-card h6) */
.stats-card .stats-verify-steps .stats-verify-step-title {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.35;
}

.stats-card .stats-verify-steps .stats-verify-step-title--large {
    font-size: 24px;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.stats-verify-command {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f4f5f8;
    border: 1px solid #d9dade;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    overflow-x: auto;
}

.stats-verify-command code {
    color: #0a0a0a;
}

.stats-verify-command--with-copy {
    position: relative;
    padding-right: 46px;
}

.stats-verify-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 1px solid #d0d1d4;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.stats-verify-copy-btn .material-icons {
    font-size: 16px;
    line-height: 1;
}

.stats-verify-copy-btn:hover {
    background: #f8f9fb;
}

.stats-verify-copy-btn--copied {
    color: #2e7d32;
    border-color: #2e7d32;
}

.stats-description {
    font-size: 16px;
    line-height: 24px;
    color: #0a0a0a;
    margin: 0 0 16px 0;
}

.stats-assumptions-db-box {
    margin-top: 8px;
    border: 1px solid #d9dade;
}

/* Package summary markdown: center SVG (inline SVG + margin:auto is unreliable across themes) */
.stats-page .stats-description--markdown .stats-package-summary-figure {
    display: block;
    text-align: center;
    margin: 0.35rem 0 0.65rem;
}
.stats-page .stats-description--markdown .stats-package-summary-figure svg {
    display: inline-block;
    max-width: 80%;
    height: auto;
    vertical-align: middle;
}

.stats-card ul,
.stats-applications-list {
    font-size: 16px;
    line-height: 24px;
    margin: 16px 0 0 24px;
    padding: 0 0 0 16px;
}

/* Applications bullets - use ::before to override global list-style:none */
.stats-applications-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.stats-application-item {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    color: #0a0a0a;
}

.stats-application-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0a0a0a;
    font-size: 18px;
    line-height: 24px;
}

.stats-card ul li {
    margin-bottom: 8px;
}

/* Section tags / ribbons */
.stats-section-ribbons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
    align-items: center;
    margin: 0 12px 20px 12px;
}

.stats-section-ribbons__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Section nav ribbons: all use data-accent="blue" (see stats.php). */
.stats-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 16px 24px;
    border-radius: 90px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #0a0a0a;
    border: 1px solid transparent;
    background: transparent;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.stats-page .stats-section-ribbons .stats-ribbon[data-accent="blue"],
.stats-page .stats-section-ribbons .stats-ribbon[data-accent="mint"] {
    background: var(--color-cert-complement-50);
    border-color: var(--color-cert-complement-border);
}

.stats-ribbon:hover {
    background: #1e73da;
    border-color: #1e73da;
    color: #ffffff;
}

.stats-page .stats-section-ribbons .stats-ribbon[data-accent="blue"].stats-ribbon--active,
.stats-page .stats-section-ribbons .stats-ribbon[data-accent="mint"].stats-ribbon--active {
    background: var(--color-cert-complement-50);
    border-color: var(--color-cert-complement-600);
    color: #0a0a0a;
}

.stats-page .stats-section-ribbons .stats-ribbon--long-label {
    height: auto;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    max-width: 280px;
}

/*
 * CERT PAGE — single-row flat menu (scoped to .stats-page--ribbons-top only).
 * Delete this block to revert ribbon pills.
 */
.stats-page.stats-page--ribbons-top .stats-section-ribbons {
    margin: 0 auto 0px;
    max-width: 100%;
    gap: 0;
    padding: 0 4px;
    flex-direction: column;
    align-items: stretch;
}

.stats-page.stats-page--ribbons-top .stats-section-ribbons__row--single {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px 6px;
    padding: 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.stats-page.stats-page--ribbons-top .stats-section-ribbons .stats-ribbon[data-accent="blue"],
.stats-page.stats-page--ribbons-top .stats-section-ribbons .stats-ribbon[data-accent="mint"] {
    background: transparent;
    border-color: transparent;
}

.stats-page.stats-page--ribbons-top .stats-ribbon {
    flex: 0 0 auto;
    height: auto;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #52525b;
    border: 1px solid transparent;
    background: transparent;
    box-sizing: border-box;
    transition: color 0.15s ease, background 0.15s ease;
    box-shadow: none;
}

.stats-page.stats-page--ribbons-top .stats-section-ribbons .stats-ribbon:hover {
    background: rgba(24, 24, 27, 0.06);
    border-color: transparent;
    color: #18181b;
}

.stats-page.stats-page--ribbons-top .stats-section-ribbons .stats-ribbon:focus-visible {
    outline: 2px solid #1763cb;
    outline-offset: 2px;
}

.stats-page.stats-page--ribbons-top .stats-section-ribbons .stats-ribbon[data-accent="blue"].stats-ribbon--active,
.stats-page.stats-page--ribbons-top .stats-section-ribbons .stats-ribbon[data-accent="mint"].stats-ribbon--active {
    background: transparent;
    border-color: transparent;
    color: #0a0a0a;
    font-weight: 700;
}

.stats-page.stats-page--ribbons-top .stats-section-ribbons .stats-ribbon--long-label {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.3;
    max-width: none;
    text-align: center;
    white-space: nowrap;
}
/* end CERT PAGE flat menu nav */

/* Public Specs section */
.stats-specifications-intro {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.55;
}

.stats-specifications-intro p {
    margin: 0 0 0.65rem;
}

.stats-specifications-intro p:last-child {
    margin-bottom: 0;
}

.stats-public-specs-subtitle {
    font-size: 21px;
    font-weight: 600;
    text-align: center;
    margin: -8px 0 24px 0;
}

.stats-public-specs-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.stats-spec-box {
    background: #ecfae8;
    border: 1px solid #3fbb14;
    border-radius: 16px;
    padding: 24px;
    width: 182px;
    min-height: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-spec-box-value {
    font-size: 52px;
    font-weight: 600;
    color: #3fbb14;
    letter-spacing: -2px;
    line-height: 1;
}

.stats-spec-box-label {
    font-size: 15px;
    color: #0a0a0a;
    margin-top: 8px;
}

.stats-public-specs-boxes--three {
    justify-content: center;
}

.stats-public-specs-boxes--three .stats-spec-box {
    width: 200px;
    max-width: min(200px, 100%);
}

.stats-verified-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

/* Accordion / heading counts: default black; Specifications hero count uses .stats-verified-count-num */
.stats-stat-number {
    color: #0a0a0a;
    font-weight: 600;
}

.stats-verified-heading .stats-verified-count-num {
    color: #3fbb14;
}

.stats-card .stats-spec-accordion-group-heading .stats-stat-number {
    color: #0a0a0a;
}

.stats-verified-search-row {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-verified-search-row .stats-spec-search {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.stats-verified-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stats-page .stats-spec-accordion-group {
    margin: 0;
}

/* Same typography as “Automated script run” (.stats-verify-section-title); subline stays neutral */
.stats-card .stats-spec-accordion-group .stats-spec-accordion-group-heading {
    margin-top: 0;
    margin-bottom: 12px;
}

.stats-card .stats-spec-accordion-group:first-of-type .stats-spec-accordion-group-heading {
    margin-top: 1rem;
}

.stats-card .stats-spec-accordion-group .stats-spec-accordion-group-heading .stats-spec-accordion-sub {
    font-weight: 500;
    color: #0a0a0a;
    opacity: 0.82;
}

.stats-page .stats-spec-accordion-group-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-verified-details {
    border: 1px solid #d9dade;
    border-radius: 12px;
    background: #fafafa;
    /* allow inner ul scroll; overflow:hidden clipped scrollbars in some layouts */
    overflow: visible;
}

.stats-verified-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stats-verified-summary::-webkit-details-marker {
    display: none;
}

.stats-verified-summary::marker {
    display: none;
}

.stats-verified-summary-title {
    flex: 1;
}

.stats-accordion-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    min-width: 28px;
    height: 24px;
    border-radius: 90px;
    font-size: 13px;
    font-weight: 500;
    background: #3fbb14;
    color: #ffffff;
}

.stats-verified-details-body {
    padding: 12px 12px 16px;
    background: #ffffff;
    border-top: 1px solid #ececec;
}

/*
 * Verified-function lists (accordions): match auto-certified manifest block
 * (#ecfae8 background, #3fbb14 border — .stats-full-manifest--auto-certified .stats-manifest-pre--fulljson).
 * Selector lists BOTH .stats-verified-details-body and .stats-verified-fn-list--auto-certified so global
 * `.stats-card ul` / Materialize cannot leave the list gray.
 */
.stats-page .stats-verified-details-body > ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified,
.stats-page ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified {
    list-style: none !important;
    margin: 0.75rem 0 0 !important;
    padding: 0 !important;
    max-height: min(20rem, 45vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    min-height: 0;
    font-size: 0.82rem;
    background: #ecfae8 !important;
    border: 1px solid #3fbb14 !important;
    border-radius: 16px;
    box-sizing: border-box;
}

.stats-page .stats-verified-details-body > ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified > li,
.stats-page ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified > li {
    margin: 0 !important;
    padding: 0.35rem 0.65rem 0.35rem 0.5rem !important;
    list-style: none !important;
    border-bottom: 1px solid rgba(63, 187, 20, 0.38);
    box-shadow: inset 3px 0 0 rgba(63, 187, 20, 0.55);
    background: rgba(255, 255, 255, 0.35) !important;
}

.stats-page .stats-verified-details-body > ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified > li:last-child,
.stats-page ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified > li:last-child {
    border-bottom: 0 !important;
}

.stats-page .stats-verified-details-body > ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified > li.stats-verified-fn-li--atom-certified,
.stats-page ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified > li.stats-verified-fn-li--atom-certified {
    background: rgba(255, 255, 255, 0.65) !important;
    box-shadow: inset 4px 0 0 #3fbb14;
}

.stats-page .stats-verified-details-body > ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified .stats-verified-fn-link,
.stats-page .stats-verified-details-body > ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified .stats-verified-fn-link code,
.stats-page ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified .stats-verified-fn-link,
.stats-page ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified .stats-verified-fn-link code {
    color: #2e7d32 !important;
    font-weight: 600;
}

.stats-page .stats-verified-details-body > ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified .stats-verified-fn-link:hover,
.stats-page .stats-verified-details-body > ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified .stats-verified-fn-link:hover code,
.stats-page ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified .stats-verified-fn-link:hover,
.stats-page ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified .stats-verified-fn-link:hover code {
    color: #1b5e20 !important;
}

.stats-page .stats-card ul.stats-verified-fn-list code {
    word-break: break-word;
    white-space: normal;
    font-size: 0.8em;
}

.stats-verified-fn-link {
    display: block;
    color: #1565c0;
    text-decoration: none;
}

.stats-verified-fn-link:hover {
    text-decoration: underline;
}

.stats-verified-fn-link code {
    color: inherit;
}

.stats-section-hr,
.stats-card--public-specs hr {
    border: none;
    border-top: 1px solid #d9dade;
    margin: 16px -24px;
    width: calc(100% + 48px);
}

/* Specifications section: same green verified list as accordion body, without <details> */
.stats-card--public-specs .stats-public-specs-verified-list-wrap {
    margin-top: 0.5rem;
}

.stats-card--public-specs .stats-public-specs-verified-list-wrap ul.stats-verified-fn-list.stats-verified-fn-list--auto-certified {
    max-height: min(28rem, 60vh);
}

.stats-modules-label {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

span.stats-module-pill-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

/* Filter by + Download row */
.stats-filter-download-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    margin: 16px 0 8px 0;
}

.stats-filter-group,
.stats-download-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.stats-filter-download-divider {
    width: 1px;
    background: #d9dade;
    align-self: stretch;
}

.stats-filter-label,
.stats-download-label {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.stats-filter-pills {
    margin: 0;
}

.stats-filter-pills .stats-module-pill {
    cursor: default;
    background: #ecfae8;
    border: 1px solid #3fbb14;
}

.stats-download-buttons {
    margin: 0;
}

.stats-module-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.stats-module-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 90px;
    font-size: 13px;
    font-weight: 500;
    background: #ecfae8;
    border: 1px solid #3fbb14;
    color: #0a0a0a;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stats-module-pill:hover {
    background: #1e73da;
    border-color: #1e73da;
    color: #ffffff;
}

.stats-module-pill:hover .stats-module-pill-count {
    background: #6aa9f5;
    color: #ffffff;
}

.stats-module-pill:hover .stats-module-pill-name {
    color: #ffffff;
}

.stats-module-pill:focus,
.stats-module-pill:active {
    background: #1e73da !important;
    border-color: #1e73da !important;
    color: #ffffff !important;
    outline: none;
    box-shadow: none;
}

.stats-module-pill:focus .stats-module-pill-count,
.stats-module-pill:active .stats-module-pill-count {
    background: #6aa9f5;
    color: #ffffff;
}

.stats-module-pill--active,
.stats-module-pill--active:focus,
.stats-module-pill--active:active {
    background: #1e73da !important;
    border-color: #1e73da !important;
    color: #ffffff !important;
    outline: none;
    box-shadow: none;
}

.stats-module-pill--active .stats-module-pill-name {
    color: #ffffff;
}

.stats-module-pill--active .stats-module-pill-count {
    background: #6aa9f5;
    color: #ffffff;
}

.stats-module-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    min-width: 18px;
    height: 18px;
    border-radius: 90px;
    font-size: 12px;
    font-weight: 500;
    background: #3fbb14;
    color: #ffffff;
    transition: background 0.15s ease, color 0.15s ease;
}

.stats-download-buttons {
    display: flex;
    gap: 8px;
}

.stats-download-btn {
    width: 78px;
    height: 32px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    background: #f4f5f8;
    border: 1px solid #d9dade;
    border-radius: 6px;
    color: #000000;
    cursor: pointer;
}

.stats-download-btn:hover {
    background: #e8e9ed;
}

/* Public Specs two-column layout */
.stats-public-specs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.stats-spec-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-column-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.stats-spec-search {
    width: 100%;
    max-width: 268px;
    height: 32px;
    padding: 8px 12px;
    font-size: 15px;
    border: 1px solid #d9dade;
    border-radius: 4px;
    color: #0a0a0a;
}

.stats-spec-search::placeholder {
    color: #838486;
}

.stats-function-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-function-card {
    background: #ffffff;
    border: 1px solid #d9dade;
    border-radius: 16px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.stats-function-card--expanded {
    grid-template-rows: auto auto auto;
}

.stats-function-card--expanded .stats-function-expandable {
    grid-column: 1 / -1;
    grid-row: 3;
}

.stats-function-chevron-btn {
    grid-row: 1 / 3;
    align-self: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.stats-function-chevron-btn:hover,
.stats-function-chevron-btn:active,
.stats-function-chevron-btn:focus {
    background: none;
    box-shadow: none;
    outline: none;
    color: #0a0a0a;
}

.stats-function-chevron.material-icons {
    font-size: 36px;
    transition: transform 0.2s ease;
}

.stats-function-header {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-function-name {
    font-size: 16px;
    font-weight: 500;
    color: #0a0a0a;
}

.stats-badge-proved {
    background: #ecfae8;
    border: 1px solid #3fbb14;
    color: #3fbb14;
    font-size: 12px;
    font-weight: 500;
    padding: 0 8px;
    border-radius: 4px;
    line-height: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
}

.stats-function-links {
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.stats-function-links a {
    color: #0a0a0a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stats-function-links a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.stats-link-icon {
    font-size: 16px !important;
    vertical-align: middle;
    color: #3fbb14;
}

.stats-function-module {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
    color: #0a0a0a;
    background: #eef0f4;
    padding: 1px 8px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
    line-height: 16px;
}

.stats-function-expandable {
    margin: 8px -20px 0;
    padding: 12px 20px 0;
    border-top: 1px solid #d9dade;
}

.stats-function-code {
    margin: 0;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    background: #fafafc;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    overflow-x: auto;
    color: #0a0a0a;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.stats-function-desc {
    padding: 8px 0 12px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.stats-function-desc p {
    margin: 0;
}

.stats-function-meta {
    padding: 12px;
    background: #fef9f0;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.stats-function-meta p {
    margin: 0 0 4px 0;
}

.stats-function-meta p:last-child {
    margin-bottom: 0;
}

.stats-function-code-wrapper {
    position: relative;
}

.stats-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 14px;
    font-size: 12px;
    font-weight: 500;
    background: #F4F5F8;
    border: 1px solid #A9AAAD;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1;
    font-family: inherit;
    line-height: 20px;
    color: #0a0a0a;
}

.stats-copy-btn:hover {
    background: #f4f5f8;
}

.stats-copy-btn:focus,
.stats-copy-btn:active {
    background: #ffffff;
    outline: none;
    box-shadow: none;
}

.stats-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 36px;
    margin: 16px 0px;
}

.stats-column-header .stats-column-title {
    margin: 0;
    line-height: 32px;
}

.stats-column-header .stats-spec-search {
    margin: 0;
    height: 32px;
    padding: 0 12px;
    line-height: 32px;
    box-sizing: border-box;
    border: 1px solid #d9dade !important;
}

.stats-column-header .stats-spec-search:focus {
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .stats-public-specs-columns {
        grid-template-columns: 1fr;
    }
}

/* Stats table (Public Specs, Certification History) */
.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.stats-table thead {
    background: #3fbb14;
}

.stats-table thead th {
    color: white;
    font-weight: 600;
    padding: 16px;
    font-size: 15px;
    text-align: left;
}

.stats-table tbody td {
    padding: 16px;
    border: 1px solid #d9dade;
    font-size: 15px;
}

.stats-table tbody tr:nth-child(odd) {
    background: #fff;
}

.stats-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* On-Chain Certifications Section */
#on-chain-certifications h5 {
    margin: 0 12px 20px 12px;
}

#on-chain-certifications p.stats-section-desc {
    font-size: 16px;
    color: #0a0a0a;
    margin: -8px 12px 0 12px;
}

.stats-info-cards-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin: 0 12px 24px 12px;
}

.stats-info-cards-row .stats-info-card {
    flex: 1;
}

.stats-info-card {
    background: #ffffff;
    border: 1px solid #d9dade;
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .stats-info-cards-row {
        flex-direction: column;
    }
}

.stats-info-card .trust-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-green-50, #ecfae8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px 0;
}

.stats-info-card .trust-icon-wrapper i.material-icons {
    font-size: 36px;
    color: var(--color-green-500, #45ce16);
}

.stats-info-card h6 {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 12px 0;
}

.stats-info-card p {
    font-size: 16px;
    line-height: 24px;
    color: #0a0a0a;
    margin: 0;
}

.stats-info-card ul {
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    padding: 0 0 0 20px;
    color: #0a0a0a;
    list-style: disc;
}

.stats-info-card ul li {
    margin-bottom: 8px;
    color: #0a0a0a;
    list-style-type: disc !important;
    display: list-item !important;
    float: none !important;
    width: 100% !important;
}

/* Certification table links */
.stats-table .link-commit,
.stats-table a[href]:not(.link-download) {
    color: #1e73da;
    text-decoration: none;
}

.stats-table .link-commit:hover,
.stats-table a[href]:not(.link-download):hover {
    text-decoration: underline;
}

.link-download {
    color: #45ce16;
    text-decoration: underline;
}

.link-download:hover {
    color: #3fbb14;
}

h4 {
    color: black;
    font-size: 32px;
    line-height: 38px;
}

p {
    color: black
}

h5 {
    color: black;
    font-size: 24px;
    line-height: 29px;
}

h6 {
    color:black
}

td {
    color:black
}

/* Metric Cards Styling */
.metric-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 24px;
    min-height: 140px;
    transition: box-shadow 0.2s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.metric-card .card-icon {
    color: #333;
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.metric-card .metric-value {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0 0 8px 0;
}

.metric-card .metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-card .metric-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.metric-card .metric-percentage {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Trust Model Section */
#trust-model h5 {
    margin: 0 12px 20px 12px;
}

.trust-model-row {
    display: flex;
    flex-wrap: wrap;
}

/* Stats certificate: Materialize .col uses float:left; use CSS Grid.
   Default (hardcoded Dalek) row: exactly 8 cards — large screens use a 6-col grid + nth-child
   so rows 1–2 are 3×2 and row 3 centers the last two.
   DB-driven assumptions (.trust-model-row--db-assumptions): plain 3-column grid, any card count. */
.stats-page .trust-model-row {
    display: grid;
    gap: 20px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.stats-page .trust-model-row > .col {
    display: flex;
    margin-bottom: 0;
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

@media only screen and (max-width: 600px) {
    .stats-page .trust-model-row {
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width: 601px) and (max-width: 992px) {
    .stats-page .trust-model-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (min-width: 993px) {
    /* Variable-count DB assumption cards: three equal columns, automatic rows */
    .stats-page .trust-model-row--db-assumptions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-page .trust-model-row--db-assumptions > .col {
        min-width: 0;
    }

    .stats-page .trust-model-row--db-assumptions .trust-card--db-assumption {
        height: 100%;
        min-height: 0;
    }

    /* Hardcoded 8-card layout only */
    .stats-page .trust-model-row:not(.trust-model-row--db-assumptions) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    /* Rows 1–2: eight cards as three per row (each spans 2 of 6 columns) */
    .stats-page .trust-model-row:not(.trust-model-row--db-assumptions) > .col:nth-child(-n+6) {
        grid-column: span 2;
    }

    /* Row 3: last two cards centered as a pair */
    .stats-page .trust-model-row:not(.trust-model-row--db-assumptions) > .col:nth-child(7) {
        grid-column: 2 / span 2;
    }

    .stats-page .trust-model-row:not(.trust-model-row--db-assumptions) > .col:nth-child(8) {
        grid-column: 4 / span 2;
    }
}

.trust-model-row > .col {
    display: flex;
    margin-bottom: 20px;
}

/* Trust Model Cards */
.trust-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.trust-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trust-card .trust-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-green-50, #ecfae8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.trust-card .trust-icon-wrapper i {
    font-size: 36px;
    color: var(--color-green-500, #45ce16);
}

.stats-page .trust-card .trust-icon-wrapper {
    background: var(--color-cert-complement-50);
    border: 1px solid var(--color-cert-complement-border);
    box-sizing: border-box;
}

.stats-page .trust-card .trust-icon-wrapper i {
    color: var(--color-cert-complement-600);
}

.trust-card .trust-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.trust-card .trust-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Certification History Section */
.certification-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin: 0 12px 20px 12px;
}

.certification-card h5 {
    margin-top: 0;
    margin-bottom: 20px;
}

.certification-card .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

.certification-card table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    border-bottom: none !important;
}

.certification-card table thead {
    background: var(--color-green-500, #45ce16);
}

.certification-card table thead tr th {
    color: white;
    font-weight: 500;
    padding: 10px 16px;
    text-align: left;
    border: none;
    border-radius: 0;
    font-size: 14px;
    line-height: 3;
}

.certification-card table tbody tr td {
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-gray-600, #d9dade);
    color: #333;
    line-height: 3;
}

.certification-card table tbody tr td:first-child {
    border-left: 1px solid var(--color-gray-600, #d9dade);
}

.certification-card table tbody tr td:last-child {
    border-right: 1px solid var(--color-gray-600, #d9dade);
}

.certification-card table tbody a {
    color: var(--color-green-500, #45ce16);
    text-decoration: none;
    font-weight: 500;
}

.certification-card table tbody a:hover {
    text-decoration: underline;
}

.certification-card .certification-footer {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.certification-card .certification-footer a {
    color: var(--color-green-500, #45ce16);
    text-decoration: none;
}

.certification-card .certification-footer a:hover {
    text-decoration: underline;
}

/* Override Materialize green-text to match standard green */
.certification-card .green-text {
    color: var(--color-green);
}

/* Function Status Section */
.function-status-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin: 0 12px 20px 12px;
}

.function-status-card h5 {
    margin-top: 0;
    margin-bottom: 8px;
}

.function-status-card .stats-atoms-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.function-status-card .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

.function-status-card table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    border-bottom: none !important;
}

.function-status-card table thead {
    background: var(--color-green-500, #45ce16);
}

.function-status-card table thead tr th {
    color: white;
    font-weight: 500;
    padding: 10px 16px;
    text-align: left;
    border: none;
    border-radius: 0;
    font-size: 14px;
    line-height: 3;
}

.function-status-card table tbody tr td {
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-gray-600, #d9dade);
    color: #333;
    vertical-align: middle;
    line-height: 3;
}

.function-status-card table tbody tr td:first-child {
    border-left: 1px solid var(--color-gray-600, #d9dade);
}

.function-status-card table tbody tr td:last-child {
    border-right: 1px solid var(--color-gray-600, #d9dade);
}

.function-status-card table tbody a {
    color: var(--color-green);
}

/* Show All Functions Button */
.btn-show-all {
    background: var(--color-green);
    color: white;
    border-radius: 8px;
    padding: 0 24px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    text-align: center;
    display: inline-block;
    margin-bottom: 16px;
}

.btn-show-all:hover {
    background: var(--color-green-600, #3FBB14);
}

.function-status-card .status-footer {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-align: left;
}

.function-status-card .status-footer a {
    color: var(--color-green);
    text-decoration: none;
    font-weight: 500;
}

.function-status-card .status-footer a:hover {
    text-decoration: underline;
}

/* Override badge styles for function status */
.function-status-card .badge {
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    min-height: auto;
    height: auto;
    line-height: 1.2;
    margin: 0;
}

.function-status-card .badge.green {
    background: transparent !important;
    border: 1px solid var(--color-green);
    color: var(--color-green) !important;
}

.function-status-card .badge.green::after {
    content: " ✓";
}

.function-status-card .badge.blue {
    background: transparent !important;
    border: 1px solid #4277e0;
    color: #4277e0 !important;
}

.function-status-card .badge.grey {
    background: transparent !important;
    border: 1px solid #9e9e9e;
    color: #9e9e9e !important;
}

.function-status-card .badge.red {
    background: transparent !important;
    border: 1px solid #b80000;
    color: #b80000 !important;
}

.function-status-card .green-text {
    color: var(--color-green);
}

/* DataTables Pagination Styling */
.function-status-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid var(--color-gray-600, #d9dade);
    border-radius: 4px;
    background: #fff;
    color: #333 !important;
    min-width: 36px;
    height: 36px;
    line-height: 24px;
    padding: 6px 12px;
    margin: 0 2px;
    text-align: center;
    box-sizing: border-box;
    display: inline-block;
}

.function-status-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--color-green-50, #ecfae8) !important;
    border-color: var(--color-green) !important;
    color: var(--color-green) !important;
}

.function-status-card .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--color-green) !important;
    border-color: var(--color-green) !important;
    color: #fff !important;
}

.function-status-card .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--color-green-600, #3FBB14) !important;
    border-color: var(--color-green-600, #3FBB14) !important;
    color: #fff !important;
}

.function-status-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #999 !important;
    border-color: var(--color-gray-600, #d9dade);
    background: #f5f5f5 !important;
}

.function-status-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #f5f5f5 !important;
    color: #999 !important;
}

.function-status-card .dataTables_wrapper .dataTables_info {
    color: #666;
    font-size: 14px;
}

/* View on GitHub Button */
.btn-github {
    background: var(--color-green);
    color: white;
    border-radius: 8px;
    padding: 0 24px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: none;
    display: inline-block;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-github:hover {
    background: var(--color-green-600, #3FBB14);
    box-shadow: 0 2px 8px rgba(69, 206, 22, 0.3);
}

.btn-github:focus {
    background: var(--color-green-600, #3FBB14);
}

/* Fix Materialize badges inside tables */
table .badge {
    position: static;
    float: none;
    display: inline-block;
    margin: 0;
  }
  
  table td {
    vertical-align: middle;
  }
  
/* Fix Materialize badges inside DataTables */
table .badge {
    position: static !important;
    float: none !important;
  }
  
  table .badge:after {
    position: static !important;
    display: inline-block !important;
    margin-left: 0 !important;
  }
  
  table td {
    vertical-align: middle !important;
  }

/* Certificate page: published manifest vs Docker output comparison */
.stats-cert-manifest-compare {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.stats-cert-manifest-compare__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.stats-cert-manifest-compare__lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #424242;
}

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

.stats-cert-compare-table td {
    vertical-align: top;
    font-size: 0.9rem;
    line-height: 1.45;
}

.stats-cert-compare-table td code {
    font-size: 0.85rem;
    word-break: break-all;
}

.stats-manifest-subhead {
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.stats-manifest-fingerprint-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.stats-manifest-fingerprint-list li {
    margin: 0.35rem 0;
    line-height: 1.4;
}

.stats-download-row {
    margin: 1rem 0 0;
    line-height: 1.6;
}

.stats-manifest-pre--compact {
    max-height: 22rem;
    overflow: auto;
}

.stats-page .stats-card--trust-logic .stats-trust-logic-prose {
    font-size: 0.98rem;
    line-height: 1.55;
}

.stats-page .stats-card--trust-logic .stats-trust-logic-prose p {
    margin: 0 0 1rem;
}

.stats-page .stats-card--trust-logic .stats-trust-logic-prose a {
    color: #217ef0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.stats-page .stats-card--trust-logic .stats-trust-logic-prose a:hover {
    text-decoration-thickness: 2px;
}

.stats-page .stats-trust-goals-list {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    list-style: disc outside;
}

.stats-page .stats-card--trust-logic .stats-trust-goals-list > li > strong {
    font-weight: 700;
}

.stats-page .stats-trust-goals-list li {
    margin: 0 0 0.5rem;
}

.stats-page .stats-trust-goals-list--nested {
    margin: 0.5rem 0 0;
    padding-left: 1.5rem;
    list-style: circle outside;
}

/* Hollow (circle) bullets under Usability — Materialize resets lists unless .browser-default */
.stats-page .stats-card--trust-logic ul.stats-trust-goals-list--hollow {
    list-style: circle outside !important;
    padding-left: 1.5rem !important;
}

.stats-page .stats-trust-check-letters p {
    margin: 0 0 0.5rem;
    padding-left: 0;
}

.stats-page .stats-trust-check-letters {
    margin: 0 0 1rem;
}

.stats-page .stats-trust-after-hash-table {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
}

.stats-page .stats-trust-logic-sep {
    border: none;
    border-top: 1px solid #cfd8e6;
    margin: 1.25rem 0;
}

.stats-page .stats-trust-logic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.stats-page .stats-trust-logic-table th,
.stats-page .stats-trust-logic-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-bottom: 1px solid #e8ecf1;
}

.stats-page .stats-trust-logic-table th {
    width: 11rem;
    max-width: 36%;
    font-weight: 600;
    color: #37474f;
    padding-right: 1rem;
}

.stats-page .stats-trust-logic-table .stats-trust-hash {
    word-break: break-all;
    font-size: 0.86rem;
}

.stats-page .stats-trust-db-commit-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    color: #2e7d32;
    vertical-align: middle;
}

.stats-page .stats-trust-db-commit-check--bad {
    color: #c62828;
}

.stats-full-manifest__title {
    margin: 1.5rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.stats-full-manifest__note {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

/* Autogenerated manifest: mint only on the <pre> (same #ecfae8 / #3fbb14 as summary pills), not the outer block */
.stats-page .stats-full-manifest--auto-certified {
    margin-top: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
    box-sizing: border-box;
}

.stats-page .stats-full-manifest--auto-certified .stats-full-manifest__title {
    margin-top: 0;
    scroll-margin-top: 5.5rem;
}

.stats-manifest-alias-sep {
    color: #90a4ae;
    font-weight: 400;
    margin: 0 0.15rem;
}

.stats-trust-logic-sub {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.stats-trust-standard {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #cfd8e6;
}

.stats-trust-standard__title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    color: #37474f;
}

.stats-trust-standard__list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #455a64;
}

.stats-trust-standard__list li {
    margin-bottom: 0.75rem;
}

.stats-trust-standard__list li:last-child {
    margin-bottom: 0;
}

.stats-trust-cert-badge {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.stats-trust-cert-badge__link {
    display: inline-block;
    line-height: 0;
}

.stats-trust-cert-badge__link img,
.stats-trust-cert-badge__img {
    vertical-align: middle;
    width: min(240px, 100%);
    height: auto;
    display: block;
}

.stats-trust-cert-badge__note {
    margin: 0.6rem auto 0;
    font-size: 0.82rem;
    max-width: 36rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Trust badge withheld: centered diagnostic (operators / staging) */
.stats-trust-badge-fail {
    margin: 1.25rem auto 0;
    max-width: 42rem;
    padding: 1rem 1.25rem 1.1rem;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #c62828;
    border-radius: 12px;
    background: #ffebee;
    color: #b71c1c;
}

.stats-trust-badge-fail__badge-row {
    margin: 0 0 0.65rem;
}

.stats-trust-badge-fail__badge-img {
    display: block;
    margin: 0 auto;
}

.stats-trust-badge-fail__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #b71c1c;
}

.stats-trust-badge-fail__list {
    margin: 0.4rem auto 0;
    padding-left: 1.35rem;
    text-align: left;
    display: table;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.45;
}

.stats-trust-badge-fail__list li {
    margin-bottom: 0.35rem;
}

.stats-trust-badge-fail__list li:last-child {
    margin-bottom: 0;
}

.stats-trust-badge-fail__fallback {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    text-align: center;
}

.stats-trust-standard__lead {
    margin: 0;
}

.stats-trust-standard__sublist {
    margin: 0.55rem 0 0.65rem;
    padding-left: 1.35rem;
    list-style-type: lower-alpha;
    line-height: 1.5;
}

.stats-trust-standard__sublist > li {
    margin-bottom: 0.5rem;
}

.stats-trust-standard__sublist > li:last-child {
    margin-bottom: 0;
}

.stats-trust-standard__tail {
    margin: 0;
}

.stats-manifest-pre-wrap--with-copy {
    position: relative;
}

.stats-page .stats-full-manifest--auto-certified .stats-manifest-pre-wrap--with-copy .stats-manifest-pre--fulljson {
    padding-right: 46px;
}

.stats-page .stats-full-manifest--auto-certified .stats-manifest-pre-wrap--with-copy .stats-verify-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.stats-page .stats-full-manifest--auto-certified .stats-manifest-pre--fulljson {
    background: #ecfae8;
    border: 1px solid #3fbb14;
    border-radius: 16px;
    margin-bottom: 0;
}

.stats-sample-log__title {
    margin: 1.5rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.stats-sample-log__note {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.stats-sample-log-pre {
    max-height: 28rem;
    overflow: auto;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

.stats-digest-match-banner {
    margin: 1rem auto 0;
    max-width: 42rem;
    padding: 0.75rem 1rem;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    color: #1b5e20;
    font-size: 0.95rem;
}

.stats-manifest-pre--fulljson {
    max-height: 70vh;
    overflow: auto;
    font-size: 0.72rem;
}

/* —— Certificates list (/certificates?parent_repo_id=) — stats aesthetic —— */
.certificates-index-page__crumb {
    margin-bottom: 1.25rem;
}

.certificates-index-page__crumb a {
    color: var(--color-green-500, #45ce16);
    text-decoration: none;
}

.certificates-index-page__crumb a:hover {
    text-decoration: underline;
}

.certificates-index-page__hero {
    text-align: center;
    margin-bottom: 2rem;
}

.certificates-index-page__hero--simple {
    text-align: left;
    margin-bottom: 1.5rem;
}

.certificates-index-page__hero--simple .certificates-index-page__title {
    margin-bottom: 0.25rem;
}

.certificates-index-page__hero--simple .certificates-index-page__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 44rem;
}

.certificates-index-page__title {
    margin-bottom: 0.35rem;
}

.certificates-index-page__lead {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.certificates-index-page__meta {
    color: #616161;
    font-weight: 400;
}

.certificates-index-page__table-heading {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    font-size: 1.15rem !important;
}

.certificates-index-page__empty {
    max-width: 40rem;
    margin-left: auto !important;
    margin-right: auto !important;
}

.certificates-index-page__empty-text {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #0a0a0a;
}

.certificates-index-page__empty-hint {
    margin: 0;
    font-size: 0.95rem;
}

.stats-page.certificates-index-page .cert-repo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.4;
    color: #0a0a0a;
}

.stats-page.certificates-index-page .cert-repo-table th,
.stats-page.certificates-index-page .cert-repo-table td {
    border: 1px solid #d9dade;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.stats-page.certificates-index-page .cert-repo-table thead th {
    background: #f4f5f8;
    font-weight: 600;
    font-size: 14px;
}

.stats-page.certificates-index-page .cert-repo-table tbody > tr:nth-child(4n + 1),
.stats-page.certificates-index-page .cert-repo-table tbody > tr:nth-child(4n + 2) {
    background: #fafafc;
}

.stats-page.certificates-index-page .cert-repo-table__code {
    font-size: 13px;
    background: #f4f5f8;
    padding: 2px 6px;
    border-radius: 4px;
}

.stats-page.certificates-index-page .cert-repo-table__status {
    text-transform: capitalize;
}

.stats-page.certificates-index-page .cert-repo-table__tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: lowercase;
    border: 1px solid transparent;
}

.stats-page.certificates-index-page .cert-repo-table__tag--ready {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #c8e6c9;
}

.stats-page.certificates-index-page .cert-repo-table__tag--pending {
    background: #fff8e1;
    color: #e65100;
    border-color: #ffe082;
}

.stats-page.certificates-index-page .cert-repo-table__tag--in-progress {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

.stats-page.certificates-index-page .cert-repo-table__tag--failed,
.stats-page.certificates-index-page .cert-repo-table__tag--storage-failed {
    background: #ffebee;
    color: #b71c1c;
    border-color: #ffcdd2;
}

.stats-page.certificates-index-page .cert-repo-table__tag--stopped {
    background: #f3e5f5;
    color: #6a1b9a;
    border-color: #e1bee7;
}

.stats-page.certificates-index-page .cert-repo-table__tag--default {
    background: #f5f5f5;
    color: #424242;
    border-color: #e0e0e0;
}

.stats-page.certificates-index-page .cert-repo-table__trust-cell {
    white-space: nowrap;
}

.stats-page.certificates-index-page .cert-repo-table__trust-link {
    display: inline-block;
    line-height: 0;
}

.stats-page.certificates-index-page .cert-repo-table__trust-img {
    display: block;
    max-width: 108px;
    height: auto;
}

.stats-page.certificates-index-page .cert-repo-table__dash {
    color: #9e9e9e;
}

.stats-page.certificates-index-page .cert-repo-table__link {
    color: #217ef0;
    font-weight: 500;
    text-decoration: none;
}

.stats-page.certificates-index-page .cert-repo-table__link:hover {
    text-decoration: underline;
}

.stats-page.certificates-index-page .cert-repo-table__open-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.stats-page.certificates-index-page .cert-repo-table__promote-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.stats-page.certificates-index-page .cert-repo-table__retry {
    margin: 0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #1565c0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.stats-page.certificates-index-page .cert-repo-table__retry:hover {
    background: #0d47a1;
}

.stats-page.certificates-index-page .cert-repo-table__retry:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stats-page.certificates-index-page .cert-repo-table__stop {
    margin: 0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #6a1b9a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.stats-page.certificates-index-page .cert-repo-table__stop:hover {
    background: #4a148c;
}

.stats-page.certificates-index-page .cert-repo-table__mainnet-promote {
    margin: 0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #1565c0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.stats-page.certificates-index-page .cert-repo-table__mainnet-promote:hover {
    background: #0d47a1;
}

.stats-page.certificates-index-page .cert-repo-table__mainnet-promote:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stats-page.certificates-index-page .cert-repo-table__stop:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stats-page.certificates-index-page .cert-repo-table__migration-pending {
    color: #f57c00;
    font-weight: 700;
}

.stats-page.certificates-index-page .cert-repo-table__detail-cell {
    padding: 0;
    border-top: none;
    background: transparent;
}

.stats-page.certificates-index-page .cert-repo-table__detail-row td {
    vertical-align: top;
}

.stats-page.certificates-index-page .cert-live-log-details {
    margin: 0;
    border-top: 1px solid #e8eaef;
}

.stats-page.certificates-index-page .cert-live-log-details__summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1565c0;
    user-select: none;
}

.stats-page.certificates-index-page .cert-live-log-details__summary::-webkit-details-marker {
    display: none;
}

.stats-page.certificates-index-page .cert-live-log-details__summary::before {
    content: "▸ ";
    display: inline-block;
    width: 1em;
    transition: transform 0.15s ease;
}

.stats-page.certificates-index-page .cert-live-log-details[open] .cert-live-log-details__summary::before {
    transform: rotate(90deg);
}

.stats-page.certificates-index-page .cert-live-log-details__hint {
    font-weight: 400;
    font-size: 12px;
    color: #757575;
}

.stats-page.certificates-index-page .cert-live-log-details__body {
    padding: 0 14px 14px;
    position: relative;
}

.stats-page.certificates-index-page .cert-live-log-details__toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 10px;
}

.stats-page.certificates-index-page .cert-live-log-copy {
    margin: 0;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: #1565c0;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    cursor: pointer;
}

.stats-page.certificates-index-page .cert-live-log-copy:hover {
    background: #bbdefb;
}

.stats-page.certificates-index-page .cert-live-log-copy:disabled {
    opacity: 0.85;
    cursor: default;
}

.stats-page.certificates-index-page .cert-live-log-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
    margin: 0 0 12px;
    font-size: 13px;
}

.stats-page.certificates-index-page .cert-live-log-meta dt {
    margin: 0;
    font-weight: 600;
    color: #616161;
}

.stats-page.certificates-index-page .cert-live-log-meta dd {
    margin: 2px 0 0;
    color: #212121;
    word-break: break-word;
}

.stats-page.certificates-index-page .cert-live-log-meta__err-set {
    color: #b71c1c;
}

.stats-page.certificates-index-page .cert-live-log-pre {
    margin: 0;
    max-height: 560px;
    overflow: auto;
    padding: 12px;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.stats-page {
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 2px 4px 4px rgba(0, 0, 0, 0.08);
    margin-top: 24px;
    padding: 40px;
}

#cert-badge {
    width: 121px;
    height: 30px;
}

a {
    text-decoration: underline;
}

.stats-trust-cert-badge__note .grey-text{
    border-radius: 8px;
    border: 1px dashed var(--Foundation-Greys-greys-700, #A9AAAD);
    background: #FFF;
    color:black!important;
    padding: 16px 10px;
    margin-top: 24px;
}