/*
 * The pages besides home: their head, the product page's spec rows and panels, contact, sign-in, legal text, the
 * 404, the portal and downloads.
 */

/* ---------- Page head ---------- */
.page-head { padding-block: var(--s8) var(--s7); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: var(--fs-display); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.page-head .sec-head { align-items: start; }
/* The title runs the full width; the lede and anything beside it start on the section heads' column line. */
.page-head .sec-head > h1 { grid-column: 1 / -1; max-width: 20ch; }
.page-head .sec-head > p, .page-aside > * { grid-column: 2; }
.page-head .sec-head > p { font-size: var(--fs-18); }
.page-meta { margin-top: var(--s4); font: 400 var(--fs-13)/1.4 var(--mono); color: var(--text-3); }
.page-aside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s8); }

/* ---------- Product page ---------- */
.spec-rows { margin-top: var(--s8); border-top: 1px solid var(--text); }
.spec-rows > li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--s5) var(--s7); padding: var(--s5) 0; border-bottom: 1px solid var(--rule); }
.sr-name { display: flex; align-items: baseline; gap: var(--s3); }
.sr-name .n { font: 500 var(--fs-12)/1 var(--mono); color: var(--text-3); }
.sr-name h3 { font-size: var(--fs-18); font-weight: 600; letter-spacing: -0.01em; }
.sr-detail { font-size: var(--fs-16); color: var(--text-2); }
.sr-meta { display: grid; gap: var(--s2); align-content: start; }
.sr-meta div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s3); }
.sr-meta dt { font: 500 var(--fs-11)/1.9 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.sr-meta dd { font-size: var(--fs-14); color: var(--text); }
.two-col { margin-top: var(--s8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r3); background: var(--bg); }
.col-panel { padding: var(--s6); }
.col-panel + .col-panel { border-left: 1px solid var(--rule); }
.col-k { font: 500 var(--fs-12)/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.check-list { margin-top: var(--s4); border-top: 1px solid var(--rule); }
.check-list li { display: grid; gap: 2px; padding: var(--s3) 0 var(--s3) var(--s6); border-bottom: 1px solid var(--rule); position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 6px; border-left: 1.75px solid var(--done-dot); border-bottom: 1.75px solid var(--done-dot); transform: rotate(-45deg); }
.check-list strong { font-size: var(--fs-14); font-weight: 600; }
.check-list span { font-size: var(--fs-14); color: var(--text-2); }
.col-note { margin-top: var(--s4); font-size: var(--fs-13); color: var(--text-3); }
.spec-grid { margin-top: var(--s8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); border-top: 0; }
.spec-grid > div:nth-child(-n + 2) { border-top: 1px solid var(--rule); }
.cta { background: var(--surface); }
.cta-in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s6); }
.cta h2 { margin-top: var(--s3); font-size: var(--fs-h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.cta-in > div > p:last-child { margin-top: var(--s3); color: var(--text-2); max-width: 36em; }
.idx-plain { font: 500 var(--fs-12)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: start; }
.channels { border-top: 1px solid var(--rule); }
.channels li { display: grid; gap: var(--s2); padding: var(--s5) 0; border-bottom: 1px solid var(--rule); }
.channel-mail { width: fit-content; font-size: var(--fs-22); font-weight: 600; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 5px; }
.channel-mail:hover { text-decoration-color: var(--text); }
.channels p { color: var(--text-2); max-width: 36em; }
.contact-side { padding: var(--s6); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r3); }
.contact-side h2 { font-size: var(--fs-18); font-weight: 600; }
.dash-list { margin-top: var(--s3); display: grid; gap: var(--s2); }
.dash-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); font-size: var(--fs-14); color: var(--text-2); }
.dash-list li::before { content: "–"; color: var(--text-3); font-family: var(--mono); }
.contact-reserve { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: var(--fs-14); color: var(--text-2); }
.contact-reserve a { color: var(--text); font-weight: 500; }

