/* CalibReader Help — shared stylesheet. Mirrors the landing-page brand. (cache-bust 2026-06-10) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=DM+Sans:wght@400;500&family=DM+Mono&display=swap');

:root {
  --ink: #1a1510; --paper: #f5f0e8; --warm-white: #faf7f2; --cream: #ede8de;
  --accent: #c4521a; --accent-light: #e8845a; --muted: #7a6f62; --rule: #d4cdc0;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
em, i { font-style: normal; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.65; font-size: 17px;
}
.wiki-top {
  display: flex; align-items: center; gap: .25rem; padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule); background: var(--warm-white);
  position: sticky; top: 0; z-index: 5;
}
.wiki-top a { color: var(--ink); text-decoration: none; }
.wiki-top .brand { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.wiki-top .brand-r { color: var(--accent); }
.wiki-top .crumb { color: var(--muted); font-size: .95rem; }
main { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
h1 { font-family: var(--serif); font-weight: 700; font-size: 2.1rem; margin: 0 0 .5rem; line-height: 1.15; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.lede { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.5rem; }
a { color: var(--accent); }
code { font-family: var(--mono); background: var(--cream); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: .15rem 0 1rem 2.6rem; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--mono); font-size: .9rem;
}
/* nested sub-points render as plain bullets, not numbered step circles */
ol.steps ul { margin: .4rem 0 .2rem; padding-left: 1.1rem; }
ol.steps ul li { list-style: disc; color: var(--muted); padding: .1rem 0; }
.callout {
  border-left: 3px solid var(--accent); background: var(--warm-white);
  padding: .85rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0; color: var(--ink);
}
.compare { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.compare th, .compare td { border: 1px solid var(--rule); padding: .55rem .75rem; text-align: left; }
.compare th { background: var(--cream); font-family: var(--sans); }
/* download button (e.g. plugin zip) */
.dl-row { margin: 1.25rem 0 1.75rem; display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.dl-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: .7rem 1.2rem; border-radius: 8px; font-weight: 500; font-size: 1rem;
}
.dl-btn:hover { background: #a8431a; }
.dl-btn svg { width: 18px; height: 18px; fill: currentColor; }
.dl-meta { color: var(--muted); font-size: .9rem; }

.shot { margin: 1.5rem 0; }
.shot img { width: 100%; border: 1px solid var(--rule); border-radius: 10px; display: block; }
.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; text-align: center; }
/* portrait phone screenshots wrapped in a pure-CSS device frame */
.shot.phone { text-align: center; }
.shot.phone .device {
  display: inline-block; position: relative;
  width: 300px; max-width: 100%; padding: 9px;
  background: linear-gradient(155deg, #3a3a40 0%, #1a1a1c 55%, #2a2a2e 100%);
  border-radius: 42px;
  box-shadow:
    0 24px 50px -18px rgba(0,0,0,.50),
    0 5px 14px rgba(0,0,0,.22),
    inset 0 1px 1px rgba(255,255,255,.20),
    inset 0 0 0 1px rgba(0,0,0,.45);
}
.shot.phone .device img {
  display: block; width: 100%; border-radius: 33px; background: #000;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.85);
}
/* subtle side buttons */
.shot.phone .device::before,
.shot.phone .device::after { content: ""; position: absolute; background: #15151a; border-radius: 2px; }
.shot.phone .device::before { left: -2px; top: 86px; width: 3px; height: 26px; box-shadow: 0 38px 0 #15151a; } /* volume up / down */
.shot.phone .device::after  { right: -2px; top: 104px; width: 3px; height: 52px; } /* side button */
/* two phones side by side (e.g. chrome on/off) */
.shot.phone.duo .device-row { display: flex; gap: 1.25rem; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.shot.phone.duo .device { width: 240px; }
/* phone + tablet side by side, both framed (device comparison) */
.shot.combo { width: min(860px, calc(100vw - 2rem)); }
.shot.combo .combo-row { display: flex; gap: 1.75rem; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.shot.combo .combo-row .devx { width: 225px; }
.shot.combo .tablet-frame { flex: 0 1 590px; max-width: 100%; }
/* framed phone screenshots: a real device frame is baked into the (transparent) PNG */
.shot.phone .devx { display: inline-block; position: relative; width: 300px; max-width: 100%; }
.shot.phone .devx img { display: block; width: 100%; border: 0; border-radius: 0; background: none; filter: drop-shadow(0 16px 28px rgba(26,21,16,.24)); }
.shot.phone.duo .devx { width: 240px; }
/* iPad: a real frame is baked into the transparent PNG (no CSS bezel) */
.tablet-frame { display: inline-block; }
.tablet-frame img { display: block; width: 100%; border: 0; border-radius: 0; filter: drop-shadow(0 18px 32px rgba(26,21,16,.22)); }

/* lightbox: tap any screenshot to enlarge */
.shot img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(20,15,10,.9); display: none; place-items: center; z-index: 1000; padding: 2vmin; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }

/* dark-mode gallery: framed tablets, two per row */
.dark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.dark-grid figure { margin: 0; }
.dark-grid .tablet-frame { display: block; }
.dark-grid figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; text-align: center; }
@media (max-width: 620px) { .dark-grid { grid-template-columns: 1fr; } }
.shot-ph {
  display: grid; place-items: center; min-height: 180px; border: 2px dashed var(--rule);
  border-radius: 10px; color: var(--muted); background: var(--warm-white); font-style: italic; margin: 1.5rem 0;
}
/* 2x2 grid of example screenshots (e.g. filter applications) */
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 1.5rem 0; }
.shot-grid .shot-ph { min-height: 150px; margin: 0; }
.shot-grid .shot.phone { margin: 0; }
.shot-grid .shot.phone .devx { width: 100%; max-width: 210px; }
@media (max-width: 560px) { .shot-grid { grid-template-columns: 1fr; } }
/* no-JS tabbed picker */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
.tabs label {
  padding: .45rem .9rem; border: 1px solid var(--rule); border-radius: 999px;
  cursor: pointer; background: var(--warm-white); font-size: .95rem;
}
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.panel { display: none; padding-top: .5rem; }
/* hub: vertical list of tiles */
.cards { display: flex; flex-direction: column; gap: .8rem; margin: 1.5rem 0; }
.card {
  display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--warm-white); text-decoration: none; color: var(--ink);
}
.card:hover { border-color: var(--accent); }
.card h3 { font-family: var(--serif); margin: 0 0 .3rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.wiki-foot { border-top: 1px solid var(--rule); padding: 1.5rem; text-align: center; color: var(--muted); font-size: .9rem; }
.wiki-foot a { color: var(--accent); }

/* left-sidebar guide nav (injected by nav.js on guide pages) */
.wiki-layout { display: flex; gap: 3rem; max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; align-items: flex-start; }
.wiki-layout main { padding: 2.5rem 0 4rem; margin: 0; max-width: 720px; }
.wiki-side { flex: 0 0 200px; position: sticky; top: 4.5rem; align-self: flex-start; padding-top: 2.7rem; }
.wiki-side-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; padding-left: .8rem; }
.wiki-side ul { list-style: none; margin: 0; padding: 0; }
.wiki-side a { display: block; padding: .42rem .8rem; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: var(--muted); text-decoration: none; font-size: .95rem; }
.wiki-side a:hover { color: var(--ink); background: var(--warm-white); }
.wiki-side li.active a { color: var(--accent); border-left-color: var(--accent); background: var(--warm-white); font-weight: 500; }
/* mobile guide picker: a native dropdown replaces the sidebar (hidden on desktop) */
.wiki-side-select {
  display: none; width: 100%; max-width: 100%; font-family: var(--sans); font-size: 1rem;
  padding: .6rem .8rem; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--warm-white); color: var(--ink);
}

@media (max-width: 720px) {
  h1 { font-size: 1.7rem; } body { font-size: 16px; }
  main { padding: 1.75rem 1.1rem 3rem; }
  .wiki-layout { flex-direction: column; gap: 0; padding: 0; max-width: 100%; }
  .wiki-layout main { padding: 1.75rem 1.1rem 3rem; max-width: 100%; }
  /* sidebar collapses to a full-width dropdown; no horizontal overflow */
  .wiki-side { position: static; flex: none; width: auto; min-width: 0; padding: .7rem 1.1rem; border-bottom: 1px solid var(--rule); top: 0; }
  .wiki-side-title { display: none; }
  .wiki-side ul { display: none; }
  .wiki-side-select { display: block; }
}
