/* Shared by the converter, the record check, the method and verify pages. Tokens come from /styles.css. */
.doc { max-width: 880px; }
.doc-head { padding: 72px 0 32px; display: flex; flex-direction: column; align-items: flex-start; }
/* The eyebrow stays first in the DOM; it shows under the title as a status chip. */
.doc-head > * { order: 2; }
.doc-head > h1 { order: 1; }
.doc-head > form, .doc-head > .lede { align-self: stretch; }
.doc-head h1 { font-size: var(--t-display); margin-bottom: 14px; }
.doc-head .lede { margin-bottom: 0; }
/* Page facts under the title, set as a status chip. */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--sans); color: var(--text-2); background: var(--card-2); border-radius: var(--pill); padding: 5px 12px; margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.tool { padding: 24px; display: grid; gap: 20px; border-radius: var(--radius-lg); }
.segments.two { grid-template-columns: 1fr 1fr; }
.segmented.mode { margin: 0; }
.label.spaced { margin-top: 18px; }
.file { display: block; width: 100%; font: 13.5px var(--sans); color: var(--text-2); padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-md); background: var(--panel); }
.file::file-selector-button { font: 500 13px var(--sans); color: var(--text); background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 7px 14px; margin-right: 12px; cursor: pointer; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.actions .form-msg { margin: 0; }

.result-card { margin-top: 16px; border-radius: var(--radius-lg); }
.result-card .card-body { padding: 20px; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.stats.four dd { font-size: 24px; }
.stats dd.gap { color: var(--gap); }
.note { padding: 12px 14px; border-radius: var(--radius-md); background: var(--card-2); font-size: 13.5px; color: var(--text-2); margin: 0 0 10px; }
.note.gap { background: var(--gap-soft); }
.note strong { color: var(--text); font-weight: 500; }
.preview-wrap { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.table-scroll { overflow-x: auto; }
table.data.compact { font-size: 12.5px; }
table.data.compact th, table.data.compact td { padding: 9px 12px; }

.doc-section { padding-top: var(--section); }
.doc-section h2 { font-size: var(--t-h2); }
.doc-section h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.015em; margin: var(--s-6) 0 var(--s-2); }
.doc-section p, .doc-section li { color: var(--text-2); font-size: 15.5px; line-height: 1.7; max-width: 70ch; }
.doc-section p strong, .doc-section li strong { color: var(--text); font-weight: 500; }
.doc-section a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.doc-section a:not(.btn):hover { text-decoration-color: var(--accent); }
.doc-section .card { margin: 20px 0 0; padding: 6px; }
ul.plain { padding-left: 0; list-style: none; margin: 16px 0 0; display: grid; gap: 12px; }
ul.plain > li { position: relative; padding-left: 22px; }
ul.plain > li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* Numbered steps: the order matters in the method, so the numbers stay. */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
ol.steps > li { counter-increment: step; position: relative; padding: 14px 18px 14px 56px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); max-width: none; }
ol.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 12.5px/26px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
code, .code { font: 13px var(--mono); color: var(--text); background: var(--card-2); border-radius: 6px; padding: 2px 6px; }

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .stats.four { grid-template-columns: 1fr 1fr; }
  .doc-head { padding-top: 44px; }
  ol.steps > li { padding: 52px 16px 14px; }
  ol.steps > li::before { top: 14px; }
}

/* Keep long identifiers and tables inside the page width on phones. */
.doc, .doc-section, .doc-head { min-width: 0; }
ul.plain > li, ol.steps > li { min-width: 0; overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }
table.data.wrap th, table.data.wrap td { white-space: normal; }
table.data.wrap td:last-child { white-space: nowrap; }
