/* ipporu.com/guides (PL 11-22, owner: "can be done so much cooler and better, nicer to visualise and see"). The hub is a visual index:
   one big search, a row of three walkthroughs, then every guide as its film's poster, grouped by reader with each product's mark.
   The chips filter, the search spans every reader and shows each guide once. One guide: the title, the film first, the steps
   with their stills, then the guide before and after. Ink and paper, aka the one accent, no blue fills. Tokens from site.css. */
.gd { --gt: var(--display); }
.gd h1, .gd h2, .gd h3, .gcard b, .gfcard b { font-family: var(--gt); letter-spacing: -0.025em; }
.gd .pm { width: 22px; height: 22px; flex: none; color: var(--ink); }

/* ---------- hub ---------- */
.ghero { padding-block: 64px 36px; }
.ghero h1 { font-size: clamp(52px, 7vw, 96px); line-height: .95; font-weight: 650; letter-spacing: -0.05em; }
.ghero .lead { margin-top: 18px; max-width: 34em; color: var(--text-2); font-size: 19px; }
/* the featured row: one big walkthrough, two beside it */
.gfeat { padding-block: 12px 56px; }
.gfeat h2 { font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.gfgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 24px 28px; margin: 0; padding: 0; list-style: none; }
.gfgrid > li:first-child { grid-row: 1 / span 2; }
.gfcard { display: flex; flex-direction: column; gap: 14px; height: 100%; text-decoration: none; color: var(--ink); }
.gfgrid > li:first-child .gfcard b { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.gfgrid > li:first-child .gtxt > span:last-child { font-size: 17px; color: var(--text-2); max-width: 36em; }
.gfcard b { font-size: 20px; line-height: 1.2; font-weight: 600; }
.gfcard .gtxt { display: flex; flex-direction: column; gap: 6px; }
.gwho3 { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.gwho3 .pm { width: 20px; height: 20px; }

/* a poster: the film's own frame on its ground, the length of a walkthrough on it */
.gpic { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--stone); box-shadow: 0 0 0 1px var(--line); }
.gpic img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.glen { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  background: var(--btn); color: #fff; font: 600 15px/1 var(--sans); box-shadow: inset 0 0 0 1px var(--btn-edge); transition: background 150ms var(--ease-ui); }
.glen svg { width: 18px; height: 18px; fill: currentColor; }
.gslot { position: absolute; inset: 0; display: grid; place-items: center; background: var(--stone); }
.gsm { width: 64px; height: 64px; color: var(--ink); opacity: .9; }
.gcard:hover .gpic img, .gcard:focus-visible .gpic img, .gfcard:hover .gpic img, .gfcard:focus-visible .gpic img, .gnx:hover .gpic img, .gnx:focus-visible .gpic img { transform: scale(1.03); }
.gcard:hover .glen, .gfcard:hover .glen, .gcard:focus-visible .glen, .gfcard:focus-visible .glen { background: var(--aka); }
.gcard:hover b, .gfcard:hover b, .gnx:hover b { text-decoration: underline; text-decoration-color: var(--aka); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* the groups: every guide on All (each once, under its first reader), one reader's on a chip, the hits on a search */
.gpanes { padding-block: 0 112px; }
.gpane { padding-top: 40px; }
.gd:not(.searching):has(#w-kendoka:checked) .gpane:not([data-w="kendoka"]), .gd:not(.searching):has(#w-pro:checked) .gpane:not([data-w="pro"]),
.gd:not(.searching):has(#w-captain:checked) .gpane:not([data-w="captain"]), .gd:not(.searching):has(#w-dojo:checked) .gpane:not([data-w="dojo"]),
.gd:not(.searching):has(#w-live:checked) .gpane:not([data-w="live"]), .gd:not(.searching):has(#w-partners:checked) .gpane:not([data-w="partners"]) { display: none; }
.gd:has(#w-all:checked) .ggrid > li.dup, .gd.searching .ggrid > li.dup { display: none; }
.gd:has(#w-all:checked) .gpane:not(:has(.ggrid > li:not(.dup))) { display: none; }
.gd.searching .gpane:not(:has(.ggrid > li:not(.dup):not([hidden]))) { display: none; }
.gd.searching .gfeat { display: none; }
.gpane > header { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 24px; padding-top: 22px; border-top: 2px solid var(--ink); }
.gpane .gpm { width: 44px; height: 44px; }
.gpane h2 { font-size: 30px; font-weight: 650; line-height: 1.1; }
.gpane h2 small { margin-left: 6px; font: 500 16px var(--sans); letter-spacing: 0; color: var(--muted); }
.gpane > header p { margin-top: 6px; color: var(--text-2); max-width: 40em; }

.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; margin: 0; padding: 0; list-style: none; }
.gcard { display: flex; flex-direction: column; gap: 14px; height: 100%; text-decoration: none; color: var(--ink); }
.gcard .gtxt { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard b { font-size: 19px; font-weight: 600; line-height: 1.25; }
.gcard .gtxt > span:not(.gmeta) { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.gmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); }
.gplan { font-size: 14px; font-weight: 600; color: var(--ink); }
.gplan::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--aka); vertical-align: 1px; }
.gplan.free::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- one guide ---------- */
.gtop { padding-top: 40px; max-width: 1180px; }
.gcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); }
.gcrumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--text-2); }
.gcrumb a:hover { color: var(--ink); }
.gtop h1 { margin-top: 12px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; font-weight: 650; letter-spacing: -0.045em; max-width: 900px; }
.gtop .lead { margin-top: 16px; max-width: 680px; font-size: 19px; color: var(--text-2); }
.gmeta1 { margin-top: 14px; }
.gmeta1 .gmeta { padding: 0; }

.gfilm { margin: 36px 0 0; border-radius: 20px; background: var(--stone); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.gfilm video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--stone); }
.gwfilm figcaption { padding: 12px 18px 14px; font-size: 15px; color: var(--text-2); background: var(--paper); }

