/* The Contentious Probate Lawyer · theme styles
   Fine detail the approved design needs beyond theme.json tokens.
   Fonts: self-hosted files land in ../fonts/ (see @font-face below). */

/* Everything in this theme is sized border-box */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---- Type faces (self-hosted in assets/fonts/, SIL OFL) ---- */
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-italic-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Recurring vocabulary from the approved design ---- */

/* Letterspaced uppercase eyebrow */
.cpl-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  font-weight: 700;
}

/* Small caps meta line (dates, counters, attribution) */
.cpl-caps {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}

/* Secondary button: filled headline navy, white text, same lift */
.cpl-button-navy .wp-block-button__link {
  background: var(--wp--preset--color--ink);
  color: #ffffff;
}

/* Urgent marker: a badge, deliberately not a button (no shadow) */
.cpl-pill {
  display: inline-block;
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Section band helpers. The header row keeps its hairline; section
   seams rely on the background alternation alone. */
.cpl-band {
  border-bottom: 1px solid var(--wp--preset--color--hairline);
}
section.cpl-band {
  border-bottom: 0;
}

/* No page-background strips between the sections inside page content */
.wp-block-post-content > * + * {
  margin-block-start: 0;
}

/* Short centred divider (funeral callout) */
.cpl-divider-short {
  width: 64px;
  height: 1px;
  background: #d0cdc3;
  border: 0;
  margin: 30px auto 0 auto;
}
/* Inside a left-justified band WordPress pins every child to the left with
   !important (seen under the situations), so the short divider restates
   its centring with a stronger selector. */
.wp-block-separator.cpl-divider-short {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero italic second line */
.cpl-hero-title {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 80px;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: var(--wp--preset--color--ink);
  margin: 0;
}
.cpl-hero-title .cpl-hero-line,
.cpl-hero-title .cpl-hero-italic {
  display: block;
}
.cpl-hero-title .cpl-hero-italic {
  margin-top: 12px;
  line-height: 1.08;
}
.cpl-hero-italic {
  font-family: var(--wp--preset--font-family--merriweather);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--slate);
}

/* Keep a heading on one line (the costs heading rule) */
.cpl-nowrap {
  white-space: nowrap;
}

/* ---- Situations grid ---- */
.cpl-situations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  border-top: 1px solid var(--wp--preset--color--hairline);
}
.cpl-situation {
  border-bottom: 1px solid var(--wp--preset--color--hairline);
  padding: 18px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cpl-situation-title {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 19px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
  line-height: 1.35;
}
.cpl-situation-sub {
  font-size: 13.5px;
  color: var(--wp--preset--color--muted);
}
.cpl-callout {
  grid-column: span 2;
  padding: 56px 4px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
}
.cpl-callout .cpl-situation-title,
.cpl-callout .cpl-situation-sub {
  text-align: center;
}

/* ---- Costs ledger ---- */
.cpl-ledger {
  border-top: 2px solid var(--wp--preset--color--ink);
}
.cpl-ledger-row {
  border-bottom: 1px solid var(--wp--preset--color--hairline);
  padding: 26px 12px;
  display: grid;
  grid-template-columns: 64px 1fr 260px;
  gap: 26px;
  align-items: start;
}
.cpl-ledger-num {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 17px;
  font-weight: 700;
  color: var(--wp--preset--color--slate);
  padding-top: 3px;
}
.cpl-ledger-title {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 20px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
}
.cpl-ledger-body {
  font-size: 14.5px;
  color: var(--wp--preset--color--body);
  max-width: 58ch;
}
.cpl-ledger-right {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  text-align: right;
}
.cpl-price {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 22px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
  line-height: 1.1;
}
.cpl-price small {
  font-family: var(--wp--preset--font-family--atkinson);
  font-size: 13px;
  font-weight: 400;
  color: var(--wp--preset--color--muted);
}
.cpl-fee-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wp--preset--color--muted);
}
.cpl-note-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background: var(--wp--preset--color--tint);
  border-radius: 8px;
  padding: 18px 24px;
  margin-top: 24px;
}
.cpl-note-italic {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 16.5px;
  font-style: italic;
  color: var(--wp--preset--color--ink);
  line-height: 1.55;
  max-width: 58ch;
}
.cpl-note-caps {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--slate);
  text-align: right;
  white-space: nowrap;
}
.cpl-costs-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 28px;
  border-top: 1px solid var(--wp--preset--color--hairline);
  padding-top: 22px;
}
.cpl-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cpl-col-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  font-weight: 700;
}
.cpl-col-body {
  font-size: 14px;
  color: var(--wp--preset--color--body);
}

