/* Naiosh Hub 360 — identity + minimal layout fixes only */
:root {
  --brand-red: #d70000;
  --brand-red-rgb: 215, 0, 0;
  --brand-red-soft: #ff1f2f;
  --brand-red-dark: #8a000c;
  --brand-red-mid: #b10011;
  --brand-red-deep: #140004;
  --brand-black-deep: #000000;
  --brand-black: #0a0a0a;
  --brand-white: #ffffff;
  --brand-gray: #f5f5f5;
  --brand-border: #e5e5e5;
  --brand-text-muted: #4a4a4a;
  --status-active-color: #ffffff;
  --status-active-color-rgb: 255, 255, 255;
  --homepage-button-color: #d70000;
  --homepage-header-bg: #ffffff;
  --homepage-text-color: #0a0a0a;
  --homepage-heading-color: #0a0a0a;
  --homepage-paragraph-color: #4a4a4a;
  --homepage-link-color: #0a0a0a;
  --hero-bg-solid: #0a0a0a;
  --announcement-bg: #1a0208;
  --announcement-text: #ffffff;
  --announcement-bar-height: 44px;
  --hub-gold: #c9a227;
  --hero-custom-image: url('../assets/hero-main.png');
  --hero-custom-size: cover;
  --hero-custom-position: center;
}

body.homepage {
  background: #ffffff;
  background-image:
    radial-gradient(circle at 10% 8%, rgba(215, 0, 0, 0.05), transparent 32%),
    radial-gradient(circle at 90% 70%, rgba(0, 0, 0, 0.03), transparent 36%);
  /* IMPORTANT: no padding-top — announcement stays in normal flow to kill the white gap */
  padding-top: 0 !important;
}

.brand .logo-text {
  letter-spacing: 0.04em;
  font-weight: 800;
}

.brand .logo-text .hub-mark {
  color: var(--brand-red);
}

.hero-content h1 {
  font-weight: 900;
  letter-spacing: -0.2px;
}

.hero-content h1 .accent {
  color: inherit;
}

.layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(215, 0, 0, 0.12);
  border: 1px solid rgba(215, 0, 0, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.hub-layer-grid .card {
  border-top: 3px solid var(--brand-red);
}

.hub-layer-grid .card .layer-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-red);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.imperial-strip {
  background: #0a0a0a;
  color: #f3f4f6;
  border-radius: 18px;
  padding: 28px 24px;
  display: grid;
  gap: 10px;
  margin: 28px 0 8px;
  border: 1px solid #1f1f1f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.imperial-strip h3 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
}

.imperial-strip p {
  margin: 0;
  color: #e5e7eb;
}

.imperial-strip .principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.imperial-strip .principles span {
  background: #d70000;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
}

/* Beat body.homepage h3/p dark text cascade on this dark strip */
body.homepage .imperial-strip,
body.homepage .imperial-strip h3,
body.homepage .imperial-strip h4 {
  color: #ffffff !important;
}

body.homepage .imperial-strip p {
  color: #e5e7eb !important;
}

body.homepage .imperial-strip .principles span {
  color: #ffffff !important;
}

.brand img,
#site-logo-hero-badge,
#site-logo-footer {
  border-radius: 10px;
}

#site-logo-hero-badge {
  background: #fff !important;
  object-fit: contain !important;
}

.hero-sidebar-item {
  font-weight: 800;
}

/* ========== FIX 1: remove white gap (announcement → header → banner) ========== */
body.homepage .announcement-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 60;
  height: var(--announcement-bar-height);
  min-height: var(--announcement-bar-height);
  margin: 0 !important;
  border-bottom: none !important;
}

body.homepage .top-nav {
  /* restore original white header */
  background: #ffffff !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  margin: 0 !important;
  top: 0 !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  box-shadow: none !important;
}

body.homepage .top-nav .inner {
  min-height: 58px;
  gap: 14px;
  padding: 6px clamp(20px, 2.2vw, 40px) !important;
  width: 100%;
  box-sizing: border-box;
}