.gsteps { counter-reset: gs; margin: 88px 0 0; padding: 0; list-style: none; display: grid; gap: 80px; }
.gsteps > li { counter-increment: gs; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.gstep { position: sticky; top: 104px; padding-top: 18px; border-top: 2px solid var(--ink); }
.gsteps > li:not(:has(.gshot)) { grid-template-columns: minmax(0, 1fr); } .gsteps > li:not(:has(.gshot)) .gstep { position: static; max-width: 640px; }  /* a step with words only */
.gstep::before { content: counter(gs); display: block; margin-bottom: 14px; font: 650 56px/1 var(--gt); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.gstep h2 { font-size: 26px; font-weight: 600; line-height: 1.2; }
.gstep p { margin-top: 10px; font-size: 17px; color: var(--text-2); }
.gstep p b { font-weight: 600; color: var(--ink); }
.gshot { margin: 0; padding: 20px; border-radius: 20px; background: var(--stone); }
.gshot img { width: 100%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -24px rgba(13, 15, 20, .3); background: var(--paper); }
.gshot.ph { padding: 24px 0; display: flex; justify-content: center; }
.gshot.ph img { width: min(320px, 78%); border-radius: 22px; box-shadow: 0 0 0 6px var(--ink), 0 24px 40px -24px rgba(13, 15, 20, .45); }

.gnote { margin-top: 80px; padding: 22px 26px; border-left: 3px solid var(--aka); border-radius: 0 16px 16px 0; background: var(--paper); color: var(--text-2); max-width: 860px; box-shadow: var(--card-edge); }
.gnote b { color: var(--ink); font-weight: 600; }

/* next and previous: two posters, the way on */
.gmore { margin-top: 104px; padding-block: 56px 104px; border-top: 1px solid var(--line); }
.gnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.gnx { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: center; text-decoration: none; color: var(--ink); }
.gnx.next { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); text-align: right; }
.gnx.next .gpic { order: 2; }
.gnx .gtxt { display: flex; flex-direction: column; gap: 4px; }
.gnx small { font-size: 15px; color: var(--muted); }
.gnx b { font: 600 22px/1.2 var(--gt); letter-spacing: -0.02em; }
.gmore .back { display: inline-flex; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  .gpic img, .glen { transition: none; }
  .gcard:hover .gpic img, .gfcard:hover .gpic img, .gnx:hover .gpic img, .gcard:focus-visible .gpic img, .gfcard:focus-visible .gpic img, .gnx:focus-visible .gpic img { transform: none; }
}
@media (max-width: 1080px) {
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsteps > li { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gstep { position: static; }
}
/* a phone: the featured row stacks, the chips are a grid of even cells (never a sideways strip), guides are rows */
@media (max-width: 700px) {
  .ghero { padding-block: 36px 24px; }
  .ghero .lead, .gtop .lead { font-size: 17px; }
  .gfind input { height: 54px; font-size: 17px; }
  .gfind svg { top: 16px; }
  .gfgrid { grid-template-columns: minmax(0, 1fr); }
  .gfgrid > li:first-child { grid-row: auto; }
  .gfeat { padding-bottom: 40px; }
  .gpane { padding-top: 32px; }
  .gpane > header { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .gpane .gpm { width: 36px; height: 36px; }
  .gpane h2 { font-size: 24px; }
  .ggrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ggrid > li + li { border-top: 1px solid var(--line); }
  .gcard { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 14px 0; align-items: start; }
  .gcard .gpic { border-radius: 10px; }
  .gcard .glen { left: 6px; bottom: 6px; height: 26px; padding: 0 8px 0 6px; font-size: 14px; }
  .gcard .glen svg { width: 14px; height: 14px; }
  .gcard .gsm { width: 36px; height: 36px; }
  .gcard b { font-size: 17px; }
  .gcard .gtxt > span:not(.gmeta) { display: none; }
  .gtop { padding-top: 16px; }
  .gfilm { margin: 28px -16px 0; border-radius: 0; box-shadow: none; }
  .gsteps { margin-top: 56px; gap: 56px; }
  .gstep::before { font-size: 44px; }
  .gstep h2 { font-size: 22px; }
  .gstep p { font-size: 16px; }
  .gshot { margin: 0 -16px; padding: 16px; border-radius: 0; }
  .gnote { margin-top: 56px; padding: 18px 20px; }
  .gmore { margin-top: 72px; padding-block: 40px 72px; }
  .gnav { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gnx, .gnx.next { grid-template-columns: 128px minmax(0, 1fr); text-align: left; gap: 14px; }
  .gnx.next .gpic { order: 0; }
  .gnx b { font-size: 18px; }
  .gmore .back { width: 100%; justify-content: center; }
}
.gmore .wrap { max-width: 1180px; }
/* a phone: the first walkthrough big, the other two as rows, so the chips come soon */
@media (max-width: 700px) {
  .gfgrid { gap: 0; }
  .gfgrid > li:first-child { padding-bottom: 16px; }
  .gfgrid > li + li { border-top: 1px solid var(--line); }
  .gfgrid > li + li .gfcard { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 14px 0; align-items: center; }
  .gfgrid > li + li .gpic { border-radius: 10px; }
  .gfgrid > li + li .glen { left: 6px; bottom: 6px; height: 26px; padding: 0 8px 0 6px; font-size: 14px; }
  .gfgrid > li + li .glen svg { width: 14px; height: 14px; }
  .gfgrid > li + li b { font-size: 17px; }
}

/* ---------- 12-03: the help centre. Search, then "who are you?" as four cards with a real picture each, the walkthroughs, the lists ---------- */
.ghero { text-align: left; }
.gd .gwho { position: static; padding-block: 8px 24px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.gd .gwhoh { margin-bottom: 18px; font: 600 22px/1.2 var(--gt); letter-spacing: -0.02em; }
/* 12-03 (owner: "who are you, wtf"): each reader is a big tile with a whole small vignette of what they do, the site's own, light and dark.
   One column of text under the picture at every width: no side column (an old icon column squeezed the words one per line in Safari). */
.gd .gwho fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border: 0; padding: 0; margin: 0; min-width: 0; }
.gd .gwho label.gtopic { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; min-width: 0; min-height: 0; height: auto; padding: 0; overflow: hidden; cursor: pointer; color: var(--ink);
  border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform 200ms var(--ease-ui), box-shadow 200ms var(--ease-ui); }
.gd .gwho label.gtopic input, .gd .gwho label.gall input { position: absolute; opacity: 0; pointer-events: none; }
.gd .gwho label.gtopic .gvis { display: grid; align-content: center; flex: 1 1 auto; min-width: 0; padding: 28px 28px 8px; background: var(--tint); }
.gd .gwho label.gtopic .gvis .vgw { display: block; width: 100%; max-width: 520px; margin-inline: auto; pointer-events: none; }  /* a size container has no content width: it must be given one, never sized to fit (it collapsed to a word a line) */
.gd .gwho label.gtopic .gvis .vg { font-size: 14px; }
.gd .gwho label.gtopic .gvis .vg-wk .g-fig { max-height: 13em; }
.gd .gwho label.gtopic .gvis .vg-wk .g-fig .pf { max-height: 13em; width: auto; margin-inline: auto; display: block; }
.gd .gwho label.gtopic .gvis { overflow: hidden; }  /* the vignette's own drop shadow stays in the picture, off the words */
.gd .gwho label.gtopic .gtt { display: block; min-width: 0; padding: 20px 24px 22px; }
.gd .gwho label.gtopic .gtt > * { display: block; }
.gd .gwho label.gtopic .gtt > b { font: 600 28px/1.15 var(--gt); letter-spacing: -0.025em; }
.gd .gwho label.gtopic .gtt > span { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.gd .gwho label.gtopic .gtt > small { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gd .gwho label.gtopic:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), 0 24px 48px -28px rgb(12 19 34 / 45%); }
.gd .gwho label.gtopic:active { transform: translateY(-1px); }
.gd .gwho label.gtopic:has(input:checked) { box-shadow: 0 0 0 2.5px var(--ink); }
.gd .gwho label.gtopic:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--aka); }
.gd .gwho label.gall { grid-column: 1 / -1; order: 9; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 600; cursor: pointer; background: none; color: var(--ink); }
.gd .gwho label.gall small { color: var(--muted); font-weight: 500; }
.gd .gwho label.gall:has(input:checked) { background: var(--ink); color: var(--page); box-shadow: none; }
.gd .gwho label.gall:has(input:checked) small { color: inherit; opacity: .7; }
.gd:not(.searching):has(#w-kendoka:checked) .gfeat, .gd:not(.searching):has(#w-dojo:checked) .gfeat, .gd:not(.searching):has(#w-live:checked) .gfeat, .gd:not(.searching):has(#w-partners:checked) .gfeat { display: none; }
.gfeat { padding-block: 56px 24px; }
.gpane > header { grid-template-columns: minmax(0, 1fr); }
.gdev { margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; max-width: 960px; }
.gdev > div { padding: 24px 26px; }
.gdev > div + div { box-shadow: -1px 0 0 var(--line); }
.gdev h2 { font: 600 17px/1.3 var(--gt); letter-spacing: -0.01em; }
.gdev p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.gdev + .gnote { margin-top: 32px; }
@media (hover: none) { .gd .gwho label.gtopic:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .gd .gwho label.gtopic { transition: none; } .gd .gwho label.gtopic:hover { transform: none; } }
@media (max-width: 760px) {
  .gd .gwho fieldset { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gd .gwho label.gtopic .gvis { padding: 20px 16px 4px; }
  .gd .gwho label.gtopic .gvis .vg-wk .g-fig, .gd .gwho label.gtopic .gvis .vg-wk .g-fig .pf { max-height: 9em; }
  .gd .gwho label.gtopic .gtt { padding: 16px 18px 18px; }
  .gd .gwho label.gtopic .gtt > b { font-size: 24px; }
  .gd .gwho label.gall { margin-top: 4px; }
  .gdev { grid-template-columns: 1fr; margin-top: 56px; }
  .gdev > div + div { box-shadow: 0 -1px 0 var(--line); }
}
.gd .gwho label.gtopic:has(input:checked) .gvis small { color: var(--muted); }  /* library.css colours every small of a picked reader for its old pill look */
/* 12-03: a thumbnail drawn from a vignette comes in light and dark (site.css shows .fgl or .fgd by the page's mode); either fills the frame */
.gpic img.fgd { display: none; }
:root[data-theme="dark"] .gpic img.fgd { display: block; } :root[data-theme="dark"] .gpic img.fgl { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gpic img.fgd { display: block; } :root:not([data-theme="light"]) .gpic img.fgl { display: none; } }
.gshot img.fgd { display: none; }
:root[data-theme="dark"] .gshot img.fgd { display: block; } :root[data-theme="dark"] .gshot img.fgl { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gshot img.fgd { display: block; } :root:not([data-theme="light"]) .gshot img.fgl { display: none; } }