/* ---- About ---- */
.cpl-about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}
.cpl-portrait-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cpl-portrait-frame {
  height: 430px;
  border: 1px solid var(--wp--preset--color--hairline);
  overflow: hidden;
}
.cpl-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cpl-portrait-caption {
  font-size: 12.5px;
  color: var(--wp--preset--color--muted);
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--wp--preset--color--ink);
  padding-top: 10px;
}
.cpl-portrait-caption strong {
  font-weight: 700;
  color: var(--wp--preset--color--ink);
}
.cpl-about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}
.cpl-about-lead {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 27px;
  font-weight: 400;
  font-style: italic;
  color: var(--wp--preset--color--ink);
  line-height: 1.45;
}
.cpl-about-body {
  font-size: 15.5px;
}
.cpl-practise {
  border-top: 1px solid var(--wp--preset--color--hairline);
  padding-top: 14px;
  font-size: 13.5px;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
}
.cpl-practise strong {
  color: var(--wp--preset--color--ink);
}
.cpl-linkedin-band {
  background: var(--wp--preset--color--tint);
  border-radius: 8px;
  padding: 22px 28px;
  margin: -20px 64px 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.cpl-linkedin-title {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 19px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
}
.cpl-linkedin-sub {
  font-size: 14.5px;
  color: var(--wp--preset--color--body);
}

/* ---- Referrers band ---- */
.cpl-referrers-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.cpl-ref-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cpl-eyebrow-light {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa7c0;
  font-weight: 700;
}
.cpl-ref-heading {
  font-size: 38px;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.15;
}
.cpl-ref-lede {
  font-size: 16px;
  color: var(--wp--preset--color--band-text);
}
.cpl-ref-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #2c3a58;
}
.cpl-ref-item {
  border-bottom: 1px solid #2c3a58;
  padding: 20px 4px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cpl-ref-item svg {
  flex-shrink: 0;
  margin-top: 4px;
}
.cpl-ref-text {
  font-size: 15px;
  color: var(--wp--preset--color--band-text);
}
.cpl-ref-text strong {
  color: #ffffff;
}

/* ---- Reviews carousel ---- */
.cpl-reviews-inner {
  padding: 76px 64px 84px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cpl-carousel {
  width: 100%;
}
.cpl-quote-region {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.cpl-quote-region > .cpl-slide {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}
.cpl-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid #c9cdd6;
  background: transparent;
  color: var(--wp--preset--color--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.cpl-carousel-arrow--prev { left: 0; }
.cpl-carousel-arrow--next { right: 0; }
.cpl-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cpl-slide[hidden] {
  display: flex;
  visibility: hidden;
}
.cpl-slide[hidden] {
  opacity: 0;
}
.cpl-carousel.is-ready .cpl-slide {
  transition: opacity 520ms ease 240ms, visibility 0s linear 0s;
}
.cpl-carousel.is-ready .cpl-slide[hidden] {
  transition: opacity 300ms ease 0s, visibility 0s linear 300ms;
}
@media (prefers-reduced-motion: reduce) {
  .cpl-carousel.is-ready .cpl-slide,
  .cpl-carousel.is-ready .cpl-slide[hidden] {
    transition: none;
  }
}
.cpl-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
}
.cpl-quote-title {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 22px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
  line-height: 1.4;
  max-width: 36ch;
}
.cpl-quote-body {
  font-size: 16.5px;
  color: var(--wp--preset--color--body);
  line-height: 1.7;
  max-width: 66ch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.cpl-quote-body p {
  margin: 0;
}
.cpl-attribution {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  font-weight: 700;
  margin-top: 18px;
}
.cpl-attribution a {
  color: var(--wp--preset--color--muted);
}
.cpl-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.cpl-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.cpl-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d0cdc3;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.cpl-dot[aria-current="true"] {
  background: var(--wp--preset--color--amber);
}
.cpl-counter {
  font-size: 13px;
  color: var(--wp--preset--color--muted);
}
.cpl-disclosure {
  font-size: 13px;
  color: var(--wp--preset--color--muted);
  max-width: 74ch;
  margin-top: 24px;
  line-height: 1.65;
}
.cpl-disclosure a {
  color: var(--wp--preset--color--muted);
}

/* ---- Enquiry ---- */
.cpl-enquiry-wrap {
  max-width: 880px;
  margin: 0 auto;
}
.cpl-enquiry-head {
  text-align: center;
  margin-bottom: 40px;
}
.cpl-enquiry-head h2 {
  margin-top: 10px;
}
.cpl-enquiry-sub {
  font-size: 16.5px;
  color: var(--wp--preset--color--muted);
  margin: 14px auto 0 auto;
  max-width: 56ch;
}
.cpl-banner {
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14.5px;
  margin-bottom: 22px;
  text-align: center;
}
.cpl-banner--ok {
  background: var(--wp--preset--color--tint);
  color: var(--wp--preset--color--ink);
}
.cpl-banner--error {
  background: #f7ebe9;
  color: #8c3a2b;
}
.cpl-form-card {
  background: var(--wp--preset--color--paper);
  border: 1px solid var(--wp--preset--color--hairline);
  border-radius: 8px;
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cpl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cpl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cpl-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
}
.cpl-optional {
  font-weight: 400;
  color: var(--wp--preset--color--muted);
}
.cpl-input {
  background: #ffffff;
  border: 1.5px solid var(--wp--preset--color--hairline);
  border-radius: 6px;
  padding: 13px 15px;
  font-size: 15px;
  color: var(--wp--preset--color--body);
  font-family: inherit;
  width: 100%;
}
.cpl-input::placeholder {
  color: var(--wp--preset--color--muted);
}
select.cpl-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6675' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
}
.cpl-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--wp--preset--color--body);
  line-height: 1.5;
}
.cpl-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--wp--preset--color--amber);
}
.cpl-form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cpl-submit {
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--ink);
  box-shadow: 0 4px 14px rgba(22, 33, 58, 0.22);
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.cpl-form-note {
  font-size: 12.5px;
  color: var(--wp--preset--color--muted);
}
.cpl-funeral-line {
  text-align: center;
  font-size: 14px;
  color: var(--wp--preset--color--muted);
  margin-top: 22px;
  margin-left: auto;
  margin-right: auto;
  max-width: 72ch;
  line-height: 1.6;
}
.cpl-funeral-line strong,
.cpl-funeral-line a {
  font-weight: 700;
  color: var(--wp--preset--color--ink);
}
.cpl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- FAQ ---- */
.cpl-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  align-items: start;
}
.cpl-faq-col {
  border-top: 1px solid var(--wp--preset--color--hairline);
}
.cpl-faq {
  border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.cpl-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 20px 4px;
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
  line-height: 1.4;
}
.cpl-faq summary::-webkit-details-marker {
  display: none;
}
.cpl-faq summary::after {
  content: "+";
  font-family: var(--wp--preset--font-family--atkinson);
  font-size: 21px;
  font-weight: 400;
  color: var(--wp--preset--color--muted);
  line-height: 1;
  flex-shrink: 0;
}
.cpl-faq[open] summary::after {
  content: "\2212";
  color: #8a5b12;
}
.cpl-faq-answer {
  padding: 0 4px 20px 4px;
  font-size: 14.5px;
  color: var(--wp--preset--color--body);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cpl-faq-answer p {
  margin: 0;
}

/* ---- Writing row ---- */
.cpl-writing-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 8px;
}
.cpl-writing-all {
  font-size: 14.5px;
  font-weight: 700;
}
.cpl-writing-sub {
  font-size: 16px;
  color: var(--wp--preset--color--muted);
  margin-bottom: 32px;
  max-width: 74ch;
}
.cpl-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.cpl-article {
  border-top: 2px solid var(--wp--preset--color--ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cpl-article-meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.cpl-article-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--wp--preset--color--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cpl-article-date {
  font-size: 12.5px;
  color: var(--wp--preset--color--muted);
}
.cpl-article-title {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 18px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
  line-height: 1.4;
}
.cpl-article-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}
.cpl-article-title a:hover {
  text-decoration: underline;
}

/* ---- Closing band ---- */
.cpl-closing-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1248px;
  margin: 0 auto;
}
.cpl-closing-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cpl-closing-h {
  font-size: 44px;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.1;
}
.cpl-closing-lede {
  font-size: 17px;
  color: var(--wp--preset--color--band-text);
  max-width: 52ch;
  line-height: 1.6;
}
.cpl-closing-small {
  font-size: 13.5px;
  color: #9aa7c0;
  margin-top: 6px;
}
.cpl-closing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  align-items: stretch;
}
.cpl-closing-cta {
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--ink);
  box-shadow: 0 4px 14px rgba(22, 33, 58, 0.22);
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 700;
  padding: 17px 40px;
  border-radius: 6px;
  text-align: center;
}
.cpl-email-chip {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #47557c;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 6px;
  text-align: center;
}

