:root {
  color-scheme: light;
  --bg: #f2f5f8;
  --bg-alt: #e8f0f7;
  --surface: #ffffff;
  --surface-alt: #f7fafe;
  --text: #1e2d3d;
  --muted: #607080;
  --line: #d9e3ec;
  --accent: #d28f1b;
  --accent-2: #0b5da9;
  --accent-3: #3281c5;
  --shadow: 0 12px 30px rgba(24, 67, 105, 0.1);
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--accent-2);
}

.brand__icon {
  width: 22px;
  height: 22px;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.brand__text span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.nav__link {
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-2);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #182722;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.02);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 16, 15, 0.78) 0%, rgba(11, 16, 15, 0.38) 58%, rgba(11, 16, 15, 0.18) 100%),
    linear-gradient(180deg, rgba(11, 16, 15, 0.08) 0%, rgba(11, 16, 15, 0.42) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero__copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1.15;
  word-break: break-word;
}

.hero h1 {
  max-width: 12ch;
  font-size: 3.6rem;
}

.hero__lead {
  margin: 18px 0 0;
  max-width: 40rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__note {
  margin: 12px 0 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions,
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: #f4ecdb;
  color: #1a2c29;
  box-shadow: 0 10px 24px rgba(15, 23, 22, 0.18);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.hero__stat {
  min-width: 96px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(8, 12, 11, 0.22);
  backdrop-filter: blur(8px);
}

.hero__stat dt {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.hero__stat dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding-top: 56px;
}

.section--alt {
  background: linear-gradient(180deg, rgba(33, 70, 63, 0.05) 0%, rgba(33, 70, 63, 0.02) 100%);
}

.section__head {
  margin-bottom: 24px;
}

.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section__head h2,
.page-hero h1,
.article-section h2,
.sidebar__title {
  word-break: break-word;
}

.section__head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.25;
}

.section__lede {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card,
.sidebar__panel,
.faq-item,
.index-search {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(16, 25, 23, 0.02);
}

.card {
  display: grid;
  gap: 12px;
  padding: 20px;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-link:hover .card,
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 70, 63, 0.22);
  box-shadow: var(--shadow);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--accent-2);
}

.card__icon svg {
  width: 18px;
  height: 18px;
}

.card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card__meta {
  font-size: 0.88rem;
  color: var(--accent);
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--accent-2);
  font-size: 0.95rem;
}

.card__more svg {
  width: 16px;
  height: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-alt);
  font-size: 0.84rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.step p {
  margin: 12px 0 0;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 18px;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item__body {
  padding: 0 0 18px;
  color: var(--muted);
}

.page-hero {
  padding: 44px 0 10px;
  background: linear-gradient(180deg, rgba(33, 70, 63, 0.06) 0%, rgba(33, 70, 63, 0.02) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  color: var(--accent);
}

.page-hero--index {
  padding-bottom: 24px;
}

.page-hero__inner {
  max-width: 760px;
  padding: 18px 0 26px;
}

.page-hero h1 {
  font-size: 2.8rem;
  color: var(--text);
}

.page-hero__lead {
  margin: 16px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero .btn--primary {
  background: #efe7d4;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 22, 0.08);
}

.page-hero .btn--secondary,
.page-hero .btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-2);
}

.breadcrumbs__sep {
  color: #9aa39f;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.article {
  display: grid;
  gap: 18px;
}

.article__intro {
  display: grid;
  gap: 12px;
  font-size: 1.02rem;
}

.article__intro p {
  margin: 0;
}

.article-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-section__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--accent-2);
}

.article-section__icon svg {
  width: 18px;
  height: 18px;
}

.article-section h2 {
  margin: 0;
  font-size: 1.28rem;
}

.article-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.list__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--accent-2);
}

.list__icon svg {
  width: 16px;
  height: 16px;
}

.sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.sidebar__panel {
  padding: 18px;
}

.sidebar__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
}

.sidebar__title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
}

