/* ==========================================================================
   SunTeam v2 — Public site
   ========================================================================== */

/* ---------- Announcement bar ---------- */
.topbar { background: var(--ink-950); color: #D9DBDF; font-size: var(--fs-sm); }
.topbar .container { display: flex; align-items: center; gap: 24px; height: 40px; }
.topbar .marquee { flex: 1; }
.topbar .marquee-track span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .marquee-track b { color: var(--sun-400); font-weight: 700; }
.topbar-links { display: flex; gap: 18px; flex: none; margin-inline-start: auto; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: #A9ADB5; transition: color .2s; }
.topbar-links a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-block: 12px; transition: padding .3s var(--ease); }
.nav-shell {
  display: flex; align-items: center; gap: 16px; height: 68px;
  padding-inline: 14px 10px; border-radius: 22px;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck .nav-shell { box-shadow: inset 0 0 0 1px var(--glass-line), var(--sh-3); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: 8px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 4px; height: 42px; padding-inline: 14px;
  border-radius: var(--r-pill); font-weight: 600; color: var(--text-2); transition: all .2s;
}
.nav-links > li > a:hover, .nav-links > li:hover > a { background: var(--surface-sunk); color: var(--text); }
.nav-links > li > a.is-active { color: var(--text); }
.nav-links > li > a.is-active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sun-500); margin-inline-start: 4px; }

/* mega menu */
.mega {
  position: absolute; top: calc(100% + 14px); inset-inline-start: -120px; width: min(880px, calc(100vw - 48px));
  padding: 18px; border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--sh-3), inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.nav-links > li:hover .mega, .nav-links > li:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.mega-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-cats a { display: flex; align-items: center; gap: 12px; padding: 10px; white-space: nowrap; border-radius: var(--r-md); font-weight: 600; font-size: var(--fs-sm); transition: background .2s; }
.mega-cats a:hover { background: var(--surface-2); }
.mega-cats .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); flex: none; }
.mega-promo { border-radius: var(--r-lg); background: var(--sun-50); color: var(--ink-900); padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; }
.mega-promo img { position: absolute; top: 4px; inset-inline-end: 0; width: 190px; height: 190px; object-fit: contain; mix-blend-mode: multiply; }
.mega-promo .glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--sun-400); filter: blur(60px); opacity: .35; top: -60px; inset-inline-end: -60px; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.search-pill {
  display: flex; align-items: center; gap: 10px; height: 44px; width: 260px; padding-inline: 14px 8px;
  border-radius: var(--r-pill); background: var(--surface-sunk); color: var(--text-3);
  font-size: var(--fs-sm); transition: box-shadow .2s, background .2s;
}
.search-pill:hover { box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); }
.burger { display: none; }
@media (max-width: 1180px) { .search-pill { width: 44px; padding: 0; justify-content: center; } .search-pill span, .search-pill .kbd { display: none; } }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-shell { height: 60px; }
  .brand img { height: 34px; }
}