body.homepage .brand,
body.homepage .brand .logo-text {
  color: #0a0a0a !important;
}

body.homepage .hero {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ========== FIX 2: button spacing only ========== */
body.homepage .auth-actions {
  gap: 12px !important;
  padding-inline-start: 14px !important;
  margin-inline-start: 8px !important;
}

body.homepage .auth-btn {
  padding: 10px 16px !important;
  min-height: 40px;
  margin: 0 !important;
}

body.homepage .nav-links {
  gap: 8px !important;
}

body.homepage .nav-links a {
  padding: 7px 11px !important;
}

/* لوحة زخرفية مخفية — الصورة ظاهرة زي ERP (التوزيع في hub-hero-erp.css) */
body.homepage .hero-dashboard,
body.homepage .hero-glass-search {
  display: none !important;
}

@media (max-width: 740px) {
  .imperial-strip {
    padding: 22px 18px;
  }

  body.homepage .hero-ctas {
    flex-direction: column;
    align-items: stretch !important;
  }

  body.homepage .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  body.homepage .auth-actions {
    gap: 10px !important;
    border-inline-start: none !important;
    padding-inline-start: 0 !important;
  }
}

/* ========== Naiosh Law hero (copy-paste face) ========== */
body.homepage .hero.law-hero {
  min-height: 100vh !important;
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(255, 31, 47, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 75%, rgba(215, 0, 0, 0.42) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 80, 90, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, #2a0810 0%, #1a050c 40%, #12040a 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  padding: 5rem 0 4rem !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.homepage .hero.law-hero::before,
body.homepage .hero.law-hero::after,
body.homepage .hero.law-hero .hero-orb {
  display: none !important;
}

.law-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.law-hero-glow-a {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 31, 47, 0.55) 0%, rgba(215, 0, 0, 0.2) 40%, transparent 68%);
  top: -280px;
  left: -180px;
  animation: law-glow-pulse 4s ease-in-out infinite;
}

.law-hero-glow-b {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 50, 60, 0.38) 0%, transparent 65%);
  bottom: -120px;
  right: -100px;
}

.law-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 80, 90, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 80, 90, 0.07) 1px, transparent 1px);
  background-size: 65px 65px;
  pointer-events: none;
  z-index: 0;
}

.law-hero-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.law-hero-ring-lg {
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 31, 47, 0.35);
  box-shadow: 0 0 40px rgba(255, 31, 47, 0.18);
  animation: law-spin-slow 40s linear infinite;
}

.law-hero-ring-sm {
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 31, 47, 0.22);
}

.law-hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px !important;
  padding-block: 2rem;
}

.law-hero-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 2.5rem 1.75rem;
  align-items: center;
  min-height: 0;
  /* مساحة للمنيو على يمين الهيرو (RTL inline-start) */
  padding-inline-start: clamp(210px, 22vw, 270px);
  padding-inline-end: 0;
}

/* منيو جانبي ثابت بطول الهيرو بالكامل — واضح ومتفرّق */
body.homepage .hero.law-hero .hero-sidebar {
  position: absolute;
  top: max(92px, calc(var(--announcement-bar-height, 40px) + 70px));
  bottom: 40px;
  inset-inline-start: max(16px, calc((100vw - min(100vw, 1320px)) / 2 + 12px));
  inset-inline-end: auto;
  width: clamp(200px, 19vw, 256px);
  grid-area: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  align-self: auto;
  justify-self: auto;
  direction: rtl;
  padding: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  transform: none;
  z-index: 20;
}

body.homepage .hero.law-hero .hero-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 1 1 0;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(8, 0, 3, 0.82);
  border: 2px solid rgba(255, 31, 47, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: right;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

body.homepage .hero.law-hero .hero-sidebar-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 31, 47, 0.45), rgba(215, 0, 0, 0.22));
  border: 1.5px solid rgba(255, 80, 90, 0.65);
  color: #ffe0e3;
  font-size: 14px;
  box-shadow: 0 0 18px rgba(255, 31, 47, 0.35);
}

