/* VA Claims Guide reader */
.claims-guide-page {
  background: #f7f9fc;
}
.guide-hero {
  padding: 48px 0 52px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.12), transparent 27rem),
    linear-gradient(130deg, #071c34 0%, #0c2d53 58%, #174b78 100%);
  color: #fff;
}
.guide-hero-inner {
  max-width: 920px;
}
.guide-back-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
  font-weight: 700;
}
.guide-back-link:hover {
  color: #fff;
}
.guide-hero .eyebrow {
  color: #ffb7c4;
}
.guide-hero h1 {
  max-width: 820px;
  margin: 8px 0 15px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.guide-hero-lead {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.65;
}
.guide-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 720px;
  margin-top: 25px;
  padding: 7px 10px 7px 15px;
  border-radius: 9px;
  background: #fff;
}
.guide-search > i {
  color: #52667f;
}
.guide-search input {
  width: 100%;
  padding: 7px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
}
.guide-search input::placeholder {
  color: #7c8999;
}
.guide-search kbd {
  display: inline-grid;
  width: 28px;
  height: 26px;
  place-items: center;
  border: 1px solid #d9e0e8;
  border-radius: 6px;
  background: #f6f8fa;
  color: #6b7787;
  font-family: inherit;
  font-size: 0.72rem;
}
.guide-count {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
}
.guide-reader {
  scroll-margin-top: 76px;
}
.guide-reader-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 82px;
}
.guide-sidebar {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 98px);
  overflow-y: auto;
  padding: 0 13px 22px 0;
  scrollbar-color: #bcc7d3 transparent;
  scrollbar-width: thin;
}
.guide-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.guide-sidebar-top > a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #5e6d7e;
  font-size: 0.72rem;
  font-weight: 700;
}
#guide-contents-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
}
.guide-contents-label {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-part {
  position: relative;
  padding: 0 0 17px 16px;
}
.guide-part::before {
  position: absolute;
  top: 0;
  bottom: -2px;
  left: 0;
  width: 2px;
  background: #d6dee8;
  content: "";
}
.guide-part:last-of-type::before {
  bottom: 34px;
}
.guide-part-arrow {
  position: relative;
  display: grid;
  min-height: 48px;
  margin: 0 14px 8px 0;
  padding: 8px 28px 8px 12px;
  align-content: center;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 9px 50%);
  background: #0c2d53;
  color: #fff;
}
.guide-part:nth-of-type(3) .guide-part-arrow { background: #174b78; }
.guide-part:nth-of-type(4) .guide-part-arrow { background: #28618f; }
.guide-part:nth-of-type(5) .guide-part-arrow { background: #315f83; }
.guide-part:nth-of-type(6) .guide-part-arrow { background: #7f2a3a; }
.guide-part-arrow::before {
  position: absolute;
  top: 17px;
  left: -21px;
  width: 12px;
  height: 12px;
  border: 3px solid #f7f9fc;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px #d6dee8;
  content: "";
}
.guide-part-arrow span {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.72;
  text-transform: uppercase;
}
.guide-part-arrow strong {
  margin-top: 2px;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}
.guide-part-links {
  display: grid;
  gap: 2px;
}
.guide-part-links a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 7px 9px;
  border-radius: 7px;
  color: #526275;
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.35;
}
.guide-part-links a > span {
  color: #8a97a7;
  font-size: 0.65rem;
  font-weight: 800;
}
.guide-part-links a:hover {
  background: #edf2f7;
  color: var(--navy);
}
.guide-part-links a.is-active {
  background: #e8eef5;
  color: var(--navy);
  font-weight: 800;
}
.guide-part-links a.is-active > span {
  color: var(--red);
}
.guide-part[hidden],
.guide-part-links a[hidden],
.guide-search-empty[hidden] {
  display: none;
}
.guide-search-empty {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.guide-article-shell {
  min-width: 0;
  padding: 43px 48px 30px;
  border: 1px solid #dce3eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(12, 35, 64, 0.06);
}
.guide-chapter[hidden] {
  display: none;
}
.guide-chapter-part {
  margin: 0 0 17px;
  color: #617286;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-chapter-title {
  display: block;
}
.guide-chapter-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.guide-reviewed {
  margin: 20px 0 0;
  color: #7b8898;
  font-size: 0.72rem;
}
.guide-chapter-lead {
  max-width: 850px;
  margin: 30px 0 36px;
  color: #303d4d;
  font-size: 1.02rem;
  line-height: 1.72;
}
.guide-chapter-lead--compact {
  margin: 18px 0 24px;
  color: #4f5e70;
  font-size: 0.86rem;
  line-height: 1.65;
}
.guide-chapter h3 {
  margin: 37px 0 14px;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.guide-steps {
  margin: 0;
  padding: 0;
  border: 1px solid #dce3eb;
  border-radius: 11px;
  list-style: none;
  overflow: hidden;
}
.guide-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 19px;
  border-bottom: 1px solid #e2e7ed;
}
.guide-steps li:last-child {
  border-bottom: 0;
}
.guide-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e7eef6;
  color: #285d90;
  font-size: 0.72rem;
  font-weight: 800;
}
.guide-steps strong,
.guide-comparison strong,
.guide-key-points strong {
  color: var(--navy);
}
.guide-steps p {
  margin: 4px 0 0;
  color: #59687a;
  font-size: 0.82rem;
  line-height: 1.55;
}
.guide-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.guide-comparison > div {
  padding: 17px;
  border: 1px solid #dce3eb;
  border-radius: 9px;
  background: #f8fafc;
}
.guide-comparison strong {
  font-size: 0.82rem;
}
.guide-comparison p {
  margin: 6px 0 0;
  color: #5d6b7c;
  font-size: 0.76rem;
  line-height: 1.5;
}
.guide-key-points {
  margin: 0;
  padding: 0;
  border: 1px solid #dce3eb;
  border-radius: 11px;
  list-style: none;
  overflow: hidden;
}
.guide-key-points li {
  position: relative;
  padding: 16px 18px 16px 43px;
  border-bottom: 1px solid #e2e7ed;
  color: #4f5e70;
  font-size: 0.84rem;
  line-height: 1.55;
}
.guide-key-points li:last-child {
  border-bottom: 0;
}
.guide-key-points li::before {
  position: absolute;
  top: 19px;
  left: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}
.guide-official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 9px;
  background: #eef3f8;
  font-size: 0.72rem;
}
.guide-official-links strong {
  color: var(--navy);
}
.guide-official-links a {
  color: #37699f;
  font-weight: 700;
}
.guide-inline-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}
.guide-inline-cta:hover {
  background: #aa1e32;
  color: #fff;
}
.guide-chapter-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #dce3eb;
}
.guide-chapter-nav button {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.guide-chapter-nav button:last-child {
  justify-content: flex-end;
  text-align: right;
}
.guide-chapter-nav button:disabled {
  cursor: default;
  opacity: 0.32;
}
.guide-chapter-nav button span {
  display: grid;
  min-width: 0;
}
.guide-chapter-nav small {
  color: #8895a4;
  font-size: 0.62rem;
  font-weight: 700;
}
.guide-chapter-nav strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guide-chapter-nav > p {
  margin: 0;
  color: #8491a0;
  font-size: 0.67rem;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .guide-reader-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 26px;
  }
  .guide-article-shell {
    padding: 38px 34px 28px;
  }
}

