/* DPDP Star Documentation Theme — Exact Design System of star.dpdpa.support */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 107.6%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #1E2A5E;
  --text: #1B2240;
  --muted: #4E5677;
  --faint: #5F6682;
  --line: #E3E6EE;
  --line-strong: #C9CEDC;
  --accent: #D41317;
  --accent-text: #C2100F;
  --accent-soft: #FEF2F2;
  --focus: #1D4ED8;
  --accent-dark: #B01014;
  --deep: #1E2A5E;
  --deep-soft: #EEF1FA;
  --on-deep: #FFFFFF;
  --link: #1E2A5E;
  --live-fg: #14693F;
  --live-bg: #E8F5EE;
  --live-line: #BFE3CE;
  --soon-fg: #8A2F0B;
  --soon-bg: #FFF7ED;
  --soon-line: #FED7AA;
  --code-bg: #0E1638;
  --code-fg: #E8EBF5;
  --wrap: 1200px;
  --nav-h: 68px;
  --hair: 1px;
  --ease: cubic-bezier(.28, 0, .4, 1);
  --display: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

:root[data-theme='dark'] {
  --accent-text: #FF8F92;
  --accent-soft: #2A1626;
  --focus: #9DBDFF;
  --bg: #0E1638;
  --bg-alt: #121A45;
  --surface: #16214D;
  --ink: #FFFFFF;
  --text: #E8EBF5;
  --muted: #A7B1DA;
  --faint: #9AA4D2;
  --line: #2A3666;
  --line-strong: #3A4780;
  --link: #C9D3FF;
  --deep: #121A45;
  --deep-soft: #1E2A5E;
  --live-fg: #86EFAC;
  --live-bg: #0F2E22;
  --live-line: #1E563B;
  --soon-fg: #FDBA74;
  --soon-bg: #321C11;
  --soon-line: #6C3419;
  --code-bg: #090E26;
  --code-fg: #E8EBF5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); color: var(--text); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--display);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
.lt { display: block; }
.dk { display: none; }
:root[data-theme='dark'] .lt { display: none; }
:root[data-theme='dark'] .dk { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
}
p { margin: 0 0 14px; }

/* Sticky Header (Identical to star.dpdpa.support) */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: var(--hair) solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--nav-h);
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.02em;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand .pw {
  width: 132px;
  height: auto;
}
.brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: var(--hair) solid var(--line-strong);
  border-radius: 2px;
  color: var(--muted);
  background: var(--bg-alt);
}

.pill {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pill a {
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
}
.pill a:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.pill a.active {
  background: var(--deep-soft);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

/* Official DPDP Star Buttons (.btn, .btn.primary, .textlink) */
.btn {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 22px;
  border: var(--hair) solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.btn::after {
  content: '';
  width: 16px;
  height: 9px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.btn.primary {
  background: var(--ink);
  color: var(--bg);
}
.btn.primary::before {
  content: '';
  position: absolute;
  left: -1px;
  bottom: -1px;
  height: 2px;
  width: 28px;
  background: var(--accent);
  transition: width .45s var(--ease);
}
.btn.primary:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn.primary:hover::before,
.btn.primary:focus-visible::before {
  width: calc(100% + 2px);
}
.btn.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  gap: 8px;
}
.btn.no-arrow::after { display: none; }

.pill a.btn {
  min-height: 38px;
  padding: 0 16px;
  gap: 8px;
  font-size: 13.5px;
  color: var(--bg);
  background: var(--ink);
}
.pill a.btn::before {
  content: '';
  position: absolute;
  left: -1px;
  bottom: -1px;
  height: 2px;
  width: 18px;
  background: var(--accent);
  transition: width .45s var(--ease);
}
.pill a.btn:hover::before { width: calc(100% + 2px); }

/* Theme Toggle Button (from star.dpdpa.support) */
.theme-t {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 2px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.theme-t:hover { background: var(--bg-alt); }
.theme-i {
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform .5s var(--ease);
}
.theme-t[aria-pressed='true'] .theme-i { transform: rotate(180deg); }

/* Copy Page as .md for AI Agents Toolbar */
.ai-copy-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-copy-md {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: var(--hair) solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: 600 13px/1 var(--display);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.btn-copy-md:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
}
.btn-copy-md .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.btn-copy-md.copied {
  border-color: var(--live-fg);
  background: var(--live-bg);
  color: var(--live-fg);
}

/* Page Hero Banner */
.doc-hero {
  background: var(--bg-alt);
  border-bottom: var(--hair) solid var(--line);
  padding: clamp(36px, 5vw, 56px) 0 clamp(32px, 4vw, 44px);
}
.doc-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.doc-hero h1 {
  font-size: clamp(30px, 3.5vw, 44px);
  margin: 0 0 14px;
  max-width: 28ch;
}
.doc-hero p.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 74ch;
  margin: 0 0 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* External vs Internal Audience Switcher Banner */
.audience-bar {
  background: var(--surface);
  border: var(--hair) solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 14px 18px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.audience-bar p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text);
}
.audience-bar strong { color: var(--ink); }

/* Jump TOC Bar */
.toc-bar {
  background: var(--bg-alt);
  border: var(--hair) solid var(--line);
  border-radius: 2px;
  padding: 12px 16px;
  margin: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.toc-bar strong {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  margin-right: 6px;
}
.toc-bar a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 10px;
  border: var(--hair) solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
}
.toc-bar a:hover {
  border-color: var(--ink);
  color: var(--accent-text);
}

/* Section Cards */
main.doc-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px 64px;
}
.section-card {
  background: var(--surface);
  border: var(--hair) solid var(--line-strong);
  border-top: 2.5px solid var(--ink);
  border-radius: 2px;
  padding: clamp(22px, 3vw, 32px);
  margin-bottom: 28px;
}
.section-card.accent-top {
  border-top-color: var(--accent);
}
.section-card h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.section-card .sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

/* Badges & Tags (Matching star.dpdpa.support .tag) */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font: 600 11px/1.6 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: var(--hair) solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}
.tag.live { color: var(--live-fg); background: var(--live-bg); border-color: var(--live-line); }
.tag.soon { color: var(--soon-fg); background: var(--soon-bg); border-color: var(--soon-line); }
.tag.plan { color: var(--muted); background: var(--bg-alt); border-color: var(--line-strong); }
.tag.dpo { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-text); }

