/* Managed advertising slots stay visually quiet until an administrator
   activates a creative. */
.site-ad-slot {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
  text-align: center;
}
.site-ad-label {
  display: block;
  margin-bottom: .35rem;
  color: #94a3b8;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-ad-slot iframe,
.site-ad-slot img,
.site-ad-slot ins {
  max-width: 100%;
}
/* ============================================================
   What Is a Riser Desk — Premium Consumer Guide Stylesheet
   Primary: Slate Navy | Accent: Calm Blue | BG: Slate 50
   ============================================================ */

:root {
  --primary: #1e293b;
  --primary-dark: #0f172a;
  --accent: #0369a1; /* accessible calm blue */
  --accent-dark: #075985;
  --accent-soft: #e0f2fe;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card-bg: #ffffff;
  --text: #475569;
  --heading: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;

  --radius: 16px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #cbd5e1;
  --primary-dark: #020617;
  --accent: #38bdf8;
  --accent-dark: #7dd3fc;
  --accent-soft: #082f49;
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --card-bg: #162033;
  --text: #cbd5e1;
  --heading: #f8fafc;
  --muted: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .25);
  --shadow: 0 4px 8px rgb(0 0 0 / .25);
  --shadow-lg: 0 12px 24px rgb(0 0 0 / .35);
}

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

html { scroll-behavior: smooth; }

/* Avoid spending the first frame laying out content below the fold. */
.homepage-featured-sections,
.homepage-guide-section,
body > footer {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .2s ease, color .2s ease;
}

img { max-width: 100%; height: auto; }

.object-fit-cover { object-fit: cover; }

.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

.font-sans { font-family: var(--font-sans) !important; }
.font-serif { font-family: var(--font-serif) !important; }
.site-logo { display:block; width:auto; max-width:168px; height:48px; object-fit:contain; }

/* Keep uploaded branding readable when the public shell switches themes. */
html[data-theme="dark"] .site-logo {
  filter: invert(1) brightness(1.08);
  mix-blend-mode: screen;
}
html[data-theme="dark"] .brand-icon {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 12px rgba(2, 6, 23, .35);
}

