/* AppBus Unified Portal Stylesheet (Light + html.dark) */
:root {
  --ab-bg: #f8fafc;
  --ab-surface: #ffffff;
  --ab-surface-alt: #f1f5f9;
  --ab-border: #e2e8f0;
  --ab-text: #0f172a;
  --ab-muted: #475569;
  --ab-faint: #64748b;
  --ab-accent: #2563eb;
  --ab-accent-hover: #1d4ed8;
  --ab-accent-soft: #eff6ff;
  --ab-accent-border: #bfdbfe;
  --ab-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --ab-shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.1);
}

html.dark {
  --ab-bg: #0f172a;
  --ab-surface: #1e293b;
  --ab-surface-alt: #0b1220;
  --ab-border: #334155;
  --ab-text: #f1f5f9;
  --ab-muted: #cbd5e1;
  --ab-faint: #94a3b8;
  --ab-accent: #3b82f6;
  --ab-accent-hover: #60a5fa;
  --ab-accent-soft: rgba(59, 130, 246, 0.14);
  --ab-accent-border: rgba(59, 130, 246, 0.35);
  --ab-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  --ab-shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.45);
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}
.ab-container, .ab-grid-2, .ab-grid-3, .ab-grid-5,
.ab-board-card, .ab-board-item, .ab-card {
  min-width: 0;
  max-width: 100%;
}
.ab-board-card {
  overflow: hidden;
}
.ab-board-item a, .ab-board-item p,
.ab-card h3, .ab-card p,
.ab-news-title, .ab-news-summary {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* AppBus Official Top Header & Mega-Menu */
#header-menu.ab-site-header.ab-appbus-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--ab-border);
  background: var(--ab-surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s, background-color 0.2s;
}
#header-menu.menu-sticky {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}
.ab-appbus-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.9rem 1rem;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .ab-appbus-bar { padding: 0.95rem 1.5rem; }
}
@media (min-width: 1024px) {
  .ab-appbus-bar { padding: 0.95rem 2rem; }
}
@media (min-width: 1120px) {
  .ab-appbus-bar {
    grid-template-columns: 180px 1fr 180px;
  }
}
.ab-appbus-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  width: fit-content;
}
.ab-appbus-wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ab-text);
  line-height: 1;
}
.ab-appbus-center {
  display: none;
  width: 720px;
  max-width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-self: center;
}
.ab-mega-trigger {
  display: inline-flex;
  min-height: 2.75rem;
  width: 10.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ab-muted);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.ab-mega-trigger:hover,
.ab-mega-trigger[aria-expanded="true"] {
  color: var(--ab-text);
  background: var(--ab-surface-alt);
}
.ab-mega-trigger .ab-nav-svg {
  width: 1.35rem;
  height: 1.35rem;
  color: #94a3b8;
  transition: color 0.15s;
}
.ab-mega-trigger:hover .ab-nav-svg,
.ab-mega-trigger[aria-expanded="true"] .ab-nav-svg {
  color: #2563eb;
}
.ab-mega-trigger .ab-chev-svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #94a3b8;
  transition: transform 0.15s, color 0.15s;
}
.ab-mega-trigger[aria-expanded="true"] .ab-chev-svg {
  transform: rotate(180deg);
  color: var(--ab-text);
}
.ab-nav-count-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.12rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ab-appbus-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.9rem;
}
.ab-desktop-login {
  display: none;
}
.ab-login-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ab-muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.ab-login-link:hover {
  color: var(--ab-text);
}
.ab-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0.35rem;
  border-radius: 0.4rem;
  color: var(--ab-muted);
  cursor: pointer;
}
.ab-mobile-btn:hover {
  background: var(--ab-surface-alt);
  color: var(--ab-text);
}
@media (min-width: 1120px) {
  .ab-appbus-center { display: grid; }
  .ab-desktop-login { display: block; }
  .ab-mobile-btn { display: none !important; }
}

/* Mega-Menu Full-Width Panel */
.ab-mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  background: var(--ab-surface);
  border-top: 1px solid var(--ab-border);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}
.ab-mega-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 10;
  padding: 0.45rem;
  border-radius: 0.45rem;
  border: none;
  background: transparent;
  color: var(--ab-muted);
  cursor: pointer;
}
.ab-mega-close:hover {
  background: var(--ab-surface-alt);
  color: var(--ab-text);
}
.ab-mega-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.ab-mega-aside {
  background: var(--ab-surface-alt);
  padding: 1.5rem 2rem;
}
.ab-mega-aside-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ab-mega-icon-box {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-mega-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
  padding: 1.25rem 3.5rem 1.25rem 2.25rem;
  align-content: start;
}
.ab-mega-items.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ab-mega-item {
  display: block;
  border-radius: 0.55rem;
  padding: 0.45rem 0.75rem;
  transition: background-color 0.14s;
}
.ab-mega-item:hover {
  background: var(--ab-surface-alt);
}
.ab-mega-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ab-text);
}
.ab-mega-item-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ab-faint);
}
.ab-mega-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--ab-accent-soft);
  color: var(--ab-accent);
  border: 1px solid var(--ab-accent-border);
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ab-mob-item {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  transition: background-color 0.14s;
}
.ab-mob-item:hover {
  background: var(--ab-surface-alt);
}
.ab-mob-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ab-text);
}
.ab-mob-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--ab-faint);
}
.ab-mob-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}
.ab-mob-panel {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 60;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 0.9rem;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface);
  padding: 1.25rem;
  box-shadow: var(--ab-shadow-lg);
}

