/* Security Questionnaire Mapper: a question paper being worked through. Warm grey-white examination stock, warm graphite ink,
   a graphite cover strip, Literata for the paper and Spline Sans Mono for every code, count and share, a 2px ruled answer
   margin on the right of every question, and one translucent rose highlighter behind a question a person must read. */
:root {
  --paper: #f6f4ef; --sheet: #fbfaf7; --ink: #221f1c; --ink-2: #45403a; --ink-3: #635d55; --rule: #d9d4cb; --rule-2: #e8e4dc;
  --hl: #f1cfe0; --rose: #7a2f5a;
  --serif: 'Literata', Georgia, 'Times New Roman', serif; --mono: 'Spline Sans Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--serif); font-kerning: normal; font-variant-numeric: lining-nums; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, .mono { font-family: var(--mono); font-size: .86em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
mark.hl { background: var(--hl); color: var(--ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* the cover strip */
.band { background: var(--ink); color: var(--paper); border-bottom: 2px solid var(--ink); }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { color: var(--paper); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.brand em { font-style: normal; font-weight: 400; }
header.site nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
header.site nav a, header.site nav span a { color: var(--paper); text-decoration: none; }
header.site nav a:hover { text-decoration: underline; }
#nav-auth { display: inline-flex; gap: 22px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; padding: 44px 0 30px; align-items: start; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 14px; }
h1 { font-size: 40px; line-height: 1.14; margin: 0 0 18px; font-weight: 700; letter-spacing: -.012em; }
h1.ph { font-size: 32px; }
h2 { font-size: 22px; line-height: 1.25; margin: 0; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lede { font-size: 18px; line-height: 1.62; margin: 0 0 22px; color: var(--ink); max-width: 620px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .hint { flex-basis: 100%; margin-top: 4px; }
.hint { color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--serif); background: var(--ink); color: var(--paper); border: 2px solid var(--ink); padding: 12px 18px; cursor: pointer; text-decoration: none; border-radius: 0; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sheet); }
.btn.small { font-size: 14px; padding: 9px 13px; }
.plan-tag { font: 500 11px/1 var(--mono); border-left: 1px solid currentColor; padding-left: 8px; margin-left: 2px; opacity: .85; }
figure.person { margin: 22px 0 18px; }
figure.person img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--ink); }
figure.person figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 10px; max-width: 560px; }

/* the static excerpt of the specimen: a strip of the paper */
.specimen { background: var(--sheet); border: 2px solid var(--ink); }
.specimen .legend { display: flex; justify-content: space-between; gap: 10px; font: 500 12px/1.4 var(--mono); padding: 8px 12px; border-bottom: 2px solid var(--ink); color: var(--ink-2); }
.specimen ol { list-style: none; margin: 0; padding: 0; }
.specimen li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 130px; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); font-size: 14.5px; line-height: 1.4; align-items: start; }
.specimen li:last-child { border-bottom: 0; }
.specimen .num { font-weight: 700; font-family: var(--serif); }
.specimen .mk { font: 500 12px/1.35 var(--mono); border-left: 2px solid var(--ink); padding-left: 8px; }
.specimen .mk small { display: block; color: var(--ink-3); font-size: 11px; }
.specimen .cap { font-size: 13.5px; color: var(--ink-2); padding: 9px 12px; border-top: 2px solid var(--ink); }