.sidebar__contact {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.muted {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.contact-strip h2 {
  margin: 0;
  font-size: 1.45rem;
}

.index-search {
  position: relative;
  min-width: 260px;
  padding: 0;
}

.index-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.index-search input {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.9rem 0.7rem 42px;
  color: var(--text);
  outline: none;
}

.index-search input::placeholder {
  color: #8c9692;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(33, 70, 63, 0.03) 0%, rgba(33, 70, 63, 0.02) 100%);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer__inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--accent-2);
}

.site-footer__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.page-detail .section:first-of-type {
  padding-top: 28px;
}

@media (max-width: 960px) {
  .site-header__inner {
    min-height: 68px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(251, 249, 243, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 68vh;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .section__head--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .contact-strip,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .hero__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero__lead,
  .hero__lead {
    font-size: 1rem;
  }

  .section {
    padding: 56px 0;
  }

  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .page-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .index-search {
    min-width: 100%;
  }
}

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

/* Portal shell and home page */
.site-tools {
  border-bottom: 1px solid #dce8f2;
  background: #f6f9fc;
  color: #597087;
  font-size: 0.8rem;
}

.site-tools__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
}

.site-header {
  position: relative;
  border-bottom: 0;
  background: #0b5da9;
  backdrop-filter: none;
}

.site-header__inner {
  min-height: 82px;
}

.brand {
  color: #fff;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #fff;
}

.brand__icon {
  width: 25px;
  height: 25px;
}

.brand__text strong {
  font-size: 1.3rem;
  font-weight: 700;
}

.brand__text span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.site-nav {
  align-self: stretch;
  gap: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  padding: 0 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 3px solid transparent;
  font-size: 0.96rem;
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
  border-bottom-color: #f0b64b;
  background: rgba(0, 39, 90, 0.15);
}

.nav-toggle {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.page-home .site-footer {
  border-top-color: #d7e4ef;
  background: #f8fbfe;
}

.portal-banner {
  position: relative;
  min-height: 348px;
  overflow: hidden;
  background: #0b5da9;
  color: #fff;
}

.portal-banner::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #07579f 0%, rgba(11, 93, 169, 0.92) 45%, rgba(11, 93, 169, 0.35) 100%);
  content: "";
  z-index: 1;
}

.portal-banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
  filter: saturate(0.78) contrast(1.02) brightness(0.88);
}

.portal-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 31, 78, 0.28), transparent 48%);
  z-index: 2;
}

.portal-banner__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 348px;
  padding: 42px 0;
}

.portal-banner__copy {
  width: min(610px, 100%);
}

.portal-banner__eyebrow {
  margin: 0 0 10px;
  color: #c9e7ff;
  font-size: 0.94rem;
}

.portal-banner h1 {
  margin: 0;
  color: #fff;
  font-size: 2.7rem;
  line-height: 1.2;
}

.portal-banner__copy > p:not(.portal-banner__eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.03rem;
}

.portal-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.portal-banner__actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0.5rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.portal-banner__actions a:first-child {
  border-color: #f2b84a;
  background: #f2b84a;
  color: #17324f;
}

.portal-banner__actions a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.portal-banner__actions a:first-child:hover {
  background: #ffd074;
}

.portal-banner__actions svg,
.portal-text-link svg,
.portal-aside__button svg,
.portal-aside__sub-link svg,
.portal-aside__more svg,
.portal-section__head svg,
.practice-module__more svg,
.portal-check-list svg {
  width: 16px;
  height: 16px;
}

.portal-main {
  padding: 26px 0 54px;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 20px;
  align-items: start;
}

.portal-layout__main,
.portal-aside {
  display: grid;
  gap: 20px;
}

.portal-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr);
  gap: 16px;
}

.portal-panel,
.portal-aside__panel,
.practice-module {
  border: 1px solid #d7e2ec;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 64, 97, 0.035);
}

.portal-panel {
  padding: 20px 21px;
}

.portal-panel--feature {
  border-top: 3px solid #0c66b4;
}

.portal-panel--about {
  border-top: 3px solid #d89a24;
}

.portal-panel__title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.portal-panel__title > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #eaf4fd;
  color: #0b5da9;
}

.portal-panel--about .portal-panel__title > span {
  background: #fff5dd;
  color: #b37712;
}

.portal-panel__title svg {
  width: 17px;
  height: 17px;
}

.portal-panel__title h2,
.portal-section__head h2,
.portal-local-band h2 {
  margin: 0;
  color: #1b3045;
  font-size: 1.22rem;
  line-height: 1.35;
}

.portal-panel__lead,
.portal-panel--about > p {
  margin: 14px 0 0;
  color: #5d6d7d;
  font-size: 0.93rem;
}

.portal-key-points {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.portal-key-points li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px;
  padding-top: 9px;
  border-top: 1px dashed #d8e3ed;
  color: #657587;
  font-size: 0.87rem;
  line-height: 1.55;
}

.portal-key-points strong {
  color: #0d5ea9;
  font-weight: 650;
}

.portal-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.portal-counts div {
  padding-right: 8px;
  border-right: 1px solid #dce5ed;
}

.portal-counts div:last-child {
  border-right: 0;
}

.portal-counts dt {
  color: #0b5da9;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.portal-counts dd {
  margin: 6px 0 0;
  color: #6d7c8b;
  font-size: 0.76rem;
}

.portal-text-link,
.portal-section__head > a,
.portal-aside__more,
.portal-aside__sub-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0b5da9;
  font-size: 0.88rem;
  text-decoration: none;
}

.portal-text-link:hover,
.portal-section__head > a:hover,
.portal-aside__more:hover,
.portal-aside__sub-link:hover {
  color: #084b89;
  text-decoration: underline;
}

.portal-section {
  padding: 0;
}

.portal-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 0 10px;
  border-bottom: 2px solid #0b5da9;
}

.portal-section__head h2 {
  padding-left: 11px;
  border-left: 4px solid #e4a432;
}