/* Footer layout */
.ab-site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--ab-border);
  background: var(--ab-surface);
  color: var(--ab-muted);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}
.ab-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.ab-footer-brand {
  grid-column: span 2;
}
@media (min-width: 768px) {
  .ab-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .ab-footer-brand {
    grid-column: auto;
  }
}
.ab-footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ab-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--ab-faint);
}
@media (min-width: 640px) {
  .ab-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Post uncropped 16:9 hero banner */
.ab-post-hero-wrap {
  max-width: 80rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}
@media (min-width: 1024px) {
  .ab-post-hero-wrap { padding: 0 1.5rem; }
}
.ab-post-hero-frame {
  width: 100%;
  max-width: none;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--ab-border);
  background: #0b1220;
  box-shadow: var(--ab-shadow);
}
.ab-post-hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.ab-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.72rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ab-muted);
  transition: background-color 0.16s, color 0.16s;
  white-space: nowrap;
}
.ab-nav-link:hover {
  background-color: var(--ab-surface-alt);
  color: var(--ab-accent);
}

.ab-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: var(--ab-accent);
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.16s, transform 0.16s;
  white-space: nowrap;
}
.ab-nav-cta:hover {
  background: var(--ab-accent-hover);
  transform: translateY(-1px);
}

.ab-dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.4rem;
  min-width: 15rem;
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  box-shadow: var(--ab-shadow-lg);
  z-index: 60;
}
.ab-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.7rem;
  border-radius: 0.55rem;
  color: var(--ab-text);
  transition: background-color 0.14s;
}
.ab-dropdown-item:hover {
  background: var(--ab-surface-alt);
}
.ab-dropdown-item strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ab-text);
}
.ab-dropdown-item span {
  font-size: 0.75rem;
  color: var(--ab-faint);
  margin-top: 0.1rem;
}

/* Container & Layout */
.ab-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 1024px) {
  .ab-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.ab-band {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.ab-band-alt {
  background: var(--ab-surface);
  border-top: 1px solid var(--ab-border);
  border-bottom: 1px solid var(--ab-border);
}

/* Home Split Hero */
.ab-home-hero {
  background: radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.12), transparent 44%),
              linear-gradient(180deg, var(--ab-surface) 0%, var(--ab-bg) 100%);
  border-bottom: 1px solid var(--ab-border);
  padding: 2.75rem 0 3.25rem;
}
.ab-home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .ab-home-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
  }
}

.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ab-accent);
  background: var(--ab-accent-soft);
  border: 1px solid var(--ab-accent-border);
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
}

.ab-hero-title {
  margin-top: 1rem;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ab-text);
}
@media (min-width: 768px) {
  .ab-hero-title {
    font-size: 2.85rem;
  }
}
.ab-hero-sub {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ab-muted);
  max-width: 38rem;
}

/* Dark 5-App Quick Launch Card inside Hero */
.ab-quick-panel {
  background: linear-gradient(155deg, #0b1220 0%, #152238 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.25rem;
  padding: 1.35rem;
  color: #f8fafc;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
}
.ab-quick-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.ab-quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ab-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc !important;
  transition: background-color 0.16s, border-color 0.16s, transform 0.16s;
}
.ab-quick-row:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateX(2px);
}
.ab-quick-row-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}
.ab-quick-row-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
}
.ab-quick-arrow {
  font-size: 0.875rem;
  color: #60a5fa;
  font-weight: 700;
  flex-shrink: 0;
}

/* Grids */
.ab-grid-2, .ab-grid-3, .ab-grid-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .ab-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ab-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Cards & Buttons */
.ab-card {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 1rem;
  padding: 1.35rem;
  box-shadow: var(--ab-shadow);
  color: var(--ab-text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ab-card h3 {
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--ab-text);
  margin: 0;
}
.ab-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ab-muted);
  margin: 0;
}
.ab-card-link {
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.ab-card-link:hover {
  border-color: var(--ab-accent);
  transform: translateY(-2px);
  box-shadow: var(--ab-shadow-lg);
}

.ab-hub-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  box-shadow: var(--ab-shadow);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.ab-hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--ab-accent);
  box-shadow: var(--ab-shadow-lg);
}
.ab-hub-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ab-surface-alt);
}
.ab-hub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ab-hub-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.ab-hub-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ab-text);
  margin: 0;
}
.ab-hub-body p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ab-muted);
  margin: 0;
}
.ab-link-more {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ab-accent);
}

.ab-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.25rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.16s, border-color 0.16s, transform 0.16s;
  text-decoration: none !important;
}
.ab-btn-primary {
  background: var(--ab-accent);
  color: #ffffff !important;
  border: 1px solid transparent;
}
.ab-btn-primary:hover {
  background: var(--ab-accent-hover);
  transform: translateY(-1px);
}
.ab-btn-ghost {
  background: var(--ab-surface);
  color: var(--ab-text) !important;
  border: 1px solid var(--ab-border);
}
.ab-btn-ghost:hover {
  border-color: var(--ab-accent);
  color: var(--ab-accent) !important;
}

.ab-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ab-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ab-text);
  margin: 0.4rem 0 0;
}
.ab-section-desc {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--ab-muted);
}

