/* reader.css: flag, ask and fix UI for the books (see reader.js) */

.fz-toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--theme-popup-bg);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--theme-popup-border);
  font-size: 13px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-width: 92vw;
  text-align: center;
}
.fz-toast a {
  color: var(--links);
  text-decoration: underline;
}

/* ---- reader feedback: flag a passage -------------------------------------------- */
::highlight(pf-open)     { background-color: rgba(248, 81, 73, 0.30); }
::highlight(pf-proposed) { background-color: rgba(210, 153, 34, 0.32); }
::highlight(pf-done)     { background-color: rgba(63, 185, 80, 0.20); }

.pf-ui, .pf-ui * { font-family: inherit; box-sizing: border-box; }
.pf-float { position: fixed; z-index: 1000; display: none; gap: 6px; }
.pf-flag-btn, .pf-ask-btn {
  padding: 7px 12px; font-size: 13px; font-weight: 600;
  background: #f0883e; color: #1b1206; border: 0; border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pf-ask-btn { background: var(--links); color: var(--bg); }
.pf-pill {
  position: fixed; right: 14px; bottom: 14px; z-index: 900;
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px 9px 13px;
  font-family: var(--fz-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--fg); background: var(--theme-popup-bg); cursor: pointer;
  border: 1.5px solid var(--theme-popup-border); border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pf-pill:not(.pf-askpill) svg { color: #e8772e; }
.pf-pill:not(.pf-askpill):hover { transform: translateY(-1px); border-color: #e8772e; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.pf-pill.pf-has-open { color: #1b1206; background: #f0883e; border-color: #f0883e; }
.pf-pill.pf-has-open svg { color: #1b1206; }
.pf-sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(560px, 100vw); max-height: 78vh; overflow-y: auto; z-index: 1100;
  padding: 14px 16px 16px; background: var(--theme-popup-bg); color: var(--fg);
  border: 1px solid var(--theme-popup-border); border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.25); font-size: 14px;
}
.pf-title { font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.pf-sheet .pf-quote {
  margin: 0 0 10px; padding: 6px 10px; font-size: 13px; color: var(--fg); opacity: 0.85;
  background: var(--quote-bg); border-left: 3px solid #f0883e;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 110px; overflow-y: auto;
}
.pf-jump { cursor: pointer; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pf-chip {
  padding: 6px 10px; font-size: 13px; color: var(--fg); background: transparent;
  border: 1px solid var(--theme-popup-border); border-radius: 14px; cursor: pointer;
}
.pf-chip.on { color: #1b1206; background: #f0883e; border-color: #f0883e; font-weight: 600; }
.pf-note {
  width: 100%; padding: 8px; font: inherit; font-size: 14px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--theme-popup-border); border-radius: 8px; resize: vertical;
}
.pf-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.pf-btn {
  padding: 7px 14px; font-size: 13px; color: var(--fg); background: transparent;
  border: 1px solid var(--theme-popup-border); border-radius: 8px; cursor: pointer;
}
.pf-btn.pf-primary { color: #fff; background: var(--links); border-color: var(--links); color: var(--bg); font-weight: 600; }
.pf-btn.pf-small { padding: 3px 9px; font-size: 12px; margin-top: 6px; }
.pf-btn:disabled { opacity: 0.6; }
.pf-item { padding: 10px 0; border-top: 1px solid var(--table-border-color); }
.pf-item-top { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.pf-status { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 9px; background: #f85149; color: #fff; }
.pf-s-proposed .pf-status { background: #d29922; color: #1b1206; }
.pf-s-fixed .pf-status { background: #2ea043; }
.pf-s-kept .pf-status { background: #6e7681; }
.pf-tags { font-size: 12px; color: var(--icons); }
.pf-mynote { font-size: 13px; color: var(--fg); }
.pf-resolution { font-size: 13px; color: #2f9e5b; margin-top: 4px; }
.pf-empty { color: var(--icons); padding: 8px 0; }

/* ---- Ask panel ---------------------------------------------------------------- */
.pf-askpill {
  bottom: 66px; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px 10px 13px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; opacity: 1;
  color: var(--bg); background: var(--links); border: 0; border-radius: 999px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--links) 35%, transparent), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform .15s, box-shadow .15s;
}
.pf-askpill:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--links) 45%, transparent), 0 2px 6px rgba(0, 0, 0, 0.2); }
.pf-askpill:focus-visible, .pf-ask button:focus-visible { outline: 2px solid var(--links); outline-offset: 2px; }
.pf-count { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; font-size: 12px; font-weight: 700;
  line-height: 18px; text-align: center; background: color-mix(in srgb, currentColor 18%, transparent); }

.pf-ask {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(480px, 100vw); z-index: 1050;
  display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  border-left: 1px solid var(--theme-popup-border); box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  font-family: var(--fz-sans); font-size: 16px; line-height: 1.55; animation: pf-ask-in .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pf-ask-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) {
  .pf-ask { top: auto; left: 0; width: 100vw; height: 86vh; border-left: 0; border-top: 1px solid var(--theme-popup-border);
    border-radius: 18px 18px 0 0; animation-name: pf-ask-up; }
  @keyframes pf-ask-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.pf-ask-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--table-border-color); }
.pf-ask-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.pf-ask-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px;
  color: var(--links); background: color-mix(in srgb, var(--links) 14%, transparent); }
.pf-ask-actions { display: flex; align-items: center; gap: 6px; }
.pf-hbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 550; color: var(--fg); background: transparent; border: 1px solid var(--table-border-color);
  transition: background-color .15s, border-color .15s; }
.pf-hbtn:hover { background: var(--theme-hover); border-color: var(--theme-popup-border); }
.pf-xbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1;
  color: var(--icons); background: transparent; transition: background-color .15s, color .15s; }
.pf-xbtn:hover { color: var(--fg); background: var(--theme-hover); }

.pf-ask-body { flex: 1; overflow-y: auto; padding: 18px 20px; overscroll-behavior: contain; }
.pf-ask-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--icons); margin: 0 0 8px; }
.pf-ask .pf-quote {
  margin: 0 0 16px; padding: 10px 14px; font-family: var(--fz-serif); font-size: 15px; line-height: 1.55; color: var(--fg);
  background: var(--quote-bg); border-left: 3px solid var(--links); border-radius: 0 10px 10px 0;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow-y: auto;
}
.pf-ask-empty { padding: 8px 0 4px; }
.pf-ask-lead { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 6px; }
.pf-ask-sub { color: var(--icons); font-size: 15px; margin-bottom: 18px; }
.pf-suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pf-sugg { text-align: left; padding: 11px 14px; border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--fg);
  background: var(--quote-bg); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.pf-sugg:hover { border-color: var(--links); transform: translateX(2px); }
.pf-sugg::before { content: "→ "; color: var(--links); font-weight: 700; }

.pf-msg { margin: 0 0 16px; overflow-wrap: anywhere; }
.pf-msg.pf-user { margin-left: 48px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap;
  background: color-mix(in srgb, var(--links) 13%, var(--bg)); }
.pf-msg.pf-assistant { font-family: var(--fz-serif); font-size: 16.5px; line-height: 1.65; }
.pf-msg.pf-err { color: #ff7b72; font-size: 14px; }
.pf-msg p { margin: 0 0 10px; }
.pf-msg ul, .pf-msg ol { margin: 0 0 10px; padding-left: 22px; }
.pf-msg li { margin-bottom: 4px; }
.pf-msg h4 { margin: 14px 0 6px; font-family: var(--fz-sans); font-size: 15px; }
.pf-msg code { font-family: var(--mono-font, monospace); font-size: 0.84em; padding: 1px 5px; background: var(--quote-bg); border-radius: 5px; }
.pf-msg pre { margin: 0 0 10px; padding: 10px 12px; background: var(--quote-bg); border-radius: 10px; overflow-x: auto; }
.pf-msg pre code { padding: 0; background: none; white-space: pre; font-size: 13px; }
.pf-msg table { border-collapse: collapse; margin: 0 0 10px; font-family: var(--fz-sans); font-size: 14px; display: block; overflow-x: auto; }
.pf-msg th, .pf-msg td { border: 1px solid var(--table-border-color); padding: 5px 8px; text-align: left; }
.pf-msg blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--theme-popup-border); opacity: 0.9; }
.pf-msg a { color: var(--links); }
.pf-ask-status { display: inline-flex; align-items: center; gap: 8px; color: var(--icons); font-size: 14px; margin-bottom: 12px; }
.pf-ask-status::after { content: ""; width: 26px; height: 6px;
  background: radial-gradient(circle 3px, currentColor 96%, transparent) 0 50% / 9px 6px repeat-x; animation: pf-dots 1s steps(4) infinite; }