/* the tool panel */
.tool { border: 2px solid var(--ink); background: var(--sheet); margin: 18px 0 8px; }
.tool .bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 12px 14px; }
.tool .bar + .paste { border-top: 1px solid var(--rule); }
.tool .spacer { flex: 1; }
.tool .bar .hint { font-size: 14px; color: var(--ink-2); max-width: 820px; }
.tool .bar code { background: var(--paper); padding: 1px 4px; }
textarea.paste { display: block; width: 100%; min-height: 190px; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; font: 14px/1.55 var(--mono); padding: 12px 14px; resize: vertical; color: var(--ink); }
textarea.paste:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14.5px; }
.opts label { display: inline-flex; gap: 6px; align-items: center; }
.opts select { font: 14px var(--serif); background: #fff; border: 1px solid var(--ink-3); padding: 5px 6px; border-radius: 0; color: var(--ink); }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.ticks label { display: inline-flex; gap: 6px; align-items: center; }
.row { display: flex; gap: 10px; align-items: center; }

/* the result */
#result { scroll-margin-top: 12px; }
.autospec-note { font-family: var(--mono) !important; font-size: 13px !important; color: var(--ink-2); padding-top: 12px; border-top: 2px solid var(--ink); }
.leadline { font-size: 30px; line-height: 1.2; font-weight: 700; margin: 14px 0 16px; }
.leadline .n { font-variant-numeric: lining-nums tabular-nums; }
.summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.summary > div { padding: 12px 14px 14px 0; }
.summary > div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.summary .n { font: 500 28px/1.1 var(--mono); }
.summary .l { font-weight: 600; font-size: 15px; margin-top: 4px; }
.summary .sub { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; margin-top: 3px; }
.regime-line { margin: 12px 0 0; max-width: 980px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 2px solid var(--ink); padding-top: 12px; margin: 34px 0 10px; flex-wrap: wrap; }
.folio { font: 500 12.5px/1.4 var(--mono); color: var(--ink-2); }
.share-grid { max-width: none; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) 100px 90px; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule-2); font-size: 15px; }
.srow .c { text-align: right; font-family: var(--mono); font-size: 14px; }
.srow.head { font: 500 12px/1.4 var(--mono); color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.srow.tot { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 600; }
.srow.rem span:first-child { color: var(--ink-2); }

/* the paper: numbered questions and the ruled answer margin */
ol.paper { list-style: none; margin: 0; padding: 0; }
ol.paper li.qi { display: grid; grid-template-columns: 76px minmax(0, 1fr) 250px; column-gap: 18px; border-bottom: 1px solid var(--rule); padding: 12px 0; cursor: pointer; }
ol.paper li.qi:hover { background: var(--sheet); }
.qn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.qn .num { font-weight: 700; font-size: 20px; line-height: 1.2; }
.qn .ref { font: 500 12px/1.3 var(--mono); color: var(--ink-2); word-break: break-all; }
.qtext { margin: 0; font-size: 17px; line-height: 1.5; }
.flags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fl { font-variant: small-caps; font-feature-settings: 'smcp' 1, 'c2sc' 0; text-transform: lowercase; font-size: 15px; letter-spacing: .03em; color: var(--ink-2); }
.fl.rose { color: var(--rose); font-weight: 600; }
.mg { border-left: 2px solid var(--ink); padding-left: 12px; display: flex; flex-direction: column; gap: 3px; position: relative; }
.mg .mk { font: 500 13.5px/1.35 var(--mono); }
.mg .mk.none, .mg .mk.locked { color: var(--ink-3); }
.mg .basis { font-size: 13.5px; color: var(--ink-2); }
.mg .br, .mg .bw { display: block; font: 500 12px/1.4 var(--mono); color: var(--ink-2); margin-top: 3px; }
.mg .br::before { content: '\2514 '; color: var(--ink); }
.mg .toggle { position: absolute; right: 0; top: -2px; font: 500 20px/1 var(--mono); color: var(--ink); width: 24px; text-align: center; }
.mg .toggle::after { content: '+'; }
li.qi.open .mg .toggle::after { content: '\2212'; }
.why { display: none; grid-column: 1 / -1; margin: 12px 0 4px 94px; padding: 12px 0 0; border-top: 1px dashed var(--rule); cursor: auto; font-size: 15.5px; }
li.qi.open .why { display: block; }
.why > div { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; padding: 5px 0; }
.why .k { font: 500 12.5px/1.6 var(--mono); color: var(--ink-2); }
.why .sub { display: block; font-size: 13.5px; color: var(--ink-3); }
.why .dot { margin: 0 8px; color: var(--ink-3); }
.why .locked { color: var(--ink-2); }
.why .pasted { font: 13px/1.5 var(--mono); color: var(--ink-2); word-break: break-word; }
.why .blocks { display: block; }
a.cref { font: 500 13.5px var(--mono); }
.ctrl { border-top: 1px solid var(--rule); padding: 10px 0 6px; margin-top: 6px; }
.ctrl .ch { font-weight: 600; font-size: 15.5px; }
.ctrl .ch code { font-weight: 500; margin-right: 6px; }
.ctrl p.q { margin: 5px 0 6px; font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 820px; }
.ctrl .fl-note { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-3); }
.ctrl .ev { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 860px; }

/* findings */
.finds details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.finds summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.finds summary::-webkit-details-marker { display: none; }
.finds summary .fname { font-weight: 700; font-size: 17px; }
.finds summary .fname::before { content: '+'; font: 500 14px var(--mono); display: inline-block; width: 18px; color: var(--ink-3); }
.finds details[open] summary .fname::before { content: '\2212'; }
.finds summary .who { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.fbody { margin: 8px 0 4px 346px; font-size: 15.5px; }
.fbody p { margin: 0 0 8px; max-width: 780px; }
.fbody ul.items { margin: 0; padding-left: 18px; }
.fbody ul.items li { margin: 0 0 7px; line-height: 1.5; }
.fbody .iq { color: var(--ink-2); }
.fbody span.q { color: var(--ink); }

.notice { border: 2px solid var(--ink); background: var(--sheet); padding: 12px 14px; margin: 18px 0; font-size: 15.5px; }
.explain { padding: 30px 0 10px; }
.explain .form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; border-top: 2px solid var(--ink); padding-top: 18px; }
.explain .form .k { font: 500 13px var(--mono); display: block; margin-bottom: 8px; color: var(--ink-2); }
.explain p { font-size: 16px; line-height: 1.6; margin: 0; }
.explain h2 { margin: 0 0 10px; }

