/* Shared styles for every page of bluelabelsolutions.com.
   The look is the Bluelabel RTM's (Lee, 9 Nov 2026): its page colours, system type, white top bar, the banner as a
   rounded card with a navy gradient, white bordered cards, blue buttons and a slate footer, in light and dark.
   Colours are tokens on :root; dark mode redefines them (the computer's setting, or the visitor's choice in the
   footer, kept in their browser by site.js). Text sizes are multiplied by --fs, which the footer's - / + change. */
:root {
  --bg: #f6f7f9; --panel: #ffffff; --ink: #1b2430; --muted: #5b6675; --line: #dde2e8; --chip: #eef3f9;
  --link: #3f57cf; --button: #4a63d8; --button-hover: #3a4fc0; --focus: #4a63d8;
  --bl-blue: #6078ea; --bl-teal: #17ead9; --bl-slate: #3d5570; --bl-navy: #0d2240;
  --note-bg: #fff8db; --note-line: #c9a400; --note-ink: #5c4a00; --ok: #1a7f37; --error: #b42318;
  --shadow: 0 2px 10px rgba(13, 34, 64, 0.06); --shadow-lift: 0 8px 24px rgba(13, 34, 64, 0.14);
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #12161c; --panel: #1a2029; --ink: #e6ebf1; --muted: #9aa6b4; --line: #2c3542; --chip: #232c38;
  --link: #17ead9; --focus: #17ead9;
  --note-bg: #332b0c; --note-line: #c9a400; --note-ink: #f3e3a3; --ok: #4ac26b; --error: #ff8a80;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3); --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #12161c; --panel: #1a2029; --ink: #e6ebf1; --muted: #9aa6b4; --line: #2c3542; --chip: #232c38;
  --link: #17ead9; --focus: #17ead9;
  --note-bg: #332b0c; --note-line: #c9a400; --note-ink: #f3e3a3; --ok: #4ac26b; --error: #ff8a80;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3); --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Smooth scrolling only after the page has loaded (site.js adds the class), so arriving at
   /services.html#data-analytics from another page jumps straight to the section. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Roboto, Arial, sans-serif;
  font-size: calc(16px * var(--fs, 1));
  line-height: 1.6;
  /* Short pages: the footer sits at the bottom of the window, not halfway up it. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main { flex: 1 0 auto; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--link); }
/* Keep headings clear of the sticky nav when jumping to them */
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Top bar (white, like the RTM's) ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--panel); border-bottom: 1px solid var(--line); }
.site-nav {
  max-width: 1120px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; }
.logo img { height: 40px; width: auto; display: block; }
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a,
.submenu-toggle {
  color: var(--ink);
  text-decoration: none;
  font-size: calc(15px * var(--fs, 1));
  font-weight: 600;
  padding: 6px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
}
.nav-links a:hover, .submenu-toggle:hover { color: var(--link); border-bottom-color: var(--link); }
.nav-toggle { display: none; }

/* Dropdowns (About, Services, Products) */
.has-menu { position: relative; }
.submenu-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: 3px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
}
.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
}
.submenu.open { display: block; }
html:not(.js) .has-menu:focus-within .submenu { display: block; }
/* With JavaScript, hover is handled in site.js so Escape can always close the menu */
@media (min-width: 1001px) and (hover: hover) {
  html:not(.js) .has-menu:hover .submenu { display: block; }
}
.nav-links .submenu a {
  display: block;
  padding: 9px 16px;
  border-bottom: 0;
  font-weight: 400;
}
.nav-links .submenu a:hover { background: var(--chip); }

/* Phone and tablet nav (up to 1000px wide; must match site.js) */
@media (max-width: 1000px) {
  .logo img { height: 34px; }

  /* Without JavaScript the links stay visible, wrapped under the logo */
  html:not(.js) .site-nav { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 8px; }
  html:not(.js) .nav-links { gap: 16px; flex-wrap: wrap; }
  html:not(.js) .nav-links a, html:not(.js) .submenu-toggle { font-size: calc(13px * var(--fs, 1)); }
  html:not(.js) .submenu { position: static; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; border: 0; box-shadow: none; background: none; }

  .js .nav-toggle {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: calc(14px * var(--fs, 1));
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
  }
  .js .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
  .js .nav-links.open { display: flex; }
  .js .nav-links a,
  .js .submenu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .js .submenu { position: static; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--chip); }
  .js .nav-links .submenu a { padding: 12px 16px 12px 32px; border-bottom: 1px solid var(--line); }
}

