/* Midwest Gas Pipe Repair · long-tail guide library
   Hallmark · macrostructure: Long Document · tone: urgent utilitarian
   anchor hue: red · pre-emit critique: P5 H5 E4 S5 R5 V4 */

html,
body {
  overflow-x: clip;
}

.guide-hero {
  background: var(--navy-dk);
  color: var(--white);
  padding: 64px 0 88px;
}

.guide-hero .breadcrumb {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  margin-bottom: 24px;
}

.guide-hero .breadcrumb a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 1.02;
  max-width: 18ch;
  overflow-wrap: anywhere;
  min-width: 0;
}

.guide-hero__lede {
  color: rgba(255,255,255,.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 64ch;
  margin-top: 24px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 64px;
  align-items: start;
  padding-block: 72px;
}

.guide-content {
  min-width: 0;
}

.guide-content h2 {
  color: var(--navy-dk);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.08;
  margin: 56px 0 18px;
  overflow-wrap: anywhere;
  min-width: 0;
}

.guide-content h2:first-of-type {
  margin-top: 0;
}

.guide-content p,
.guide-content li {
  max-width: 72ch;
}

.guide-content ul,
.guide-content ol {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
  padding-left: 24px;
}

.safety-note {
  background: #fff4f4;
  border: 1px solid #e7b3b7;
  border-top: 5px solid var(--red);
  border-radius: 14px;
  color: var(--navy-dk);
  margin-bottom: 40px;
  padding: 22px;
}

.safety-note strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.answer-box {
  background: #f3f6fa;
  border-radius: 14px;
  color: var(--navy-dk);
  font-size: 1.08rem;
  margin: 28px 0 36px;
  padding: 24px;
}

.guide-aside {
  position: sticky;
  top: 136px;
  background: var(--light);
  border-radius: 16px;
  padding: 24px;
}

.guide-aside h2 {
  color: var(--navy-dk);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.guide-aside .btn-call {
  width: 100%;
  white-space: nowrap;
  margin-top: 18px;
}

.guide-print {
  width: 100%;
  border: 2px solid var(--navy-dk);
  border-radius: 999px;
  background: transparent;
  color: var(--navy-dk);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 12px;
  min-height: 48px;
}

.guide-print:hover {
  background: var(--navy-dk);
  color: var(--white);
}

.guide-print:active {
  transform: translateY(1px);
}

.guide-aside__links {
  display: grid;
  gap: 10px;
  list-style: none;
  margin-top: 24px;
}

.guide-aside__links a,
.guide-sources a {
  color: var(--red-dk);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-faq {
  border-top: 1px solid #d9dee7;
  padding: 22px 0;
}

.guide-faq h3 {
  color: var(--navy-dk);
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.guide-sources {
  background: #f7f8fa;
  border-radius: 14px;
  margin-top: 56px;
  padding: 24px;
}

.guide-meta {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 28px;
}

.mobile-call-bar {
  display: none;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-block: 64px;
}

.guide-card {
  border: 1px solid #dfe3e9;
  border-radius: 14px;
  padding: 24px;
}

.guide-card h2 {
  color: var(--navy-dk);
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.guide-card a {
  color: var(--red-dk);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .guide-hero {
    padding: 42px 0 60px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 48px;
  }

  .guide-aside {
    position: static;
  }

  .guides-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    background: var(--red-dk);
    color: var(--white);
    font-weight: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    white-space: nowrap;
  }
}

@media print {
  #sticky-bar,
  .navbar,
  .guide-aside,
  .mobile-call-bar,
  .footer {
    display: none !important;
  }

  body {
    padding: 0;
  }

  .guide-hero {
    background: transparent;
    color: var(--navy-dk);
    padding: 0 0 24px;
  }

  .guide-hero h1,
  .guide-hero__lede {
    color: var(--navy-dk);
  }

  .guide-layout {
    display: block;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
