html[data-theme="light"] {
  --bg: #f5f5fb;
  --bg-alt: #eeeef7;
  --card-bg: #fff;
  --text: #242038;
  --text-muted: #57536b;
  --border: #dedbed;
  --icon-violet: #6836bc;
  --icon-cyan: #155c9a;
  --icon-pink: #9c3269;
  --icon-lime: #337044;
  --menu-chip: #f5f3fb;
  --menu-active: #ede2ff;
  --menu-active-edge: #ccb6f1;
  --toggle-track: #f4c970;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #151321;
  --bg-alt: #242037;
  --card-bg: #1d192d;
  --text: #f5f2fc;
  --text-muted: #c0b7d0;
  --border: #39314c;
  --icon-violet: #c5a6ff;
  --icon-cyan: #9ad7f8;
  --icon-pink: #f5b4d5;
  --icon-lime: #b5e6be;
  --menu-chip: #2b253d;
  --menu-active: #3c2b57;
  --menu-active-edge: #8063a8;
  --toggle-track: #635080;
  color-scheme: dark;
}
html[data-theme] body,
html[data-theme] body:has(.editorial-home) { background: var(--bg); color: var(--text); }
html[data-theme] .site-header.teknobu-masthead {
  --masthead-control: var(--menu-chip);
  --masthead-edge: var(--menu-active-edge);
  color: var(--text);
  background: var(--card-bg);
  border-top-color: var(--menu-active-edge);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 5px 15px #1711240d;
}
html[data-theme] .site-header.teknobu-masthead::after { border-color: var(--border); }
html[data-theme] .site-header.teknobu-masthead :is(.brand,.premium-search-copy strong) { color: var(--text); }
html[data-theme] .site-header.teknobu-masthead :is(.premium-brand-copy small,.premium-search-icon) { color: var(--text-muted); }
html[data-theme] .site-header.teknobu-masthead .premium-wide-search,
html[data-theme] .site-header.teknobu-masthead :is(.mobile-toggle,.premium-wide-search kbd),
html[data-theme] .site-header.teknobu-masthead .header-actions :is(#themeToggle,.profile-btn,.premium-mobile-search) {
  background: var(--menu-chip);
  color: var(--text);
  border-color: var(--border);
}
html[data-theme] .site-header.teknobu-masthead #themeToggle .premium-theme-track { background: var(--toggle-track); }
html[data-theme] .site-header.teknobu-masthead #themeToggle svg:first-child { color: var(--text); }
html[data-theme] .site-header.teknobu-masthead .main-nav a,
html[data-theme] .teknobu-drawer .teknobu-drawer-links a {
  background: var(--menu-chip);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme] .site-header.teknobu-masthead .main-nav a:is(.active,[aria-current="page"],:hover,:focus-visible),
html[data-theme] .teknobu-drawer .teknobu-drawer-links a:is([aria-current="page"],:hover,:focus-visible) {
  background: var(--menu-active);
  border-color: var(--menu-active-edge);
  color: var(--text);
}

:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) .teknobu-premium-icon { --pastel: #e5d7fb; --pastel-ink: #6234a5; }
:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) :is(.icon-news,.icon-guide) { --pastel: #ffdcc0; --pastel-ink: #88421a; }
:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) .icon-hardware { --pastel: #cce8ff; --pastel-ink: #175a89; }
:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) .icon-game { --pastel: #f5d5ff; --pastel-ink: #7f3ba0; }
:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) :is(.icon-social,.icon-mobile) { --pastel: #ffd6dc; --pastel-ink: #942a48; }
:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) .icon-code { --pastel: #cceef0; --pastel-ink: #146266; }
:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) .icon-app { --pastel: #fae7ae; --pastel-ink: #785316; }
:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) .icon-shield { --pastel: #cff0d4; --pastel-ink: #296140; }
:is(.teknobu-masthead .main-nav,.teknobu-drawer-links) .icon-review { --pastel: #dddfff; --pastel-ink: #44418c; }
html[data-theme] .site-header.teknobu-masthead .main-nav a .teknobu-premium-icon,
html[data-theme] .teknobu-drawer .teknobu-drawer-links a .teknobu-premium-icon {
  background: var(--pastel);
  color: var(--pastel-ink);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  filter: none;
}
html[data-theme] :is(.site-header.teknobu-masthead .main-nav a,.teknobu-drawer .teknobu-drawer-links a) .teknobu-premium-icon svg {
  color: inherit;
  filter: none;
  box-shadow: none;
}
.site-header.teknobu-masthead .main-nav .teknobu-premium-icon svg { width: 18px; height: 18px; }

html[data-theme] .premium-home-grid :is(.premium-feed,.sidebar-box,.editorial-shortcuts a),
html[data-theme] :is(.premium-search-dialog,.teknobu-drawer,.site-footer) {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="light"] .editorial-home .premium-home-grid :is(.premium-feed,.sidebar-box,.editorial-shortcuts a) {
  background: var(--card-bg);
  border-color: var(--border);
}
html[data-theme] .site-footer :is(.footer-col h4,.footer-post-title,.footer-bottom-bar a) { color: var(--text); }
html[data-theme] .site-footer :is(.teknobu-footer-about,.footer-post-date) { color: var(--text-muted); }
html[data-theme] .site-footer .footer-post--text { background: transparent; }
html[data-theme] .editorial-home .premium-home-grid > aside .reference-instagram {
  background: var(--menu-active);
  color: var(--text);
}
html[data-theme] .editorial-home .premium-home-grid > aside .reference-instagram small { color: var(--text-muted); }
html[data-theme="dark"] :is(.editorial-home,.sp-sidebar) :is(.premium-trend-box .trend-card:nth-child(3n+2),.premium-trend-box .trend-card:nth-child(3n+3)) {
  --trend-card-bg: linear-gradient(115deg,#24304b,#35496b);
  --trend-ink: #f5f4ff;
  --trend-soft: #d7d9ec;
  --trend-light: #7faade;
}
html[data-theme="dark"] :is(.editorial-home,.sp-sidebar) .premium-trend-box .trend-card:nth-child(3n+3) { --trend-card-bg: linear-gradient(115deg,#382644,#57345e); --trend-light: #ba80c5; }
html[data-theme="dark"] .editorial-home .premium-categories-box .category-pills .pill {
  background: color-mix(in srgb,var(--topic-bg) 15%,var(--bg-alt));
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="dark"] .editorial-home .premium-categories-box .pill :is(.premium-category-count,.teknobu-premium-icon) { color: var(--topic-bg); }

html[data-theme] .teknobu-footer {
  color: var(--text);
  background: linear-gradient(110deg,var(--card-bg),var(--bg));
  border-color: var(--border);
}
.teknobu-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) repeat(3,minmax(0,.78fr)) minmax(0,1.7fr);
  gap: clamp(13px,2vw,34px);
  padding-block: 20px 15px;
  align-items: start;
}
.teknobu-footer .footer-identity { border-inline-end: 1px solid var(--border); padding-inline-end: clamp(13px,2vw,34px); }
.teknobu-footer .footer-brand { display: flex; align-items: center; gap: 10px; width: fit-content; color: var(--text); }
.teknobu-footer .footer-brand strong,.teknobu-footer .footer-brand small { display: block; text-transform: uppercase; line-height: 1.2; }
.teknobu-footer .footer-brand strong { font-size: 21px; font-weight: 850; letter-spacing: -.045em; }
.teknobu-footer .footer-brand small { font-size: 10px; font-weight: 800; margin-top: 2px; }
.teknobu-footer .teknobu-footer-about,.teknobu-footer .footer-widget { font-size: 13px; line-height: 1.45; margin: 6px 0 0; color: var(--text-muted); }
.teknobu-footer .footer-widget :is(p,ul,ol) { margin-block: 3px; }
.teknobu-footer .footer-col :is(h2,h3,h4) { font-size: 15px; font-weight: 800; margin: 0 0 5px; line-height: 1.3; }
.teknobu-footer .footer-links { display: grid; gap: 3px; }
.teknobu-footer .footer-links a,.teknobu-footer .footer-legal a {
  margin: 0; padding: 0; color: var(--text); background: transparent; border: 0; border-radius: 0;
  font-size: 13px; line-height: 1.35; transform: none; overflow-wrap: anywhere;
}
.teknobu-footer .footer-links a:hover,.teknobu-footer .footer-legal a:hover { text-decoration: underline; }
.teknobu-footer .footer-popular .footer-links a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teknobu-footer .editorial-social-links a {
  width: 33px; height: 33px; border-radius: 50%; color: var(--text);
  background: var(--card-bg); border: 1px solid var(--border); box-shadow: 0 2px 4px #22184618;
}
.teknobu-footer .footer-promo {
  display: flex; align-items: center; min-width: 0; align-self: center;
  border-inline-start: 1px solid var(--border); padding-inline-start: 18px;
}
.teknobu-footer .footer-promo > span { position: relative; z-index: 1; flex: 1 0 51%; line-height: 1.25; font-size: clamp(11px,1vw,15px); }
.teknobu-footer .footer-promo svg { display: block; width: 25px; height: 25px; color: var(--icon-violet); margin-bottom: 4px; }
.teknobu-footer .footer-promo img { width: 59%; height: auto; max-height: 145px; object-fit: contain; margin-inline-start: -10%; }
.teknobu-footer .footer-legal-row { border-top: 1px solid var(--border); }
.teknobu-footer .footer-bottom-bar { margin-top: 0; border: 0; padding-block: 12px; gap: 8px; font-size: 13px; }
.teknobu-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 0; }
.teknobu-footer .footer-legal a + a { border-inline-start: 1px solid var(--border); margin-inline-start: 12px; padding-inline-start: 12px; }
@media (max-width: 950px) {
  .teknobu-footer .footer-grid { grid-template-columns: minmax(0,1.25fr) repeat(3,minmax(0,1fr)); }
  .teknobu-footer .footer-promo { grid-column: 1 / -1; justify-self: end; width: min(100%,400px); }
}
@media (max-width: 570px) {
  .teknobu-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .teknobu-footer .footer-identity { grid-column: 1 / -1; border: 0; }
  .teknobu-footer .footer-promo { border: 0; padding: 0; }
  .teknobu-footer .footer-bottom-bar { align-items: flex-start; }
  .teknobu-footer .footer-legal { margin-inline-start: 0; }
}

/* Collapse slots only after AdSense reports that no ad was served. */
ins.adsbygoogle:is([data-ad-status="unfilled"],[data-ad-status="unfill-optimized"]),
.teknobu-ad-widget:has(ins.adsbygoogle:is([data-ad-status="unfilled"],[data-ad-status="unfill-optimized"])):not(:has(ins.adsbygoogle:not([data-ad-status="unfilled"],[data-ad-status="unfill-optimized"]))),
:is(.teknobu-ad-slot,.google-auto-placed):has(ins.adsbygoogle:is([data-ad-status="unfilled"],[data-ad-status="unfill-optimized"])):not(:has(ins.adsbygoogle:not([data-ad-status="unfilled"],[data-ad-status="unfill-optimized"]))) {
  display: none !important;
}
