/* FiduLock User Manual. Loaded after ../css/style.css, so colours, fonts, header, footer, buttons and the
   light/dark switch are the website's own. This file only lays out the reading pages. */

body{font-size:16px; line-height:1.7;}
html{scroll-behavior:smooth; scroll-padding-top:24px;}
a{color:var(--accent); text-underline-offset:3px;}
b,strong{font-weight:600;}

.manual-body .layout{display:grid; grid-template-columns:270px minmax(0,1fr); gap:44px; padding:34px 40px 56px; align-items:start;}
.manual-body .wrap{padding:34px 40px 56px;}

/* chapter list */
.toc{
  position:sticky; top:20px; max-height:calc(100vh - 40px); overflow:auto; padding:18px 12px 14px;
  background:var(--panel); border:1px solid var(--line); border-radius:10px;
}
.toc h2{margin:2px 10px 12px; padding:0; border:0; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint);}
.toc h2::before{display:none;}
.toc ol{list-style:none; margin:0; padding:0;}
.toc li{margin:0; padding:0;}
.toc li a{display:block; padding:7px 10px; margin:1px 0; border-radius:6px; color:var(--ink-soft); text-decoration:none; font-size:13px; font-weight:500; line-height:1.4;}
.toc li a:hover{background:var(--accent-soft); color:var(--ink);}
.toc li a.active{background:var(--accent-soft); color:var(--accent); font-weight:600;}
.toc li.sub{margin-left:12px; font-size:.94em;}
.toc .search{
  width:100%; margin:0 0 12px; padding:8px 10px; border:1px solid var(--line); border-radius:6px;
  background:var(--paper); color:var(--ink); font:400 13px 'IBM Plex Sans',sans-serif;
}
.toc .search::placeholder{color:var(--ink-faint);}

/* reading column */
main{min-width:0;}
main > *{max-width:760px;}
main > figure, main > table, main > .cards, main > section{max-width:none;}
.crumbs{font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.02em; color:var(--ink-faint); margin:0 0 22px;}
.crumbs a{color:var(--accent); text-decoration:none;}
.crumbs a:hover{text-decoration:underline;}
.crumbs .sep{margin:0 .5em; opacity:.6;}
h1{font-size:38px; line-height:1.12; letter-spacing:-.022em; margin:0 0 14px;}
.lead{font-size:19px; line-height:1.6; color:var(--ink-soft); margin:0 0 1.2rem; max-width:680px;}
.meta{display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.02em; color:var(--ink-soft); background:var(--paper); border:1px solid var(--line-soft); border-radius:8px; padding:6px 14px; margin:0 0 1.8rem; line-height:1.5;}
h2{font-size:26px; line-height:1.25; letter-spacing:-.015em; margin:3.2rem 0 .9rem; padding-top:0; border:0; position:relative;}
h2::before{content:""; display:block; width:36px; height:3px; border-radius:2px; background:var(--accent); margin-bottom:16px; position:static;}
h3{font-size:18px; line-height:1.3; letter-spacing:-.01em; margin:2rem 0 .5rem;}
p{margin:0 0 1.1rem;}
ul,ol{padding-left:1.4rem; margin:0 0 1.2rem;}
li{margin:.35rem 0; padding-left:.2rem;}
li::marker{color:var(--accent);}

/* callouts */
.note,.warn,.ok{
  position:relative; padding:14px 18px 14px 20px; border-radius:8px; margin:1.5rem 0; font-size:15px; line-height:1.65;
  background:var(--accent-soft); border:1px solid var(--line-soft); border-left:4px solid var(--accent);
}
.ok{background:color-mix(in srgb,var(--certified) 11%,var(--panel)); border-left-color:var(--certified);}
.warn{background:color-mix(in srgb,var(--warning) 12%,var(--panel)); border-left-color:var(--warning);}
.note b:first-child,.warn b:first-child,.ok b:first-child{
  display:block; margin-bottom:3px; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--accent);
}
.ok b:first-child{color:var(--certified);}
.warn b:first-child{color:var(--warning);}

/* tables */
table{width:100%; border-collapse:separate; border-spacing:0; margin:1.5rem 0; font-size:14px; line-height:1.55; border:1px solid var(--line); border-radius:8px; overflow:hidden;}
th{background:var(--paper); color:var(--ink-soft); font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; text-align:left; padding:11px 14px; border-bottom:1px solid var(--line);}
td{padding:11px 14px; border-top:1px solid var(--line-soft); vertical-align:top; background:var(--panel);}
tbody tr:first-child td{border-top:0;}
tbody tr:hover td{background:var(--paper);}
td:first-child{font-weight:500;}
code,kbd{font:500 .86em 'IBM Plex Mono',ui-monospace,Consolas,monospace; background:var(--paper); color:var(--accent); border:1px solid var(--line-soft); padding:1px 6px; border-radius:4px;}
:not(pre) > code{overflow-wrap:anywhere;}
pre{margin:1.4rem 0; padding:14px 18px; border-radius:8px; background:var(--paper); color:var(--ink); border:1px solid var(--line-soft); overflow-x:auto; font:12.5px/1.6 'IBM Plex Mono',ui-monospace,Consolas,monospace; max-width:none;}
pre code{background:none; color:inherit; border:0; padding:0; font:inherit; border-radius:0;}