body.homepage .hero.law-hero .hero-sidebar-label {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

body.homepage .hero.law-hero .hero-sidebar-item:hover,
body.homepage .hero.law-hero .hero-sidebar-item:focus-visible {
  background: linear-gradient(135deg, #ff1f2f, #b5000e);
  border-color: rgba(255, 90, 100, 0.9);
  color: #ffffff;
  transform: translateX(4px) scale(1.01);
  box-shadow: 0 12px 28px rgba(229, 9, 20, 0.48);
  outline: none;
}

body.homepage .hero.law-hero .hero-sidebar-item:hover .hero-sidebar-icon,
body.homepage .hero.law-hero .hero-sidebar-item:focus-visible .hero-sidebar-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: none;
}

.law-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 31, 47, 0.22);
  border: 1px solid rgba(255, 31, 47, 0.55);
  border-radius: 100px;
  padding: 0.45rem 1.25rem;
  color: #ffb3b8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 24px rgba(255, 31, 47, 0.25);
}

.law-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff1f2f;
  box-shadow: 0 0 10px rgba(255, 31, 47, 0.9);
  flex-shrink: 0;
  animation: law-pulse-dot 1.6s ease-in-out infinite;
}

.law-hero-heading {
  font-size: clamp(2.6rem, 4.5vw, 4.75rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.12 !important;
  margin: 0 0 1.75rem !important;
  letter-spacing: -0.02em !important;
  text-align: start !important;
}

.law-hero-heading::after {
  display: none !important;
}

.law-hero-heading .accent {
  color: #ff1f2f !important;
  text-shadow:
    0 0 18px rgba(255, 31, 47, 0.95),
    0 0 48px rgba(255, 31, 47, 0.65),
    0 0 80px rgba(215, 0, 0, 0.45);
}

.law-hero-sub {
  color: #e2e8f0 !important;
  font-size: 1.08rem !important;
  line-height: 1.9 !important;
  max-width: 560px;
  margin: 0 0 2.75rem !important;
  text-align: start !important;
}

.law-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.75rem;
}

