/* DH-LLP inner-page layer (WCAG 2.2 AA).
 *
 * Sits ON TOP of landing.css - layouts.site loads both, so every rule
 * here consumes the landing tokens (--navy/--ink/--muted/--line/--bg)
 * and the Manrope/Sora type ramp. Only covers what the landing system
 * does not: page rhythm, prose, listing cards, forms, filters,
 * pagination, notices/alerts, breadcrumbs, search results, the staff
 * preview bar, and the three block types without landing rules
 * (quote / download / video).
 *
 * Do NOT redeclare design tokens, layout chrome (masthead/footer/nav)
 * or block styles already in landing.css - edit landing.css instead.
 */

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * Shared nav component (partials.nav) - the public layouts render the
 * landing skin (site-nav--landing, in landing.css). This keeps the
 * documented 'site' variant usable as a plain inline menu.
 * ----------------------------------------------------------------- */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-menu a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav-menu a:hover {
  color: var(--ink);
  background: #fff;
}
.site-nav-menu a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
a.site-nav-search {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem;
  color: var(--ink);
  text-decoration: none;
}
a.site-nav-cta {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}
a.site-nav-cta:hover {
  background: var(--navy-3);
  color: #fff;
}
.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.site-nav-toggle-bars,
.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}
.site-nav-toggle-bars {
  position: relative;
}
.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.site-nav-toggle-bars::before {
  top: -5px;
}
.site-nav-toggle-bars::after {
  top: 5px;
}
.site-nav-toggle-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .site-nav:not(.site-nav--landing) .site-nav-toggle {
    display: inline-flex;
  }
  .site-nav:not(.site-nav--landing) .site-nav-menu {
    display: none;
  }
  .site-nav:not(.site-nav--landing) .site-nav-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-2);
    padding: 0.5rem 1.25rem 1rem;
    z-index: 120;
  }
  .site-nav:not(.site-nav--landing) .site-nav-menu.is-open a {
    color: rgba(255, 255, 255, 0.75);
  }
}

/* ------------------------------------------------------------------
 * Page rhythm - inner views open with a .container (h1 + intro);
 * managed block sections carry their own landing padding, so spacing
 * is only applied to the content containers, never <main> itself.
 * ----------------------------------------------------------------- */
#main-content {
  padding-bottom: 4.5rem;
}
#main-content > .container,
#main-content > article > .container:first-child {
  padding-top: 3rem;
}
.prose h1,
#main-content > .container > h1:first-child {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.035em;
  margin: 0 0 1.4rem;
}

/* Breadcrumbs (FR-WEB-004) - partials.breadcrumbs into the layout slot. */
.breadcrumbs {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 1.4rem 0 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li + li::before {
  content: "\203A";
  margin-right: 0.4rem;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs a:hover {
  color: var(--ink);
}
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

/* ------------------------------------------------------------------
 * Prose - sanitized body HTML (practice/sector/person/publication
 * bodies) mirrors the landing .block-rich-text rhythm.
 * ----------------------------------------------------------------- */
.prose {
  max-width: 48rem;
}
.prose h2,
.prose h3,
.prose h4 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  margin: 1.6rem 0 0.9rem;
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}
.prose a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------------
 * Person profile head - portrait beside the name/role on /people/{slug}.
 * ----------------------------------------------------------------- */
.person-head {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.person-portrait {
  width: 13rem;
  height: auto;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.person-head-text {
  min-width: 0;
}
@media (max-width: 575.98px) {
  .person-head {
    flex-direction: column;
    gap: 1.25rem;
  }
  .person-portrait {
    width: 10rem;
  }
}
.meta,
.byline {
  color: var(--muted);
  font-size: 0.82rem;
}
.byline a {
  color: var(--ink);
  font-weight: 600;
}

/* Per-article legal-information note - separated from the body copy
   by a hairline so it reads as boilerplate, not content. */
.article-disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------
 * Listing cards - the landing card look (white, --line border,
 * 16px radius, hover lift) applied to the inner indexes.
 * ----------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  color: var(--ink);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -26px rgba(18, 35, 91, 0.22);
}
.card h2,
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
}
.card h2 a,
.card h3 a {
  color: inherit;
}
.card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ------------------------------------------------------------------
 * Buttons - the landing dark pill.
 * ----------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}
