/* std-data.css — shared styles for the homepage/about/app-detector data sections.
   Loaded inline by headerFooter.blade.php so styles are present at first paint
   (Vue templates strip <style> blocks; same pattern as scan-stats.css). */

/* =========================================================================
   Stats band — sits directly under the scan form on homepage + app-detector,
   and inside the about page "By the Numbers" block. Visually understated so
   it doesn't compete with the hero CTA, but carries the credibility claim.
   ========================================================================= */
.std-stats-band {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 2.25em 0 2em 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111827;
}
.std-stats-band .container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.std-stats-band__heading {
    margin: 0 0 0.45em 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.std-stats-band__claim {
    margin: 0 auto 1.5em auto;
    max-width: 720px;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.5;
}
.std-stats-band__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25em;
    margin: 0;
    padding: 0;
    list-style: none;
}
.std-stats-band__pill {
    flex: 1 1 180px;
    max-width: 220px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1em 0.75em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.std-stats-band__pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.std-stats-band__pill-value {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    color: #5e8e3e;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.std-stats-band__pill-label {
    display: block;
    margin-top: 0.4em;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
}

/* About-page variant — no heading/claim above pills, more compact. */
.std-stats-band--about {
    background: transparent;
    border: 0;
    padding: 1em 0 2em 0;
}

@media (max-width: 700px) {
    .std-stats-band { padding: 1.75em 0 1.5em 0; }
    .std-stats-band__heading { font-size: 1.3rem; }
    .std-stats-band__claim { font-size: 0.95rem; margin-bottom: 1.1em; }
    .std-stats-band__pills { gap: 0.75em; }
    .std-stats-band__pill { flex: 1 1 140px; padding: 0.85em 0.5em; }
    .std-stats-band__pill-value { font-size: 1.5rem; }
    .std-stats-band__pill-label { font-size: 0.78rem; }
}

/* =========================================================================
   Data leaderboard — top themes / top apps tables. Same component, used on
   the homepage (themes leaderboard) and app-detector page (apps leaderboard).
   ========================================================================= */
.std-leaderboard {
    margin: 2.5em auto;
    max-width: 920px;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.std-leaderboard__header { text-align: center; margin-bottom: 1.5em; }
.std-leaderboard__heading {
    margin: 0 0 0.35em 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.std-leaderboard__meta {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
.std-leaderboard__table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.95rem;
}
.std-leaderboard__table thead th {
    background: #f9fafb;
    padding: 0.7em 0.9em;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.std-leaderboard__table tbody td {
    padding: 0.85em 0.9em;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.std-leaderboard__table tbody tr:last-child td { border-bottom: 0; }
.std-leaderboard__table tbody tr:hover { background: #f8fafc; }

.std-leaderboard__rank {
    width: 3em;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.std-leaderboard__name-cell {
    display: flex;
    align-items: center;
    gap: 0.75em;
    min-width: 0;
}
.std-leaderboard__thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}
.std-leaderboard__thumb--app {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.std-leaderboard__name { font-weight: 600; color: #0f172a; }
.std-leaderboard__name a { color: #0f172a; text-decoration: none; }
.std-leaderboard__name a:hover { color: #5e8e3e; }
.std-leaderboard__category { color: #94a3b8; font-size: 0.85em; margin-top: 0.15em; }

.std-leaderboard__count,
.std-leaderboard__percent {
    text-align: right;
    width: 7em;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
    font-weight: 500;
}
.std-leaderboard__bar { width: 28%; }
.std-leaderboard__bar-fill {
    display: block;
    height: 12px;
    background: linear-gradient(90deg, #7ba858, #5e8e3e);
    border-radius: 3px;
}

@media (max-width: 700px) {
    .std-leaderboard__table { font-size: 0.85rem; }
    .std-leaderboard__table thead th,
    .std-leaderboard__table tbody td { padding: 0.6em 0.5em; }
    .std-leaderboard__bar { display: none; }
    .std-leaderboard__count, .std-leaderboard__percent { width: 5em; }
    .std-leaderboard__thumb { width: 32px; height: 32px; }
    .std-leaderboard__thumb--app { width: 28px; height: 28px; }
}

/* =========================================================================
   Niche cards enrichment — used on the existing "Themes by Niche" and
   "Apps by Category" grids. Adds a top-3 mini-list inside each card.
   ========================================================================= */
.std-niche-mini {
    margin-top: 0.85em;
    padding-top: 0.85em;
    border-top: 1px solid #f1f5f9;
}
.std-niche-mini__heading {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4em;
}
.std-niche-mini__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.std-niche-mini__item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.25em 0;
    font-size: 0.88rem;
    color: #1f2937;
}
.std-niche-mini__rank { color: #94a3b8; font-variant-numeric: tabular-nums; width: 1.4em; flex-shrink: 0; }
.std-niche-mini__name { font-weight: 500; }
.std-niche-mini__name a { color: inherit; text-decoration: none; }
.std-niche-mini__name a:hover { color: #5e8e3e; }
.std-niche-mini__based {
    margin-top: 0.55em;
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
}

/* =========================================================================
   Entity data pages — /shopify-themes/{slug} and /shopify-apps/{slug}.
   Reuses .std-leaderboard__table for ranked tables; below is page chrome.
   ========================================================================= */
.entity-draft-banner {
    background: #b45309;
    color: #fff;
    text-align: center;
    padding: 0.6em 1em;
    font-weight: 600;
    font-size: 0.95rem;
}
.entity-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 2.5em 0;
}
.entity-hero__inner { display: flex; align-items: center; gap: 1.5em; }
.entity-hero__thumb {
    width: 120px; height: auto; border-radius: 8px;
    border: 1px solid #e5e7eb; flex-shrink: 0;
}
.entity-hero__thumb--app { width: 72px; height: 72px; object-fit: cover; }
.entity-hero__title { margin: 0 0 0.3em 0; font-size: 1.9rem; color: #0f172a; }
.entity-hero__subhead { margin: 0; color: #475569; font-size: 1.1rem; }
.entity-hero__subhead strong { color: #5e8e3e; font-size: 1.2em; }

.entity-body { padding: 2em 1rem 3em; }
.entity-layout { display: flex; gap: 2.5em; align-items: flex-start; }
.entity-main { flex: 1; min-width: 0; }
.entity-sidebar { width: 300px; flex-shrink: 0; }

.entity-intro { font-size: 1.05rem; line-height: 1.65; color: #1f2937; margin-bottom: 1.5em; }
.entity-editorial-notes {
    border-left: 4px solid #5e8e3e; background: #f8fafc;
    padding: 1em 1.25em; border-radius: 0 8px 8px 0; margin-bottom: 1.75em;
    line-height: 1.6; color: #1f2937;
}
.entity-editorial-notes__label {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: #5e8e3e; margin-bottom: 0.4em;
}
/* Keep editorial copy inside the box. Some notes were authored with &nbsp;
   between every word (or other long unbreakable runs), which the browser can't
   wrap, so the text spilled past the right edge. Allow breaking so it always
   stays in-box. (The clean fix is stripping the &nbsp; from the copy — see the
   entity_page_overrides cleanup — this rule is the safety net.) */
.entity-editorial-notes { overflow-wrap: break-word; }
.entity-editorial-notes p,
.entity-editorial-notes div,
.entity-editorial-notes li { overflow-wrap: break-word; word-break: break-word; }

/* Automatic data callouts — strip of claim cards under the hero */
.entity-callouts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9em; margin-bottom: 1.75em;
}
.entity-callouts__item {
    border: 1px solid #e2e8f0; border-top: 3px solid #5e8e3e;
    background: #fff; border-radius: 8px; padding: 0.85em 1em;
}
.entity-callouts__label {
    font-weight: 700; color: #0f172a; font-size: 1rem; margin-bottom: 0.3em;
}
.entity-callouts__text { color: #475569; font-size: 0.88rem; line-height: 1.5; }

.entity-section { margin: 2.25em 0; }
.entity-section h2 { font-size: 1.4rem; color: #0f172a; margin-bottom: 0.3em; }
.entity-section__meta { color: #64748b; font-size: 0.92rem; margin-bottom: 1em; }

.entity-verticals { list-style: none; padding: 0; margin: 0; }
.entity-verticals__row { display: flex; align-items: center; gap: 1em; padding: 0.45em 0; }
.entity-verticals__name { width: 220px; flex-shrink: 0; font-weight: 500; color: #1f2937; }
.entity-verticals__track { flex: 1; background: #f1f5f9; border-radius: 3px; height: 14px; }
.entity-verticals__fill { display: block; height: 14px; border-radius: 3px; background: linear-gradient(90deg, #7ba858, #5e8e3e); }

.entity-review-embed { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.25em 1.5em; }
.entity-review-embed__title { font-weight: 600; font-size: 1.05rem; color: #0f172a; }
.entity-review-embed__link { color: #5e8e3e; font-weight: 600; text-decoration: none; }
.entity-review-embed__link:hover { text-decoration: underline; }

.entity-stats-panel {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 1.25em 1.5em; margin-bottom: 1.5em;
}
.entity-stats-panel__heading { font-weight: 700; color: #0f172a; margin-bottom: 0.75em; }
.entity-stats-panel dl { margin: 0; }
.entity-stats-panel dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; margin-top: 0.75em; }
.entity-stats-panel dd { margin: 0.1em 0 0 0; color: #1f2937; font-weight: 500; }
.entity-stats-panel__updated { margin-top: 1em; font-size: 0.8rem; color: #94a3b8; font-style: italic; }

.entity-similar {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 1.25em 1.5em; margin-bottom: 1.5em;
}
.entity-similar__heading { font-weight: 700; color: #0f172a; margin-bottom: 0.6em; }
.entity-similar ul { list-style: none; padding: 0; margin: 0; }
.entity-similar li { display: flex; justify-content: space-between; padding: 0.4em 0; border-bottom: 1px solid #f3f4f6; }
.entity-similar li:last-child { border-bottom: 0; }
.entity-similar a { color: #5e8e3e; font-weight: 500; text-decoration: none; }
.entity-similar a:hover { text-decoration: underline; }
.entity-similar__pct { color: #94a3b8; font-variant-numeric: tabular-nums; }

.entity-cta {
    background: #5e8e3e; color: #fff; border-radius: 10px;
    padding: 1.5em; text-align: center;
}
.entity-cta__heading { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4em; }
.entity-cta p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.entity-cta__btn {
    display: inline-block; background: #fff; color: #5e8e3e !important;
    padding: 0.7em 1.8em; border-radius: 50px; font-weight: 700;
    text-decoration: none; margin-top: 0.5em;
}
.entity-cta__btn:hover { background: #f1f5f9; text-decoration: none; }

/* Tracked affiliate CTA at the top of a theme/app data page (ST-data-page-*) */
.entity-get {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1em;
    background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid #5e8e3e;
    border-radius: 10px; padding: 1.1em 1.35em; margin-bottom: 1.75em;
}
.entity-get__label { font-weight: 700; color: #0f172a; }
.entity-get__meta { color: #64748b; font-size: 0.9rem; margin-top: 0.2em; }
.entity-get__btn {
    display: inline-block; background: #5e8e3e; color: #fff !important;
    padding: 0.7em 1.5em; border-radius: 50px; font-weight: 700;
    text-decoration: none;
}
.entity-get__btn:hover { background: #4d7532; text-decoration: none; }
.entity-get__disclosure {
    flex-basis: 100%; margin: 0; color: #94a3b8; font-size: 0.8rem;
}

@media (max-width: 600px) {
    .entity-get__btn { display: block; width: 100%; text-align: center; }
}

@media (max-width: 900px) {
    .entity-layout { flex-direction: column; }
    .entity-sidebar { width: 100%; }
    .entity-hero__inner { flex-direction: column; text-align: center; }
    .entity-verticals__name { width: 130px; font-size: 0.9rem; }
}

/* Entity index pages (/shopify-themes, /shopify-apps) + statistics hub. */
.entity-index-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25em;
}
.entity-index-card a {
    display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 1.25em; text-decoration: none; color: #0f172a; height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.entity-index-card a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); text-decoration: none; }
.entity-index-card__thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 0.75em; background: #f1f5f9; }
.entity-index-card__thumb--app { width: 48px; height: 48px; }
.entity-index-card__name { display: block; font-weight: 700; font-size: 1.05rem; }
.entity-index-card__meta { display: block; color: #94a3b8; font-size: 0.85rem; margin-top: 0.15em; }
.entity-index-card__rating { display: block; margin-top: 0.3em; color: #b45309; font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.entity-index-card__reviews { color: #94a3b8; font-weight: 400; }
.entity-index-card__share { display: inline-block; margin-top: 0.6em; color: #5e8e3e; font-weight: 700; font-variant-numeric: tabular-nums; }

.entity-hub-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5em;
}
.entity-hub-card {
    display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 1.5em; text-decoration: none; color: #0f172a;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.entity-hub-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); text-decoration: none; color: #0f172a; }
.entity-hub-card__title { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4em; color: #5e8e3e; }
.entity-hub-card__desc { display: block; color: #475569; font-size: 0.95rem; line-height: 1.5; }
.entity-hub-card__count { display: inline-block; margin-top: 0.75em; font-size: 0.82rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }

/* Breadcrumbs on data pages + letter-avatar fallback + similar-rail icons. */
.entity-breadcrumbs {
    font-size: 0.88rem; color: #64748b; margin-bottom: 1.25em;
}
.entity-breadcrumbs a { color: #5e8e3e; text-decoration: none; }
.entity-breadcrumbs a:hover { text-decoration: underline; }
.entity-breadcrumbs__sep { margin: 0 0.45em; color: #cbd5e1; }
.entity-breadcrumbs__current { color: #475569; font-weight: 500; }

.entity-hero__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    background: #5e8e3e; color: #fff; font-weight: 700; font-size: 2rem;
    border: 0;
}

.entity-similar__label { display: inline-flex; align-items: center; gap: 0.5em; min-width: 0; }
.entity-similar__icon { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }

/* Index pagination */
.entity-pagination {
    display: flex; align-items: center; justify-content: center; gap: 1.5em;
    margin: 2em 0 0; font-size: 0.95rem;
}
.entity-pagination a { color: #5e8e3e; font-weight: 600; text-decoration: none; }
.entity-pagination a:hover { text-decoration: underline; }
.entity-pagination__status { color: #94a3b8; }

.entity-hero__rank {
    display: inline-block; margin-top: 0.6em; background: #5e8e3e; color: #fff;
    font-weight: 700; font-size: 0.85rem; padding: 0.35em 0.9em; border-radius: 50px;
}

/* Hub — published segment pages index */
.entity-hub-segments { margin-top: 2.5em; }
.entity-hub-segments__heading { font-size: 1.4rem; color: #0f172a; margin-bottom: 0.3em; }
.entity-hub-segments__meta { color: #64748b; font-size: 0.95rem; margin-bottom: 1em; }
.entity-hub-segments__list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6em;
}
.entity-hub-segments__list li {
    display: flex; justify-content: space-between; align-items: center; gap: 0.75em;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.65em 1em;
}
.entity-hub-segments__list a { color: #5e8e3e; font-weight: 600; text-decoration: none; }
.entity-hub-segments__list a:hover { text-decoration: underline; }
.entity-hub-segments__kind { color: #94a3b8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Long-form editorial content under the stats */
.entity-longform { font-size: 1.02rem; line-height: 1.7; color: #1f2937; border-top: 1px solid #e5e7eb; padding-top: 1.75em; }
.entity-longform h3 { font-size: 1.25rem; color: #0f172a; margin: 1.4em 0 0.5em; }
.entity-longform h4 { font-size: 1.05rem; color: #0f172a; margin: 1.2em 0 0.4em; }
.entity-longform ul, .entity-longform ol { margin: 0.75em 0 0.75em 1.4em; }
.entity-longform li { margin-bottom: 0.35em; }
.entity-longform blockquote { border-left: 3px solid #5e8e3e; margin: 1em 0; padding: 0.4em 1em; color: #475569; }
.entity-longform a { color: #5e8e3e; }

/* Breakdown groups + percent labels */
.entity-breakdown-group { margin-top: 1.25em; }
.entity-breakdown-group__label {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #5e8e3e; margin: 0 0 0.2em;
}
.entity-verticals__pct {
    width: 3.5em; flex-shrink: 0; text-align: right;
    font-weight: 600; color: #1f2937; font-variant-numeric: tabular-nums; font-size: 0.92rem;
}

.entity-longform h2 { font-size: 1.4rem; color: #0f172a; margin: 1.5em 0 0.5em; }

/* Example stores — plain-text chips, factual framing */
.entity-examples { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6em; }
.entity-examples__chip {
    background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 50px;
    padding: 0.4em 1em; font-weight: 500; color: #1f2937; font-size: 0.92rem;
}
.entity-examples__note { margin-top: 0.9em; font-size: 0.8rem; color: #94a3b8; font-style: italic; }
.entity-examples__note a { color: #5e8e3e; }

/* Tracked affiliate CTA inside a compare column (ST-compare-theme / ST-compare-app) */
.cmp-table__ctarow td { vertical-align: top; }
.cmp-get__btn {
    display: inline-block; background: #5e8e3e; color: #fff !important;
    padding: 0.55em 1.25em; border-radius: 50px; font-weight: 700;
    font-size: 0.92rem; text-decoration: none;
}
.cmp-get__btn:hover { background: #4d7532; text-decoration: none; }
.cmp-get__meta { display: block; margin-top: 0.45em; color: #64748b; font-size: 0.8rem; }
.cmp-table__disclosure td { color: #94a3b8; font-size: 0.8rem; }

/* Theme Store id line on a theme data page — the link into the reverse lookup (#13241). */
.entity-tid{margin:.9rem 0 0;font-size:.95rem;color:#4a5568;}
.entity-tid a{color:#3b6d11;font-weight:700;}