/* 3-Tab Unified Switcher (News / Rankings / Editorial) */
.ab-news-tabs-bar {
  background: var(--ab-surface);
  border-bottom: 1px solid var(--ab-border);
  padding: 0.85rem 0;
}
.ab-tabs-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ab-tab-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 0.85rem;
  background: var(--ab-surface-alt);
  border: 1px solid var(--ab-border);
}
.ab-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: 0.62rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ab-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.ab-tab-pill:hover {
  color: var(--ab-text);
}
.ab-tab-pill.is-active {
  background: var(--ab-surface);
  color: var(--ab-accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.ab-tab-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  background: var(--ab-accent-soft);
  color: var(--ab-accent);
}

/* Live News & Rankings UI */
.ab-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.ab-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--ab-surface);
  color: var(--ab-muted);
  border: 1px solid var(--ab-border);
  cursor: pointer;
  transition: all 0.14s;
}
.ab-chip-btn:hover {
  border-color: var(--ab-accent);
  color: var(--ab-accent);
}
.ab-chip-btn.is-active {
  background: var(--ab-accent);
  color: #ffffff;
  border-color: var(--ab-accent);
}

.ab-control-input, .ab-control-select {
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface);
  color: var(--ab-text);
  font-size: 0.875rem;
}

.ab-brief-box {
  background: linear-gradient(135deg, var(--ab-accent-soft) 0%, var(--ab-surface) 100%);
  border: 1px solid var(--ab-accent-border);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
}
.ab-brief-box .ab-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.ab-news-card {
  display: flex;
  flex-direction: column;
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: var(--ab-shadow);
  transition: border-color 0.16s, transform 0.16s;
}
.ab-news-card:hover {
  border-color: var(--ab-accent);
  transform: translateY(-2px);
}
.ab-news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ab-surface-alt);
  display: block;
}
.ab-news-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.ab-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--ab-faint);
}
.ab-news-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ab-text);
}
.ab-news-summary {
  font-size: 0.85rem;
  line-height: 1.58;
  color: var(--ab-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-board-card {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--ab-shadow);
}
.ab-board-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ab-border);
}
.ab-board-item:first-child {
  border-top: none;
  padding-top: 0.25rem;
}
.ab-rank-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--ab-surface-alt);
  color: var(--ab-muted);
  flex-shrink: 0;
}
.ab-rank-num.top-1 { background: #fef3c7; color: #b45309; }
.ab-rank-num.top-2 { background: #e2e8f0; color: #334155; }
.ab-rank-num.top-3 { background: #ffedd5; color: #c2410c; }

/* Imported Halo Content Styles (.ab-page-body) */
.ab-page-body {
  color: var(--ab-text);
  line-height: 1.7;
}
.ab-page-body .ab-section {
  margin-top: 2.5rem;
}
.ab-page-body .ab-section-head {
  margin-bottom: 1.25rem;
}
.ab-page-body .ab-lead {
  font-size: 1.075rem;
  color: var(--ab-muted);
  line-height: 1.75;
}
.ab-app-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--ab-accent-soft) 0%, var(--ab-surface) 100%);
  border: 1px solid var(--ab-border);
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .ab-app-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.ab-app-hero .ab-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.75rem 0;
  color: var(--ab-text);
}
.ab-app-hero-media img {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--ab-border);
  box-shadow: var(--ab-shadow);
}
.ab-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.ab-fact-card {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 0.9rem;
  padding: 1rem 1.15rem;
}
.ab-fact-val {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ab-accent);
}
.ab-fact-lbl {
  font-size: 0.85rem;
  color: var(--ab-muted);
  margin-top: 0.25rem;
}
.ab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.ab-chip, .ab-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  background: var(--ab-accent-soft);
  color: var(--ab-accent);
  border: 1px solid var(--ab-accent-border);
}
.ab-shot-card {
  margin: 0;
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 0.9rem;
  overflow: hidden;
}
.ab-shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ab-shot-card figcaption {
  padding: 0.85rem 1rem;
}
.ab-shot-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ab-text);
}
.ab-shot-cap {
  font-size: 0.82rem;
  color: var(--ab-muted);
  margin: 0.25rem 0 0;
}
.ab-step-card, .ab-guide-step {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.ab-step-num, .ab-step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--ab-accent);
  color: #ffffff;
  margin-bottom: 0.45rem;
}
.ab-hotspot-wrap {
  position: relative;
  margin-top: 0.85rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--ab-border);
}
.ab-hotspot-wrap img {
  width: 100%;
  display: block;
}
.ab-hotspot-box {
  position: absolute;
  border: 3px solid #f59e0b;
  border-radius: 0.45rem;
  background: rgba(245, 158, 11, 0.14);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
.ab-tip {
  background: var(--ab-accent-soft);
  border-left: 3px solid var(--ab-accent);
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
}
.ab-clip-details {
  margin-top: 0.85rem;
  font-size: 0.875rem;
}
.ab-clip-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ab-accent);
}
.ab-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ab-border);
  border-radius: 0.9rem;
}
.ab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ab-table th, .ab-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ab-border);
  text-align: left;
}
.ab-table th {
  background: var(--ab-surface-alt);
  font-weight: 700;
}
.ab-closing {
  margin-top: 2.5rem;
  padding: 2rem;
  text-align: center;
  border-radius: 1.25rem;
  background: var(--ab-surface-alt);
  border: 1px solid var(--ab-border);
}
.ab-meta-bar {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--ab-surface-alt);
  border: 1px solid var(--ab-border);
  font-size: 0.875rem;
  color: var(--ab-muted);
  margin: 1rem 0 1.5rem;
}
.ab-footnote, .ab-note {
  font-size: 0.8125rem;
  color: var(--ab-faint);
  margin-top: 0.65rem;
}
.ab-code-block {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--ab-border);
  background: #0b1220;
  color: #e2e8f0;
}
.ab-code-head {
  padding: 0.5rem 1rem;
  background: #1e293b;
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}
.ab-code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
}
.ab-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ab-modal-box {
  background: var(--ab-surface);
  color: var(--ab-text);
  border: 1px solid var(--ab-border);
  border-radius: 1.1rem;
  max-width: 46rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--ab-shadow-lg);
}

