/* The checklist as a document. Shared by both directions: the sample chapter before
   the form, the reader that opens after it, and the printable and PDF version.
   Fonts and accents come from the page (--font-display, --font-text, --gold). */

.guide { display: grid; gap: clamp(18px, 3vw, 30px); min-width: 0; }
.g-sheet {
  position: relative; container-type: inline-size; min-width: 0;
  padding: clamp(24px, 5vw, 60px); border-radius: var(--r-card);
  background: #fff; box-shadow: var(--shadow-soft);
}
.guide h2, .guide h3, .guide h4 { text-wrap: balance; }

/* Cover */
.g-cover {
  overflow: hidden; isolation: isolate; display: grid; align-content: space-between; gap: 48px;
  min-height: clamp(420px, 60vw, 620px); color: #fff;
  background: radial-gradient(760px 460px at 8% 0%, rgba(29, 70, 132, .6), transparent 60%), var(--navy);
}
.g-cover-lines { position: absolute; inset-inline: 0; bottom: -30px; z-index: -1; width: 100%; height: 70%; fill: none; stroke: var(--gold); stroke-width: 1; }
.g-cover-mark { width: 58px; height: auto; }
.g-cover-title { margin-top: 30px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 2rem + 4cqw, 4.8rem); line-height: 1; }
.g-cover-rule {
  position: relative; display: block; width: 150px; height: 2px; margin-block: 22px;
  background: linear-gradient(to left, var(--gold) 0 42%, transparent 42% 58%, var(--gold) 58% 100%);
}
.g-cover-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.g-cover-sub { max-width: 32ch; font-size: clamp(1.1rem, 1rem + .8cqw, 1.4rem); line-height: 1.55; color: #D6DEEC; }
.g-cover-meta { display: grid; gap: 2px; color: #AEBBD3; font-size: .95rem; }
.g-cover-meta strong { color: #fff; font-size: 1.05rem; }

/* Section titles on the non-chapter sheets */
.g-title-plain { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2.2cqw, 2.7rem); line-height: 1.1; color: var(--navy); }
.g-intro { max-width: 64ch; margin-top: 12px; font-size: 1.1rem; color: var(--muted); }

/* How to use */
.g-sub-h { margin-top: 32px; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.g-prep { display: grid; gap: 12px; margin-top: 14px; counter-reset: prep; }
.g-prep li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.g-prep li::before {
  counter-increment: prep; content: counter(prep);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--gold); color: var(--navy); font-weight: 800; font-size: .95rem;
}
.g-tools { display: grid; gap: 14px; margin-top: 14px; }
@container (min-width: 560px) { .g-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-tool { padding: 20px; border-radius: var(--r-box); background: var(--mist); }
.g-tool h5 { font-weight: 800; font-size: 1.08rem; color: var(--navy); }
.g-tool p { margin-top: 6px; font-size: .97rem; color: var(--ink); }
.g-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .95rem; }
.g-legend li { display: inline-flex; align-items: center; gap: 8px; }
.g-legend .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); stroke-width: 2; }
.g-note { margin-top: 22px; font-size: .93rem; color: var(--muted); }
.g-prep { max-width: 62ch; }
/* The parents' "before you start" sheet: paragraphs, then two titled lists, with more room
   above each title than below it. */
.g-start > h3 + p { margin-top: 14px; }
.g-start > p { max-width: 62ch; }
.g-start > p + p { margin-top: 10px; }
.g-start > .g-block { margin-top: 28px; }
.g-start .g-block ul { display: grid; gap: 10px; max-width: 62ch; }
.g-start .g-block li { position: relative; padding-inline-start: 22px; }
.g-start .g-block li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Chapter. minmax(0, 1fr) keeps every block inside the card: with a plain auto column,
   chapter 7's timeline set the column's width and pushed the page sideways on phones. */