/* ---------- Banners: a rounded card with a navy gradient over the photo, as on the RTM ---------- */
.hero { position: relative; max-width: 1120px; margin: 16px auto 0; border-radius: 10px;
  width: calc(100% - 32px);
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 44px 32px;
  background:
    linear-gradient(90deg, rgba(13, 34, 64, 0.92) 0%, rgba(13, 34, 64, 0.7) 55%, rgba(13, 34, 64, 0.25) 100%),
    var(--bl-navy) url("/hero.jpg") center / cover no-repeat;
  color: #ffffff;
  text-align: left;
}
.hero.short { min-height: 200px; padding: 32px; }
/* The small label above every banner title, as the RTM's banners have */
.hero::before {
  content: "Blue Label Solutions";
  font-size: calc(12px * var(--fs, 1));
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bl-teal);
}
.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-weight: 300;
  font-size: calc(clamp(32px, 6vw, 52px) * var(--fs, 1));
  line-height: 1.15;
}
.hero.short h1 { font-size: calc(clamp(28px, 5vw, 40px) * var(--fs, 1)); }
.hero h1 strong { font-weight: 700; }
@media (max-width: 600px) {
  .hero { padding: 28px 20px; min-height: 300px; }
  .hero.short { padding: 24px 20px; min-height: 160px; }
}

/* ---------- Sections ---------- */
section { padding: 48px 16px; text-align: center; }
section.alt { background: var(--panel); border-block: 1px solid var(--line); }
section h2 {
  margin: 0;
  font-weight: 300;
  font-size: calc(clamp(24px, 4vw, 30px) * var(--fs, 1));
  line-height: 1.25;
  color: var(--ink);
}
section hr {
  width: 40px;
  margin: 16px auto 24px;
  border: 0;
  border-top: 3px solid var(--bl-blue);
  border-radius: 2px;
}
.prose { max-width: 720px; margin: 0 auto; text-align: left; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 20px; }

/* Services and Products pages: one section per item */
.service-detail .prose { border-left: 3px solid var(--bl-blue); padding-left: 24px; }
.service-detail h2 { margin-bottom: 16px; font-weight: 400; }
.service-detail h3 { margin: 24px 0 8px; font-size: calc(18px * var(--fs, 1)); font-weight: 600; }

/* ---------- Blog and newsletter lists ---------- */
.posts { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; text-align: left; }
.posts li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.posts li:first-child { padding-top: 0; }
.posts h2 { font-size: calc(clamp(20px, 3.5vw, 26px) * var(--fs, 1)); font-weight: 400; margin: 0 0 4px; }
.posts h2 a { color: inherit; text-decoration: none; }
.posts h2 a:hover { color: var(--link); text-decoration: underline; }
.post-meta { margin: 0 0 8px; color: var(--muted); font-size: calc(14px * var(--fs, 1)); }
.post-summary { margin: 0; }
.post-links { margin: 8px 0 0; font-size: calc(14px * var(--fs, 1)); font-weight: 600; color: var(--muted); }
.issues h3 { margin: 0 0 4px; font-weight: 400; font-size: calc(clamp(20px, 3.5vw, 24px) * var(--fs, 1)); }
.issues h3 a { color: var(--ink); text-decoration: none; }
.issues h3 a:hover { color: var(--link); text-decoration: underline; }
.no-issues { color: var(--muted); text-align: center; }

/* ---------- A blog post or newsletter issue ---------- */
.post { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.post-header { margin-bottom: 32px; }
.post h1 {
  margin: 0 0 8px;
  font-weight: 300;
  font-size: calc(clamp(28px, 5.5vw, 40px) * var(--fs, 1));
  line-height: 1.2;
}
.post-body { max-width: none; }
.post-body h2, .post-body h3 { color: var(--ink); margin: 40px 0 12px; }
.post-body h2 { font-size: calc(24px * var(--fs, 1)); font-weight: 400; }
.post-body h3 { font-size: calc(19px * var(--fs, 1)); font-weight: 600; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post-body ul { padding-left: 20px; }
.post-body li { margin-bottom: 8px; overflow-wrap: anywhere; }

/* Comment and share row under a post's title */
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink);
  font-size: calc(13px * var(--fs, 1)); font-weight: 600; cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--link); color: var(--link); }