/* No stray page-background strips between header, main and footer */
.wp-site-blocks > * + * {
  margin-block-start: 0;
}

/* ---- Situations as disclosure rows ---- */
.cpl-situation summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
}
.cpl-situation summary::-webkit-details-marker {
  display: none;
}
.cpl-situation summary > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cpl-situation summary::after {
  content: "+";
  font-family: var(--wp--preset--font-family--atkinson);
  font-size: 21px;
  font-weight: 400;
  color: var(--wp--preset--color--muted);
  line-height: 1;
  flex-shrink: 0;
}
.cpl-situation[open] summary::after {
  content: "\2212";
  color: #8a5b12;
}
/* A panel folding away (assets/js/carousel.js) shows its plus sign at once */
.cpl-situation.is-closing summary::after,
.cpl-faq.is-closing summary::after {
  content: "+";
  color: var(--wp--preset--color--muted);
}
.cpl-situation summary:hover,
.cpl-faq summary:hover {
  background: rgba(28, 39, 64, 0.04);
}
.cpl-situation-panel {
  margin: 4px 0 20px 0;
  background: #ffffff;
  border: 1px solid var(--wp--preset--color--hairline);
  border-radius: 6px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cpl-panel-answer {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 15.5px;
  color: var(--wp--preset--color--ink);
  line-height: 1.6;
}
.cpl-panel-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cpl-panel-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  font-weight: 700;
}
.cpl-panel-body {
  font-size: 14px;
  color: var(--wp--preset--color--body);
}
.cpl-panel-deadline {
  font-size: 14px;
  color: var(--wp--preset--color--body);
  background: #fdf3dc;
  border-radius: 6px;
  padding: 12px 14px;
}
.cpl-panel-deadline strong {
  color: var(--wp--preset--color--ink);
}
.cpl-panel-jargon {
  font-size: 13.5px;
  color: var(--wp--preset--color--muted);
}
.cpl-panel-disc {
  font-size: 12.5px;
  color: var(--wp--preset--color--muted);
  font-style: italic;
}
.cpl-panel-cta {
  align-self: flex-start;
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--ink);
  box-shadow: 0 4px 14px rgba(22, 33, 58, 0.22);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 6px;
}