.g-chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3.4cqw, 32px); }
.g-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px clamp(16px, 3cqw, 26px); align-items: end;
  padding-bottom: clamp(18px, 3cqw, 26px); border-bottom: 2px solid var(--navy);
}
.g-num { grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: clamp(4.4rem, 3rem + 7cqw, 7rem); line-height: .76; color: var(--gold); }
.g-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 3cqw, 3rem); line-height: 1.05; color: var(--navy); }
.g-question { font-weight: 700; font-size: clamp(1.08rem, 1rem + .6cqw, 1.3rem); line-height: 1.4; color: var(--ink); }
.g-lead { display: grid; gap: 14px; max-width: 62ch; font-size: clamp(1.08rem, 1rem + .4cqw, 1.22rem); line-height: 1.78; }
.g-grid { display: grid; gap: 24px; }
@container (min-width: 660px) { .g-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 34px; align-items: start; } }
.g-block { display: grid; gap: 14px; min-width: 0; }
.g-block h4 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 800; color: var(--navy); }
.g-block h4 .icon, .g-example h4 .icon, .g-ask h4 .icon {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); stroke-width: 2;
}
.g-steps { display: grid; gap: 14px; counter-reset: step; }
.g-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.g-steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--gold); color: var(--navy); font-weight: 800; font-size: .95rem;
}
.g-flags ul { display: grid; gap: 10px; }
.g-flags li { position: relative; padding-inline-start: 26px; }
.g-flags li::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: .62em; width: 9px; height: 9px;
  background: var(--gold); transform: rotate(45deg);
}

/* A schematic of where the number sits in the yearly report */
.g-report { padding: 18px; border-radius: var(--r-box); background: var(--mist); font-size: .96rem; }
.g-report-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; color: var(--navy); }
.g-report-title .icon { width: 20px; height: 20px; }
.g-report-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); }
.g-report-row .g-val { flex: none; width: 58px; height: 9px; border-radius: 99px; background: #CDD5E1; }
.g-report-row.is-marked { font-weight: 700; color: var(--navy); background: linear-gradient(transparent 14%, rgba(194, 135, 34, .3) 14% 86%, transparent 86%); }
.g-report-row.is-marked .g-val { background: #A9B5C8; }
.g-report-src { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: .92rem; }
.g-report-src strong { color: var(--navy); }
.g-report-note { margin-top: 10px; font-size: .875rem; color: var(--muted); }

/* Links to the official services (הר הכסף, הר הביטוח, the clearing house and the rest).
   They open in a new tab; on paper the address is printed beside the name instead. */
.g-link {
  color: var(--navy); font-weight: 800;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-color: rgba(194, 135, 34, .75);
}
.g-link:hover { text-decoration-color: var(--gold); }
.g-link::after {
  content: ""; display: inline-block; width: .78em; height: .78em; margin-inline-start: .28em; vertical-align: -.04em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M19 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M19 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Example, story and the question to ask */
.g-example { padding: clamp(20px, 3.4cqw, 28px); border-radius: var(--r-card); background: var(--navy); color: #E3E9F3; }
.g-example h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.1rem; font-weight: 800; color: #fff; }
.g-example h4 .icon { background: rgba(255, 255, 255, .1); }
.g-example p + p { margin-top: 8px; }
.g-example > p, .g-assume { max-width: 62ch; }
.g-example .g-figures { display: grid; gap: 8px; margin-block: 14px; }
.g-figures div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 10px 14px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .06); }
.g-figures b { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; }
/* Champagne over navy, with a hairline: gold at low opacity over navy turned khaki. */
.g-figures .is-diff { background: rgba(231, 204, 147, .14); box-shadow: inset 0 0 0 1px rgba(231, 204, 147, .5); }
.g-figures .is-diff b { color: var(--gold-soft); }
.g-formula { display: inline-block; margin-top: 6px; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; }
.g-assume { margin-top: 12px; font-size: .88rem; line-height: 1.6; color: #AEBBD3; }
.g-ask { display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--r-card); background: var(--mist); }
.g-ask h4 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 800; color: var(--navy); }
.g-ask q { font-weight: 700; color: var(--ink); quotes: "\201D" "\201C"; }
.g-timeline { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto; align-items: center; gap: 10px; margin-block: 14px 6px; font-weight: 700; font-size: .95rem; text-align: center; }
.g-timeline span { padding: 8px 12px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .08); color: #fff; }
.g-timeline i { height: 2px; background: rgba(255, 255, 255, .3); }
.g-timeline .is-gap { background: rgba(194, 135, 34, .28); color: var(--gold-soft); }
/* On a narrow phone the same row, drawn tighter, so it fits a 320px screen. */
@media (max-width: 420px) {
  .g-timeline { grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto; gap: 5px; }
  .g-timeline span { padding-inline: 6px; }
}

/* The gentle offer at the end of each chapter: one line and a quiet button. The short form
   (name, phone, consent) opens only when asked for, and on paper only the line is printed. */
.g-callback { display: grid; gap: 14px; padding: 14px 18px; border-radius: var(--r-box); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.g-callback-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.g-callback-lead { font-weight: 700; color: var(--navy); }
.g-callback-toggle {
  min-height: 44px; padding: 7px 18px; border: 0; border-radius: var(--r-pill); background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); font: inherit; font-weight: 800; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.g-callback-toggle:hover, .g-callback-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; }
.g-callback-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.g-callback-form { display: grid; gap: 14px; }
.g-callback-fields { display: grid; gap: 12px; }
@container (min-width: 560px) { .g-callback-fields { grid-template-columns: 1fr 1fr; } }
.g-callback-form .btn { justify-self: start; }
.g-callback-done { font-weight: 700; color: var(--navy); }
.g-callback-done:focus { outline: none; }

.g-bottom { padding-top: 22px; border-top: 1px solid var(--line); }
.g-bottom p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .8cqw, 1.6rem); line-height: 1.4; color: var(--navy); }
.g-bottom strong { color: var(--gold-ink); font-weight: 800; }
.g-done {
  display: inline-flex; align-items: center; gap: 12px; justify-self: start;
  padding: 12px 20px 12px 22px; border-radius: var(--r-pill); background: var(--mist);
  font-weight: 700; color: var(--navy); cursor: pointer;
}