.share svg { width: 16px; height: 16px; }
.share [hidden] { display: none; }
.share-status { font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--ok); }

.comments { padding: 32px 0 0; margin-top: 48px; border-top: 1px solid var(--line); text-align: left; }
.comments h2 { margin-bottom: 8px; }
.comments-note { font-size: calc(13px * var(--fs, 1)); color: var(--muted); }

/* ---------- Buttons: Bluelabel blue with white text, in light and dark (as on the RTM) ---------- */
.button, .comment-button, .show-comments {
  display: inline-block;
  padding: 10px 22px;
  background: var(--button);
  color: #ffffff;
  border: 1px solid var(--button);
  border-radius: 6px;
  font-size: calc(15px * var(--fs, 1));
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.comment-button { padding: 8px 18px; font-size: calc(14px * var(--fs, 1)); }
.button:hover, .button:focus-visible, .comment-button:hover, .comment-button:focus-visible,
.show-comments:hover, .show-comments:focus-visible { background: var(--button-hover); border-color: var(--button-hover); color: #ffffff; }
button.button:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Forms (contact, newsletter) ---------- */
.contact h3 { margin: 0 0 24px; font-size: calc(18px * var(--fs, 1)); font-weight: 400; }
.contact-form { margin-top: 24px; }
.contact-form .field { margin: 0 0 18px; }
.contact-form label, .subscribe-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: calc(14px * var(--fs, 1)); }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea, .subscribe-row input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-size: calc(16px * var(--fs, 1)); line-height: 1.4; color: var(--ink); background: var(--panel);
}
.contact-form textarea { resize: vertical; }
.contact-form :is(input, select, textarea):focus-visible, .subscribe-row input[type="email"]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus);
}
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: calc(14px * var(--fs, 1)); color: var(--muted); }
.form-privacy a, .form-alt a, .more-link { color: var(--link); font-weight: 600; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }
.form-alt { margin-top: 32px; }
.subscribe-form { margin-top: 16px; text-align: left; }
.subscribe-row { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-row input[type="email"] { flex: 1 1 240px; width: auto; }
.subscribe-form .form-privacy { margin: 8px 0 0; }
.subscribe-box { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-align: left; }
.subscribe-box h2 { margin: 0; font-size: calc(24px * var(--fs, 1)); }

/* ---------- Footer: RTM slate; copyright on the left, links and the view settings on the right ---------- */
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 28px;
  padding: 18px max(16px, calc((100% - 1120px) / 2 + 16px));
  background: var(--bl-slate);
  color: #ffffff;
  font-size: calc(14px * var(--fs, 1));
}
.site-footer p { margin: 0; }
.footer-left { display: inline-flex; align-items: center; gap: 10px; }
.footer-left img { height: 26px; width: auto; display: block; }
.site-footer a { color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover, .site-footer a:focus-visible { color: #eef2f8; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: var(--bl-teal); }
.site-footer .social { display: inline-flex; vertical-align: middle; margin-left: 10px; padding: 4px; text-decoration: none; }
/* Light / Dark switch and text size - / + (site.js; shown only with JavaScript) */
.bl-prefs { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bl-prefs[hidden] { display: none; }
.bl-prefs .row { display: inline-flex; align-items: center; gap: 6px; }
.bl-mode { opacity: 0.85; white-space: nowrap; font-size: calc(13px * var(--fs, 1)); }
.bl-switch { position: relative; width: 38px; height: 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25); padding: 0; cursor: pointer; flex: none; }
.bl-switch .knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; }
@media (prefers-reduced-motion: no-preference) { .bl-switch .knob { transition: left 0.15s; } }
.bl-switch[aria-checked="true"] { background: var(--bl-teal); }
.bl-switch[aria-checked="true"] .knob { left: 20px; }
.bl-size { font: inherit; font-weight: 700; min-width: 30px; color: #ffffff; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 5px; padding: 1px 7px; cursor: pointer; }
.bl-size:disabled { opacity: 0.4; cursor: default; }

/* ---------- Cards (Values, Culture) and their pop-up ---------- */
.value-cards { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.value-card { position: relative; display: flex; flex-direction: column; padding: 24px;
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--bl-blue); border-radius: 10px;
  box-shadow: var(--shadow); }
.value-num, .project .project-type { margin: 0 0 8px; font-size: calc(12px * var(--fs, 1)); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.values hr + .value-cards { margin-top: 24px; }
/* Tighter bands on the card pages: a short intro paragraph, then the card groups. */
section.page-intro { padding: 32px 16px; }
.page-intro .prose p:last-child { margin-bottom: 0; }
section.values { padding: 48px 16px; }
.values hr { margin: 16px auto; }
/* Exactly four cards: a 2 x 2 grid rather than three and one left over. */
@media (min-width: 701px) {
  .value-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
}
.value-card h2, .value-card h3, .value-dialog h2 { margin: 0 0 10px; font-weight: 600; font-size: calc(20px * var(--fs, 1)); line-height: 1.3; text-align: left; }
.value-lede { margin: 0 0 16px; }
.value-practice p { margin: 0; }
.value-open { display: none; }
/* With JavaScript: the card shows its statement and opens the pop-up; the whole card is clickable. */
.js .value-card .value-practice { display: none; }
.js .value-open { display: inline-block; margin-top: auto; align-self: flex-start; padding: 0; border: 0; background: none;
  font-size: calc(14px * var(--fs, 1)); font-weight: 600; color: var(--link); cursor: pointer; }
.js .value-open::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.js .value-open:focus-visible { outline: none; }
.js .value-open:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.js .value-card:hover { box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: no-preference) {
  .js .value-card { transition: box-shadow 0.2s, transform 0.2s; }
  .js .value-card:hover { transform: translateY(-2px); }
}
/* Phones: the cards become a sideways carousel that snaps card by card. */
@media (max-width: 700px) {
  .value-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 4px 16px; margin: 0 -16px; padding-inline: 16px; }
  .value-card { flex: 0 0 85%; scroll-snap-align: center; }
}

.value-dialog { width: min(640px, calc(100% - 32px)); max-height: min(80vh, 640px); padding: 0; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); background: var(--panel); color: var(--ink); text-align: left; }
.value-dialog[open] { display: flex; flex-direction: column; }
.value-dialog::backdrop { background: rgba(13, 34, 64, 0.6); }
.value-dialog-body { padding: 36px 32px 16px; overflow-y: auto; border-top: 4px solid var(--bl-blue); }
.value-dialog-text p { margin: 0 0 16px; font-size: calc(17px * var(--fs, 1)); }
.value-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--chip); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.value-close:hover { background: var(--line); }
.value-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px;
  border-top: 1px solid var(--line); background: var(--chip); }