.text-heading { color: var(--heading) !important; }
.text-accent { color: var(--accent) !important; }
.text-text { color: var(--text) !important; }
.bg-heading { background-color: var(--heading) !important; }
.bg-accent { background-color: var(--accent) !important; color: #fff; }
.bg-accent-soft { background-color: var(--accent-soft) !important; }
.bg-bg-alt { background-color: var(--bg-alt) !important; }
.text-primary { color: var(--accent) !important; }
.bg-primary { background-color: var(--accent) !important; }
.bg-primary-subtle { background-color: var(--accent-soft) !important; }
.text-success { color: #059669 !important; }
.bg-success { background-color: #059669 !important; }
.bg-success-subtle { background-color: #ecfdf5 !important; }
.mt-6 { margin-top: 4rem !important; }

.theme-toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 8px !important;
  font-size: .78rem;
}

@media (min-width: 992px) {
  #mainNav .navbar-nav { gap: .35rem !important; }
  #mainNav .nav-link { padding-left: .48rem; padding-right: .48rem; }
  #mainNav .nav-search-form { width: 160px; }
  #mainNav .nav-search-form .input-group {
    width: 100%;
    flex-wrap: nowrap;
  }
  #mainNav .nav-search-input {
    width: 100%;
    min-width: 0;
    font-size: .72rem;
    padding-left: .65rem !important;
    padding-right: .3rem !important;
  }
  #mainNav .nav-search-input:focus { width: 100%; }
  #mainNav .nav-search-form .btn {
    flex: 0 0 30px;
    padding-left: .25rem;
    padding-right: .25rem;
  }
  #mainNav > .container > .navbar-collapse > .d-none.d-lg-flex { gap: .4rem !important; }
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .card,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .table,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text {
  background-color: var(--card-bg) !important;
  color: var(--text);
  border-color: var(--border) !important;
}
html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-heading { color: var(--heading) !important; }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary { color: var(--muted) !important; }
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] hr { border-color: var(--border) !important; }
html[data-theme="dark"] .navbar,
html[data-theme="dark"] #mainNav { background-color: var(--bg) !important; border-color: var(--border) !important; }
html[data-theme="dark"] #mainNav .nav-link { color: var(--text); }
html[data-theme="dark"] #mainNav .nav-link:hover,
html[data-theme="dark"] #mainNav .nav-link.active { color: var(--heading) !important; background: var(--bg-alt); }
html[data-theme="dark"] .dropdown-item { color: var(--text) !important; }
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus { color: var(--heading) !important; background: var(--bg-alt); }
html[data-theme="dark"] .form-control::placeholder { color: #64748b; }
html[data-theme="dark"] .btn-outline-dark { color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .btn-outline-dark:hover { color: var(--heading); background: var(--bg-alt); }
html[data-theme="dark"] .table { --bs-table-color: var(--text); --bs-table-border-color: var(--border); }
html[data-theme="dark"] .table-light,
html[data-theme="dark"] .bg-light { background-color: var(--bg-alt) !important; color: var(--text) !important; }
html[data-theme="dark"] .breadcrumb-item,
html[data-theme="dark"] .breadcrumb-item.active { color: var(--muted); }
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .article-body p,
html[data-theme="dark"] .article-body li { color: #dbeafe; }
html[data-theme="dark"] .article-body h2,
html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-body h4,
html[data-theme="dark"] .article-body strong,
html[data-theme="dark"] .article-title,
html[data-theme="dark"] .sidebar-widget h3,
html[data-theme="dark"] .sidebar-widget h4 { color: #f8fafc !important; }
html[data-theme="dark"] .article-body a,
html[data-theme="dark"] .sidebar-widget a { color: #7dd3fc !important; }
html[data-theme="dark"] .article-body a:hover,
html[data-theme="dark"] .sidebar-widget a:hover { color: #bae6fd !important; }
html[data-theme="dark"] .sidebar-widget .text-muted,
html[data-theme="dark"] .sidebar-widget .text-secondary { color: #cbd5e1 !important; }
html[data-theme="dark"] .sidebar-widget a.btn-primary,
html[data-theme="dark"] .sidebar-widget .btn-primary {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #fff !important;
  text-decoration: none !important;
}
html[data-theme="dark"] .sidebar-widget a.btn-primary:hover,
html[data-theme="dark"] .sidebar-widget a.btn-primary:focus-visible,
html[data-theme="dark"] .sidebar-widget .btn-primary:hover,
html[data-theme="dark"] .sidebar-widget .btn-primary:focus-visible {
  background-color: #0369a1 !important;
  border-color: #0369a1 !important;
  color: #fff !important;
}
html[data-theme="dark"] .article-body blockquote { color: #e2e8f0; }
html[data-theme="dark"] .quick-answer-box { color: #dbeafe; }
html[data-theme="dark"] .expert-tips-box {
  background: #052e1b !important;
  border-color: #34d399 !important;
  color: #d1fae5;
}

/* ── Utilities ───────────────────────────────────────────── */
.transition-all { transition: all 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
.hover-opacity-75:hover { opacity: 0.75 !important; }
.hover-opacity-100:hover { opacity: 1 !important; }
.hover-shadow:hover { box-shadow: var(--shadow-lg) !important; transform: translateY(-2px); border-color: var(--border) !important; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tracking-wide { letter-spacing: 0.05em; }

/* Homepage featured sections intentionally lead with products, followed by reading. */
.homepage-featured-sections {
  display: flex;
  flex-direction: column;
}
.homepage-featured-products { order: 1; }
.homepage-featured-reading { order: 2; }

/* Homepage cards: a quiet animated travel border inspired by the reference,
   using the site's blue/teal palette instead of a loud neon treatment. */
.hero-visual,
.homepage-featured-sections .article-card,
.homepage-featured-sections .product-card,
.homepage-featured-sections .comparison-card,
.category-tile {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(115deg, var(--accent), #10b981, #8b5cf6, var(--accent)) border-box;
  background-size: 100% 100%, 320% 100%;
  animation: homepage-card-border-travel 9s ease-in-out infinite;
}
html[data-theme="dark"] .hero-visual,
html[data-theme="dark"] .homepage-featured-sections .article-card,
html[data-theme="dark"] .homepage-featured-sections .product-card,
html[data-theme="dark"] .homepage-featured-sections .comparison-card,
html[data-theme="dark"] .category-tile {
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(115deg, #22d3ee, #34d399, #a78bfa, #f472b6, #22d3ee) border-box;
  background-size: 100% 100%, 260% 100%;
  animation-duration: 5s;
}
.hero-visual {
  border-radius: var(--radius) !important;
}
.homepage-featured-sections .article-card,
.homepage-featured-sections .product-card {
  box-shadow: var(--shadow) !important;
}
.homepage-featured-sections .article-card:hover,
.homepage-featured-sections .product-card:hover,
.homepage-featured-sections .comparison-card:hover,
.category-tile:hover,
.hero-visual:hover {
  animation-duration: 4s;
  box-shadow: var(--shadow-lg) !important;
}
@keyframes homepage-card-border-travel {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .homepage-featured-sections .article-card,
  .homepage-featured-sections .product-card,
  .homepage-featured-sections .comparison-card,
  .category-tile {
    animation: none;
  }
}

/* Group interactions */
.group:hover .group-hover-bg-accent { background: var(--accent) !important; color: white !important; }
.group:hover .group-hover-translate-x { transform: translateX(4px); color: var(--accent) !important; }
.group:hover .group-hover-text-accent { color: var(--accent) !important; }

/* Admin-managed guide content on the homepage. */
.homepage-guide-shell {
  max-width: 980px;
  margin: 0 auto;
}
.homepage-guide-scroll {
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}
.homepage-guide-scroll::-webkit-scrollbar { width: 8px; }
.homepage-guide-scroll::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 99px; }
.homepage-guide-scroll h2,
.homepage-guide-scroll h3,
.homepage-guide-scroll h4 { margin-top: 1.5rem; }
.homepage-guide-scroll h2:first-child,
.homepage-guide-scroll h3:first-child,
.homepage-guide-scroll h4:first-child,
.homepage-guide-scroll p:first-child { margin-top: 0; }
.homepage-guide-scroll img { max-width: 100%; height: auto; }
@media (max-width: 575.98px) {
  .homepage-guide-scroll { max-height: 620px; padding: 1rem; }
}

/* ── Top Bar ────────────────────────────────────────────── */
.topbar { font-size: 0.72rem; letter-spacing: 0.01em; }

/* ── Navbar ─────────────────────────────────────────────── */
#mainNav {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: none !important;
  z-index: 1040;
}
#mainNav .nav-link {
  color: var(--text);
  font-size: 0.8125rem;
  padding: 0.4rem 0.58rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--heading) !important;
  background: var(--bg-alt);
}
#mainNav .nav-link.active { font-weight: 700; }
#mainNav .nav-link:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.28);
  outline-offset: 2px;
}

.nav-search-input { width: 140px; }
.nav-search-input:focus { box-shadow: none; border-color: var(--border); width: 180px; transition: width 0.3s ease; }
.nav-search-form .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.22);
  border-radius: 8px;
}

@media (min-width: 1300px) {
  .nav-search-input { width: 180px; }
  .nav-search-input:focus { width: 220px; }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
  .nav-search-form { display: none !important; }
  #mainNav .nav-link { padding-left: 0.48rem; padding-right: 0.48rem; }
}

/* Compact desktop category menus: keep dropdowns visually aligned with the
   compact primary navigation instead of letting long labels create a large panel. */
@media (min-width: 992px) {
  #navbarMain .dropdown-menu {
    min-width: 12rem;
    max-width: 15rem;
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
    border-radius: 10px;
  }
  #navbarMain .dropdown-item {
    padding: .42rem .75rem !important;
    font-size: .8rem;
    line-height: 1.3;
    white-space: nowrap;
  }
  #navbarMain .dropdown-divider {
    margin: .3rem 0;
  }
}

/* Mobile nav collapse styling */
@media (max-width: 991.98px) {
  #navbarMain {
    max-height: 85vh;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
  #navbarMain .dropdown-menu {
    box-shadow: none !important;
    border: none !important;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
  }
  #navbarMain .mobile-menu-actions {
    margin-top: 1.25rem !important;
    padding-top: 1rem !important;
    padding-bottom: .25rem;
  }
  #navbarMain .mobile-menu-actions form .form-control {
    min-height: 44px;
    border: 1px solid var(--border) !important;
  }
  #navbarMain .mobile-menu-actions form .btn {
    min-width: 48px;
  }
  #navbarMain .mobile-menu-actions > .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  border-radius: 8px;
  transition: all 0.2s;
  padding: 0.5rem 1.25rem;
}
.btn-accent {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

/* Admin site-settings workspace */
.settings-page .settings-save-toolbar {
  padding: .8rem 1rem;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.settings-save-toolbar strong {
  display: block;
  color: #172033;
  font-size: .78rem;
}
.settings-save-toolbar strong i { color: #2563eb; }
.settings-save-toolbar span {
  display: block;
  margin-top: .15rem;
  color: #64748b;
  font-size: .7rem;
}
.settings-save-toolbar .btn {
  min-height: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .2);
}
html[data-admin-theme="dark"] .settings-page .settings-save-toolbar {
  border-color: #2b4a73;
  background: linear-gradient(135deg, #172a46, #162238);
}
html[data-admin-theme="dark"] .settings-save-toolbar strong { color: #f8fafc; }
html[data-admin-theme="dark"] .settings-save-toolbar span { color: #9aabc2; }
@media (max-width: 575.98px) {
  .settings-page .settings-save-toolbar {
    align-items: stretch !important;
    flex-direction: column;
  }
  .settings-save-toolbar .btn { width: 100%; }
}

/* ── Cookie consent ─────────────────────────────────────────── */
.cookie-consent {
  position: fixed;
  z-index: 9998;
  right: 22px;
  bottom: 22px;
  width: min(650px, calc(100vw - 44px));
  color: #e2e8f0;
  background: rgba(15, 23, 42, .97);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(2, 6, 23, .3);
  backdrop-filter: blur(14px);
  animation: cookie-consent-in .35s ease both;
}
.cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.05rem;
}
.cookie-consent-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #93c5fd;
  background: rgba(37, 99, 235, .2);
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: 12px;
  font-size: 1.1rem;
}
.cookie-consent-copy { min-width: 0; flex: 1; }
.cookie-consent-title {
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  margin-bottom: .15rem;
}
.cookie-consent-copy p {
  color: #b6c5d9;
  font-size: .72rem;
  line-height: 1.45;
}
.cookie-consent-copy a {
  display: inline-block;
  margin-top: .3rem;
  color: #7dd3fc;
  font-size: .68rem;
  font-weight: 700;
  text-decoration: none;
}
.cookie-consent-copy a:hover { color: #fff; text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: .45rem;
}
.cookie-consent-actions .btn {
  min-height: 36px;
  padding: .45rem .8rem;
  border-radius: 9px;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.cookie-consent-actions #cookieAccept {
  color: #fff !important;
  background: #000 !important;
  border-color: #000 !important;
}
.cookie-consent-actions #cookieAccept:hover,
.cookie-consent-actions #cookieAccept:focus {
  color: #fff !important;
  background: #1f2937 !important;
  border-color: #1f2937 !important;
}


html[data-theme="dark"] .cookie-consent {
  color: #dbeafe;
  background: rgba(8, 15, 30, .98);
  border-color: rgba(96, 165, 250, .3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .cookie-consent-icon {
  color: #bae6fd;
  background: rgba(14, 116, 144, .28);
  border-color: rgba(125, 211, 252, .32);
}
html[data-theme="dark"] .cookie-consent-copy p { color: #b7c7dc; }
html[data-theme="dark"] .cookie-consent-copy a { color: #7dd3fc; }
html[data-theme="dark"] .cookie-consent-actions .btn-outline-light {
  color: #dbeafe;
  border-color: #64748b;
}
html[data-theme="dark"] .cookie-consent-actions .btn-outline-light:hover,
html[data-theme="dark"] .cookie-consent-actions .btn-outline-light:focus {
  color: #fff;
  background: #1e3a5f;
  border-color: #93c5fd;
}
@keyframes cookie-consent-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 575.98px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    border-radius: 16px;
  }
  .cookie-consent-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: .9rem;
  }
  .cookie-consent-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: .95rem; }
  .cookie-consent-copy { flex-basis: calc(100% - 50px); }
  .cookie-consent-actions {
    width: 100%;
    padding-left: 50px;
  }
  .cookie-consent-actions .btn { flex: 1; }
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}
.btn-outline-dark {
  border: 1px solid var(--border);
  color: var(--heading);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--bg-alt);
  color: var(--heading);
  border-color: var(--border);
}
.btn-primary { background-color: var(--primary); border-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-success { background-color: #059669; border-color: #059669; color: #fff; }
.btn-success:hover, .btn-success:focus { background-color: #047857; border-color: #047857; color: #fff; }
.btn:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.35);
  outline-offset: 2px;
  box-shadow: none !important;
}

.social-share .share-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--heading);
  background: var(--card-bg);
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, background-color .2s ease;
}
.social-share .share-icon:hover,
.social-share .share-icon:focus-visible { color: #fff; transform: translateY(-2px); }
.social-share .share-x:hover, .social-share .share-x:focus-visible { background: #111827; border-color: #111827; }
.social-share .share-facebook:hover, .social-share .share-facebook:focus-visible { background: #1877f2; border-color: #1877f2; }
.social-share .share-linkedin:hover, .social-share .share-linkedin:focus-visible { background: #0a66c2; border-color: #0a66c2; }
.social-share .share-whatsapp:hover, .social-share .share-whatsapp:focus-visible { background: #16a34a; border-color: #16a34a; }
.social-share .share-copy:hover, .social-share .share-copy:focus-visible { background: var(--accent); border-color: var(--accent); }
.related-card-link { display: block; min-height: 44px; }

/* ── Hero Section ────────────────────────────────────────── */
.hero-section { overflow: hidden; }

.editorial-search .input-group-text,
.editorial-search .form-control {
  border-radius: 99px;
}
.editorial-search .form-control:focus {
  box-shadow: none;
}
.editorial-search .input-group:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.16) !important;
}

.badge-editorial {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-alt);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.link-pill {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  transition: all 0.2s;
}
.link-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #bae6fd;
}

.icon-box-soft {
  width: 48px; height: 48px; font-size: 1.25rem;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Small editorial labels are links in several cards; keep them comfortably
   tappable without changing their visual scale. */
.category-label-link,
.article-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--heading);
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* ── Category Tiles ──────────────────────────────────────── */
.category-tile {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-decoration: none;
  transition: all 0.2s;
  height: 100%;
}
.category-tile:hover {
  background: var(--card-bg);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.cat-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  color: var(--heading);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  transition: background 0.2s, color 0.2s;
}
.category-tile:hover .cat-icon-wrap {
  background: var(--accent);
  color: white;
}

/* ── Article Cards ───────────────────────────────────────── */
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg) !important;
}

