/* ---- Elza (body) + Elza Condensed (display) ----
   Commercial fonts. Drop the licensed .woff2 files into assets/fonts/ with the
   names below. Until they're present, the site falls back to Archivo/system. */
@font-face {
  font-family: "Elza"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/external-docs/assets/fonts/Elza-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Elza"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/external-docs/assets/fonts/Elza-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Elza"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/external-docs/assets/fonts/Elza-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Elza Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/external-docs/assets/fonts/ElzaCondensed-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Elza Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/external-docs/assets/fonts/ElzaCondensed-ExtraBold.woff2") format("woff2");
}

:root {
  --ink: #111111;
  --ink-soft: #55524d;
  --line: #e5e2db;
  --line-soft: #f0ede7;
  --paper: #ffffff;
  --wash: #faf8f4;
  --focal: #ff7a00;
  --focal-wash: #fff3e6;
  --focal-ink: #b35500;
  --do: #1d9e75;
  --do-wash: #e6f5ef;
  --dont: #d64545;
  --dont-wash: #fbeaea;
  --warn: #b5710a;
  --warn-wash: #fdf3e0;
  --radius: 12px;
  --maxw: 720px;
  --font-display: "Elza Condensed", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Elza", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
a, button, .chip, .card { -webkit-tap-highlight-color: transparent; }
.chip:focus, .card:focus, .brand:focus { outline: none; }
.chip:focus-visible, .card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wash); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.brand { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; font-size: 20px; text-decoration: none; white-space: nowrap; }
.brand .dot { color: var(--focal); }
.searchbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.searchbox input { border: 0; background: transparent; outline: none; width: 100%; font-size: 16px; color: var(--ink); }
.searchbox svg { flex: none; color: var(--ink-soft); }

.hero { padding: 40px 0 20px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 8vw, 46px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p { color: var(--ink-soft); margin: 0; max-width: 34em; }

.fixit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--focal-wash);
  border: 1px solid var(--focal);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 8px 0 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.fixit-banner:hover { border-color: var(--focal-ink); box-shadow: inset 0 0 0 999px rgba(0,0,0,0.035); }
.fixit-banner:active { transform: scale(0.995); }
.fixit-banner-eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--focal-ink); margin-bottom: 4px; }
.fixit-banner-text h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.fixit-banner-text p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 40em; }
.fixit-banner-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.fixit-banner-arrow { flex: none; font-size: 24px; color: var(--focal-ink); }

.fixit-banner--compact { padding: 14px 18px; margin: 18px 0; }
.fixit-banner--compact .fixit-banner-text h2,
.fixit-banner--compact .fixit-banner-title { font-size: 17px; }
.fixit-banner--compact .fixit-banner-eyebrow { margin-bottom: 2px; }
.fixit-banner--compact .fixit-banner-arrow { font-size: 20px; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); border-radius: 999px; padding: 7px 15px; font-size: 14px; cursor: pointer; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.chip:hover { border-color: var(--ink); box-shadow: inset 0 0 0 999px rgba(0,0,0,0.035); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); opacity: 0.85; }

.card-list { display: grid; gap: 12px; padding: 12px 0 60px; }
.card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.card:hover { border-color: var(--ink); box-shadow: inset 0 0 0 999px rgba(0,0,0,0.035); }
.card:active { transform: scale(0.995); }
.card h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }

/* ---- lead card: entry point for a filtered audience ---- */
.lead-eyebrow { display: none; }
.card--lead .lead-eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--focal-ink); margin-bottom: 6px; }
/* one notch louder, if wanted: .card--lead { background: var(--focal-wash); } */

