.guide-body::before,
.guide-body::after {
  animation: none;
}

.guide-body::after {
  opacity: 0.36;
}

[data-theme="dark"] .guide-body::after {
  opacity: 0.56;
}

.guide-body [hidden] {
  display: none;
}

.guide-page {
  --guide-anchor-offset: calc(var(--header-h) + 34px);
  padding-block: 36px 72px;
}

.guide-page [id] {
  scroll-margin-top: var(--guide-anchor-offset);
}

.guide-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 40;
  padding: 9px 13px;
  transform: translateY(-150%);
  color: var(--text);
  background: var(--surface);
}

.guide-skip:focus {
  transform: translateY(0);
}

.guide-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}

.guide-breadcrumb li:not(:first-child)::before {
  content: "/";
  margin-right: 9px;
}

.guide-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--text);
}

.guide-intro {
  margin: 20px 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.guide-intro h1 {
  max-width: 980px;
  font-size: 2.85rem;
  color: var(--text);
  background: none;
  text-shadow: none;
}

.guide-lead {
  max-width: 74ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.guide-topic-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.guide-topic-label .eyebrow {
  margin: 0;
}

.guide-intro .eyebrow {
  color: var(--brand-deep);
}

.guide-tech-mark {
  display: block;
  flex: none;
  padding: 4px;
  border-radius: 5px;
  background: #edf1f5;
}

.guide-search {
  display: grid;
  grid-template-columns: minmax(0, 460px) auto;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 16px;
}

.guide-search label {
  grid-column: 1 / -1;
  font-weight: 650;
}

.guide-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.guide-search input::placeholder {
  color: var(--muted);
}

.guide-search p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.guide-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 28px;
}

.guide-topic-nav a,
.guide-service-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.guide-worksheet table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.guide-worksheet th,
.guide-worksheet td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.guide-worksheet thead {
  background: var(--surface-strong);
}

.guide-worksheet tbody th {
  width: 34%;
}

.guide-area {
  margin-top: 32px;
}

.guide-area-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.guide-area-heading span {
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.guide-area h2,
.guide-section h2,
.guide-related h2,
.guide-contact h2,
.guide-toc h2 {
  max-width: none;
  color: var(--text);
  background: none;
  text-shadow: none;
  line-height: 1.25;
}

.guide-area h2,
.guide-related h2,
.guide-contact h2 {
  font-size: 1.45rem;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.guide-teaser {
  border-bottom: 1px solid var(--line);
}

.guide-teaser a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: start;
  gap: 10px;
  height: 100%;
  padding: 14px 6px;
}

.guide-teaser a:has(.guide-tech-mark) {
  grid-template-columns: 30px minmax(0, 1fr) 18px;
}

.guide-teaser a:hover,
.guide-teaser a:focus-visible {
  background: color-mix(in srgb, var(--surface-strong) 56%, transparent);
}

.guide-teaser a > svg {
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--muted);
}

.guide-teaser strong,
.guide-teaser-description {
  display: block;
  overflow-wrap: anywhere;
}

.guide-teaser strong {
  line-height: 1.35;
}

.guide-teaser-description {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.guide-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 76ch) minmax(180px, 250px);
  align-items: start;
  gap: 42px;
}

.guide-toc {
  position: sticky;
  top: var(--guide-anchor-offset);
  grid-column: 2;
  grid-row: 1;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.guide-toc h2 {
  font-size: 1rem;
}

.guide-toc ol,
.guide-docs ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.guide-toc li,
.guide-docs li {
  margin-bottom: 5px;
}

.guide-toc a,
.guide-docs a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.guide-toc a:hover,
.guide-docs a:hover {
  color: var(--text);
}

.guide-prose {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.guide-section {
  margin-bottom: 26px;
}

.guide-section h2 {
  font-size: 1.33rem;
}

.guide-section p {
  margin: 8px 0 12px;
  line-height: 1.68;
}

.guide-service-link {
  font-size: 0.91rem;
  font-weight: 650;
}

.guide-related {
  max-width: 76ch;
  margin-top: 32px;
}

.guide-related .guide-list {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 12px;
}

.guide-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.guide-contact p {
  margin: 6px 0 0;
  color: var(--muted);
}

.guide-offer-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.guide-offer-actions a {
  text-align: center;
  padding-block: 8px;
}

.remote-work {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  margin: 0 0 32px;
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
}

.remote-coverage h2,
.sample-report h2 {
  color: var(--text);
  background: none;
  text-shadow: none;
  font-size: 1.45rem;
}

.remote-coverage p {
  margin: 7px 0 0;
  color: var(--muted);
}

.remote-map {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 0 11px;
}

.remote-outline {
  fill: var(--surface-strong);
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.remote-signal {
  opacity: 0;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 20 100;
  stroke-dashoffset: 20;
}

@media (prefers-reduced-motion: no-preference) {
  .remote-map-visible .remote-signal {
    animation: remote-boundary-pulse 1.3s ease-out 1 forwards;
  }
}

@keyframes remote-boundary-pulse {
  0% { opacity: 0; stroke-dashoffset: 20; }
  20%, 78% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -100; }
}

.remote-steps {
  align-self: center;
  border-top: 1px solid var(--line);
}

.remote-steps details {
  border-bottom: 1px solid var(--line);
}

.remote-steps summary {
  min-height: 46px;
  padding: 11px 4px;
  cursor: pointer;
  font-weight: 650;
}

.remote-step-number {
  margin-right: 6px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.remote-steps details p {
  margin: 0 4px 12px 20px;
  color: var(--muted);
}

.sample-report {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.sample-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.sample-filter select {
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.sample-filter [data-report-count] {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.sample-findings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
}

.sample-finding {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.sample-finding h3 {
  line-height: 1.35;
}

.sample-priority {
  display: inline-block;
  margin-bottom: 6px;
  color: #8a4920;
  font-size: 0.84rem;
  font-weight: 700;
}

[data-theme="dark"] .sample-priority {
  color: #f0ac71;
}

.sample-finding dl,
.sample-finding dd {
  margin: 0;
}

.sample-finding dl > div {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 9px;
}

.sample-finding dt {
  font-weight: 700;
  font-size: 0.88rem;
}

.sample-finding dd {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .guide-page {
    --guide-anchor-offset: 145px;
    padding-block: 22px 50px;
  }

  .guide-intro h1 {
    font-size: 2.1rem;
  }

  .guide-lead {
    font-size: 1rem;
  }

  .guide-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .guide-toc,
  .guide-prose {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .guide-breadcrumb li:nth-child(3)[aria-current="page"] {
    display: none;
  }

  .guide-list,
  .guide-search,
  .remote-work,
  .sample-findings {
    grid-template-columns: minmax(0, 1fr);
  }
}
