/* ============================================
   ANT GROUP — Shared editorial page system
   Mirrors the landing page across guides and solutions.
   ============================================ */
@import url("/css/tokens.css?v=20260728-foundation-v2");
@import url("/css/motion.css?v=20260728-foundation-v2");
@import url("/css/components.css?v=20260728-foundation-v2");

:root {
  --accent: var(--ant-cyan);
  --teal: var(--ant-cyan);
  --ink: var(--text);
  --dim: var(--text-2);
  --line: var(--border);
  --line2: var(--border-2);
  --panel: rgba(9, 13, 22, 0.68);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
html.light-mode { color-scheme: light; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 46% at 50% -8%, rgba(99, 102, 241, 0.15), transparent 72%),
    radial-gradient(circle 46% at 82% 30%, rgba(56, 189, 248, 0.055), transparent 74%);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: var(--leading-copy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.light-mode body {
  --panel: color-mix(in srgb, var(--surface) 92%, transparent);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 46% at 50% -8%, rgba(79, 70, 229, .09), transparent 72%),
    radial-gradient(circle 46% at 82% 30%, rgba(14, 165, 233, .05), transparent 74%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .44;
  background-image: linear-gradient(rgba(148, 163, 184, .026) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
a { color: inherit; }
button, input { font: inherit; }
::selection { color: #04111a; background: rgba(94, 234, 212, .72); }
:focus-visible { outline: 2px solid var(--ant-cyan); outline-offset: 4px; }

.wrap { width: min(100%, var(--content-reading)); margin: 0 auto; padding-inline: var(--page-gutter); }

/* Landing-page glass navigation */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 var(--page-gutter);
  background: linear-gradient(to bottom, rgba(2, 6, 23, .72), transparent);
}
.top .site-nav {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--content-nav));
  min-height: 64px;
  margin: 16px auto;
  padding: 8px 18px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: linear-gradient(112deg, rgba(4, 8, 26, .84), rgba(33, 83, 176, .49) 55%, rgba(93, 114, 139, .46));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}
.top .site-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, .22), rgba(207, 216, 227, .08) 30%, transparent 58%);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .085em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.logo img { width: 40px; height: 28px; object-fit: contain; opacity: .86; }
.site-nav__links { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.5vw, 24px); }
.site-nav__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}
.site-nav__link:hover, .site-nav__link:focus-visible, .site-nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .09); }
.site-nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.resource-theme-toggle,
.resource-menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: var(--radius-action);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.resource-theme-toggle:hover,
.resource-menu-toggle:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}
.resource-menu-toggle { display: none; }
.resource-menu-toggle > span,
.resource-menu-toggle > span::before,
.resource-menu-toggle > span::after {
  width: 17px;
  height: 1.5px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--motion-base) var(--ease-out), opacity var(--motion-fast) ease;
}
.resource-menu-toggle > span { position: relative; }
.resource-menu-toggle > span::before,
.resource-menu-toggle > span::after { content: ""; position: absolute; left: 0; }
.resource-menu-toggle > span::before { top: -5px; }
.resource-menu-toggle > span::after { top: 5px; }
.resource-menu-toggle[aria-expanded="true"] > span { background: transparent; }
.resource-menu-toggle[aria-expanded="true"] > span::before { top: 0; transform: rotate(45deg); }
.resource-menu-toggle[aria-expanded="true"] > span::after { top: 0; transform: rotate(-45deg); }
.resource-mobile-nav {
  width: min(calc(100% - 24px), 520px);
  margin: -6px auto 0;
}
.resource-mobile-nav[hidden] { display: none; }
.resource-mobile-nav__surface {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--elevation-panel);
  backdrop-filter: blur(20px);
}
.resource-mobile-nav__surface > a:not(.btn) {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-action);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
.resource-mobile-nav__surface > a:not(.btn):hover { background: var(--surface-2); }
body.resource-nav-open { overflow: hidden; }
html.light-mode .top .site-nav {
  border-color: rgba(15, 23, 42, .15);
  background: linear-gradient(112deg, rgba(255,255,255,.9), rgba(226,232,240,.86) 58%, rgba(237,233,227,.9));
  box-shadow: 0 12px 34px rgba(15, 23, 42, .1), inset 0 1px 0 rgba(255,255,255,.8);
}
html.light-mode .site-nav__link:hover,
html.light-mode .site-nav__link:focus-visible,
html.light-mode .site-nav__link.is-active { color: var(--text); background: rgba(15,23,42,.06); }
.lang-switch,
.nav-lang {
  min-width: 42px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: 700 11px/1 'JetBrains Mono', monospace;
  cursor: pointer;
}
.lang-switch:hover, .lang-switch:focus-visible,
.nav-lang:hover, .nav-lang:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(148, 163, 184, .18);
}
.nav-lang-opt { color: color-mix(in srgb, var(--text) 48%, transparent); }
.nav-lang-opt.is-active { color: var(--text); }
.nav-lang-divider { color: color-mix(in srgb, var(--text) 36%, transparent); font-weight: 400; }
.hero-cta-row { margin-top: 22px; }
.top-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(220, 231, 255, .3);
  border-radius: 999px;
  background: linear-gradient(128deg, rgba(24, 92, 176, .9), rgba(64, 74, 148, .82) 48%, rgba(135, 67, 82, .84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 10px 22px rgba(33, 50, 102, .22);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.top-cta:hover { filter: brightness(1.08) saturate(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 28px rgba(45,39,98,.3); }

/* Editorial hero and content rhythm */
.hero { position: relative; padding: clamp(72px, 10vw, 128px) 0 clamp(52px, 7vw, 84px); }
.hero::before {
  content: "";
  position: absolute;
  width: min(620px, 80vw);
  aspect-ratio: 1;
  top: -38%;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .08), transparent 68%);
  filter: blur(10px);
}
.eyebrow, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ant-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .68; }
h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--ink); /* was #fff — unreadable on light theme */
  font-family: var(--font-display);
  font-size: var(--type-page-title);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: var(--leading-display);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.lead { max-width: var(--content-copy); color: var(--text-2); font-size: var(--type-lead); line-height: 1.75; text-wrap: pretty; }