.article-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
}
.article-badge:hover { color: var(--accent-dark); }

/* ── Product Cards ───────────────────────────────────────── */
.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg) !important;
}
.price-display { line-height: 1; }
.homepage-featured-products .product-card {
  max-width: 355px;
  margin-left: auto;
  margin-right: auto;
}
.homepage-featured-products .product-card-body {
  padding-bottom: 1.1rem !important;
}
.homepage-featured-products .product-card-body .bg-bg-alt {
  padding: .85rem !important;
  border: 1px solid var(--border);
  border-radius: 10px !important;
}
.homepage-featured-products .product-card-body li {
  margin-bottom: .35rem !important;
  font-size: .76rem !important;
  line-height: 1.35;
}
.homepage-featured-products .product-card-body li:last-child { margin-bottom: 0 !important; }
.homepage-featured-products .product-card-footer {
  padding: .85rem !important;
}
.homepage-featured-products .product-card-footer .btn {
  min-height: 38px;
  border-radius: 9px;
  font-size: .78rem;
}
.homepage-featured-products .product-card-footer .btn-accent {
  border: 0;
  color: #fff;
  background: linear-gradient(105deg, #0284c7, #06b6d4 48%, #10b981);
  background-size: 220% 100%;
  box-shadow: 0 6px 15px rgba(6,182,212,.24);
  transition: background-position .35s ease, transform .2s ease, box-shadow .2s ease;
}
.homepage-featured-products .product-card-footer .btn-accent:hover {
  color: #fff;
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(6,182,212,.34);
}
.homepage-featured-products .product-card-footer .btn-outline-dark {
  border-color: var(--border);
  color: var(--heading);
}
.homepage-featured-products .product-card-footer .btn-outline-dark:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ── Comparison Cards ────────────────────────────────────── */
.comparison-card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.comparison-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.comp-icon {
  width: 44px; height: 44px;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--heading);
  display: flex; align-items: center; justify-content: center;
}

