.hc-hero.legal-hero {
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  padding: clamp(72px, 9vw, 128px) 20px clamp(48px, 5vw, 72px);
  background: none;
  color: var(--navy);
}

.hc-hero.legal-hero::before,
.hc-hero.legal-hero::after {
  display: none;
}

.hc-hero .legal-hero__inner {
  position: static;
  display: flex;
  width: min(100%, 720px);
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.hc-hero.legal-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: none;
  text-wrap: balance;
}

.hc-hero--collapsed.legal-hero {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hc-search {
  position: relative;
  width: 100%;
  margin-top: 28px;
}

.hc-search svg {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.hc-search__input {
  width: 100%;
  height: 58px;
  padding: 0 20px 0 54px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 28px rgba(8, 12, 20, 0.28);
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hc-search__input::placeholder {
  color: var(--muted);
}

.hc-search__input:focus {
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(8, 12, 20, 0.28), 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.hc-popular-topics {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hc-popular-topics[hidden] {
  display: none;
}

.hc-popular-topics > span {
  font-weight: 700;
}

.hc-popular-topics button {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hc-popular-topics button + button {
  margin-left: 12px;
}

.hc-popular-topics button:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.hc-results[hidden] {
  display: none;
}

.hc-results__summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.hc-results__summary:empty {
  display: none;
}

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

/* The hero sits on a photo, so its focus ring is white. */
.hc-hero button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hc-shell {
  width: min(calc(100% - 40px), 1120px);
  min-height: 420px;
  margin: 0 auto;
  padding: 8px 0 64px;
}

.hc-shell button { font: inherit; }

.hc-status { padding: 60px 0; color: var(--muted); text-align: center; }
.hc-home[hidden],
.hc-browse[hidden],
.hc-category-page[hidden],
.hc-article-page[hidden] { display: none; }

.hc-section-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hc-section-heading p,
.hc-page-heading > p {
  margin: 0 0 6px;
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hc-section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.hc-back,
.hc-breadcrumb button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.hc-breadcrumb button { color: var(--navy); }

.hc-back:hover,
.hc-breadcrumb button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hc-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hc-category-card {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.hc-category-card:hover {
  border-color: var(--border-strong);
  background: var(--canvas);
}

.hc-category-card__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hc-category-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.hc-category-card__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hc-category-card__count { color: var(--muted); font-size: 13px; }
.hc-category-card strong { margin-top: 17px; color: var(--navy); font-size: 17px; line-height: 1.35; }
.hc-category-card > span:last-child { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.hc-popular-heading { margin-top: 58px; }
.hc-article-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: none;
}

.hc-article-link {
  width: 100%;
  padding: 19px 21px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.hc-article-link:last-child { border-bottom: 0; }
.hc-article-link:hover { background: var(--canvas); }
.hc-article-link strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.45; }
.hc-article-link span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hc-article-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hc-empty { padding: 48px 20px; color: var(--muted); text-align: center; }
.hc-back { padding: 9px 0; display: inline-flex; align-items: center; gap: 8px; }
.hc-back svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Category and article views read as one centred column. */
.hc-category-page,
.hc-article-page { width: min(100%, 760px); margin: 0 auto; padding-top: 36px; }
.hc-page-heading { margin: 18px 0 28px; }
.hc-page-heading h2 { margin: 0; color: var(--navy); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.22; letter-spacing: -0.02em; text-wrap: balance; }
.hc-page-heading span { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; }

.hc-breadcrumb { margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.hc-breadcrumb button { padding: 0; }
.hc-article-heading { padding-bottom: 8px; }
.hc-article-heading h2 { margin: 0; color: var(--navy); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.22; letter-spacing: -0.02em; text-wrap: balance; }
.hc-article-heading h2:focus { outline: none; }
.hc-article-summary { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hc-article-meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; color: var(--muted); font-size: 13px; }
.hc-article-updated { margin: 0; }
.hc-copy-link { min-height: 32px; padding: 0; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.hc-copy-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-copy-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.hc-article-section { padding-top: 32px; }
.hc-article-section h2 { margin: 0 0 10px; color: var(--navy); font-size: 20px; line-height: 1.4; }
.hc-article-section p { margin: 10px 0; color: var(--ink); font-size: var(--public-reading-size); line-height: 1.85; }
.hc-article-section ol,
.hc-article-section ul { margin: 12px 0; padding-left: 24px; color: var(--ink); font-size: var(--public-reading-size); line-height: 1.78; }
.hc-article-section li + li { margin-top: 8px; }
.hc-article-section a { display: inline-block; margin: 10px 16px 0 0; color: var(--blue); font-weight: 750; text-underline-offset: 3px; }

/* Related articles and the contact band close the article. */
.hc-article-aside { margin-top: 56px; display: grid; gap: 40px; }
.hc-article-aside h2 { margin: 0 0 14px; color: var(--navy); font-size: 18px; line-height: 1.4; }
.hc-article-aside > .hc-contact-card { padding: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--canvas); color: var(--navy); }
.hc-contact-card__copy { flex: 1 1 260px; min-width: 0; }
.hc-contact-card h2 { margin: 0 0 4px; font-size: 17px; }
.hc-contact-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hc-contact-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.hc-open-chat { padding: 11px 20px; border: 1px solid var(--navy); border-radius: 6px; background: var(--navy); color: var(--paper); font-weight: 800; cursor: pointer; }
.hc-open-chat:hover { border-color: var(--navy-soft); background: var(--navy-soft); }
.hc-contact-card a { color: var(--blue); font-size: 14px; }

@media (max-width: 1000px) {
  .hc-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hc-shell { padding: 4px 0 48px; }
  .hc-category-grid { grid-template-columns: 1fr; gap: 12px; }
  .hc-popular-topics button { display: block; margin: 4px auto 0; }
  .hc-popular-topics button + button { margin-left: auto; }
  .hc-category-card { min-height: 137px; padding: 19px; }
  .hc-section-heading { align-items: flex-start; }
  .hc-article-aside { margin-top: 44px; gap: 32px; }
}

@media (max-width: 430px) {
  .hc-shell { width: min(100% - 28px, 960px); }
  .hc-article-link { padding: 17px 16px; }
  .hc-contact-card__actions { width: 100%; flex-direction: column; align-items: stretch; text-align: center; }
  .hc-contact-card__actions a { align-self: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-category-card { transition: none; }
}