.button:hover {
  background: var(--navy-3);
  color: #fff;
}

/* ------------------------------------------------------------------
 * Forms - enquiry/consultation/subscribe/search. Landing inputs:
 * white on --bg, --line-ish border, 10px radius, navy focus ring;
 * the submit renders the dark pill.
 * ----------------------------------------------------------------- */
.form .field {
  margin-bottom: 1.15rem;
}
.form label,
.form legend,
.form .field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="search"],
.form input[type="password"],
.form input[type="datetime-local"],
.form input[type="file"],
.form select,
.form textarea {
  width: 100%;
  max-width: 36rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.form fieldset label,
.form .field-checkbox label {
  display: inline;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
.form input[type="checkbox"],
.form input[type="radio"] {
  margin-right: 0.45rem;
}
.field-error {
  color: #b42318;
  font-size: 0.78rem;
  margin: 0.35rem 0 0;
}
.field-help {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0.35rem 0 0;
}
.field-optional,
.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
}
.privacy-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.4rem;
}
.privacy-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.form button:hover {
  background: var(--navy-3);
}

/* Inline filter bar (publications index). */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.filter-form > div {
  min-width: 10rem;
}
.filter-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.filter-form select,
.filter-form input[type="search"] {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
}
.filter-form button {
  padding: 0.6rem 1.4rem;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.filter-form button:hover {
  background: var(--navy-3);
}

/* ------------------------------------------------------------------
 * Publication archive (/insights) - media-topped cards on the shared
 * .card shell: 16/9 cover (or a per-type navy monogram) with the
 * landing .b-date badge, type eyebrow, clamped summary and a
 * stretched-link CTA pinned to the card foot.
 * ----------------------------------------------------------------- */
.pub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.pub-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--navy-2);
}
.pub-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pub-card:hover .pub-card-media img {
  transform: scale(1.04);
}
.pub-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(120% 140% at 80% 0%, #1e346f 0%, var(--navy) 70%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.1rem;
}
.pub-card-date {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 8px 18px -8px rgba(18, 35, 91, 0.4);
}
.pub-card-date small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}
.pub-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.45rem 1.35rem;
}
.pub-card-type {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pub-card-title {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.45rem 0 0.5rem;
}
.pub-card-title a {
  color: inherit;
}
.pub-card-summary {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.pub-card-cta .bi {
  transition: transform 0.25s ease;
}
.pub-card:hover .pub-card-cta .bi {
  transform: translate(2px, -2px);
}

/* ------------------------------------------------------------------
 * Publication detail (/insights/{slug}) - the shared .page-hero band
 * carries the type tag, title, summary lede, meta row and byline, and
 * splits with the cover image via .page-hero-grid. The body pairs a
 * pure-black .article-body prose column with the shared sticky rail
 * (.pub-article-grid/.pub-article-side/.pub-side-card/.pub-article-back
 * extend the practice-detail structure above); related insights reuse
 * the archive .pub-card grid below.
 * ----------------------------------------------------------------- */

/* Article headlines are longer than page titles - slightly smaller
   display size and a wider measure on the shared hero. */
.pub-article .page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 26ch;
}

/* Meta + byline read on the navy band, staggering in after the lede. */
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.4rem;
  margin: 1.7rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}
.page-hero-meta .bi {
  margin-right: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
}
.page-hero-byline {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}
.page-hero-byline a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.page-hero-byline a:hover {
  text-decoration-color: #fff;
}
.page-hero-meta,
.page-hero-byline {
  animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.46s both;
}

/* Article body - pure-black reading copy, a notch larger than the
   shared .prose rhythm so long reads keep their contrast. */
.article-body,
.article-body p,
.article-body li,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body a {
  color: #000;
}
.article-body p,
.article-body li {
  font-size: 1rem;
  line-height: 1.8;
}
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 0.15rem 0 0.15rem 1.4rem;
  border-left: 3px solid var(--navy);
}
.article-body blockquote p {
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.pub-article-main {
  min-width: 0;
}

/* Attachment card - file icon + filename/size above the button. */
.pub-attachment-file {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
}
.pub-attachment-file > .bi {
  flex-shrink: 0;
  font-size: 1.7rem;
  color: var(--navy);
}
.pub-attachment-text {
  min-width: 0;
}
.pub-attachment-name {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}
.pub-attachment-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  color: var(--muted);
}
.pub-attachment .button {
  display: block;
  text-align: center;
}
.pub-attachment .button .bi {
  margin-right: 0.35rem;
}

