/* P1: the check on its sheet. The same sheet, counts and numbered findings as the home page's example report:
   first the drop zone, then the files beside the result, then the report in label and content rows. Print: A4. */
.p1-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.p1-sheet{margin:0}
/* A short head: the title, one line, and the drop zone on the first screen */
.p1-ph{grid-template-columns:minmax(0,1fr);padding:1.6rem 0 1.9rem}
.p1-ph .ph-meta{display:none}
.p1-ph:has(#p1-thanks:not([hidden])) .lead,.p1-ph:has(#p1-thanks:not([hidden])) .p1-eg{display:none}
.ph .notice.p1-thanks{padding:1.1rem 1.2rem 1.2rem}
.p1-thanks>p:first-child{margin-top:0}
.p1-ph h1{font-size:clamp(2.5rem,4.6vw,3.9rem)}
.p1-ph .lead{margin-top:.8rem}
.p1-eg{margin:.7rem 0 0;font-size:.88rem;font-weight:600}
.p1-eg a{text-decoration-color:var(--ink)}
body:has(.p1page) header.site .btn{display:none}
.p1-ptb{display:none}
.p1-f{font:400 .76rem/1.45 var(--mono);color:var(--ink2);overflow-wrap:anywhere}
.p1-fs{display:block;min-width:0}
.p1-fs>.p1-f{display:block}
.p1-over,.p1-tap{display:none}
.p1-sheet.over .p1-idle{display:none}
.p1-sheet.over .p1-over{display:inline}
@media (hover:none),(pointer:coarse){.p1-mouse{display:none}.p1-tap{display:inline}.p1-sheet.over .p1-tap{display:none}}

/* The procedure: the first row of the sheet */
.p1-head{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.1rem;padding:.85rem 1.2rem;border-bottom:1px solid var(--ink)}
.p1-head label{font:400 .72rem/1.35 var(--mono);color:var(--muted)}
.p1-head select{flex:0 1 23rem;min-width:0;font-size:1rem;line-height:1.3;padding:.6rem 2.4rem .6rem .75rem;appearance:none;-webkit-appearance:none;cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315181B' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right .85rem center/.7rem auto}
.p1-head .ref{white-space:nowrap}
.p1-head .small{margin:0 0 0 auto}

/* Before files: the drop zone, a frame on the wash like an empty drawing sheet */
.p1-drop{position:relative;display:grid;justify-items:center;align-content:center;text-align:center;min-height:22rem;padding:2.4rem 2rem 2.6rem;background:var(--wash)}
.p1-drop::before{content:"";position:absolute;inset:1.1rem;border:1.5px dashed var(--ink2);pointer-events:none;transition:inset .15s,border-color .15s}
.p1-drop>:not(.p1-sr){position:relative}
.p1-drop-art{width:13rem;height:auto;margin:0 0 1.4rem;overflow:visible}
.p1-drop-top{transition:transform .2s}
.p1-drop-h{margin:0 0 1.2rem;font-stretch:74%;font-weight:700;font-size:2.2rem;line-height:1.05;letter-spacing:0;text-wrap:balance}
.p1-drop-b{margin:0 0 1rem}
.p1-drop-p{margin:0 0 1rem;font-size:.94rem;color:var(--ink)}
.p1-drop-p span{display:inline-block}
@media (min-width:701px) and (max-height:800px){.p1-drop{padding-top:1.7rem}.p1-drop-art{width:8.5rem;margin-bottom:1rem}}
.p1-drop-s{margin:0;max-width:31rem}
.p1-drop-msg{margin:1rem 0 0;font-size:.88rem;display:flex;align-items:center;gap:.5rem}
.p1-drop-msg:empty{display:none}
.p1-drop-msg::before,.p1-key-status.bad::before{content:"";width:.6rem;height:.6rem;flex:none;background:var(--red)}
.p1-sheet.over .p1-drop{background:#fff}
.p1-sheet.over .p1-drop::before{inset:.8rem;border:2px solid var(--ink)}
.p1-sheet.over .p1-drop-top{transform:translateY(-8px)}
@media (prefers-reduced-motion:reduce){.p1-drop::before,.p1-drop-top{transition:none}}

/* After files: the files on the left (the desk), the result on the right */
.p1-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.p1-desk{background:var(--wash);border-right:1px solid var(--ink);padding:1.4rem 1.6rem 1.6rem;min-width:0}
.p1-desk-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.2rem 1rem;margin-bottom:.7rem}
.p1-desk-h h2{margin:0;font-size:1rem;letter-spacing:-.01em}
.p1-status{margin:0;font:400 .72rem/1.35 var(--mono);color:var(--muted)}
.p1-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.p1-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:1rem;align-items:center;min-height:2.75rem;border-bottom:1px solid var(--hair)}
.p1-list .p1-f{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p1-pp{font-size:.76rem;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.p1-pending .p1-f{color:var(--muted)}
.p1-pending .p1-pp{grid-column:2/-1}
/* The file list folds on phones once the result is there (p1.js); elsewhere it is always open, without a summary */
.p1-files-d>summary{display:none}
@media (max-width:760px){
  .p1-files-d>summary{display:flex;align-items:center;min-height:2.75rem;border-top:1px solid var(--line);font-size:.88rem;font-weight:600}
  .p1-files-d[open]>summary{border-bottom:0}
}
.p1-x,.p1-link{appearance:none;background:none;border:0;padding:0 .1rem;min-height:2.75rem;font:inherit;font-size:.76rem;color:var(--muted);cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:var(--line)}
.p1-link{font-size:.88rem;color:var(--ink2)}
.p1-x:hover,.p1-link:hover{color:var(--ink);text-decoration-color:currentColor}
.p1-x:disabled,.p1-link:disabled,.p1-desk .btn:disabled{opacity:.45;cursor:default}
.p1-desk-a{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1.3rem;margin-top:1.3rem}
.p1-desk-s{margin:.5rem 0 0}
.p1-sheet.over .p1-desk{outline:2px solid var(--ink);outline-offset:-.7rem;background:#fff}
.p1-result{min-width:0}
.p1-counts{grid-template-columns:repeat(5,minmax(0,1fr))}
.p1-counts dt{text-wrap:balance}

/* Reading */
.p1-reading{padding:1.6rem 1.6rem 1.8rem}
.p1-reading-h{margin:0 0 .8rem;font-stretch:88%;font-weight:600;font-size:1.3rem;letter-spacing:-.016em;font-variant-numeric:tabular-nums}
.p1-progress{display:block;width:100%;max-width:26rem;height:2px;margin:0 0 .9rem;border:0;background:var(--hair);color:var(--ink);appearance:none;-webkit-appearance:none}
.p1-progress::-webkit-progress-bar{background:var(--hair)}
.p1-progress::-webkit-progress-value{background:var(--ink);transition:width .2s}
.p1-progress::-moz-progress-bar{background:var(--ink)}
.p1-reading .small{margin:.3rem 0 0}

/* Locked: the purchase lives inside the result */
.p1-lock{padding:1.7rem 1.6rem 1.8rem}
.p1-lock-h{margin:0;font-size:1.53rem;line-height:1.15;letter-spacing:-.02em}
.p1-lock-s{margin:.7rem 0 1.4rem;font-size:.94rem;color:var(--ink2);max-width:34rem}
.p1-buy{display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.5rem;margin:0}
.p1-annual{font-size:.88rem;color:var(--ink2)}
.p1-keybox{margin-top:1.7rem;padding-top:1.3rem;border-top:1px solid var(--hair)}
.p1-key-l{display:block;font-weight:600;font-size:.94rem;margin:0 0 .5rem}
.p1-key-row{display:flex;gap:.5rem;max-width:29rem}
.p1-key-row input{flex:1;min-width:0;font-family:var(--mono);font-size:1rem;letter-spacing:.01em}
.p1-key-row .btn{flex:none;min-width:7.6rem}
.p1-key[data-state=busy] input{color:var(--muted);background:var(--wash)}
.p1-key[data-state=busy] .btn{opacity:.7;cursor:progress}
.p1-key[data-state=bad] input{border-color:var(--ink)}
.p1-key-status{margin:.6rem 0 0;font-size:.88rem;line-height:1.45;color:var(--ink2);max-width:34rem}
.p1-key-status:empty{display:none}
.p1-key-status.bad{display:flex;align-items:baseline;gap:.5rem;color:var(--ink)}
.p1-key-status.bad::before{transform:translateY(-.05em)}
.p1-key-status.ok{font-weight:600;color:var(--ink)}
.p1-keep{margin:1.1rem 0 0;max-width:34rem}
.p1-thanks .p1-keybox{margin-top:1rem;padding-top:1rem}

/* Locked: the findings as rows, the category shown, the rest as grey bars */
.p1-hidden{border-top:1px solid var(--hair)}
.p1-hidden li{flex:none}
.redact{display:block;height:.8em;background:var(--hair);margin:.45rem 0 .1rem}
.redact.r0{width:62%}.redact.r1{width:48%}.redact.r2{width:70%}.redact.r3{width:34%;height:.65em}.redact.r4{width:41%;height:.65em}

/* Unlocked: the numbered findings, as on the home page */
.p1-keyok{margin:0;padding:.65rem .95rem;border-bottom:1px solid var(--hair)}
.p1-finds .p1-f,.p1-finds .v{display:block}
.p1-finds .v{margin:.25rem 0 .1rem}
.p1-finds .ref{margin-top:.2rem}
.p1-vals>span{display:grid;grid-template-columns:fit-content(45%) minmax(0,1fr);align-items:baseline;gap:.1rem .7rem;margin:.3rem 0}
.p1-vals>span>.hl{justify-self:start}
.p1-none{margin:0;padding:1.6rem .95rem;flex:1}
.p1-acts{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;padding:1rem .95rem 1.1rem;border-top:1px solid var(--ink)}
.p1-acts .small{margin:0}

/* The report under the sheet: label and content rows */
.p1-report:empty{display:none}
.p1-report{border-top:1px solid var(--ink);padding:0 1.8rem}
.p1-report .row{padding:2.2rem 0 2.4rem}
.p1-report .row>div>.small{margin:0 0 .9rem}
.p1-report h3{margin:1.6rem 0 .3rem}
.p1-report details{border-top:1px solid var(--hair);margin-top:1.1rem}
.p1-report details+details{margin-top:0}
.p1-report details>summary{font-weight:600;font-size:.94rem;padding:.85rem 0}
.p1-items{list-style:none;margin:.4rem 0 0;padding:0}
.p1-report details>.p1-items{margin:0 0 .9rem}
.p1-items li{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:.25rem 1.8rem;align-items:baseline;padding:.65rem 0;border-top:1px solid var(--hair);font-size:.88rem}
.p1-items li>div:only-child{grid-column:1/-1}
.p1-items li>div:first-child>b,.p1-items .ref,.p1-items .p1-f,.p1-items .tag{display:block}
.p1-items li>div:first-child>b{font-weight:600}
.p1-items .tag{display:inline-flex;margin-bottom:.2rem}
.p1-items .ref,.p1-items .small{margin-top:.15rem}
.p1-r-files .p1-items li>div:first-child>.small{display:block}
.p1-w{display:flex;flex-direction:column;gap:.2rem}
.p1-w>span{display:grid;grid-template-columns:fit-content(45%) minmax(0,1fr);align-items:baseline;gap:.1rem .7rem}
.p1-w>span>.p1-f:only-child{grid-column:1/-1}
.p1-w b{font-weight:600}
.p1-r-pres .p1-items li>div>b{font-weight:400;color:var(--ink)}
.p1-draft summary>span{display:flex;flex-direction:column;gap:.15rem;font-weight:400}
.p1-draft summary strong{font-weight:600}
.p1-draft-t{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem;line-height:1.6;color:var(--ink2);background:#fff;border:1px solid var(--line);padding:1.1rem 1.3rem;max-height:30rem;overflow:auto}
.p1-draft-a{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:.8rem 0 1.2rem}
.p1-aid{margin:0;padding:1.2rem 1.8rem 1.5rem;border-top:1px solid var(--hair);font-size:.76rem;line-height:1.55;color:var(--muted)}
.p1-aid strong{font-weight:600;color:var(--ink2)}

/* The example page: the same sheet, nothing to click inside it */
.p1-sample .p1-list li{grid-template-columns:minmax(0,1fr) auto}
.p1-sample .p1-desk{padding-bottom:1.8rem}
.p1-sample .p1-finds{flex:none}
.p1-sample .p1-result{border-bottom:0}
.p1-head .p1-head-l{font:400 .72rem/1.35 var(--mono);color:var(--muted)}
.p1-proc-t{font-weight:600;font-size:1rem}
.p1-sample+.sheet-cap{margin-top:.9rem}
/* The example ends on the offer, in a yellow field like the page head */
.p1-close{margin:4.5rem 0 -6rem;padding:3.6rem 0 4rem;background:var(--yellow);box-shadow:0 0 0 100vmax var(--yellow);clip-path:inset(0 -100vmax)}
.p1-close p{margin:0;max-width:17em;font-stretch:72%;font-weight:700;font-size:clamp(1.9rem,3.6vw,3rem);line-height:1;text-wrap:balance}
.p1-close .actions{margin-top:2rem;max-width:none;font:inherit}

@media (max-width:1000px){
  .p1-grid{grid-template-columns:1fr}
  .p1-result{order:-1}
  .p1-desk{border-right:0;border-top:1px solid var(--ink)}
  .p1-report .row>h2{margin-bottom:.8rem}
}
@media (max-width:700px){
  .p1-head{padding:.8rem 1rem}
  .p1-head select{flex-basis:100%}
  .p1-head .small{margin:0}
  .p1-ph{padding:1.2rem 0 1.5rem}
  .p1-eg a{display:inline-block;padding:.7rem 0;margin:-.7rem 0}
  .p1-drop{min-height:0;padding:2.2rem 1.4rem 2.4rem}
  .p1-drop-art{width:9.5rem;margin-bottom:1rem}
  .p1-drop::before{inset:.7rem}
  .p1-drop-h{font-size:1.7rem}
  .p1-desk{padding:1.2rem 1rem 1.3rem}
  .p1-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .p1-counts div{border-left:1px solid var(--hair);border-top:1px solid var(--hair)}
  .p1-counts div:nth-child(1){grid-column:1/-1;border:0}
  .p1-counts div:nth-child(2n){border-left:0}
  .p1-lock,.p1-reading{padding:1.4rem 1rem 1.5rem}
  .p1-lock-h{font-size:1.3rem}
  .p1-buy .btn{flex:1 1 100%;text-align:center;white-space:normal}
  .p1-key-row .btn{min-width:0}
  .p1-report{padding:0 1rem}
  .p1-items li{grid-template-columns:1fr}
  .p1-close{margin:3rem 0 -4rem;padding:2.6rem 0 3rem}
  .p1-close .btn{display:block;text-align:center}
  .p1-vals>span,.p1-w>span{grid-template-columns:1fr;gap:.15rem}
  .p1-sheet .sheet-bar span{min-width:0;padding-inline:.6rem}
  .p1-aid{padding:1.1rem 1rem 1.3rem}
}

/* Print: A4, the report only, with a title block on top */
@page{size:A4;margin:14mm 14mm 16mm;
  @bottom-left{content:"Instrui. Apoio à instrução, não é uma aprovação.";font:400 7pt "IBM Plex Mono",monospace;color:#5C6670}
  @bottom-right{content:counter(page) " / " counter(pages);font:400 7pt "IBM Plex Mono",monospace;color:#5C6670}}
@media print{
  html{font-size:9.5pt}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body::before,header.site,footer.site,.ph,.sheet-bar,.p1-head,.p1-drop,.p1-desk,.p1-lock,.p1-keyok,.p1-acts,.p1-r-drafts,.p1-reading,.sheet-cap,button{display:none!important}
  main{max-width:none;padding:0}
  a{text-decoration:none}
  .p1-sheet{border:0}
  .p1-grid{display:block}
  .p1-ptb{display:flex;border:1px solid var(--ink);margin:0 0 1.4rem;break-inside:avoid}
  .p1-ptb>div{padding:.45rem .8rem .55rem;border-left:1px solid var(--ink);flex:none}
  .p1-ptb>div:nth-child(2),.p1-ptb>div:nth-child(3){flex:1 1 0;min-width:0}
  .p1-ptb>div[hidden]{display:none}
  .p1-ptb>div:first-child{border-left:0;display:flex;align-items:center;gap:.5rem;font-stretch:88%;font-weight:600;font-size:1.3rem;letter-spacing:-.02em}
  .p1-ptb svg{width:1.15rem;height:1.15rem}
  .p1-ptb small{display:block;font:400 .72rem/1.4 var(--mono);color:var(--muted)}
  .p1-ptb b{font-weight:600;font-size:.94rem}
  .p1-counts{grid-template-columns:repeat(5,minmax(0,1fr))!important;border:1px solid var(--ink);break-inside:avoid}
  .p1-counts div{border:0!important;border-left:1px solid var(--hair)!important;grid-column:auto!important}
  .p1-counts div:first-child{border-left:0!important}
  .finds li{flex:none;padding:.7rem 0;break-inside:avoid}
  .p1-report{border-top:0;padding:0}
  .p1-report .row{display:block;padding:1.3rem 0 .4rem;border-top:1px solid var(--ink)}
  .p1-report .row>h2{position:static;margin:0 0 .6rem;font-size:1.18rem;break-after:avoid}
  .p1-report details{border-top:0;margin-top:.6rem}
  .p1-report details>summary{padding:.3rem 0;break-after:avoid}
  .p1-report summary::after{display:none}
  .p1-items li{break-inside:avoid;grid-template-columns:minmax(0,4fr) minmax(0,8fr)}
  .p1-f{white-space:nowrap;overflow-wrap:normal}
  .p1-files-d>summary{display:none!important}
  .p1-aid{padding:1.2rem 0 0;break-inside:avoid}
}