/* Product-First Home Card Marks & Daily Headlines Digest */
.ab-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.ab-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: var(--ab-accent-soft);
  border: 1px solid var(--ab-accent-border);
  color: var(--ab-accent);
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}
.ab-digest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .ab-digest-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}
.ab-digest-panel {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 1rem;
  padding: 1.35rem;
  box-shadow: var(--ab-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.ab-digest-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ab-border);
}
.ab-digest-head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ab-text);
}
.ab-brief-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ab-brief-item {
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: var(--ab-surface-alt);
  border: 1px solid var(--ab-border);
}
.ab-brief-item-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.ab-brief-domain {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--ab-accent);
  color: #ffffff;
  flex-shrink: 0;
}
.ab-brief-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ab-text);
}
.ab-brief-item-sum {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ab-muted);
  margin: 0;
}
.ab-headlines-sub {
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--ab-border);
}
.ab-headlines-sub-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ab-faint);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.ab-headline-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ab-headline-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ab-text);
  padding: 0.3rem 0.45rem;
  border-radius: 0.45rem;
  transition: background-color 0.14s, color 0.14s;
}
.ab-headline-row:hover {
  background: var(--ab-surface-alt);
  color: var(--ab-accent);
}
.ab-headline-src {
  font-size: 0.74rem;
  color: var(--ab-faint);
  flex-shrink: 0;
}
.ab-rank-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ab-rank-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface);
  transition: border-color 0.14s, background-color 0.14s;
}
.ab-rank-row:hover {
  border-color: var(--ab-accent);
  background: var(--ab-surface-alt);
}
.ab-rank-row-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ab-text);
  line-height: 1.4;
}
.ab-rank-row-meta {
  font-size: 0.75rem;
  color: var(--ab-faint);
  margin-top: 0.18rem;
}
.ab-digest-foot {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* =========================================================
   FileOS-Inspired Product Showcase Architecture (.fos-*)
   ========================================================= */
.fos-page-shell {
  --fos-bg: #f7f6fb;
  --fos-card: #ffffff;
  --fos-card-alt: #f1effa;
  --fos-border: rgba(79, 70, 229, 0.1);
  --fos-text: #111827;
  --fos-muted: #4b5563;
  --fos-faint: #6b7280;
  --fos-accent: #4f46e5;
  --fos-accent-2: #2563eb;
  background: var(--fos-bg);
  color: var(--fos-text);
  overflow-x: clip;
  padding-bottom: 1rem;
}
html.dark .fos-page-shell {
  --fos-bg: #0b1120;
  --fos-card: #131c2e;
  --fos-card-alt: #1a253b;
  --fos-border: rgba(148, 163, 184, 0.16);
  --fos-text: #f8fafc;
  --fos-muted: #cbd5e1;
  --fos-faint: #94a3b8;
  --fos-accent: #6366f1;
  --fos-accent-2: #3b82f6;
}
.fos-hero {
  background: radial-gradient(ellipse 78% 48% at 50% 0%, rgba(99, 102, 241, 0.14), transparent 72%);
  padding: 3.25rem 1rem 1.5rem;
  text-align: center;
}
.fos-hero-inner {
  max-width: 54rem;
  margin: 0 auto;
}
.fos-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: var(--fos-card);
  border: 1px solid var(--fos-border);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fos-accent);
  letter-spacing: 0.03em;
}
.fos-hero-title {
  margin: 1.2rem auto 0;
  font-size: clamp(2.05rem, 4.6vw, 3.45rem);
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--fos-text);
}
.fos-hero-sub {
  max-width: 42rem;
  margin: 1.1rem auto 0;
  font-size: 1.075rem;
  line-height: 1.72;
  color: var(--fos-muted);
}
.fos-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.65rem;
}
.fos-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.55rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
  transition: transform 0.16s, box-shadow 0.16s;
  text-decoration: none !important;
}
.fos-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.36);
}
.fos-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.45rem;
  border-radius: 9999px;
  background: var(--fos-card);
  color: var(--fos-text) !important;
  border: 1px solid var(--fos-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.16s, border-color 0.16s;
  text-decoration: none !important;
}
.fos-btn-secondary:hover {
  border-color: var(--fos-accent);
  transform: translateY(-1px);
}
.fos-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.15rem;
  margin-top: 1.15rem;
  font-size: 0.8125rem;
  color: var(--fos-faint);
}