/* ── Trust Section & FAQ ─────────────────────────────────── */
.trust-icon {
  width: 48px; height: 48px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

.editorial-accordion .accordion-button {
  font-family: var(--font-sans);
  font-size: 1.05rem;
}
.editorial-accordion .accordion-button:not(.collapsed) {
  color: var(--accent) !important;
}
.editorial-accordion .accordion-button:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  box-shadow: inset 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
  position: relative;
  z-index: 1;
}
.editorial-accordion .accordion-button:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(2, 132, 199, 0.3) !important;
  position: relative;
  z-index: 1;
}
.editorial-accordion .accordion-item:last-child {
  border-bottom: 0 !important;
}
.editorial-accordion .accordion-item { border-radius: 0; }
.editorial-accordion .accordion-button::after {
  background-size: 1rem;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar-widget { border: 1px solid var(--border) !important; border-radius: var(--radius); }
.sidebar-widget .sticky-top { top: 76px; }
.sidebar-widget {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sidebar-widget::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: .9;
}
.sidebar-widget:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  box-shadow: var(--shadow) !important;
}
.sidebar-widget h3 { letter-spacing: -.01em; }
.sidebar-widget a {
  display: block;
  padding: .35rem .5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}
.sidebar-widget a:hover {
  background: var(--accent-soft);
  padding-left: .7rem;
}
.sidebar-products-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sidebar-product-card {
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
}
.sidebar-product-card-head {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
.sidebar-product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .95rem;
}
.sidebar-product-title {
  margin: 0;
  color: var(--heading);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}