.doc { padding: 28px 0 90px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; font-size: 15px; margin-bottom: 18px; }
.doc-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 7vw, 40px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 10px; }
.doc-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 8px; }
.doc-body { margin-top: 22px; }
.doc-body > ul:first-of-type { list-style: none; padding-left: 0; }
.doc-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 34px 0 12px; padding-top: 10px; }
.doc-body p { margin: 0 0 14px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 15px; }
.doc-body ul.symptom-list li { margin-bottom: 14px; }
.doc-body ul.symptom-list li:last-child { margin-bottom: 0; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-body th { background: var(--wash); font-weight: 600; }

.warn { display: flex; gap: 12px; background: var(--warn-wash); border: 1px solid #f2dcb0; border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; }
.warn .ico { color: var(--warn); flex: none; margin-top: 2px; }
.warn p { margin: 0; font-size: 15px; }
.warn p strong { color: var(--warn); }

/* ---- framed diagrams (SVG) ----
   The frame hugs the diagram and sits in the text column so its left edge
   lines up with the step copy. Height is capped so tall art doesn't force
   scrolling; object-fit keeps the aspect ratio and object-position pins the
   drawing left so any slack falls on the right rather than as two side bars. */
.diagram { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.diagram img { display: block; width: auto; max-width: 100%; height: auto; max-height: 360px; object-fit: contain; object-position: left; margin: 0; }
/* photo-style diagrams: stretch edge to edge so no paper shows beside them */
.diagram-fill img { width: 100%; max-height: none; }
.diagram figcaption { font-size: 13px; color: var(--ink-soft); padding: 10px 14px; border-top: 1px solid var(--line-soft); }

.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.dd { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); }
.dd.do { background: var(--do-wash); border-color: #c2e6d7; }
.dd.dont { background: var(--dont-wash); border-color: #f2cccc; }
.dd .tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.dd.do .tag { color: var(--do); }
.dd.dont .tag { color: var(--dont); }
.dd p { margin: 0; font-size: 15px; }

.step { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--focal); min-width: 40px; }
.step-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 2px 0 6px; }
.step-body p { margin: 0 0 8px; font-size: 16px; }
/* grid-column: 2 / -1 aligns the diagram with the step text, not the number. */
.step-figure { grid-column: 2 / -1; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
/* several diagrams in one step: numbered in order, stacked or two-up with grid="true" */
.step-figures { grid-column: 2 / -1; display: grid; gap: 10px; counter-reset: fig; }
.step-grid { grid-template-columns: 1fr 1fr; max-width: 560px; }
.step-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
@media (max-width: 560px) { .step-grid-3 { grid-template-columns: 1fr; } }
.step-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.step-figures .step-figure { grid-column: auto; position: relative; counter-increment: fig; }
/* frames are numbered with a small inline "1." at the start of the caption, kept
   quiet so the big step numbers stay the only prominent ones. Frames without a
   caption carry the number over the image's corner instead. */
.step-figures figcaption::before { content: counter(fig) "."; flex: none; color: var(--focal); font-family: var(--font-display); font-weight: 700; }
.step-figures .step-figure:not(:has(figcaption))::before { content: counter(fig); position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--focal); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 24px; text-align: center; }
/* caption sits above its image, matching single-image steps where the text
   comes first. In a row, the caption grows so images start at the same height
   even when one caption wraps to more lines than its neighbour. */
.step-figure:has(figcaption) { display: flex; flex-direction: column; }
/* width: 0 + min-width: 100% keeps the caption from widening a fit-content frame */
.step-figure figcaption { display: flex; flex: 1 0 auto; gap: 6px; align-items: baseline; width: 0; min-width: 100%; box-sizing: border-box; font-size: 15px; line-height: 1.45; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.step-body .step-after { margin: 12px 0 0; }
/* variant: an alternative to the step above it. No number of its own; the
   56px (number column + gap) lines its text up with the step above. */
.step-variant { grid-template-columns: 1fr; margin-left: 56px; }
@media (max-width: 560px) { .step-variant { margin-left: 0; } }
main :is(.step-grid, .step-row) .step-figure:has(> img[src$=".png"]) { width: auto; }
main :is(.step-grid, .step-row) .step-figure img[src$=".png"] { width: 100%; }
.step-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 360px; object-fit: contain; object-position: left; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.checklist li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--focal); }

.diagram-missing { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, var(--wash), var(--wash) 12px, var(--line-soft) 12px, var(--line-soft) 24px); color: var(--ink-soft); font-size: 13px; text-align: center; padding: 20px; }

/* Footer utility band: feedback line + print button. Sets the type size and
   colour once so both children match by inheritance. */