/* Glowing Stage Window */
.fos-stage-band {
  max-width: 72rem;
  margin: 1.5rem auto 0;
  padding: 1.35rem 1.25rem 2.25rem;
  border-radius: 28px;
  background: radial-gradient(ellipse 85% 75% at 50% 15%, rgba(99, 102, 241, 0.2), rgba(37, 99, 235, 0.1) 52%, transparent 82%);
}
.fos-window {
  background: var(--fos-card);
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 65px rgba(30, 27, 75, 0.16), 0 4px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
html.dark .fos-window {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
}
.fos-win-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  background: var(--fos-card-alt);
  border-bottom: 1px solid var(--fos-border);
}
.fos-win-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}
.fos-win-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 9999px;
}
.fos-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}
.fos-stage-tab {
  padding: 0.34rem 0.82rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fos-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.fos-stage-tab:hover {
  color: var(--fos-text);
  background: rgba(255, 255, 255, 0.55);
}
html.dark .fos-stage-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}
.fos-stage-tab.is-active {
  background: var(--fos-card);
  color: var(--fos-accent);
  border-color: var(--fos-border);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}
.fos-stage-panel {
  display: none;
}
.fos-stage-panel.is-active {
  display: block;
}
.fos-stage-media {
  background: #0b1120;
  aspect-ratio: 16 / 9;
  max-height: 580px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fos-stage-media img, .fos-stage-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.fos-stage-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.35rem;
  background: var(--fos-card);
  border-top: 1px solid var(--fos-border);
  font-size: 0.875rem;
  color: var(--fos-muted);
}

/* Metrics Pill Row */
.fos-facts-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}
.fos-fact-pill {
  background: var(--fos-card);
  border: 1px solid var(--fos-border);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.fos-fact-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fos-accent);
}
.fos-fact-lbl {
  margin-top: 0.3rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fos-muted);
}

/* Sections & Bento Feature Matrix */
.fos-section {
  max-width: 74rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}
@media (min-width: 1024px) {
  .fos-section { padding: 4.5rem 1.5rem; }
}
.fos-center-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}
.fos-center-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--fos-text);
  margin: 0.6rem 0 0;
}
.fos-center-head p {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fos-muted);
}
.fos-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .fos-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .fos-bento-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.fos-bento-card {
  background: var(--fos-card);
  border: 1px solid var(--fos-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  text-decoration: none !important;
}
.fos-bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--fos-accent);
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.1);
}
.fos-icon-tile {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
  margin-bottom: 0.35rem;
}
.fos-tone-1 { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.fos-tone-2 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.fos-tone-3 { background: linear-gradient(135deg, #10b981, #0d9488); }
.fos-tone-4 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.fos-tone-5 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.fos-tone-6 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.fos-kicker-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fos-accent);
}
.fos-bento-card h3 {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--fos-text);
  margin: 0;
}
.fos-bento-card p {
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--fos-muted);
  margin: 0;
}

/* Alternating Spotlight (Left Text / Right App Window & vice versa) */
.fos-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  padding: 2.5rem 0;
}
@media (min-width: 1024px) {
  .fos-spotlight {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 3.5rem;
  }
  .fos-spotlight.is-reverse .fos-spot-copy {
    order: 2;
  }
  .fos-spotlight.is-reverse .fos-spot-media {
    order: 1;
  }
}
.fos-dot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fos-accent);
}
.fos-dot-kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: currentColor;
}
.fos-spot-copy h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--fos-text);
  margin: 0.65rem 0 0;
}
.fos-spot-copy .fos-spot-lead {
  margin-top: 0.95rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fos-muted);
}
.fos-checks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.fos-checks li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--fos-text);
}
.fos-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #10b981;
  font-weight: 900;
}
.fos-shot-window {
  background: var(--fos-card);
  border-radius: 20px;
  border: 1px solid var(--fos-border);
  box-shadow: 0 24px 56px rgba(30, 27, 75, 0.13);
  overflow: hidden;
}
.fos-shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--fos-card-alt);
  border-bottom: 1px solid var(--fos-border);
  font-size: 0.76rem;
  color: var(--fos-faint);
}
.fos-shot-window img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Comparison & Closing Band */
.fos-compare-card {
  background: var(--fos-card);
  border-radius: 20px;
  border: 1px solid var(--fos-border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.fos-compare-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.fos-compare-card th, .fos-compare-card td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--fos-border);
  text-align: left;
}
.fos-compare-card th {
  background: var(--fos-card-alt);
  font-weight: 750;
}
.fos-closing-band {
  margin: 2rem auto 1rem;
  max-width: 72rem;
  border-radius: 28px;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: radial-gradient(ellipse 75% 85% at 50% 50%, rgba(99, 102, 241, 0.16), rgba(255, 255, 255, 0.85) 75%);
  border: 1px solid var(--fos-border);
}
html.dark .fos-closing-band {
  background: radial-gradient(ellipse 75% 85% at 50% 50%, rgba(99, 102, 241, 0.24), rgba(19, 28, 46, 0.9) 75%);
}
.fos-closing-band h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 850;
  margin: 0;
  color: var(--fos-text);
}
.fos-closing-band p {
  max-width: 38rem;
  margin: 0.85rem auto 0;
  font-size: 1rem;
  color: var(--fos-muted);
}

/* =========================================================
   Two-Tier 3-Pillar x Live/Topic Sub-Mode Bar
   ========================================================= */
.ab-submode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--ab-border);
}
.ab-submode-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ab-faint);
  margin-right: 0.2rem;
}
.ab-submode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.78rem;
  border-radius: 9999px;
  font-size: 0.81rem;
  font-weight: 600;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface);
  color: var(--ab-muted);
  text-decoration: none !important;
  transition: all 0.14s ease;
}
.ab-submode-pill:hover {
  border-color: var(--ab-accent);
  color: var(--ab-text);
}
.ab-submode-pill.is-active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--ab-accent);
  font-weight: 700;
}
html.dark .ab-submode-pill.is-active {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.45);
}