/* Linked chips keep the unlinked chip look; the border darkens on
   hover as the affordance. */
.pub-side-card .service-chips {
  margin-bottom: 0;
}
.service-chips a {
  color: inherit;
}
.service-chips li:has(> a):hover {
  border-color: var(--navy-3);
}

.pub-related {
  margin-top: 3.5rem;
}

/* ------------------------------------------------------------------
 * Notices & flash alerts.
 * ----------------------------------------------------------------- */
.notice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.notice strong {
  color: var(--ink);
}
.notice a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice-info {
  border-left: 3px solid var(--navy);
}
.alert {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.alert p:last-child,
.alert ul:last-child {
  margin-bottom: 0;
}
.alert-error {
  background: #fdecea;
  border-color: #f5c6c0;
  color: #912018;
}
.alert-success {
  background: #e9f5ec;
  border-color: #bfe3c9;
  color: #175c2b;
}

/* ------------------------------------------------------------------
 * Filter pills + pagination + search results.
 * ----------------------------------------------------------------- */
.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.filter-list a {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 0.78rem;
  color: var(--ink);
  text-decoration: none;
}
.filter-list a:hover {
  border-color: var(--ink);
}
.filter-list a[aria-current="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pagination {
  display: flex;
  gap: 0.45rem;
  margin-top: 2rem;
}
.pagination a,
.pagination span {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}
.pagination a:hover {
  border-color: var(--ink);
}
.pagination span[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ------------------------------------------------------------------
 * Site search (/search) - the query field lives inside the dark
 * page-hero (white field on navy), then the results zone: count line,
 * per-type filter pills, ranked result rows with <mark> term
 * highlighting, and the browsable-section grid for the entry and
 * zero-result states.
 * ----------------------------------------------------------------- */
.search-hero-form {
  display: flex;
  gap: 0.75rem;
  max-width: 44rem;
  margin-top: 2.5rem;
}
.search-hero-field {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
}
.search-hero-field .bi-search {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}
.search-hero-field input[type="search"] {
  width: 100%;
  padding: 0.95rem 2.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}
.search-hero-field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.search-hero-field input[type="search"]:focus {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
  border-color: #fff;
}
.search-hero-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.85rem;
}
.search-hero-clear:hover {
  color: var(--ink);
  background: var(--bg);
}
.search-hero-clear[hidden] {
  display: none;
}
.search-hero-submit {
  padding: 0.95rem 1.75rem;
  border: 0;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.search-hero-submit:hover {
  background: var(--surface-blue);
}
/* The shared navy focus ring is invisible on the navy hero - the
   primary action needs the light ring the field itself uses. */
.search-hero-submit:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
}
@media (max-width: 575.98px) {
  .search-hero-form {
    flex-wrap: wrap;
  }
  .search-hero-submit {
    width: 100%;
  }
}

.search-body {
  margin-top: 2.75rem;
  padding-bottom: 3rem;
}
.search-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}
.search-pills {
  margin-bottom: 0.5rem;
}
.search-pills .filter-list {
  margin-bottom: 0.75rem;
}
.filter-list .search-pill-count {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}
.filter-list a[aria-current="true"] .search-pill-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 52rem;
}
.search-result {
  border-bottom: 1px solid var(--line);
}
.search-result-link {
  display: block;
  padding: 1.25rem 0.9rem;
  margin: 0 -0.9rem;
  border-radius: var(--radius-md);
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.search-result-link:hover {
  background: #fff;
  box-shadow: 0 18px 40px -28px rgba(18, 35, 91, 0.35);
}
.search-result-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--surface-blue);
  color: var(--navy-3);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.search-result-title {
  display: block;
  margin-top: 0.6rem;
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.search-result-link:hover .search-result-title {
  color: var(--navy-3);
}
.search-result-url {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-excerpt {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 46rem;
}
.search-results mark {
  padding: 0 0.12em;
  border-radius: 2px;
  background: rgba(27, 48, 112, 0.14);
  color: var(--ink);
  font-weight: 600;
}
.search-note {
  max-width: 52rem;
}

.search-browse {
  margin-top: 2.25rem;
}
.search-browse h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.search-browse-lede {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 40rem;
  margin: 0 0 1.5rem;
}
.search-browse-heading {
  margin-top: 0;
}
a.search-browse-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--ink);
  text-decoration: none;
}
.search-browse-card > .bi {
  font-size: 1.5rem;
  color: var(--navy-3);
  margin-bottom: 0.4rem;
}
.search-browse-name {
  font-family: "Sora", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.search-browse-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.search-browse-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.search-browse-cta .bi {
  transition: transform 0.25s ease;
}
.search-browse-card:hover .search-browse-cta .bi {
  transform: translateX(3px);
}

.contact-block {
  font-style: normal;
  margin: 1.5rem 0;
}
.contact-block p {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.contact-block a {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------
 * Contact page (FR-CONTACT-002/003, FR-MAP-001/002) - hero, the
 * consultation pathway banner, the form/aside grid, the dark
 * direct-channels card, the map embed slot and the thanks card.
 * ----------------------------------------------------------------- */
.contact-hero {
  margin-bottom: 1.75rem;
}
.contact-hero .tag {
  margin-bottom: 1rem;
}
.contact-hero .lede {
  max-width: 42rem;
  margin-bottom: 0;
}

/* Enquiry-vs-consultation routing (FR-CONTACT-003). */
.pathway-banner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 2rem;
}
.pathway-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--navy);
  font-size: 1.15rem;
}
.pathway-text {
  min-width: 0;
}
.pathway-text h2 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
}
.pathway-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}
.pathway-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.enquiry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 2.25rem 2.25rem;
  box-shadow: 0 30px 60px -45px rgba(18, 35, 91, 0.25);
}
.enquiry-card-head {
  margin-bottom: 1.4rem;
}
.enquiry-card-head h2 {
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem;
}
.enquiry-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}
.enquiry-card .notice {
  margin: 0 0 1.5rem;
}