.doc-footer { margin: 52px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
.print-btn {
  font-family: inherit; font-size: 13px; cursor: pointer;
  background: none; border: 0; border-radius: 4px; padding: 2px 0;
  color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 3px; transition: color 0.15s, text-decoration-color 0.15s;
}
.print-btn:hover { color: var(--ink); text-decoration-color: var(--ink-soft); }
.print-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.empty { color: var(--ink-soft); padding: 24px 0; }

@media (min-width: 640px) { .brand { font-size: 22px; } }
@media (max-width: 480px) { .dodont { grid-template-columns: 1fr; } }

.print-only-url { display: none; }

@media print {
  :root { --wash: #fff; }
  body { background: #fff; font-size: 12pt; }
  .topbar, .filter-row, .doc-footer, .crumb, .no-print { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .doc { padding: 0; }
  .card { break-inside: avoid; }
  .step, .dodont, .warn, .diagram, .checklist li { break-inside: avoid; }
  .doc-body h2 { break-after: avoid; }
  a { text-decoration: none; color: #000; }
  .diagram, .step-figure, .card { border-color: #ccc; }
  /* diagrams print at full size, not the on-screen height cap */
  .diagram img, .step-figure img { max-height: none; }
  /* so people can find their way back to the live page from a printout */
  .print-only-url { display: block; color: #666; font-size: 10pt; margin-top: 4px; }
}

/* ---- "On this page" list (plain markdown list, bullets stripped) ---- */
.doc-body h2:first-of-type { margin-top: 20px; }
.doc-body > ul:first-of-type { list-style: none; }



/* ---- printable installer packet ---- */
.packet { max-width: var(--maxw); margin: 0 auto; }
.packet-cover { padding: 40px 0 20px; }
.cover-brand { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin-bottom: 24px; }
.cover-brand .dot { color: var(--focal); }
.packet-cover h1 { font-family: var(--font-display); font-weight: 800; font-size: 40px; margin: 0 0 8px; letter-spacing: -0.02em; }
.cover-sub { color: var(--ink-soft); margin: 0 0 28px; font-size: 17px; }
.cover-qr {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 28px; background: var(--paper);
}
.cover-qr img { flex: none; }
.cover-qr-text { display: flex; flex-direction: column; gap: 4px; }
.cover-qr-text strong { font-size: 16px; }
.cover-qr-text span { color: var(--ink-soft); font-size: 14px; }
.cover-seq { padding-left: 22px; margin: 0 0 28px; }
.cover-seq li { margin: 8px 0; font-size: 16px; }
.cover-foot { color: var(--ink-soft); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }

.packet-guide { padding: 20px 0; }
.packet-guide-head { border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 8px; }
.packet-guide-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin: 0; }
.packet-ver { color: var(--ink-soft); font-size: 13px; }
/* the "On this page" heading + its list, hidden in the packet to avoid dead links */
.packet-guide h2#on-this-page,
.packet-guide h2#on-this-page + ul { display: none; }
/* every section is already on the page, so the per-step "Next" CTA is dead weight here */
.packet-guide .next-link { display: none; }
.packet-end { margin: 30px 0 60px; color: var(--ink-soft); font-size: 14px; }

@media print {
  .packet-cover { page-break-after: always; padding-top: 0; }
  .packet-guide { page-break-before: always; padding: 0; }
  .packet-guide:first-of-type { page-break-before: avoid; }
  .packet-end { display: none !important; }
}


/* ---- linked steps (Start Here) ---- */
a.step-link {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 10px 0;
  transition: border-color 0.15s, transform 0.1s;
}
a.step-link:hover { border-color: var(--ink); }
a.step-link:active { transform: scale(0.995); }
a.step-link .step-num {
  grid-row: 1 / 3;
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  line-height: 1; color: var(--focal); min-width: 34px;
}
a.step-link .step-body { display: block; }
a.step-link .step-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  margin-bottom: 4px;
}
a.step-link .step-desc { display: block; font-size: 15px; color: var(--ink-soft); }
.step-arrow { color: var(--focal); font-weight: 800; }

/* ---- sequence preview, non-clickable (Start Here) ---- */
.step-item {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  padding: 16px 18px; margin: 10px 0;
}
.step-item .step-num {
  grid-row: 1 / 3;
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  line-height: 1; color: var(--focal); min-width: 34px;
}
.step-item .step-body { display: block; }
.step-item .step-title {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  margin: 0 0 4px;
}
.step-item .step-desc { display: block; font-size: 15px; color: var(--ink-soft); }

/* ---- next-guide chaining (installer sequence) ---- */
a.next-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: #fff;
  border: 1px solid var(--focal); border-radius: var(--radius);
  background: var(--focal);
  padding: 20px 22px; margin: 40px 0 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 10px 22px -14px rgba(255,122,0,0.75);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
a.next-link:hover {
  background: #ea6f00; border-color: #ea6f00;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 14px 28px -14px rgba(255,122,0,0.9);
}
a.next-link:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
a.next-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a.next-link .next-label {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(255,255,255,0.78); white-space: nowrap;
}
a.next-link .next-title {
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  color: #fff; line-height: 1.15;
}
a.next-link .next-arrow {
  margin-left: auto; color: #fff; font-weight: 800; font-size: 20px;
}

.print-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--focal); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px;
  padding: 12px 18px; border-radius: 999px; margin: 6px 0 4px;
}
.print-link:hover { filter: brightness(0.95); }
.print-link svg { color: #fff; }

/* ---- brand logo image ---- */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 24px; width: auto; display: block; }
.cover-brand img { height: 34px; width: auto; display: block; }

/* ---- packet cover checklists ---- */
.cover-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 4px 0 28px; }
.cover-check-col h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft);
}
.cover-check-col .checklist { gap: 6px; }
.cover-check-col .checklist li { font-size: 14px; padding: 8px 12px; }
@media (max-width: 560px) { .cover-checks { grid-template-columns: 1fr; } }
@media print { .cover-checks { grid-template-columns: 1fr 1fr; } }


