/* SBC News Theme — mobile-first, responsive desktop
   Accent red matches site: #cc0100
*/

:root {
  --sbc-red: #cc0100;
  --sbc-red-dark: #a80000;
  --sbc-text: #2e3035;
  --sbc-muted: #6b7280;
  --sbc-border: #e8eaed;
  --sbc-bg: #ffffff;
  --sbc-soft: #f6f7f9;
  --sbc-header-h: 56px;
  --sbc-nav-h: 56px;
  --sbc-max: 1120px;
  --font: "Inter", "Proxima Nova", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--sbc-text);
  background: var(--sbc-bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.site-wrapper {
  min-height: 100vh;
  padding-bottom: calc(var(--sbc-nav-h) + env(safe-area-inset-bottom));
}

/* Top ad */
.ad-premium-top {
  background: #2b0a4a;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-banner-placeholder {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 10px 16px;
  text-align: center;
  width: 100%;
}
.ad-banner-placeholder.ad-wide {
  background: linear-gradient(90deg, #111827, #374151);
  border-radius: 4px;
  margin: 12px 16px;
  width: auto;
}
.ad-inline { margin: 8px 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: #fff;
  overflow: visible;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 56px;
  padding: 6px 14px;
  max-width: var(--sbc-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  min-width: 0;
}
.site-logo .logo-img {
  display: block !important;
  height: 34px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
.header-accent {
  height: 3px;
  background: var(--sbc-red);
  width: 100%;
}

@media (min-width: 768px) {
  :root {
    --sbc-header-h: 60px;
  }
  .header-inner {
    min-height: 60px;
    padding: 0 16px;
  }
  .site-logo .logo-img {
    height: 36px !important;
    max-height: 36px !important;
    max-width: 220px !important;
  }
}
/* Category bar in header center — white background */
.top-cat-nav {
  background: #fff;
  position: relative;
  z-index: 300;
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}
.top-cat-nav-inner {
  max-width: none;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: stretch;
}
.top-cat-list {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  overflow: visible; /* must be visible or dropdowns get clipped */
  width: 100%;
}
.top-cat-list > li {
  position: relative;
  flex: 0 0 auto;
}
.top-cat-trigger,
.top-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #2e3035;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.top-cat-list > li.has-dropdown:hover > .top-cat-trigger,
.top-cat-list > li.is-open > .top-cat-trigger,
.top-cat-link:hover {
  color: var(--sbc-red);
  background: transparent;
}
.chev {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6b7280;
  margin-top: 2px;
  transition: transform .15s ease, border-top-color .15s ease;
}
.top-cat-list > li.has-dropdown:hover > .top-cat-trigger .chev,
.top-cat-list > li.is-open > .top-cat-trigger .chev {
  transform: rotate(180deg);
  border-top-color: var(--sbc-red);
}

.top-cat-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  padding: 6px 0;
}
.top-cat-panel--right {
  left: auto;
  right: 0;
}

/* Hover: always show submenu panels */
.top-cat-list > li.has-dropdown:hover > .top-cat-panel,
.top-cat-list > li.has-dropdown:focus-within > .top-cat-panel,
.top-cat-list > li.is-open > .top-cat-panel {
  display: block;
}
.has-submenu:hover > .panel-submenu,
.has-submenu:focus-within > .panel-submenu,
.has-submenu.is-open > .panel-submenu {
  display: block;
}
.has-submenu:hover > .panel-submenu-trigger,
.has-submenu.is-open > .panel-submenu-trigger {
  background: #f9fafb;
  color: var(--sbc-red);
}

.panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel-list > li {
  position: relative;
  border-bottom: 1px solid #e5e7eb;
}
.panel-list > li:last-child { border-bottom: 0; }
.panel-item,
.panel-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
.panel-item:hover,
.panel-submenu-trigger:hover,
.has-submenu:hover > .panel-submenu-trigger,
.has-submenu.is-open > .panel-submenu-trigger {
  background: #fff;
  color: var(--sbc-red);
}
.chev-right {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #6b7280;
  flex: 0 0 auto;
  margin-left: 12px;
}
.has-submenu:hover .chev-right,
.has-submenu.is-open .chev-right {
  border-left-color: var(--sbc-red);
}

/* Nested submenu flies out to the RIGHT */
.panel-submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  width: max-content;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.16);
  z-index: 450;
}
.panel-submenu a {
  display: block;
  padding: 10px 16px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  white-space: nowrap;
}
.panel-submenu a:hover {
  color: var(--sbc-red);
  background: #fafafa;
}
.panel-submenu li:last-child a {
  border-bottom: 0;
}

@media (max-width: 767px) {
  .top-cat-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .top-cat-list {
    width: max-content;
    min-width: 100%;
  }
  .top-cat-trigger,
  .top-cat-link {
    min-height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }
  .top-cat-panel {
    position: absolute;
    left: 0 !important;
    right: auto !important;
    width: 280px;
    max-height: 70vh;
    overflow: auto;
  }
  .panel-submenu {
    position: absolute;
    left: 100%;
    top: 0;
  }
}

@media (min-width: 768px) {
  .top-cat-trigger,
  .top-cat-link {
    font-size: 14px;
    min-height: 52px;
    padding: 0 14px;
  }
  .panel-item,
  .panel-submenu-trigger,
  .panel-submenu a {
    font-size: 13px;
  }
}
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #484e56;
  padding: 8px;
}
.search-label { display: none; font-size: 14px; }

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
}
.search-overlay[hidden] { display: none; }
.search-overlay-inner {
  background: #fff;
  width: 100%;
  max-width: 560px;
  border-radius: 8px;
  padding: 16px;
}
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1;
  border: 1px solid var(--sbc-border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 16px;
}
.search-form button,
.search-close,
.btn-signup,
.btn-download,
.btn-share,
.btn-solid,
.btn-outline {
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}
.search-form button,
.btn-signup,
.btn-download,
.btn-share,
.btn-solid {
  background: var(--sbc-red);
  color: #fff;
  border-color: var(--sbc-red);
}
.btn-outline {
  background: #fff;
  color: #111;
  border-color: #222;
}
.search-close {
  margin-top: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--sbc-border);
}

