/* ==========================================================================
   Digitalise components. Loaded on every page, straight after site.css.

   New, self-contained parts: the example dashboard, text message threads, the monthly
   report, before and after, the two-path chooser, "What you can count on", the guide
   layout, hub grids, the sample plan sheet, flow strips and data tables.

   Everything is built from the tokens in site.css. Nothing here changes a class that
   site.css already defines: where an existing class is reused (.related, .ticks, .dots)
   it is only adjusted inside one of the parts below.
   How to use each part: COMPONENTS.md and components.html in the kit.
   ========================================================================== */

:root {
  --tint-blue: #E9E9FD;
  --tint-amber: #FBF1D9;
  --ink-amber: #6E4A00;
  --shadow-soft: 0 1px 2px rgba(11, 11, 46, .05), 0 12px 32px rgba(11, 11, 46, .08);
  --shadow-deep: 0 1px 2px rgba(11, 11, 46, .06), 0 24px 56px rgba(11, 11, 46, .12);
  /* Two small drawings, kept inline so nothing extra is requested. Used as masks, so they take the text colour. */
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
  --i-tick-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
}


/* ==========================================================================
   Shared: the "Example" tag, the example figure, the arrow, and copy beside an example
   ========================================================================== */

/* The tag every illustration carries. Navy on light surfaces; add .eg-tag-light on navy. */
.eg-tag { display: inline-flex; align-items: center; flex: none; min-height: 24px; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: .75rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; white-space: nowrap; }
.eg-tag-light { background: var(--white); color: var(--navy); }

/* A figure around any example, with a caption that starts with a bold "Example". */
.eg-figure { margin: 0; }
.eg-figure > .sms, .eg-figure > .mreport { margin-inline: auto; }
.eg-figure:has(> .sms) > figcaption, .eg-figure:has(> .mreport) > figcaption { text-align: center; }
.eg-figure figcaption, .dash > figcaption { margin-top: 14px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.eg-figure figcaption b, .dash > figcaption b { color: var(--navy); font-weight: 600; }

/* A small arrow after a link's words. It takes the colour of the text. */
.arrow { display: inline-block; flex: none; width: 1.1em; height: 1.1em; margin-left: .3em; vertical-align: -.2em; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .15s var(--ease); }
a:hover > .arrow, a:hover > span > .arrow { transform: translateX(3px); }
@supports not ((mask-image: none) or (-webkit-mask-image: none)) { .arrow { display: none; } }

/* Copy on one side, an example on the other. Stacks under 900px. */
.eg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 5vw, 72px); align-items: center; }
.eg-split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eg-split > .sms, .eg-split > .eg-figure, .eg-split > .mreport, .eg-split > .demo { justify-self: center; }
/* A dashboard or a table has no width of its own, so its figure takes the whole column. */
.eg-split > .eg-figure:has(> .dash), .eg-split > .eg-figure:has(> .table-scroll) { justify-self: stretch; }
.eg-split-copy .lead { margin-top: 16px; }
.eg-split-copy .dots, .eg-split-copy .ticks { margin-top: 24px; }
.eg-split-copy .btn-row { margin-top: 32px; }
@media (min-width: 901px) {
  .eg-split-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .eg-split-flip.eg-split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-split-flip > :first-child { order: 2; }
}
@media (max-width: 900px) {
  .eg-split, .eg-split-even { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   1. Example dashboard
   An app window titled "Your business". Pure HTML and CSS. It lays itself out by its own
   width (container queries), so the same markup works full width, in half a column and on a phone.
   ========================================================================== */

.dash { container-type: inline-size; container-name: dash; margin: 0; }
.dash-window { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-deep); color: var(--ink); font-size: .875rem; line-height: 1.4; text-align: left; }

/* Window bar */
.dash-bar { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.dash-dots { display: none; flex: none; gap: 6px; margin-right: 4px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dash-title { display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; color: var(--navy); font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.dash-title::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--blue) 45%, var(--magenta) 140%); }
.dash-bar .eg-tag { margin-left: auto; }

/* Side rail: shown only when the window is wide. Decoration, hidden from screen readers in the markup. */
.dash-app { display: grid; grid-template-columns: minmax(0, 1fr); }
.dash-nav { display: none; }
.dash-nav span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-ctl); font-size: .875rem; font-weight: 500; line-height: 1.3; }
.dash-nav span::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .55; }
.dash-nav .is-on { background: rgba(255, 255, 255, .12); color: var(--white); }
.dash-nav .is-on::before { background: var(--magenta); opacity: 1; }
.dash-nav small { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 16px 12px 4px; font-size: .75rem; line-height: 1.35; }
.dash-nav small::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }

/* Main area */
.dash-main { display: grid; gap: 12px; min-width: 0; padding: 12px; transition: opacity .16s var(--ease); }
.dash.is-swapping .dash-main { opacity: 0; }
.dash-now { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 2px 0; }
.dash-now b { color: var(--navy); font-size: 1.125rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.dash-now span { color: var(--muted); font-size: .8125rem; }

/* Number tiles: the number, what it counts, then a short note */
.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.dash-tiles li { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.dash-tiles b { color: var(--navy); font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: lining-nums proportional-nums; }
.dash-tiles span { margin-top: 6px; color: var(--navy); font-size: .8125rem; font-weight: 500; line-height: 1.3; }
.dash-tiles small { margin-top: auto; padding-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.dash-tiles .is-warn small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #B67A00; }
.dash-tiles .is-hero { border-color: var(--navy); background: var(--navy); }
.dash-tiles .is-hero b, .dash-tiles .is-hero span { color: var(--white); }
.dash-tiles .is-hero small { color: var(--on-navy); }

/* Panels: Today, Needs you, the chart */
.dash-cols, .dash-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.dash-panel { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.dash-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dash-h b { min-width: 0; color: var(--navy); font-size: .9375rem; font-weight: 600; }
.dash-h span { flex: none; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.dash-panel ol, .dash-panel ul { flex: 1; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }

/* Today: time, what happened, status */
.dash-feed li { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dash-feed li:last-child, .dash-needs li:last-child { border-bottom: 0; }
.dash-t { grid-column: 1; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-e { grid-column: 1 / -1; grid-row: 2; min-width: 0; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.dash-e b { display: block; color: var(--navy); font-size: .875rem; font-weight: 600; }
.dash-chip { grid-column: 2; grid-row: 1; padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--navy); font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.dash-chip.is-in { background: var(--tint-blue); color: var(--blue-deep); }
.dash-chip.is-done { background: var(--blue); color: var(--white); }

/* Needs you: things flagged for a person */
.dash-needs .dash-h span { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--tint-amber); color: var(--ink-amber); font-size: .75rem; font-weight: 600; line-height: 1.5; text-align: center; }
.dash-needs li { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); }
.dash-needs li b { position: relative; color: var(--navy); font-weight: 600; }
.dash-needs li b::before { content: ""; position: absolute; left: -17px; top: .42em; width: 8px; height: 8px; border-radius: 50%; background: #B67A00; }
.dash-needs li span { margin-top: 2px; color: var(--muted); font-size: .8125rem; }

/* The chart: one column per day, the value printed on top. The spacer and the bar share the free
   height in the ratio (max - value) : value, so no fixed heights are needed. */
.dash-panel .dash-bars { flex: 1 1 136px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 120px; max-height: 180px; margin: auto 0 0; padding: 12px 0 0; list-style: none; }
.dash-bars li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.dash-bars li::before { content: ""; order: 0; flex: calc(var(--max, 10) - var(--v, 0)) 0 0px; }
.dash-bars b { order: 1; flex: none; padding-bottom: 4px; color: var(--navy); font-size: .75rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dash-bars i { order: 2; flex: var(--v, 0) 0 0px; width: min(24px, 58%); border-radius: 4px 4px 0 0; background: var(--blue); }
.dash-bars span { order: 3; flex: none; align-self: stretch; padding-top: 6px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .75rem; line-height: 1.3; text-align: center; }
.dash-bars .is-today span { color: var(--navy); font-weight: 600; }
.dash-note { margin: 8px 0 8px; color: var(--muted); font-size: .75rem; line-height: 1.4; }

@container dash (max-width: 339px) {
  .dash-title::before { display: none; }
  .dash-bar { gap: 8px; padding-left: 12px; }
}
@container dash (min-width: 400px) {
  .dash-dots { display: inline-flex; }
}
@container dash (min-width: 520px) {
  .dash-main { gap: 16px; padding: 16px; }
  .dash-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .dash-tiles li { padding: 14px 16px; }
  .dash-cols, .dash-side { gap: 16px; }
  .dash-side { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
  .dash-compact .dash-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-feed li { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .dash-t, .dash-e, .dash-chip { grid-column: auto; grid-row: auto; }
}
@container dash (min-width: 760px) {
  .dash-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .dash-side, .dash-compact .dash-side { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
}
@container dash (min-width: 1040px) {
  .dash-app { grid-template-columns: 188px minmax(0, 1fr); }
  .dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 20px 12px 16px; background: var(--navy); color: var(--on-navy); }
  .dash-main { padding: 20px 24px 24px; }
  .dash-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash-tiles b { font-size: 2rem; }
}

/* Compact size, for half a column: four tiles, four events and two flagged items. The markup is the same. */
.dash-compact .dash-tiles li:nth-child(4), .dash-compact .dash-tiles li:nth-child(5), .dash-compact .dash-feed li:nth-child(n+5), .dash-compact .dash-needs li:nth-child(n+3), .dash-compact .dash-needs .dash-h span { display: none; }
.dash-compact .dash-feed li:nth-child(4), .dash-compact .dash-needs li:nth-child(2) { border-bottom: 0; }
@container dash (min-width: 520px) {
  .dash-compact .dash-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The optional switcher. Same look as "Example jobs for" in the home page hero. It ships with the
   hidden attribute and components.js shows it, so it never appears as a dead control. */
.dash-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.dash-switch legend { float: left; margin-right: 12px; padding: 0; color: var(--muted); font-size: .875rem; line-height: 44px; }
.dash-switch-track { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--raised); }
.section-paper .dash-switch-track { background: #E6EAF2; }
.dash-switch input { position: absolute; opacity: 0; pointer-events: none; }
.dash-switch label { padding: 10px 14px; border-radius: 999px; color: var(--navy); font-size: .875rem; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--ease); }
.dash-switch label:hover { background: rgba(255, 255, 255, .6); }
.dash-switch input:checked + label { background: var(--white); box-shadow: 0 0 0 1.5px var(--navy); }
.dash-switch input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 640px) {
  .dash-switch { margin-bottom: 16px; }
  .dash-switch legend { float: none; width: 100%; margin: 0; line-height: 1.4; }
  .dash-switch-track { display: flex; flex-wrap: wrap; width: 100%; border-radius: 24px; }
  .dash-switch label { display: flex; flex: 1 1 22%; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; font-size: .8125rem; text-align: center; }
  .dash-switch input { scroll-margin: 96px 0; }
}


/* ==========================================================================
   2. Text message thread
   A phone with a short SMS conversation, seen on the customer's phone: grey bubbles come
   from the business, blue bubbles are the customer's replies.
   ========================================================================== */

.sms { display: flex; flex-direction: column; width: min(100%, 320px); margin: 0; }
.sms-phone { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 30rem; overflow: hidden; border: 8px solid var(--navy); border-radius: 40px; background: var(--white); box-shadow: var(--shadow-soft); color: var(--ink); text-align: left; }
.sms-phone::before { content: ""; position: absolute; left: 50%; top: 8px; width: 72px; height: 18px; margin-left: -36px; border-radius: 999px; background: var(--navy); }
.sms-phone::after { content: ""; flex: none; width: 96px; height: 4px; margin: 8px auto 7px; border-radius: 999px; background: var(--line-strong); }
.sms-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 38px 12px 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sms-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: .8125rem; font-weight: 600; line-height: 1; }
.sms-who { flex: 1; min-width: 0; }
.sms-who b { display: block; overflow: hidden; color: var(--navy); font-size: .9375rem; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.sms-who span { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.sms-thread { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 12px 12px 16px; list-style: none; }
.sms-time { align-self: center; margin: 4px 0 2px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.sms-in, .sms-out { max-width: 88%; padding: 9px 13px; border-radius: 18px; font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.sms-in { border-bottom-left-radius: 6px; background: var(--raised); color: var(--ink); }
.sms-out { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--blue); color: var(--white); }
.sms-out + .sms-in, .sms-in + .sms-out, .sms-link + .sms-out { margin-top: 4px; }
/* A link inside a text, shown the way phones show one. Not a real link. */
.sms-link { display: inline-flex; align-items: center; gap: 8px; max-width: 88%; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white); color: var(--blue); font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.sms-link::after { content: ""; flex: none; width: 16px; height: 16px; margin-left: -2px; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
/* What happened in the business as a result. Sits where the keyboard would be. */
.sms-status { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 14px; border-top: 1px solid var(--line); background: var(--paper); color: var(--navy); font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.sms-status::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) var(--i-tick-white) center / 12px 12px no-repeat; }
.sms > figcaption { margin-top: 14px; color: var(--muted); font-size: .9375rem; line-height: 1.5; text-align: center; }
.sms > figcaption b { color: var(--navy); font-weight: 600; }

/* Two or three phones side by side. At 900px and under the row becomes a strip to swipe sideways. */
.sms-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px clamp(24px, 4vw, 56px); }
.sms-row > .sms { flex: 0 1 320px; }
@media (max-width: 900px) {
  .sms-row { flex-wrap: nowrap; justify-content: flex-start; justify-content: safe center; gap: 16px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 28px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sms-row::-webkit-scrollbar { display: none; }
  .sms-row > .sms { flex: 0 0 min(84%, 320px); scroll-snap-align: center; }
  .sms-row.sms-row-stack { flex-direction: column; align-items: center; overflow: visible; margin-inline: 0; padding: 0; gap: 32px; }
  .sms-row.sms-row-stack > .sms { flex: none; width: min(100%, 320px); }
}


/* ==========================================================================
   3. Monthly report
   A mock of the short report Digitalise sends each month.
   ========================================================================== */

.mreport { width: min(100%, 30rem); margin: 0; padding: clamp(20px, 2vw + 12px, 32px); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--white); box-shadow: var(--shadow-soft); color: var(--ink); text-align: left; }
.mreport-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--navy); }
.mreport-title { color: var(--navy); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.mreport-sub { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.mreport-rows { margin: 0; }
.mreport-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mreport-rows dt { color: var(--ink); }
.mreport-rows dd { margin: 0; color: var(--navy); font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mreport-rows .is-total { margin-top: 12px; padding: 14px 16px; border: 0; border-radius: var(--r-card); background: var(--navy); }
.mreport-rows .is-total dt { color: var(--white); font-weight: 500; }
.mreport-rows .is-total dd { color: var(--white); font-size: 1.375rem; }
.mreport-h { margin-top: 20px; color: var(--navy); font-size: 1rem; font-weight: 600; }
.mreport .dots { margin-top: 10px; }
.mreport .dots li { color: var(--ink); font-weight: 400; }
.mreport-next { margin-top: 20px; padding: 14px 16px; border-radius: var(--r-card); background: var(--paper); }
.mreport-next b { display: block; margin-bottom: 2px; color: var(--navy); font-weight: 600; }
.mreport-foot { margin-top: 16px; color: var(--muted); font-size: .875rem; }


/* ==========================================================================
   4. Before and after
   A list of pairs. Each pair stays together when the columns stack on phones.
   ========================================================================== */

.ba { --ba-gap: 52px; }
.ba-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--ba-gap); margin-bottom: 12px; }
.ba-head span { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.ba-head span:last-child { background: var(--navy); color: var(--white); }
.ba-rows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ba-row { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--ba-gap); }
.ba-row::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--blue); -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
.ba-before, .ba-after { position: relative; margin: 0; padding: 16px 20px 16px 48px; border-radius: var(--r-card); line-height: 1.5; }
.ba-before { background: var(--raised); color: var(--muted); }
.ba-after { border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); font-weight: 500; box-shadow: 0 1px 2px rgba(11, 11, 46, .05); }
.ba-before::before { content: ""; position: absolute; left: 20px; top: calc(16px + .75em - 1px); width: 14px; height: 2px; border-radius: 1px; background: currentColor; opacity: .7; }
.ba-after::before { content: ""; position: absolute; left: 17px; top: calc(16px + .75em - 10px); width: 20px; height: 20px; background: var(--blue); -webkit-mask: var(--i-tick) center / contain no-repeat; mask: var(--i-tick) center / contain no-repeat; }
.ba-label { font-weight: 600; }
@media (min-width: 761px) {
  /* On wide screens the column headings do the labelling, so the label inside each cell is for screen readers only. */
  .ba-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (max-width: 760px) {
  .ba-head { display: none; }
  .ba-rows { gap: 16px; }
  .ba-row { grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-card); }
  .ba-row::after { display: none; }
  .ba-before, .ba-after { border: 0; border-radius: 0; box-shadow: none; padding: 14px 16px 14px 44px; }
  .ba-before::before { left: 16px; top: calc(14px + .75em - 1px); }
  .ba-after::before { left: 13px; top: calc(14px + .75em - 10px); }
  .ba-label { display: block; margin-bottom: 2px; font-size: .8125rem; }
  .ba-before .ba-label { color: var(--muted); }
  .ba-after .ba-label { color: var(--blue); }
}


/* ==========================================================================
   5. Two-path chooser
   Two large link cards. The link at the foot of each card covers the whole card.
   ========================================================================== */

.chooser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.chooser-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 2vw + 12px, 40px); border: 1px solid var(--line-strong); border-radius: var(--r-panel); background: var(--white); color: var(--ink); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.chooser-card:hover { border-color: var(--navy); background: var(--paper); }
.section-paper .chooser-card:hover { background: var(--white); box-shadow: var(--shadow-soft); }
.chooser-card h2, .chooser-card h3 { color: var(--navy); font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; }
.chooser-card > p { margin-top: 12px; }
.chooser-card .dots { margin-top: 20px; }
.chooser-link { display: inline-flex; align-items: center; align-self: flex-start; margin-top: auto; padding-top: 28px; font-weight: 600; text-decoration: none; }
.chooser-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.chooser-card:hover .chooser-link { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.chooser-card:hover .arrow { transform: translateX(3px); }
@supports selector(:has(a)) {
  .chooser-card:has(.chooser-link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
  .chooser-link:focus-visible { outline: none; }
}
@media (max-width: 760px) {
  .chooser { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}


/* ==========================================================================
   6. What you can count on
   A panel of standing commitments. Reuses the .ticks list from site.css. Light, or navy with .counton-navy.
   ========================================================================== */

.counton { container-type: inline-size; padding: clamp(24px, 2vw + 12px, 40px); border-radius: var(--r-panel); background: var(--paper); color: var(--ink); }
.section-paper .counton { background: var(--white); }
.counton h2, .counton h3 { color: var(--navy); font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; }
.counton > p { margin-top: 12px; max-width: 40rem; }
.counton .ticks { gap: 12px; margin-top: 24px; }
.counton .btn-row { margin-top: 28px; }
@container (min-width: 680px) {
  /* Two columns that read down, then across, and stay balanced when the gated line is switched on. */
  .counton .ticks { display: block; columns: 2; column-gap: 48px; margin-bottom: -12px; }
  .counton .ticks li { margin-bottom: 12px; break-inside: avoid; }
}
.counton-navy, .section-paper .counton-navy { background: var(--navy); color: var(--on-navy); }
.counton-navy h2, .counton-navy h3, .counton-navy .ticks { color: var(--white); }
.counton-navy .ticks svg { color: var(--magenta); }
.counton-navy :focus-visible { outline-color: var(--white); }
.counton-navy p a:not(.btn) { color: var(--white); }


/* ==========================================================================
   7. Guides: the long-form article
   ========================================================================== */

.article-head { padding-block: clamp(48px, 4vw + 24px, 88px) clamp(32px, 3vw + 16px, 56px); }
.article-kicker { display: inline-flex; align-items: center; min-height: 28px; margin-bottom: 20px; padding: 3px 12px; border-radius: 999px; background: var(--tint-blue); color: var(--blue-deep); font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
a.article-kicker:hover { background: var(--blue); color: var(--white); }
.article-head h1, .article-head .article-title { max-width: 22ch; }
.article-head .article-title { font-size: clamp(2.375rem, 1.15rem + 3.4vw, 3.75rem); line-height: 1.05; letter-spacing: -.028em; }
.article-head .lead { max-width: 44rem; margin-top: 24px; }
.article-meta { margin-top: 20px; color: var(--muted); font-size: .9375rem; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: clamp(64px, 5vw + 32px, 112px); }
.article-body { max-width: 44rem; font-size: 1.125rem; line-height: 1.65; }
.article-body > * + * { margin-top: 1.15em; }
.article-body > :first-child { margin-top: 0; }
/* These reach the article's own headings, lists and quotes only, never a component placed inside it. */
.article-body > h2 { margin-top: 2.1em; font-size: clamp(1.5rem, 1.3rem + .7vw, 1.875rem); line-height: 1.2; letter-spacing: -.015em; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-body > h3 { margin-top: 1.8em; font-size: 1.25rem; line-height: 1.3; }
.article-body > h2 + *, .article-body > h3 + * { margin-top: .65em; }
.article-body > ul:not([class]), .article-body > ol:not([class]) { padding-left: 1.4em; }
.article-body > ul:not([class]) { list-style: none; }
.article-body > ul:not([class]) > li { position: relative; }
.article-body > ul:not([class]) > li::before { content: ""; position: absolute; left: -1.15em; top: .68em; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }
.article-body > ol:not([class]) > li::marker { color: var(--blue); font-weight: 600; }
.article-body > :is(ul, ol):not([class]) > li + li { margin-top: .45em; }
.article-body > blockquote { margin: 1.8em 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--blue); color: var(--navy); font-size: 1.1875rem; font-weight: 500; line-height: 1.5; }
.article-body > blockquote p + p { margin-top: .6em; }
.article-body > blockquote footer, .article-body > blockquote cite { display: block; margin-top: .5em; color: var(--muted); font-size: .9375rem; font-style: normal; font-weight: 400; }
.article-body .eg-figure, .article-body .table-scroll, .article-body .msg-template, .article-body .keypoints, .article-body .callout { margin-block: 1.8em; }

/* Key points: the short version, near the top */
.keypoints { padding: 20px 24px 22px; border-radius: var(--r-card); background: var(--paper); font-size: 1rem; line-height: 1.55; }
.section-paper .keypoints { background: var(--white); }
.keypoints-title { color: var(--navy); font-size: 1rem; font-weight: 600; }
.keypoints .dots { margin-top: 12px; }

/* Callout: one thing worth stopping for */
.callout { padding: 16px 20px; border-left: 3px solid var(--blue); border-radius: 0 var(--r-card) var(--r-card) 0; background: var(--tint-blue); color: var(--navy); font-size: 1rem; line-height: 1.55; }
.callout b:first-child { font-weight: 600; }
.callout p + p { margin-top: 8px; }
.callout a { color: var(--blue-deep); }

/* Message template: wording to copy. components.js adds the Copy button. */
.msg-template { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--white); font-size: 1rem; }
.msg-template-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.msg-template-label { min-width: 0; color: var(--navy); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.msg-template-label span { color: var(--muted); font-weight: 400; }
.msg-template-text { margin: 0; padding: 16px; color: var(--ink); font: 400 1rem/1.55 var(--font); white-space: pre-line; overflow-wrap: anywhere; }
.msg-var { padding: 1px 2px; border-radius: 4px; background: var(--tint-blue); color: var(--blue-deep); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.msg-copy { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--navy); font: 500 .875rem/1 var(--font); cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.msg-copy:hover { background: var(--raised); }
.msg-copy.is-copied { border-color: var(--navy); background: var(--navy); color: var(--white); }
@media (max-width: 640px) {
  .msg-copy { min-height: 44px; scroll-margin-bottom: 96px; }
}

/* Beside the article on wide screens: what is on the page, and a way to get in touch */
.article-aside { display: grid; gap: 16px; align-content: start; }
.article-toc { padding: 20px 24px; border-radius: var(--r-card); background: var(--paper); }
.article-toc-title { color: var(--navy); font-size: .9375rem; font-weight: 600; }
.article-toc ol { margin: 10px 0 0; padding: 0; list-style: none; }
.article-toc li + li { margin-top: 2px; }
.article-toc a { display: block; padding: 5px 0; color: var(--ink); font-size: .9375rem; line-height: 1.4; text-decoration: none; }
.article-toc a:hover { color: var(--blue); text-decoration: underline; }
.article-cta { display: none; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-card); }
.article-cta-title { color: var(--navy); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.article-cta p + p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.article-cta .btn-row { margin-top: 16px; }
@media (min-width: 1100px) {
  .article-grid { grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: 48px 80px; }
  .article-aside { order: 2; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; justify-self: end; width: min(100%, 20rem); }
  .article-cta { display: block; }
}
@media (max-width: 640px) {
  .article-body { font-size: 1.0625rem; }
  .article-body > blockquote { font-size: 1.125rem; }
}

/* End of a guide: related guides, then the invitation */
.article-end { padding-block: clamp(48px, 4vw + 24px, 88px); border-top: 1px solid var(--line); }
.article-end > .wrap > h2 { font-size: clamp(1.5rem, 1.3rem + .7vw, 1.875rem); line-height: 1.2; letter-spacing: -.015em; }
.article-end .related.hub-grid { margin-top: 24px; }


/* ==========================================================================
   8. Hub grid
   An extension of .related from site.css: add .hub-grid to it. Adds a two-column step for
   tablets, an optional small label and an arrow.
   ========================================================================== */

.related.hub-grid { margin-top: 0; }
.related.hub-grid a { background: var(--white); }
.related.hub-grid a:hover { background: var(--paper); }
.section-paper .related.hub-grid a:hover { background: var(--white); box-shadow: var(--shadow-soft); }
.related .hub-label { margin: 0; padding: 0; color: var(--muted); font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.related.hub-grid a > span:last-child { display: inline-flex; align-items: center; }
.related.hub-grid a > span:last-child::after { content: ""; flex: none; width: 1.1em; height: 1.1em; margin-left: .3em; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .15s var(--ease); }
.related.hub-grid a:hover > span:last-child::after { transform: translateX(3px); }
@media (min-width: 600px) and (max-width: 860px) {
  .related.hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* An odd card left on the last row takes the whole row, so no half-empty row is left. */
  .related.hub-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .related.hub-grid { gap: 12px; }
}


/* ==========================================================================
   9. Document sheet (the sample Hours-Back Plan)
   An A4-style sheet on a soft background. Print rules at the end of this file.
   ========================================================================== */

.doc-stage { padding: clamp(20px, 4vw, 56px) clamp(12px, 3vw, 40px); border-radius: var(--r-panel); background: var(--raised); }
.doc { position: relative; width: min(100%, 210mm); margin-inline: auto; padding: clamp(24px, 7vw, 18mm) clamp(20px, 7vw, 18mm); border-radius: 6px; background: var(--white); box-shadow: 0 1px 2px rgba(11, 11, 46, .06), 0 16px 40px rgba(11, 11, 46, .1); color: var(--ink); font-size: .9375rem; line-height: 1.55; counter-reset: doc-section; }
.doc-cover { padding-bottom: 28px; border-bottom: 2px solid var(--navy); }
.doc-cover-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-cover-top img { width: auto; height: 30px; }
.doc-sample { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px; background: var(--magenta); color: var(--navy); font-size: .875rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.doc-title { margin-top: clamp(32px, 6vw, 56px); color: var(--navy); font-size: clamp(2rem, 1.3rem + 3vw, 2.75rem); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
.doc-for { margin-top: 10px; color: var(--navy); font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.doc-for span { color: var(--muted); font-weight: 400; }
.doc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 28px 0 0; }
.doc-meta dt { color: var(--muted); font-size: .8125rem; }
.doc-meta dd { margin: 2px 0 0; color: var(--navy); font-weight: 500; }
.doc-intro { margin-top: 24px; }
.doc-section { margin-top: 36px; }
.doc-section > :is(h2, h3, h4) { display: flex; align-items: baseline; gap: 12px; margin: 0; color: var(--navy); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; counter-increment: doc-section; }
.doc-section > :is(h2, h3, h4)::before { content: counter(doc-section); flex: none; color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-section > p { margin-top: 10px; }
.doc-section > .table-scroll, .doc-section > .doc-list, .doc-section > .doc-steps, .doc-section > .doc-quote { margin-top: 16px; }
.doc .table-scroll { border-radius: 10px; }
.doc .data-table { font-size: .875rem; }
.doc .data-table th, .doc .data-table td { padding: 9px 12px; }
.doc-sum { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--paper); }
.doc-sum b { color: var(--navy); font-weight: 600; }
/* Not worth automating: an open square in place of the filled one */
.doc-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc-list li { position: relative; padding-left: 22px; }
.doc-list li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 3px; }
.doc-list b { color: var(--navy); font-weight: 600; }
.doc-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: doc-step; }
.doc-steps li { position: relative; padding-left: 34px; counter-increment: doc-step; }
.doc-steps li::before { content: counter(doc-step); position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .75rem; font-weight: 600; line-height: 1; }
.doc-steps b { color: var(--navy); font-weight: 600; }
/* The quote panel never shows an amount */
.doc-quote { padding: 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); background: var(--paper); text-align: center; }
.doc-quote b { display: block; color: var(--navy); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.doc-quote p { max-width: 30rem; margin: 6px auto 0; color: var(--muted); }
.doc-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.doc-foot b { color: var(--navy); font-weight: 600; }
@media screen and (max-width: 640px) {
  .doc-stage { margin-inline: calc(var(--gutter) * -1); padding: 16px 10px; border-radius: 0; }
  .doc { border-radius: 4px; }
  .doc-meta { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .doc-quote { padding: 20px 16px; }
}


/* ==========================================================================
   10. Flow strip
   What moves where: two to four boxes joined by arrows. An ordered list.
   ========================================================================== */

.flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 48px; margin: 0; padding: 0; list-style: none; }
.flow li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--white); color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.flow li b { color: var(--navy); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.flow li + li::before { content: ""; position: absolute; left: -36px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--blue); -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
.flow li:last-child { border-color: var(--navy); background: var(--navy); color: var(--on-navy); }
.flow li:last-child b { color: var(--white); }
.flow.flow-plain li:last-child { border-color: var(--line-strong); background: var(--white); color: var(--muted); }
.flow.flow-plain li:last-child b { color: var(--navy); }
@media (max-width: 760px) {
  .flow { grid-auto-flow: row; gap: 40px; }
  .flow li { min-height: 0; }
  .flow li + li::before { left: 50%; top: -32px; margin: 0 0 0 -12px; transform: rotate(90deg); }
}


/* ==========================================================================
   11. Data table
   A plain table in a scrolling frame. With JavaScript, each row becomes a small card on phones.
   ========================================================================== */

.table-scroll { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--white); -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline-offset: 2px; border-radius: var(--r-card); }
.data-table { width: 100%; min-width: 34rem; border-collapse: collapse; color: var(--ink); font-size: .9375rem; line-height: 1.45; text-align: left; }
.data-table caption { caption-side: top; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; text-align: left; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.data-table thead th { border-bottom-color: var(--line-strong); background: var(--paper); color: var(--navy); font-size: .8125rem; font-weight: 600; vertical-align: bottom; }
.data-table tbody th { color: var(--navy); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tfoot th, .data-table tfoot td { border-top: 2px solid var(--navy); border-bottom: 0; background: var(--paper); color: var(--navy); font-weight: 600; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.num { white-space: nowrap; }
.data-table thead .num { width: 7.5rem; }
@media screen and (max-width: 640px) {
  /* components.js labels every cell with its column heading, then adds these classes. */
  .table-scroll.is-stacked { overflow: visible; border: 0; border-radius: 0; background: none; }
  .data-table.is-stackable { display: block; min-width: 0; }
  .data-table.is-stackable caption { display: block; padding: 0 0 10px; border: 0; }
  .data-table.is-stackable thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .data-table.is-stackable tbody, .data-table.is-stackable tfoot { display: grid; gap: 10px; }
  .data-table.is-stackable tfoot { margin-top: 10px; }
  .data-table.is-stackable tr { display: block; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--white); }
  .data-table.is-stackable tfoot tr { border-color: var(--navy); background: var(--paper); }
  .data-table.is-stackable th, .data-table.is-stackable td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 5px 0; border: 0; background: none; text-align: left; white-space: normal; }
  .data-table.is-stackable td::before, .data-table.is-stackable th[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; color: var(--muted); font-size: .8125rem; font-weight: 500; line-height: 1.6; }
  .data-table.is-stackable td.num { grid-template-columns: minmax(0, 1fr) auto; }
  .data-table.is-stackable tbody th:first-child, .data-table.is-stackable tfoot th:first-child { display: block; padding: 0 0 6px; font-size: 1rem; }
  .data-table.is-stackable tbody th:first-child::before, .data-table.is-stackable tfoot th:first-child::before { content: none; }
}


/* ==========================================================================
   Guards, phones, motion and print
   ========================================================================== */

/* These parts stay left aligned inside a centred block, and light panels keep navy headings on a navy section. */
.ba, .chooser-card, .counton, .flow, .doc, .msg-template, .keypoints, .callout, .article-toc, .article-cta { text-align: left; }
.section-navy :is(.chooser-card, .counton:not(.counton-navy), .doc, .keypoints, .mreport, .article-cta) :is(h2, h3, h4) { color: var(--navy); }

@media (max-width: 640px) {
  /* Room for the fixed Call and Book a visit bar when one of these takes keyboard focus. */
  .chooser-link, .related.hub-grid a, .article-toc a, .article-kicker, .table-scroll, .sms-row { scroll-margin-bottom: 96px; }
}
@media (max-width: 1099px) {
  /* Touch screens: the contents links and the small "Guide" label are at least 44px tall to tap.
     The label keeps its look and gets a taller invisible tap area. */
  .article-toc li + li { margin-top: 0; }
  .article-toc a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; }
  .article-kicker { position: relative; }
  .article-kicker::after { content: ""; position: absolute; inset: -8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .arrow, .dash-main, .dash-switch label, .chooser-card, .msg-copy, .related.hub-grid a > span:last-child::after { transition: none; }
  a:hover > .arrow, a:hover > span > .arrow, .chooser-card:hover .arrow, .related.hub-grid a:hover > span:last-child::after { transform: none; }
}

/* Printing a page that holds a document sheet prints the sheet alone, as clean A4 pages:
   no header, navigation, footer, phone bar, forms or buttons. Colours are kept, every page carries
   a faint "Sample" and a page number. The page size only applies to pages that hold a sheet. */
@page plan {
  size: A4;
  margin: 15mm 15mm 17mm;
  @bottom-right { content: counter(page) " / " counter(pages); color: #565B70; font: 8pt "Hanken Grotesk", system-ui, sans-serif; }
}
@media print {
  body:has(.doc) *:not(:has(.doc)):not(.doc):not(.doc *) { display: none !important; }
  body:has(.doc), body:has(.doc) :has(.doc) { display: block !important; position: static !important; width: auto !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; }
  .doc { page: plan; width: auto; max-width: none; margin: 0; padding: 0; border-radius: 0; box-shadow: none; font-size: 10pt; line-height: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Chromium repeats a fixed box on every printed page. */
  .doc::before { content: "Sample"; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-32deg); color: rgba(20, 20, 92, .045); font-size: 120pt; font-weight: 700; line-height: 1; letter-spacing: -.02em; pointer-events: none; }
  .doc .btn, .doc button, .doc form, .doc nav, .doc .no-print { display: none !important; }
  .doc-cover { padding-bottom: 16pt; }
  .doc-cover-top img { height: 22pt; }
  .doc-title { margin-top: 22pt; font-size: 28pt; }
  .doc-for { font-size: 12pt; }
  .doc-meta { margin-top: 16pt; }
  .doc-intro { margin-top: 14pt; }
  .doc-section { margin-top: 20pt; }
  .doc-section > :is(h2, h3, h4) { font-size: 13pt; }
  .doc-section > p { margin-top: 6pt; }
  .doc-section > .table-scroll, .doc-section > .doc-list, .doc-section > .doc-steps, .doc-section > .doc-quote { margin-top: 10pt; }
  .doc .table-scroll { overflow: visible; }
  .doc .data-table { min-width: 0; font-size: 9pt; }
  .doc .data-table th, .doc .data-table td { padding: 6pt 8pt; }
  .doc thead { display: table-header-group; }
  .doc-sum { margin-top: 10pt; padding: 8pt 12pt; }
  .doc-list, .doc-steps { gap: 6pt; }
  .doc-quote { padding: 14pt; }
  .doc-foot { margin-top: 20pt; padding-top: 10pt; font-size: 8pt; }
  .doc tr, .doc li, .doc-cover, .doc-quote, .doc-sum, .doc-meta, .doc-foot, .doc-section:not(:has(table)) { break-inside: avoid; page-break-inside: avoid; }
  .doc h2, .doc h3, .doc h4, .doc-title { break-after: avoid; page-break-after: avoid; }
  .doc-section > p { orphans: 3; widows: 3; }
  .doc a { color: inherit; text-decoration: none; }
}

/* ==========================================================================
   Page-specific rules, merged from _integrations.css (used on: cliniko-integration.html, integrations.html, servicem8-integration.html, tradify-integration.html, xero-integration.html, zoho-integration.html)
   ========================================================================== */
/* Integration pages only: integrations.html and the five *-integration.html pages.
   Page-specific, to be merged into the shared stylesheet later. Uses the site's own tokens. */

/* Two flow strips stacked in one section, each with a small title and one example line above it. */
.flow-block + .flow-block { margin-top: clamp(40px, 3vw + 16px, 56px); }
.flow-block > p { max-width: 44rem; margin: 8px 0 20px; }

/* The hub's "How a connection is built": four numbered steps across, two by two on tablets, one column on phones (from site.css). */
@media (min-width: 761px) { .steps.steps-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps.steps-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }

/* ==========================================================================
   Page-specific rules, merged from _front.css (used on: cafes-and-venues.html, clinics.html, cliniko-integration.html, cut-admin-hours.html, guide-admin-tasks-to-automate.html, guide-digital-receptionist-vs-answering-service.html, guide-appointment-reminders.html, guide-missed-call-cost.html, guide-missed-call-text-back.html, guide-quote-follow-up.html, index.html, integrations.html, pool-and-home-services.html, professional-offices.html, real-estate.html, salons.html, servicem8-integration.html, stop-missing-calls.html, trades.html, tradify-integration.html, xero-integration.html, zoho-integration.html)
   ========================================================================== */
/* front: page-specific styles for index.html, stop-missing-calls.html and cut-admin-hours.html.
   Linked only from those three pages, straight after components.css. A later step merges this file. */

/* A standalone link line under a block ("All guides", "See how the business hub works") */
.fr-more { margin-top: 28px; font-weight: 600; }
.fr-gap { margin-top: clamp(40px, 4vw + 16px, 72px); }

/* Home, industries: each industry name links to its own page, and the whole item is the target */
.fr-ind li { position: relative; }
.fr-ind h3 a { color: inherit; text-decoration: none; }
.fr-ind h3 a::before { content: ""; position: absolute; inset: 0; }
.fr-ind li:hover h3 a { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.fr-ind li:hover .arrow { transform: translateX(3px); }

/* Landing pages: blocks that follow each other inside one section */
.fr-stack > * + * { margin-top: clamp(56px, 5vw + 24px, 104px); }
.fr-stack .eg-split-copy h3 { color: var(--navy); font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; }
.fr-stack .eg-split-copy h3 + p { margin-top: 16px; }
.fr-stack .eg-split-copy p + p { margin-top: 12px; }
.fr-stack .eg-split-copy p { max-width: 34rem; }
.fr-aside { color: var(--muted); font-size: .9375rem; }
.fr-flow-intro { margin-top: clamp(40px, 3vw + 16px, 64px); margin-bottom: 16px; color: var(--navy); font-weight: 600; }
.fr-hero .demo { justify-self: center; }
.fr-groups .card h3 { color: var(--navy); }
.fr-groups .card .dots { margin-top: 8px; }
.fr-note { margin-top: 24px; }
.section-paper .fr-note.example { max-width: none; padding: 16px 20px; border-radius: var(--r-card); background: var(--white); color: var(--ink); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .fr-ind li:hover .arrow { transform: none; }
}

/* Phones: the long lists get shorter, and points already made higher up are not repeated.
   These helpers are also used by the industry, integration and guide pages (they link this file too). */
@media (max-width: 640px) {
  .fr-wide { display: none !important; }

  /* Rows of cards become a strip to swipe sideways, with the next card peeking in.
     :not([hidden]) so that a strip shipped hidden (a gated block) stays hidden. */
  .fr-snap:not([hidden]) { display: flex !important; gap: 12px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fr-snap::-webkit-scrollbar { display: none; }
  .fr-snap > * { flex: 0 0 min(86%, 340px); scroll-snap-align: start; }

  /* Home: the six smaller services as two columns of named links, all on screen */
  .rows.fr-names { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rows.fr-names li { border: 1px solid var(--line-strong); border-radius: var(--r-card); }
  .rows.fr-names a { display: flex; align-items: center; height: 100%; padding: 14px; }
  .rows.fr-names h3 { font-size: 1rem; line-height: 1.3; }
  .rows.fr-names p { display: none; }

  /* Service-style heroes (industry and integration pages): the two fact cards and the pills repeat the
     sections below them, so phones show the words, the example timeline and the buttons only */
  .fr-lean .stage > .notch, .fr-lean .stage > .fact-float { display: none; }

  /* Before and after: phones show the first two pairs; the others repeat what the page has just listed */
  .fr-ba2 .ba-row:nth-child(n+3) { display: none; }

  /* The ten tasks as two columns of chips */
  #hours .duo-body > .task-list.fr-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

  /* The step number sits beside the step's heading */
  .fr-steps li::before { float: left; margin: 3px 10px 0 0; }
  .fr-more { margin-top: 20px; }
  .fr-chips li { padding: 8px 10px; border-radius: 12px; background: var(--white); font-size: .8125rem; line-height: 1.35; }
  .fr-chips li::before { display: none; }

  /* The eight industries as two columns of named links */
  .industries.fr-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 0; }
  .industries.fr-ind li { display: flex; align-items: center; padding: 14px; border: 1px solid var(--line-on-navy); border-radius: var(--r-card); }
  .industries.fr-ind h3 { width: 100%; font-size: 1rem; line-height: 1.3; }
  .industries.fr-ind h3 a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .industries.fr-ind p { display: none; }
}

/* Home, phones: the example dashboard shows the same set as .dash-compact (four tiles, four events, two
   flagged items), so the page stays short. Wider screens get the full size. */
@media (max-width: 640px) {
  .fr-dash .dash-tiles li:nth-child(4), .fr-dash .dash-tiles li:nth-child(5), .fr-dash .dash-feed li:nth-child(n+5), .fr-dash .dash-needs li:nth-child(n+3), .fr-dash .dash-needs .dash-h span { display: none; }
  .fr-dash .dash-feed li:nth-child(4), .fr-dash .dash-needs li:nth-child(2) { border-bottom: 0; }
  .fr-dash .dash-chart { display: none; }
}

/* ==========================================================================
   Page-specific rules, merged from _industries.css (used on: industries.html, sample-plan.html)
   ========================================================================== */
/* industries.html only (agent key: plan): the link from each industry block to its own page. To be merged into site.css. */
.ind-block .ind-more { margin-top: 14px; font-weight: 600; }

/* sample-plan.html, printing and its PDF (agent key: plan): each numbered section stays on one page, a totals row
   is printed once (Chromium repeats a <tfoot> on every page a table spans), and every page names the sample. */
@page plan {
  @bottom-left { content: "Sample Hours-Back Plan. Example Plumbing Co is a fictional business."; color: #565B70; font: 8pt "Hanken Grotesk", system-ui, sans-serif; }
}
@media print {
  .doc tfoot { display: table-row-group; }
  .doc-section { break-inside: avoid; page-break-inside: avoid; }
}

/* sample-plan.html: keep the plan's name on one line in the page heading (it breaks at the hyphen on phones). */
.plan-name { white-space: nowrap; }

/* sample-plan.html, phones: the sheet shows its cover and summary, and sections 2 to 10 open from one button
   (a <details>). Wider screens and print always show the whole sheet: there the button is hidden and the
   sections show whatever its state. Browsers without ::details-content keep the button at every width. */
.plan-more > summary { margin-top: 28px; }
.plan-more > summary::-webkit-details-marker { display: none; }
.plan-more[open] > summary .plan-more-show, .plan-more:not([open]) > summary .plan-more-hide { display: none; }
.plan-more-pdf { margin-top: 16px; }
@media (min-width: 641px) { .plan-more-pdf { display: none; } }
@supports selector(::details-content) {
  @media screen and (min-width: 641px), print {
    .plan-more > summary { display: none; }
    .plan-more::details-content { content-visibility: visible; display: block; }
  }
}

/* ==========================================================================
   Page-specific rules, merged from _services.css (used on: business-hub.html, contact.html, customer-reactivation.html, digital-receptionist.html, instant-lead-callback.html, missed-call-calculator.html, missed-call-text-back.html, reminders-and-follow-ups.html, services.html, websites.html, workflow-automation.html)
   ========================================================================== */
/* Digitalise: layout helpers for the blocks added to the service pages, the services hub,
   the contact page and the calculator. Linked only from those pages, straight after components.css.
   A few small rules, no colours and no new components. To be merged into the shared stylesheet. */

/* A second block inside one section (for example a before and after block under a two-column
   section, or a panel under the steps): the space above it. */
.block-gap, .wrap.block-gap { margin-top: clamp(40px, 3vw + 24px, 64px); }

/* A section that continues the section before it on the same background (for example
   "Related reading" after "Works well with"): no second helping of space above it. */
.section.section-flush { padding-top: 0; }

/* Two or three examples stacked one under another (the flow strips). */
.fig-stack { display: grid; gap: clamp(24px, 2vw + 12px, 36px); }

/* Phones: the same content in fewer screens, on the pages whose <main> carries class="compact-on-phones"
   (the service pages, the services hub, contact and the calculator; any other page can opt in the same way).
   The before and after block shows its first two pairs, the "Still have a question?" card is left out
   (the phone bar has the same buttons), linked cards become a short list of named links, and the services
   hub leaves out the sample monthly report (its steps already say a short report comes each month). */
@media (max-width: 640px) {
  .compact-on-phones .ba-rows > .ba-row:nth-child(n+3) { display: none; }
  .compact-on-phones .faq-aside { display: none; }
  .compact-on-phones .related { gap: 8px; }
  .compact-on-phones .related a { position: relative; gap: 2px; padding: 14px 52px 14px 16px; }
  .compact-on-phones .related a p { display: none; }
  .compact-on-phones .related h3 { font-size: 1rem; line-height: 1.35; }
  .compact-on-phones .related a > span:last-child { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .compact-on-phones .related a::after { content: ""; position: absolute; top: 50%; right: 18px; width: 20px; height: 20px; margin-top: -10px; background: var(--blue); -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
  .compact-on-phones #how-we-work .eg-split { display: none; }
}

/* Four related cards: one row of four on wide screens, two rows of two in between, never 3 + 1. */
@media (min-width: 861px) and (max-width: 1099px) {
  .related:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .related:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