.practice-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.practice-module {
  min-height: 168px;
  padding: 16px;
  border-top: 2px solid #d7e6f4;
}

.practice-module__head {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: center;
}

.practice-module__icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: #0b5da9;
  background: #edf6fd;
}

.practice-module__icon svg {
  width: 16px;
  height: 16px;
}

.practice-module h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.practice-module h2 a {
  color: #22384d;
  text-decoration: none;
}

.practice-module h2 a:hover {
  color: #0b5da9;
}

.practice-module__more {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #0b5da9;
}

.practice-module__more:hover {
  background: #edf6fd;
}

.practice-module > p {
  margin: 12px 0 0;
  color: #697888;
  font-size: 0.87rem;
  line-height: 1.6;
}

.practice-module__links,
.portal-link-list,
.portal-check-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.practice-module__links {
  display: grid;
  gap: 5px;
}

.practice-module__links li,
.portal-link-list li {
  position: relative;
  padding-left: 11px;
}

.practice-module__links li::before,
.portal-link-list li::before {
  position: absolute;
  left: 0;
  color: #2e7bbd;
  content: "›";
}

.practice-module__links a,
.portal-link-list a {
  color: #52687c;
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
}

.practice-module__links a:hover,
.portal-link-list a:hover {
  color: #0b5da9;
  text-decoration: underline;
}

.portal-aside {
  gap: 14px;
}

.portal-aside__panel {
  padding: 16px;
}

.portal-aside__title {
  padding: 0 0 10px;
  border-bottom: 1px solid #dce6ee;
  color: #173b5e;
  font-size: 1.05rem;
  font-weight: 700;
}

.portal-aside__contact {
  border-top: 3px solid #d99d27;
  background: #fffdfa;
}

.portal-aside__contact p {
  margin: 13px 0 0;
  color: #637486;
  font-size: 0.88rem;
  line-height: 1.65;
}

.portal-aside__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  margin-top: 15px;
  background: #0b5da9;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}

.portal-aside__button:hover {
  background: #074c8d;
}

.portal-aside__sub-link {
  margin-top: 11px;
}

.portal-link-list {
  display: grid;
  gap: 9px;
}

.portal-aside__more {
  margin-top: 15px;
}

.portal-check-list {
  display: grid;
  gap: 10px;
}

.portal-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #647485;
  font-size: 0.86rem;
  line-height: 1.5;
}

.portal-check-list svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #0b5da9;
}

.portal-local-band {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-left: 4px solid #0b5da9;
  background: #eaf3fb;
}

.portal-local-band p {
  margin: 0 0 3px;
  color: #3974a8;
  font-size: 0.78rem;
}

.portal-local-band h2 {
  font-size: 1.05rem;
}

.portal-local-band__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.portal-local-band__links a {
  padding: 0.24rem 0.5rem;
  border: 1px solid #c6dcec;
  background: rgba(255, 255, 255, 0.74);
  color: #27699f;
  font-size: 0.83rem;
  text-decoration: none;
}

.portal-local-band__links a:hover {
  border-color: #6aa2d0;
  background: #fff;
}

.page-hero {
  background: linear-gradient(180deg, #eaf4fc 0%, #f7fbfe 100%);
}

.page-hero .eyebrow,
.breadcrumbs a:hover,
.card__more,
.article-section__icon,
.list__icon,
.sidebar__title svg {
  color: #0b5da9;
}

.page-hero .btn--primary {
  background: #0b5da9;
  color: #fff;
}

.page-hero .btn--secondary,
.page-hero .btn--ghost {
  color: #0b5da9;
}

@media (max-width: 960px) {
  .site-nav {
    align-self: auto;
    border-color: #c8d9e8;
    background: #0b5da9;
  }

  .nav__link {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-tools__inner {
    justify-content: center;
    min-height: 30px;
  }

  .site-tools__inner span:last-child {
    display: none;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__text strong {
    font-size: 1.12rem;
  }

  .brand__text span {
    font-size: 0.7rem;
  }

  .portal-banner,
  .portal-banner__inner {
    min-height: 330px;
  }

  .portal-banner::before {
    background: linear-gradient(90deg, rgba(7, 87, 159, 0.95), rgba(7, 87, 159, 0.78));
  }

  .portal-banner h1 {
    font-size: 2.05rem;
  }

  .portal-banner__copy > p:not(.portal-banner__eyebrow) {
    font-size: 0.96rem;
  }

  .portal-banner__actions {
    gap: 8px;
  }

  .portal-banner__actions a {
    flex: 1 1 104px;
    justify-content: center;
    padding-inline: 0.45rem;
    font-size: 0.86rem;
  }

  .portal-main {
    padding: 16px 0 36px;
  }

  .portal-intro-grid,
  .practice-module-grid,
  .portal-aside {
    grid-template-columns: 1fr;
  }

  .portal-panel,
  .portal-aside__panel {
    padding: 16px;
  }

  .portal-local-band {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
}

/* Reference-style legal portal home: rebuilt from the site's own content. */
.page-home {
  background: #e9eaed;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
}

.page-home .container {
  width: min(1200px, calc(100% - 32px));
}

.page-home .site-tools {
  border-bottom: 0;
  background: #2468bd;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.page-home .site-tools__inner {
  min-height: 28px;
}

.page-home .site-header {
  background: #2468bd;
}

.page-home .site-header__inner {
  min-height: 70px;
}

.page-home .brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 3px;
}

.page-home .brand__text strong {
  font-size: 1.36rem;
}

.page-home .site-nav {
  align-items: stretch;
}

.page-home .nav__link {
  min-height: 70px;
  padding: 0 0.7rem;
  border-bottom-width: 0;
  font-size: 15px;
}

.page-home .nav__link:hover,
.page-home .nav__link.is-active {
  background: rgba(0, 39, 90, 0.21);
  color: #fff;
}

.reference-banner {
  position: relative;
  height: 360px;
  margin-top: 0;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 3px;
  background: #2468bd;
}

.reference-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) contrast(1.03) brightness(0.92);
}

.reference-banner__cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 80, 151, 0.2), transparent 60%);
}