section { position: relative; padding: var(--section-space-compact) 0; border-top: 1px solid var(--border-subtle); }
section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(56, 189, 248, .025), transparent 72%); }
h2 { max-width: 760px; margin-bottom: 22px; color: var(--ink); font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 36px); font-weight: 750; letter-spacing: -.035em; line-height: 1.18; }
p, li { color: var(--dim); font-size: 15px; }
ul { margin: 18px 0; padding: 0; display: grid; gap: 10px; list-style: none; }
li { position: relative; padding-left: 28px; }
li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border: 1px solid color-mix(in srgb, var(--ant-cyan) 70%, transparent); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ant-cyan) 8%, transparent); }
li strong, p strong { color: var(--ink); }

/* Same satin/glass surfaces used on the landing page */
.card, details, .gate, .req-item, .guide-step, .legal-note, .checklist li {
  border: 1px solid var(--border-surface);
  background: var(--surface-glass);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}
.card {
  --spotlight-opacity: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-panel);
}
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: var(--spotlight-opacity);
  background: radial-gradient(260px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--ant-cyan) 12%, transparent), transparent 72%);
  transition: opacity var(--motion-base) var(--ease-out);
}
.card h3 { margin-bottom: 8px; color: var(--ink); font-size: 17px; }
.resource-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resource-checks .card { margin-top: 0; }
.source-link { color: var(--ink); font-weight: 650; text-decoration-color: var(--ant-cyan); text-underline-offset: 4px; }
.resource-inline-link { color: var(--accent); }
.resource-inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.regulation-note--compact { margin-top: 12px; }
.regulation-note--spaced { margin-top: 16px; }
.notice { margin-top: 16px; font-size: 13px; }
.tag { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--ant-cyan) 26%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--ant-cyan) 8%, transparent); }
details { margin-bottom: 12px; padding: 18px 20px; border-radius: 16px; transition: border-color 160ms ease, background-color 160ms ease; }
details[open] { border-color: color-mix(in srgb, var(--ant-cyan) 34%, rgba(148, 163, 184, .18)); background: color-mix(in srgb, var(--ant-cyan) 5%, rgba(9, 13, 22, .72)); }
html.light-mode details[open] {
  border-color: color-mix(in srgb, var(--ant-cyan) 34%, rgba(15, 23, 42, .12));
  background: color-mix(in srgb, var(--ant-cyan) 5%, rgba(255, 255, 255, .92));
  box-shadow: 0 18px 42px rgba(15, 23, 42, .09), inset 0 1px 0 rgba(255, 255, 255, .92);
}
summary { cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 650; }
details p { margin-top: 12px; font-size: 14px; }