/* ---- Footer ---- */
.cpl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 56px;
}
.cpl-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.65;
}
.cpl-footer-brand {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
}
.cpl-footer-small {
  font-size: 13.5px;
}
.cpl-footer-small strong {
  color: var(--wp--preset--color--ink);
}
.cpl-footer-rule {
  border-top: 1px solid #eceadf;
  padding-top: 12px;
}
.cpl-footer-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
  font-weight: 700;
}
.cpl-footer-label + .cpl-footer-label,
.cpl-footer-gap {
  margin-top: 14px;
}
.cpl-footer-col a {
  color: var(--wp--preset--color--body);
  font-size: 14px;
  text-decoration: none;
}
.cpl-footer-col a:hover {
  text-decoration: underline;
  color: var(--wp--preset--color--ink);
}
.cpl-footer-fine {
  font-size: 13px;
}
.cpl-footer-legal {
  border-top: 1px solid var(--wp--preset--color--hairline);
  margin-top: 36px;
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.7;
}
.cpl-footer-legal strong {
  color: var(--wp--preset--color--ink);
}

/* ---- Mobile menu ---- */
.cpl-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 6px;
  color: var(--wp--preset--color--ink);
  cursor: pointer;
  line-height: 0;
}
.cpl-burger:hover {
  background: rgba(28, 39, 64, 0.05);
}
.cpl-burger .cpl-burger-close {
  display: none;
}
.cpl-burger[aria-expanded="true"] .cpl-burger-open {
  display: none;
}
.cpl-burger[aria-expanded="true"] .cpl-burger-close {
  display: block;
}

/* ---- Hover and focus polish ---- */
.wp-block-button__link,
.cpl-submit,
.cpl-closing-cta,
.cpl-panel-cta,
.cpl-email-chip,
.cpl-carousel-arrow,
.cpl-dot,
.cpl-situation summary,
.cpl-faq summary,
header .wp-block-group p a,
.cpl-attribution a {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.wp-element-button:hover,
.cpl-submit:hover,
.cpl-closing-cta:hover,
.cpl-panel-cta:hover {
  background: #e3a42c;
  box-shadow: 0 6px 18px rgba(22, 33, 58, 0.28);
  transform: translateY(-1px);
}
.cpl-button-navy .wp-block-button__link:hover {
  background: #2c3d63;
}
header .wp-block-group p a:hover {
  color: var(--wp--preset--color--ink);
}
.cpl-carousel-arrow:hover {
  border-color: var(--wp--preset--color--ink);
  background: #ffffff;
}
.cpl-dot:hover {
  background: #b9b4a5;
}
.cpl-dot[aria-current="true"]:hover {
  background: var(--wp--preset--color--amber);
}
.cpl-email-chip:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}
.cpl-attribution a:hover {
  color: var(--wp--preset--color--ink);
}
.cpl-funeral-line a {
  text-decoration: underline;
}
.cpl-writing-all:hover {
  color: var(--wp--preset--color--ink);
}

/* ---- Subpages (legal pages and other prose) ---- */
.cpl-page-head h1 {
  font-size: 42px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.cpl-page-body {
  border-top: 1px solid var(--wp--preset--color--hairline);
  border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.cpl-page-prose,
.cpl-page-body > * {
  max-width: 74ch;
  font-size: 15.5px;
  line-height: 1.7;
}
.cpl-page-prose h2,
.cpl-page-body h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 36px 0 12px 0;
}
.cpl-page-prose h2:first-child,
.cpl-page-body > h2:first-child {
  margin-top: 0;
}
.cpl-page-prose h3,
.cpl-page-body h3 {
  font-family: var(--wp--preset--font-family--merriweather);
  font-weight: 700;
  color: var(--wp--preset--color--ink);
  font-size: 19px;
  margin: 26px 0 8px 0;
}
.cpl-page-prose p,
.cpl-page-body p {
  margin: 0 0 14px 0;
}
.cpl-page-prose ul,
.cpl-page-prose ol,
.cpl-page-body ul,
.cpl-page-body ol {
  margin: 0 0 14px 0;
  padding-left: 24px;
}
.cpl-page-prose li,
.cpl-page-body li {
  margin-bottom: 6px;
}
.cpl-page-prose strong,
.cpl-page-body strong {
  color: var(--wp--preset--color--ink);
}
.cpl-page-prose table,
.cpl-page-body table {
  border-collapse: collapse;
  margin: 0 0 14px 0;
}
.cpl-page-prose th,
.cpl-page-prose td,
.cpl-page-body th,
.cpl-page-body td {
  border: 1px solid var(--wp--preset--color--hairline);
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}

.cpl-tick-big {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--wp--preset--color--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cpl-urgentbox {
  background: #fdf3dc;
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.65;
  max-width: 74ch;
  margin: 0 0 14px 0;
}

/* ---- Insights index and single posts ---- */
.cpl-index-body > .wp-block-query {
  max-width: none;
}
/* The card list is a <ul> inside the page body, so the legal pages' list
   indent and spacing must not reach it (that indent sat the Insights and
   category grids 24px in from the left until v0.23.4). */
.cpl-page-body .cpl-articles-loop {
  margin: 0;
  padding: 0;
}
.cpl-index-title {
  font-size: 42px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 8px 0;
}
.cpl-articles-loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.cpl-articles-loop > li {
  margin: 0;
}
.cpl-article-cat a {
  color: inherit;
  text-decoration: none;
}
.cpl-article-cat a:hover {
  text-decoration: underline;
}
h2.cpl-article-title,
h3.cpl-article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0;
}
.cpl-article-date time {
  font-size: inherit;
}
.cpl-pagination {
  margin-top: 44px;
  font-size: 14.5px;
}
.cpl-post-meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}
.cpl-post-title {
  font-size: 42px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  max-width: 26ch;
  text-wrap: balance;
}
.cpl-page-body .wp-block-quote {
  border-left: 3px solid var(--wp--preset--color--amber);
  margin: 0 0 14px 0;
  padding: 4px 0 4px 18px;
  font-family: var(--wp--preset--font-family--merriweather);
  font-style: italic;
  font-size: 17px;
  color: var(--wp--preset--color--ink);
}
.cpl-page-body .wp-block-quote p {
  margin: 0;
}
.cpl-origin {
  font-size: 13.5px;
  color: var(--wp--preset--color--muted);
  border-top: 1px solid var(--wp--preset--color--hairline);
  padding-top: 14px;
  margin-top: 24px;
}
.cpl-author-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--wp--preset--color--hairline);
  margin-top: 36px;
  padding-top: 22px;
  max-width: 74ch;
}
.cpl-author-strip img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--wp--preset--color--hairline);
}
.cpl-author-name {
  font-family: var(--wp--preset--font-family--merriweather);
  font-weight: 700;
  font-size: 16px;
  color: var(--wp--preset--color--ink);
}
.cpl-author-role {
  font-size: 13.5px;
  color: var(--wp--preset--color--muted);
}

