@font-face {
  font-family: 'IRANYekanXVF';
  src:
    url('/fonts/IRANYekanXVF.woff2') format('woff2-variations'),
    url('/fonts/IRANYekanXVF.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #4f39f6;
  --primary-hover: #432dd7;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c6d2ff;
  --primary-fg: #ffffff;
  --secondary: #f4f4f5;
  --secondary-hover: #e4e4e7;
  --secondary-fg: #18181b;
  --fg: #09090b;
  --fg-soft: #27272a;
  --muted-fg: #52525c;
  --subtle-fg: #71717b;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --ring: #4f39f6;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 32px;
  --r-full: 9999px;
  --shadow-xs: 0 1px 2px rgb(9 9 11 / 0.05);
  --shadow-sm: 0 1px 3px rgb(9 9 11 / 0.06), 0 1px 2px rgb(9 9 11 / 0.04);
  --shadow-md: 0 8px 24px -8px rgb(9 9 11 / 0.12), 0 2px 6px rgb(9 9 11 / 0.04);
  --shadow-lg:
    0 24px 48px -16px rgb(9 9 11 / 0.18), 0 6px 16px rgb(9 9 11 / 0.06);
  --font: 'IRANYekanXVF', Tahoma, system-ui, sans-serif;
  --header-h: 64px;
  --bottom-nav-h: 76px;
  --gutter: 16px;
  --container: 1280px;
  --measure: 46rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.9;
  font-feature-settings: 'ss02';
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--primary);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--primary-hover);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--primary-100);
  color: var(--fg);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-lg);
  background: var(--secondary-fg);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--subtle-fg);
}

.lead {
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--muted-fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--primary-fg);
}

.btn--secondary {
  background: var(--secondary);
  color: var(--secondary-fg);
}

.btn--secondary:hover {
  background: var(--secondary-hover);
  color: var(--secondary-fg);
}

.btn--ghost {
  border-color: var(--border);
  background: var(--bg);
  color: var(--secondary-fg);
}

.btn--ghost:hover {
  background: var(--bg-subtle);
  color: var(--secondary-fg);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg);
  transition: background-color 0.18s var(--ease);
}

.icon-btn:hover {
  background: var(--secondary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--fg-soft);
  font-size: 0.8125rem;
  font-weight: 700;
}

.pill .i {
  width: 16px;
  height: 16px;
  color: var(--subtle-fg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--fg-soft);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.chip:hover {
  background: var(--secondary);
  color: var(--fg);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  border-radius: var(--r-full);
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 0.8125rem;
  font-weight: 700;
}

.meta-list .i {
  width: 16px;
  height: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}

.brand:hover {
  color: var(--fg);
}

.brand__logo {
  width: 36px;
  height: 36px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
}

.brand__tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subtle-fg);
}

.header__nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-inline-start: 24px;
}

.header__link {
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--muted-fg);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.header__link:hover,
.header__link[aria-current='page'] {
  background: var(--secondary);
  color: var(--fg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--muted-fg);
  font-size: 0.875rem;
  transition: background-color 0.18s var(--ease);
}

.search-trigger:hover {
  background: var(--bg-subtle);
}

.search-trigger__label,
.search-trigger__kbd,
.header__cta {
  display: none;
}

.search-trigger__kbd {
  margin-inline-start: auto;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--bg-subtle);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-box__icon {
  position: absolute;
  inset-inline-start: 16px;
  color: var(--subtle-fg);
  pointer-events: none;
}

.search-box__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 48px 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg);
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.search-box__input::placeholder {
  color: var(--subtle-fg);
}

.search-box__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgb(79 57 246 / 0.14);
}

.search-box__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-box--hero .search-box__input {
  min-height: 54px;
  box-shadow: var(--shadow-sm);
}

.search-results {
  list-style: none;
}

.search-results:empty {
  display: none;
}

.search-results--floating {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: min(440px, 60vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--fg);
  text-decoration: none;
}

.result:hover,
.result:focus-visible {
  background: var(--secondary);
  color: var(--fg);
  outline-offset: -2px;
}

.result__kind {
  flex: none;
  min-width: 48px;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: var(--r-full);
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.result:hover .result__kind {
  background: var(--bg);
}

.result__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result__title {
  font-weight: 700;
  line-height: 1.6;
}

.result__title mark,
.result__snippet mark {
  background: var(--primary-100);
  color: inherit;
  border-radius: 4px;
  padding-inline: 2px;
}

.result__parent {
  font-size: 0.8125rem;
  color: var(--subtle-fg);
}

.result__snippet {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted-fg);
}