/* ---------- Search command palette ---------- */
.cmdk-backdrop { position: fixed; inset: 0; background: rgba(10,11,14,.45); backdrop-filter: blur(6px); z-index: 90; opacity: 0; visibility: hidden; transition: all .25s; }
.cmdk-backdrop.open { opacity: 1; visibility: visible; }
.cmdk { position: fixed; top: 12vh; inset-inline: 0; margin-inline: auto; width: min(640px, calc(100% - 24px)); z-index: 91; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-3); overflow: hidden; transform: translateY(-10px) scale(.98); opacity: 0; visibility: hidden; transition: all .25s var(--ease); }
.cmdk.open { transform: none; opacity: 1; visibility: visible; }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cmdk-input input { flex: 1; border: 0; outline: 0; background: none; font-size: var(--fs-lg); }
.cmdk-body { padding: 12px; max-height: 50vh; overflow: auto; }
.cmdk-label { font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); padding: 8px 10px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); font-weight: 600; }
.cmdk-item:hover { background: var(--surface-2); }
.cmdk-item img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 28px 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-stats { display: flex; gap: 28px; margin-top: 18px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.hero-stats b { display: block; font-size: var(--fs-2xl); font-weight: 900; line-height: 1.2; }
.hero-stats span { font-size: var(--fs-sm); color: var(--text-3); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: center; width: 100%; }
.sun-disc {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF08A 0%, var(--sun-400) 45%, var(--sun-500) 100%);
  box-shadow: 0 40px 120px -20px rgba(255,212,0,.65), inset -20px -30px 60px rgba(214,163,0,.35);
}
.sun-rays { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,212,0,.16) 0 4deg, transparent 4deg 15deg); mask-image: radial-gradient(circle, transparent 48%, #000 49%, #000 70%, transparent 71%); animation: spin-slow 80s linear infinite; }
/* product shots ship on white with their own sun disc: multiply drops the white box on light backgrounds */
.blend { mix-blend-mode: multiply; }
.hero-main { position: absolute; inset: 4% 6% 0; width: 88%; height: 96%; object-fit: contain; mix-blend-mode: multiply; z-index: 1; }
.float-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border-radius: 18px; font-size: var(--fs-sm); font-weight: 700; animation: float 8s ease-in-out infinite; }
.float-card .fc-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card small { display: block; font-weight: 500; color: var(--text-3); font-size: var(--fs-xs); }
.float-card.f1 { top: 6%; inset-inline-start: 2%; }
.float-card.f2 { bottom: 4%; inset-inline-end: 6%; animation-delay: 1.5s; }
.mini-prod { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 20px; animation: float 7s ease-in-out infinite; transition: transform .3s var(--ease); }
.mini-prod img { width: 64px; height: 64px; border-radius: 14px; background: #fff; object-fit: contain; }
.mini-prod b { display: block; font-size: var(--fs-sm); }
.mini-prod span { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.mini-prod.m1 { top: 30%; inset-inline-end: -6%; animation-delay: .6s; }
.mini-prod.m2 { bottom: 16%; inset-inline-start: -4%; animation-delay: 2.2s; }
[data-theme="dark"] .hero-main { mix-blend-mode: normal; border-radius: 32px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px 400px at 15% 20%, rgba(255,212,0,.18), transparent 70%),
  radial-gradient(500px 300px at 90% 80%, rgba(255,212,0,.10), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(17,19,24,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-visual { max-width: 420px; order: -1; }
  .hero-copy { text-align: center; align-items: center; }
  .hero-stats { justify-content: center; }
  .mini-prod img { width: 48px; height: 48px; }
  .mini-prod.m1 { inset-inline-end: 0; } .mini-prod.m2 { inset-inline-start: 0; }
}
@media (max-width: 560px) { .hero-stats { gap: 18px; } .hero-cta .btn { flex: 1; } }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 18px 22px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.trust-item .ic { color: var(--sun-600); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .stack { gap: 10px; }
.section-sub { margin: 0; color: var(--text-2); font-size: var(--fs-md); line-height: 1.9; max-width: 620px; }

/* category tiles */
.cat-tile {
  width: 148px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 12px; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); text-align: center; font-weight: 700; font-size: var(--fs-sm);
  transition: all .3s var(--ease);
}
.cat-tile .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); transition: all .3s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.cat-tile:hover .ico { background: var(--sun-400); color: var(--ink-900); transform: scale(1.06) rotate(-6deg); }


/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.bento > * { border-radius: var(--r-xl); padding: 26px; position: relative; overflow: hidden; }
.b-1 { grid-column: span 3; grid-row: span 2; }
.b-2 { grid-column: span 3; }
.b-3 { grid-column: span 2; }
.b-4 { grid-column: span 1; }
.b-5 { grid-column: span 2; }
.b-6 { grid-column: span 2; }
.b-7 { grid-column: span 2; }
.b-dark { background: var(--ink-900); color: #fff; }
.b-sun { background: var(--sun-400); color: var(--ink-900); }
.b-light { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.b-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.b-dark .b-ico { background: rgba(255,255,255,.08); color: var(--sun-400); }
.b-sun .b-ico { background: rgba(17,19,24,.08); }
.b-light .b-ico { background: var(--amber-soft); color: var(--accent-ink); }
.bento h3 { font-size: var(--fs-xl); margin-bottom: 8px; }
.bento p { font-size: var(--fs-sm); line-height: 1.95; opacity: .78; }
.ladder { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 26px; }
.ladder span { flex: 1; border-radius: 10px 10px 4px 4px; background: rgba(255,255,255,.08); position: relative; transition: background .3s; }
.ladder span.on { background: linear-gradient(180deg, var(--sun-300), var(--sun-500)); }
.ladder span em { position: absolute; bottom: calc(100% + 6px); inset-inline: 0; text-align: center; font-style: normal; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.55); white-space: nowrap; }
.big-num { font-size: clamp(2.5rem, 2rem + 2vw, 3.6rem); font-weight: 900; line-height: 1.1; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-1 { grid-column: span 2; grid-row: auto; }
  .b-2, .b-7 { grid-column: span 2; }
  .b-3, .b-4, .b-5, .b-6 { grid-column: span 1; }
}
@media (max-width: 560px) { .bento > * { grid-column: span 2 !important; } }

/* ---------- Spotlight (product feature) ---------- */
.spotlight { position: relative; border-radius: 36px; background: var(--ink-900); color: #fff; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 440px; isolation: isolate; }
.spotlight .glow-a { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--sun-400); filter: blur(120px); opacity: .28; inset-inline-end: -120px; top: -160px; z-index: -1; }
.spotlight .glow-b { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #7CC243; filter: blur(140px); opacity: .18; inset-inline-start: 10%; bottom: -200px; z-index: -1; }
.spot-copy { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.spot-copy .lead { color: rgba(255,255,255,.7); }
.spot-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.spot-feats span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: var(--fs-sm); font-weight: 600; }
.spot-feats .ic { color: #9BE15D; }
.spot-visual { position: relative; height: 100%; min-height: 360px; display: grid; place-items: center; }
.spot-stage { width: min(400px, 82%); aspect-ratio: 1; border-radius: 40px; background: #fff; display: grid; place-items: center; transform: rotate(-5deg); box-shadow: 0 50px 80px -30px rgba(0,0,0,.7), 0 0 0 10px rgba(255,255,255,.06); transition: transform .5s var(--ease); }
.spotlight:hover .spot-stage { transform: rotate(-1deg) scale(1.02); }
.spot-stage { overflow: hidden; padding: 7%; }
/* product shots are portrait on white: fit inside the rounded stage and drop the white box */
.spot-stage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.spot-sticker { position: absolute; top: 14%; inset-inline-end: 12%; width: 96px; height: 96px; border-radius: 50%; background: var(--sun-400); color: var(--ink-900); display: grid; place-items: center; text-align: center; font-weight: 900; line-height: 1.3; transform: rotate(12deg); box-shadow: var(--sh-sun); font-size: .85rem; }
.spot-price { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.spot-price strong { font-size: var(--fs-2xl); font-weight: 900; color: var(--sun-400); }
.spot-price del { color: rgba(255,255,255,.45); }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } .spot-visual { min-height: 280px; order: -1; } }

/* ---------- Leaderboard ---------- */
.leader { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-md); transition: background .2s; }
.leader:hover { background: var(--surface-2); }
.leader .pos { width: 32px; font-weight: 900; color: var(--text-3); text-align: center; }
.leader .amount { margin-inline-start: auto; font-weight: 800; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; }
.podium-col { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.podium-col .avatar { width: 64px; height: 64px; font-size: var(--fs-lg); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--sun-400); }
.podium-col.first .avatar { width: 84px; height: 84px; }
.podium-bar { width: 100%; border-radius: 18px 18px 6px 6px; display: grid; place-items: center; font-size: var(--fs-2xl); font-weight: 900; color: var(--ink-900); }
.podium-col.first .podium-bar { height: 130px; background: linear-gradient(180deg, var(--sun-300), var(--sun-500)); }
.podium-col.second .podium-bar { height: 96px; background: var(--ink-200); }
.podium-col.third .podium-bar { height: 72px; background: #F2D3B3; }
[data-theme="dark"] .podium-col.second .podium-bar { background: var(--ink-600); color: #fff; }

.split-leaders { grid-template-columns: 1fr 1.6fr; align-items: stretch; }
.split-leaders > .card { display: flex; flex-direction: column; }
.split-leaders > .card .leader:last-child { margin-bottom: auto; }
@media (max-width: 960px) { .split-leaders { grid-template-columns: 1fr; } }

/* ---------- Article cards ---------- */
.a-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
/* SunMag / news thumbnails are 388x220 */
.a-media { aspect-ratio: 388 / 220; overflow: hidden; background: var(--surface-sunk); }
.a-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.a-card:hover .a-media img { transform: scale(1.05); }
.a-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.a-meta { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--text-3); }
.a-meta span { display: inline-flex; align-items: center; gap: 4px; }
.a-title { font-weight: 800; font-size: var(--fs-lg); line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 36px; background: var(--sun-400); padding: clamp(28px, 5vw, 60px); overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-start: -160px; bottom: -300px; background: repeating-radial-gradient(circle, rgba(17,19,24,.06) 0 2px, transparent 2px 22px); z-index: -1; }
.cta-band .lead { color: rgba(17,19,24,.72); }
.inquiry { display: flex; gap: 8px; padding: 8px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-2); }
.inquiry input { flex: 1; min-width: 0; border: 0; outline: 0; padding-inline: 16px; background: none; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: #B9BCC3; margin-top: clamp(48px, 7vw, 96px); padding-top: 64px; border-radius: 40px 40px 0 0; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.f-grid h4 { color: #fff; font-size: var(--fs-md); margin-bottom: 16px; }
.f-grid li + li { margin-top: 10px; }
.f-grid a { color: #9AA0A9; transition: color .2s; font-size: var(--fs-sm); }
.f-grid a:hover { color: var(--sun-400); }
.f-contact { display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-sm); }
.f-contact div { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ic { color: var(--sun-400); margin-top: 3px; }
.f-badges { display: flex; gap: 10px; margin-top: 16px; }
.f-badges a { width: 76px; height: 76px; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 8px; }
.f-news { display: flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); margin-top: 12px; }
.f-news input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding-inline: 14px; color: #fff; }
.f-legal { margin-top: 48px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: var(--fs-xs); color: #7D828B; }
.f-legal p { max-width: 760px; line-height: 2; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; transition: all .2s; }
.socials a:hover { background: var(--sun-400); color: var(--ink-900); }
@media (max-width: 960px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; gap: 28px; } .site-footer { border-radius: 28px 28px 0 0; } }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(360px, 88vw); background: var(--surface); z-index: 95; transform: translateX(100%); transition: transform .35s var(--ease); padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; box-shadow: var(--sh-3); }
.drawer:not(.open) { visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.drawer.open { transform: none; }
.drawer a.d-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); font-weight: 700; }
.drawer a.d-link:hover { background: var(--surface-2); }
.drawer a.d-link .ic { color: var(--text-3); }

/* ---------- live search results / cart states ---------- */
[data-live-results] h6 { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
[data-live-results] h6 a { display: block; padding: 10px 12px; border-radius: var(--r-md); color: var(--text); }
[data-live-results] h6 a:hover { background: var(--surface-2); }
.cmdk-empty { padding: 20px; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.add-btn.is-busy { opacity: .5; pointer-events: none; }
.add-btn.is-added { background: var(--mint); color: #fff; }
.add-btn.is-off { background: var(--surface-sunk); color: var(--text-3); }
.add-btn.is-off:hover { transform: none; background: var(--surface-sunk); color: var(--text); }
.p-note { font-size: var(--fs-xs); font-weight: 700; color: var(--accent-ink); }
.p-out { position: absolute; inset: auto 12px 12px; z-index: 1; text-align: center; padding: 6px; border-radius: var(--r-pill); background: rgba(17,19,24,.75); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.tab-panel[hidden] { display: none; }

.topbar-slogan { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--sun-400); font-weight: 900; font-size: var(--fs-sm); }
@media (max-width: 560px) { .topbar-slogan { font-size: var(--fs-xs); padding-inline-end: 10px; } .topbar .container { gap: 10px; } }

.nav-links > li > a { white-space: nowrap; }
@media (max-width: 1360px) { .search-pill { width: 44px; padding: 0; justify-content: center; } .search-pill span, .search-pill .kbd { display: none; } .nav-links > li > a { padding-inline: 10px; } }

/* header: never push the account button out of the bar — the search pill shrinks first */
.nav-links { flex: none; }
.nav-actions { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.nav-actions > * { flex: none; }
.nav-actions > .search-pill { flex: 0 1 260px; width: auto; min-width: 44px; overflow: hidden; }
.search-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-actions .btn { white-space: nowrap; }
@media (max-width: 1360px) { .nav-actions > .search-pill { flex-basis: 44px; } }

/* video dialog (any page with #videoDialog + [data-video] triggers) */
.video-dlg { padding: 0; border: 0; border-radius: 22px; background: #000; width: fit-content; max-width: 94vw; overflow: hidden; box-shadow: 0 40px 120px -20px rgba(0,0,0,.6); }
.video-dlg::backdrop { background: rgba(10,11,14,.72); backdrop-filter: blur(6px); }
.video-dlg video { display: block; width: auto; max-width: 94vw; height: auto; max-height: 86vh; background: #000; }
.video-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #111318; }

/* home categories: wrapping grid, never scrolls sideways */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.cat-grid .cat-tile { width: auto; min-width: 0; padding: 16px 8px; }
.cat-grid .cat-tile .ico { width: 54px; height: 54px; }
.cat-grid .cat-tile b, .cat-grid .cat-tile span:not(.ico) { font-size: var(--fs-sm); line-height: 1.7; }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