/* =========================================================
   True Waterfall Masonry for 快讯 + Tag Filter Bar for 新闻
   ========================================================= */
.ab-news-waterfall {
  column-count: 1;
  column-gap: 1.2rem;
}
@media (min-width: 640px) {
  .ab-news-waterfall { column-count: 2; }
}
@media (min-width: 1024px) {
  .ab-news-waterfall { column-count: 3; }
}
.ab-news-waterfall .ab-news-card {
  display: inline-flex;
  width: 100%;
  flex-direction: column;
  break-inside: avoid;
  margin-bottom: 1.2rem;
  vertical-align: top;
}
.ab-ext-foot {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--ab-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ab-accent);
}
.ab-news-tagbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
}
.ab-news-tag-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.ab-inline-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}
@media (min-width: 768px) {
  .ab-inline-head-row {
    /* Align right edge of sort tabs strictly with the left article list column (1fr vs 18rem sidebar + 1.5rem gap) */
    padding-right: 19.5rem;
  }
}
.ab-sort-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #eef2f6;
  border: 1px solid #e2e8f0;
}
.dark .ab-sort-tabs {
  background: #1e293b;
  border-color: #334155;
}
.ab-sort-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.42rem 0.78rem;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.ab-sort-tab:hover {
  color: #0f172a;
}
.dark .ab-sort-tab {
  color: #94a3b8;
}
.dark .ab-sort-tab:hover {
  color: #f8fafc;
}
.ab-sort-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 1px rgba(15, 23, 42, 0.04);
}
.dark .ab-sort-tab.is-active {
  background: #334155;
  color: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}
.ab-inline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}
.ab-inline-head h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1.2;
  color: var(--ab-text);
}
.ab-inline-desc {
  font-size: 0.875rem;
  color: var(--ab-muted);
}
.ab-infinite-status {
  margin-top: 1.35rem;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ab-faint);
}

/* Top Navbar Active Trigger + Mega-Menu 3-Pillar Switcher Bar */
.ab-mega-trigger.is-current {
  color: var(--ab-accent);
  background: var(--ab-accent-soft);
}
.ab-mega-pillars-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  margin: 1.15rem 3.5rem 0 2.25rem;
  border-radius: 0.85rem;
  background: var(--ab-surface-alt);
  border: 1px solid var(--ab-border);
}
.ab-mega-pillars-bar + .ab-mega-items {
  padding-top: 0.75rem;
}
.ab-mega-pillars-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.ab-mega-pillar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 0.62rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ab-muted);
  text-decoration: none !important;
  transition: background-color 0.14s, color 0.14s, box-shadow 0.14s;
}
.ab-mega-pillar-pill:hover {
  color: var(--ab-text);
  background: rgba(255, 255, 255, 0.55);
}
html.dark .ab-mega-pillar-pill:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ab-mega-pillar-pill.is-active {
  background: var(--ab-surface);
  color: var(--ab-accent);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Clean Halo Editorial Post Card (.ab-post-card) */
.ab-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  box-shadow: var(--ab-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.ab-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
html.dark .ab-post-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}
.ab-post-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.52rem;
  border-radius: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--ab-accent-soft);
  color: var(--ab-accent);
  text-decoration: none !important;
}
.ab-post-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.74rem;
  font-weight: 500;
  background: var(--ab-surface-alt);
  color: var(--ab-muted);
  border: 1px solid var(--ab-border);
  text-decoration: none !important;
  transition: color 0.14s, border-color 0.14s;
}
.ab-post-tag-badge:hover {
  color: var(--ab-accent);
  border-color: rgba(37, 99, 235, 0.4);
}
.ab-post-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 750;
  line-height: 1.45;
  color: var(--ab-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ab-post-title a {
  color: inherit;
  text-decoration: none !important;
}
.ab-post-card:hover .ab-post-title a {
  color: var(--ab-accent);
}
.ab-post-excerpt {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ab-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ab-post-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ab-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.ab-post-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ab-faint);
}
.ab-post-readmore {
  font-weight: 700;
  color: var(--ab-accent);
  text-decoration: none !important;
  white-space: nowrap;
}
.ab-post-readmore:hover {
  text-decoration: underline !important;
}

