/* Folio — "try it right here": an HTML model of the Contents index and the tools, on sample PDFs. Loaded only on the Folio page. */
.fo {
  --fo-desk: #faf8f4; --fo-well: #f1ede6; --fo-card: #fff; --fo-paper: #fff; --fo-text: #1e1b21; --fo-2: #6a6470; --fo-3: #9d97a1;
  --fo-rule: rgba(30,27,33,.10); --fo-hover: rgba(30,27,33,.05); --fo-pen: #e11d48; --fo-wash: rgba(225,29,72,.08); --fo-good: #2f7d57;
  --fo-hand: "Bradley Hand", "Noteworthy", "Segoe Print", "Comic Sans MS", cursive;
  --fo-script: "Snell Roundhand", "Savoye LET", "Apple Chancery", "Brush Script MT", cursive;
  height: 660px; display: grid; grid-template-columns: 230px 1fr; background: var(--fo-desk); color: var(--fo-text); font-family: var(--font); text-align: left;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fo {
  --fo-desk: #18161a; --fo-well: #131115; --fo-card: #232027; --fo-paper: #f3f0ea; --fo-text: #eeeae4; --fo-2: #a59fa9; --fo-3: #716b75;
  --fo-rule: rgba(255,255,255,.09); --fo-hover: rgba(255,255,255,.06); --fo-pen: #fb5d7e; --fo-wash: rgba(251,93,126,.14); --fo-good: #6cc79a; } }
:root[data-theme="dark"] .fo {
  --fo-desk: #18161a; --fo-well: #131115; --fo-card: #232027; --fo-paper: #f3f0ea; --fo-text: #eeeae4; --fo-2: #a59fa9; --fo-3: #716b75;
  --fo-rule: rgba(255,255,255,.09); --fo-hover: rgba(255,255,255,.06); --fo-pen: #fb5d7e; --fo-wash: rgba(251,93,126,.14); --fo-good: #6cc79a; }
.fo button, .fo select, .fo input { font: inherit; color: inherit; }
.fo [hidden] { display: none !important; }
.fo-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fo-3); letter-spacing: .02em; }
.fo .center { text-align: center; }

/* Sidebar */
.fo-side { background: var(--fo-well); border-right: 1px solid var(--fo-rule); display: flex; flex-direction: column; min-height: 0; }
.fo-tl { height: 48px; display: flex; align-items: center; padding-left: 18px; flex: none; }
.fo-nav { flex: 1; overflow-y: auto; padding: 0 8px; scrollbar-width: none; }
.fo-nv { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; }
.fo-nv:hover { background: var(--fo-hover); }
.fo-nv[aria-current="true"] { background: color-mix(in srgb, var(--fo-text) 9%, transparent); }
.fo-nv > span > b, .fo-nv.tools > b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-nv > span > small, .fo-nv.tools > small { font-family: var(--font-mono); font-size: 10.5px; color: var(--fo-3); }
.fo-nv > span:last-child { min-width: 0; }
.fo-nv.tools > b { flex: 1; font-weight: 600; }
.fo-nv.tools .ic { width: 26px; text-align: center; color: var(--fo-2); }
.fo-th { width: 26px; height: 32px; flex: none; display: grid; place-items: center; overflow: hidden; }
.fo-th .fo-pg { box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12); }
.fo-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fo-3); margin: 16px 8px 4px; }
.fo-open { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--fo-rule); }
.fo-open button { border: 0; background: none; font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.fo-open button:hover { background: var(--fo-hover); }
.fo-open small { font-size: 11px; color: var(--fo-3); }

/* Main */
.fo-main { overflow-y: auto; min-height: 0; outline: none; position: relative; }
.fo-h1 { font-family: var(--font-display); font-size: 30px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin: 2px 0 6px; }
.fo-h1.ul { display: inline-block; background: no-repeat left bottom / 100% 6px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4.5C40 1 100 1 149 3' fill='none' stroke='%23e11d48' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); padding-bottom: 6px; }
.fo-home { padding: 36px 48px 28px; }
.fo-ctop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.fo-lede { margin: 6px 0 0; font-size: 13.5px; color: var(--fo-2); }
.fo-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.fo-grp { display: grid; grid-template-columns: 36px 1fr; margin-bottom: 26px; padding: 0; }
.fo-grp .num { font-family: var(--font-serif); font-size: 13px; color: var(--fo-pen); padding-top: 4px; letter-spacing: .04em; }
.fo-grp .gname { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.fo-grp small { display: block; font-size: 12px; color: var(--fo-2); margin-bottom: 10px; }
.fo-entry { display: flex; align-items: baseline; gap: 6px; width: 100%; padding: 6px 6px; margin: 0 -6px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-size: 14px; font-weight: 500; text-align: left; box-sizing: content-box; }
.fo-entry .dots { flex: 1; border-bottom: 1.5px dotted var(--fo-3); opacity: .6; transform: translateY(-3px); min-width: 12px; }
.fo-entry code { font-family: var(--font-mono); font-size: 11.5px; color: var(--fo-3); white-space: pre; }
.fo-entry:hover { background: var(--fo-wash); }
.fo-entry:hover code { color: var(--fo-text); }
.fo-drop { font-size: 12.5px; color: var(--fo-3); margin: 6px 0 0 36px; }

/* Tool screen */
.fo-tool { padding: 22px 24px 18px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 100%; box-sizing: border-box; }
.fo-hd { display: flex; align-items: flex-end; justify-content: space-between; }
.fo-crumb { border: 0; background: none; padding: 2px 0; font-size: 12px; font-weight: 600; color: var(--fo-2); cursor: pointer; }
.fo-crumb:hover { color: var(--fo-text); }
.fo-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--fo-pen); margin-left: 10px; letter-spacing: .06em; }
.fo-belt { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.fo-belt > button, .fo-conv > button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 5px 9px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--fo-text); position: relative; }
.fo-belt > button span { color: var(--fo-2); font-size: 12px; }
.fo-belt > button:hover, .fo-conv > button:hover { background: var(--fo-hover); }
.fo-belt > button[aria-current="true"] { font-weight: 600; }
.fo-belt > button[aria-current="true"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -2px; height: 5px; background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 5' preserveAspectRatio='none'%3E%3Cpath d='M1 3.5C25 1 55 1 79 2.5' fill='none' stroke='%23e11d48' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fo-conv { position: relative; }
.fo-conv > button { font-weight: 600; }
.fo-menu { position: absolute; z-index: 10; top: 100%; left: 0; min-width: 210px; padding: 5px; border-radius: 10px; background: var(--fo-card); box-shadow: 0 0 0 1px var(--fo-rule), 0 12px 30px rgba(0,0,0,.18); display: grid; }
.fo-menu button { display: flex; justify-content: space-between; gap: 14px; border: 0; background: none; padding: 6px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; text-align: left; }
.fo-menu button:hover, .fo-menu button:focus-visible { background: var(--fo-pen); color: #fff; }
.fo-menu code { font-family: var(--font-mono); font-size: 11px; opacity: .7; }
.fo-work { flex: 1; display: grid; grid-template-columns: 1fr 272px; gap: 18px; min-height: 0; }
.fo-canvas { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; position: relative; padding: 6px 0; }
.fo-insp { background: var(--fo-card); border-radius: 12px; box-shadow: 0 0 0 1px var(--fo-rule), 0 4px 14px rgba(0,0,0,.05); display: flex; flex-direction: column; min-height: 0; align-self: stretch; }
.fo-opts { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; font-size: 13px; }
.fo-opts hr { border: 0; border-top: 1px solid var(--fo-rule); margin: 4px 0; width: 100%; }
.fo-save { border-top: 1px solid var(--fo-rule); padding: 12px 16px 14px; display: grid; gap: 3px; }
.fo-dest { font-size: 12px; font-weight: 600; }
.fo-save small { font-size: 11px; color: var(--fo-3); margin-bottom: 8px; }
.fo-run { height: 36px; border: 0; border-radius: 8px; cursor: pointer; color: #fff !important; font-weight: 650; font-size: 13.5px; background: linear-gradient(#f43f5e, #be123c); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 6px rgba(190,18,60,.3); display: flex; align-items: center; justify-content: center; gap: 8px; }
.fo-run:hover:not(:disabled) { filter: brightness(1.06); }
.fo-run:disabled { opacity: .45; cursor: default; }
.fo-prog { width: 60px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.fo-prog i { display: block; height: 100%; width: 40%; background: #fff; animation: fo-prog 1s ease-in-out infinite; }
@keyframes fo-prog { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.fo-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--fo-3); }
.fo-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fo-notes li { display: flex; gap: 8px; font-size: 13px; }
.fo-notes li::before { content: "–"; color: var(--fo-pen); }
.fo-hint { margin: 0; font-size: 11.5px; color: var(--fo-3); line-height: 1.45; }
.fo-hint.dark { color: var(--fo-2); }
.fo-hint code { font-size: 11px; color: var(--fo-text); }
.fo-err { margin: 0; font-size: 12px; color: var(--fo-pen); font-weight: 600; }
.fo-field { display: grid; gap: 5px; }
.fo-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 7px; background: var(--fo-hover); box-shadow: inset 0 0 0 1px var(--fo-rule); }
.fo-seg button { border: 0; background: none; padding: 4px 10px; border-radius: 5px; font-size: 12.5px; cursor: pointer; color: var(--fo-2); white-space: nowrap; }
.fo-seg button[aria-checked="true"] { background: var(--fo-card); color: var(--fo-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 0 0 .5px var(--fo-rule); }
.fo select, .fo-input { height: 28px; border: 0; border-radius: 6px; padding: 0 8px; background: var(--fo-card); box-shadow: inset 0 0 0 1px var(--fo-rule), 0 1px 1px rgba(0,0,0,.04); font-size: 12.5px; min-width: 0; }
.fo-input { width: 100%; box-sizing: border-box; font-family: var(--font-mono); }
.fo-input:focus, .fo select:focus { outline: 2px solid color-mix(in srgb, var(--fo-pen) 50%, transparent); outline-offset: 0; }
.fo-tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 500; }
.fo-tog button { width: 32px; height: 19px; padding: 0; border: 0; border-radius: 10px; background: #c9c5cc; position: relative; cursor: pointer; flex: none; }
.fo-tog button::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.fo-tog button[aria-checked="true"] { background: var(--fo-pen); }
.fo-tog button[aria-checked="true"]::after { transform: translateX(13px); }
.fo-row { display: flex; align-items: center; gap: 10px; }
.fo-row > small { width: 56px; font-size: 11.5px; color: var(--fo-2); flex: none; }
.fo-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--fo-pen); }
.fo-row select { flex: 1; }
.fo-dots { display: inline-flex; gap: 7px; margin-left: auto; }
.fo-dots button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.fo-dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fo-card), 0 0 0 3.5px var(--c); }
.fo-step { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.fo-step span { margin-right: 6px; }
.fo-step button { width: 24px; height: 22px; border: 0; border-radius: 5px; background: var(--fo-hover); box-shadow: inset 0 0 0 1px var(--fo-rule); cursor: pointer; line-height: 1; }
.fo-keys { display: grid; grid-template-columns: 54px 1fr; gap: 4px 8px; margin: 0; font-size: 12px; }
.fo-keys dt { font-weight: 600; } .fo-keys dd { margin: 0; color: var(--fo-2); }
.fo-qh { display: flex; align-items: baseline; justify-content: space-between; }
.fo-qh b { font-size: 17px; }
.fo-slider { display: flex; align-items: center; gap: 8px; }
.fo-slider small { font-size: 11px; color: var(--fo-3); }
.fo-slider input { flex: 1; min-width: 0; accent-color: var(--fo-pen); }
.fo-btn { border: 0; border-radius: 7px; padding: 5px 12px; background: var(--fo-card); box-shadow: 0 0 0 1px var(--fo-rule), 0 1px 2px rgba(0,0,0,.06); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fo-btn:hover { background: var(--fo-hover); }
.fo-btn.sm { justify-self: start; align-self: flex-start; padding: 4px 10px; font-size: 12px; }
.fo-btn.wide { width: 100%; padding: 7px 12px; }
.fo-btn.plain { box-shadow: none; background: none; }
.fo-pad { background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--fo-rule), 0 2px 6px rgba(0,0,0,.06); touch-action: none; }
.fo-pad svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.fo-pad .base { stroke: #d4d0d8; stroke-width: 1; }
.fo-pad text { fill: #e11d48; font-size: 18px; }
.fo-pad .ink { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.fo-typed { min-height: 54px; display: grid; place-items: center; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--fo-rule); font-size: 30px; overflow: hidden; white-space: nowrap; }
.fo .script { font-family: var(--fo-script); font-style: italic; }
.fo .script.f1 { font-family: "Bradley Hand", var(--fo-hand); font-style: normal; }
.fo .script.f2 { font-family: "Noteworthy", "Marker Felt", var(--fo-hand); font-style: normal; }

/* Pen marks */
.fo-pen { font-family: var(--fo-hand); font-style: italic; color: var(--fo-pen); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fo-pen.top { align-self: flex-start; font-size: 15px; transform: rotate(-2deg); }
.fo-pen.err { font-style: normal; }
.fo-pen.pct { margin-left: 10px; font-size: 18px; display: inline-block; transform: rotate(-6deg) translateY(-10px); }

/* Canvases */
.fo-pair { display: flex; align-items: center; gap: 24px; justify-content: center; }
.fo-pair figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.fo-arrow { width: 70px; height: 30px; fill: none; stroke: var(--fo-pen); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.fo-stackp { position: relative; display: block; }
.fo-stackp::before, .fo-stackp::after { content: ""; position: absolute; inset: 0; background: var(--fo-paper); box-shadow: 0 1px 3px rgba(0,0,0,.18); transform: translate(6px, -6px) rotate(2deg); z-index: -1; }
.fo-stackp::after { transform: translate(11px, -10px) rotate(3.5deg); z-index: -2; }
.fo-out { position: relative; display: block; }
.fo-out .badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: #9f1239; color: #fff; font-family: var(--font-mono); font-size: 11px; }
.fo-sheet { display: grid; grid-template-columns: repeat(4, 1fr); width: 150px; height: 194px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.fo-sheet i { border: .5px solid #d7e6dc; } .fo-sheet i:nth-child(-n+4) { background: #e8f3ec; }
.fo-txt { display: block; width: 150px; height: 194px; padding: 12px; box-sizing: border-box; background: #fff; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,.15); font-family: var(--font-mono); font-size: 8.5px; line-height: 1.5; white-space: pre-wrap; overflow: hidden; }
.fo-sum { margin: 4px 0 0; font-family: var(--font-mono); font-size: 16px; font-weight: 600; text-align: center; }
.fo-sum .q { font-family: var(--font); font-size: 12.5px; font-weight: 400; color: var(--fo-3); }
.fo-papers { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.fo-paper { position: relative; display: grid; justify-items: center; gap: 4px; width: 132px; padding: 10px 6px 8px; border-radius: 10px; cursor: grab; touch-action: none; text-align: center; }
.fo-paper:hover { background: var(--fo-hover); }
.fo-paper > b { font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.fo-paper .n { position: absolute; top: 2px; left: 6px; font-family: var(--fo-hand); color: var(--fo-pen); font-size: 15px; font-weight: 700; }
.fo-grid { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-content: flex-start; width: 100%; }
.fo-cell { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; width: 118px; min-height: 172px; padding-top: 4px; border-radius: 10px; }
.fo-grid.split .fo-cell { width: 104px; min-height: 150px; padding-top: 18px; }
.fo-grid.split .part { position: absolute; top: -2px; left: 10px; font-size: 13px; }
.fo-grid .cut { position: absolute; right: -14px; top: 0; bottom: 18px; width: 2px; border-right: 1.5px dashed var(--fo-pen); color: var(--fo-pen); font-size: 13px; line-height: 0; }
.fo-grid .cut::before { content: "✂︎"; position: absolute; top: 46%; left: -6px; background: var(--fo-desk); padding: 6px 0; }
.fo-grid.arr { justify-content: flex-start; }
.fo-grid.arr .fo-cell { cursor: grab; touch-action: none; }
.fo-grid.arr .fo-cell:hover { background: var(--fo-hover); }
.fo-cell .cap { display: flex; gap: 8px; align-items: baseline; min-height: 18px; }
.fo-cell.out .fo-pg { opacity: .45; filter: grayscale(1); }
.fo-cell .strike { position: absolute; left: 50%; top: 4px; width: 104px; height: 134px; transform: translateX(-50%); fill: none; stroke: var(--fo-pen); stroke-width: 2.4; stroke-linecap: round; }
.fo-cell .ring { position: absolute; left: 50%; top: 4px; width: 150px; height: 150px; transform: translate(-50%, -10px); fill: none; stroke: var(--fo-pen); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; overflow: visible; }
.fo-cell.drop { box-shadow: inset 3px 0 0 var(--fo-pen); }
.fo-cell.lift, .fo-paper.lift { opacity: .35; }
.fo-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -40%) rotate(-3deg); opacity: .92; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.fo-bar { display: flex; align-items: center; gap: 2px; width: 100%; padding: 6px 10px; border-radius: 10px; background: var(--fo-card); box-shadow: 0 0 0 1px var(--fo-rule); box-sizing: border-box; }
.fo-bar .sp { flex: 1; }
.fo-bar i { width: 1px; height: 18px; background: var(--fo-rule); margin: 0 6px; }
.fo-bar button { width: 30px; height: 28px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: 15px; }
.fo-bar button:hover:not(:disabled) { background: var(--fo-hover); }
.fo-bar button:disabled { opacity: .35; cursor: default; }
.fo-canvas:has(.fo-bar) { justify-content: flex-start; }
.fo-viewer { display: grid; justify-items: center; gap: 10px; }
.fo-pnav { display: flex; align-items: center; gap: 10px; }
.fo-pnav button { border: 0; background: none; font-size: 18px; width: 28px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--fo-2); }
.fo-pnav button:hover { background: var(--fo-hover); }
.fo-lockcard { width: 300px; height: 388px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; border-radius: 4px; background: var(--fo-card); box-shadow: 0 0 0 1px var(--fo-rule); font-size: 28px; }
.fo-lockcard b { font-size: 14px; } .fo-lockcard small { font-size: 12px; color: var(--fo-2); margin-bottom: 6px; }
.fo-blur { position: relative; display: block; }
.fo-blur .fo-pg { filter: blur(3px); opacity: .6; }
.fo-blur .lock, .fo-pg .seal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 40px; }
.fo-pg .seal { font-size: 4.4em; left: auto; top: auto; right: 6em; bottom: 6em; transform: none; color: var(--fo-pen); }
.fo-done { display: grid; justify-items: center; gap: 10px; }
.fo-res { position: relative; display: block; }
.fo-check { position: absolute; right: -26px; top: -24px; width: 64px; height: 64px; fill: none; stroke: var(--fo-pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fo-check path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: fo-draw .6s var(--ease) forwards; }
.fo-check .t { stroke-width: 3; animation-delay: .35s; }
@keyframes fo-draw { to { stroke-dashoffset: 0; } }
.fo-files { list-style: none; margin: 0; padding: 0; width: min(420px, 100%); display: grid; gap: 2px; }
.fo-files li { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; font-size: 13px; }
.fo-files li:hover { background: var(--fo-hover); }
.fo-files .ic { color: var(--fo-3); }
.fo-files .fo-meta { margin-left: auto; }
.fo-acts { display: flex; gap: 8px; }

/* The pages: 1em = 1% of the page width */
.fo-pg { position: relative; display: block; flex: none; box-sizing: border-box; padding: 9em 9em 0; background: var(--fo-paper); color: #1e1b21; overflow: hidden; text-align: left; line-height: 1;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.14); transition: transform .3s var(--ease); }
.fo-pg.full { padding: 0; }
.fo-pg .pd { display: block; width: 9em; height: 1em; background: #dc1f47; margin-bottom: 3em; }
.fo-pg .pt { display: block; font-size: 5.4em; font-weight: 700; letter-spacing: -.01em; margin-bottom: .7em; white-space: nowrap; }
.fo-pg .pt.sm { font-size: 4em; margin-top: 4em; }
.fo-pg .l { display: block; height: 1em; background: #d9d6dd; margin: 0 0 1.7em; border-radius: .3em; }
.fo-pg .ft { position: absolute; left: 9em; bottom: 5em; font-size: 1.7em; color: #9a959f; white-space: nowrap; }
.fo-pg .bars { display: flex; align-items: flex-end; justify-content: center; gap: 6em; height: 46em; margin: 4em 0 8em; }
.fo-pg .bars i { width: 11em; background: #f1b3bf; border-radius: .6em .6em 0 0; }
.fo-pg .bars i.hi { background: #dc1f47; }
.fo-pg .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3em; margin: 2em 0 7em; }
.fo-pg .stats i { font-style: normal; font-weight: 800; font-size: 4.2em; padding: .9em .5em 1.6em; border-radius: .3em; }
.fo-pg .stats .r { background: #fde6ea; color: #dc1f47; } .fo-pg .stats .o { background: #fdf0de; color: #e08a1a; } .fo-pg .stats .b { background: #e3ecfb; color: #2f6fe4; }
.fo-pg .side { position: absolute; left: 50%; top: 50%; width: 96em; height: 64em; transform: translate(-50%, -50%) rotate(-90deg); display: grid; grid-template-rows: 1fr auto; gap: 2em; }
.fo-pg .side .cap { font-size: 2.6em; color: #6a6470; }
.fo-pg .land { position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(hsl(var(--h) 70% 72%), hsl(calc(var(--h) + 20) 55% 86%) 65%); }
.fo-pg.full .land { position: absolute; inset: 0; }
.fo-pg .land .sun { position: absolute; width: 16%; aspect-ratio: 1; right: 22%; top: 18%; border-radius: 50%; background: rgba(255,255,255,.85); }
.fo-pg .land .m1, .fo-pg .land .m2 { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: #5f9e84; clip-path: polygon(0 40%, 18% 20%, 36% 45%, 58% 10%, 78% 40%, 100% 25%, 100% 100%, 0 100%); }
.fo-pg .land .m2 { height: 38%; background: #2f7560; clip-path: polygon(0 30%, 25% 55%, 48% 25%, 70% 50%, 100% 20%, 100% 100%, 0 100%); }
.fo-pg .cov { position: absolute; inset: 0; padding: 12em 10em; display: flex; flex-direction: column; justify-content: center; gap: 2em; color: #fff; background: linear-gradient(160deg, #ef3b5c, #a3122f); overflow: hidden; }
.fo-pg .cov .o { position: absolute; right: -10em; top: -8em; width: 52em; height: 52em; border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: 0 0 0 7em rgba(255,255,255,.06); }
.fo-pg .cov b { font-size: 9em; line-height: 1.05; font-weight: 800; }
.fo-pg .cov small { font-size: 2.4em; opacity: .85; }
.fo-pg .cov small:first-of-type { position: absolute; top: 10em; left: 10em; font-size: 2em; }
.fo-pg .tbl { display: grid; gap: .6em; margin: 2em 0 7em; }
.fo-pg .tbl i { height: 4.4em; background: #f4f2f6; border-radius: .3em; }
.fo-pg .tbl i:first-child { background: #fde6ea; }
.fo-pg .lc { display: block; width: 100%; height: 34em; margin: 3em 0 7em; fill: none; stroke: #dc1f47; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fo-pg .ps { display: block; font-size: 2.6em; margin: 1.6em 0 .9em; }
.fo-pg .sigs { position: absolute; left: 9em; right: 9em; bottom: 17em; display: flex; justify-content: space-between; }
.fo-pg .sigs > span { width: 36em; border-top: .25em solid #bdb8c2; padding-top: 1em; position: relative; }
.fo-pg .sigs em { position: absolute; bottom: 100%; left: 0; font-size: 5.6em; color: #24306e; white-space: nowrap; }
.fo-pg .sigs small { font-size: 1.9em; color: #6a6470; white-space: nowrap; }
.fo-pg .script.sm { display: block; font-size: 6em; margin-top: .4em; color: #24306e; }
.fo-pg .bro i { display: block; height: 52em; margin: -9em -9em 6em; background: linear-gradient(140deg, #2e2a3a, #6c4cd9 60%, #f09ab0); }
.fo-pg .ul { display: grid; gap: 2.2em; margin-top: 3em; }
.fo-pg .ul i { display: block; height: 1em; width: 70%; background: #d9d6dd; margin-left: 4em; position: relative; }
.fo-pg .ul i::before { content: ""; position: absolute; left: -4em; top: -.4em; width: 1.8em; height: 1.8em; border-radius: 50%; background: #dc1f47; }
.fo-pg .wm { position: absolute; left: 50%; top: 50%; white-space: nowrap; font-weight: 800; letter-spacing: .04em; pointer-events: none; }
.fo-pg .num { position: absolute; font-size: 2.2em; font-weight: 600; color: #1e1b21; white-space: nowrap; }
.fo-pg .num.bc { bottom: 2.4em; left: 50%; transform: translateX(-50%); } .fo-pg .num.br { bottom: 2.4em; right: 4em; } .fo-pg .num.tr { top: 2.4em; right: 4em; } .fo-pg .num.bl { bottom: 2.4em; left: 4em; }
.fo-sig { position: absolute; width: 34em; height: 12.5em; cursor: grab; touch-action: none; outline: none; }
.fo-sig svg { width: 100%; height: 100%; display: block; }
.fo-sig > .script { display: block; font-size: 6.4em; white-space: nowrap; line-height: 1.6; }
.fo-sig:not(.fixed)::before { content: ""; position: absolute; inset: -1em; border: .3em solid #dc1f47; border-radius: 1.4em;
  -webkit-mask: conic-gradient(#000 0 0) top left / 4em 4em no-repeat, conic-gradient(#000 0 0) top right / 4em 4em no-repeat, conic-gradient(#000 0 0) bottom left / 4em 4em no-repeat, conic-gradient(#000 0 0) bottom right / 4em 4em no-repeat;
          mask: conic-gradient(#000 0 0) top left / 4em 4em no-repeat, conic-gradient(#000 0 0) top right / 4em 4em no-repeat, conic-gradient(#000 0 0) bottom left / 4em 4em no-repeat, conic-gradient(#000 0 0) bottom right / 4em 4em no-repeat; }
.fo-sig:focus-visible::before { border-color: #2f6fe4; }
.fo-sig .dot { position: absolute; right: -1.6em; bottom: -1.6em; width: 2.6em; height: 2.6em; border-radius: 50%; background: #dc1f47; }

@media (prefers-reduced-motion: reduce) {
  .fo-pg, .fo-tog button::after { transition: none; }
  .fo-check path { animation: none; stroke-dashoffset: 0; }
  .fo-prog i { animation: none; width: 100%; }
}
@media (max-width: 980px) {
  .fo { grid-template-columns: 196px 1fr; }
  .fo-index { gap: 0 28px; }
  .fo-home { padding: 28px 28px 22px; }
  .fo-work { grid-template-columns: 1fr 240px; }
}
@media (max-width: 760px) {
  .fo { height: auto; grid-template-columns: minmax(0, 1fr); }
  .fo-main, .fo-side { min-width: 0; }
  .fo-index > div { display: contents; }
  .fo-side { border-right: 0; border-bottom: 1px solid var(--fo-rule); }
  .fo-tl, .fo-open, .fo-sec { display: none; }
  .fo-nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; }
  .fo-nv { width: auto; flex: none; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--fo-card); box-shadow: 0 0 0 1px var(--fo-rule); }
  .fo-nv > span > small, .fo-nv.tools > small { display: none; }
  .fo-nv[aria-current="true"] { background: var(--fo-text); color: var(--fo-desk); }
  .fo-th { width: 18px; height: 22px; }
  .fo-th .fo-pg { transform: scale(.7) !important; }
  .fo-main { overflow: visible; }
  .fo-home { padding: 20px 16px; }
  .fo-ctop { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 18px; }
  .fo-index { grid-template-columns: minmax(0, 1fr); }
  .fo-grp { grid-template-columns: 28px 1fr; margin-bottom: 18px; }
  .fo-entry { padding: 9px 6px; }
  .fo-drop { margin-left: 0; }
  .fo-tool { padding: 16px 14px; }
  .fo-h1 { font-size: 24px; }
  .fo-belt { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .fo-belt > button { flex: none; }
  .fo-conv { position: static; }
  .fo-menu { left: 14px; right: 14px; top: auto; }
  .fo-work { grid-template-columns: minmax(0, 1fr); }
  .fo-canvas { overflow: hidden; }
  .fo-pair { gap: 10px; }
  .fo-pair .fo-pg { width: 128px !important; height: 166px !important; font-size: 1.28px !important; }
  .fo-pair .fo-sheet, .fo-pair .fo-txt { width: 128px; height: 166px; }
  .fo-arrow { width: 36px; }
  .fo-viewer > .fo-pg, .fo-blur .fo-pg { width: 260px !important; height: 336px !important; font-size: 2.6px !important; }
  .fo-grid { gap: 10px; }
  .fo-cell { width: 96px; min-height: 150px; }
  .fo-grid.arr .fo-cell { touch-action: pan-y; }
  .fo-grid.arr .fo-pg { width: 84px !important; height: 109px !important; font-size: .84px !important; }
  .fo-cell .ring { width: 120px; height: 120px; }
  .fo-cell .strike { width: 84px; height: 109px; }
  .fo-grid.split .fo-cell { width: 76px; min-height: 124px; }
  .fo-grid.split .fo-pg { width: 66px !important; height: 85px !important; font-size: .66px !important; }
  .fo-paper { width: 100px; touch-action: pan-y; }
  .fo-paper .fo-pg { width: 84px !important; height: 109px !important; font-size: .84px !important; }
  .fo-bar { overflow-x: auto; }
  .fo-check { right: -8px; top: -8px; width: 52px; height: 52px; }
}

/* Page bits the shared system doesn't have: the file-naming examples and the guide link under the FAQ */
.fox-names { display: grid; gap: 8px; }
.fox-names > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.fox-names code { color: var(--muted); font-size: 13px; }
.fox-names code::after { content: "→"; margin-left: 12px; color: var(--accent-ink); font-family: var(--font); }
.fox-names b { color: var(--accent-ink); font-weight: 650; }
.fox-guide { margin: 26px 0 0; color: var(--muted); font-size: 15.5px; }
.fox-guide a { color: var(--text); font-weight: 600; }
