/* Editorial and formal legal pages use open columns, with native product pixels. */
.page-shell,
.doc-shell,
.legal {
  padding-bottom: 16px;
}
.uc-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 60px;
  padding: 0 0 40px;
}
.uc-hero h1 span {
  display: block;
}
.uc-hero .lead {
  max-width: 40ch;
}
.uc-stage {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cb-surface);
  box-shadow: var(--cb-shadow);
}
.uc-stage img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.uc-main {
  padding-top: 32px;
}
.uc-section + .uc-section {
  margin-top: 72px;
}
.uc-section-head {
  max-width: 780px;
  margin-bottom: 28px;
}
.uc-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 550;
}
.uc-section-head p {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--cb-text-soft);
  font-size: 15px;
  line-height: 1.9;
}
.uc-scene-grid,
.uc-when-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
}
.uc-scene {
  min-width: 0;
  padding: 20px 0;
  color: var(--cb-text);
  text-decoration: none;
}
.uc-scene:hover {
  color: var(--cb-text);
}
.uc-scene-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: var(--cb-text-muted);
  font-size: 12px;
}
.uc-scene-go {
  color: var(--cb-accent);
  font-size: 22px;
  transition: transform 160ms ease;
}
.uc-scene:hover .uc-scene-go {
  transform: translateX(4px);
}
.uc-scene h3 {
  margin: 16px 0;
  font-size: 24px;
  font-weight: 550;
  line-height: 1.4;
}
.uc-scene:hover h3 {
  color: var(--cb-accent);
}
.uc-scene-meta {
  margin: 0;
}
.uc-scene-meta > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 10px 0;
}
.uc-scene-meta dt {
  color: var(--cb-text-muted);
  font-size: 12px;
}
.uc-scene-meta dd {
  margin: 0;
  color: var(--cb-text-soft);
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.uc-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--cb-text-muted);
  font-size: 12px;
}
.uc-when-col {
  min-width: 0;
  padding: 6px 0;
}
.uc-when-col h3 {
  font-size: 22px;
  font-weight: 550;
}
.uc-when-col ul {
  margin: 22px 0 0;
  padding-left: 1.2rem;
  color: var(--cb-text-soft);
  font-size: 15px;
  line-height: 1.9;
}
.uc-when-col li + li {
  margin-top: 12px;
}
.uc-secondary {
  margin: 46px 0 0;
  color: var(--cb-text-muted);
  font-size: 14px;
  line-height: 1.9;
}
.doc-shell {
  width: min(var(--cb-reading), calc(100% - 96px));
}
.doc-hero {
  max-width: var(--cb-reading);
  padding: 0 0 32px;
}
.doc-hero .lead {
  max-width: 65ch;
}
.doc-visual {
  margin: 0 0 72px;
}
.doc-visual img,
.doc-product-shot img {
  width: 100%;
  height: auto;
  border-radius: 7px;
  box-shadow: var(--cb-shadow);
}
.doc-visual figcaption,
.doc-product-shot figcaption {
  margin-top: 14px;
  color: var(--cb-text-muted);
  font-size: 12px;
  line-height: 1.85;
}
.doc-article {
  width: min(var(--cb-reading), 100%);
  margin: 0 auto;
}
.doc-section {
  padding: 24px 0;
  scroll-margin-top: calc(var(--cb-header-height) + 28px);
}
.doc-section h2 {
  margin-bottom: 24px;
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 550;
  line-height: 1.4;
}
.doc-section p,
.doc-section li {
  color: var(--cb-text-soft);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.doc-section p {
  margin: 0 0 20px;
}
.doc-section ul,
.doc-section ol {
  margin: 20px 0 0;
  padding-left: 1.4rem;
}
.doc-section li + li {
  margin-top: 12px;
}
.doc-section strong {
  color: var(--cb-text);
  font-weight: 550;
}
.doc-product-shot {
  width: min(900px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.doc-product-shot h2 {
  width: min(var(--cb-reading), 100%);
  margin-inline: auto;
}
.doc-product-shot figure {
  margin: 0;
}
.content-table-wrap {
  max-width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 6px;
  scrollbar-width: thin;
}
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.85;
}
.content-table th,
.content-table td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
}
.content-table th {
  background: var(--cb-surface-muted);
  color: var(--cb-text);
  font-size: 12px;
  font-weight: 550;
}
.content-table tbody tr:nth-child(even) {
  background: var(--cb-surface);
}
.content-table td:first-child {
  color: var(--cb-text);
  font-weight: 550;
  white-space: nowrap;
}
.content-table .yes {
  color: var(--cb-success);
}
.content-table .no {
  color: var(--cb-text-muted);
}
.doc-faq details {
  padding: 22px 0;
}
.doc-faq summary {
  color: var(--cb-text);
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
}
.doc-faq details[open] summary {
  color: var(--cb-accent);
}
.doc-faq details p {
  margin: 16px 0 0;
}
.doc-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin-top: 24px;
}
.doc-related a {
  padding: 18px 0;
  color: var(--cb-text);
  text-decoration: none;
}
.doc-related a:hover strong {
  color: var(--cb-accent);
}
.doc-related strong,
.doc-related span {
  display: block;
}
.doc-related strong {
  font-size: 15px;
  font-weight: 550;
}
.doc-related span {
  margin-top: 10px;
  color: var(--cb-text-muted);
  font-size: 13px;
  line-height: 1.85;
}
.legal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0 56px;
}
.legal .breadcrumb,
.legal-header {
  grid-column: 1 / -1;
}
.legal-header {
  padding: 0 0 32px;
}
.legal-meta {
  margin: 0;
  color: var(--cb-text-muted);
  font-size: 12px;
}
.legal-toc {
  position: sticky;
  top: calc(var(--cb-header-height) + 32px);
  display: grid;
  align-self: start;
  gap: 5px;
  max-height: calc(100dvh - var(--cb-header-height) - 64px);
  padding: 20px 5px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.legal-toc a {
  padding: 10px 12px;
  border-radius: 5px;
  color: var(--cb-text-muted);
  font-size: 12px;
  line-height: 1.7;
  text-decoration: none;
}
.legal-toc a:hover {
  background: var(--cb-surface-muted);
  color: var(--cb-text);
}
.legal-toc a[aria-current="true"] {
  background: var(--cb-accent-soft);
  color: var(--cb-accent);
  font-weight: 550;
}
.legal-body {
  min-width: 0;
  max-width: var(--cb-reading);
}
.legal-body > section {
  padding: 22px 0;
  scroll-margin-top: calc(var(--cb-header-height) + 28px);
}
.legal-body h2 {
  margin-bottom: 24px;
  font-size: 25px;
  font-weight: 550;
}
.legal-body p,
.legal-body li {
  color: var(--cb-text-soft);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.legal-statement {
  margin: 0 0 12px;
  padding: 24px;
  border-radius: 7px;
  background: var(--cb-surface-muted);
  color: var(--cb-text);
  font-size: 19px;
  line-height: 1.75;
}
.legal-list {
  padding-left: 1.4rem;
}
.legal-list li + li {
  margin-top: 12px;
}
.perm-dl {
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
}
.perm-row {
  padding: 8px 0;
}
.perm-row dt {
  margin-bottom: 12px;
  line-height: 1.9;
}
.perm-row dd {
  margin: 0;
  color: var(--cb-text-soft);
  font-size: 14px;
  line-height: 1.9;
}
.perm-name {
  margin-right: 10px;
  font-weight: 550;
}
.perm-code {
  color: var(--cb-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.perm-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--cb-surface-muted);
  color: var(--cb-success);
  font-size: 11px;
}
.perm-tag.optional {
  color: var(--cb-text-muted);
}
.error-page {
  min-height: 60dvh;
  padding-top: 96px;
  padding-bottom: 80px;
}
.error-page h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 550;
}
.error-translation {
  max-width: 650px;
  margin: 20px 0 32px;
  color: var(--cb-text-muted);
  font-size: 14px;
  line-height: 1.9;
}
.error-feedback {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
}
@media (max-width: 1000px) {
  .uc-hero {
    gap: 36px;
  }
  .uc-scene-grid,
  .uc-when-grid {
    column-gap: 32px;
  }
}
@media (max-width: 900px) {
  .uc-hero {
    grid-template-columns: 1fr;
  }
  .uc-stage {
    max-width: 760px;
  }
  .legal {
    grid-template-columns: 1fr;
  }
  .legal .breadcrumb,
  .legal-header {
    grid-column: auto;
  }
  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    max-height: none;
    padding: 0;
    overflow: visible;
  }
}
@media (max-width: 767px) {
  .doc-shell {
    width: calc(100% - 40px);
  }
  .uc-hero {
    gap: 34px;
    padding: 0 0 36px;
  }
  .uc-main {
    padding-top: 36px;
  }
  .uc-section + .uc-section {
    margin-top: 60px;
  }
  .uc-scene-grid,
  .uc-when-grid,
  .doc-related {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .uc-scene-meta > div {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }
  .doc-hero {
    padding: 0 0 34px;
  }
  .doc-visual {
    margin-bottom: 28px;
  }
  .doc-product-shot {
    width: calc(100vw - 40px);
  }
  .doc-section {
    padding: 28px 0;
  }
  .legal-header {
    padding: 0 0 28px;
  }
  .legal-body > section {
    padding: 24px 0;
  }
  .legal-statement {
    padding: 20px;
    font-size: 17px;
  }
  .error-page {
    padding-top: 56px;
    padding-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-scene-go {
    transition: none;
  }
  .uc-scene:hover .uc-scene-go {
    transform: none;
  }
}
