/* =============================================================
   PATIENT HANDOUT PAGES — /implant-before/, /implant-after/ (added 23 Nov 2026)
   =============================================================
   The website twin of the printed implant handouts. Same wording, same
   boxes: "three things that matter most", the timeline sections, a
   warm "ring us / call us" box and a forest contact strip. Patients
   are texted or emailed the short link, so it has to read well on a
   phone first.

   Linked only from those pages, with ?v={{BUILD_ID}}, so styles.css and
   its critical-CSS split stay untouched (same pattern as consent.css).

   Colours: the forest and sage of the practice logo, scoped to .ho so
   nothing leaks into the rest of the site. Fonts come from the site.

   "Print or save as PDF" prints the A4 handout: the site furniture is
   hidden by name (never the visibility trick, which printed a blank
   sheet in Safari on the consent pages), a letterhead appears, and the
   aftercare page breaks onto a second sheet at "Good to know".
   ============================================================= */

.ho {
  --ho-forest: #1E4A20;
  --ho-sage: #849C78;
  --ho-tint: #EEF2E9;
  --ho-line: #C9D4C1;
  --ho-ink: #1F2421;
  --ho-muted: #4D5A4F;
  --ho-warm: #FBEEE6;
  --ho-warm-line: #E8C3B0;
  --ho-warm-ink: #8A3A1C;
  --ho-warm-dot: #B4532A;
  max-width: 60rem;
  margin: var(--space-3) auto var(--space-4);
  color: var(--ho-ink);
}
.ho p { max-width: none; }
.ho strong { font-weight: 600; color: var(--ho-ink); }

/* print-only letterhead */
.ho-letterhead { display: none; }

/* ---------- heading ---------- */
.ho-head {
  padding-bottom: 1.5rem;
  margin-bottom: 1.8rem;
  border-bottom: 2px solid var(--ho-line);
}
.ho-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); color: var(--ho-forest); margin: .2rem 0 .6rem; }
.ho-lede { color: var(--ho-muted); font-size: 1.1rem; line-height: 1.55; margin: 0; }
.ho-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

.ho h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ho-forest);
  margin: 0 0 .75rem;
}

/* ---------- the three things that matter most ---------- */
.ho-key {
  background: var(--ho-tint);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.2rem;
}
.ho-key ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; counter-reset: ho; }
.ho-key li { display: flex; gap: .85rem; align-items: flex-start; line-height: 1.5; counter-increment: ho; }
.ho-key li::before {
  content: counter(ho);
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ho-forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- sections ---------- */
.ho-grid { display: grid; grid-template-columns: 1fr; gap: 2rem 2.6rem; }
@media (min-width: 760px) { .ho-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ho-col { display: flex; flex-direction: column; gap: 2rem; }

.ho-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.ho-list li { position: relative; padding-left: 1.15rem; line-height: 1.55; }
.ho-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ho-sage);
}

/* ---------- boxes ---------- */
.ho-warn, .ho-normal { border-radius: var(--radius-sm); padding: 1.15rem 1.3rem; }
.ho-warn { background: var(--ho-warm); border: 1px solid var(--ho-warm-line); }
.ho-normal { background: var(--ho-tint); border: 1px solid var(--ho-line); }
.ho-warn h2, .ho-normal h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.ho-warn h2 { color: var(--ho-warm-ink); }
.ho-warn p { margin: 0; line-height: 1.55; }
.ho-warn .ho-list li::before { background: var(--ho-warm-dot); }
.ho-er { margin-top: .9rem !important; padding-top: .8rem; border-top: 1px solid var(--ho-warm-line); }

/* ---------- aftercare: good to know + normal / call us ---------- */
.ho-page2 { margin-top: 2.6rem; }
.ho-cells { display: grid; grid-template-columns: 1fr; gap: 1.2rem 2.6rem; }
@media (min-width: 760px) { .ho-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ho-cells h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ho-forest);
  margin: 0 0 .25rem;
}
.ho-cells p { margin: 0; line-height: 1.55; }
.ho-boxes { display: grid; grid-template-columns: 1fr; gap: 1.2rem 2.6rem; margin-top: 2.2rem; align-items: start; }
@media (min-width: 760px) { .ho-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- contact strip ---------- */
.ho-contact {
  margin-top: 2.4rem;
  background: var(--ho-forest);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.ho-contact p { margin: 0; }
.ho-contact-right { text-align: right; }
.ho-contact-label { font-size: .9rem; color: #DCE6D6; }
.ho-contact-big { font-family: var(--font-heading); font-size: 1.45rem; line-height: 1.3; }
.ho-contact a { color: #fff; text-decoration: none; }
.ho-contact a:hover, .ho-contact a:focus-visible { text-decoration: underline; color: #fff; }
@media (max-width: 559px) { .ho-contact-right { text-align: left; } }

/* ---------- printed / saved as PDF: the A4 handout ---------- */
@media print {
  @page { size: A4; margin: 12mm 13mm; }

  .skip-link, .site-header, .breadcrumbs, .site-footer, .whatsapp-fab,
  main#content > :not(.ho-wrap), .ho-actions, .ho-head .eyebrow { display: none !important; }

  html, body { background: #fff; }
  body { font-size: 10.5pt; line-height: 1.4; }
  .ho-wrap { padding: 0; max-width: none; }
  .ho { margin: 0; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .ho-letterhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 7pt;
    margin-bottom: 10pt;
    border-bottom: 1.5pt solid var(--ho-line);
  }
  .ho-letterhead img { height: 36pt; width: auto; }
  .ho-letterhead p { margin: 0; text-align: right; font-size: 9.5pt; line-height: 1.35; color: var(--ho-muted); }
  .ho-letterhead strong { display: block; color: var(--ho-forest); }

  .ho-head { border: 0; padding: 0; margin-bottom: 9pt; }
  .ho-head h1 { font-size: 22pt; margin: 0 0 3pt; }
  .ho-lede { font-size: 10.5pt; }
  .ho h2 { font-size: 13pt; margin-bottom: 4pt; }

  .ho-key { padding: 9pt 12pt; margin-bottom: 12pt; }
  .ho-key ol { gap: 4pt; }
  .ho-key li::before { width: 15pt; height: 15pt; font-size: 8.5pt; }

  .ho-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12pt 20pt; }
  .ho-col { gap: 12pt; }
  .ho-list { gap: 4pt; }
  .ho-list li, .ho-key li { line-height: 1.38; }
  .ho-warn, .ho-normal { padding: 8pt 10pt; break-inside: avoid; }
  .ho-warn h2, .ho-normal h2 { font-size: 11.5pt; }
  .ho-sec { break-inside: avoid; }

  .ho-page2 { break-before: page; margin-top: 0; }
  .ho-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8pt 20pt; }
  .ho-cells h3 { font-size: 10.5pt; }
  .ho-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12pt 20pt; margin-top: 14pt; }

  .ho-contact { margin-top: 14pt; padding: 8pt 12pt; break-inside: avoid; }
  .ho-contact-big { font-size: 13pt; }
  .ho-contact-right { text-align: right; }

  a[href]::after { content: ""; }
}