@media (max-width: 900px) {
  .guide-reader-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }
  .guide-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 1px solid #dce3eb;
    border-radius: 11px;
    background: #fff;
  }
  .guide-sidebar-top {
    margin: 0;
    padding: 13px 15px;
  }
  #guide-contents-toggle {
    display: inline-flex;
    gap: 7px;
    align-items: center;
  }
  .guide-contents {
    display: none;
    max-height: 520px;
    overflow-y: auto;
    padding: 5px 15px 18px;
    border-top: 1px solid #e2e7ed;
  }
  .guide-contents.is-open {
    display: block;
  }
  .guide-part-arrow::before {
    border-color: #fff;
  }
}

@media (max-width: 700px) {
  .guide-hero {
    padding: 42px 0 46px;
  }
  .guide-back-link {
    margin-bottom: 25px;
  }
  .guide-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }
  .guide-reader-layout {
    padding-bottom: 58px;
  }
  .guide-article-shell {
    padding: 30px 20px 24px;
  }
  .guide-chapter-title {
    gap: 11px;
  }
  .guide-chapter-title h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.7rem);
  }
  .guide-chapter-lead {
    margin: 24px 0 30px;
    font-size: 0.94rem;
  }
  .guide-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .guide-search {
    grid-template-columns: 21px minmax(0, 1fr);
  }
  .guide-search kbd {
    display: none;
  }
  .guide-sidebar-top > a {
    display: none;
  }
  .guide-sidebar-top {
    justify-content: flex-end;
  }
  .guide-article-shell {
    margin-right: -4px;
    margin-left: -4px;
    padding: 27px 17px 22px;
    border-radius: 10px;
  }
  .guide-chapter-title {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .guide-chapter-title > span {
    font-size: 2.5rem;
  }
  .guide-steps li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
  }
  .guide-steps li > span {
    width: 27px;
    height: 27px;
  }
  .guide-official-links {
    align-items: flex-start;
    flex-direction: column;
  }
  .guide-chapter-nav {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }
  .guide-chapter-nav button strong {
    display: none;
  }
}