/* Custom-layout containers manage their own spacing: strip the
   editor's injected inter-block margins inside them */
.cpl-situations > * + *,
.cpl-situation > * + *,
.cpl-callout > * + *,
.cpl-ledger > * + *,
.cpl-ledger-row > * + *,
.cpl-ledger-right > * + *,
.cpl-note-panel > * + *,
.cpl-costs-cols > * + *,
.cpl-col > * + *,
.cpl-about-grid > * + *,
.cpl-portrait-col > * + *,
.cpl-about-text > * + *,
.cpl-linkedin-band > * + *,
.cpl-referrers-grid > * + *,
.cpl-ref-left > * + *,
.cpl-ref-list > * + *,
.cpl-ref-item > * + *,
.cpl-reviews-inner > * + *,
.cpl-enquiry-head > * + *,
.cpl-faq-grid > * + *,
.cpl-writing-head > * + *,
.cpl-articles > * + *,
.cpl-closing-inner > * + *,
.cpl-closing-text > * + *,
.cpl-closing-actions > * + *,
.cpl-situation-panel > * + *,
.cpl-panel-fact > * + *,
.cpl-footer-grid > * + *,
.cpl-footer-col > * + *,
.cpl-post-meta > * + *,
.cpl-articles-loop .cpl-article > * + *,
.cpl-articles-loop .cpl-article-meta > * + *,
.cpl-profile-intro > * + *,
.cpl-intro-text > * + *,
.cpl-profile-scope > * + *,
.cpl-scope-col > * + *,
.cpl-profile-rows > * + *,
.cpl-profile-row > * + *,
.cpl-profile-row-body > * + *,
.cpl-matter-row > * + *,
.cpl-matter-head > * + *,
.cpl-matter-body > * + * {
  margin-block-start: 0;
}


/* ---- Author page (/matt-smith/): three profile bands (theme v0.19.0) ----
   1. white: the lead and opening paragraphs, then the facts (each carrying
      the link that proves it), beside the portrait
   2. paper: "What I do" and "What I do not do" at full width
   3. white: How I practise, Credentials and How I work as rows on the
      Matters rows' grid, so both text columns start on the same line
   Groups carry WordPress's flow margins (24px on every child but the
   first), so the grid children's margins are set explicitly here. */
body.cpl-author-page {
  --cpl-side: 380px;
  --cpl-text: 760px;
}
.cpl-profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cpl-side);
  grid-template-rows: auto 1fr;
  column-gap: 80px;
  align-items: start;
}
.cpl-profile-intro > .cpl-intro-portrait {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.cpl-intro-portrait .cpl-portrait-frame {
  height: auto;
  aspect-ratio: 4 / 5;
}
.cpl-profile-intro > .cpl-intro-text {
  grid-column: 1;
  grid-row: 1;
  max-width: var(--cpl-text);
  margin: 0;
}
.cpl-intro-text .cpl-about-lead {
  font-size: 27px;
  line-height: 1.45;
  margin: 0 0 22px 0;
}
.cpl-intro-text p:not(.cpl-about-lead) {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 14px 0;
  max-width: 68ch;
}
.cpl-intro-text > p:not(.cpl-about-lead):last-child {
  margin-bottom: 0;
}
.cpl-profile-intro > .cpl-intro-facts {
  grid-column: 1;
  grid-row: 2;
  max-width: var(--cpl-text);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
  border-top: 1px solid var(--wp--preset--color--hairline);
  padding-top: 20px;
  margin: 28px 0 0 0;
}
.cpl-intro-facts > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cpl-intro-facts dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  font-weight: 700;
}
.cpl-intro-facts dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--wp--preset--color--ink);
}
.cpl-profile-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: start;
}
.cpl-profile-scope > .cpl-scope-col {
  margin: 0;
}
.cpl-scope-col h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 14px 0;
}
.cpl-scope-col > p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px 0;
}
.cpl-scope-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--wp--preset--color--hairline);
}
.cpl-scope-col li {
  margin: 0;
  padding: 14px 0 15px 0;
  border-bottom: 1px solid var(--wp--preset--color--hairline);
  font-size: 16.5px;
  line-height: 1.6;
}
.cpl-scope-col li strong {
  color: var(--wp--preset--color--ink);
}
.cpl-profile-rows > .cpl-profile-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px 64px;
  margin: 0;
  padding: 34px 0;
  border-top: 1px solid var(--wp--preset--color--hairline);
}
.cpl-profile-rows > .cpl-profile-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.cpl-profile-rows > .cpl-profile-row:last-child {
  padding-bottom: 0;
}
.cpl-profile-row > h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0;
}
.cpl-profile-row > .cpl-profile-row-body {
  margin: 0;
}
.cpl-profile-row-body p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 14px 0;
  max-width: 68ch;
}
.cpl-profile-row-body > p:last-child {
  margin-bottom: 0;
}
.cpl-author-name a {
  color: inherit;
  text-decoration: none;
}
.cpl-author-name a:hover {
  text-decoration: underline;
}