.law-btn-primary {
  background: linear-gradient(135deg, #ff1f2f 0%, #d70000 55%, #b10011 100%);
  color: #fff !important;
  border-radius: 12px;
  padding: 1rem 2.25rem;
  font-weight: 800;
  font-size: 1rem;
  display: inline-block;
  box-shadow: 0 6px 28px rgba(255, 31, 47, 0.55), 0 0 0 1px rgba(255, 31, 47, 0.35);
  transition: all 0.22s;
  text-decoration: none;
}

.law-btn-primary:hover {
  background: linear-gradient(135deg, #ff4050 0%, #ff1f2f 55%, #d70000 100%);
  box-shadow: 0 10px 36px rgba(255, 31, 47, 0.7);
  transform: translateY(-2px);
}

.law-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0 !important;
  border-radius: 12px;
  padding: 1rem 2.25rem;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: all 0.22s;
  text-decoration: none;
}

.law-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.law-hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.law-hero-stats strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.law-hero-stats span {
  display: block;
  font-size: 0.75rem;
  color: #475569;
  margin-top: 0.3rem;
  font-weight: 500;
}

.glass-dark {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
}

.law-hero-visual {
  display: grid;
  gap: 0.85rem;
}

.law-case-card {
  padding: 1.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.law-case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.7rem;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.law-live {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-radius: 100px;
  padding: 0.2rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.law-case-card h3 {
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.law-case-meta {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0 0 1.4rem;
}

.law-session {
  background: rgba(255, 31, 47, 0.18);
  border: 1px solid rgba(255, 31, 47, 0.4);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.law-session-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 31, 47, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8a90;
  flex-shrink: 0;
}

.law-session small {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
}

.law-session strong {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
}

.law-progress-block {
  margin-bottom: 1.25rem;
}

.law-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  color: #64748b;
}

.law-progress-labels span:last-child {
  color: #ff1f2f;
  font-weight: 800;
}

.law-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.law-progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d70000, #ff1f2f, #ff6b6b);
  box-shadow: 0 0 12px rgba(255, 31, 47, 0.7);
  border-radius: 99px;
}

.law-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.law-tags span {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  border-radius: 8px;
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.law-mini-card {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.law-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.law-mini-icon.warn {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.law-mini-card strong {
  display: block;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

.law-mini-card p {
  color: #64748b;
  font-size: 0.72rem;
  margin: 0.1rem 0 0;
}

.law-chip-warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
}

.law-mini-stats {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.law-mini-stats > div {
  text-align: center;
  flex: 1;
}

.law-mini-stats strong {
  display: block;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.law-mini-stats span {
  display: block;
  color: #475569;
  font-size: 0.65rem;
  margin-top: 0.2rem;
}

.law-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 10;
}

.law-scroll i {
  animation: law-float 2s ease-in-out infinite;
}

@keyframes law-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes law-glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes law-spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes law-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.float-anim {
  animation: law-float 4.5s ease-in-out infinite;
}

/* ========== Full-width card grids (no side gap) ========== */
body.homepage #layers.container {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: 0.75rem !important;
}

body.homepage #layers .cards,
body.homepage #layers .hub-layer-grid {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 2rem;
}

body.homepage #layers .cards .card,
body.homepage #layers .hub-layer-grid .card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.homepage #layers .section-head {
  text-align: start;
  margin-bottom: 1.5rem;
}

body.homepage #layers .section-head > div {
  max-width: none;
}

body.homepage #layers .section-head h2,
body.homepage #layers .section-head p {
  text-align: start !important;
  margin-inline: 0 !important;
}

@media (max-width: 1200px) {
  body.homepage #layers .cards,
  body.homepage #layers .hub-layer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .law-hero-grid-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 1.5rem;
    padding-inline-start: clamp(190px, 24vw, 230px);
  }

  body.homepage .hero.law-hero .hero-sidebar {
    width: clamp(170px, 20vw, 210px);
    gap: 12px;
  }

  body.homepage .hero.law-hero .hero-sidebar-item {
    font-size: 14px;
    padding: 12px 14px;
    min-height: 50px;
  }

  body.homepage .hero.law-hero .hero-sidebar-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .law-hero-grid-layout {
    grid-template-columns: 1fr !important;
    min-height: 0;
    align-items: start;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
  }

  body.homepage .hero.law-hero .hero-sidebar {
    position: relative;
    top: auto;
    bottom: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
    width: 100%;
    margin: 0 auto 18px;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-self: auto;
    height: auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 10px;
    padding: 4px 12px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    z-index: 12;
  }

  body.homepage .hero.law-hero .hero-sidebar::-webkit-scrollbar {
    display: none;
  }

  body.homepage .hero.law-hero .hero-sidebar-item {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 48px;
    font-size: 13.5px;
    padding: 12px 16px;
    transform: none !important;
  }

  body.homepage .hero.law-hero .hero-sidebar-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 13px;
  }

  .law-hero-visual {
    display: none !important;
  }

  body.homepage .hero.law-hero {
    min-height: auto !important;
    padding-top: 4rem !important;
    padding-bottom: 2.5rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .law-hero-copy {
    max-width: 100% !important;
  }

  .law-hero-heading {
    font-size: clamp(1.85rem, 9vw, 2.6rem) !important;
  }

  .law-hero-sub {
    font-size: 0.95rem !important;
  }

  .law-hero-stats {
    gap: 1rem 1.25rem !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .law-hero-stats strong {
    font-size: 1.45rem !important;
  }
}

@media (max-width: 768px) {
  body.homepage #layers .cards,
  body.homepage #layers .hub-layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .law-hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .law-btn-primary,
  .law-btn-ghost {
    text-align: center;
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .law-hero-badge {
    font-size: 0.72rem !important;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  body.homepage #layers .cards,
  body.homepage #layers .hub-layer-grid {
    grid-template-columns: 1fr !important;
  }

  .law-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}
