/* Editorial companion to the main site: a quiet, accessible reading surface. */
.editorial {
  --editorial-ink: #10233f;
  --editorial-muted: #536176;
  --editorial-line: #dce2e6;
  background: #fff;
  color: var(--editorial-ink);
}

.editorial-hero {
  position: relative;
  background: #f6f7f3;
  border-bottom: 1px solid #e1e5dd;
  padding: 30px 0 76px;
}

.breadcrumbs {
  gap: 9px 12px;
  margin-bottom: 52px;
  max-width: 980px;
  font-size: 12px;
  line-height: 1.75;
  color: #5a6573;
}

.breadcrumbs a {
  text-decoration: none;
  color: #40536a;
}

.breadcrumbs a:hover {
  color: #1647ed;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumbs > span[aria-hidden] { color: #8b96a2; }
.breadcrumbs [aria-current] { color: #10233f; }
.article-heading { max-width: 1020px; }

.editorial h1 {
  max-width: 1000px;
  margin: 20px 0 26px;
  color: #10233f;
  font-size: clamp(2.55rem, 5.15vw, 4.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.editorial h1 span { color: #1647ed; }

.editorial-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: #536176;
  font-size: clamp(1.05rem, 1.65vw, 1.2rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.guide-category {
  color: #1647ed;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: .1em;
}

.article-heading > .guide-category {
  display: inline-flex;
  padding: 7px 11px;
  background: #e9edf9;
  border-radius: 6px;
  text-decoration: none;
}

.article-meta {
  max-width: 800px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid #dce2d7;
  color: #596775;
  font-size: 12px;
  line-height: 1.85;
}

.editorial-section {
  padding-top: 80px;
  padding-bottom: 80px;
  scroll-margin-top: 125px;
}

.editorial-section + .editorial-section {
  border-top: 1px solid #e4e8eb;
}

.editorial-section h2 {
  color: #10233f;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.editorial-section-head { margin-bottom: 32px; gap: 32px; }
.editorial-section-head > a { flex-shrink: 0; }

.editorial-section-head > a,
.all-guides,
.service-directory-link a {
  color: #1647ed;
  font-size: 14px;
  line-height: 1.65;
  text-underline-offset: 5px;
}

.editorial-section-head > a:hover,
.all-guides:hover,
.service-directory-link a:hover { text-decoration: underline; }

.guide-grid { gap: 20px; }

.guide-card {
  position: relative;
  padding: 30px;
  background: #fff;
  border: 1px solid #dce2e6;
  border-radius: 16px;
  box-shadow: 0 3px 5px #10233f02;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-card:hover {
  border-color: #93a9ed;
  box-shadow: 0 12px 30px #10233f0a;
  transform: translateY(-3px);
}

.guide-card:focus-visible {
  outline: 3px solid #1647ed;
  outline-offset: 5px;
}

.guide-card > .guide-category {
  display: block;
  min-height: 19px;
  margin-bottom: 6px;
}

.guide-card h3,
.guide-card h2 {
  margin: 14px 0 15px;
  color: #10233f;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.guide-card p {
  margin-bottom: 26px;
  color: #536176;
  font-size: 15px;
  line-height: 1.8;
}

.guide-read {
  align-items: center;
  min-height: 49px;
  padding-top: 18px;
  border-top: 1px solid #e8ebee;
  color: #1647ed;
  font-size: 13px;
  font-weight: 800;
}

.guide-read > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eff3ff;
  font-size: 18px;
  line-height: 1;
}

.topic-nav { gap: 10px; margin-top: 36px; }

.topic-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #d9dfd6;
  border-radius: 8px;
  color: #33465a;
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topic-nav a:hover { background: #edf1ff; border-color: #b7c7f4; color: #1647ed; }

.article-layout {
  grid-template-columns: minmax(0, 720px) minmax(280px, 330px);
  justify-content: space-between;
  gap: clamp(42px, 6vw, 100px);
  padding-top: 64px;
  padding-bottom: 20px;
}

.article-body {
  color: #405168;
  font-size: 17px;
  line-height: 1.95;
}

.article-body h2 {
  margin: 45px 0 18px;
  color: #10233f;
  font-size: clamp(1.5rem, 2.3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.article-body p { margin-bottom: 24px; text-wrap: pretty; }
.article-body section { scroll-margin-top: 125px; }
.article-body li { margin: 12px 0; padding-left: 8px; }
.article-body li::marker { color: #1647ed; }

.article-toc {
  padding: 28px 30px;
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  background: #f7f9fc;
  font-size: 14px;
  line-height: 1.7;
}

.article-toc > strong {
  display: block;
  color: #10233f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.article-toc ol { margin: 16px 0 0; padding-left: 20px; }
.article-toc li { margin: 10px 0; padding-left: 7px; }
.article-toc li::marker { color: #748297; font-size: 12px; }
.article-toc a { color: #344d71; text-decoration: none; }
.article-toc a:hover { color: #1647ed; text-decoration: underline; text-underline-offset: 4px; }

.practical-example {
  margin: 36px 0;
  padding: 27px 30px;
  background: #f4f8ec;
  border: 1px solid #e0e8d2;
  border-left: 4px solid #99bd48;
  border-radius: 0 12px 12px 0;
}

.practical-example .guide-category { color: #486225; }
.practical-example p { color: #3e5034; margin: 13px 0 0; }

.article-sidebar { top: 120px; }

.guide-cta {
  position: relative;
  padding: 32px;
  border: 1px solid #203a59;
  border-radius: 18px;
  background: #10233f;
  color: #fff;
  box-shadow: 0 16px 40px #10233f0b;
}

.guide-cta::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 2px;
  background: #d3f57b;
}

.guide-cta .guide-category { color: #d3f57b; font-size: 10px; }

.guide-cta h2 {
  margin: 18px 0;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.23;
  letter-spacing: -.04em;
  text-wrap: pretty;
}

.guide-cta p { color: #c4cfdf; font-size: 15px; line-height: 1.85; }

.guide-cta .button {
  min-height: 52px;
  padding: 15px 16px;
  margin-top: 12px;
  border-color: #d3f57b;
  border-radius: 10px;
  background: #d3f57b;
  color: #10233f;
  font-size: 13px;
}

.guide-cta .button:hover { border-color: #e1ffa0; background: #e1ffa0; }
.guide-service-link { margin-top: 22px; color: #cdd8e6; font-size: 12px; line-height: 1.8; }
.guide-service-link:hover { color: #fff; }

.article-sources {
  margin-top: 44px;
  padding: 26px 28px;
  border: 1px solid #e2e7ec;
  border-radius: 14px;
  background: #fafbfc;
}

.article-sources h2 { margin-top: 0; font-size: 22px; }
.article-sources li { font-size: 15px; }
.article-sources p { margin: 15px 0 0; color: #5c687a; font-size: 13px; line-height: 1.8; }
.article-sources a { color: #1647ed; text-underline-offset: 4px; }

.editorial-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #dce2e6;
  color: #606d7e;
}

.editorial-note > strong { color: #405168; font-size: 13px; }
.editorial-note p { margin-top: 8px; font-size: 13px; line-height: 1.85; }
.all-guides { margin-top: 30px; }

.service-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(290px, .8fr); gap: 72px; }
.service-hero h1 { font-size: clamp(2.6rem, 4.5vw, 4.1rem); }
.service-hero .button { margin-top: 30px; border-radius: 10px; }
.service-hero .cta-note { max-width: 460px; margin-top: 15px; color: #596775; font-size: 12px; }

.service-brief {
  padding: 32px;
  border: 1px solid #d9e0d6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px #263c2a07;
}

.service-brief h2 { margin: 18px 0 22px; color: #10233f; font-size: 27px; line-height: 1.25; letter-spacing: -.04em; }
.service-brief ul { padding-left: 18px; margin-bottom: 24px; }
.service-brief li { padding-left: 6px; margin: 13px 0; color: #405168; font-size: 15px; line-height: 1.75; }
.service-brief li::marker { color: #1647ed; }
.service-brief p { margin: 0; padding-top: 20px; border-top: 1px solid #e3e8df; color: #617060; font-size: 13px; line-height: 1.8; }

.method-grid { gap: 30px; margin-top: 38px; }
.method-step { padding-top: 25px; border-top: 1px solid #cfd8e1; }

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff3ff;
  color: #1647ed;
  font-size: 13px;
  font-weight: 800;
}

.method-step h3 { margin: 22px 0 14px; color: #10233f; font-size: 22px; line-height: 1.35; }
.method-step p { color: #536176; font-size: 16px; line-height: 1.85; }

.scope-note {
  margin-top: 35px;
  padding: 25px 28px;
  border: 1px solid #e0e5dc;
  border-radius: 12px;
  background: #f6f7f3;
  color: #5c685a;
  font-size: 14px;
  line-height: 1.85;
}

.scope-note strong { color: #2d422c; font-size: 13px; }
.scope-note p { margin-top: 8px; }
.editorial-section > .guide-cta { max-width: none; margin-top: 52px; padding: 40px; }
.editorial-section > .guide-cta h2 { max-width: 680px; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.editorial-section > .guide-cta p { max-width: 750px; }
.editorial-section > .guide-cta .button { padding-inline: 24px; }
.editorial-section > .guide-cta .guide-service-link { display: inline-block; margin-left: 24px; }

.editorial-footer {
  margin-top: 0;
  padding: 58px 0 38px;
  border-top: 1px solid #20334c;
  background: #10233f;
  color: #c4cfdf;
}

.editorial-footer p { max-width: 690px; margin-top: 18px; color: #b7c6d8; font-size: 14px; }
.editorial-footer nav { gap: 15px 30px; margin: 30px 0; font-size: 13px; }
.editorial-footer nav a { text-underline-offset: 5px; }
.editorial-footer nav a:hover { color: #d3f57b; text-decoration: underline; }
.editorial-footer .editorial-disclaimer { max-width: 100%; margin-bottom: 22px; padding-top: 25px; border-color: #30425a; color: #aebed0; font-size: 12px; }
.editorial-footer small { color: #aebed0; font-size: 12px; }
.home-guides { border-top-color: #e0e6e9; }
.home-guides .service-directory-link { margin-bottom: 0; }

@media (max-width: 1100px) {
  .service-hero-grid { gap: 38px; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .8fr); }
  .article-layout { gap: 38px; grid-template-columns: minmax(0, 1fr) 285px; }
  .guide-card { padding: 25px; }
  .guide-cta { padding: 26px; }
  .guide-cta h2 { font-size: 26px; }
}

@media (max-width: 860px) {
  .editorial-hero { padding-bottom: 55px; }
  .editorial h1 { font-size: clamp(2.55rem, 6vw, 3.8rem); }
  .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; padding-top: 40px; gap: 38px; }
  .article-sidebar { position: static; }
  .article-sidebar .guide-cta { padding: 32px; }
  .article-sidebar .guide-cta h2 { max-width: 500px; }
  .article-sidebar .guide-cta p { max-width: 560px; }
  .article-sidebar .guide-cta .button { width: auto; min-width: 220px; }
  .service-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .service-brief { max-width: 660px; }
  .editorial-section { padding-top: 60px; padding-bottom: 60px; }
  .method-grid { gap: 24px; }
}

@media (max-width: 600px) {
  .editorial-hero { padding-top: 22px; padding-bottom: 42px; }
  .breadcrumbs { margin-bottom: 34px; gap: 5px 9px; font-size: 11px; }
  .breadcrumbs [aria-current] { overflow-wrap: anywhere; }
  .editorial h1 { margin-top: 18px; font-size: clamp(2.25rem, 9vw, 3.1rem); letter-spacing: -.05em; line-height: 1.12; }
  .editorial-lead { font-size: 16px; line-height: 1.85; }
  .article-meta { margin-top: 24px; padding-top: 18px; font-size: 12px; }
  .editorial-section { padding-top: 48px; padding-bottom: 48px; }
  .editorial-section h2 { font-size: 29px; line-height: 1.2; }
  .editorial-section-head { gap: 17px; margin-bottom: 25px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guide-card { padding: 25px; border-radius: 14px; }
  .guide-card h3, .guide-card h2 { font-size: 21px; line-height: 1.38; }
  .guide-card p { font-size: 15px; }
  .guide-category { font-size: 10px; }
  .topic-nav { margin-top: 26px; gap: 8px; }
  .topic-nav a { padding: 10px 12px; font-size: 12px; }
  .article-layout { padding-top: 30px; gap: 30px; }
  .article-body { font-size: 16px; line-height: 1.9; }
  .article-body h2 { margin-top: 34px; font-size: 25px; }
  .article-body li { padding-left: 4px; }
  .article-toc { padding: 23px; font-size: 14px; border-radius: 14px; }
  .article-toc li { padding-left: 4px; }
  .practical-example { margin: 28px 0; padding: 23px; }
  .guide-cta, .article-sidebar .guide-cta { padding: 27px; border-radius: 15px; }
  .guide-cta h2 { font-size: 27px; }
  .article-sidebar .guide-cta .button { width: 100%; min-width: 0; }
  .article-sources { margin-top: 30px; padding: 22px; }
  .article-sources h2 { margin-top: 0; font-size: 22px; }
  .article-sources ul { padding-left: 18px; }
  .article-sources li { font-size: 14px; }
  .service-hero .button { width: 100%; }
  .service-brief { padding: 25px; border-radius: 15px; }
  .service-brief h2 { font-size: 25px; }
  .method-grid { grid-template-columns: minmax(0, 1fr); margin-top: 28px; gap: 22px; }
  .method-step { padding-top: 22px; }
  .method-step h3 { margin-top: 18px; }
  .method-step p { margin-bottom: 0; }
  .scope-note { margin-top: 28px; padding: 23px; }
  .editorial-section > .guide-cta { padding: 28px; margin-top: 32px; }
  .editorial-section > .guide-cta h2 { font-size: 27px; }
  .editorial-section > .guide-cta .button { width: 100%; }
  .editorial-section > .guide-cta .guide-service-link { display: block; margin-left: 0; }
  .editorial-footer { padding-top: 42px; padding-bottom: 30px; }
  .editorial-footer nav { gap: 17px; margin: 27px 0; }
  .editorial-footer nav a { width: fit-content; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card, .topic-nav a { transition: none; }
  .guide-card:hover { transform: none; }
}