.result--empty {
  padding: 16px;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

.hero {
  position: relative;
  z-index: 2;
  overflow-x: clip;
  padding-block: 32px 40px;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, #fff 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(9 9 11 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(9 9 11 / 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(
    70% 70% at 30% 40%,
    #000 30%,
    transparent 75%
  );
  mask-image: radial-gradient(70% 70% at 30% 40%, #000 30%, transparent 75%);
}

.hero__inner {
  display: grid;
  gap: 32px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.hero__title {
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
}

.hero__lead {
  max-width: 36em;
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--muted-fg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero .search-box {
  max-width: 560px;
}

.hero__visual {
  position: relative;
  display: none;
  place-items: center;
  min-height: 420px;
}

.paper {
  position: absolute;
  width: 280px;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.paper--back {
  transform: translate(-34px, -18px) rotate(-7deg);
  background: var(--bg-subtle);
}

.paper--mid {
  transform: translate(-16px, -8px) rotate(-3deg);
}

.paper--front {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  box-shadow: var(--shadow-lg);
}

.paper__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.paper__logo {
  width: 28px;
  height: 28px;
}

.paper__brand {
  font-size: 0.875rem;
  font-weight: 700;
}

.paper__ver {
  margin-inline-start: auto;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 0.6875rem;
  font-weight: 700;
}

.paper__title {
  width: 70%;
  height: 12px;
  border-radius: var(--r-full);
  background: var(--secondary-fg);
}

.paper__line {
  display: block;
  flex: 1;
  height: 7px;
  min-height: 7px;
  max-height: 7px;
  border-radius: var(--r-full);
  background: var(--secondary-hover);
}

.paper__line--short {
  flex: none;
  width: 55%;
}

.paper__clause {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paper__badge {
  flex: none;
  width: 26px;
  height: 16px;
  border-radius: var(--r-xs);
  background: var(--secondary);
  box-shadow: inset 0 0 0 1px var(--border);
}

.paper__clause:nth-child(5) .paper__badge {
  background: var(--primary-50);
  box-shadow: inset 0 0 0 1px var(--primary-200);
}

.paper__seal {
  align-self: flex-end;
  width: 48px;
  height: 48px;
  margin-top: auto;
  border: 2px dashed var(--border-strong);
  border-radius: 50%;
}

.hero__icon {
  position: absolute;
  bottom: 8px;
  inset-inline-end: calc(50% - 230px);
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgb(9 9 11 / 0.18));
}

.notice {
  display: flex;
  gap: 12px;
  max-width: 920px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
  color: var(--fg-soft);
  font-size: 0.9375rem;
}

.notice .i {
  margin-top: 4px;
  color: var(--subtle-fg);
}

.block {
  padding-block: 40px;
}

.block--tinted {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.block__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 680px;
  margin-bottom: 20px;
}

.block__title {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
}

.block__desc {
  color: var(--muted-fg);
}

.quick-grid {
  display: grid;
  gap: 8px;
  list-style: none;
}

.quick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  height: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  transition:
    border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.quick:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  color: var(--fg);
}

.quick__ref {
  flex: none;
  min-width: 72px;
  padding: 2px 10px;
  border-radius: var(--r-sm);
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}

.quick__title {
  flex: 1;
  font-weight: 700;
  line-height: 1.6;
}

.quick__arrow {
  color: var(--subtle-fg);
  transition:
    transform 0.18s var(--ease),
    color 0.18s var(--ease);
}

.quick:hover .quick__arrow {
  color: var(--primary);
  transform: translateX(-3px);
}

.pgrid {
  display: grid;
  gap: 12px;
  list-style: none;
}

.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg);
}

.pcard__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
}

.pcard__head:hover {
  color: var(--fg);
}

.pcard__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--secondary);
  color: var(--secondary-fg);
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.pcard__head:hover .pcard__icon {
  background: var(--primary-50);
  color: var(--primary);
}

.pcard__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pcard__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subtle-fg);
}

.pcard__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
}

.pcard__arrow {
  color: var(--subtle-fg);
}

.pcard__list {
  display: grid;
  gap: 2px;
  padding: 8px;
  list-style: none;
}

.pcard__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: var(--r-md);
  color: var(--fg-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-decoration: none;
}

