.req,
.req-doc-hero,
.req-doc {
  --req-ink: #1a1a1a;
  --req-muted: #6e6e73;
  --req-line: #d2d2d7;
  --req-accent: var(--accent, #0071e3);
  --req-accent-2: var(--accent-2, #0066cc);
  --req-tint: #eaf3ff;
  --req-card: #fff;
  --req-soft: #f5f5f7;
  --req-black: #0a0a0a;
  color: var(--req-ink);
}

.req { padding-bottom: 4.5rem; }

.req [hidden] { display: none !important; }

.req-wrap {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.req-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.req-hero {
  padding: 3.2rem 0 1.8rem;
  background: linear-gradient(#f2f7ff, #fff);
  text-align: center;
}

.req-hero h1 {
  max-width: 18em;
  margin: 0 auto;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.req-note {
  max-width: 36rem;
  margin: 0.9rem auto 0;
  color: var(--req-muted);
  font-size: 0.95rem;
}

.req-search {
  position: relative;
  max-width: 640px;
  margin: 1.6rem auto 0;
}

.req-search::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='16.5' y1='16.5' x2='21' y2='21'/></svg>") center / contain no-repeat;
  pointer-events: none;
}

.req-search input,
.req-search-mini {
  width: 100%;
  border: 1.5px solid var(--req-line);
  border-radius: 999px;
  background: #fff;
  color: var(--req-ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.req-search input {
  padding: 1.15rem 1.4rem 1.15rem 3.4rem;
  font-size: 1rem;
}

.req-search input:focus,
.req-search-mini:focus {
  border-color: var(--req-accent);
  box-shadow: 0 0 0 4px rgb(0 113 227 / 14%);
}

.req-hint {
  max-width: 640px;
  margin: 0.75rem auto 0;
  padding-left: 1.5rem;
  color: var(--req-muted);
  font-size: 0.82rem;
  text-align: left;
}

.req-subnav {
  position: sticky;
  top: 64px;
  z-index: 15;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--req-line);
  backdrop-filter: blur(12px);
}

.req-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.req-subnav-inner::-webkit-scrollbar { display: none; }

.req-subnav a {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--req-ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.req-subnav a {
  transition: background-color 160ms ease, color 160ms ease;
}

.req-subnav a:hover {
  background: var(--req-tint);
  color: var(--req-accent-2);
}

.req-search-mini {
  flex: 0 0 11rem;
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.req-section { scroll-margin-top: 8.5rem; }

.req-section-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--req-line);
}

.req-section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.5rem;
  height: 3px;
  border-radius: 999px;
  background: var(--req-accent);
}

.req-section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.req-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--req-tint);
  font-size: 1.4rem;
  line-height: 1;
}

.req-count {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--req-tint);
  color: var(--req-accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.req-lead {
  margin: 0.85rem 0 0;
  color: var(--req-muted);
  font-size: 0.98rem;
}

.req-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.req-pill {
  padding: 0.45rem 1.05rem;
  border: 1.5px solid var(--req-line);
  border-radius: 999px;
  background: transparent;
  color: var(--req-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.req-pill {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.req-pill:hover {
  border-color: var(--req-accent);
  color: var(--req-accent-2);
}

.req-pill.is-active {
  border-color: var(--req-accent);
  background: var(--req-accent);
  color: #fff;
}

.req-group-title {
  margin: 1.4rem 0 0;
  color: var(--req-accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 1rem;
}

.req-grid--popular { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.req-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.req-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 1.5rem;
  border: 1px solid var(--req-line);
  border-radius: 18px;
  background: var(--req-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.req-card:hover {
  border-color: var(--req-accent);
  box-shadow: 0 10px 28px rgb(0 113 227 / 12%);
  transform: translateY(-2px);
}

.req-card:focus-visible {
  outline: 2px solid var(--req-accent);
  outline-offset: 2px;
}

.req-card--compact {
  min-height: 0;
  padding: 1rem 1.1rem;
}

.req-card-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  background: var(--req-tint);
  color: var(--req-accent-2);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.req-card-name {
  margin-bottom: 0.25rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.req-card--compact .req-card-name { font-size: 1rem; }

.req-card-meta {
  color: var(--req-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.req-card-more {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--req-accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.req-empty {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 2rem auto 0;
  color: var(--req-muted);
  text-align: center;
}

.req-dialog {
  width: min(560px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.req-dialog::backdrop {
  background: rgb(10 10 10 / 50%);
  backdrop-filter: blur(4px);
}

.req-dialog-card {
  position: relative;
  max-height: calc(100vh - 2rem);
  padding: 2.2rem 2.4rem;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgb(0 0 0 / 18%);
}

.req-dialog-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--req-soft);
  color: var(--req-ink);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.req-dialog-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 0 0.9rem;
  border-radius: 14px;
  background: var(--req-tint);
  color: var(--req-accent-2);
  font-size: 1.3rem;
  font-weight: 800;
}

.req-dialog-card h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.req-dialog-sub {
  margin: 0.45rem 0 0;
  color: var(--req-muted);
}

.req-method {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--req-tint);
}

.req-method-label,
.req-params p,
.req-source {
  margin: 0;
  color: var(--req-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.req-method-value,
.req-params strong,
.req-no-photo {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.req-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.req-params > div {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--req-line);
  border-radius: 14px;
}

.req-param-wide { grid-column: 1 / -1; }

.req-no-photo {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--req-soft);
  font-weight: 600;
}

.req-source {
  margin-top: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}

.req-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.25rem;
}

.req-cta {
  display: inline-flex;
  margin-top: 0;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--req-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.req-cta:hover { background: var(--req-accent-2); }

.req-article-link {
  display: inline-flex;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--req-accent);
  color: var(--req-accent-2);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.req-article-link:hover { background: var(--req-tint); }

.req-doc-hero {
  padding: 2.6rem 0 2rem;
  background: linear-gradient(#f2f7ff, #fff);
}

.req-doc-hero-inner {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.req-doc-back { margin: 0 0 1rem; }

.req-doc-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--req-tint);
  color: var(--req-accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.req-doc-back a::before { content: "←"; }

.req-doc-back a:hover { background: #dcebff; }

.req-doc-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.req-doc-lead {
  margin: 1rem 0 0;
  color: var(--req-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.req-doc {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto 3.5rem;
}

.req-doc-block {
  margin-top: 1rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--req-line);
  border-radius: 18px;
  background: #fff;
}

.req-doc-block h2 {
  position: relative;
  margin: 0 0 0.8rem;
  padding-bottom: 0.7rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.req-doc-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.6rem;
  height: 3px;
  border-radius: 999px;
  background: var(--req-accent);
}

.req-doc-block p {
  margin: 0.6rem 0 0;
  color: var(--req-muted);
  line-height: 1.6;
}

.req-doc-block ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.req-doc-block li {
  position: relative;
  margin: 0;
  padding-left: 1.7rem;
  color: var(--req-ink);
  line-height: 1.5;
}

.req-doc-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4.5 8.4l2.4 2.4 4.6-5'/></svg>") center / 0.8rem no-repeat,
    var(--req-accent);
}

.req-doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
}

.req-doc-tabs a {
  padding: 0.4rem 0.95rem;
  border: 1.5px solid var(--req-line);
  border-radius: 999px;
  background: #fff;
  color: var(--req-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.req-doc-tabs a:hover {
  border-color: var(--req-accent);
  color: var(--req-accent-2);
}

.req-doc-tabs a.is-active {
  border-color: var(--req-accent);
  background: var(--req-accent);
  color: #fff;
}

.req-doc--legal .req-doc-block p {
  color: #3a3a3c;
  line-height: 1.65;
}

.req-doc-cta {
  margin-top: 1.5rem;
  padding: 1.8rem 1.6rem;
  border-radius: 18px;
  background: var(--req-accent);
  color: #fff;
  text-align: center;
}

.req-doc-cta p { margin: 0; }

.req-doc-cta-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.req-doc-cta-text {
  margin-top: 0.4rem !important;
  color: rgb(255 255 255 / 86%);
}

.req-doc-cta-btn {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--req-accent-2);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 160ms ease;
}

.req-doc-cta-btn:hover { box-shadow: 0 8px 22px rgb(0 0 0 / 28%); }

.req-doc-more {
  margin: 1.2rem 0 0;
  text-align: center;
}

.req-doc-more a {
  color: var(--req-accent-2);
  font-weight: 700;
  text-decoration: none;
}

.req-doc-more a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .req-hero { padding-top: 2rem; }
  .req-hint { padding-left: 0; text-align: center; }
  .req-doc-hero { padding-top: 1.8rem; }
  .req-doc-block { padding: 1.2rem 1.1rem; }
  .req-search-mini { display: none; }
  .req-grid,
  .req-grid--popular,
  .req-grid--compact { grid-template-columns: 1fr; }
  .req-dialog-card { padding: 1.4rem 1.15rem 1.3rem; }
  .req-params { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .req-card,
  .req-pill,
  .req-subnav { transition: none; }
}

.req-table-section { padding: 2.2rem 0 0.5rem; }

.req-table-scroll {
  margin-top: 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--req-line);
  border-radius: 18px;
  background: var(--req-card);
}

.req-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: left;
}

.req-table thead th {
  position: sticky;
  top: 0;
  padding: 0.85rem 1rem;
  background: var(--req-soft);
  color: var(--req-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.req-table td,
.req-table tbody th {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--req-line);
  vertical-align: top;
}

.req-table tbody tr:hover { background: #f8fbff; }

.req-table tbody th { font-weight: 700; white-space: nowrap; }

.req-table-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--req-accent-2);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.req-table-link:hover { text-decoration: underline; }

.req-table-source { color: var(--req-muted); font-size: 0.82rem; }

.req-table-note {
  margin: 0.8rem 0 0;
  color: var(--req-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .req-table { min-width: 0; }
  .req-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .req-table, .req-table tbody, .req-table tr, .req-table td, .req-table tbody th { display: block; }
  .req-table tr { padding: 0.9rem 1rem; border-top: 1px solid var(--req-line); }
  .req-table tr:first-child { border-top: 0; }
  .req-table td, .req-table tbody th { padding: 0.15rem 0; border: 0; white-space: normal; }
  .req-table td::before {
    content: attr(data-label) ": ";
    color: var(--req-muted);
    font-size: 0.8rem;
  }
}

.req-doc-updated {
  margin: 0.8rem 0 0;
  color: var(--req-muted);
  font-size: 0.85rem;
}