.reference-banner p {
  position: absolute;
  right: 22px;
  bottom: 15px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.reference-main {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 20px;
}

.reference-sidebar,
.reference-content {
  min-width: 0;
}

.reference-sidebar {
  display: grid;
  gap: 20px;
}

.reference-profile,
.reference-side-panel,
.reference-headline,
.reference-module,
.reference-local-panel {
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
}

.reference-profile {
  padding: 0 0 14px;
}

.reference-profile h2,
.reference-side-panel h2,
.reference-headline h1,
.reference-module h2,
.reference-local-panel h2 {
  position: relative;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #484848;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
}

.reference-profile h2,
.reference-side-panel h2 {
  margin: 10px 20px 10px;
}

.reference-profile h2::after,
.reference-side-panel h2::after,
.reference-headline h1::after,
.reference-module h2::after,
.reference-local-panel h2::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #2468bd;
  content: "";
}

.reference-profile__mark {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 14px 0 11px 20px;
  border: 1px solid #d4dce5;
  border-radius: 3px;
  background: #f1f6fb;
  color: #2468bd;
}

.reference-profile__mark svg {
  width: 46px;
  height: 46px;
}

.reference-profile__name {
  color: #111;
  font-size: 16px !important;
  font-weight: 650;
}

.reference-profile p {
  margin: 0;
  padding: 0 16px 0 20px;
  color: #111;
  font-size: 14px;
  line-height: 28px;
}

.reference-profile__cta {
  display: block;
  margin: 13px 20px 0;
  padding: 8px 9px;
  background: #2468bd;
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.reference-profile__cta:hover {
  background: #1c559f;
}

.reference-side-panel {
  padding: 0 20px 15px;
}

.reference-side-panel h2 {
  margin-right: 0;
  margin-left: 0;
}

.reference-side-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-side-panel li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 14px;
  color: #333;
  font-size: 14px;
  line-height: 22px;
}

.reference-side-panel li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #2468bd;
  content: "";
}

.reference-side-panel a {
  color: #333;
  text-decoration: none;
}

.reference-side-panel a:hover,
.reference-module a:hover {
  color: #2468bd;
}

.reference-side-panel--contact {
  padding-bottom: 18px;
}

.reference-side-panel--contact p {
  margin: 0;
  color: #606d79;
  font-size: 14px;
  line-height: 1.7;
}

.reference-side-panel--contact > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #2468bd;
}

.reference-side-panel--contact svg {
  width: 16px;
  height: 16px;
}

.reference-content {
  display: grid;
  gap: 20px;
}

.reference-headline {
  padding: 20px;
}

.reference-headline h1,
.reference-module h2,
.reference-local-panel h2 {
  font-size: 16px;
  line-height: 30px;
}

.reference-headline h1 span,
.reference-module h2 span,
.reference-local-panel h2 span {
  float: right;
  font-size: 12px;
  font-weight: 400;
}

.reference-headline h1 span a,
.reference-module h2 span a {
  color: #89919a;
  text-decoration: none;
}

.reference-headline p {
  margin: 0;
  color: #3f474f;
  line-height: 25px;
}

.reference-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 20px;
}

.reference-module {
  min-height: 247px;
  padding: 20px;
}

.reference-module ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-module li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: 32px;
  padding: 0 0 10px;
  overflow: hidden;
  font-size: 14px;
  line-height: 22px;
}

.reference-module li b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: #9a9a9a;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
}

.reference-module li:first-child b {
  background: #2468bd;
}

.reference-module li a {
  overflow: hidden;
  color: #333;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-local-panel {
  padding: 20px;
}

.reference-local-panel p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.reference-local-panel > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.reference-local-panel > div a {
  padding: 5px 10px;
  border: 1px solid #dbe4ed;
  background: #f8fbfe;
  color: #2468bd;
  font-size: 13px;
  text-decoration: none;
}