/* Two-across rows on wider screens; fields keep their own rhythm. */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
}
@media (max-width: 575.98px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form input[aria-invalid="true"],
.form select[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: #d92d20;
}
.form input[aria-invalid="true"]:focus,
.form select[aria-invalid="true"]:focus,
.form textarea[aria-invalid="true"]:focus {
  outline-color: #d92d20;
  border-color: #d92d20;
}

.field-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  max-width: 36rem;
}
.field-footer .field-help {
  flex: 1 1 auto;
}
.char-counter {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0.35rem 0 0;
  font-variant-numeric: tabular-nums;
}
.char-counter.is-under {
  color: #b42318;
}
.char-counter.is-limit {
  color: var(--ink);
  font-weight: 600;
}

.enquiry-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.enquiry-submit-label,
.enquiry-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.enquiry-submit.is-loading {
  opacity: 0.8;
  cursor: wait;
}

/* Aside: dark direct-channels card + map slot + expectations. */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
}
.contact-card h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.contact-card:last-child {
  margin-bottom: 0;
}
.contact-card--dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.contact-card--dark h2 {
  color: #fff;
}
.contact-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.method-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.95rem;
}
.method-body {
  min-width: 0;
}
.method-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.2rem;
}
.method-value {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
a.method-value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.method-address {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.6;
}
.method-sub {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 0.2rem;
}
.method-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.method-directions:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.method-directions .bi {
  font-size: 0.7rem;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
  background: #fff;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.expect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: expect-step;
}
.expect-list li {
  counter-increment: expect-step;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 0.45rem 0;
}
.expect-list li + li {
  border-top: 1px solid var(--line);
}
.expect-list li::before {
  content: counter(expect-step);
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Thanks page (PRG target). */
.thanks-card {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3rem 2.25rem;
  box-shadow: 0 30px 60px -45px rgba(18, 35, 91, 0.25);
}
.thanks-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e9f5ec;
  color: #175c2b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.thanks-card h1 {
  margin-bottom: 0.75rem;
}
.thanks-lede {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.thanks-ref-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 1.6rem 0 0.45rem;
}
.ref-chip {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}
.thanks-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}
.thanks-steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
  display: inline-block;
}
.thanks-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 0.25rem 0;
}
.thanks-steps .bi {
  color: #175c2b;
  font-weight: 700;
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.button-ghost:hover {
  background: var(--surface-blue);
  border-color: var(--navy);
  color: var(--navy);
}

/* Copyable reference chip (thanks pages) - [data-copy] handled in site.js. */
.ref-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.ref-row .ref-chip {
  margin: 0;
}
/* Starts hidden in the markup - JS-only control, revealed by site.js. */
.ref-copy[hidden] {
  display: none;
}
.ref-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.ref-copy:hover {
  border-color: var(--ink);
}
.ref-copy.is-copied {
  border-color: #bfe3c9;
  background: #e9f5ec;
  color: #175c2b;
}

/* ------------------------------------------------------------------
 * Consultation page (CONSULT-01..03) - builds on the contact-page
 * components above (.contact-hero/.pathway-banner/.contact-grid/
 * .enquiry-card/.contact-card/.expect-list) and adds the numbered
 * form sections, selectable reply-channel cards, the attachment drop
 * zone, the consent card, the aside checklist and the copyable
 * reference.
 * ----------------------------------------------------------------- */

/* Numbered step headings inside the enquiry card. */
.form-step + .form-step {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.step-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
}
.step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.step-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step-sub {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

/* Selectable reply-channel cards (fieldset radios). The input stays
 * accessible - visually transparent inside the label - so keyboard
 * arrow-key selection and the :focus-within ring keep working. */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 36rem;
}
@media (max-width: 575.98px) {
  .choice-cards {
    grid-template-columns: 1fr;
  }
}
/* .form prefix keeps these declarations ahead of the fieldset-label
 * resets above. */
.form .choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.form .choice-card:hover {
  border-color: var(--ink);
}
.form .choice-card:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition:
    background 0.2s,
    color 0.2s;
}
.choice-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.85rem;
}
.choice-title {
  font-weight: 600;
  color: var(--ink);
}
.choice-sub {
  font-size: 0.72rem;
  color: var(--muted);
}
.form .choice-card:has(input:checked),
.form .choice-card.is-selected {
  border-color: var(--navy);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--navy);
}
.choice-card:has(input:checked) .choice-icon,
.choice-card.is-selected .choice-icon {
  background: var(--navy);
  color: #fff;
}
.form .choice-card:has(input:checked)::after,
.form .choice-card.is-selected::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

