/* Documentation page: contents on the left, readable article on the right. */
.docs-label { font-size: 14px; color: var(--text-3); padding-left: 14px; border-left: 1px solid var(--border); }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }

.docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-nav-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 10px; }
.docs-nav nav { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.docs-nav a { color: var(--text-2); font-size: 14px; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  text-decoration: none; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.docs-nav a:hover { color: var(--text); text-decoration: none; }
.docs-nav a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 550; }

.docs-body { max-width: 860px; font-size: 16px; }
.docs-body section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.docs-body section:last-child { border-bottom: 0; }
.docs-kicker { font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.docs-body h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.028em; font-weight: 650; margin: 0 0 16px; }
.docs-body h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 14px; }
.docs-body h3 { font-size: 17px; margin: 26px 0 8px; }
.docs-body p, .docs-body li, .docs-body dd { color: var(--text-2); line-height: 1.75; }
.docs-body p { margin: 0 0 14px; }
.docs-body b { color: var(--text); font-weight: 600; }
.docs-body .lead { font-size: 19px; line-height: 1.65; color: var(--text-2); }
.docs-body ul { padding-left: 20px; margin: 0 0 14px; }
.docs-body li { margin: 6px 0; }
.docs-body a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.docs-body code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--text); }

.docs-steps { list-style: none; counter-reset: step; padding: 0; margin: 4px 0 16px; display: grid; gap: 10px; }
.docs-steps li { counter-increment: step; position: relative; padding-left: 38px; margin: 0; }
.docs-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); }

.docs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.docs-cards div { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.docs-cards b { display: block; margin-bottom: 4px; }
.docs-cards span { font-size: 14px; color: var(--text-2); line-height: 1.55; }

.callout { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text-2); line-height: 1.65;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); margin: 6px 0 14px; }

.docs-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; }
.docs-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600;
  padding: 10px 12px; border-bottom: 1px solid var(--border); }
.docs-table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; line-height: 1.6; }
.docs-table td:first-child { color: var(--text); font-weight: 550; white-space: nowrap; }

.docs-body .faq { border-top: 1px solid var(--border); padding: 14px 0; }
.docs-body .faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.docs-body .faq summary::-webkit-details-marker { display: none; }
.docs-body .faq summary::after { content: "+"; float: right; color: var(--text-3); font-weight: 400; }
.docs-body .faq[open] summary::after { content: "-"; }
.docs-body .faq p { margin: 8px 0 0; }
.req-star { color: var(--danger); font-weight: 600; }
.row-links { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-nav { position: static; max-height: none; }
  .docs-nav nav { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 4px 14px; }
  .docs-nav a { padding: 4px 0; border-left: 0; }
  .docs-cards { grid-template-columns: 1fr; }
  .docs-body h1 { font-size: 30px; }
}

.docs-list { margin: 8px 0 14px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px 20px; }
.docs-list dt { font-weight: 600; color: var(--text); line-height: 1.75; }
.docs-list dt span { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); line-height: 1.3; }
.docs-list dd { margin: 0; }
@media (max-width: 700px) { .docs-list { grid-template-columns: 1fr; gap: 4px; } .docs-list dd { margin-bottom: 12px; } }

/* Flowcharts. .flow: up to 5 boxes in one row joined by arrows (top to bottom on phones).
   .flow-steps: a longer numbered checklist, top to bottom, joined by a line. */
.flow { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 30px; }
.flow > li { position: relative; margin: 0; padding: 14px 14px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; line-height: 1.35; }
.flow > li > b { font-size: 14.5px; color: var(--text); }
.flow > li > span:not(.flow-n) { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.flow > li:not(:last-child)::after { content: ""; position: absolute; right: -24px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--accent); --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  -webkit-mask: var(--arrow) center/contain no-repeat; mask: var(--arrow) center/contain no-repeat; }
.flow-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650;
  color: var(--accent); background: var(--accent-soft); margin-bottom: 4px; flex-shrink: 0; }
.flow > li.flow-end { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-soft); }
.flow > li.flow-end .flow-n { background: var(--accent); color: #fff; }

.flow.flow-steps { grid-auto-flow: row; grid-auto-columns: auto; gap: 10px; position: relative; }
.flow.flow-steps::before { content: ""; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 2px; background: var(--accent-soft); }
.flow.flow-steps > li { display: grid; grid-template-columns: 24px minmax(160px, 220px) 1fr; align-items: center; gap: 14px;
  padding: 11px 14px; box-shadow: none; }
.flow.flow-steps > li > .flow-n { margin: 0; position: relative; z-index: 1; }
.flow.flow-steps > li::after { display: none; }

/* Two lanes side by side (Easy Apply job / company-site job), each a short top-to-bottom flow. */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 6px; }
.lane { padding: 14px; border: 1px dashed var(--border-strong, var(--border)); border-radius: var(--radius); }
.lane-title { margin: 0 0 4px !important; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--accent) !important; }
.flow.flow-col { grid-auto-flow: row; grid-auto-columns: auto; gap: 26px; margin: 10px 0 0; }
.flow.flow-col > li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -22px; margin: 0 0 0 -9px; transform: rotate(90deg); }
.flow.flow-col > li.flow-or { border-style: dashed; box-shadow: none; }
.flow.flow-col > li.flow-or::before { content: "or"; position: absolute; top: -21px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; color: var(--text-3); padding: 0 6px; }
.flow.flow-col > li:has(+ .flow-or)::after { display: none; }

@media (max-width: 700px) {
  .flow { grid-auto-flow: row; grid-auto-columns: auto; gap: 26px; }
  .flow > li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -22px; margin: 0 0 0 -9px; transform: rotate(90deg); }
  .flow.flow-steps { gap: 10px; }
  .flow.flow-steps > li { grid-template-columns: 24px 1fr; gap: 2px 12px; }
  .flow.flow-steps > li > span:not(.flow-n) { grid-column: 2; }
  .lanes { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .docs-label { display: none; }
  .site-header .wrap { gap: 12px; }
  .site-header .btn { padding: 0 12px; }
}

/* Privacy and terms pages: one readable column */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.legal h2 { margin-top: 32px; }