.reference-local-panel > div a:hover {
  border-color: #2468bd;
}

.page-home .site-footer {
  padding: 10px 0;
  border: 0;
  background: #2468bd;
  color: #fff;
  font-size: 14px;
}

.page-home .site-footer__inner {
  align-items: center;
}

.page-home .site-footer__inner p,
.page-home .site-footer__note,
.page-home .site-footer__links a {
  color: rgba(255, 255, 255, 0.92);
}

.page-home .site-footer__inner p {
  margin-top: 3px;
  font-size: 12px;
}

.page-home .site-footer__note {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
}

.reference-profile__photo {
  display: block;
  width: 175px;
  height: 177px;
  margin: 14px 0 10px 20px;
  object-fit: cover;
}

.reference-profile__indent {
  padding-left: 122px !important;
}

@media (max-width: 1023px) {
  .page-home .site-nav {
    background: #2468bd;
  }

  .page-home .nav__link {
    min-height: 40px;
    padding: 0.55rem 0.25rem;
  }

  .reference-main {
    grid-template-columns: 1fr;
  }

  .reference-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-home .container {
    width: min(100%, calc(100% - 16px));
  }

  .page-home .site-tools {
    display: none;
  }

  .page-home .site-header__inner {
    min-height: 58px;
  }

  .page-home .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    width: 100%;
  }

  .page-home main {
    padding-top: 58px;
  }

  .page-home .site-nav {
    top: 100%;
    right: 0;
    left: 0;
    min-height: calc(100vh - 58px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(6, 27, 56, 0.68);
    box-shadow: none;
    align-items: flex-start;
  }

  .page-home .nav__link {
    width: 55%;
    justify-content: center;
    min-height: 45px;
    background: #2468bd;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
  }

  .reference-banner {
    width: 100%;
    max-width: none;
    height: 180px;
    margin-bottom: 0;
    border-radius: 0;
  }

  .reference-banner p {
    right: 12px;
    bottom: 8px;
    font-size: 11px;
  }

  .reference-main {
    width: min(100%, calc(100% - 16px));
    padding-top: 20px;
  }

  .reference-headline,
  .reference-module,
  .reference-local-panel {
    padding: 15px;
  }

  .reference-module-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .reference-module {
    min-height: 0;
  }

  .reference-module li {
    height: auto;
    min-height: 32px;
  }

  .reference-module li a {
    overflow: visible;
    white-space: normal;
  }
}

/* Mobile home follows a dedicated compact portal composition. */
.mobile-portal {
  display: none;
}