/* Attachment drop zone - the dashed-card look is applied only once JS
 * adds .is-enhanced; without JS the native file input renders as-is. */
.attach-drop {
  position: relative;
  max-width: 36rem;
}
.attach-drop-copy {
  display: none;
}
.attach-drop.is-enhanced {
  border: 1.5px dashed #a8b4ce;
  border-radius: var(--radius-md);
  background: var(--bg);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.attach-drop.is-enhanced:hover {
  border-color: var(--navy);
  background: var(--surface-blue);
}
.attach-drop.is-enhanced:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.attach-drop.is-enhanced.is-dragover {
  border-color: var(--navy);
  background: #d9e4f6;
}
.attach-drop.is-enhanced:has(input[aria-invalid="true"]) {
  border-color: #d92d20;
}
.attach-drop.is-enhanced input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 0;
  cursor: pointer;
}
.attach-drop.is-enhanced .attach-drop-copy {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.15rem 1.25rem;
  pointer-events: none;
  color: var(--muted);
  font-size: 0.85rem;
}
.attach-drop-copy .bi {
  font-size: 1.5rem;
  color: var(--navy);
}
.attach-drop-copy strong {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Chosen-file list under the drop zone. */
.attach-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.attach-file {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
}
.attach-file-icon {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 1rem;
}
.attach-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.attach-file-size {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}
.attach-file-remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}
.attach-file-remove:hover {
  color: #b42318;
  background: #fdecea;
}

/* Disclaimer consent - the required acknowledgement as a card. */
.form .field-checkbox.consent-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  background: var(--bg);
  max-width: 36rem;
}
.form .field-checkbox.consent-card label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 0;
}
.consent-card input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
}
.consent-text {
  line-height: 1.6;
}