.desktop-nav { display: none !important; }

.site-main {
  max-width: var(--sbc-max);
  margin: 0 auto;
  padding: 12px 14px 24px;
}

/* Cards */
.sbc-card {
  display: grid;
  gap: 10px;
  color: inherit;
}
.sbc-card-media {
  position: relative;
  overflow: hidden;
  background: #dfe3e8;
  aspect-ratio: 2 / 1;
}
.sbc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.breaking-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: var(--sbc-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 8px 10px;
  text-transform: uppercase;
}
.video-duration {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 3px;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  background: rgba(0,0,0,.18);
}
.sbc-card-cat {
  display: block;
  color: var(--sbc-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sbc-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sbc-text);
}
.sbc-card-date {
  display: block;
  margin-top: 6px;
  color: var(--sbc-muted);
  font-size: 12px;
}

.sbc-card--hero { margin-bottom: 16px; }
.sbc-card--hero .sbc-card-media { aspect-ratio: 16 / 9; border-radius: 0; }
.sbc-card--hero .sbc-card-title { font-size: 22px; }

.sbc-card--horizontal {
  grid-template-columns: 1fr 110px;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sbc-border);
}
.sbc-card--horizontal .sbc-card-media {
  order: 2;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
}
.sbc-card--horizontal .sbc-card-body { order: 1; }
.sbc-card--horizontal .sbc-card-title { font-size: 15px; line-height: 1.3; }

.sbc-card--vertical,
.sbc-card--feature {
  padding-bottom: 14px;
}
.sbc-card--feature .sbc-card-title { font-size: 18px; }

.home-secondary { margin-bottom: 8px; }

/* Sections */
.home-section {
  margin: 22px 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--sbc-border);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--sbc-text);
}
.view-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--sbc-red);
}
.section-grid {
  display: grid;
  gap: 12px;
}
.section-grid .sbc-card--feature {
  border-bottom: 1px solid var(--sbc-border);
}

.newsletter-cta {
  background: var(--sbc-soft);
  padding: 24px 16px;
  margin: 24px 0;
  text-align: center;
  border-radius: 4px;
}
.newsletter-cta h2 { margin: 0 0 8px; font-size: 22px; }
.newsletter-cta p { margin: 0 0 14px; color: var(--sbc-muted); }

