/* Balanced service heroes and intentional, topic-specific reading layouts. */
.service-hero {
  padding: 42px 0 46px;
}

.service-hero-grid {
  grid-template-columns: minmax(0, 1.13fr) minmax(340px, 0.87fr);
  align-items: center;
  gap: 54px;
}

.service-hero-copy {
  align-self: center;
  padding: 0;
}

.service-hero .breadcrumbs {
  margin-bottom: 25px;
}

.service-hero .eyebrow {
  margin-bottom: 19px;
}

.service-hero h1 {
  font-size: clamp(37px, 4.05vw, 59px);
  line-height: 1.075;
  letter-spacing: -0.044em;
  margin-bottom: 23px;
}

.service-hero .lead {
  font-size: 18px;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 27px;
}

.service-hero .actions {
  gap: 12px;
}

.service-hero .actions .btn {
  font-size: 16px;
  min-height: 49px;
  padding: 12px 19px;
}

.hero-service-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  align-self: center;
  transform: none;
}

.hero-service-visual::before,
.hero-service-visual::after {
  display: none;
}

.hero-art {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 27px;
  border: 1px solid #cbdedc;
  border-radius: 23px;
  background: #fcfefd;
  color: #102f3d;
  box-shadow: 0 20px 55px #00131820;
  position: relative;
  isolation: isolate;
}

.hero-art h2 {
  color: #102f3d;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 25px;
  font-weight: 700;
}

.hero-art h3 {
  font-size: 18px;
  line-height: 1.3;
}

.hero-art p,
.hero-art li,
.hero-art span,
.hero-art small,
.hero-art dt,
.hero-art dd {
  font-size: 14px;
  line-height: 1.5;
}

.hero-art strong {
  color: inherit;
}

.service-hero--wide .service-hero-grid {
  display: block;
}

.service-hero--wide .service-hero-copy {
  max-width: 1120px;
}

/* Reading architecture: ordered chapters, with contextual help in five positions. */
.composed-content {
  padding: 52px 0 24px;
}

.service-article {
  width: 100%;
  min-width: 0;
  color: #25414f;
}

.service-article .content-chapter {
  position: relative;
  margin: 0 0 46px;
  min-width: 0;
}

.service-article .content-chapter > h2:first-child {
  margin-top: 0;
}

.service-article h2 {
  font-size: clamp(29px, 2.9vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.036em;
  margin: 0 0 23px;
  scroll-margin-top: 125px;
}

.service-article h3 {
  font-size: 23px;
}

.service-article p,
.service-article li {
  font-size: 17px;
  line-height: 1.85;
}

.service-article .content-chapter > p,
.service-article .content-chapter > ul,
.service-article .content-chapter > ol {
  max-width: 850px;
}

.composition-index {
  margin: 0 0 44px;
}

.composition-index .page-toc {
  background: transparent;
  border: 0;
  border-top: 1px solid #cbdadf;
  border-bottom: 1px solid #cbdadf;
  border-radius: 0;
  padding: 23px 0;
  margin: 0;
  box-shadow: none;
}

.composition-index .page-toc ul {
  columns: 3;
  column-gap: 32px;
  margin-bottom: 0;
}

.composition-index .page-toc li {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 11px;
}

.composition-index .page-toc a {
  color: #2e5660;
  font-size: 15px;
}

.composition-reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}

.composition-primary,
.composition-companion {
  min-width: 0;
}

.composition-reading-grid .composition-index .page-toc ul {
  columns: 2;
}

.composition-companion {
  position: sticky;
  top: 112px;
}

.composition-companion .intent-aside {
  position: static;
  max-height: calc(100dvh - 135px);
  overflow-y: auto;
}

.composition-interlude {
  margin: 48px 0 55px;
}

.composition-interlude .intent-aside {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0 40px;
  position: static;
  max-height: none;
  overflow: visible;
  border: 0;
  border-left: 4px solid #0c806a;
  border-radius: 0 18px 18px 0;
  background: #edf6f1;
  padding: 31px 35px;
}

.composition-interlude .intent-aside .eyebrow {
  grid-column: 1;
}

.composition-interlude .intent-question {
  grid-column: 1;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 18px;
}

.composition-interlude .intent-answer {
  grid-column: 1;
  grid-row: 3 / span 3;
  margin-bottom: 0;
}

.composition-interlude .intent-aside .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: start;
  width: auto;
  max-width: 100%;
  padding: 13px 20px;
}

.composition-interlude .intent-checks {
  grid-column: 2;
  grid-row: 3 / span 2;
  margin: 0;
}

.composition-interlude .intent-related {
  grid-column: 2;
}

.interlude--middle .intent-aside {
  background: #102f39;
  border-left-color: #e9c27f;
}

.interlude--middle .intent-aside .eyebrow,
.interlude--middle .intent-question {
  color: #ffffff;
}