/* 3-Column Post Reading Layout: Sticky Left TOC + Center Article + Full-Flow Right Sidebar */
.ab-post-toc-col {
  display: none;
}
@media (min-width: 768px) and (max-width: 1279.98px) {
  .ab-post-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .ab-post-main-col {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .ab-post-toc-col {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }
  .ab-post-layout > aside.ab-sidebar-has-toc {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (min-width: 1280px) {
  .ab-post-layout {
    max-width: 90rem;
    grid-template-columns: 14rem minmax(0, 1fr) 18rem;
    align-items: start;
  }
  .ab-post-toc-col {
    display: block;
    position: sticky;
    top: 5.25rem;
    align-self: start;
  }
}
@media (min-width: 1400px) {
  .ab-post-layout {
    grid-template-columns: 15rem minmax(0, 1fr) 18rem;
  }
}
@media (min-width: 768px) {
  aside.ab-sidebar-has-toc {
    position: static;
    align-self: start;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
  }
  aside.ab-sidebar-has-toc > * {
    flex-shrink: 0;
  }
}
.toc-container {
  position: static !important;
  flex-shrink: 0;
  border: 1px solid var(--ab-border);
  padding: 1rem 1.15rem !important;
}
.toc-container .toc {
  max-height: none !important;
  overflow: visible !important;
}
article#content sup,
sup.ab-cite-sup {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  top: -0.35em;
  vertical-align: baseline;
  color: var(--ab-accent);
  font-weight: 600;
  padding: 0 1px;
  letter-spacing: 0;
}

/* Mega-Menu Active Card + Circular Icon Close Button for Modals */
.ab-mega-item.is-active {
  background: var(--ab-accent-soft);
  border: 1px solid var(--ab-accent-border);
}
.ab-mega-item.is-active .ab-mega-item-title {
  color: var(--ab-accent);
}
.ab-modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface-alt);
  color: var(--ab-muted);
  cursor: pointer;
  transition: background-color 0.14s, color 0.14s, border-color 0.14s;
}
.ab-modal-close-btn:hover {
  background: var(--ab-surface);
  color: var(--ab-text);
  border-color: var(--ab-accent);
}
.ab-compliance-note {
  margin-top: 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--ab-surface-alt);
  border: 1px solid var(--ab-border);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ab-muted);
}

/* =========================================================
   Article & Product Image Lightbox (Zoom / Pan / Gallery)
   ========================================================= */
.ab-zoomable-img {
  cursor: zoom-in !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ab-zoomable-img:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.ab-lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  user-select: none;
}
.ab-lb-overlay.is-open {
  display: flex;
}
.ab-lb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  z-index: 2;
}
.ab-lb-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}
.ab-lb-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.ab-lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.14s, border-color 0.14s;
}
.ab-lb-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: #60a5fa;
}
.ab-lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}
.ab-lb-img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  cursor: zoom-in;
  background: #ffffff;
}
.ab-lb-img.is-zoomed {
  cursor: grab;
}
.ab-lb-img.is-dragging {
  cursor: grabbing;
  transition: none;
}
.ab-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.14s, border-color 0.14s;
}
.ab-lb-nav:hover {
  background: rgba(37, 99, 235, 0.85);
  border-color: #93c5fd;
}
.ab-lb-prev { left: 1rem; }
.ab-lb-next { right: 1rem; }
.ab-lb-caption {
  padding: 0.65rem 1.25rem 0.85rem;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  max-height: 5.5rem;
  overflow-y: auto;
}
@media (max-width: 640px) {
  .ab-lb-stage { padding: 0.25rem; }
  .ab-lb-img { max-width: 98vw; max-height: 82vh; }
  .ab-lb-nav { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; }
  .ab-lb-prev { left: 0.45rem; }
  .ab-lb-next { right: 0.45rem; }
  .ab-lb-toolbar { padding: 0.5rem 0.65rem; gap: 0.35rem; }
  .ab-lb-actions { gap: 0.25rem; }
  .ab-lb-btn { min-width: 1.85rem; height: 1.85rem; padding: 0 0.42rem; font-size: 0.75rem; }
  .ab-lb-counter { font-size: 0.76rem; }
}

/* =========================================================
   Post Detail Mobile Polish (Figure Full-Width, Prev/Next Cards, Comment & Scroll-to-Top)
   ========================================================= */
article#content figure {
  margin: 1.25rem 0 !important;
  padding: 0 !important;
  width: 100%;
}
article#content figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto !important;
  display: block;
  border-radius: 0.5rem;
}
article#content figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ab-muted);
}
article#content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ab-post-nav {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.ab-post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: var(--ab-surface-alt);
  border: 1px solid var(--ab-border);
  text-decoration: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}
.ab-post-nav-card:hover {
  border-color: var(--ab-brand);
  transform: translateY(-1px);
}
.ab-post-nav-next {
  text-align: right;
  align-items: flex-end;
}
.ab-post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ab-faint);
}
.ab-post-nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ab-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ab-post-nav-card:hover .ab-post-nav-title {
  color: var(--ab-brand);
}
@media (max-width: 640px) {
  .ab-post-nav {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .ab-post-nav-next {
    text-align: left;
    align-items: flex-start;
  }
  .ab-post-nav-card {
    padding: 0.78rem 0.9rem;
  }
}
#comment {
  padding-bottom: 1.5rem;
}
#btn-scroll-to-top.ab-hide-on-comment {
  opacity: 0 !important;
  pointer-events: none !important;
}
@media (max-width: 768px) {
  #btn-scroll-to-top {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    bottom: 1.1rem !important;
    right: 0.85rem !important;
    z-index: 30;
    border: 1px solid var(--ab-border);
  }
}

/* =========================================================
   Editorial News Controls (Sort + Date) & Global Site Search
   ========================================================= */
.ab-news-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}
.ab-news-controls .ab-control-select {
  min-width: auto;
}

.ab-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  height: 2.05rem;
  padding: 0 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface-alt);
  color: var(--ab-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.ab-search-trigger:hover {
  border-color: var(--ab-accent);
  color: var(--ab-text);
  background: var(--ab-surface);
}
.ab-search-kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.34rem;
  border-radius: 0.3rem;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface);
  color: var(--ab-faint);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
}
@media (max-width: 767px) {
  .ab-search-trigger {
    width: 2.05rem;
    padding: 0;
    justify-content: center;
  }
  .ab-search-trigger-text,
  .ab-search-kbd {
    display: none;
  }
  .ab-news-controls {
    width: 100%;
    margin-left: 0;
  }
  .ab-news-controls .ab-control-select {
    flex: 1 1 0;
  }
}