.sidebar-product-brand {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .72rem;
}
.sidebar-product-price {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}
.sidebar-product-rating {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.sidebar-product-rating i { color: #f59e0b; }
html[data-theme="dark"] .sidebar-product-card {
  background: #111c30;
  border-color: #475569;
}
html[data-theme="dark"] .sidebar-product-title { color: #f8fafc; }
html[data-theme="dark"] .sidebar-product-brand,
html[data-theme="dark"] .sidebar-product-rating { color: #cbd5e1; }
.article-breadcrumb {
  background: var(--bg);
  border-color: var(--border) !important;
  padding: .85rem 0;
}
.article-breadcrumb .breadcrumb {
  font-size: .78rem;
  font-weight: 600;
  align-items: center;
}
.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--muted);
  font-size: 1rem;
  padding: 0 .65rem;
}
.article-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
.article-breadcrumb a:hover { color: var(--accent-dark); }
.article-breadcrumb .active { color: var(--muted); }

/* Shared public breadcrumb bar. Most public templates use Bootstrap's
   breadcrumb markup directly, while article pages use .article-breadcrumb;
   this keeps both variants visually consistent. */
nav:has(> .container > .breadcrumb),
nav:has(.breadcrumb) {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: .7rem 0 !important;
}
nav:has(.breadcrumb) .breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .15rem;
  margin: 0;
  min-height: 34px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
nav:has(.breadcrumb) .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
}
nav:has(.breadcrumb) .breadcrumb-item:first-child a::before {
  content: "⌂";
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: .35rem;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: .9rem;
  line-height: 1;
}
nav:has(.breadcrumb) .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--muted);
  padding: 0 .55rem;
  font-size: 1.1rem;
  line-height: 1;
}
nav:has(.breadcrumb) .breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--accent);
  text-decoration: none;
  border-radius: 9px;
  padding: .15rem .35rem;
  transition: background-color .15s ease, color .15s ease;
}
nav:has(.breadcrumb) .breadcrumb a:hover,
nav:has(.breadcrumb) .breadcrumb a:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
}
nav:has(.breadcrumb) .breadcrumb-item.active {
  max-width: min(620px, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--heading);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: .25rem .65rem;
}
@media (max-width: 575.98px) {
  nav:has(.breadcrumb) .breadcrumb { font-size: .75rem; }
  nav:has(.breadcrumb) .breadcrumb-item.active { max-width: 58vw; }
}
.sidebar-card-heading {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.15rem;
}
.sidebar-card-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: .95rem;
}
.picks-icon { color: #d97706; background: #fef3c7; }
.sidebar-eyebrow {
  display: block;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  margin-bottom: .3rem;
  text-transform: uppercase;
}
.related-guide-list {
  display: grid;
  gap: .25rem;
}
.related-guide-list a {
  position: relative;
  padding: .55rem .65rem .55rem 1.75rem;
  color: var(--text) !important;
  font-weight: 600;
  border: 1px solid transparent;
}
.related-guide-list a::before {
  content: "→";
  position: absolute;
  left: .65rem;
  color: var(--accent);
}
.related-guide-list a:hover { color: var(--accent) !important; border-color: var(--border); }
.top-pick-item {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.top-pick-item:first-of-type { border-top: 0; padding-top: 0; }
.top-pick-name {
  color: var(--heading);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .35rem;
}
.top-pick-price {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .7rem;
}
.top-pick-item .btn {
  border-radius: 8px;
  font-size: .76rem;
  padding: .55rem .7rem;
}

.toc-nav a {
  display: block;
  padding: 0.2rem 0 0.2rem 0.75rem;
  border-left: 2px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: border-color 0.15s, color 0.15s;
}
.toc-nav a:hover, .toc-nav a.active {
  border-left-color: var(--accent);
  color: var(--accent);
}
.toc-nav a.h3-link { padding-left: 1.5rem; font-size: 0.8125rem; }

/* ── Article Body / Prose ────────────────────────────────── */
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--heading);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--heading);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 90px;
}
.article-body h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--heading); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-dark); }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--heading);
}
.article-body table {
  width: 100% !important;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow: hidden;
}
.article-body table th,
.article-body table td {
  width: auto !important;
  padding: 0.8rem 0.95rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  color: var(--text);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.article-body table th {
  background: var(--bg-alt);
  color: var(--heading);
  font-weight: 800;
  white-space: normal;
}
.article-body table tr:last-child > * { border-bottom: 0; }
.article-body table tr > *:last-child { border-right: 0; }
.article-body table tbody tr:nth-child(even) > * { background: var(--bg-alt); }
.article-body table caption {
  padding: 0.65rem 0.95rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: left;
  caption-side: bottom;
}
html[data-theme="dark"] .article-body table,
html[data-theme="dark"] .article-body table th,
html[data-theme="dark"] .article-body table td {
  border-color: var(--border);
}
html[data-theme="dark"] .article-body table td { background: var(--card-bg); }
html[data-theme="dark"] .article-body table tbody tr:nth-child(even) > * { background: var(--bg-alt); }
.article-body img { border-radius: 12px; margin: 2rem 0; border: 1px solid var(--border); }

/* Wrap tables on mobile */
.article-body .table-responsive,
.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.quick-answer-box { background: var(--bg-alt) !important; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.expert-tips-box { background: #f0fdf4 !important; border-color: #10b981 !important; border-radius: var(--radius-sm); }

/* ── Article Meta / Header ───────────────────────────────── */
.article-header { border-bottom: 1px solid var(--border); }
.article-title { color: var(--heading); }

/* ── Comments ────────────────────────────────────────────── */
.comment-avatar { width: 44px; height: 44px; flex-shrink: 0; }

/* ── Affiliate Boxes ─────────────────────────────────────── */
.affiliate-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--card-bg);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

/* ── Author Bio ──────────────────────────────────────────── */
.author-bio {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--card-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Newsletter Section ──────────────────────────────────── */
.newsletter-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 2rem 0 !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 52%, #0284c7 100%) !important;
}
.newsletter-section::before,
.newsletter-section::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  pointer-events: none;
}
.newsletter-section::before { width: 360px; height: 360px; left: -170px; top: -230px; }
.newsletter-section::after { width: 420px; height: 420px; right: -210px; bottom: -310px; }
.newsletter-panel {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.75rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, .2) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  backdrop-filter: blur(6px);
}
.newsletter-kicker {
  margin-bottom: .4rem;
  color: rgba(255,255,255,.78);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.newsletter-copy h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.newsletter-copy p { max-width: 500px; color: rgba(255,255,255,.82); line-height: 1.45; }
.newsletter-copy h3,
.newsletter-copy .newsletter-kicker { color: #fff !important; }
.newsletter-section form { align-items: stretch; }
.newsletter-input-wrap {
  position: relative;
  flex: 1 1 auto;
}
.newsletter-input-wrap > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  z-index: 1;
  color: #64748b;
  transform: translateY(-50%);
}
.newsletter-input-wrap .form-control {
  min-height: 44px;
  padding-left: 2.7rem;
  border: 0;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(15,23,42,.12);
}
.newsletter-section .btn {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(15,23,42,.14);
}
.newsletter-privacy { color: rgba(255,255,255,.68); font-size: .72rem !important; }
html[data-theme="dark"] .newsletter-section {
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 52%, #075985 100%) !important;
}
html[data-theme="dark"] .newsletter-panel { background: rgba(2, 6, 23, .28); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 8% 0%, rgba(14,165,233,.12), transparent 25%), #0b1220;
  color: #94a3b8;
  border-top: 1px solid rgba(148,163,184,.16);
}
footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #10b981);
}
footer > .container { position: relative; z-index: 1; }
footer .row.g-5 { row-gap: 2.5rem !important; }
footer .brand-icon { box-shadow: 0 8px 18px rgba(2,132,199,.28); }
footer .col-lg-4 > p { max-width: 310px; color: #94a3b8 !important; line-height: 1.7 !important; }
footer h6 {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #f8fafc !important;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
footer h6::before { content: ""; width: 18px; height: 2px; flex: 0 0 18px; border-radius: 2px; background: #38bdf8; }
footer h6.border-bottom { border-bottom: 0 !important; padding-bottom: .65rem !important; margin-bottom: .7rem !important; }
footer ul { margin: 0; }
footer ul li { margin-bottom: .35rem !important; }
.footer-link {
  color: #aebdce;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-block;
  padding: .18rem 0;
  font-size: .83rem;
}
.footer-link:hover { color: #7dd3fc; transform: translateX(3px); }
footer .text-secondary { color: #94a3b8 !important; }
footer .badge {
  padding: .42rem .6rem;
  border-radius: 7px;
  background: rgba(148,163,184,.1) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148,163,184,.25) !important;
  font-size: .65rem;
}
footer .fs-5 {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 9px;
  background: rgba(148,163,184,.06);
  font-size: .95rem !important;
  transition: all .2s ease;
}
footer .fs-5:hover {
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.45);
  transform: translateY(-2px);
}
footer hr.border-secondary { border-color: rgba(148,163,184,.18) !important; opacity: 1; }
footer .border-top.border-secondary { border-color: rgba(148,163,184,.14) !important; }
footer .text-danger { color: #fb7185 !important; }
.footer-credits {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  background: linear-gradient(90deg, #7dd3fc, #a78bfa, #f9a8d4, #6ee7b7, #7dd3fc);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: footer-credit-shimmer 7s linear infinite;
}
.footer-credits strong { font-weight: 800; }
.footer-credits a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.footer-credits a:hover { opacity: .78; }
@keyframes footer-credit-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-credits { animation: none; }
}
.hover-primary:hover { color: var(--accent) !important; }

/* ── Admin Panel ─────────────────────────────────────────── */
.admin-sidebar {
  min-height: 100vh;
  background: #1e293b;
  width: 260px;
  flex-shrink: 0;
}
.admin-sidebar .nav-link {
  color: #94a3b8;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
  transition: background 0.15s, color 0.15s;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.admin-sidebar .nav-link i { width: 20px; }
.admin-content { flex: 1; background: #f8fafc; min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e5e7eb; }

/* ── Programmatic SEO pages ──────────────────────────────── */
.seo-page-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32%),
    linear-gradient(135deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}
.seo-page-header::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -170px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.seo-page-header .container { position: relative; z-index: 1; }
.seo-page-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.seo-page-header .section-tag::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.seo-page-header h1 {
  max-width: 850px;
  color: var(--heading);
  letter-spacing: -.035em;
}
.seo-page-header .lead {
  max-width: 720px;
  color: var(--muted) !important;
  font-size: 1.1rem;
}
.seo-page-header .quick-answer-box {
  max-width: 780px;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem !important;
  border-left-width: 4px !important;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--bg)) !important;
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge { font-weight: 600; letter-spacing: 0.01em; }

/* ── Back to Top ─────────────────────────────────────────── */
#backToTop {
  width: 44px; height: 44px;
  line-height: 1; padding: 0;
  display: flex !important; align-items: center; justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
  background-color: var(--heading);
  color: white; border: none; border-radius: 8px;
}
#backToTop:hover { background-color: var(--accent); }
#backToTop.visible { display: flex !important; }

/* ── Loading States ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   MOBILE RESPONSIVE (≤ 767px)
   ============================================================ */
@media (max-width: 767.98px) {
  /* Hero */
  /* Bootstrap .g-5 sets a 3rem gutter with !important; its -24px row margins
     exceed the 12px container padding on phones and cause horizontal overflow.
     Cap the horizontal gutter so rows stay flush with the container. */
  .row.g-5 { --bs-gutter-x: 1.5rem !important; }
  .hero-section .row { text-align: center; }
  .hero-section .col-lg-7 { text-align: center; }
  .editorial-search .input-group {
    flex-wrap: nowrap;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    padding: 0.35rem !important;
  }
  .editorial-search .input-group-text { display: flex; padding-left: 0.65rem !important; padding-right: 0.35rem; }
  .editorial-search .form-control {
    width: 1%;
    min-width: 0;
    border-radius: 8px !important;
    text-align: left;
    padding: 0.75rem 0.25rem !important;
    font-size: 0.875rem !important;
  }
  .editorial-search .btn {
    width: auto;
    flex: 0 0 auto;
    border-radius: 9px !important;
    margin: 0 !important;
    padding: 0.65rem 1rem;
  }

  .hero-title br { display: none; }

  /* Quick links */
  .quick-links-wrap { gap: 0.4rem !important; justify-content: center; }

  /* Typography */
  .article-body { font-size: 1.05rem; }
  .section-title { font-size: 1.75rem; }

  /* Tables: keep the table layout intact and scroll its wrapper instead. */
  .table-responsive,
  .article-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .article-body .table-responsive > table,
  .article-table-scroll > table {
    display: table;
    width: max-content !important;
    min-width: 620px;
    max-width: none;
    margin-bottom: 0;
  }
  .table-responsive > table {
    display: table;
    max-width: none;
  }

  /* Article tables become readable cards instead of clipped four-column grids. */
  .article-body .table-responsive {
    overflow: visible;
  }
  .article-body .table-responsive > table,
  .article-table-scroll > table {
    display: block;
    width: 100% !important;
    min-width: 0;
  }
  .article-body .table-responsive thead,
  .article-table-scroll thead {
    display: none;
  }
  .article-body .table-responsive tbody,
  .article-table-scroll tbody {
    display: block;
  }
  .article-body .table-responsive tbody tr,
  .article-table-scroll tbody tr {
    display: block;
    margin-bottom: .75rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
  }
  .article-body .table-responsive tbody td,
  .article-table-scroll tbody td {
    display: grid;
    grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
    gap: .7rem;
    align-items: start;
    width: 100%;
    min-width: 0;
    padding: .65rem .75rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .article-body .table-responsive tbody td:last-child,
  .article-table-scroll tbody td:last-child {
    border-bottom: 0;
  }
  .article-body .table-responsive tbody td::before,
  .article-table-scroll tbody td::before {
    content: attr(data-label);
    color: var(--heading);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  /* Category grid */
  .category-grid .col-6 { width: 50% !important; }

  /* Newsletter form */
  .newsletter-section .input-group { flex-direction: column; }
  .newsletter-section .input-group .form-control { border-radius: 8px !important; margin-bottom: 0.5rem; }
  .newsletter-section .input-group .btn { border-radius: 8px !important; width: 100%; }

  /* Admin */
  .admin-sidebar { width: 100%; min-height: auto; }
  .admin-content { min-height: auto; }
}

/* ── Tablet (768px – 991px) ─────────────────────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {
  #navbarMain .dropdown-menu { width: 100%; }
}

/* ── Print Styles ────────────────────────────────────────── */
@media print {
  .topbar, #mainNav, .newsletter-section, footer, #backToTop, .sidebar-widget, .article-sidebar { display: none !important; }
  .article-body { font-size: 12pt; }
  a { text-decoration: none; }
}