.interlude--middle .intent-aside .intent-answer,
.interlude--middle .intent-aside .intent-checks li,
.interlude--middle .intent-aside .intent-related {
  color: #d4e6e7;
}

.interlude--middle .intent-aside .intent-checks li::before {
  color: #e9c786;
}

.interlude--middle .intent-aside .btn {
  background: #e9c786;
  border-color: #e9c786;
  color: #102f39;
}

.composition-dialogue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 55px;
  align-items: start;
  padding-top: 15px;
  margin: 40px 0;
}

.composition-dialogue .intent-aside {
  position: static;
  max-height: none;
  overflow: visible;
}

.composition-sources {
  border-top: 1px solid #d8e3e5;
  margin-top: 45px;
}

.composition-sources .sources-box {
  border-top: 0;
}

/* Page families provide different visual rhythms without changing the facts. */
.family--roadmap .content-chapter {
  padding-left: 63px;
  border-left: 1px solid #cbded9;
  margin-left: 18px;
  padding-bottom: 25px;
}

.family--roadmap .content-chapter::before {
  content: attr(data-chapter);
  position: absolute;
  left: -19px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e3f2e9;
  color: #0b6a57;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.family--roadmap .content-chapter--key > h2 {
  max-width: 850px;
}

.family--dossier .content-chapter--key {
  border: 1px solid #d0e0e3;
  border-top: 4px solid #0a7e74;
  padding: 30px 33px;
  background: #fbfdfc;
  border-radius: 4px 4px 18px 18px;
}

.family--dossier .content-chapter--key:nth-of-type(even) {
  border-top-color: #b3914f;
  background: #fffcf5;
}

.family--dossier .content-chapter:not(.content-chapter--key) {
  border-top: 1px solid #d8e3e7;
  padding-top: 35px;
}

.family--comparison .content-chapter--key,
.family--scope .content-chapter--key {
  padding-bottom: 25px;
  border-bottom: 2px solid #d8e6e3;
}

.family--comparison .content-chapter--key > h2 {
  max-width: 900px;
  font-size: clamp(33px, 3.5vw, 46px);
}

.family--comparison .table-wrap thead th {
  background: #103d43;
}

.family--calendar .content-chapter--key {
  padding: 29px 32px;
  background: #f1f7f3;
  border-radius: 18px;
}

.family--calendar .content-chapter:not(.content-chapter--key) {
  padding-left: 25px;
  border-left: 3px solid #d5e4df;
}

.family--caseflow .content-chapter--key:first-of-type,
.family--workbench .content-chapter--key:first-of-type {
  background: #f8fbfc;
  padding: 32px;
  border: 1px solid #d4e0e6;
  border-radius: 20px;
}

.family--caseflow .content-chapter:not(.content-chapter--key) {
  padding-top: 30px;
  border-top: 1px solid #d7e3e5;
}

.family--routing .content-chapter--key {
  padding-left: 28px;
  border-left: 4px solid #178c87;
}

.family--evidence .content-chapter--key {
  padding: 30px;
  background: #fffcf6;
  border: 1px solid #e4d9bf;
  border-radius: 3px 18px 18px 18px;
}

.family--policy {
  max-width: 890px;
  margin: auto;
}

.family--policy .composition-index .page-toc ul {
  columns: 2;
}

.family--directory .guide-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family--directory .guide-tile {
  border-radius: 7px;
  border-top: 3px solid #148373;
}

