/* Public store pages, ad units, cookie banner and the Admin charts (SEO & Ads, Analytics). Colours come from the theme variables, so light and dark both work. */

/* ---------- public store pages ---------- */
.store-wrap { max-width: 1120px; margin: 0 auto; padding: 8px 24px 40px; }
.store-wrap h1 { margin-top: 6px; }
.store-wrap .lead { font-size: 1.05rem; max-width: 800px; color: var(--ink); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 8px 0 4px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.store-sec { margin-top: 34px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sec-head h2 { margin: 0; }
.sec-head h2 a { color: var(--ink); }
.cat-links { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.cat-links li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.cat-links a { font: 600 1.15rem var(--serif); }
.cat-links span { color: var(--muted); font-size: .84rem; }
.more-links { margin-top: 26px; color: var(--muted); }
.store-page .pinfo .short { font-size: 1.05rem; margin: 4px 0 10px; }
.store-page .pinfo h1 { margin-bottom: 6px; }
.store-page .btn-ghost[aria-disabled] { opacity: .65; cursor: default; }
.store-cats a { margin: 0 4px; }
.store-page .site-footer a { color: var(--muted); text-decoration: underline; }

/* ---------- ad units: height is reserved so the page does not jump when an ad loads ---------- */
.seo-ad { display: block; max-width: 1120px; margin: 18px auto; padding: 0 24px; text-align: center; }
.seo-ad[hidden] { display: none; }
.seo-ad-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.seo-ad ins { min-height: 100px; background: transparent; }
.seo-ad-content ins { min-height: 250px; }
.seo-ad ins[data-ad-status="unfilled"] { display: none !important; }

/* ---------- footer strip and cookie banner ---------- */
.seo-foot { text-align: center; padding: 10px 16px 22px; font-size: .82rem; color: var(--muted); }
.seo-foot a, .seo-linkbtn { color: var(--muted); text-decoration: underline; }
.seo-linkbtn { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.seo-foot a:hover, .seo-linkbtn:hover { color: var(--gold); }
.seo-consent { position: fixed; z-index: 300; left: 12px; right: 12px; bottom: 12px; max-width: 640px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .28); padding: 14px 16px; font-size: .88rem; line-height: 1.45; }
.seo-consent p { margin: 0 0 8px; }
.seo-consent details { margin: 0 0 10px; }
.seo-consent summary { cursor: pointer; color: var(--muted); }
.seo-consent-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seo-consent-btns .btn { padding: 8px 14px; font-size: .86rem; }
.seo-consent-link { margin-left: auto; font-size: .82rem; text-decoration: underline; }
@media (max-width: 560px) { .store-wrap { padding: 8px 16px 32px; } .seo-ad { padding: 0 16px; } .seo-consent-btns .btn { flex: 1 1 100%; } .seo-consent-link { margin: 4px 0 0; } }

/* ---------- Admin: SEO & Ads, Analytics ---------- */
:root { --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s7: #6250d6; --good: #2d7a53; --amber: #b7791f; --bad: #b03a3a; }
:root[data-theme="dark"] { --s3: #199e70; --s4: #c98500; --s5: #d55181; --s7: #9085e9; --good: #4cc08a; --amber: #e0a43a; --bad: #e66767; }
.an-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.an-ranges { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.an-ranges button { border: 0; background: var(--surface); color: var(--ink); padding: 7px 14px; font: 600 .86rem var(--sans); cursor: pointer; border-right: 1px solid var(--line); }
.an-ranges button:last-child { border-right: 0; }
.an-ranges button.on { background: var(--brand); color: #fff; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.an-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.an-tile .k { color: var(--muted); font-size: .8rem; }
.an-tile .v { font: 700 1.7rem var(--serif); line-height: 1.15; }
.an-tile .d { font-size: .8rem; color: var(--muted); }
.an-up { color: var(--good); } .an-down { color: var(--bad); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.an-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; box-shadow: var(--shadow); min-width: 0; }
.an-card h3 { margin: 0 0 2px; font-size: 1.2rem; }
.an-card .sub { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.an-wide { grid-column: 1 / -1; }
.an-chart { position: relative; width: 100%; }
.an-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.an-chart text { fill: var(--muted); font: 11px var(--sans); }
.an-chart .grid { stroke: var(--grid); }
.an-chart .axis { stroke: var(--axis); }
.an-chart .hit { fill: transparent; }
.an-chart .mark-hover { opacity: .85; }
.an-chart .cross { stroke: var(--axis); stroke-dasharray: 3 3; }
.an-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .82rem; color: var(--ink); margin-bottom: 6px; }
.an-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.an-tip { position: fixed; z-index: 500; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .82rem; box-shadow: 0 8px 26px rgba(0, 0, 0, .22); max-width: 260px; }
.an-tip b { display: block; margin-bottom: 3px; }
.an-tip .r { display: flex; justify-content: space-between; gap: 14px; }
.an-tip .r span:first-child { color: var(--muted); }
.an-empty { color: var(--muted); padding: 22px 6px; text-align: center; font-size: .9rem; }
.an-bars { display: grid; gap: 7px; }
.an-bar-row { display: grid; grid-template-columns: minmax(70px, 38%) 1fr auto; gap: 8px; align-items: center; font-size: .84rem; }
.an-bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-row .track { background: var(--surface-2); border-radius: 0 6px 6px 0; height: 14px; }
.an-bar-row .fill { height: 100%; border-radius: 0 6px 6px 0; }
.an-bar-row .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.an-bar-row:hover .fill { opacity: .85; }
.an-table summary { cursor: pointer; color: var(--muted); font-size: .84rem; margin-top: 8px; }
.sc { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .82rem; }
.sc::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.sc.green { color: var(--good); } .sc.amber { color: var(--amber); } .sc.red { color: var(--bad); }
.sc.green::after { content: ''; } .sc.amber::after { content: ''; }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.chk:last-child { border-bottom: 0; }
.chk .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 700; }
.chk .ic.ok { background: var(--good); } .chk .ic.warn { background: var(--amber); } .chk .ic.bad { background: var(--bad); }
.chk small { color: var(--muted); display: block; }
.seo-warn { background: var(--gold-soft); border: 1px solid var(--gold); color: var(--alert-info-text); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.seo-policy { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
.serp { background: #fff; color: #202124; border: 1px solid #dadce0; border-radius: 12px; padding: 14px 16px; max-width: 620px; font-family: Arial, sans-serif; }
.serp .u { color: #202124; font-size: .8rem; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp .t { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; margin-bottom: 3px; }
.serp .d { color: #4d5156; font-size: .88rem; line-height: 1.5; }
.social { background: #fff; color: #202124; border: 1px solid #dadce0; border-radius: 12px; overflow: hidden; max-width: 460px; font-family: Arial, sans-serif; }
.social .im { aspect-ratio: 1.91 / 1; background: #e8eaed; display: grid; place-items: center; color: #5f6368; font-size: .85rem; overflow: hidden; }
.social .im img { width: 100%; height: 100%; object-fit: cover; }
.social .tx { padding: 10px 14px; background: #f1f3f4; }
.social .tx .h { font-size: .72rem; color: #5f6368; text-transform: uppercase; }
.social .tx .t { font-weight: 700; margin: 2px 0; }
.social .tx .d { font-size: .85rem; color: #5f6368; }
.seo-table td, .seo-table th { vertical-align: top; }
.seo-table .hint { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.len-ok { color: var(--good); } .len-warn { color: var(--amber); } .len-bad { color: var(--bad); }
.an-chart .col .cross, .an-chart .col .pt { opacity: 0; }
.an-chart .col:hover .cross, .an-chart .col:hover .pt { opacity: 1; }
.an-chart .col:hover .mark-hover { opacity: 1; }
.an-chart .col .mark-hover { opacity: .9; }
svg.track { display: block; }
.an-tile .v { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .an-grid { grid-template-columns: minmax(0, 1fr); } .an-bar-row { grid-template-columns: minmax(60px, 34%) 1fr auto; font-size: .8rem; } }