@media (max-width: 640px) {
  .page-home {
    background: #292929;
  }

  .page-home .site-tools,
  .page-home .site-header,
  .page-home .reference-banner,
  .page-home .reference-main {
    display: none;
  }

  .page-home main {
    padding-top: 0;
  }

  .mobile-portal {
    position: relative;
    display: block;
    width: min(100%, 392px);
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 72px;
    background: #f7f7f7;
  }

  .mobile-portal__hero {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #1269a9;
  }

  .mobile-portal__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 47%;
    filter: saturate(0.72) brightness(0.92) contrast(1.06);
  }

  .mobile-portal__hero-cover {
    position: absolute;
    inset: 0;
    background: rgba(10, 89, 155, 0.6);
  }

  .mobile-portal__hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    color: #fff;
    text-align: center;
  }

  .mobile-portal__hero-copy strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    font-weight: 650;
  }

  .mobile-portal__hero-copy h1 {
    margin: 9px 0 5px;
    color: #fff;
    font-size: 1.42rem;
    line-height: 1.3;
  }

  .mobile-portal__hero-copy span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
  }

  .mobile-profile {
    padding: 20px 14px 17px;
    background: #fff;
    border-bottom: 1px solid #eee;
  }

  .mobile-profile__heading {
    position: relative;
    padding-left: 104px;
  }

  .mobile-profile__heading h2,
  .mobile-practice > h2,
  .mobile-mobile-section > h2 {
    margin: 0;
    color: #333;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
  }

  .mobile-profile__heading h2::after,
  .mobile-practice > h2::after,
  .mobile-mobile-section > h2::after {
    display: block;
    width: 47px;
    height: 2px;
    margin-top: 7px;
    background: #2468bd;
    content: "";
  }

  .mobile-profile__heading a {
    position: absolute;
    right: 14px;
    top: 0;
    color: #555;
    font-size: 0.8rem;
    text-decoration: none;
  }

  .mobile-profile__badge {
    display: grid;
    float: left;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-right: 12px;
    background: #147bb6;
    color: #fff;
  }

  .mobile-profile__badge svg {
    width: 52px;
    height: 52px;
  }

  .mobile-profile p {
    margin: 15px 0 0;
    color: #454545;
    font-size: 0.88rem;
    line-height: 1.72;
  }

  .mobile-profile__clear {
    clear: both;
  }

  .mobile-profile > h2 {
    position: relative;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #89919a;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.35;
  }

  .mobile-profile > h2::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 105px;
    height: 3px;
    background: #111;
    content: "";
  }

  .mobile-profile__photo {
    display: block;
    width: 175px;
    height: 177px;
    margin: 14px 0 8px;
    object-fit: cover;
  }

  .mobile-profile__name {
    color: #111 !important;
    font-size: 1.3rem !important;
    line-height: 1.45 !important;
  }

  .mobile-profile p {
    margin: 8px 0 0;
    padding: 0;
    color: #111;
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .mobile-profile p b {
    font-weight: 700;
  }

  .mobile-profile__indent {
    padding-left: 122px !important;
  }

  .mobile-practice {
    padding: 20px 0 0;
    background: #fff;
    border-top: 1px solid #ececec;
  }

  .mobile-practice > h2,
  .mobile-mobile-section > h2 {
    padding: 0 14px 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .mobile-practice > h2::after,
  .mobile-mobile-section > h2::after {
    margin: 7px auto 0;
  }

  .mobile-practice__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #eee;
  }

  .mobile-practice__item {
    display: flex;
    min-height: 103px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 12px 4px 9px;
    border-right: 1px solid #eee;
    color: #444;
    text-decoration: none;
  }

  .mobile-practice__item:nth-child(4n) {
    border-right: 0;
  }

  .mobile-practice__item:nth-child(n + 5) {
    border-top: 1px solid #eee;
  }

  .mobile-practice__item span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 2px solid #2ca7e8;
    border-radius: 50%;
    color: #2ca7e8;
  }

  .mobile-practice__item:nth-child(4n + 2) span {
    border-color: #f0a328;
    color: #f0a328;
  }

  .mobile-practice__item:nth-child(4n + 3) span {
    border-color: #459be4;
    color: #459be4;
  }

  .mobile-practice__item:nth-child(4n) span {
    border-color: #f48b39;
    color: #f48b39;
  }

  .mobile-practice__item svg {
    width: 29px;
    height: 29px;
  }

  .mobile-practice__item strong {
    color: #454545;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
  }

  .mobile-mobile-section {
    margin-top: 14px;
    padding: 19px 14px 17px;
    background: #fff;
  }

  .mobile-mobile-section ul {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
  }

  .mobile-mobile-section li {
    overflow: hidden;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5e5e5;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-mobile-section li a {
    color: #555;
    font-size: 0.84rem;
    text-decoration: none;
  }

  .mobile-mobile-section li a::before {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 8px 2px 1px;
    border-radius: 50%;
    background: #2468bd;
    content: "";
  }

  .mobile-mobile-section__more {
    display: block;
    margin-top: 14px;
    color: #2468bd;
    font-size: 0.82rem;
    text-align: right;
    text-decoration: none;
  }

  .mobile-mobile-section--local > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
  }

  .mobile-mobile-section--local > div a {
    padding: 5px 9px;
    border: 1px solid #d8e5f0;
    color: #2468bd;
    font-size: 0.78rem;
    text-decoration: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(100%, 392px);
    height: 68px;
    transform: translateX(-50%);
    background: #d80823;
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.23);
    color: #fff;
    font-size: 0.81rem;
    text-decoration: none;
  }

  .mobile-bottom-nav a:last-child {
    border-right: 0;
  }

  .mobile-bottom-nav a:hover {
    background: rgba(0, 0, 0, 0.12);
  }

  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* Shared reference-style frame for every inner page. */
.page-reference {
  background: #e9eaed;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
}

.page-reference .container {
  width: min(1200px, calc(100% - 32px));
}

.page-reference .site-tools {
  border-bottom: 0;
  background: #2468bd;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.page-reference .site-tools__inner {
  min-height: 28px;
}

.page-reference .site-header {
  background: #2468bd;
}

.page-reference .site-header__inner {
  min-height: 70px;
}

.page-reference .brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 3px;
}

.page-reference .brand__text strong {
  font-size: 1.36rem;
}

.page-reference .site-nav {
  align-items: stretch;
}

.page-reference .nav__link {
  min-height: 70px;
  padding: 0 0.7rem;
  border-bottom-width: 0;
  color: #fff;
  font-size: 15px;
}

.page-reference .nav__link:hover,
.page-reference .nav__link.is-active {
  background: rgba(0, 39, 90, 0.21);
  color: #fff;
}

.page-reference .reference-banner {
  margin-top: 0;
  margin-bottom: 20px;
}

.page-reference .reference-main {
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 24px;
}

.page-reference .reference-sidebar {
  display: grid;
  gap: 20px;
}

.page-reference .reference-content {
  display: grid;
  gap: 20px;
}

.page-reference .breadcrumbs {
  margin: 0;
  padding: 0 2px;
  color: #75818d;
}

.page-reference .breadcrumbs a {
  color: #66727e;
}

.page-reference .reference-headline,
.page-reference .reference-article,
.page-reference .reference-collection,
.page-reference .reference-related {
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
}