.family--contact-studio .content-chapter--key {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.family--cost-reference .content-chapter > p,
.family--scope .content-chapter > p {
  max-width: 1000px;
}

.family--cost-reference .content-chapter--key:first-of-type > h2 {
  max-width: 1000px;
  font-size: 40px;
}

.family--cost-reference .composition-index .page-toc {
  background: #f2f7f7;
  padding: 25px;
  border: 1px solid #cfdee2;
  border-radius: 14px;
}

.composition--owner-dossier .table-wrap {
  border-radius: 0;
}

@media (max-width: 1100px) {
  .service-hero-grid {
    gap: 35px;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  }

  .hero-art {
    padding: 24px;
  }

  .service-hero h1 {
    font-size: 43px;
  }

  .service-hero .lead {
    font-size: 17px;
  }

  .service-hero .actions .btn {
    padding: 12px 16px;
  }

  .composition-reading-grid {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .composition-dialogue {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 35px;
  }
}

@media (max-width: 940px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-hero-copy {
    max-width: 800px;
  }

  .hero-service-visual {
    max-width: 650px;
    width: 100%;
    justify-self: center;
  }

  .composition-reading-grid,
  .composition-dialogue {
    display: block;
  }

  .composition-companion {
    position: static;
    margin: 35px 0;
  }

  .composition-companion .intent-aside {
    max-height: none;
    overflow: visible;
  }

  .composition-index .page-toc ul {
    columns: 2;
  }

  .family--directory .guide-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .service-hero {
    padding: 27px 0 30px;
  }

  .service-hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .service-hero .lead {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 23px;
  }

  .service-hero .breadcrumbs {
    margin-bottom: 23px;
  }

  .service-hero .eyebrow {
    margin-bottom: 17px;
  }

  .service-hero .actions .btn {
    font-size: 16px;
  }

  .hero-art {
    padding: 24px 21px;
    border-radius: 18px;
  }

  .hero-art h2 {
    font-size: 25px;
    line-height: 1.18;
  }

  .composed-content {
    padding-top: 32px;
  }

  .service-article h2,
  .family--comparison .content-chapter--key > h2,
  .family--cost-reference .content-chapter--key:first-of-type > h2 {
    font-size: 29px;
  }

  .service-article .content-chapter {
    margin-bottom: 34px;
  }

  .composition-index {
    margin-bottom: 30px;
  }

  .composition-index .page-toc ul,
  .family--policy .composition-index .page-toc ul {
    columns: 1;
  }

  .composition-interlude {
    margin: 30px 0 38px;
  }

  .composition-interlude .intent-aside {
    display: block;
    padding: 25px 22px;
  }

  .composition-interlude .intent-answer {
    margin-bottom: 22px;
  }

  .composition-interlude .intent-checks {
    margin-top: 20px;
  }

  .composition-interlude .intent-question {
    font-size: 23px;
  }

  .family--roadmap .content-chapter {
    padding-left: 35px;
    margin-left: 9px;
  }

  .family--roadmap .content-chapter::before {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    left: -15px;
    font-size: 14px;
  }

  .family--dossier .content-chapter--key,
  .family--calendar .content-chapter--key,
  .family--caseflow .content-chapter--key:first-of-type,
  .family--workbench .content-chapter--key:first-of-type,
  .family--evidence .content-chapter--key {
    padding: 24px 21px;
    border-radius: 13px;
  }

  .family--routing .content-chapter--key {
    padding-left: 20px;
  }

  .family--directory .guide-catalog {
    grid-template-columns: 1fr;
  }

  .composition-dialogue {
    margin-top: 28px;
  }
}

/* Pricing contrast and article opening alignment. */
@media screen {
  .service-hero .hero-cost-snapshot {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .service-hero .hero-cost-snapshot > div {
    background: #ffffff;
    border: 1px solid #d1e2e3;
    color: #123441;
    box-shadow: 0 12px 28px #001a2420;
  }

  .service-hero .hero-cost-snapshot > div:nth-child(2) {
    background: #edf7f3;
    border-color: #bdded0;
  }

  .service-hero .hero-cost-snapshot > div:last-child {
    background: #fff7e7;
    border-color: #e5d1aa;
  }

  .service-hero .hero-cost-snapshot > div > span {
    color: #17685d;
    font-weight: 700;
  }

  .service-hero .hero-cost-snapshot > div > strong {
    color: #123441;
  }

  .service-hero .hero-cost-snapshot > div > small {
    color: #36525f;
  }

  .service-hero .hero-cost-snapshot > div:last-child > span {
    color: #7a561f;
  }

  .service-article .detailed-packages .price-card.featured {
    background: #0b2e3b;
    border-color: #0b2e3b;
    color: #ffffff;
  }

  .service-article .detailed-packages .price-card.featured h3,
  .service-article .detailed-packages .price-card.featured .price,
  .service-article .detailed-packages .price-card.featured .price > span,
  .service-article .detailed-packages .price-card.featured strong {
    color: #ffffff;
  }

  .service-article .detailed-packages .price-card.featured > p,
  .service-article .detailed-packages .price-card.featured li {
    color: #e0edf1;
  }

  .service-article .detailed-packages .price-card.featured .chapter,
  .service-article .detailed-packages .price-card.featured li::before {
    color: #f0ce8a;
  }

  .service-article .detailed-packages .price-card.featured .btn {
    background: #08765f;
    border-color: #72bda5;
    color: #ffffff;
  }

  .service-article .detailed-packages .price-card.featured .btn:hover {
    background: #075c4b;
    border-color: #9bd8c2;
    color: #ffffff;
  }

  .post-hero > .container,
  .container.journal-layout {
    max-width: 1150px;
  }
}

@media screen and (max-width: 940px) {
  .post-hero > .container,
  .container.journal-layout {
    max-width: 800px;
  }
}

@media print {
  .hero-service-visual,
  .composition-index,
  .composition-companion,
  .composition-interlude,
  .composition-dialogue > div:last-child {
    display: none !important;
  }

  .service-hero-grid,
  .composition-reading-grid,
  .composition-dialogue {
    display: block;
  }

  .content-chapter {
    background: white !important;
    border-color: #ccc !important;
  }
}