/* Apps */
.apps-grid {
  display: grid;
  gap: 14px;
}
.app-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--sbc-border);
  border-radius: 8px;
  background: #fff;
}
.app-card-media img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
}
.app-card-body h3,
.app-card-body h2 {
  margin: 0 0 4px;
  font-size: 16px;
}
.app-meta {
  margin: 0 0 10px;
  color: var(--sbc-muted);
  font-size: 12px;
}
.app-card-lg {
  grid-template-columns: 1fr;
}
.app-card-lg .app-card-media img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
}
.app-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.app-specs { margin: 12px 0; }
.app-specs li { margin-bottom: 6px; font-size: 14px; }
.app-download-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Single article */
.breadcrumbs {
  font-size: 13px;
  color: var(--sbc-muted);
  margin-bottom: 12px;
}
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs a { color: var(--sbc-muted); }
.read-time {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--sbc-muted);
  font-weight: 700;
}
.single-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}
.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--sbc-muted);
  margin-bottom: 14px;
}
.single-meta .btn-share {
  margin-left: auto;
}
.single-featured {
  margin: 0 0 18px;
}
.single-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.entry-content {
  font-size: 17px;
  line-height: 1.65;
  color: #222;
}
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 {
  font-size: 22px;
  margin: 1.4em 0 .7em;
}
.entry-content a { color: var(--sbc-red); text-decoration: underline; }
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.single-tags a {
  border: 1px solid var(--sbc-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}
.related-section { margin-top: 28px; }
.related-section h2 { font-size: 20px; margin-bottom: 10px; }

/* Archives / category pages — match sbcnews.co.uk category-grid */
.archive-header { margin-bottom: 16px; }
.archive-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}
.archive-desc { color: var(--sbc-muted); font-size: 14px; }
.archive-top-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin: 0 0 16px;
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Category top: lead left + exactly 3 side posts (text left, thumb right) */
.category-top {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.category-top-side {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--sbc-red);
}
.sbc-card--lead {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sbc-card--lead .sbc-card-media {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.sbc-card--lead .sbc-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 0;
}
.sbc-card--lead .sbc-card-cat {
  margin: 0;
  color: #cc0100;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
}
.sbc-card--lead .sbc-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.2px;
}
.sbc-card--lead .sbc-card-date {
  margin: 0;
  color: #484e56;
  font-size: 13px;
}

/* Side list item — matches screenshot: cat/title/date left, square thumb right */
.sbc-card--side {
  display: grid;
  grid-template-columns: 1fr 96px;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sbc-border);
}
.sbc-card--side:last-child { border-bottom: 0; }
.sbc-card--side .sbc-card-media {
  order: 2;
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
}
.sbc-card--side .sbc-card-body {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
}
.sbc-card--side .sbc-card-cat {
  margin: 0;
  color: #cc0100;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.sbc-card--side .sbc-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.sbc-card--side .sbc-card-date {
  margin: 0;
  color: #484e56;
  font-size: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 24px;
}
.category-post { min-width: 0; }

.sbc-card--row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--sbc-border);
  padding-bottom: 12px;
}
.sbc-card--row .sbc-card-media {
  flex: 0 0 140px;
  max-width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.sbc-card--row .sbc-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
}
.sbc-card--row .sbc-card-cat {
  margin: 0;
  color: #cc0100;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
}
.sbc-card--row .sbc-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.sbc-card--row .sbc-card-date {
  margin: 0;
  color: #484e56;
  font-size: 12px;
}