/* Aside checklist - navy checks like .service-checklist. */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 0.3rem 0;
}
.check-list li + li {
  border-top: 1px solid var(--line);
}
.check-list .bi {
  color: var(--navy);
  font-weight: 700;
  margin-top: 0.05rem;
}

/* ------------------------------------------------------------------
 * Subscribe flow (/subscribe + capability pages) - reuses the
 * contact/consultation components; adds the neutral thanks icon for
 * non-success heads, a legible button on the navy card, the email
 * typo hint and inline links inside thanks copy.
 * ----------------------------------------------------------------- */

/* Informational (non-success) icon heads on the subscribe-flow cards. */
.thanks-icon--neutral {
  background: var(--surface-blue);
  color: var(--navy);
}

/* A .button sits legibly inside the navy contact card (also repairs
 * the same pattern on /newsletters). */
.contact-card--dark .button {
  background: #fff;
  color: var(--navy);
}
.contact-card--dark .button:hover {
  background: var(--surface-blue);
  color: var(--navy);
}

/* Inline links inside the thanks-card copy (notes/lede). */
.thanks-lede a,
.thanks-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* "Did you mean ...?" email-domain hint (js/subscribe-form.js). */
.email-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.email-hint .bi {
  color: var(--navy);
  margin-right: 0.3rem;
}
/* Out-specifies the blanket .form button rule so the suggestion reads
 * as an inline link, not a navy pill. */
.form .email-hint button {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form .email-hint button:hover {
  background: transparent;
  color: var(--navy-3);
}

/* ------------------------------------------------------------------
 * CMS-07 staff preview chrome - rendered only on /preview/{token}.
 * ----------------------------------------------------------------- */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  padding: 0.5rem 1rem;
  background: var(--navy-2);
  color: #fff;
  font-size: 0.85rem;
}
.preview-bar a {
  color: #fff;
}
.preview-bar-badge {
  background: var(--surface-blue);
  color: var(--navy);
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.preview-bar-meta {
  flex: 1 1 auto;
}
.preview-bar-viewports button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.25rem 0.7rem;
  margin-left: 0.25rem;
  border-radius: var(--radius-md);
  font: inherit;
  cursor: pointer;
}
.preview-bar-viewports button:hover {
  border-color: #fff;
}
.preview-bar-viewports button[aria-pressed="true"] {
  background: #fff;
  color: var(--navy-2);
}

/* Viewport frame - preview.js toggles these on #main-content. */
#main-content.preview-frame {
  margin-left: auto;
  margin-right: auto;
  outline: 1px solid var(--line);
}
#main-content.preview-frame-tablet {
  max-width: 48rem;
}
#main-content.preview-frame-mobile {
  max-width: 23.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------
 * Inner-page hero (.page-hero) - the shared dark intro band for
 * top-level pages (About FR-ABOUT-001/002, practice directory +
 * detail). It merges with the navy masthead into one continuous
 * header zone: on-dark breadcrumbs, the tag, display title, lede and
 * action pills, with an optional split grid for cover media on detail
 * pages. Children animate in with the landing hero-in keyframes
 * (defined in landing.css, shared by both layouts).
 * ----------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    120% 130% at 50% -10%,
    #1e346f 0%,
    var(--navy) 62%
  );
  color: #fff;
  padding-bottom: 5.5rem;
}

/* Soft blue glow, top-right corner. */
.page-hero::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -12%;
  width: 55%;
  height: 95%;
  background: radial-gradient(
    closest-side,
    rgba(148, 178, 255, 0.18),
    transparent 72%
  );
  pointer-events: none;
}

/* Hairline light edge closing the band. */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
}

.page-hero .container {
  position: relative;
}

/* Breadcrumbs render inside the band -> on-dark skin. */
.page-hero .breadcrumbs {
  padding: 1.35rem 0 0;
}
.page-hero .breadcrumbs,
.page-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.55);
}
.page-hero .breadcrumbs a:hover {
  color: #fff;
}
.page-hero .breadcrumbs li + li::before {
  color: rgba(255, 255, 255, 0.35);
}
.page-hero .breadcrumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero-tag {
  margin: 2.9rem 0 1.4rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  max-width: 18ch;
}