.pcard__list a:hover {
  background: var(--secondary);
  color: var(--fg);
}

.pcard__anum,
.toc__num {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 26px;
  height: 22px;
  padding-inline: 4px;
  border-radius: var(--r-xs);
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 700;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'head'
    'body';
  gap: 28px;
  padding-block: 20px 56px;
}

.sidebar {
  display: none;
  grid-area: sidebar;
}

.doc-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: var(--measure);
}

.doc-head__title {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.doc-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
  max-width: var(--measure);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--subtle-fg);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-inline: 4px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--muted-fg);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.breadcrumb [aria-current] {
  color: var(--fg);
  font-weight: 700;
}

.toc-mobile {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.toc-mobile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile__chev {
  margin-inline-start: auto;
  transition: transform 0.2s var(--ease);
}

.toc-mobile[open] .toc-mobile__chev {
  transform: rotate(180deg);
}

.toc-mobile > ol {
  display: grid;
  gap: 2px;
  padding: 0 8px 10px;
  list-style: none;
}

.toc-mobile > ol a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  color: var(--fg-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.toc-mobile > ol a:hover {
  background: var(--secondary);
}

.toc-mobile .toc {
  padding: 0 8px 10px;
}

.part {
  display: flex;
  flex-direction: column;
  gap: 36px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.part + .part {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.part__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}

.part__num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--subtle-fg);
}

.article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.article__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}

.article__num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--subtle-fg);
}

.prose-p {
  color: var(--fg-soft);
}

.doc-body strong {
  font-weight: 700;
  color: var(--fg);
}

.xref {
  font-weight: 700;
  white-space: nowrap;
}

.clauses {
  display: grid;
  gap: 4px;
  list-style: none;
}

.clause {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 14px;
  margin-inline: -12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: background-color 0.3s var(--ease);
}

.clause:hover {
  background: var(--bg-subtle);
}

.clause:target {
  background: var(--primary-50);
  box-shadow: inset -3px 0 0 var(--primary);
}

.clause__num {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 28px;
  margin-top: 2px;
  padding-inline: 8px;
  border-radius: var(--r-sm);
  background: var(--secondary);
  color: var(--secondary-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.clause__num:hover,
.clause:target .clause__num {
  background: var(--primary);
  color: #fff;
}

.clause__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  color: var(--fg-soft);
}

.clause__copy {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--subtle-fg);
  opacity: 0;
  transition:
    opacity 0.18s var(--ease),
    background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.clause__copy .i {
  width: 18px;
  height: 18px;
}

.clause:hover .clause__copy,
.clause:focus-within .clause__copy,
.clause:target .clause__copy {
  opacity: 1;
}

.clause__copy:hover {
  background: var(--secondary);
  color: var(--fg);
}

.bullets {
  display: grid;
  gap: 6px;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--fg-soft);
}

.bullets li::before {
  content: '';
  position: absolute;
  top: 0.85em;
  inset-inline-start: 4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--border-strong);
  transform: rotate(45deg);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table thead th {
  background: var(--bg-subtle);
  color: var(--muted-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.table tbody th {
  min-width: 110px;
  font-weight: 700;
  color: var(--fg);
}

.table td {
  color: var(--fg-soft);
}

.table tbody tr:last-child > * {
  border-bottom: 0;
}

.defs {
  display: grid;
  gap: 8px;
}

.def {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.def:target {
  border-color: var(--primary);
  background: var(--primary-50);
}

.def__term {
  font-weight: 700;
  color: var(--fg);
}

.def__text {
  color: var(--muted-fg);
  overflow-wrap: anywhere;
}

.company {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
}

.company__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
}

.company__title .i {
  color: var(--subtle-fg);
}

.company__list {
  display: grid;
  gap: 2px;
}

.company__list > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.company__list > div:last-child {
  border-bottom: 0;
}

.company__list dt {
  font-size: 0.875rem;
  color: var(--subtle-fg);
}

.company__list dd {
  font-weight: 700;
  color: var(--fg);
}

.help-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
}

.help-box__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--secondary-fg);
  box-shadow: inset 0 0 0 1px var(--border);
}

.help-box__title {
  margin-bottom: 4px;
  font-size: 1.125rem;
  font-weight: 700;
}

.help-box p {
  color: var(--muted-fg);
}

.help-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pager {
  display: grid;
  gap: 10px;
}

