:root {
  --primary-soft: #DCEEEF;
  --accent-blue: #005B96;
  --accent-red: #9B3A32;
  --text-main: #1E2A2F;
  --subtle: #EFF7F6;
  --line: #C2C7C7;
  --paper: #FFFFFF;
}

html {
  scroll-padding-top: 92px;
}

body.site-shell {
  background: #f9f9f9;
  color: var(--text-main);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.container {
  width: min(92%, 1200px);
}

.topline {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
}

.brand-mini {
  color: var(--accent-red);
  display: inline-block;
  font-family: "Lora", Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 16px 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  margin: 0;
}

.header-links li {
  display: block;
}

.header-links a,
.sidenav a {
  color: var(--text-main);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 7px;
  white-space: nowrap;
}

@media (min-width: 993px) {
  .sidenav-trigger {
    display: none !important;
  }
}

.header-links > li > a:hover,
.header-links > li > a:focus,
.dropdown-content li > a {
  color: var(--accent-blue);
}

.practice-masthead {
  background: var(--primary-soft);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  align-items: center;
  display: flex;
  gap: 32px;
  min-height: 210px;
  padding: 32px 0;
}

.masthead-logo img {
  display: block;
  max-height: 118px;
  max-width: 160px;
  object-fit: contain;
}

.eyebrow {
  color: #617176;
  font-size: 14px;
  margin: 0 0 4px;
}

.masthead-copy h1,
.page-title,
.site-prose h1,
.site-prose h2,
.site-prose h3 {
  color: var(--accent-blue);
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

.masthead-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0;
}

.site-main {
  min-height: 55vh;
}

.page-frame {
  padding: 56px 0 72px;
}

.homepage-frame {
  padding-top: 64px;
}

.site-prose {
  background: var(--paper);
  border-top: 2px solid var(--accent-red);
  box-shadow: 0 8px 28px rgba(30, 42, 47, 0.08);
  padding: clamp(24px, 4vw, 48px);
}

.narrow-prose,
.listing-prose,
.media-prose,
.resource-prose {
  margin-inline: auto;
  max-width: 880px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 28px;
}

.lead {
  background: #fff7f6;
  border-left: 3px solid var(--accent-red);
  color: #63312d;
  font-size: 1.16rem;
  margin: 0 0 32px;
  padding: 16px 20px;
}

.site-prose p,
.site-prose li {
  color: var(--text-main);
}

.site-prose a,
.site-block--paragraph a,
.site-category-meta a,
.listing-panel a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 91, 150, 0.35);
  text-underline-offset: 3px;
}

.site-prose a:hover,
.listing-panel a:hover {
  color: var(--accent-red);
  text-decoration-color: var(--accent-red);
}

.content-figure,
.sidebar-image {
  margin: 28px 0;
}

.content-figure img,
.gallery-grid img,
.sidebar-image img,
.practice-card img,
.contact-card img {
  height: auto;
  max-width: 100%;
}

.content-figure figcaption,
.gallery-grid figcaption {
  color: #687579;
  font-size: 14px;
  margin-top: 8px;
}

.gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.resource-card,
.listing-panel {
  background: var(--subtle);
  border-left: 3px solid var(--accent-blue);
  margin: 18px 0;
  padding: 18px;
}

.sidebar-card {
  background: var(--subtle);
  border-top: 2px solid var(--accent-red);
  margin-bottom: 24px;
  padding: 24px;
}

.sidebar-card h2 {
  color: var(--accent-blue);
  font-family: "Lora", Georgia, serif;
  font-size: 1.45rem;
  margin: 14px 0 4px;
}

.badge-image {
  background: white;
  display: block;
  margin-bottom: 18px;
  max-height: 140px;
  object-fit: contain;
}

.crumbs {
  font-size: 14px;
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--accent-blue);
}

.crumbs span {
  color: #879193;
  margin: 0 7px;
}

.toc-panel {
  background: var(--subtle);
  border-left: 3px solid var(--accent-blue);
  margin-bottom: 24px;
  padding: 16px;
}

.toc-panel a {
  display: inline-block;
  margin: 4px 14px 4px 0;
}

.sticky-toc {
  position: sticky;
  top: 88px;
}

.main-image.right {
  margin: 0 0 18px 24px;
  max-width: 34%;
}

.article-dates {
  color: #667376;
  font-size: 14px;
}

.article-card.card,
.minimal-card {
  border-radius: 0;
  box-shadow: 0 8px 22px rgba(30, 42, 47, 0.08);
}

.article-card h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.minimal-card {
  background: white;
  border-left: 3px solid var(--accent-red);
  margin-bottom: 24px;
  padding: 22px;
}

.table-wrap {
  overflow-x: auto;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.site-footer {
  background: #2F3131;
  color: #F1F1F1;
  padding: 34px 0;
}

.footer-grid {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.site-footer p {
  margin: 0;
}

.footer-links a {
  color: #F1F1F1;
  display: inline-block;
  margin-left: 18px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 992px) {
  .masthead-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-container {
    display: block;
  }

  .site-prose {
    margin-bottom: 24px;
  }

  .main-image.right {
    float: none !important;
    margin: 0 0 18px;
    max-width: 100%;
  }

  .footer-links a {
    margin: 0 18px 8px 0;
  }
}

@media print {
  .topline,
  .sidenav,
  .site-footer {
    display: none;
  }

  .site-prose {
    box-shadow: none;
    padding: 0;
  }
}
