/* System website doc components: anchorbar, doc-row, timeline, rate card and calculator,
   faq accordions. Loaded after home-netflix.css and sys/base.css on .nx pages; every
   selector is scoped under .nx. White plates on paper with 1px --line borders and 12px
   radius; no red here at all, the only signal colour on these pages is the plate callout. */

/* -- Anchorbar: sticky under the sysnav (56px), 40px tall, chips that scroll sideways; the right
   edge fades so a clipped last chip reads as more to scroll */
.nx .anchorbar {
  position: sticky;
  top: 56px;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 40px;
  background: rgb(251 250 247 / 94%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Tier A and B homes have no sysnav above the bar: it sticks to the top edge, not 56px under it */
.nx.nx-sys:not(:has(.sysnav)) .anchorbar {
  top: var(--system-quick-offset, 0px);
}
.nx .anchorbar ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
/* the fade only when the chips overflow the bar (sys-anchorbar.js sets is-overflow on load and resize) */
.nx .anchorbar.is-overflow ul {
  mask-image: linear-gradient(90deg, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
}
.nx .anchorbar ul::-webkit-scrollbar {
  display: none;
}
.nx .anchorbar li {
  flex: none;
}
.nx .anchorbar a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.35;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
}
.nx .anchorbar a:hover {
  color: var(--ink);
}
.nx .anchorbar a.on {
  color: var(--ink);
  background: #f1f0ec;
}
.nx .anchor-select {
  display: none;
  font: 14px var(--body);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 32px 6px 10px;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121213' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 10px center / 14px no-repeat #fff;
}

/* -- Doc row: text beside a plate, alternating with .flip. Rows align to their top edge so a
   heading sits level with the window bar, and the padding is block-only so a .pad section keeps
   its side padding when the two classes meet. */
.nx .doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  padding-block: 48px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 104px;
}
.nx .doc-row:first-of-type {
  border-top: 0;
}
.nx .doc-row.flip .doc-row-plate {
  order: -1;
}
.nx .doc-row.prose {
  grid-template-columns: minmax(0, 1fr);
}
.nx .doc-row.prose .doc-row-text {
  max-width: 58em;
}
.nx .doc-row-text {
  min-width: 0;
  padding-top: 6px;
}
.nx .doc-row h2,
.nx .doc-body .doc-row h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.nx .doc-row h3,
.nx .doc-body .doc-row h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nx .doc-row-text > p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.55;
}
.nx .doc-row-text .bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  list-style: disc outside;
}
.nx .doc-row-text .bullets li + li {
  margin-top: 6px;
}
.nx .doc-row-text .bullets b {
  color: var(--ink);
  font-weight: 600;
}
.nx .doc-row.prose .doc-row-text p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
}
.nx .doc-row.prose .doc-row-text ul,
.nx .doc-row.prose .doc-row-text ol {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-2);
}
.nx .doc-row-plate {
  min-width: 0;
}
.nx .doc-row-plate .win {
  max-width: 560px;
}
.nx .doc-row.flip .doc-row-plate .win {
  margin-left: 0;
}
.nx .doc-row:not(.flip) .doc-row-plate .win {
  margin-left: auto;
}
.nx .doc-row .win[data-kind='table'] .win-grid td {
  white-space: normal;
}

