/* Proposed changes on trial (staging, 2026-11-20). Loaded after site.css
   from content/head-section.html, so each rule here overrides the one it
   replaces. Once agreed, fold these into site.css and remove this file
   and its link.

   1. A lighter, warmer page and softer borders.
   2. A consultation note under the home page's heading.
   3. The certification badges as a small row.
   4. A compact two-row header on a phone.
   5. The home page's list of concerns in columns.
   6. Larger touch targets in the footer, and small print a little larger.
   7. The home page opens with words: a line saying whose page it is, and
      on a phone a small portrait set into the text. */

/* === 1. The page's colours. ============================================ */
:root, [data-theme="dark"] {
  --bg: #f4f2ed;
  --border: #e2dfd8;
  --site-header-bg: #fcfcfc;
}

/* === 2. The consultation note. ========================================= */
.consult-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  margin: 0 0 var(--space-5); padding: 16px 20px;
  background: #eaf2f4; border: 1px solid #c5d9de; border-radius: var(--radius);
}
.brochure-page .consult-note p { margin: 0; flex: 1 1 280px; line-height: 1.55; }
.brochure-page a.consult-link, .brochure-page a.consult-link:visited {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; box-sizing: border-box;
  border-radius: var(--radius-sm); background: var(--accent); color: #ffffff;
  font-weight: 700; text-decoration: none;
}
.brochure-page a.consult-link:hover { background: var(--accent-hover); color: #ffffff; text-decoration: underline; }
.brochure-page a.consult-link:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 2px; }
/* A note that follows text stands a little apart from it. */
.brochure-page p + .consult-note, .brochure-page ul + .consult-note { margin-top: var(--space-5); }

/* === 3. The badges. ==================================================== */
.cert-badges { display: flex; align-items: center; gap: var(--space-4); margin: 0 0 var(--space-4); }
.cert-badges a { flex: none; line-height: 0; }
.brochure-page .cert-badges img { display: block; width: 72px; height: 72px; }
.cert-badges span { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

/* === 4. The header. The icons are full-size touch targets everywhere; on
   a phone the number becomes a call icon and the header is one row, with
   the bar of places as the second. ===================================== */
.site-social { gap: 2px; }
.site-social a { width: 44px; height: 44px; }
.site-call { display: none; }

/* === 5. The list of concerns: as many columns as fit, so a long list is
   a short block on a wide screen and one column on a phone. ============ */
.brochure-page ul.concerns-list { columns: 15em; column-gap: var(--space-6); max-width: none; }
.brochure-page ul.concerns-list li { break-inside: avoid; margin-top: 0; padding-block: 2px; }

/* === 6. The footer's links are tall enough to tap, and the smallest
   print (captions, dates) is no smaller than 14px. ===================== */
.footer-links { gap: 0 var(--space-5); margin-bottom: var(--space-3); }
.footer-links a { display: inline-block; padding-block: 13px; }
.brochure-footer .site-phone { display: inline-block; padding-block: 6px; }
.brochure-page figcaption, .brochure-page .post-meta, .article-card .card-meta, .brochure-aside .md-meta { font-size: 14px; }

/* === 7. The line under the home page's heading. ======================== */
.brochure-page h1:has(+ .page-standfirst) { margin-bottom: var(--space-1); }
.brochure-page .page-standfirst { margin: 0 0 var(--space-4); color: var(--text-muted); font-size: var(--text-base); line-height: 1.4; }

@media (max-width: 600px) {
  .consult-note { flex-direction: column; align-items: stretch; }
  .brochure-page .consult-note p { flex: none; }
  .brochure-page .cert-badges img { width: 64px; height: 64px; }

  /* The portrait is small and set into the text at the right, so the
     first screen is words, and its caption is left to the line above. */
  .brochure-page figure.home-portrait { float: right; width: 130px; max-width: none; margin: 4px 0 var(--space-3) var(--space-4); }
  .brochure-page figure.home-portrait > img { width: 130px; height: auto; }
  .brochure-page figure.home-portrait > figcaption { display: none; }

  .brochure-header .brochure-inner { flex-wrap: nowrap; gap: 8px; padding-block: 8px; padding-inline: 16px 12px; }
  .brochure-header .site-logo { min-width: 0; }
  .brochure-header .site-logo img { width: 190px; max-width: 100%; }
  .brochure-header .site-contact { flex: none; }
  .brochure-header .site-phone, .brochure-header .site-linkedin { display: none; }
  .brochure-header .site-call { display: block; }
  .brochure-header .site-social { gap: 0; }

  .brochure-nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 2px; padding-block: 2px; padding-inline: 8px; }
  .brochure-nav a { padding: 10px 9px; font-size: 16px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .brochure-nav a { padding: 10px 6px; font-size: 15px; }
}