@keyframes pf-dots { from { width: 0; } to { width: 36px; } }

.pf-ask-form { padding: 12px 16px 16px; border-top: 1px solid var(--table-border-color); }
.pf-ask-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px;
  background: var(--quote-bg); border: 1px solid var(--table-border-color); transition: border-color .15s, box-shadow .15s; }
.pf-ask-box:focus-within { border-color: var(--links); box-shadow: 0 0 0 3px color-mix(in srgb, var(--links) 20%, transparent); }
.pf-ask-input { flex: 1; min-height: 28px; max-height: 180px; padding: 5px 0; resize: none; border: 0; outline: none;
  background: transparent; color: var(--fg); font: inherit; font-size: 16px; line-height: 1.5; }
.pf-send { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 0; cursor: pointer; color: var(--bg); background: var(--icons); opacity: 0.45; transition: opacity .15s, background-color .15s; }
.pf-send.is-ready { background: var(--links); opacity: 1; }
.pf-send:disabled { opacity: 0.3; cursor: default; }
.pf-ask-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.pf-deep { display: inline-flex; align-items: center; gap: 8px; color: var(--icons); font-size: 14px; cursor: pointer; user-select: none; }
.pf-deep input { position: absolute; opacity: 0; pointer-events: none; }
.pf-switch { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--table-border-color); transition: background-color .15s; }
.pf-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform .15s; }
.pf-deep input:checked + .pf-switch { background: var(--links); }
.pf-deep input:checked + .pf-switch::after { transform: translateX(14px); }
.pf-deep input:focus-visible + .pf-switch { outline: 2px solid var(--links); outline-offset: 2px; }