/* -- Timeline: numbered stops on a rail */
.nx .timeline-weeks {
  margin: 0 0 14px;
  color: var(--ink-3);
}
.nx .timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 18px;
}
.nx .timeline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--line);
}
.nx .timeline li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.nx .timeline .n {
  font: 700 28px/1 var(--display);
  color: var(--ink-3);
  letter-spacing: -0.02em;
}
.nx .timeline b {
  font: 600 17px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.nx .timeline b a {
  color: inherit;
  text-decoration: none;
}
.nx .timeline b a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
}
.nx .timeline .chip.owner {
  justify-self: start;
}
.nx .timeline p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.nx .timeline .ends {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.nx .timeline.brief li {
  padding: 14px 16px;
}

/* -- Rate card and calculator */
.nx .pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: stretch;
}
.nx .pricing-grid.solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}
.nx .win[data-kind='ratecard'] .win-grid td:first-child {
  font-size: 13.5px;
}
.nx .calc {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 20px;
  box-shadow: var(--plate-shadow-compact, 0 16px 40px -30px rgb(0 0 0 / 35%));
}
.nx .calc > .k {
  display: block;
  color: var(--ink-3);
  padding-bottom: 8px;
}
.nx .calc label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.nx .calc label > span {
  min-width: 0;
}
.nx .calc output {
  font: 12.5px var(--mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.nx .calc input[type='range'] {
  grid-column: 1 / -1;
  width: 100%;
  height: 28px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.nx .calc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
}
.nx .calc-total .k {
  color: var(--ink-3);
}
.nx .calc-total b {
  font: 700 32px/1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.nx .calc-how {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

/* -- FAQ: native details, two columns, mono group labels */
.nx .faq-groups {
  max-width: 70em;
}
.nx .faq-groups .faq + .faq {
  margin-top: 40px;
}
.nx .faq {
  columns: 2;
  column-gap: 40px;
  max-width: 70em;
}
.nx .faq.one,
.nx .faq-groups.one .faq {
  columns: 1;
  max-width: 62em;
}
.nx .faq > .k {
  column-span: all;
  display: block;
  color: var(--ink-3);
  padding-bottom: 10px;
}
.nx .faq-item {
  break-inside: avoid;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  scroll-margin-top: 104px;
}
.nx .faq-item summary {
  font: 600 15px/1.35 var(--display);
  letter-spacing: -0.01em;
  text-transform: none;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.nx .faq-item summary::-webkit-details-marker {
  display: none;
}
.nx .faq-item summary::after {
  content: '+';
  flex: none;
  font: 15px var(--mono);
  color: var(--ink-3);
}
.nx .faq-item[open] summary::after {
  content: '\2013';
}
.nx .faq-item summary:hover::after {
  color: var(--ink);
}
.nx .faq-body p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.nx .faq-body ul,
.nx .faq-body ol {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-2);
}
.nx .faq-body .faq-src {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink-3);
  text-decoration: none;
}
.nx .faq-body a.faq-src:hover {
  color: var(--ink);
}

/* -- Tablets: rows stack, the rail turns vertical, the pricing grid stacks */
@media (max-width: 900px) {
  .nx .doc-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 36px;
  }
  .nx .doc-row.flip .doc-row-plate {
    order: 1;
  }
  .nx .doc-row:not(.flip) .doc-row-plate .win,
  .nx .doc-row-plate .win {
    max-width: none;
    margin-left: 0;
  }
  .nx .timeline {
    grid-auto-flow: row;
    padding: 0 0 0 18px;
  }
  .nx .timeline::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .nx .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .nx .faq {
    columns: 1;
  }
}

/* -- Phones: the anchorbar chips give way to a native select */
@media (max-width: 640px) {
  .nx .anchorbar ul {
    display: none;
  }
  .nx .anchor-select {
    display: block;
    width: 100%;
  }
}

/* -- Doc row text: real list markers in prose rows, linked 'read by' lines */
.nx .doc-row.prose .doc-row-text ul {
  list-style: disc outside;
}
.nx .doc-row.prose .doc-row-text ol {
  list-style: decimal outside;
}
.nx .doc-row .reads a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nx .doc-row .reads a:hover {
  border-color: var(--ink);
}
.nx .doc-row-text > .k + h3,
.nx .doc-row-text > .k + h2 {
  margin-top: 6px;
}

/* -- Rate card: the table fills its window; the solo card stops at 560px; presets in the calculator */
.nx .win[data-kind='ratecard'] .win-grid {
  width: 100%;
}
.nx .win[data-kind='ratecard'] .win-grid td:last-child,
.nx .win[data-kind='ratecard'] .win-grid th:last-child {
  width: 40%;
}
.nx .pricing-grid .win[data-kind='ratecard'] {
  align-self: start;
}
.nx .calc-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 6px;
}
.nx .calc .preset {
  font: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  color: var(--ink);
  min-width: 0;
}
.nx .calc .preset b {
  font: 600 13.5px var(--display);
  letter-spacing: -0.01em;
}
.nx .calc .preset .k {
  color: var(--ink-3);
}
.nx .calc .preset:hover,
.nx .calc .preset.on {
  border-color: var(--ink);
}
@media (max-width: 480px) {
  .nx .calc-presets {
    grid-template-columns: minmax(0, 1fr);
  }
}