/* ---- Featured images on Insights (theme v0.20.0) ----
   16:9 throughout, so cards line up and words inside an image are never
   cropped; the block sets aspect-ratio and object-fit on the img. Cards:
   the image sits above the card's 2px rule, so the card itself is unchanged.
   Articles: the image heads the 720px reading column. */
.cpl-card-image,
.cpl-post-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--hairline);
  background: var(--wp--preset--color--paper);
}
.wp-block-post-content .wp-block-image {
  overflow: hidden;
}
.cpl-card-image a {
  display: block;
}
.cpl-card-image img,
.cpl-post-image img {
  display: block;
  width: 100%;
  height: auto;
}
.cpl-articles-loop > li > .cpl-card-image {
  margin: 0 0 18px 0;
}
.cpl-articles-loop > li > .cpl-article {
  margin-block-start: 0;
}
.cpl-card-image a img {
  transition: opacity 0.2s ease;
}
.cpl-card-image a:hover img {
  opacity: 0.88;
}
body.single-post .cpl-page-body > .cpl-post-image {
  margin: 0 auto 40px auto;
}

/* ---- Reading pages: articles, legal pages, thank-you ----
   A centred column at the site's body size, instead of a 74ch column
   pinned to the left gutter; the author page and the index keep their
   own layouts. */
body.single-post .cpl-page-head > *,
body.page:not(.cpl-author-page) .cpl-page-head > *,
body.error404 .cpl-page-head > *,
body.single-post .cpl-page-body > *,
body.page:not(.cpl-author-page) .cpl-page-body > *,
body.error404 .cpl-page-body > *,
body.single-post .cpl-author-strip {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
body.single-post .cpl-page-body > *,
body.page:not(.cpl-author-page) .cpl-page-body > *,
body.error404 .cpl-page-body > * {
  font-size: 17px;
  line-height: 1.7;
}
body.single-post .cpl-post-title,
body.page:not(.cpl-author-page) .cpl-page-head h1,
body.error404 .cpl-page-head h1 {
  font-size: 36px;
  line-height: 1.2;
  max-width: 720px;
  text-wrap: pretty;
}

/* ---- Enquiry form: optional message ---- */
.cpl-form-row--single {
  grid-template-columns: 1fr;
}
.cpl-form-row--single > .cpl-field {
  flex: 1 1 100%;
  width: 100%;
}
.cpl-textarea {
  height: auto;
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}
.cpl-field-note {
  font-size: 13px;
  color: var(--wp--preset--color--muted);
  margin: 6px 0 0 0;
  line-height: 1.5;
}

/* ---- Matters I have handled (About page band, homepage signpost) ---- */
.cpl-linkedin-band--second {
  margin-top: 12px;
}
.cpl-matters-sub {
  font-size: 16px;
  color: var(--wp--preset--color--muted);
  max-width: 74ch;
  margin-bottom: 36px;
}
.cpl-matters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cpl-matter-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px 64px;
  padding: 26px 0;
  border-top: 1px solid var(--wp--preset--color--hairline);
  margin: 0;
}
.cpl-matter-row:last-child {
  border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.cpl-matter-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cpl-matter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--wp--preset--color--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cpl-matter-title {
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 19px;
  font-weight: 700;
  color: var(--wp--preset--color--ink);
  line-height: 1.35;
  margin: 0;
}
.cpl-matter-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 70ch;
}
.cpl-matter-body p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

/* ================================================================
   Responsive pass. The design is authored at 1440px; these tiers
   keep it composed in narrower windows and on phones.
   ================================================================ */