.page-hero-lede {
  margin: 1.5rem 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.02rem;
  line-height: 1.7;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.4rem;
}

.page-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.2s;
}

.page-hero-btn:hover {
  background: var(--surface-blue);
  color: var(--navy);
}

.page-hero-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Staggered load-in (keyframes hero-in come from landing.css). */
.page-hero .breadcrumbs {
  animation: hero-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.page-hero-tag {
  animation: hero-in 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s both;
}
.page-hero h1 {
  animation: hero-in 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}
.page-hero-lede {
  animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.34s both;
}
.page-hero-actions {
  animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.46s both;
}

/* People section: the hero anchor lands on the section so the
 * "The team" tag + heading both come into view. */
.about-people {
  scroll-margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
  .page-hero {
    padding-bottom: 4rem;
  }
  .page-hero-tag {
    margin-top: 2.2rem;
  }
}

/* ------------------------------------------------------------------
 * Managed blocks landing.css does not cover (FR-CMS-BLOCK-001).
 * Everything else - hero/rich-text/stats/image/cta/accordion +
 * every section block - is styled by landing.css already.
 * ----------------------------------------------------------------- */
.block-quote {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 0.25rem 1.25rem 0.25rem 2rem;
  border-left: 3px solid var(--navy);
}
.block-quote p {
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.block-quote footer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.block-download {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}
.block-download a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.block-download small {
  color: var(--muted);
}
.block-video {
  max-width: 1140px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}
.block-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  display: block;
}

/* ------------------------------------------------------------------
 * Split hero grid (.page-hero-grid) - detail pages pair the intro copy
 * with cover media; single-column below lg and whenever no cover
 * exists (the media figure simply is not rendered).
 * ----------------------------------------------------------------- */
.page-hero-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 992px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 3rem;
  }
}
.page-hero-media {
  margin: 0;
}
.page-hero-media img {
  display: block;
  width: 100%;
  max-height: 21rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 32px 60px -32px rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------------------------
 * Practice directory (FR-PRACTICE-001/002) - toolbar with the keyword
 * search + live count, cluster pills + grouped grid, and the rich
 * practice cards (cover, summary, service chips, stretched-link CTA).
 * ----------------------------------------------------------------- */
.practice-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.practice-search {
  flex: 1 1 20rem;
  max-width: 30rem;
}
.practice-search-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.practice-search-field {
  position: relative;
  display: block;
}
.practice-search-field .bi-search {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.practice-search-field input[type="search"] {
  width: 100%;
  padding: 0.8rem 4.5rem 0.8rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.practice-search-field input[type="search"]:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.practice-search-clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-md);
}
.practice-search-clear:hover {
  color: var(--ink);
  background: var(--bg);
}
.practice-count {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
  white-space: nowrap;
}

.practice-cluster-list {
  margin-bottom: 2rem;
}

.cluster-group + .cluster-group {
  margin-top: 2.75rem;
}
.cluster-group-head {
  margin-bottom: 1.4rem;
}
.cluster-group-head h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  margin: 0;
}
.cluster-group-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 44rem;
}

/* Card: .card supplies the shell (border/radius/hover lift + the
 * site.js reveal); the padding moves into .practice-card-body so the
 * cover can run edge to edge. */
.practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.practice-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--navy-2);
}
.practice-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.practice-card:hover .practice-card-media img {
  transform: scale(1.04);
}
.practice-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(120% 140% at 80% 0%, #1e346f 0%, var(--navy) 70%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.1rem;
}
.practice-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.45rem 1.4rem;
}
.practice-card-title {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.practice-card-title a {
  color: inherit;
}
.practice-card-summary {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}
.service-chips li {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.7rem;
}
.service-chips .service-chip-more {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
}
.practice-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.practice-card-cta .bi {
  transition: transform 0.25s ease;
}
.practice-card:hover .practice-card-cta .bi {
  transform: translate(2px, -2px);
}

.practice-empty {
  margin: 0 0 1.5rem;
}
.practice-empty .button {
  margin-top: 0.9rem;
}
.practice-filtered-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 1.4rem 0 0;
}
.practice-filtered-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.practice-bottom {
  margin-top: 3rem;
}
.practice-sectors-link {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 1.4rem 0 0;
}
.practice-sectors-link a {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------
 * Practice detail (FR-PRACTICE-003/004) - two-column body under the
 * hero: prose + services checklist + related insights on the left; a
 * sticky contextual rail (enquiry CTA card, linked sectors, back link)
 * on the right; the people roster spans full width below.
 * ----------------------------------------------------------------- */
.practice-detail,
.pub-article-body {
  padding-top: 3.25rem;
}
.practice-detail-grid,
.pub-article-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 992px) {
  .practice-detail-grid,
  .pub-article-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
  .practice-detail-side,
  .pub-article-side {
    position: sticky;
    top: 5.5rem;
  }
}
.practice-detail-side,
.pub-article-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.practice-cta-card {
  background: var(--navy);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 1.6rem 1.7rem;
}
.practice-cta-card h2 {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.practice-cta-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.practice-cta-btn {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.2s;
}
.practice-cta-btn:hover {
  background: var(--surface-blue);
  color: var(--navy);
}
.practice-cta-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 0.55rem;
}
.practice-cta-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.practice-side-card,
.pub-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}
.practice-side-card h2,
.pub-side-card h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}
.sector-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sector-link-list li + li {
  border-top: 1px solid var(--line);
}
.sector-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
}
.sector-link-list a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sector-link-list .bi {
  color: var(--muted);
  font-size: 0.75rem;
}
.practice-back,
.pub-article-back {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.practice-back:hover,
.pub-article-back:hover {
  color: var(--ink);
}

.practice-services,
.practice-insights {
  margin-top: 2.75rem;
}
.practice-services .sec-title,
.practice-insights .sec-title,
.pub-section-head .sec-title {
  margin-top: 0.9rem;
}
.practice-section-head,
.pub-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.4rem;
}
.practice-section-head .sec-title,
.pub-section-head .sec-title {
  margin-bottom: 0;
}
.service-checklist {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.8rem;
}
.service-checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.05rem;
  font-size: 0.86rem;
  line-height: 1.5;
}
.service-checklist .bi {
  color: var(--navy);
  font-size: 0.95rem;
  margin-top: 0.1rem;
}
.practice-people {
  margin-top: 3.25rem;
}

/* ------------------------------------------------------------------
 * Interface states (FR-STATE-001/003) - pending submits, pending
 * filter navigation/XHR results, and designed empty states.
 * ----------------------------------------------------------------- */

/* Generic pending submit: every submit control in the form is blocked
   from repeat posting, while the busy submitter shows a spinner. The
   submitter is never `disabled`, so its name/value still rides the
   payload (same contract as record-editor.js in the CMS). */
form.is-submitting button[type="submit"],
button.is-busy {
  pointer-events: none;
}
form.is-submitting button[type="submit"].is-busy,
button.is-busy {
  opacity: 0.75;
}
form.is-submitting button[type="submit"].is-busy::before,
button.is-busy::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.45em;
  vertical-align: -0.125em;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: dh-busy-spin 0.75s linear infinite;
}
@keyframes dh-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pending GET filter navigation: the filter bar dims and the results
   region shows a spinner until the document unloads. A bfcache
   restore (Back/Forward) clears these classes in site.js. */
.filter-form.is-loading,
.filter-bar.is-loading,
[data-filter-form].is-loading {
  opacity: 0.7;
}
[data-filter-results].is-loading,
[data-people-results].is-loading {
  position: relative;
  opacity: 0.55;
  pointer-events: none;
  min-height: 5rem;
}
[data-filter-results].is-loading::after,
[data-people-results].is-loading::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin-left: -1rem;
  border: 3px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: dh-busy-spin 0.75s linear infinite;
}

/* Designed empty / no-results state - shared by partials.empty-state
   on archive indexes and XHR-swapped fragments. */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  margin: 1.5rem 0;
}
.empty-state .empty-state-icon {
  font-size: 2.5rem;
  color: var(--navy-3);
  display: block;
  margin-bottom: 0.75rem;
}
.empty-state .empty-state-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.empty-state .empty-state-message {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.empty-state .empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