.solution-visual { position: relative; aspect-ratio: 16 / 9; margin: 42px 0 0; overflow: hidden; border: 1px solid var(--border-surface); border-radius: var(--radius-feature); background: var(--panel); box-shadow: var(--elevation-feature), inset 0 1px 0 rgba(255,255,255,.08); }
.solution-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,8,26,.02), rgba(4,8,26,.28)), linear-gradient(120deg, rgba(56,189,248,.08), transparent 42%); }
.solution-visual img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.78) saturate(.78) contrast(1.06); transition: transform var(--motion-slow) var(--ease-smooth); }
.solution-visual:hover img { transform: scale(1.018); filter: brightness(.84) saturate(.84) contrast(1.04); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 14px 12px; border-bottom: 1px solid rgba(148, 163, 184, .12); }
tr:last-child td { border-bottom: 0; }
.config-price-row td { padding-top: 18px; color: var(--ink); font-weight: 760; }
.config-price-row td:last-child { color: var(--ant-cyan); font-size: clamp(17px, 2.2vw, 22px); letter-spacing: -.02em; }
html.light-mode .config-price-row td:last-child { color: #0369a1; }
.config-estimate-note { max-width: 820px; margin-top: 14px; font-size: 13px; line-height: 1.65; }

footer.site-footer, body > footer { margin-top: 44px; padding: 42px clamp(20px, 4vw, 32px); border-top: 1px solid rgba(148, 163, 184, .12); background: rgba(2, 6, 23, .34); color: var(--text-2); }
html.light-mode footer.site-footer,
html.light-mode body > footer {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-top-color: rgba(15, 23, 42, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}
.site-footer__inner { width: min(100%, 72rem); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .07em; }
.site-footer__brand img { width: 40px; height: 28px; object-fit: contain; opacity: .82; }
.site-footer__meta { margin-top: 8px; color: var(--text-3); font-size: 12px; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.site-footer__links a { color: var(--text-2); font-size: 13px; text-decoration: none; }
.site-footer__links a:hover { color: var(--ink); }

/* Shared footer for guide and solution pages. It cannot depend on Tailwind
   utility classes because these static pages only load the microsite bundle. */
footer.site-footer--structured {
  position: relative;
  isolation: isolate;
  margin-top: clamp(48px, 8vw, 96px);
  padding: 0 clamp(16px, 3vw, 32px) clamp(28px, 5vw, 56px);
  border: 0;
  background: transparent;
  color: var(--text-2);
}
.site-footer--structured::before {
  position: absolute;
  z-index: -1;
  inset: 22% 0 0;
  pointer-events: none;
  background: radial-gradient(ellipse 52% 100% at 50% 100%, rgba(56, 189, 248, .09), transparent 72%);
  content: "";
}
.site-footer--structured .site-footer__frame {
  position: relative;
  width: min(100%, 1200px);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(28px, 4.4vw, 52px);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: clamp(22px, 3vw, 32px);
  background:
    radial-gradient(circle at 92% 8%, rgba(56, 189, 248, .13), transparent 34%),
    linear-gradient(145deg, rgba(9, 15, 28, .96), rgba(12, 24, 42, .9));
  box-shadow: 0 28px 72px rgba(2, 6, 23, .26), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.site-footer--structured .site-footer__frame::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .055), transparent 30%);
  content: "";
}
.site-footer--structured .site-footer__masthead,
.site-footer--structured .site-footer__grid,
.site-footer--structured .site-footer__bottom {
  position: relative;
  z-index: 1;
}
.site-footer--structured .site-footer__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 440px);
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
  margin: 0;
  padding-bottom: clamp(24px, 3.5vw, 38px);
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}
.site-footer--structured .site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}
.site-footer--structured .site-footer__brand img {
  width: 40px;
  height: 28px;
  object-fit: contain;
  opacity: .9;
}
.site-footer--structured .site-footer__tagline {
  max-width: 44ch;
  margin: 0;
  color: color-mix(in srgb, var(--text) 68%, transparent);
  font-size: 13px;
  line-height: 1.7;
}
.site-footer--structured .site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 52px);
  margin: 0;
  padding: clamp(28px, 4vw, 44px) 0;
}
.site-footer--structured .site-footer__grid > div { min-width: 0; }
.site-footer--structured .site-footer__grid h4 {
  margin: 0 0 16px;
  color: color-mix(in srgb, var(--ant-cyan) 68%, #fff);
  font: 700 10px/1.2 'JetBrains Mono', monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.site-footer--structured .site-footer__grid > div > div {
  display: grid;
  gap: 11px;
}
.site-footer--structured .site-footer__grid a,
.site-footer--structured .site-footer__bottom a {
  color: color-mix(in srgb, var(--text) 68%, transparent);
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
  transition: color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.site-footer--structured .site-footer__grid a:hover,
.site-footer--structured .site-footer__bottom a:hover { color: #fff; }
.site-footer--structured .site-footer__grid > div:not(:last-child) a:hover { transform: translateX(2px); }
.site-footer--structured .site-footer__grid > div:last-child > div {
  color: color-mix(in srgb, var(--text) 68%, transparent);
  font-size: 12px;
  line-height: 1.55;
}
.site-footer--structured .site-footer__grid > div:last-child > div > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.site-footer--structured .site-footer__grid > div:last-child > div > div:first-child span:first-child {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: .5em;
  border-radius: 50%;
  background: var(--ant-cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ant-cyan) 13%, transparent);
}
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ant-cyan);
  font: 700 10px/1.4 'JetBrains Mono', monospace;
  letter-spacing: .03em;
}
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a:hover { color: #fff; }
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a span:last-child { transition: transform var(--motion-fast) var(--ease-out); }
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a:hover span:last-child { transform: translateX(3px); }
.site-footer--structured .site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .16);
  color: color-mix(in srgb, var(--text) 54%, transparent);
  font-size: 12px;
  line-height: 1.55;
}
.site-footer--structured .site-footer__bottom > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}
html.light-mode footer.site-footer--structured { background: transparent; }
html.light-mode .site-footer--structured::before {
  background: radial-gradient(ellipse 52% 100% at 50% 100%, rgba(14, 165, 233, .1), transparent 72%);
}
html.light-mode .site-footer--structured .site-footer__frame {
  border-color: rgba(15, 23, 42, .12);
  background:
    radial-gradient(circle at 92% 8%, rgba(14, 165, 233, .12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(241, 245, 249, .92));
  box-shadow: 0 24px 60px rgba(15, 23, 42, .11), inset 0 1px 0 #fff;
}
html.light-mode .site-footer--structured .site-footer__frame::before { background: linear-gradient(118deg, rgba(255, 255, 255, .8), transparent 32%); }
html.light-mode .site-footer--structured .site-footer__masthead,
html.light-mode .site-footer--structured .site-footer__bottom,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:last-child { border-color: rgba(15, 23, 42, .1); }
html.light-mode .site-footer--structured .site-footer__brand { color: #0f172a; }
html.light-mode .site-footer--structured .site-footer__brand img { filter: invert(1); opacity: .72; }
html.light-mode .site-footer--structured .site-footer__tagline,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div { color: #475569; }
html.light-mode .site-footer--structured .site-footer__grid h4,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a { color: #0369a1; }
html.light-mode .site-footer--structured .site-footer__grid a,
html.light-mode .site-footer--structured .site-footer__bottom a { color: #475569; }
html.light-mode .site-footer--structured .site-footer__grid a:hover,
html.light-mode .site-footer--structured .site-footer__bottom a:hover,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a:hover { color: #0f172a; }
html.light-mode .site-footer--structured .site-footer__bottom { color: #64748b; }

@media (max-width: 900px) {
  .site-footer--structured .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  footer.site-footer--structured { padding-inline: 12px; }
  .site-footer--structured .site-footer__frame { padding: 26px 22px; border-radius: 24px; }
  .site-footer--structured .site-footer__masthead { grid-template-columns: 1fr; gap: 16px; }
  .site-footer--structured .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer--structured .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .site-footer--structured .site-footer__bottom > div:last-child { justify-content: flex-start; }
}

/* Resource pages share the landing footer's obsidian surface in both themes.
   This keeps the final brand touchpoint visually consistent across the site. */
footer.site-footer--structured {
  background: #030404;
}
html.light-mode footer.site-footer--structured { background: #030404; }
.site-footer--structured::before,
html.light-mode .site-footer--structured::before {
  background:
    radial-gradient(ellipse 54% 100% at 50% 100%, rgba(79, 163, 176, .11), transparent 72%),
    linear-gradient(180deg, rgba(79, 163, 176, .04), transparent 44%);
}
.site-footer--structured .site-footer__frame,
html.light-mode .site-footer--structured .site-footer__frame {
  border-color: rgba(255, 255, 255, .055);
  background:
    radial-gradient(circle at 92% 8%, rgba(79, 163, 176, .08), transparent 34%),
    linear-gradient(145deg, rgba(9, 10, 11, .98), rgba(13, 14, 16, .98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.site-footer--structured .site-footer__frame::before,
html.light-mode .site-footer--structured .site-footer__frame::before {
  background: linear-gradient(118deg, rgba(255, 255, 255, .035), transparent 30%);
}
.site-footer--structured .site-footer__masthead,
.site-footer--structured .site-footer__bottom,
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child,
html.light-mode .site-footer--structured .site-footer__masthead,
html.light-mode .site-footer--structured .site-footer__bottom,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:last-child {
  border-color: rgba(255, 255, 255, .06);
}
.site-footer--structured .site-footer__brand,
html.light-mode .site-footer--structured .site-footer__brand { color: #f8fafc; }
.site-footer--structured .site-footer__brand img,
html.light-mode .site-footer--structured .site-footer__brand img { filter: none; opacity: .9; }
.site-footer--structured .site-footer__tagline,
.site-footer--structured .site-footer__grid > div:last-child > div,
html.light-mode .site-footer--structured .site-footer__tagline,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div { color: #888; }
.site-footer--structured .site-footer__grid h4,
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a,
html.light-mode .site-footer--structured .site-footer__grid h4,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a { color: #4fa3b0; }
.site-footer--structured .site-footer__grid a,
.site-footer--structured .site-footer__bottom a,
html.light-mode .site-footer--structured .site-footer__grid a,
html.light-mode .site-footer--structured .site-footer__bottom a { color: #888; }
.site-footer--structured .site-footer__grid a:hover,
.site-footer--structured .site-footer__bottom a:hover,
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a:hover,
html.light-mode .site-footer--structured .site-footer__grid a:hover,
html.light-mode .site-footer--structured .site-footer__bottom a:hover,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a:hover { color: #fff; }
.site-footer--structured .site-footer__bottom,
html.light-mode .site-footer--structured .site-footer__bottom { color: #888; }
.site-footer--structured .site-footer__status-dot,
.site-footer--structured .site-footer__grid > div:last-child > div > div:first-child span:first-child { background: #4fa3b0; }

/* Keep this shared footer visually identical to the landing footer in each
   theme: no card treatment, the same type hierarchy and the same palette. */
footer.site-footer--structured,
html.light-mode footer.site-footer--structured {
  margin-top: 44px;
  padding: 64px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.site-footer--structured::before,
html.light-mode .site-footer--structured::before,
.site-footer--structured .site-footer__frame::before,
html.light-mode .site-footer--structured .site-footer__frame::before { display: none; }
.site-footer--structured .site-footer__frame,
html.light-mode .site-footer--structured .site-footer__frame {
  width: min(100%, 1280px);
  margin: 0 auto;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-footer--structured .site-footer__masthead,
html.light-mode .site-footer--structured .site-footer__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 48px;
  padding: 0 0 32px;
  border: 0;
}
.site-footer--structured .site-footer__brand { color: #fff; }
.site-footer--structured .site-footer__brand img { filter: none; opacity: 1; }
.site-footer--structured .site-footer__tagline {
  max-width: 672px;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.625;
}
.site-footer--structured .site-footer__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin: 0 0 64px;
  padding: 0;
}
.site-footer--structured .site-footer__grid h4 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 11px;
  letter-spacing: .05em;
}
.site-footer--structured .site-footer__grid > div > div { gap: 12px; }
.site-footer--structured .site-footer__grid a,
.site-footer--structured .site-footer__bottom a,
.site-footer--structured .site-footer__grid > div:last-child > div { color: #a3a3a3; }
.site-footer--structured .site-footer__grid a:hover,
.site-footer--structured .site-footer__bottom a:hover,
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a:hover { color: #fff; }
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child {
  margin-top: 8px;
  padding-top: 8px;
  border: 0;
}
.site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a { color: #2dd4bf; }
.site-footer--structured .site-footer__grid > div:last-child > div > div:first-child span:first-child { background: #2dd4bf; }
.site-footer--structured .site-footer__bottom {
  padding-top: 32px;
  border: 0;
  color: #a3a3a3;
}
html.light-mode footer.site-footer--structured { color: #1a1612; }
html.light-mode .site-footer--structured .site-footer__brand { color: #1a1612; }
html.light-mode .site-footer--structured .site-footer__brand img { filter: invert(1); opacity: 1; }
html.light-mode .site-footer--structured .site-footer__tagline,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div,
html.light-mode .site-footer--structured .site-footer__grid a,
html.light-mode .site-footer--structured .site-footer__bottom a,
html.light-mode .site-footer--structured .site-footer__bottom { color: #4a4238; }
html.light-mode .site-footer--structured .site-footer__grid h4 { color: #1a1612; }
html.light-mode .site-footer--structured .site-footer__grid a:hover,
html.light-mode .site-footer--structured .site-footer__bottom a:hover,
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a:hover { color: #000; }
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:last-child a { color: #0f8a7a; }
html.light-mode .site-footer--structured .site-footer__grid > div:last-child > div > div:first-child span:first-child { background: #0f8a7a; }

@media (max-width: 1023px) {
  .site-footer--structured .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 767px) {
  footer.site-footer--structured,
  html.light-mode footer.site-footer--structured { padding: 48px 16px; }
  .site-footer--structured .site-footer__masthead { align-items: flex-start; flex-direction: column; margin-bottom: 40px; }
}
@media (max-width: 639px) {
  .site-footer--structured .site-footer__grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .site-footer--structured .site-footer__bottom { align-items: flex-start; flex-direction: column; padding-top: 0; }
}

@media (max-width: 900px) {
  .site-nav__links { display: none; }
  .top .site-nav { grid-template-columns: 1fr auto; }
  .resource-menu-toggle { display: inline-grid; }
  .resource-checks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  header.top { padding-inline: 10px; }
  .top .site-nav { width: 100%; max-width: 100%; min-height: 56px; margin: 10px auto; padding: 6px 8px 6px 12px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .logo { gap: 8px; font-size: 12px; }
  .logo img { width: 34px; height: 24px; }
  .site-nav__actions { min-width: 0; }
  .top-cta { min-height: 38px; padding-inline: 13px; font-size: 11px; }
  .lang-switch { min-width: 38px; min-height: 38px; padding-inline: 8px; }
  .resource-theme-toggle,
  .resource-menu-toggle { width: 38px; height: 38px; }
  .site-nav__actions .top-cta { display: none; }
  .hero { padding-top: 58px; }
  h1 { max-width: 100%; font-size: 36px; overflow-wrap: anywhere; word-break: break-word; text-wrap: wrap; }
  .lead { max-width: 100%; overflow-wrap: anywhere; }
  .solution-visual { margin-top: 28px; border-radius: 20px; }
  .btn { width: 100%; min-height: 48px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__links { justify-content: flex-start; }
}
@media print {
  .top, footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .item p, .lead, p, li { color: #333; }
}
@media (hover: none), (pointer: coarse) {
  .top-cta:hover,
  .btn:hover,
  .solution-visual:hover img { transform: none !important; }
  .top-cta:hover { filter: none !important; }
  .solution-visual:hover img { filter: brightness(.78) saturate(.78) contrast(1.06) !important; }
}


/* Executive Metric Grid for Decree #101 Hero */
.hero-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
  max-width: 760px;
}
.hero-metric-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)),
    color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
html.light-mode .hero-metric-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(241, 245, 249, .85));
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06), inset 0 1px 0 #fff;
}
.hero-metric-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ant-cyan, #38bdf8) 50%, transparent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22), 0 0 20px color-mix(in srgb, var(--ant-cyan, #38bdf8) 15%, transparent);
}
.hero-metric-card__icon {
  font-size: 20px;
  margin-bottom: 6px;
}
.hero-metric-card__val {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
  color: var(--ant-cyan, #38bdf8);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.hero-metric-card__lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}
.hero-metric-card__sub {
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 2px;
}

/* Metadata version badge for regulations-101.html */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #38bdf8) 35%, transparent);
  background: color-mix(in srgb, var(--ant-cyan, #38bdf8) 8%, transparent);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.version-badge__sep {
  opacity: .5;
}
.version-badge__note {
  color: var(--dim);
}

/* Clickable summary chip links */
.obj-chip--link {
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.obj-chip--link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ant-cyan, #38bdf8) 55%, transparent);
  background: color-mix(in srgb, var(--ant-cyan, #38bdf8) 12%, transparent);
}

/* Matsne external link styling */
.matsne-link {
  color: var(--ant-cyan, #38bdf8);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.matsne-link:hover {
  opacity: .85;
}


/* Hero Action CTAs */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 22px;
}

/* Mid-Page Conversion Banner */
.mid-page-cta {
  margin: 36px 0;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #38bdf8) 40%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ant-cyan, #38bdf8) 14%, transparent), color-mix(in srgb, var(--ant-purple, #a855f7) 10%, transparent)),
    color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mid-page-cta__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.mid-page-cta__sub {
  font-size: 13.5px;
  color: var(--dim);
  margin-top: 4px;
}
.mid-page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

/* Semantic Card Accent Tops */
.split-card--always {
  border-top: 3.5px solid #f43f5e !important;
}
.split-card--conditional {
  border-top: 3.5px solid #f59e0b !important;
}
.split-card--exempt {
  border-top: 3.5px solid #10b981 !important;
}

/* Mobile Stacked Card Tables (<768px) */
@media (max-width: 767px) {
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td, .responsive-table th {
    display: block;
    width: 100%;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table tr {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .2);
    background: rgba(255, 255, 255, .03);
  }
  .responsive-table td {
    padding: 6px 0;
    border-bottom: none;
  }
  .responsive-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--dim);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
  }
}


/* --- Fully Responsive & Light/Dark Mode Polished Self-Check Widget & Mid-Page CTA --- */
.self-check-widget {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1.5px solid color-mix(in srgb, var(--ant-cyan, #38bdf8) 45%, transparent);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)),
    color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  clear: both;
}

html.light-mode .self-check-widget {
  background: #ffffff;
  border: 1.5px solid color-mix(in srgb, var(--ant-cyan, #0284c7) 35%, transparent);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.self-check-widget__label {
  display: block;
  font-size: 15.5px;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 12px;
}

.self-check-select-wrapper {
  position: relative;
  width: 100%;
}

.self-check-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 50px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: color-mix(in srgb, var(--panel) 85%, #000);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html.light-mode .self-check-select {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.self-check-select:focus {
  outline: none;
  border-color: var(--ant-cyan, #38bdf8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ant-cyan, #38bdf8) 25%, transparent);
}

.mid-page-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #38bdf8) 40%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ant-cyan, #38bdf8) 14%, transparent), color-mix(in srgb, var(--ant-purple, #a855f7) 10%, transparent)),
    color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  clear: both;
}

html.light-mode .mid-page-cta {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(168, 85, 247, 0.06)), #ffffff;
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #0284c7) 30%, transparent);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.mid-page-cta__content {
  flex: 1 1 300px;
  min-width: 0;
}

.mid-page-cta__title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}

html.light-mode .mid-page-cta__title {
  color: #0f172a;
}

.mid-page-cta__sub {
  font-size: 13.5px;
  color: var(--dim);
  margin-top: 4px;
}

html.light-mode .mid-page-cta__sub {
  color: #475569;
}

.mid-page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
}

.mid-page-cta__actions .btn {
  white-space: nowrap;
}

html.light-mode .btn--ghost {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
html.light-mode .btn--ghost:hover {
  background: rgba(15, 23, 42, 0.1);
}


/* Active Segmented Pill */
.regulations-tab.is-active {
  color: #030d16 !important;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
  font-weight: 750 !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

html.light-mode .regulations-tab.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%) !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35) !important;
  border-color: transparent !important;
}

@media (max-width: 767px) {
  .regulations-tab-bar__inner {
    max-width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
  }
  .regulations-tab {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
}


/* Active Segmented Pill */
.regulations-tab.is-active {
  color: #04111a !important;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
  font-weight: 750 !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

html.light-mode .regulations-tab.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  border-color: transparent !important;
}

@media (max-width: 767px) {
  .regulations-tab-bar {
    top: 72px;
  }
  .regulations-tab-bar__inner {
    max-width: calc(100vw - 24px);
    justify-content: flex-start;
    border-radius: 999px;
    padding: 4px 8px;
  }
  .regulations-tab {
    padding: 7px 14px !important;
    font-size: 13px !important;
  }
}


/* --- Polished Legal Note Styling & Container Alignment --- */
.legal-note {
  max-width: 100%;
  box-sizing: border-box;
  margin: 24px auto;
  padding: 20px 24px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #38bdf8) 25%, transparent);
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)), color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html.light-mode .legal-note {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  color: #475569;
}

html.light-mode .legal-note strong {
  color: #0f172a;
}





/* ==========================================================================
   SERIOUS CORPORATE & LEGAL COMPLIANCE DESIGN SYSTEM (№101 Regulations)
   ========================================================================== */

/* --- Corporate Legal Badge Pill --- */
.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 16px;
}

html.light-mode .legal-badge-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

/* --- Hero Title & Typography --- */
.hero-title {
  font-size: clamp(26px, 3.8vw, 40px) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  max-width: 960px !important;
  margin: 0 0 20px 0 !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
  letter-spacing: -0.01em !important;
}

html.light-mode .hero-title {
  color: #0f172a !important;
}

/* --- Corporate Action Buttons --- */
.btn--corporate-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #3b82f6 !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.btn--corporate-primary:hover {
  background: #1d4ed8 !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn--corporate-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn--corporate-secondary:hover {
  color: #ffffff;
  background: #1e293b;
  border-color: #475569;
  text-decoration: none;
}

html.light-mode .btn--corporate-secondary {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.light-mode .btn--corporate-secondary:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #94a3b8;
}

/* --- Executive Metric Cards --- */
.hero-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.hero-metric-card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s ease;
}

.hero-metric-card:hover {
  border-color: #334155;
}

html.light-mode .hero-metric-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

html.light-mode .hero-metric-card:hover {
  border-color: #94a3b8;
}

.hero-metric-card__val {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 2px;
}

html.light-mode .hero-metric-card__val {
  color: #0f172a;
}

/* --- Corporate Static Vertical Left-Aligned Tab Bar --- */
.regulations-tab-bar {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  width: 100%;
  max-width: 320px;
  padding: 12px 0 24px 0;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: auto;
}

.regulations-tab-bar__inner {
  pointer-events: auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: 100%;
  margin: 0 !important;
}

html.light-mode .regulations-tab-bar__inner {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.regulations-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

html.light-mode .regulations-tab {
  color: #475569 !important;
}

.regulations-tab:hover {
  color: #f8fafc !important;
  background: #1e293b !important;
  text-decoration: none !important;
}

html.light-mode .regulations-tab:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.regulations-tab.is-active {
  color: #ffffff !important;
  background: #2563eb !important;
  font-weight: 700 !important;
}

html.light-mode .regulations-tab.is-active {
  color: #ffffff !important;
  background: #1d4ed8 !important;
}

html.light-mode .regulations-tab-bar__inner {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.regulations-tab-bar__inner::-webkit-scrollbar {
  display: none;
}

.regulations-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  scroll-snap-align: start;
}

html.light-mode .regulations-tab {
  color: #64748b !important;
}

.regulations-tab:hover {
  color: #f8fafc !important;
  background: #1e293b !important;
  text-decoration: none !important;
}

html.light-mode .regulations-tab:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

/* Active Corporate Tab */
.regulations-tab.is-active {
  color: #ffffff !important;
  background: #2563eb !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html.light-mode .regulations-tab.is-active {
  color: #ffffff !important;
  background: #1d4ed8 !important;
  box-shadow: none !important;
}

/* --- Corporate Self-Check Widget --- */
.self-check-widget {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  margin: 28px 0;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #0f172a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  clear: both;
}

html.light-mode .self-check-widget {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.self-check-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

html.light-mode .self-check-select {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

@media (max-width: 767px) {
  .regulations-tab-bar {
    top: 70px;
  }
  .regulations-tab-bar__inner {
    max-width: calc(100vw - 24px);
    justify-content: flex-start;
    border-radius: 8px;
  }
  .regulations-tab {
    padding: 7px 12px !important;
    font-size: 13px !important;
  }
}


/* ==========================================================================
   DOCUMENTATION / LEGAL TOC SIDEBAR (.regulations-sidebar-toc)
   — Hidden by default, revealed after user scrolls past the hero title.
   ========================================================================== */

/* Default / Mobile & Tablet layout (< 1200px): Sticky horizontal pill bar */
.regulations-sidebar-toc {
  position: sticky;
  top: 72px;
  z-index: 80;
  margin: 16px auto 28px auto;
  width: min(100%, 960px);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #0f172a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* ── Hidden by default; JS adds .is-visible after hero scrolls out ── */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.regulations-sidebar-toc.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.regulations-sidebar-toc::-webkit-scrollbar {
  display: none;
}

.sidebar-toc-title {
  font-size: 11.5px;
  font-weight: 750;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #1e293b;
}

.sidebar-toc-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sidebar-toc-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-toc-nav .regulations-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 12px !important;
  border-radius: 6px !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  flex-shrink: 0;
}

.sidebar-toc-nav .regulations-tab:hover {
  color: #f8fafc !important;
  background: #1e293b !important;
}

.sidebar-toc-nav .regulations-tab.is-active {
  color: #ffffff !important;
  background: #2563eb !important;
  font-weight: 700 !important;
}

/* Float only when the viewport can fit the 960px content plus the 230px TOC
   and a safe gutter. Mid-size desktops keep the non-overlapping sticky bar. */
@media (min-width: 1500px) {
  .regulations-sidebar-toc {
    position: fixed !important;
    top: 88px !important;
    left: max(16px, calc(50vw - 480px - 230px - 20px)) !important;
    width: 230px !important;
    margin: 0 !important;
    padding: 18px 14px 14px !important;
    border-radius: 16px !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 100 !important;
    display: block !important;
    /* opacity/pointer-events are controlled by .is-visible */
  }
  .regulations-sidebar-toc.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .sidebar-toc-title {
    display: block !important;
    margin-bottom: 12px;
    padding-bottom: 8px;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }

  .sidebar-toc-nav {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
    gap: 3px !important;
  }

  .sidebar-toc-nav .regulations-tab {
    width: 100% !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    padding: 9px 12px !important;
    border-left: 2px solid transparent !important;
    border-radius: 0 6px 6px 0 !important;
  }

  .sidebar-toc-nav .regulations-tab.is-active {
    color: #38bdf8 !important;
    background: rgba(2, 132, 199, 0.1) !important;
    border-left-color: #38bdf8 !important;
    font-weight: 700 !important;
  }
}

/* Light Mode Overrides */
html.light-mode .regulations-sidebar-toc {
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(239, 246, 255, .94));
  border: 1px solid rgba(148, 163, 184, .42);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12), inset 3px 0 0 rgba(2, 132, 199, .9);
}

html.light-mode .sidebar-toc-title {
  color: #64748b;
  border-bottom-color: #e2e8f0;
}

html.light-mode .sidebar-toc-nav .regulations-tab {
  color: #475569 !important;
}

html.light-mode .sidebar-toc-nav .regulations-tab:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

html.light-mode .sidebar-toc-nav .regulations-tab.is-active {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.11) !important;
  border-left-color: #0284c7 !important;
}

/* ==========================================================================
   TRUST-BUILDING VISUAL ELEMENTS — №101 Regulation Guide
   ========================================================================== */

/* Official-looking hero for regulation page */
.regulation-hero {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0 clamp(36px, 5vw, 56px);
}
.regulation-hero::before {
  content: "";
  position: absolute;
  width: min(580px, 70vw);
  aspect-ratio: 1;
  top: -30%;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .06), transparent 65%);
  filter: blur(12px);
}
.regulation-hero .eyebrow {
  color: #64748b;
  font-size: 11px;
}
html.light-mode .regulation-hero .eyebrow {
  color: #475569;
}

/* Official source badge — sits near title */
.official-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 18px 0;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, .25);
  background: rgba(37, 99, 235, .06);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.official-source-badge:hover {
  border-color: rgba(37, 99, 235, .45);
  background: rgba(37, 99, 235, .1);
  color: #cbd5e1;
}
.official-source-badge__icon {
  font-size: 14px;
  line-height: 1;
}
html.light-mode .official-source-badge {
  border-color: rgba(37, 99, 235, .2);
  background: rgba(37, 99, 235, .05);
  color: #475569;
}
html.light-mode .official-source-badge:hover {
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .08);
  color: #1e293b;
}

/* Hero lead text — slightly more muted for trust */
.regulation-hero .lead {
  max-width: 680px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: #94a3b8;
}
html.light-mode .regulation-hero .lead {
  color: #475569;
}

/* Hero disclaimer — integrated into hero as trust signal */
.hero-disclaimer {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, .15);
  border-left: 3px solid #2563eb;
  background: rgba(15, 23, 42, .5);
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
  max-width: 700px;
}
.hero-disclaimer strong {
  color: #e2e8f0;
  font-weight: 700;
}
html.light-mode .hero-disclaimer {
  background: rgba(241, 245, 249, .7);
  border-color: rgba(37, 99, 235, .15);
  border-left-color: #2563eb;
  color: #475569;
}
html.light-mode .hero-disclaimer strong {
  color: #0f172a;
}

/* Section header number badges */
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 6px;
  background: rgba(37, 99, 235, .1);
  border: 1px solid rgba(37, 99, 235, .2);
  color: #2563eb;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  vertical-align: middle;
}
html.light-mode .section-number {
  background: rgba(37, 99, 235, .08);
  border-color: rgba(37, 99, 235, .15);
  color: #1d4ed8;
}

/* Section subtitle line — document-style header */
.section-subtitle-line {
  display: block;
  width: 40px;
  height: 2px;
  margin: 12px 0 16px;
  background: linear-gradient(90deg, #2563eb, transparent);
  border-radius: 1px;
}
html.light-mode .section-subtitle-line {
  background: linear-gradient(90deg, #1d4ed8, transparent);
}

/* Official source links with matsne.gov.ge badge styling */
.official-sources {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #0f172a;
}
.official-sources__title {
  font-size: 12px;
  font-weight: 750;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.official-sources a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.official-sources a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
html.light-mode .official-sources {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html.light-mode .official-sources__title {
  color: #64748b;
}
html.light-mode .official-sources a {
  color: #0284c7;
}
html.light-mode .official-sources a:hover {
  color: #0369a1;
}

/* Updated section styling — less glow, more document-like */
body[data-ant-resource="regulation"] section {
  border-top-color: rgba(148, 163, 184, .08);
}
body[data-ant-resource="regulation"] section::before {
  background: none;
}
body[data-ant-resource="regulation"] section h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Reduce hero glow on regulation page */
body[data-ant-resource="regulation"] .regulation-hero::before {
  opacity: .5;
}

/* Clean divider between sections */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .15) 20%, rgba(148, 163, 184, .15) 80%, transparent);
  margin: 0;
}

/* Accessibility: Respect system motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