/* ---------- Sign-in choice ---------- */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r3); background: var(--surface); }
.choice li { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s6); }
.choice li + li { border-left: 1px solid var(--rule); }
.choice h2 { font-size: var(--fs-22); font-weight: 600; letter-spacing: -0.015em; }
.choice p { color: var(--text-2); font-size: var(--fs-14); }
.choice .btn { margin-top: auto; }

/* ---------- Legal text ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: var(--fs-22); font-weight: 600; letter-spacing: -0.015em; scroll-margin-top: 80px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { display: grid; gap: var(--s2); }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: "–"; position: absolute; left: 0; color: var(--text-3); font-family: var(--mono); }
/* A numbered list (the pre-order terms): the same positioned marker, a number instead of the dash. */
.prose ol { display: grid; gap: var(--s2); counter-reset: item; }
.prose ol > li { counter-increment: item; padding-left: 28px; }
.prose ol > li::before { content: counter(item) "."; }
.prose a { color: var(--text); }
.prose h2:target { border-top-color: var(--text); }

/* ---------- 404 ---------- */
.nf-links { margin-top: var(--s6); border-top: 1px solid var(--rule); max-width: 40em; }
.nf-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.nf-links a { min-width: 6em; font-weight: 600; }
.nf-links span { color: var(--text-2); font-size: var(--fs-14); }

/* ---------- Portal ---------- */
.tabs { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s1); }
.tabs a { padding: var(--s2) var(--s3); border-radius: var(--r2); font-size: var(--fs-14); color: var(--text-2); text-decoration: none; border: 1px solid transparent; }
.tabs a:hover { background: var(--elevated); color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--rule); background: var(--surface); font-weight: 500; }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: stretch; }
.panel { padding: var(--s6); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r3); display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.panel-wide { grid-column: 1 / -1; }
.panel h2 { font: 500 var(--fs-12)/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.panel-big { font-size: var(--fs-18); font-weight: 600; letter-spacing: -0.01em; }
.panel-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.code { display: block; padding: var(--s2) var(--s3); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r2); font-size: var(--fs-13); color: var(--text); overflow-x: auto; white-space: pre; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.data th, .data td { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.data th { font: 500 var(--fs-12)/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.data .num { font-variant-numeric: tabular-nums; }

/* ---------- Downloads ---------- */
.install { margin-top: var(--s6); display: grid; gap: var(--s3); max-width: 760px; }
.seg-inline { margin-top: 0; }
.code-block { margin: 0; padding: var(--s4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r3); font-size: var(--fs-14); line-height: 1.7; overflow-x: auto; }
.releases { margin-top: var(--s6); border-top: 1px solid var(--rule); }
.release { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); display: grid; gap: var(--s3); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.release-v { font: 500 var(--fs-16)/1.2 var(--mono); }
.release h3 { font-size: var(--fs-16); font-weight: 600; }
.release-body { margin: 0; white-space: pre-wrap; font: 400 var(--fs-13)/1.6 var(--mono); color: var(--text-2); }
.assets { display: grid; gap: var(--s2); }
.assets li { display: flex; flex-wrap: wrap; gap: var(--s3); font-size: var(--fs-14); }

@media (max-width: 1080px) {
  .spec-rows > li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .sr-meta { grid-column: 2; }
}
@media (max-width: 900px) {
  .page-head .sec-head, .page-aside { grid-template-columns: minmax(0, 1fr); }
  .page-head .sec-head > p, .page-aside > * { grid-column: 1; }
  .contact, .two-col, .choice, .panels, .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .col-panel + .col-panel { border-left: 0; border-top: 1px solid var(--rule); }
  .choice li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .spec-grid > div:nth-child(2) { border-top: 0; }
}
@media (max-width: 640px) {
  .page-head { padding-block: var(--s7) var(--s6); }
  .spec-rows > li { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .sr-meta { grid-column: 1; }
  .col-panel, .choice li, .panel, .contact-side { padding: var(--s5); }
  .channel-mail { font-size: var(--fs-18); }
}