/* static pages */
.list a.item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; flex-wrap: wrap; }
.list .meta { font: 13px var(--mono); color: var(--ink-2); }
.idx { columns: 2; column-gap: 40px; padding: 0; list-style: none; }
.idx li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--rule-2); }
.idx li span { display: block; font-size: 14px; color: var(--ink-3); }
table.plain { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 18px; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); }
table.plain td:first-child, table.plain th:first-child { width: 34%; }
table.plain th { font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
table.plain td.code { font: 500 13.5px var(--mono); white-space: nowrap; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 14px; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); }
.pricing > div { padding: 20px; background: var(--sheet); display: flex; flex-direction: column; }
.pricing > div + div { border-left: 1px solid var(--rule); }
.pricing .price { font: 700 38px/1.1 var(--serif); margin: 6px 0 2px; }
.pricing .price small { font: 600 15px var(--serif); margin-right: 6px; vertical-align: baseline; }
.pricing .per { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.pricing ul { padding-left: 18px; margin: 0 0 18px; flex: 1; font-size: 15.5px; }
.pricing li { margin-bottom: 6px; }

footer.site { border-top: 2px solid var(--ink); margin-top: 60px; padding: 18px 28px 40px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--ink-2); }
footer.site span:first-child { font-weight: 700; color: var(--ink); }
footer.site > span:nth-last-child(-n+2) { flex-basis: 100%; line-height: 1.55; }

.modal { position: fixed; inset: 0; background: rgba(34, 31, 28, .55); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.open { display: flex; }
.modal .box { background: var(--paper); border: 2px solid var(--ink); padding: 20px; max-width: 440px; width: 100%; }
.modal .legend { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.modal input { width: 100%; font: 16px var(--serif); padding: 10px; border: 1px solid var(--ink-3); border-radius: 0; }
.ok { color: var(--ink); } .err { color: var(--rose); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 28px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary > div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--rule); }
  .summary > div:nth-child(-n+2) { border-top: 0; }
  .summary > div:nth-child(even) { padding-left: 12px !important; border-left: 1px solid var(--rule) !important; }
  .explain .form, .pricing { grid-template-columns: 1fr; }
  .pricing > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  h1 { font-size: 30px; } h1.ph { font-size: 26px; }
  .leadline { font-size: 24px; }
  header.site { padding: 10px 16px; } header.site nav { gap: 16px; font-size: 14px; } header.site nav .wide { display: none; }
  .eyebrow { letter-spacing: 0; font-size: 12px; } .lede { font-size: 16px; line-height: 1.55; }
  ol.paper li.qi { grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; row-gap: 6px; }
  .mg .toggle { display: none; } .qn .ref { word-break: normal; overflow-wrap: normal; white-space: nowrap; font-size: 10.5px; }
  ol.paper li.qi .mg { grid-column: 2; border-left: 2px solid var(--ink); padding-left: 8px; flex-direction: row; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
  .mg .mk { font-size: 12.5px; white-space: nowrap; } .mg .basis { font-size: 13px; } .mg .br, .mg .bw { display: inline; font-size: 11.5px; margin-left: 8px; }
  .flags { gap: 2px 12px; }
  .qtext { font-size: 16px; } .qn .ref { font-size: 10.5px; }
  .summary > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0 !important; padding-left: 0 !important; }
  .qn .num { font-size: 18px; }
  .why { margin-left: 0; }
  .why > div { grid-template-columns: 1fr; gap: 2px; }
  .finds summary { grid-template-columns: 1fr; gap: 4px; }
  .fbody { margin-left: 0; }
  .specimen li { grid-template-columns: 24px minmax(0, 1fr); }
  .specimen li .mk { grid-column: 2; }
  .idx { columns: 1; }
  .btn { width: 100%; justify-content: center; }
  .tool .bar .btn { width: auto; }
  .cta .btn { width: 100%; }
}
@media print { .band, .tool, #actions, footer.site, .hero .side, .no-print { display: none !important; } li.qi .why { display: block; } body { background: #fff; } }
