/* Obscure Technologies: the three tools (matcher, partner route, scope builder), their results and the print sheet. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* the matcher's six columns */
.mcol { margin: 0; padding: 0; border: 0; min-width: 0; }
.mcol legend { padding: 0; float: left; width: 100%; margin-bottom: 8px; }
.mcol legend + * { clear: both; }
.mcol__head { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.mcol__head b { font-weight: 500; }
.mcol__state { color: var(--ink-3); transition: color var(--d3) var(--ease-arrive); }
.mcol[data-on="1"] .mcol__state { color: var(--teal-deep); }
.mcheck { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: start; padding: 8px 0; font-size: 14.5px; line-height: 1.3; cursor: pointer; border-bottom: 1px solid var(--rule); transition: background var(--d1) ease; }
.mcheck:hover { background: color-mix(in srgb, var(--teal) 5%, transparent); }
.tick { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); display: grid; place-content: center; cursor: pointer; transition: background var(--d2) var(--ease-arrive), border-color var(--d2) var(--ease-arrive); }
.tick::after { content: ''; width: 11px; height: 6px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform var(--d2) var(--ease-arrive); }
.tick:checked { background: var(--teal); border-color: var(--teal); }
.tick:checked::after { transform: rotate(-45deg) scale(1); }
.tick:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* results */
.results { padding: clamp(56px, 7vw, 100px) 0 clamp(64px, 8vw, 120px); border-top: 1px solid var(--rule); scroll-margin-top: 90px; }   /* the matcher's own results are a Lenis anchor on the home page, where scroll padding applies on phones */
.results__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 40px; }
.results__head h2 { grid-column: 1 / span 8; font-size: clamp(30px, 3.6vw, 54px); }
.results__head p { grid-column: 9 / span 4; color: var(--ink-2); font-size: 17px; }
.print-head { display: none; }
.rgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.rlist { grid-column: 1 / span 7; }
.rside { grid-column: 9 / span 4; display: grid; gap: 40px; align-content: start; }
.rlist h3, .rside h3 { font-size: 20px; margin-bottom: 14px; }
.empty { padding: 28px 0; color: var(--ink-2); font-size: 19px; max-width: 34em; border-top: 1px solid var(--rule); }
.vitem { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 8px 24px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: center; }
.vitem:last-child { border-bottom: 1px solid var(--rule); }
.vitem a { color: var(--ink); text-decoration: none; }
.vitem a:hover { color: var(--violet-deep); }
.vitem__for { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.vitem__for b { color: var(--ink); font-weight: 500; }
.vitem__bar { display: grid; gap: 6px; justify-items: end; font-size: 13px; font-family: var(--f-mono); color: var(--ink-3); }
.vitem__bar span { display: block; width: 100%; height: 4px; background: var(--paper-3); }
.vitem__bar i { display: block; height: 100%; background: var(--teal); transition: width var(--d3) var(--ease-arrive); }
.cover { display: grid; gap: 0; counter-reset: c; }
.cover li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.4; }
.cover li:last-child { border-bottom: 1px solid var(--rule); }
.cover b { font-weight: 500; font-size: 18px; }
.cover small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 15px; }
.terr { display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.terr li { display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: start; }
.terr li::before { content: ''; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--paper-3); }
.terr li[data-s="listed"]::before, .terr li[data-s="ok"]::before { background: var(--teal); }
.terr b { font-weight: 500; color: var(--ink); }
.svc { padding: 18px 20px; background: var(--paper-2); border-radius: var(--radius); font-size: 16px; }
.svc b { font-weight: 500; display: block; margin-bottom: 6px; font-size: 18px; }
.how { margin-top: 36px; max-width: 38em; }
.how summary { cursor: pointer; font-weight: 500; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.how summary:hover { color: var(--violet-deep); }
.how p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.caveat { margin-top: 14px; color: var(--ink-3); font-size: 14px; max-width: 38em; }

/* partner route and scope builder: inputs on the left, the answer on the right */
.tool { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.tool__in { grid-column: 1 / span 5; display: grid; gap: 26px; }
.tool__out { grid-column: 7 / span 6; }   /* never sticky: nothing of ours may sit in the bottom-right corner, and a panel that follows the scroll can */
.tool__in fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.tool__in legend { padding: 0 0 10px; font-size: 15px; font-weight: 500; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.checks .mcheck { padding: 8px 0; }
.radios { display: grid; gap: 0; }
.radios .mcheck { padding: 11px 0; }
.radio { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); display: grid; place-content: center; cursor: pointer; transition: background var(--d2) var(--ease-arrive), border-color var(--d2) var(--ease-arrive); }
.radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--d2) var(--ease-arrive); }
.radio:checked { background: var(--teal); border-color: var(--teal); }
.radio:checked::after { transform: scale(1); }
.radio:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.panel { background: var(--paper-2); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 36px); }
.panel h3 { font-size: 22px; margin-bottom: 14px; }
.panel .btn--quiet { background: var(--paper); }
.panel .btn--quiet:hover { background: var(--ink); color: var(--paper); }
.panel .route__tag { margin: -6px 0 12px; }
.panel .route__note { color: var(--ink-2); font-size: 16px; margin-bottom: 24px; }
.panel .route { font-size: clamp(22px, 2.2vw, 30px); font-weight: var(--w-lead); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px; }
.panel ol.steps { display: grid; gap: 10px; margin: 0 0 22px; padding-left: 1.2em; list-style: decimal; color: var(--ink-2); font-size: 16px; }
.panel pre { margin: 0 0 20px; padding: 16px 18px; background: var(--paper); border-radius: var(--radius); font-family: var(--f-mono); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.lines { display: grid; gap: 18px; }
.line-card { display: grid; gap: 14px; padding: 18px; background: var(--paper-2); border-radius: var(--radius); position: relative; }
.line-card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.line-card .field input, .line-card .field select { min-height: 46px; }
.line-card__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.linkbtn { justify-self: start; background: none; border: 0; padding: 4px 0; font-size: 15px; color: var(--violet-deep); text-decoration: underline; text-underline-offset: 4px; }
.linkbtn:hover { color: var(--ink); }
.scope-list { display: grid; gap: 10px; margin: 0 0 18px; font-size: 18px; }
.scope-list li { padding: 12px 0; border-top: 1px solid var(--paper-3); }
.scope-list li:last-child { border-bottom: 1px solid var(--paper-3); }

@media (max-width: 1020px) {
  .results__head h2, .results__head p, .rlist, .rside { grid-column: 1 / -1; }
  .results__head p { margin-top: 16px; }
  .vitem { grid-template-columns: 120px minmax(0, 1fr); }
  .vitem__bar { grid-column: 1 / -1; justify-items: start; }
  .tool__in, .tool__out { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .checks, .line-card__grid { grid-template-columns: 1fr; }
}

/* print: only the answer, with the wordmark, the date and Obscure's contact details */
@media print {
  @page { margin: 16mm; }
  body[data-print] { background: #fff; color: #000; font-size: 11.5pt; }
  body[data-print] .skip, body[data-print] .top, body[data-print] .menu, body[data-print] .foot, body[data-print] #world, body[data-print] .hud, body[data-print] .phone-cap,
  body[data-print] .stage, body[data-print] .pagehead, body[data-print] .tool__in, body[data-print] .sa-corner-room, body[data-print] .actions, body[data-print] .how summary { display: none !important; }
  html:has(body[data-print]) { background: #fff; }
  body[data-print] main > *:not(.print-me):not(.after), body[data-print] .after > *:not(.print-me) { display: none !important; }
  body[data-print] .after { background: #fff; }
  body[data-print] .print-me { display: block !important; padding: 0; border: 0; }
  body[data-print] .print-head { display: grid !important; gap: 4px; margin-bottom: 18pt; padding-bottom: 10pt; border-bottom: 1pt solid #000; font-size: 9.5pt; }
  body[data-print] .print-head img { width: 130pt; height: auto; margin-bottom: 6pt; }
  body[data-print] .tool__out { grid-column: 1 / -1; }
  body[data-print] .panel { background: #fff; padding: 0; }
  body[data-print] .rgrid, body[data-print] .results__head { display: block; }
  body[data-print] .rside { margin-top: 18pt; }
  body[data-print] .vitem__bar span { border: 0.5pt solid #000; background: #fff; }
  body[data-print] .vitem__bar i { background: #000; }
  body[data-print] .print-only { display: block !important; margin-bottom: 14pt; }
  body[data-print] .how > *:not(summary) { display: block; }
  body[data-print] details.how { display: block; }
  body[data-print] a { color: #000; text-decoration: none; }
}

/* a tool page opens with a shorter header, so the tool itself starts on the first screen */
.pagehead--tool { padding: clamp(28px, 3.6vw, 52px) 0 clamp(22px, 2.6vw, 36px); }
.pagehead--tool .crumb { margin-bottom: 14px; }
.pagehead--tool h1 { font-size: clamp(40px, 5.2vw, 76px); max-width: 16em; }
.pagehead--tool .lead { margin-top: 14px; font-size: clamp(17px, 1.4vw, 20px); max-width: 44em; }
.pagehead--tool + main > .section:first-child { padding-top: clamp(28px, 3.4vw, 48px); }