/* ---- Tier 1: narrow desktop and tablet (<= 1100px) ---- */
@media (max-width: 1100px) {
  .wp-block-group[style*="padding-left:64px"],
  section[style*="padding-left:64px"] {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  .cpl-linkedin-band {
    margin-left: 40px;
    margin-right: 40px;
  }
  .cpl-hero-title,
  h1[style*="font-size:80px"],
  .cpl-hero-italic[style*="font-size:80px"] {
    font-size: clamp(40px, 7.5vw, 80px) !important;
  }
  h2[style*="font-size:42px"] {
    font-size: clamp(29px, 4.6vw, 42px) !important;
  }
  .cpl-nowrap {
    white-space: normal;
  }
  .cpl-closing-h {
    font-size: clamp(30px, 4.8vw, 44px);
  }
  .cpl-ref-heading {
    font-size: clamp(28px, 4.2vw, 38px);
  }
  .cpl-about-lead {
    font-size: clamp(21px, 3vw, 27px);
  }
  .cpl-ledger-row {
    grid-template-columns: 44px 1fr 200px;
  }
  .cpl-quote-region {
    padding: 0 56px;
  }
  header .wp-block-group p a {
    white-space: nowrap;
  }
  header .wp-block-group[style*="gap:30px"] {
    gap: 12px 20px !important;
  }
}

/* ---- Tier 2: small tablet and split-screen (<= 900px) ---- */
@media (max-width: 900px) {
  .cpl-situations,
  .cpl-costs-cols,
  .cpl-faq-grid,
  .cpl-form-row,
  .cpl-articles,
  .cpl-referrers-grid,
  .cpl-about-grid {
    grid-template-columns: 1fr;
  }
  .cpl-situations {
    gap: 0;
  }
  .cpl-callout {
    grid-column: span 1;
  }
  .cpl-costs-cols {
    gap: 24px;
  }
  .cpl-referrers-grid {
    gap: 44px;
  }
  .cpl-articles {
    gap: 28px;
  }
  .cpl-articles-loop {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cpl-about-grid {
    gap: 40px;
  }
  .cpl-portrait-col {
    max-width: 380px;
  }
  .cpl-faq-col + .cpl-faq-col {
    border-top: 0;
  }
  .cpl-ledger-row {
    grid-template-columns: 44px 1fr;
  }
  .cpl-ledger-right {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
    margin-top: 4px;
  }
  .cpl-note-caps {
    white-space: normal;
  }
  .cpl-closing-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .cpl-closing-actions {
    width: 100%;
    max-width: 420px;
  }
  header .wp-block-group {
    flex-wrap: wrap !important;
  }
  .cpl-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Tier 3: phones (<= 640px) ---- */
@media (max-width: 640px) {
  .wp-block-group[style*="padding-left:64px"],
  section[style*="padding-left:64px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .wp-block-group[style*="padding-left:48px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 12px !important;
  }
  .cpl-hero-title,
  h1[style*="font-size:80px"],
  .cpl-hero-italic[style*="font-size:80px"] {
    font-size: clamp(34px, 10vw, 44px) !important;
  }
  h2[style*="font-size:42px"] {
    font-size: clamp(26px, 7.5vw, 32px) !important;
  }
  .cpl-linkedin-band {
    margin-left: 20px;
    margin-right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cpl-note-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cpl-note-caps {
    text-align: left;
  }
  .cpl-writing-head {
    flex-wrap: wrap;
  }
  .cpl-form-card {
    padding: 24px 20px;
  }
  .cpl-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cpl-submit {
    width: 100%;
  }
  .cpl-quote-region {
    padding: 0 4px;
  }
  .cpl-carousel-arrow {
    display: none;
  }
  .cpl-faq summary {
    font-size: 16px;
  }
  header .cpl-band {
    position: relative;
  }
  .cpl-burger {
    display: inline-flex;
    margin-left: auto;
  }
  header .cpl-band p[style*="font-size:19px"] {
    font-size: 16px !important;
  }
  header .cpl-band .cpl-eyebrow {
    font-size: 10px !important;
  }
  .cpl-nav {
    display: none !important;
  }
  .cpl-nav.is-open {
    display: flex !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    background: #ffffff;
    border-bottom: 1px solid var(--wp--preset--color--hairline);
    box-shadow: 0 14px 28px rgba(22, 33, 58, 0.12);
    padding: 6px 20px 20px 20px;
    z-index: 40;
  }
  .cpl-nav.is-open p {
    border-bottom: 1px solid var(--wp--preset--color--hairline);
  }
  .cpl-nav.is-open p a {
    display: block;
    padding: 14px 2px;
  }
  .cpl-nav.is-open .wp-block-buttons {
    padding-top: 16px;
  }
  .cpl-nav.is-open .wp-block-button,
  .cpl-nav.is-open .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
  .cpl-pill {
    white-space: normal;
    text-align: center;
  }
}

/* Sticky header on desktop and laptop: the template-part wrapper
   becomes transparent to layout so the white row can stick while the
   regulatory bar scrolls away. */
@media (min-width: 901px) {
  header.wp-block-template-part {
    display: contents;
  }
  header .cpl-band {
    position: sticky;
    top: 0;
    z-index: 60;
  }
  [id] {
    scroll-margin-top: 96px;
  }
  html {
    scroll-behavior: smooth;
  }
}

/* ---- Scroll reveals (theme v0.23.0; behaviour in assets/js/reveal.js) ----
   Hidden states exist only once a script has added a class, so without
   JavaScript everything is simply visible. Blocks fade and rise, rules draw
   across, and pictures settle inside their frames. */
html.js .cpl-reveal {
  opacity: 0;
  transform: translateY(16px);
}
/* Insights and category pages: the head script (functions.php) adds
   html.cpl-landing before the first paint, so the cards start hidden and
   come in as the page opens; reveal.js takes over and removes it. */
html.cpl-landing .cpl-index-body .cpl-articles-loop > li:not(.no-reveal, .no-reveal *) {
  opacity: 0;
  transform: translateY(16px);
}
html.js .cpl-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 680ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 680ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--cpl-reveal-delay, 0ms);
}
html.js .cpl-reveal :is(.cpl-card-image, .cpl-post-image, .wp-block-image, .cpl-portrait-frame) img,
html.js .cpl-reveal.wp-block-image img {
  transform: scale(1.035);
}
html.js .cpl-reveal.is-in :is(.cpl-card-image, .cpl-post-image, .wp-block-image, .cpl-portrait-frame) img,
html.js .cpl-reveal.is-in.wp-block-image img {
  transform: none;
  transition: transform 1100ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--cpl-reveal-delay, 0ms);
}
html.js .cpl-rule {
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
  background-image: linear-gradient(var(--cpl-rule-top-colour, transparent), var(--cpl-rule-top-colour, transparent)), linear-gradient(var(--cpl-rule-bottom-colour, transparent), var(--cpl-rule-bottom-colour, transparent));
  background-repeat: no-repeat;
  background-origin: border-box;
  background-position: left top, left bottom;
  background-size: 0% var(--cpl-rule-top-width, 0px), 0% var(--cpl-rule-bottom-width, 0px);
}
html.js .cpl-rule.is-drawn {
  background-size: 100% var(--cpl-rule-top-width, 0px), 100% var(--cpl-rule-bottom-width, 0px);
  transition: background-size 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--cpl-reveal-delay, 0ms);
}
html.js .cpl-reveal.cpl-rule.is-in.is-drawn {
  transition: opacity 680ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 680ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background-size 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--cpl-reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html.js .cpl-reveal,
  html.js .cpl-reveal img,
  html.cpl-landing .cpl-index-body .cpl-articles-loop > li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media print {
  html.js .cpl-reveal,
  html.js .cpl-reveal img,
  html.cpl-landing .cpl-index-body .cpl-articles-loop > li {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js .cpl-rule {
    background-image: none !important;
    border-top-color: var(--cpl-rule-top-colour) !important;
    border-bottom-color: var(--cpl-rule-bottom-colour) !important;
  }
}

/* Respect reduced motion everywhere the build adds movement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus in the site's own colours */
:where(a, button, .wp-block-button__link, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--wp--preset--color--slate);
  outline-offset: 2px;
}

/* Author page on narrower screens: the facts span both columns, then
   everything stacks with the portrait first; rows go single-column */
@media (max-width: 1100px) {
  body.cpl-author-page {
    --cpl-side: 320px;
  }
  body.cpl-author-page .cpl-page-head h1 {
    font-size: clamp(32px, 4.6vw, 42px);
  }
  .cpl-profile-intro,
  .cpl-profile-scope {
    column-gap: 56px;
  }
  .cpl-intro-text .cpl-about-lead {
    font-size: clamp(21px, 3vw, 27px);
  }
  .cpl-profile-intro > .cpl-intro-portrait {
    grid-row: 1;
  }
  .cpl-profile-intro > .cpl-intro-facts {
    grid-column: 1 / -1;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .cpl-matter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cpl-profile-intro,
  .cpl-profile-scope {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 44px;
  }
  .cpl-profile-intro > .cpl-intro-portrait,
  .cpl-profile-intro > .cpl-intro-text,
  .cpl-profile-intro > .cpl-intro-facts {
    grid-column: 1;
    grid-row: auto;
  }
  .cpl-profile-intro > .cpl-intro-portrait {
    max-width: 320px;
  }
  .cpl-profile-intro > .cpl-intro-facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }
  .cpl-profile-rows > .cpl-profile-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .cpl-profile-intro > .cpl-intro-portrait {
    max-width: 260px;
  }
  .cpl-scope-col li {
    font-size: 16px;
  }
  .cpl-profile-intro > .cpl-intro-facts {
    grid-template-columns: 1fr;
  }
}

/* Cookie consent bar and the footer's "Cookie settings" control, added by
   assets/js/consent.js only when wp-config.php defines CPL_GOOGLE_TAG.
   Accept and Reject are identical on purpose: the cookie policy promises
   equal prominence. Reduced motion is covered by the global rule above. */
.cpl-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--wp--preset--color--band);
  color: var(--wp--preset--color--band-text);
  box-shadow: 0 -6px 24px rgba(22, 33, 58, 0.28);
  font-family: var(--wp--preset--font-family--atkinson);
  animation: cpl-cookie-bar-in 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes cpl-cookie-bar-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cpl-cookie-bar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 32px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}