.page-reference .reference-headline {
  padding: 20px;
}

.page-reference .reference-headline h1 {
  position: relative;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #484848;
  font-size: 19px;
  font-weight: 400;
  line-height: 30px;
}

.page-reference .reference-headline h1::after,
.page-reference .reference-section-title h2::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #2468bd;
  content: "";
}

.page-reference .reference-headline h1 span {
  float: right;
  color: #89919a;
  font-size: 12px;
  font-weight: 400;
}

.page-reference .reference-headline p,
.page-reference .reference-collection__toolbar p {
  margin: 0;
  color: #3f474f;
  line-height: 25px;
}

.page-reference .reference-article {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.page-reference .reference-article .article {
  display: grid;
  gap: 18px;
}

.page-reference .reference-article .article__intro {
  display: grid;
  gap: 12px;
  color: #3f474f;
  font-size: 15px;
}

.page-reference .reference-article .article__intro p {
  margin: 0;
}

.page-reference .reference-article .article-section {
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.page-reference .reference-article .article-section__head {
  margin-bottom: 12px;
}

.page-reference .reference-article .article-section h2 {
  color: #333;
  font-size: 17px;
  font-weight: 600;
}

.page-reference .reference-article .article-section p,
.page-reference .reference-article .list li {
  color: #555;
}

.reference-section-title {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.reference-section-title h2 {
  position: relative;
  margin: 0;
  color: #484848;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
}

.reference-section-title > span {
  float: right;
  color: #89919a;
  font-size: 12px;
}

.reference-faq {
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.reference-faq .faq-item {
  border-color: #e3e8ed;
  box-shadow: none;
}

.reference-related,
.reference-collection {
  padding: 20px;
}

.reference-related .card-grid,
.reference-collection .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reference-related .card,
.reference-collection .card {
  min-height: 0;
  padding: 14px;
  border-radius: 3px;
  box-shadow: none;
}

.reference-related .card__icon,
.reference-collection .card__icon {
  width: 30px;
  height: 30px;
  border-radius: 3px;
}

.reference-related .card h3,
.reference-collection .card h3 {
  font-size: 15px;
}

.reference-related .card p,
.reference-collection .card p {
  font-size: 13px;
}

.reference-collection__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.reference-collection__toolbar > p {
  flex: 1;
}

.page-reference .index-search {
  flex: 0 0 280px;
}

.page-reference .site-footer {
  padding: 10px 0;
  border: 0;
  background: #2468bd;
  color: #fff;
  font-size: 14px;
}

.page-reference .site-footer__inner p,
.page-reference .site-footer__note,
.page-reference .site-footer__links a {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1023px) {
  .page-reference .site-nav {
    background: #2468bd;
  }

  .page-reference .nav__link {
    min-height: 40px;
    padding: 0.55rem 0.25rem;
  }

  .page-reference .reference-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-reference .container {
    width: min(100%, calc(100% - 16px));
  }

  .page-reference .site-tools {
    display: none;
  }

  .page-reference .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
  }

  .page-reference main {
    padding-top: 58px;
  }

  .page-reference .site-nav {
    top: 100%;
    right: 0;
    left: 0;
    min-height: calc(100vh - 58px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(6, 27, 56, 0.68);
    align-items: flex-start;
  }

  .page-reference .nav__link {
    width: 55%;
    justify-content: center;
    min-height: 45px;
    background: #2468bd;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
  }

  .page-reference .reference-banner {
    width: 100%;
    max-width: none;
    height: 180px;
    margin-bottom: 0;
    border-radius: 0;
  }

  .page-reference .reference-banner p {
    right: 12px;
    bottom: 8px;
    font-size: 11px;
  }

  .page-reference .reference-main {
    width: min(100%, calc(100% - 16px));
    padding-top: 16px;
  }

  .page-reference .reference-sidebar {
    gap: 14px;
  }

  .page-reference .reference-content {
    gap: 14px;
  }

  .page-reference .reference-headline,
  .page-reference .reference-article,
  .page-reference .reference-collection,
  .page-reference .reference-related {
    padding: 15px;
  }

  .page-reference .reference-headline h1 {
    font-size: 17px;
  }

  .page-reference .reference-collection__toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .page-reference .index-search {
    flex-basis: auto;
  }

  .reference-related .card-grid,
  .reference-collection .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Softer rounded portal treatment from the supplied visual reference. */
.page-home,
.page-reference {
  background: #f1f4f8;
}

.page-home .reference-banner,
.page-reference .reference-banner {
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(37, 66, 98, 0.1);
}

.page-home .reference-profile,
.page-home .reference-side-panel,
.page-home .reference-headline,
.page-home .reference-module,
.page-home .reference-local-panel,
.page-reference .reference-profile,
.page-reference .reference-side-panel,
.page-reference .reference-headline,
.page-reference .reference-article,
.page-reference .reference-collection,
.page-reference .reference-related {
  border: 1px solid #dce5ee;
  border-radius: 17px;
  box-shadow: 0 7px 20px rgba(37, 66, 98, 0.09);
}

.page-home .reference-profile h2,
.page-home .reference-side-panel h2,
.page-home .reference-headline h1,
.page-home .reference-module h2,
.page-home .reference-local-panel h2,
.page-reference .reference-profile h2,
.page-reference .reference-side-panel h2,
.page-reference .reference-headline h1,
.page-reference .reference-section-title,
.page-reference .reference-article .reference-section-title {
  color: #122c4f;
}

.page-home .reference-profile h2::after,
.page-home .reference-side-panel h2::after,
.page-home .reference-headline h1::after,
.page-home .reference-module h2::after,
.page-home .reference-local-panel h2::after,
.page-reference .reference-profile h2::after,
.page-reference .reference-side-panel h2::after,
.page-reference .reference-headline h1::after,
.page-reference .reference-section-title h2::after {
  background: #c7a04a;
}

.page-home .reference-profile__name,
.page-home .reference-module a,
.page-reference .reference-profile__name,
.page-reference .reference-module a {
  color: #122c4f;
}

.page-home .reference-profile__photo,
.page-reference .reference-profile__photo {
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(33, 54, 80, 0.1);
}

.page-home .reference-module li b {
  border-radius: 5px;
  background: #a9b3bf;
}

.page-home .reference-module li:first-child b {
  background: #c7a04a;
}

.page-home .reference-local-panel > div a,
.page-reference .reference-related .card,
.page-reference .reference-collection .card {
  border-color: #dce5ee;
  border-radius: 10px;
}

.page-home .site-footer,
.page-reference .site-footer {
  background: #173f70;
}

@media (max-width: 640px) {
  .page-home .reference-banner,
  .page-reference .reference-banner {
    border-radius: 0 0 15px 15px;
  }

  .page-home .reference-profile,
  .page-home .reference-side-panel,
  .page-home .reference-headline,
  .page-home .reference-module,
  .page-home .reference-local-panel,
  .page-reference .reference-profile,
  .page-reference .reference-side-panel,
  .page-reference .reference-headline,
  .page-reference .reference-article,
  .page-reference .reference-collection,
  .page-reference .reference-related {
    border-radius: 14px;
  }
}

/* Sidebar modules follow the supplied legal portal card treatment. */
.reference-side-panel--tools {
  padding-bottom: 18px;
}

.reference-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reference-tool-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid #d8e2ec;
  border-radius: 11px;
  color: #172d4c;
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.reference-tool-link:hover {
  border-color: #c7a04a;
  background: #fffdf7;
  box-shadow: 0 4px 12px rgba(36, 63, 91, 0.08);
}

.reference-tool-link__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #c39735;
}

.reference-tool-link__icon svg {
  width: 20px;
  height: 20px;
}

.reference-tool-link > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .reference-side-panel:not(.reference-side-panel--tools) li,
.page-reference .reference-side-panel:not(.reference-side-panel--tools) li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed #dce4ec;
  color: #68778c;
  line-height: 1.45;
}

.page-home .reference-side-panel:not(.reference-side-panel--tools) li:last-child,
.page-reference .reference-side-panel:not(.reference-side-panel--tools) li:last-child {
  border-bottom: 0;
}

.page-home .reference-side-panel:not(.reference-side-panel--tools) li::before,
.page-reference .reference-side-panel:not(.reference-side-panel--tools) li::before {
  display: none;
}

.page-home .reference-side-panel:not(.reference-side-panel--tools) a,
.page-reference .reference-side-panel:not(.reference-side-panel--tools) a {
  color: #68778c;
}

@media (max-width: 640px) {
  .mobile-sidebar-section {
    margin-top: 14px;
    padding: 19px 14px 17px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(37, 66, 98, 0.08);
  }

  .mobile-sidebar-section > h2 {
    position: relative;
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid #eee;
    color: #122c4f;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
  }

  .mobile-sidebar-section > h2::after {
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 8px;
    background: #c7a04a;
    content: "";
  }

  .mobile-sidebar-section ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
  }

  .mobile-sidebar-section li {
    padding: 10px 0;
    border-bottom: 1px dashed #dce4ec;
    line-height: 1.5;
  }

  .mobile-sidebar-section li:last-child {
    border-bottom: 0;
  }

  .mobile-sidebar-section li a {
    color: #68778c;
    font-size: 0.9rem;
    text-decoration: none;
  }

  .mobile-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
  }

  .mobile-tool-grid a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 58px;
    padding: 8px;
    border: 1px solid #d8e2ec;
    border-radius: 10px;
    color: #172d4c;
    font-size: 0.76rem;
    line-height: 1.35;
    text-decoration: none;
  }

  .mobile-tool-grid a > span:first-child {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #c39735;
  }

  .mobile-tool-grid svg {
    width: 18px;
    height: 18px;
  }

  .mobile-tool-grid a > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