.value-prev, .value-next { padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  font-size: calc(14px * var(--fs, 1)); font-weight: 600; color: var(--ink); cursor: pointer; }
.value-prev:hover, .value-next:hover { border-color: var(--link); color: var(--link); }
.value-count { font-size: calc(14px * var(--fs, 1)); color: var(--muted); }

/* ---------- Client logos and projects (Projects page) ---------- */
section.clients { padding: 48px 16px; }
.clients hr { margin: 16px auto 32px; }
.client-logos { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; align-items: center; }
/* Logo tiles stay white in dark mode too: the logos are drawn for a white background. */
.client-logo { display: flex; align-items: center; justify-content: center; height: 96px; padding: 12px 16px;
  background: #ffffff; border: 1px solid var(--line); border-radius: 10px; }
.client-logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
/* Metafora's file has wide white margins round the mark; let it fill more of the tile. */
.client-logo img[src$="metafora.webp"] { max-height: 96px; transform: scale(1.35); }
.client-logo img[src$="legnetix.png"] { max-height: 80px; transform: scale(1.12); }
.client-logo.missing { border-style: dashed; border-color: var(--note-line); background: var(--note-bg); }
.client-logo.missing span { font-size: calc(18px * var(--fs, 1)); font-weight: 700; letter-spacing: 1px; color: var(--note-ink); }

.project-list { list-style: none; margin: 0 auto 24px; padding: 0; max-width: 1000px; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.project { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--bl-blue); border-radius: 10px; box-shadow: var(--shadow); }
.project h3 { margin: 0 0 4px; font-weight: 600; font-size: calc(20px * var(--fs, 1)); }
.project p { margin: 0; }
.project a { font-weight: 600; }

/* ---------- Breadcrumb trail: under each page's banner, and at the top of a blog post ---------- */
.breadcrumb { max-width: 1120px; margin: 0 auto; padding: 12px 16px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.breadcrumb a { color: var(--link); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.post-header .breadcrumb { padding: 0 0 16px; margin: 0; }
/* The page's first section follows straight on; trim its top so the trail doesn't add a gap. */
.breadcrumb + section { padding-top: 24px; }

/* Marks a page still waiting for content; check-page.sh fails while any remain, so they can't be released. */
.draft-note {
  background: var(--note-bg);
  border: 1px dashed var(--note-line);
  border-radius: 6px;
  padding: 16px;
  color: var(--note-ink);
}

/* About us: one card per About page, the whole card's heading a link */
.about-cards .project h3 a { color: var(--ink); text-decoration: none; }
.about-cards .project h3 a:hover { color: var(--link); text-decoration: underline; }
@media (min-width: 701px) { .about-cards { grid-template-columns: repeat(2, 1fr); max-width: 820px; } }

/* A blog post's graphics (Clarity from Chaos): square infographics, centred, no wider than the reading column needs */
.post-body img[src^="/blog/infographics/"] { aspect-ratio: 1 / 1; }   /* the square graphics hold their space while loading */
.post-body img { display: block; max-width: min(100%, 560px); height: auto; margin: 24px auto; border-radius: 8px; border: 1px solid var(--line); }
/* Sign-up boxes inside a post */
.post-body .subscribe-cta { margin: 32px 0; }
.post-body .subscribe-cta .cta-title { margin: 0 0 6px; font-size: calc(18px * var(--fs, 1)); }
.post-body .subscribe-cta p { margin: 0 0 8px; }
.post-body blockquote { margin: 24px 0; padding: 8px 20px; border-left: 3px solid var(--bl-blue); background: var(--chip); border-radius: 0 6px 6px 0; }

/* Text for screen readers only (e.g. "Learn more about <product>") */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Products: a card per product, each with its illustration and a Learn more link ---------- */
section.products { padding: 32px 16px 48px; }
.product-cards { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
@media (min-width: 701px) { .product-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 860px; } }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.product-card img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 200; }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.product-card h2 { margin: 0 0 10px; font-size: calc(20px * var(--fs, 1)); font-weight: 600; line-height: 1.3; }
.product-card p { margin: 0 0 16px; }
.product-more { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--link); text-decoration: none; }
.product-more::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }   /* the whole card is the link */
.product-more:hover { text-decoration: underline; }
.product-more:focus-visible { outline: none; }
.product-more:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }   /* inside the card: it clips what is outside (overflow: hidden) */
.product-card:has(.product-more):hover { box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: no-preference) {
  .product-card { transition: box-shadow 0.2s, transform 0.2s; }
  .product-card:has(.product-more):hover { transform: translateY(-2px); }
}
.product-card.coming-soon img { opacity: 0.55; }
.product-card .coming { margin-top: auto; color: var(--muted); font-weight: 600; }
/* A product's own page */
.product-illustration { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 0 24px; border-radius: 10px; }
.more-products { margin: 16px 0 0; }
/* Pricing cards on a product's or service's page (intent-products.md): three tiers side by side, one column on phones */
section.pricing { padding: 40px 16px 48px; }
section.pricing h2 { margin: 0 0 24px; font-weight: 400; }
.price-cards { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.price-card { display: flex; flex-direction: column; padding: 22px; background: var(--panel);
  border: 1px solid var(--line); border-top: 4px solid var(--bl-blue); border-radius: 10px; box-shadow: var(--shadow); }
.price-name { margin: 0 0 8px; font-size: calc(20px * var(--fs, 1)); font-weight: 600; }
.price-amount, .price-ask { margin: 0 0 16px; font-size: calc(18px * var(--fs, 1)); font-weight: 600; }
.price-ask a { color: var(--link); }
.price-includes { margin: 0; padding-left: 20px; }
.price-includes li { margin: 0 0 6px; }
.draft-text { margin: 16px 0 0; padding: 6px 10px; border-left: 3px solid var(--note-line); background: var(--note-bg);
  color: var(--note-ink); font-size: calc(13px * var(--fs, 1)); }
/* A product's or service's page printed is a hand-out (intent-products.md): the cut sheet and pricing, no site chrome */
@media print {
  .site-header, .breadcrumb, .site-footer, .contact, .product-illustration, .draft-text { display: none !important; }
  body { background: #fff; color: #000; font-size: 11px; }
  .hero { margin: 0; padding: 12px 16px; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .service-detail, section.pricing { padding: 12px 0; }
  .price-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .price-card { box-shadow: none; padding: 12px; break-inside: avoid; }
  section { break-inside: avoid; }
}