.ep {
  font: 600 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--deep-soft);
  color: var(--ink);
  border: var(--hair) solid var(--line-strong);
  padding: 3px 9px;
  border-radius: 2px;
}

/* Tables */
.table-scroll { overflow-x: auto; margin: 14px 0 18px; }
.fn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fn-table th, .fn-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: var(--hair) solid var(--line);
  vertical-align: top;
}
.fn-table th {
  background: var(--bg-alt);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  font-weight: 600;
  border-top: var(--hair) solid var(--line-strong);
}
.fn-table code, p code, li code {
  font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
  background: var(--bg-alt);
  border: var(--hair) solid var(--line);
  padding: 1px 6px;
  border-radius: 2px;
}

/* Code Blocks with Copy Button */
.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 860px) {
  .code-grid { grid-template-columns: 1fr; }
}
.code-col h4 {
  margin: 0 0 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.pre-wrap {
  position: relative;
}
pre.cb {
  margin: 0;
  padding: 14px 16px;
  border-radius: 2px;
  background: var(--code-bg);
  color: var(--code-fg);
  border: var(--hair) solid var(--line-strong);
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
}
.copy-snip {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  font: 600 11px/1.3 var(--display);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  cursor: pointer;
}
.copy-snip:hover { background: rgba(255, 255, 255, 0.22); }

/* Callouts */
.callout {
  background: var(--bg-alt);
  border: var(--hair) solid var(--line-strong);
  border-left: 3px solid var(--ink);
  padding: 14px 16px;
  border-radius: 2px;
  font-size: 14px;
  color: var(--text);
  margin-top: 16px;
}
.callout.warn {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.callout strong { color: var(--ink); }

/* Guide Cards Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.guide-box {
  border: var(--hair) solid var(--line-strong);
  border-top: 2.5px solid var(--accent);
  border-radius: 2px;
  padding: 20px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.guide-box h3 { font-size: 17px; margin: 0 0 6px; }
.guide-box p { font-size: 14px; color: var(--muted); margin: 0; }

/* Screenshot Grids */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
figure.shot-card {
  margin: 0;
  border: var(--hair) solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
figure.shot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: var(--hair) solid var(--line);
  background: #FFFFFF;
}
figure.shot-card figcaption {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--muted);
}
figure.shot-card figcaption strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Zero-Data-Collection & Legal Disclaimer Box */
.legal-shield {
  background: var(--bg-alt);
  border: var(--hair) solid var(--line-strong);
  border-top: 2px solid var(--ink);
  padding: 18px 22px;
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.legal-shield strong { color: var(--ink); }

/* Unified Footer — Identical to star.dpdpa.support (.site-foot) */
.wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}
.lt { display: block; }
.dk { display: none; }
:root[data-theme='dark'] .lt { display: none; }
:root[data-theme='dark'] .dk { display: block; }

.site-foot, footer.doc-footer {
  background: var(--bg-alt);
  color: var(--muted);
  padding: clamp(44px, 5vw, 64px) 0 0;
  font-size: 14.5px;
  overflow-x: clip;
  border-top: 1px solid var(--line-strong);
}
.site-foot .foot-co {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: 28px;
  border-bottom: var(--hair) solid var(--line-strong);
}
.site-foot .foot-stand:empty { display: none; }
.site-foot .foot-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  width: 100%;
}
.site-foot .foot-brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; text-decoration: none; }
.site-foot .foot-brand .pw { width: 148px; height: auto; flex: none; position: static; clip-path: none; }
.site-foot .foot-made { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 54ch; flex: 1 1 280px; }
.site-foot .cs-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 4px;
  background: #FFFFFF;
  border: var(--hair) solid #E3E6EE;
  margin-left: auto;
}
.site-foot .cs-link .dk { display: none !important; }
.site-foot .cs-link .lt { display: block !important; width: 72px; height: auto; }
.site-foot .foot-india {
  list-style: none;
  margin: 24px 0 0;
  padding: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  border-bottom: var(--hair) solid var(--line);
}
.site-foot .foot-india li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: var(--hair) solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
}
.site-foot .foot-india li span:not(.tag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-foot .foot-india .tag { margin-left: auto; font-size: 10px; padding: 2px 6px; flex: none; }
.site-foot .foot-india .tag.plan { color: var(--soon-fg); background: var(--soon-bg); border-color: var(--soon-line); }
.site-foot .foot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 24px;
  padding: 36px 0;
  border-bottom: var(--hair) solid var(--line-strong);
  inline-size: 100%;
}
.site-foot .foot-col h2 {
  margin: 0 0 12px;
  font: 600 11px/1.4 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-foot .foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-foot .foot-col a, .site-foot .foot-col .plain {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}
.site-foot .foot-col a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.site-foot .foot-contact {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 32px;
  font-style: normal;
  line-height: 1.65;
  padding: 24px 0;
  border-bottom: var(--hair) solid var(--line-strong);
  color: var(--muted);
}
.site-foot .foot-contact .fc-h {
  font: 600 11px/1.9 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-foot .foot-contact a { color: var(--ink); text-decoration: none; }
.site-foot .foot-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-foot .fmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1480px;
  margin: 28px auto 8px;
  padding: 0 24px;
}
.site-foot .fm-star { position: relative; flex: none; height: 44px; aspect-ratio: 336 / 460; }
.site-foot .ff { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-foot .fm-word { margin: 0; font: 700 28px/1 var(--display); letter-spacing: .04em; color: var(--ink); opacity: .88; }
.site-foot .foot-line {
  margin: 0 auto;
  max-width: 1480px;
  padding: 4px 24px 20px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-foot .foot-base {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 24px calc(28px + env(safe-area-inset-bottom));
  border-top: var(--hair) solid var(--line);
  text-align: left;
}
.site-foot .foot-base p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); }

@media (max-width: 1080px) {
  .site-foot .foot-india { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .site-foot .foot-co { flex-direction: column; gap: 20px; align-items: stretch; }
  .site-foot .foot-who { flex-direction: column; align-items: flex-start; }
  .site-foot .cs-link { margin-left: 0; }
  .site-foot .foot-india { grid-template-columns: 1fr; }
  .site-foot .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .site-foot .foot-contact { grid-template-columns: 1fr; gap: 8px; }
  .site-foot .foot-base { flex-direction: column; align-items: flex-start; text-align: left; flex: none; width: 100%; }
}

@media (max-width: 640px) {
  .bar { padding: 8px 0; }
  .pill { width: 100%; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .doc-hero-top { flex-direction: column; }
}

/* Feature Request & Enterprise/Internal Gate Forms */
.gate-form-card {
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: 14px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
@media (max-width: 720px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.gate-form-card label, .guide-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.gate-form-card .req { color: #b42318; }
.gate-form-card input, .gate-form-card select, .gate-form-card textarea,
.guide-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.gate-form-card input:focus, .gate-form-card select:focus, .gate-form-card textarea:focus,
.guide-card input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.notice-mini {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}
.gate-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}
.gate-msg.err { color: #b42318; }
.gate-msg.ok { color: #067647; }
.audience-bar.locked-alert {
  border-left: 4px solid #b42318;
  background: rgba(180, 35, 24, 0.07);
}
.audience-bar.unlocked-alert {
  border-left: 4px solid #067647;
  background: rgba(6, 118, 71, 0.08);
}
body.docs-mobile-restricted .doc-hero,
body.docs-mobile-restricted .toc-bar,
body.docs-mobile-restricted main.doc-main {
  display: none !important;
}