.pager__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--fg);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.pager__link:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  color: var(--fg);
}

.pager__link .i {
  color: var(--subtle-fg);
}

.pager__link > span {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pager__link--next {
  text-align: end;
}

.pager__label {
  font-size: 0.8125rem;
  color: var(--subtle-fg);
}

.pager__title {
  font-weight: 700;
}

.toc {
  display: grid;
  gap: 4px;
  list-style: none;
}

.toc__part-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  color: var(--fg-soft);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.toc__part-link:hover {
  background: var(--secondary);
  color: var(--fg);
}

.toc__part-link[aria-current='page'] {
  background: var(--secondary);
  color: var(--fg);
  font-weight: 700;
}

.toc__part-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: var(--r-sm);
  background: var(--secondary);
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 700;
}

.toc__part-link[aria-current='page'] .toc__part-num {
  background: var(--secondary-fg);
  color: #fff;
}

.toc__articles {
  display: grid;
  gap: 1px;
  margin: 2px 0 8px;
  margin-inline-start: 21px;
  padding-inline-start: 10px !important;
  border-inline-start: 1px solid var(--border);
  list-style: none;
}

.toc__articles a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  color: var(--muted-fg);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-decoration: none;
}

.toc__articles a:hover {
  background: var(--secondary);
  color: var(--fg);
}

.toc__articles a.is-active {
  color: var(--primary);
  font-weight: 700;
}

.toc__articles a.is-active .toc__num {
  background: var(--primary-50);
  color: var(--primary);
}

dialog {
  padding: 0;
  border: 0;
  color: var(--fg);
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
}

dialog::backdrop {
  background: rgb(9 9 11 / 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.search-dialog {
  width: 100%;
  height: 100%;
  margin: 0;
}

.search-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: var(--bg);
  overflow-y: auto;
}

.search-dialog__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.search-dialog__head .search-box {
  flex-direction: column;
  align-items: stretch;
}

.search-dialog__head .search-box__icon {
  top: 14px;
}

.search-dialog .search-results {
  margin-top: 10px;
}

.search-dialog__hint {
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-fg);
}

.drawer {
  width: min(380px, 90vw);
  height: 100%;
  margin: 0 0 0 auto;
}

.drawer__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.drawer[open] .drawer__panel {
  animation: drawer-in 0.28s var(--ease);
}

@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.drawer__title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.drawer__link:hover {
  background: var(--secondary);
  color: var(--fg);
}

.drawer__link .i {
  color: var(--subtle-fg);
}

.drawer-part {
  border-radius: var(--r-md);
}

.drawer-part summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.drawer-part summary::-webkit-details-marker {
  display: none;
}

.drawer-part summary:hover {
  background: var(--secondary);
}

.drawer-part__chev {
  margin-inline-start: auto;
  color: var(--subtle-fg);
  transition: transform 0.2s var(--ease);
}

.drawer-part[open] .drawer-part__chev {
  transform: rotate(180deg);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-h) + 20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: var(--secondary-fg);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}

.toast[hidden] {
  display: none;
}

.to-top {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-md);
}

.to-top[hidden] {
  display: none;
}

.to-top:hover {
  background: var(--secondary);
}

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  border-top: 1px solid var(--border);
  background: rgb(255 255 255 / 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  height: var(--bottom-nav-h);
  margin-inline: auto;
  padding: 0 16px;
  list-style: none;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 52px;
  padding: 2px 4px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.bottom-nav__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.82) contrast(1.1);
  transition: filter 0.2s var(--ease);
}

.bottom-nav__item:hover,
.bottom-nav__item.is-active {
  color: var(--primary);
}

.bottom-nav__item:hover .bottom-nav__icon,
.bottom-nav__item.is-active .bottom-nav__icon {
  filter: none;
}

.bottom-nav__item:active {
  transform: scale(0.94);
}

.bottom-nav__item:focus-visible {
  outline-offset: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 32px 24px;
}

.footer__about {
  max-width: 440px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg-soft);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.footer__nav a:hover {
  border-color: var(--border-strong);
  color: var(--fg);
}

.footer__nav .i {
  width: 18px;
  height: 18px;
  color: var(--subtle-fg);
}

.footer__bottom {
  padding-block: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--subtle-fg);
}

.notfound {
  padding-block: 72px;
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.notfound__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--r-xl);
  background: var(--secondary);
}

.notfound__icon .i {
  width: 32px;
  height: 32px;
}