.cpl-cookie-bar__text {
  flex: 1;
  min-width: 0;
}
.cpl-cookie-bar__text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.cpl-cookie-bar__text .cpl-cookie-bar__title {
  margin-bottom: 6px;
  font-family: var(--wp--preset--font-family--merriweather);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wp--preset--color--paper);
}
.cpl-cookie-bar a {
  color: var(--wp--preset--color--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cpl-cookie-bar a:hover {
  color: var(--wp--preset--color--amber);
}
.cpl-cookie-bar__buttons {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}
.cpl-cookie-bar__button {
  min-width: 132px;
  margin: 0;
  padding: 13px 26px;
  border: 0;
  border-radius: 6px;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.cpl-cookie-bar__button:hover {
  background: var(--wp--preset--color--hairline);
}
.cpl-cookie-bar :focus-visible {
  outline-color: var(--wp--preset--color--amber);
}
@media (max-width: 640px) {
  .cpl-cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .cpl-cookie-bar__text p {
    font-size: 14.5px;
  }
  .cpl-cookie-bar__button {
    flex: 1;
    min-width: 0;
  }
}
.cpl-cookie-settings {
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--wp--preset--color--body);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.cpl-cookie-settings:hover {
  text-decoration: underline;
  color: var(--wp--preset--color--ink);
}
@media print {
  .cpl-cookie-bar,
  .cpl-cookie-settings {
    display: none !important;
  }
}
/* End cookie consent */