/* Inline PNG screenshots (phone captures) — capped so they don't dominate the
   page. Framed diagrams in .diagram / .step-figure are handled separately below. */
main img[src$=".png"] {
  display: block;
  width: auto;
  max-width: 420px;
  height: auto;
  margin: 0.75rem 0 0;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
}

main span:has(> img[src$=".png"]),
main div:not(.step-figure):has(> img[src$=".png"]),
main figure:not(.diagram, .step-figure):has(> img[src$=".png"]) {
  background: none;
  border: 0;
  padding: 0;
}

/* PNG screenshots inside a frame: the frame hugs the image and left-aligns to
   the text column, height-capped so tall phone captures don't force scrolling.
   Raster images carry a true intrinsic size, so fit-content is safe here. */
main .diagram:has(> img[src$=".png"]),
main .step-figure:has(> img[src$=".png"]) {
  width: fit-content;
  max-width: 100%;
  margin-inline: 0;
}
main .diagram img[src$=".png"],
main .step-figure img[src$=".png"] {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0;
  border: 0;
  border-radius: 0;
}



/* Offset anchor scroll position so the sticky topbar doesn't cover headings */
h2[id], h3[id] {
  scroll-margin-top: 64px; /* 49px header + ~15px breathing room */
}

/* No font-size or colour here on purpose: both are inherited from .doc-footer,
   which keeps this line and the print button identical. */
.feedback { margin: 0 0 7px; }
.feedback a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.feedback a:hover { color: var(--ink); text-decoration-color: var(--ink-soft); }
.feedback a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* ---- contact block (_includes/contact.html) ---- */
.contact { margin: 14px 0 20px; }
.contact p { margin: 0 0 10px; }
.contact p:last-child { margin-bottom: 0; }
.contact .contact-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.contact a { color: var(--focal); text-decoration: none; }
.contact a:hover { text-decoration: underline; }
/* ---- Video (_includes/video.html) ----
   Portrait 9:16 clips. Capped narrow so a vertical video doesn't run the whole
   height of the screen on a laptop. On phones it fills the column. The player
   is dropped for print and replaced by .video-print, a QR code plus the URL. */
.video {
  margin: 20px 0;
  max-width: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.video video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}
.video figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
}
.video-print { display: none; }

@media print {
  .video { max-width: none; break-inside: avoid; border-color: #ccc; }
  .video video, .video figcaption { display: none; }
  .video-print {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    font-size: 13px;
    color: var(--ink-soft);
  }
  /* Overrides the generic inline-PNG rule so the QR sits flush in the row. */
  .video-print img {
    width: 88px;
    height: 88px;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}