.ab-mob-search-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface-alt);
  color: var(--ab-muted);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}
.ab-mob-search-btn:hover {
  border-color: var(--ab-accent);
  color: var(--ab-text);
}

#ab-global-search-modal.ab-modal-backdrop {
  align-items: flex-start;
  padding-top: min(8vh, 4.5rem);
  z-index: 95;
}
.ab-search-box {
  max-width: 50rem;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem;
  overflow: hidden;
  gap: 0.85rem;
}
.ab-search-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ab-search-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--ab-accent-border);
  background: var(--ab-surface-alt);
  color: var(--ab-muted);
}
.ab-search-input-wrap:focus-within {
  border-color: var(--ab-accent);
  background: var(--ab-surface);
  box-shadow: 0 0 0 3px var(--ab-accent-soft);
}
.ab-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ab-text);
  font-size: 0.95rem;
  line-height: 1.4;
}
.ab-search-input::placeholder {
  color: var(--ab-faint);
}
.ab-search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface);
  color: var(--ab-muted);
  font-size: 0.72rem;
  cursor: pointer;
}
.ab-search-clear-btn:hover {
  color: var(--ab-text);
  border-color: var(--ab-accent);
}
.ab-search-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ab-search-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ab-search-status {
  font-size: 0.78rem;
  color: var(--ab-faint);
  font-variant-numeric: tabular-nums;
}
.ab-search-results {
  flex: 1;
  min-height: 10rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.15rem;
}
.ab-search-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface-alt);
  text-decoration: none !important;
  transition: border-color 0.14s, background-color 0.14s, transform 0.14s;
}
.ab-search-item:hover {
  border-color: var(--ab-accent);
  background: var(--ab-surface);
  transform: translateY(-1px);
}
.ab-search-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
}
.ab-search-item-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ab-search-item-meta {
  font-size: 0.74rem;
  color: var(--ab-faint);
  font-variant-numeric: tabular-nums;
}
.ab-search-item-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ab-text);
}
.ab-search-item:hover .ab-search-item-title {
  color: var(--ab-accent);
}
.ab-search-item-snippet {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ab-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
mark.ab-hl {
  background: var(--ab-accent-soft);
  color: var(--ab-accent);
  font-weight: 700;
  padding: 0 0.14rem;
  border-radius: 0.22rem;
}
.ab-search-hints {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.4rem 0.15rem;
}
.ab-search-hint-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ab-muted);
}
.ab-search-hint-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
@media (max-width: 640px) {
  #ab-global-search-modal.ab-modal-backdrop {
    padding: 0.65rem;
    padding-top: 1.5rem;
  }
  .ab-search-box {
    max-height: 88vh;
    padding: 0.9rem;
  }
}

.ab-article-follow-card {
  margin-top: 1.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--ab-border);
  box-shadow: var(--ab-shadow-sm, 0 2px 10px rgba(15, 23, 42, 0.06));
}
.ab-article-follow-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Per-article WeChat QR code cards (inline footer + sticky desktop sidebar) */
.ab-wx-qr-inline {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 2px 10px rgba(7, 193, 96, 0.06);
}
html.dark .ab-wx-qr-inline {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.28) 0%, rgba(30, 41, 59, 0.85) 100%);
}
.ab-wx-qr-img-box {
  flex-shrink: 0;
  background: #ffffff;
  padding: 6px;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.ab-wx-qr-inline .ab-wx-qr-img-box img {
  display: block;
  width: 112px;
  height: 112px;
  image-rendering: pixelated;
}
.ab-wx-qr-meta {
  min-width: 0;
  flex: 1;
}
.ab-wx-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
}
html.dark .ab-wx-qr-badge {
  color: #86efac;
  background: rgba(22, 163, 74, 0.24);
}
.ab-wx-qr-title {
  margin: 0.42rem 0 0.22rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ab-text);
  line-height: 1.4;
}
.ab-wx-qr-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ab-muted);
  line-height: 1.55;
}
.ab-wx-qr-actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.ab-wx-qr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.34rem 0.78rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff !important;
  background: #07c160;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}
.ab-wx-qr-link:hover {
  background: #06ad56;
}
@media (max-width: 639px) {
  .ab-wx-qr-inline {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.8rem;
  }
  .ab-wx-qr-inline .ab-wx-qr-img-box img {
    width: 140px;
    height: 140px;
  }
  .ab-wx-qr-actions {
    justify-content: center;
  }
}

.ab-wx-qr-sidebar {
  flex-shrink: 0;
  border: 1px solid var(--ab-border);
  border-radius: 0.75rem;
  background: var(--ab-surface);
  padding: 0.95rem 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  text-align: center;
}
.ab-wx-qr-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ab-text);
  margin-bottom: 0.65rem;
}
.ab-wx-qr-sidebar .ab-wx-qr-img-box {
  display: inline-block;
  margin: 0 auto 0.55rem;
}
.ab-wx-qr-sidebar .ab-wx-qr-img-box img {
  display: block;
  width: 148px;
  height: 148px;
  image-rendering: pixelated;
}
.ab-wx-qr-sidebar-note {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  color: var(--ab-faint);
  line-height: 1.45;
}
.ab-wx-qr-sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #07c160 !important;
  text-decoration: none !important;
}
.ab-wx-qr-sidebar-link:hover {
  text-decoration: underline !important;
}