.pf-thread { position: relative; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; background: var(--quote-bg);
  border: 1px solid transparent; transition: border-color .15s; }
.pf-thread:hover { border-color: var(--links); }
.pf-thread .pf-mynote { font-size: 15px; padding-right: 70px; }
.pf-thread .pf-tags { margin-top: 4px; }
.pf-del-btn { position: absolute; top: 9px; right: 10px; height: 28px; font-size: 13px; }
.pf-new-q { margin-top: 8px; padding: 10px 16px; border-radius: 999px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .pf-ask, .pf-ask-status::after { animation: none; } }

/* ---- fix from the book: state, proposal, diff ------------------------------------ */
.pf-fix { margin-top: 6px; }
.pf-fixstate { font-size: 13px; color: #d29922; }
.pf-fixstate.pf-live::before { content: "● "; animation: pf-blink 1.2s infinite; }
.pf-fixstate.pf-failed { color: #ff7b72; overflow-wrap: anywhere; }
@keyframes pf-blink { 50% { opacity: 0.25; } }
.pf-prop { margin: 6px 0 4px; }
.pf-checked { font-size: 12.5px; color: var(--icons); margin-bottom: 6px; overflow-wrap: anywhere; }
.pf-checked.pf-warn { color: inherit; padding: 6px 9px; border-radius: 7px; border-left: 3px solid #d29922;
  background: color-mix(in srgb, #d29922 12%, transparent); }
.pf-cost { font-size: 11.5px; color: var(--icons); opacity: .85; margin: -2px 0 8px; font-variant-numeric: tabular-nums; }
.pf-fixrow { justify-content: flex-start; flex-wrap: wrap; margin-top: 4px; }
.pf-fix .pf-note { margin-top: 8px; }
.pf-confirm { margin-top: 6px; padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--links);
  background: color-mix(in srgb, var(--links) 8%, transparent); }
.pf-confirm-text { font-size: 13px; line-height: 1.45; margin-bottom: 4px; }
.pf-vact { padding: 0 12px 6px; }
.pf-version .pf-confirm { margin: 0 12px 8px; }
.pf-diff { margin: 6px 0; border: 1px solid var(--table-border-color); border-radius: 8px; overflow: hidden; font-size: 12.5px; line-height: 1.45; }
.pf-dfile { padding: 4px 8px; background: var(--quote-bg); color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.pf-dhunk { padding: 2px 8px; color: var(--icons); background: var(--bg); font-size: 11px; border-top: 1px solid var(--quote-bg); }
.pf-dl { padding: 3px 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pf-ctx { color: var(--icons); background: var(--bg); }
.pf-del { color: inherit; background: rgba(248, 81, 73, 0.14); }
.pf-add { color: inherit; background: rgba(46, 160, 67, 0.16); }
.pf-del mark { color: inherit; background: rgba(248, 81, 73, 0.45); }
.pf-add mark { color: inherit; background: rgba(46, 160, 67, 0.5); }
.pf-attached { font-size: 12.5px; color: var(--links); margin-bottom: 8px; }

/* ---- progress ------------------------------------------------------------------- */
.pf-progress { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 40px 0 8px; padding-top: 16px;
  border-top: 1px solid rgba(128, 128, 128, 0.25); }
.pf-done-btn { padding: 7px 14px; font-size: 13px; font-weight: 600; border-radius: 16px; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid rgba(128, 128, 128, 0.5); }
.pf-done-btn.is-done { background: #2ea043; border-color: #2ea043; color: #fff; }
.pf-progress-meta { font-size: 12px; opacity: 0.7; }
.sidebar a.pf-done-link::after { content: " ✓"; color: #3fb950; font-weight: 700; }

/* ---- the guide's front page: Start / Continue ---------------------------------------- */
.pf-start { margin: 1.4em 0 2em; padding: 1.2em 1.3em; border: 1px solid var(--table-border-color); border-radius: 12px;
  background: var(--quote-bg); }
.pf-start-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.content a.pf-start-btn { display: inline-block; padding: 0.6em 1.1em; border-radius: 9px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--table-border-color); color: var(--fg); background: var(--bg); transition: transform .15s, box-shadow .15s; }
.content a.pf-start-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.content a.pf-start-btn.is-primary { background: var(--links); border-color: var(--links); color: var(--bg); }
.pf-start-done { font-weight: 600; color: #2f9e5b; }
.pf-start-meta { margin-top: 0.9em; font-size: 0.85em; opacity: 0.75; }
.pf-start-bar { height: 5px; margin-top: 0.5em; border-radius: 3px; background: var(--table-border-color); overflow: hidden; }
.pf-start-bar i { display: block; height: 100%; width: 0; background: #2f9e5b; transition: width .8s ease; }

/* ---- the once-only tip ------------------------------------------------------------- */
.pf-tip { position: fixed; right: 16px; bottom: 104px; z-index: 1000; width: min(320px, calc(100vw - 32px));
  padding: 14px 16px; border-radius: 12px; background: var(--theme-popup-bg); color: var(--fg);
  border: 1px solid var(--theme-popup-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); font-size: 14px; line-height: 1.5;
  animation: pf-tip-in .35s ease-out; }
.pf-tip.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes pf-tip-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pf-tip-demo { position: relative; padding: 10px 10px 34px; margin-bottom: 10px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--table-border-color); font-size: 13px; }
.pf-tip-line { background-image: linear-gradient(rgba(88, 166, 255, .35), rgba(88, 166, 255, .35)); background-repeat: no-repeat;
  background-size: 0% 100%; animation: pf-tip-select 4s ease-in-out infinite; }
@keyframes pf-tip-select { 0%, 10% { background-size: 0% 100%; } 40%, 85% { background-size: 100% 100%; } 100% { background-size: 0% 100%; } }
.pf-tip-btns { position: absolute; left: 10px; bottom: 8px; display: flex; gap: 6px; opacity: 0; animation: pf-tip-btns 4s ease-in-out infinite; }
.pf-tip-btns i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.pf-tip-btns .f { background: #f0883e; color: #1b1206; }
.pf-tip-btns .a { background: #58a6ff; color: #04121f; }
@keyframes pf-tip-btns { 0%, 42% { opacity: 0; transform: translateY(4px); } 50%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pf-tip-ok { margin-top: 10px; float: right; }
@media (prefers-reduced-motion: reduce) {
  .pf-tip, .pf-tip-line, .pf-tip-btns { animation: none; }
  .pf-tip-line { background-size: 100% 100%; } .pf-tip-btns { opacity: 1; }
}

/* ---- practicals: "Next: Task 2 ↓" at the end of each task ---------------------------- */
.content a.pf-next-task { display: inline-block; margin: 1.6em 0 0.4em; padding: 0.45em 1em; border-radius: 999px;
  font-size: 0.8em; font-weight: 600; text-decoration: none; color: var(--links);
  border: 1px solid var(--table-border-color); background: var(--quote-bg); transition: background-color .15s, transform .15s; }
.content a.pf-next-task:hover { background: var(--theme-hover); transform: translateY(1px); }

/* ---- enlarge: images and animations in a zoomable popup ------------------------------ */
.content img.pf-zoomable { cursor: zoom-in; }
html.pf-zoom-open { overflow: hidden; }
.pf-zoom { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 16, 0.72); backdrop-filter: blur(3px); animation: pf-zoom-in .18s ease-out; }
.pf-zoom.is-leaving { opacity: 0; transition: opacity .18s; }
@keyframes pf-zoom-in { from { opacity: 0; } to { opacity: 1; } }
.pf-zoom-pane { display: flex; max-width: 94vw; max-height: 86vh; overflow: auto; margin-bottom: 40px; border-radius: 12px;
  overscroll-behavior: contain; animation: pf-zoom-pop .22s cubic-bezier(.2, .8, .3, 1); }
@keyframes pf-zoom-pop { from { transform: scale(.94); } to { transform: none; } }
.pf-zoom-sizer { margin: auto; flex: none; position: relative; border-radius: 12px; overflow: hidden; background: var(--bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.pf-zoom-sizer img { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pf-zoom-stage { border: 0; display: block; transform-origin: 0 0; background: var(--bg); }
.pf-zoom-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px;
  border-radius: 999px; background: rgba(30, 32, 38, 0.86); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.pf-zoom-bar button { min-width: 38px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font: 600 15px/1 system-ui, sans-serif; }
.pf-zoom-bar button:nth-child(2) { min-width: 62px; font-size: 13px; font-variant-numeric: tabular-nums; }
.pf-zoom-bar button:hover { background: rgba(255, 255, 255, 0.16); }
.pf-zoom-x { position: fixed; top: 14px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 24px; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.14); }
.pf-zoom-x:hover { background: rgba(255, 255, 255, 0.26); }
@media (prefers-reduced-motion: reduce) { .pf-zoom, .pf-zoom-pane { animation: none; } }

/* ---- back to all guides ------------------------------------------------------------- */
.menu-bar .pf-home { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; height: 34px; margin: 0 4px 0 6px; padding: 0 14px;
  border-radius: 999px; font-family: var(--fz-sans); font-size: 14.5px; font-weight: 650; text-decoration: none; align-self: center;
  color: var(--links); background: color-mix(in srgb, var(--links) 11%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--links) 40%, transparent); transition: background-color .15s, border-color .15s; }
.menu-bar .pf-home:hover { background: color-mix(in srgb, var(--links) 18%, transparent); border-color: var(--links); }
@media (max-width: 620px) { .menu-bar .pf-home span { display: none; } .menu-bar .pf-home { padding: 0 8px; } }
.menu-bar .pf-hist { margin-left: 0; }

/* ---- versions: the Changes sheet, and "changed since you read it" -------------------- */
.pf-updated { font-family: var(--fz-sans); font-size: 14px; margin: -4px 0 18px; padding: 9px 13px; border-radius: 10px;
  background: color-mix(in srgb, var(--links) 9%, transparent); border-left: 3px solid var(--links); }
.pf-link { background: none; border: 0; padding: 0; color: var(--links); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; }
.pf-only { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 2px 0 12px; cursor: pointer; }
.pf-version { padding: 0; overflow: hidden; }
.pf-vhead { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; padding: 10px 12px;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.pf-vhead:hover { background: color-mix(in srgb, var(--links) 6%, transparent); }
.pf-vtitle { font-weight: 650; font-size: 14px; }
.pf-vmeta { font-size: 12.5px; color: var(--icons); overflow-wrap: anywhere; }
.pf-vnew { border-left: 3px solid var(--links); }
.pf-vdiff { padding: 0 12px 10px; }
.pf-vhelp { font-size: 12.5px; }

/* ---- reading time under a lesson's title ------------------------------------------- */
.content main .pf-readtime { margin: -0.6em 0 1.6em; font-size: 0.72em; color: var(--icons); letter-spacing: 0.01em; }
.content main .fz-made { margin: 3em 0 0.5em; padding-top: 1em; border-top: 1px solid var(--table-border-color); font-size: 0.78em; color: var(--icons); }
.content main .fz-tested { margin: -0.4em 0 1.6em; font-size: 0.74em; color: var(--icons); letter-spacing: 0.01em; }

.pf-fixall { display: block; margin: 2px 0 12px; }