/* Worksheet */
.g-products { display: grid; gap: 14px; margin-top: 26px; }
.g-product { display: grid; gap: 10px 14px; padding: 18px; border-radius: var(--r-box); background: var(--mist); }
@container (min-width: 620px) { .g-product { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-product .is-wide { grid-column: span 2; } }
.g-product-n { grid-column: 1 / -1; font-weight: 800; color: var(--navy); }
.g-product label { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.g-product input, .g-product select, .g-cash input {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: 1rem; color: var(--ink);
}
.g-product input:focus, .g-product select:focus, .g-cash input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(194, 135, 34, .28); }
.g-cash { display: grid; gap: 10px 14px; margin-top: 22px; padding: 18px; border-radius: var(--r-box); background: var(--mist); }
@container (min-width: 620px) { .g-cash { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-cash h4 { grid-column: 1 / -1; font-weight: 800; color: var(--navy); }
.g-cash label { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.g-sheet-tools .linkish { min-height: 44px; }
.g-sheet-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* Summary */
.g-status { margin-top: 22px; }
.g-status-row { display: grid; gap: 10px; padding-block: 14px; border-top: 1px solid var(--line); }
.g-status-row:last-child { border-bottom: 1px solid var(--line); }
@container (min-width: 620px) { .g-status-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.g-status-row > span { font-weight: 700; color: var(--navy); }
.g-status-row .chips { gap: 8px; }
.g-status-row .chip span { min-height: 38px; padding: 6px 14px; font-size: .94rem; }
/* On a phone the three answers sit in one row, as a segmented choice (the fill shows which),
   instead of three stacked boxes for each of the seven checks. */
@media (max-width: 460px) {
  .g-status-row .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .g-status-row .chip span { justify-content: center; padding: 6px 8px; font-size: .9rem; text-align: center; }
  .g-status-row .chip span::before { display: none; }
}
/* On screen the worksheet opens with one product (and any already filled); the rest come one
   at a time. Printed, all six are there to fill in by hand. */
@media screen { .g-product.is-collapsed { display: none; } }
.g-add-product { margin-top: 12px; font-weight: 700; color: var(--navy); }

/* Glossary */
.g-words dl { display: grid; gap: 18px 36px; margin-top: 24px; }
@container (min-width: 620px) { .g-words dl { grid-template-columns: 1fr 1fr; } }
.g-words dt { font-weight: 800; color: var(--navy); }
.g-words dd { margin-top: 2px; }

/* Next step and the legal lines */
.g-next-list { display: grid; gap: 12px; margin-top: 20px; counter-reset: next; }
.g-next-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.g-next-list li::before {
  counter-increment: next; content: counter(next);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--gold-soft); font-weight: 800; font-size: .95rem;
}
.g-book { margin-top: 26px; padding: 24px; border-radius: var(--r-card); background: var(--navy); color: #E3E9F3; }
.g-book h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; }
.g-book p { max-width: 62ch; margin-block: 8px 18px; }
/* The closing offer at the end of both checklists: the owner's own guidance, with how he is
   paid said plainly. On screen it carries a real button; on paper, where a button cannot be
   pressed, the calendar link itself. */
/* Until the calendar link is set, its button is off. Faded gold on navy read as brown, so
   here it goes quiet in the navy's own terms. */
.g-book .btn-gold[aria-disabled="true"] { opacity: 1; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.g-book .g-book-disclose { margin-block: 14px 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .92rem; color: #AEBBD3; }
.g-print-only { display: none; }
@media print {
  .g-print-only { display: block; }
  .g-screen-only { display: none !important; }
}
.g-legal { display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.g-legal strong { color: var(--navy); }
.g-legal p { max-width: 64ch; }

/* The reader that opens after the form */
.reader-wrap { padding-block: 36px 100px; background: var(--mist); }
/* One column on a phone, and minmax(0, 1fr) keeps it the screen's width: with a plain auto
   column the contents bar, a single scrolling row of chapter links, widened the whole page. */
.reader { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.reader-nav { padding: 18px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-soft); }
.reader-progress { font-weight: 700; color: var(--navy); }
.progress-bar { display: block; height: 6px; margin-block: 10px 14px; overflow: hidden; border-radius: 99px; background: var(--mist); }
/* It grows from the start side (right) by scaling, which is cheaper to animate than width. */
.progress-bar::before {
  content: ""; display: block; height: 100%; transform: scaleX(var(--done, 0)); transform-origin: right center;
  border-radius: inherit; background: var(--gold); transition: transform .4s var(--ease-out);
}
.reader-nav ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.reader-nav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-ctl); white-space: nowrap;
  background: var(--mist); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.reader-nav a:hover { background: #E6EAF1; }
.reader-nav a[aria-current] { background: var(--navy); color: #fff; }
.toc-n {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: .875rem; font-weight: 800;
}
.reader-nav a.is-done .toc-n { background: var(--gold); box-shadow: none; color: var(--navy); }
.reader-nav a[aria-current] .toc-n { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
/* On a phone the contents bar is one row that stays on top: how many are done, then the
   chapters, with the progress as a hairline along its bottom edge. It used to be three rows,
   142px of every screen. The verb before the count stays for screen readers. */
@media (max-width: 999px) {
  .reader-nav {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
    border-radius: 0 0 var(--r-card) var(--r-card); margin-inline: -20px; padding: 9px 20px 13px;
  }
  .reader-nav .reader-progress { flex: none; font-size: .9rem; white-space: nowrap; }
  .reader-nav .reader-progress-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .reader-nav .progress-bar { position: absolute; inset-inline: 20px; bottom: 5px; height: 3px; margin: 0; }
  .reader-nav ol { flex: 1; min-width: 0; padding-bottom: 0; scrollbar-width: none; }
  .reader-nav a { padding: 7px 11px; }
  /* A tap on a chapter in the contents bar lands below the bar, not under it. */
  .reader .g-sheet { scroll-margin-top: 78px; }
}
@media (min-width: 1000px) {
  .reader { grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
  .reader-nav { position: sticky; top: 24px; }
  .reader-nav ol { display: grid; gap: 2px; overflow: visible; }
  .reader-nav a { background: transparent; }
}
/* On screen the cover would repeat the heading right above it, so the checklist opens at its
   first sheet. The printed checklist keeps its cover. */
@media screen { .reader .g-cover { display: none; } }

/* Print and PDF: only the checklist, one sheet per page. */
@page { size: A4; margin: 15mm 14mm 17mm; @bottom-center { content: counter(page); font-family: "Heebo", "Arial Hebrew", Arial, sans-serif; font-size: 9pt; color: #6B7488; } }
@page :first { margin: 0; @bottom-center { content: none; } }
@media print {
  html, body { background: #fff !important; }
  body { font-size: 11pt; }
  .skip, .site-header, .hero, .inside, .sample, .form-section, .about, .faq, .site-footer, .sticky-cta, .after-top, .glance-band, .after-end, .reader-nav, .g-sheet-tools, .g-add-product, .g-done { display: none !important; }
  .reader-wrap { padding: 0 !important; background: none !important; }
  .reader { display: block !important; }
  .guide { display: block !important; }
  .g-sheet { box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; break-before: page; }
  .g-cover { break-before: auto; min-height: 297mm; padding: 22mm 20mm !important; }
  .g-cover, .g-example, .g-book, .g-report-row.is-marked, .g-num, .g-report, .g-product, .g-cash, .g-tool, .chip span, .g-legend .icon, .g-block h4 .icon, .g-steps li::before {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .g-block, .g-example, .g-ask, .g-report, .g-product, .g-status-row, .g-words div { break-inside: avoid; }
  .g-head { break-after: avoid; }

  /* Tighter on paper, so a section does not spill a nearly empty page. */
  .guide { gap: 0 !important; }
  /* On paper a chapter is a plain block with the same spacing as on screen: page breaks
     honour "keep together" rules there, and inside a grid they do not. */
  .g-chapter { display: block; }
  .g-chapter > * + * { margin-top: 14px; }
  .g-head { padding-bottom: 10px; }
  .g-num { font-size: 40pt; }
  .g-title { font-size: 19pt; }
  .g-question { font-size: 11.5pt; }
  .g-title-plain { font-size: 18pt; }
  .g-lead { gap: 8px; font-size: 10.5pt; line-height: 1.6; }
  .g-grid { gap: 14px; }
  .g-block { gap: 8px; }
  .g-block h4, .g-example h4, .g-ask h4 { font-size: 11pt; }
  .g-steps { gap: 8px; }
  .g-flags ul { gap: 6px; }
  .g-sub-h { margin-top: 16px; font-size: 12pt; }
  .g-prep { gap: 8px; }
  .g-tools { gap: 8px; }
  .g-tool { padding: 10px 12px; }
  .g-legend { margin-top: 14px; padding-top: 12px; gap: 6px 16px; }
  .g-report { padding: 10px 12px; }
  .g-example, .g-ask { padding: 12px 14px; }
  .g-figures { gap: 6px; margin-block: 10px; }
  .g-figures div { padding: 7px 10px; }
  .g-bottom { padding-top: 12px; }
  .g-bottom p { font-size: 13pt; }
  .g-products { gap: 8px; margin-top: 14px; }
  .g-product { padding: 10px; gap: 6px 10px; }
  .g-product input, .g-product select, .g-cash input { min-height: 28px; }
  .g-status-row { padding-block: 8px; }
  .g-words dl { gap: 10px 24px; margin-top: 14px; }
  .g-next-list { gap: 8px; margin-top: 12px; }
  .g-book { margin-top: 14px; padding: 14px; }
  .g-intro { font-size: 10.5pt; }
  a, .g-link { text-decoration: none; color: inherit; }
  .g-callback-intro, .g-callback-form, .g-callback-done { display: none !important; }
  /* The printed line stays with the bottom line above it, never alone on a page. */
  .g-callback { padding: 0; background: none; box-shadow: none; break-inside: avoid; break-before: avoid; }
  .g-bottom { break-after: avoid; }
  .g-callback-print { font-size: 9.5pt; color: var(--muted); }
  .g-link::after {
    content: " (" attr(data-host) ")"; display: inline; width: auto; height: auto; margin: 0; vertical-align: baseline;
    background: none; -webkit-mask: none; mask: none; font-weight: 400; font-size: .86em; color: var(--muted);
  }
}