.category-post--vertical .sbc-card--vertical .sbc-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #f6f6f6;
}
.category-post--vertical .sbc-card-cat {
  margin: 0;
  color: #cc0100;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
}
.category-post--vertical .sbc-card-date { margin: 0; }
.pagination { margin: 20px 0; }
.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--sbc-border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.pagination .current {
  background: var(--sbc-red);
  border-color: var(--sbc-red);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #111318;
  color: #d1d5db;
  padding: 32px 14px 28px;
  margin-top: 20px;
}
.footer-inner { max-width: var(--sbc-max); margin: 0 auto; }
.footer-brand { margin-bottom: 24px; }
.footer-brand img,
.footer-logo {
  height: 32px !important;
  width: auto !important;
  max-width: 240px !important;
  margin-bottom: 12px;
  object-fit: contain;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 32px; height: 32px;
  border: 1px solid #374151;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.footer-col h2 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: #c5cad3;
}
.footer-newsletter {
  border-top: 1px solid #2a2f38;
  border-bottom: 1px solid #2a2f38;
  padding: 20px 0;
  margin-bottom: 20px;
}
.footer-newsletter h2 { color: #fff; margin: 0 0 8px; font-size: 18px; }
.footer-newsletter p { margin: 0 0 12px; font-size: 14px; }

.friend-links { margin-bottom: 20px; }
.friend-links h2 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.friend-links-list a {
  font-size: 13px;
  color: #9ca3af;
  border-bottom: 1px dotted #4b5563;
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}
.footer-legal a { font-size: 12px; color: #9ca3af; }
/* Language bar — highly visible in footer */
.lang-bar {
  margin: 0 0 20px;
  padding: 16px;
  background: #1a1d24;
  border: 1px solid #374151;
  border-radius: 8px;
}
.lang-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .03em;
}
.lang-bar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lang-btn {
  appearance: none;
  border: 1px solid #4b5563;
  background: #111318;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.lang-btn:hover { border-color: #9ca3af; color: #fff; }
.lang-btn.is-active {
  background: var(--sbc-red);
  border-color: var(--sbc-red);
  color: #fff;
}
.lang-bar-select {
  display: none;
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid #4b5563;
  border-radius: 6px;
  background: #111318;
  color: #f3f4f6;
  font-size: 14px;
}
@media (max-width: 520px) {
  .lang-bar-options { display: none; }
  .lang-bar-select { display: block; }
}
.google-translate-host { display: none !important; }
.copyright { font-size: 12px; color: #6b7280; margin: 0; }

/* Mobile bottom nav */
.mobile-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  min-height: var(--sbc-nav-h);
  padding-bottom: env(safe-area-inset-bottom);
}
.mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: 0;
  padding: 8px 4px;
}
.mbn-item.is-active,
.mbn-more { color: var(--sbc-red); }
.mbn-icon { font-size: 16px; line-height: 1; }

.more-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 180;
}
.more-drawer[hidden] { display: none; }
.more-drawer-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px calc(20px + var(--sbc-nav-h));
}
.more-close {
  position: absolute;
  top: 10px; right: 14px;
  border: 0; background: transparent;
  font-size: 28px; line-height: 1;
}
.more-drawer-panel h2 {
  margin: 16px 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sbc-muted);
}
.more-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--sbc-border);
  font-weight: 600;
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: calc(var(--sbc-nav-h) + 12px);
  z-index: 220;
  background: #fff;
  border: 1px solid #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  padding: 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner h2 { margin: 0 0 8px; font-size: 18px; }
.cookie-inner p { margin: 0 0 14px; font-size: 13px; color: #333; }
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.cookie-actions button { font-size: 12px; padding: 10px 6px; }

/* Tablet / Desktop */
@media (min-width: 768px) {
  .site-wrapper { padding-bottom: 0; }
  .mobile-bottom-nav { display: none; }
  .search-label { display: inline; }
  .home-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .home-secondary .sbc-card--horizontal:first-child { padding-top: 0; }
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-grid .sbc-card--feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    border-bottom: 0;
  }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .category-top {
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
  }
  .category-top-lead .sbc-card--lead { height: 100%; }
  .sbc-card--lead .sbc-card-title { font-size: 24px; }
  .sbc-card--lead .sbc-card-cat { font-size: 14px; }
  .sbc-card--lead .sbc-card-date { font-size: 14px; }
  .sbc-card--side {
    grid-template-columns: 1fr 110px;
    gap: 14px;
    padding: 14px 0;
  }
  .sbc-card--side .sbc-card-media {
    width: 110px;
  }
  .sbc-card--side .sbc-card-cat { font-size: 13px; }
  .sbc-card--side .sbc-card-title { font-size: 16px; }
  .sbc-card--side .sbc-card-date { font-size: 13px; }
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .category-post--vertical { grid-column: span 1; }
  .category-post--row { grid-column: 1 / span 3; }
  .sbc-card--row .sbc-card-cat,
  .category-post--vertical .sbc-card-cat {
    font-size: 14px;
  }
  .sbc-card--row .sbc-card-media {
    flex-basis: 220px;
    max-width: 220px;
  }
  .sbc-card--row .sbc-card-title { font-size: 18px; }
  .sbc-card--row .sbc-card-date { font-size: 14px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 32px));
    bottom: 24px;
  }
  .sbc-card--hero .sbc-card-title { font-size: 28px; }
  .single-title { font-size: 36px; max-width: 18em; }
  .app-hero {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .site-main { padding: 20px 20px 40px; }
  .section-grid { grid-template-columns: repeat(4, 1fr); }
  .section-grid .sbc-card--feature {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .sbc-card--horizontal {
    grid-template-columns: 1fr 140px;
  }
}