/* numbered steps */
ol.steps{counter-reset:s; list-style:none; padding-left:0; margin:1.4rem 0;}
ol.steps > li{counter-increment:s; position:relative; padding:2px 0 2px 46px; margin:1.1rem 0;}
ol.steps > li::before{content:counter(s); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; background:var(--accent); color:var(--panel); font-family:'Manrope',sans-serif; font-weight:800; font-size:14px; display:grid; place-items:center;}

/* screen prints */
figure.shot{margin:2rem 0 2.2rem; max-width:none;}
figure.shot .frame{position:relative; border-radius:10px; overflow:hidden; background:#fff; cursor:zoom-in; border:1px solid var(--line); box-shadow:var(--shadow);}
figure.shot img{display:block; width:100%; height:auto;}
figcaption{font-size:13.5px; line-height:1.55; color:var(--ink-soft); margin:10px 4px 0;}
figcaption b{color:var(--ink);}
.pin{position:absolute; transform:translate(-50%,-50%); width:28px; height:28px; border-radius:50%; background:var(--tag); color:#fff; font:700 14px/24px 'IBM Plex Sans',sans-serif; text-align:center; border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.35);}
ol.key{list-style:none; counter-reset:k; margin:14px 4px 0; padding:0; font-size:14.5px; color:var(--ink);}
ol.key li{counter-increment:k; position:relative; padding:0 0 0 36px; margin:.5rem 0;}
ol.key li::before{content:counter(k); position:absolute; left:0; top:1px; width:23px; height:23px; border-radius:50%; background:var(--tag); color:#fff; font-weight:700; font-size:12px; display:grid; place-items:center;}
figure.shot + ol.key{margin-top:-24px; margin-bottom:2.2rem;}

/* index page */
.manual-body .hero{display:block; grid-template-columns:none; padding:46px 40px 8px;}
.manual-body .hero > div{max-width:1100px;}
.manual-body .hero .eyebrow{font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); margin:0 0 14px; display:block; background:none; padding:0;}
.manual-body .hero h1{font-size:40px; margin-bottom:14px;}
.manual-body .hero p{font-size:15px; line-height:1.6; color:var(--ink-soft); max-width:62ch; margin:0;}
.wrap h2{margin:2.2rem 0 .9rem;}
.wrap h2::before{display:none;}
.cards{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; margin:1.4rem 0;}
.card{display:block; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:20px 22px; text-decoration:none; color:var(--ink); transition:border-color .15s, box-shadow .15s;}
a.card:hover{border-color:var(--accent); box-shadow:var(--shadow);}
.card .n{font-family:'IBM Plex Mono',monospace; font-size:10.5px; font-weight:600; color:var(--accent); text-transform:uppercase; letter-spacing:.08em;}
.card h3{margin:6px 0 8px; font-size:17px;}
.card p{margin:0; font-size:13.5px; line-height:1.55; color:var(--ink-soft);}
.card.soon{opacity:.62;}

.pager{display:flex; justify-content:space-between; gap:16px; margin-top:3.5rem; padding-top:1.2rem; border-top:1px solid var(--line-soft); font-size:14px; font-weight:600;}
.pager a{color:var(--accent); text-decoration:none;}
.pager a:hover{text-decoration:underline;}
.lightbox{position:fixed; inset:0; background:rgba(10,12,14,.88); display:none; align-items:center; justify-content:center; z-index:50; padding:24px; cursor:zoom-out;}
.lightbox.on{display:flex;}
.lightbox img{max-width:100%; max-height:100%; border-radius:8px; box-shadow:0 10px 40px rgba(0,0,0,.5);}

/* function reference (volume 7) */
section.fn{margin:2rem 0; padding:0 0 .4rem; border-top:1px solid var(--line-soft);}
section.fn > h3{margin-top:1.5rem;}
section.fn h4{color:var(--accent); font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; margin:1.2rem 0 .35rem;}
.fnmeta{font-size:13.5px; line-height:1.6; color:var(--ink-soft); background:var(--paper); border:1px solid var(--line-soft); border-radius:8px; padding:10px 14px;}
.fnmeta b{color:var(--ink);}
.verdict{display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:10.5px; font-weight:600; letter-spacing:.04em; border-radius:999px; padding:2px 10px;}
.verdict.covered{background:color-mix(in srgb,var(--certified) 14%,var(--panel)); color:var(--certified);}
.verdict.thin{background:color-mix(in srgb,var(--warning) 14%,var(--panel)); color:var(--warning);}
.verdict.missing{background:color-mix(in srgb,var(--revoked) 14%,var(--panel)); color:var(--revoked);}

/* the manual's footer note sits under the site footer's rule */
@media (max-width:1000px){
  .manual-body .layout{grid-template-columns:1fr; padding:22px 20px 40px; gap:20px;}
  .manual-body .wrap{padding:22px 20px 40px;}
  .manual-body .hero{padding:32px 20px 4px;}
  .toc{position:static; max-height:none;}
  h1,.manual-body .hero h1{font-size:30px;}
  table{display:block; overflow-x:auto;}
}
@media print{
  .zone.header,.zone.footer,.toc,.pager,.lightbox,.crumbs{display:none !important;}
  body,.site{background:#fff; color:#000;}
  body{font-size:11pt;}
  .manual-body .layout{display:block; padding:0;}
  h2{break-before:page;}
  h2:first-of-type{break-before:auto;}
  figure.shot,table,.note,.warn,.ok{break-inside:avoid;}
  section.fn{break-inside:avoid-page;}
}