.notfound__title {
  font-size: 1.75rem;
  font-weight: 700;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (hover: none) {
  .clause__copy {
    opacity: 0.7;
  }

  .search-trigger__kbd {
    display: none !important;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .quick-grid,
  .pgrid,
  .defs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pager {
    grid-template-columns: 1fr 1fr;
  }

  .help-box {
    flex-direction: row;
  }

  .search-dialog {
    width: min(640px, calc(100vw - 32px));
    height: auto;
    max-height: min(640px, calc(100dvh - 64px));
    margin: 64px auto auto;
    border-radius: var(--r-xl);
  }

  .search-dialog__panel {
    height: auto;
    max-height: min(640px, calc(100dvh - 64px));
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
  }

  .company__list > div {
    grid-template-columns: 9rem minmax(0, 1fr);
  }
}

@media (max-width: 639.98px) {
  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table--stack,
  .table--stack tbody,
  .table--stack tr,
  .table--stack th,
  .table--stack td {
    display: block;
  }

  .table-wrap--stack {
    border: 0;
    background: none;
    overflow: visible;
  }

  .table--stack tbody {
    display: grid;
    gap: 10px;
  }

  .table--stack tr {
    padding: 4px 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg);
  }

  .table--stack th,
  .table--stack td {
    padding: 8px 14px;
    border-bottom: 0;
  }

  .table--stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--subtle-fg);
  }

  .table--stack td + td {
    border-top: 1px dashed var(--border);
  }

  .clause {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .clause__copy {
    position: absolute;
    top: 6px;
    left: 4px;
    width: 32px;
    height: 32px;
  }

  .clause__body {
    grid-column: 1 / -1;
  }

  .clause__num {
    justify-self: start;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .search-trigger {
    width: auto;
    min-width: 220px;
    padding-inline: 14px;
    justify-content: flex-start;
  }

  .search-trigger__label,
  .search-trigger__kbd {
    display: inline-block;
  }

  .header__cta {
    display: inline-flex;
  }

  .hero {
    padding-block: 48px 56px;
  }

  .doc-layout {
    padding-block: 28px 72px;
  }
}

@media (min-width: 1024px) {
  :root {
    --bottom-nav-h: 0px;
  }

  .bottom-nav {
    display: none;
  }

  .header__nav {
    display: flex;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 48px;
  }

  .hero__visual {
    display: grid;
  }

  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .block {
    padding-block: 56px;
  }
}

@media (min-width: 1180px) {
  :root {
    --gutter: 32px;
  }

  .pgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .quick {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }

  .quick__ref {
    min-width: 0;
  }

  .quick__arrow {
    display: none;
  }

  .doc-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas:
      'sidebar head'
      'sidebar body';
    grid-template-rows: auto 1fr;
    column-gap: 56px;
  }

  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
    display: block;
    max-height: calc(100dvh - var(--header-h) - 32px);
    overflow-y: auto;
    padding-inline-end: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .toc-mobile {
    display: none;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .chip,
  .quick,
  .pcard,
  .def,
  .clause__num {
    border: 1px solid CanvasText;
  }

  .clause:target {
    outline: 2px solid Highlight;
  }

  .bottom-nav__item.is-active {
    outline: 2px solid Highlight;
  }
}

@page {
  margin: 18mm 16mm;
}

@media print {
  body {
    padding: 0;
    font-size: 11pt;
    line-height: 1.8;
  }

  .site-header,
  .site-footer,
  .sidebar,
  .bottom-nav,
  .pager,
  .help-box,
  .to-top,
  .toast,
  .toc-mobile,
  .doc-head__actions,
  .clause__copy,
  .breadcrumb,
  .skip-link {
    display: none !important;
  }

  .doc-layout {
    display: block;
    padding: 0;
  }

  .doc-head,
  .doc-body {
    max-width: none;
  }

  .doc-body {
    gap: 20px;
    margin-top: 16px;
  }

  .part + .part {
    break-before: page;
  }

  .article__title,
  .part__title {
    break-inside: avoid;
    break-after: avoid;
  }

  .clause,
  .def,
  .company {
    break-inside: avoid;
  }

  .clause {
    margin: 0;
    padding: 4px 0;
  }

  .clause__num {
    background: none;
    box-shadow: inset 0 0 0 1px #999;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .meta-list li {
    background: none;
    padding: 0 0 0 12px;
  }
}
