/* Borehole Drilling Guide — client-facing article */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --guide-header-offset: var(--kisima-header-h, 84px);
  --guide-blue: #2563eb;
  --guide-blue-dark: #1e40af;
  --guide-navy: #0b1324;
  --guide-teal: #0891b2;
  --guide-green: #059669;
  --guide-amber: #d97706;
  --guide-violet: #7c3aed;
  --guide-red: #dc2626;
  --guide-surface: #f8fafc;
  --guide-border: #e2e8f0;
  --guide-text: #334155;
  --guide-heading: #0f172a;
  --guide-radius: 20px;
  --guide-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  --guide-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --guide-serif: 'DM Serif Display', Georgia, serif;
}

html.guide-article-root {
  scroll-behavior: smooth;
}

body.guide-article-body {
  font-family: var(--guide-font);
  color: var(--guide-text);
  background: var(--guide-surface);
  padding-top: var(--guide-header-offset);
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.guide-hero {
  position: relative;
  padding: clamp(2.25rem, 6vw, 4rem) 1.5rem clamp(3.5rem, 8vw, 5rem);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(11, 19, 36, 0.94) 0%, rgba(30, 64, 175, 0.9) 48%, rgba(37, 99, 235, 0.88) 100%),
    url('/assets/img/portfolio/guide.jpeg') center / cover no-repeat;
  overflow: hidden;
}

.guide-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(96, 165, 250, 0.3), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.15), transparent 35%);
  pointer-events: none;
}

.guide-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.guide-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.guide-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.guide-hero h1 {
  font-family: var(--guide-serif);
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  letter-spacing: -0.01em;
}

.guide-hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #e0f2fe;
  max-width: 48rem;
  margin: 0 0 1.35rem;
  line-height: 1.65;
}

.guide-hero__lead--short {
  display: none;
}

.guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.guide-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.guide-hero__btn--primary {
  color: var(--guide-blue-dark);
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.guide-hero__btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.guide-hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.guide-hero__breadcrumb {
  margin: 0;
  font-size: 0.82rem;
  color: #93c5fd;
  white-space: nowrap;
}

.guide-hero__breadcrumb a {
  color: #e0f2fe;
  text-decoration: none;
  font-weight: 600;
}

.guide-hero__breadcrumb a:hover {
  text-decoration: underline;
}

/* Trust stats — glass panel on blue hero */
.guide-hero__trust {
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px rgba(11, 19, 36, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.guide-hero__trust-label {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #93c5fd;
}

.guide-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: none;
}

.guide-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.9rem 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.guide-hero__stat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.guide-hero__stat i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.45);
  border-radius: 10px;
}

.guide-hero__stat--rating i {
  color: #fde047;
  background: rgba(234, 179, 8, 0.28);
}

.guide-hero__stat strong {
  display: block;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.guide-hero__stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #bfdbfe;
  font-weight: 500;
  line-height: 1.35;
}

.guide-hero__curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: clamp(28px, 5vw, 52px);
  background: var(--guide-surface);
  border-radius: clamp(20px, 4vw, 32px) clamp(20px, 4vw, 32px) 0 0;
  z-index: 2;
}

.guide-hero__scroll {
  position: absolute;
  bottom: clamp(2.75rem, 6vw, 4rem);
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  animation: guide-bounce 2.2s ease-in-out infinite;
  transition: background 0.2s, color 0.2s;
}

.guide-hero__scroll:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

@keyframes guide-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* Read progress */
.guide-read-progress {
  position: fixed;
  top: var(--guide-header-offset);
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(37, 99, 235, 0.12);
  z-index: 1001;
}

.guide-read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--guide-blue), #60a5fa);
  transition: width 0.12s ease-out;
}

/* Mobile section jump bar */
.guide-mobile-toc {
  display: none;
  position: sticky;
  top: var(--guide-header-offset);
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--guide-border);
  padding: 0.65rem 1rem 0.75rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.guide-mobile-toc__label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.guide-mobile-toc__track {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.guide-mobile-toc__track a {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid var(--guide-border);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.guide-mobile-toc__track a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--guide-blue), var(--guide-blue-dark));
  border-color: transparent;
}

/* Layout */
.guide-main {
  width: min(1200px, calc(100% - 2rem));
  margin: -2.5rem auto 4rem;
  position: relative;
  z-index: 2;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(240px, 272px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.guide-toc-col {
  position: relative;
  align-self: stretch;
  min-height: 100%;
}

.guide-toc {
  position: relative;
  top: auto;
  width: 100%;
  max-height: calc(100vh - var(--guide-header-offset) - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  padding: 1.15rem 1rem 1rem;
  box-shadow: var(--guide-shadow);
}

.guide-toc__title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 0.65rem;
}

.guide-toc__scroll-hint {
  display: none;
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.guide-toc__inner {
  margin: 0;
}

.guide-toc__intro,
.guide-toc__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-toc__intro li,
.guide-toc__steps li {
  margin-bottom: 0.3rem;
}

.guide-toc__group {
  margin: 0.85rem 0 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--guide-border);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}

.guide-toc__tail {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--guide-border);
}

.guide-toc a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--guide-text);
  text-decoration: none;
  border-radius: 10px;
  line-height: 1.35;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.guide-toc__intro a::before {
  display: none;
}

.guide-toc__steps {
  counter-reset: guide-step;
}

.guide-toc__steps a::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--guide-blue);
  background: #eff6ff;
  border-radius: 8px;
}

.guide-toc a:hover {
  background: #f8fafc;
  color: var(--guide-blue-dark);
}

.guide-toc a.is-active {
  background: #eff6ff;
  color: var(--guide-blue-dark);
  box-shadow: inset 3px 0 0 var(--guide-blue);
}

.guide-toc__cta {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--guide-border);
}

.guide-toc__cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--guide-blue), var(--guide-blue-dark));
  border-radius: 12px;
  text-decoration: none;
  box-shadow: inset 3px 0 0 transparent;
}

.guide-toc__cta a::before {
  display: none;
}

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

/* Sections */
.guide-section {
  scroll-margin-top: calc(var(--guide-header-offset) + 24px);
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease;
}

.guide-section:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
}

.guide-section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--guide-blue);
  margin-bottom: 0.5rem;
}

.guide-section h2 {
  font-family: var(--guide-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--guide-heading);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.guide-section__lead {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

/* At a glance */
.guide-glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.guide-glance-card {
  padding: 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--guide-border);
  border-radius: 16px;
}

.guide-glance-card i {
  font-size: 1.5rem;
  color: var(--guide-blue);
  margin-bottom: 0.65rem;
}

.guide-glance-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--guide-heading);
  margin: 0 0 0.35rem;
}

.guide-glance-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

/* Timeline */
.guide-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.guide-timeline__item {
  text-align: center;
  min-width: 88px;
}

.guide-timeline__dot {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--guide-blue), var(--guide-blue-dark));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.guide-timeline__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--guide-heading);
  line-height: 1.3;
}

.guide-timeline__days {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* Diagram & specs */
.guide-diagram {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin: 1.25rem 0 1.5rem;
}

.guide-diagram__visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 35%, #fff 100%);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.guide-diagram__sky {
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0369a1;
  background: #bae6fd;
}

.guide-diagram__layer {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.guide-diagram__layer--cap { background: #e2e8f0; }
.guide-diagram__layer--seal { background: #cbd5e1; }
.guide-diagram__layer--casing {
  background: #94a3b8;
  color: #fff;
  flex: 0 0 auto;
  min-height: 4.5rem;
}
.guide-diagram__layer--gravel { background: #fcd34d; }
.guide-diagram__layer--water { background: linear-gradient(180deg, #38bdf8, #0284c7); color: #fff; }

.guide-diagram__legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.guide-diagram__legend li {
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: #475569;
}

.guide-diagram__legend strong {
  display: block;
  color: var(--guide-heading);
  margin-bottom: 0.2rem;
}

.guide-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.guide-spec {
  padding: 1rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  text-align: center;
}

.guide-spec__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.guide-spec strong {
  display: block;
  font-size: 1.35rem;
  color: var(--guide-blue-dark);
  line-height: 1.2;
}

.guide-spec p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.guide-callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  margin: 1.25rem 0;
  border: 1px solid;
}

.guide-callout--tip {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

.guide-callout--tip i {
  color: #d97706;
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

.guide-callout p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.guide-takeaway {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #1e3a8a;
}

.guide-takeaway i {
  opacity: 0.45;
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.guide-takeaway p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.guide-figure {
  margin: 1.25rem 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  background: #f1f5f9;
}

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.guide-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid var(--guide-border);
}

/* Step blocks */
.guide-step {
  border-left: 4px solid var(--guide-blue);
}

.guide-step--teal { border-left-color: var(--guide-teal); }
.guide-step--violet { border-left-color: var(--guide-violet); }
.guide-step--red { border-left-color: var(--guide-red); }
.guide-step--green { border-left-color: var(--guide-green); }
.guide-step--amber { border-left-color: var(--guide-amber); }
.guide-step--navy { border-left-color: var(--guide-navy); }

.guide-step__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guide-step__badge {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--guide-blue), var(--guide-blue-dark));
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.guide-step--teal .guide-step__badge { background: linear-gradient(135deg, #0891b2, #0e7490); box-shadow: 0 8px 24px rgba(8, 145, 178, 0.3); }
.guide-step--violet .guide-step__badge { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.guide-step--red .guide-step__badge { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.guide-step--green .guide-step__badge { background: linear-gradient(135deg, #10b981, #059669); }
.guide-step--amber .guide-step__badge { background: linear-gradient(135deg, #f59e0b, #d97706); }
.guide-step--navy .guide-step__badge { background: linear-gradient(135deg, #1e3a8a, #0f172a); }

.guide-step__titles h2 {
  margin-bottom: 0.25rem;
}

.guide-step__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--guide-blue);
  margin: 0;
}

.guide-step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.guide-step__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
}

.guide-step__pill i {
  color: var(--guide-blue);
  font-size: 0.85rem;
}

.guide-client-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.guide-client-box__card {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--guide-border);
}

.guide-client-box__card--see {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.guide-client-box__card--you {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.guide-client-box__card h4 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  color: var(--guide-heading);
}

.guide-client-box__card--see h4 { color: #1d4ed8; }
.guide-client-box__card--you h4 { color: #047857; }

.guide-client-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-client-box li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  color: #475569;
}

.guide-client-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.guide-prose p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.guide-prose strong {
  color: var(--guide-heading);
  font-weight: 700;
}

.guide-checklist {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.guide-checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  font-size: 0.95rem;
  list-style: none;
}

.guide-checklist li i {
  color: var(--guide-green);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.guide-checklist li strong {
  display: block;
  color: var(--guide-heading);
  margin-bottom: 0.15rem;
}

/* Video */
.guide-video {
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  background: #0f172a;
}

.guide-video__wrap {
  aspect-ratio: 16 / 9;
}

.guide-video__wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.guide-video__caption {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--guide-border);
}

.guide-video__caption h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--guide-heading);
}

.guide-video__caption p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

/* FAQ */
/* Quality & related */
.guide-quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.guide-quality-card {
  padding: 1.15rem;
  background: #f8fafc;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-quality-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.guide-quality-card i {
  font-size: 1.35rem;
  color: var(--guide-blue);
  margin-bottom: 0.5rem;
}

.guide-quality-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--guide-heading);
}

.guide-quality-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
}

.guide-next-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.guide-next-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
}

.guide-next-steps__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--guide-blue), var(--guide-blue-dark));
  border-radius: 10px;
}

.guide-next-steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--guide-heading);
}

.guide-next-steps p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.guide-related h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--guide-heading);
}

.guide-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.guide-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.guide-related__card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.guide-related__card i {
  color: var(--guide-blue);
  font-size: 1.2rem;
}

.guide-related__card span {
  font-weight: 700;
  color: var(--guide-heading);
  font-size: 0.95rem;
}

.guide-related__card small {
  color: #64748b;
  font-size: 0.82rem;
}

.guide-faq details,
.guide-faq__item {
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: #fff;
}

.guide-faq summary {
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--guide-heading);
  cursor: pointer;
  list-style: none;
}

.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--guide-blue);
}

.guide-faq details[open] summary::after {
  content: '−';
}

.guide-faq__answer {
  padding: 0 1.15rem 1rem;
  font-size: 0.95rem;
  color: #475569;
  border-top: 1px solid var(--guide-border);
}

/* CTA */
.guide-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--guide-navy) 0%, var(--guide-blue-dark) 100%);
  color: #fff;
  border: none;
}

.guide-cta h2 {
  color: #fff;
}

.guide-cta p {
  color: #bfdbfe;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.guide-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.guide-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-cta__btn--primary {
  background: #fff;
  color: var(--guide-blue-dark);
}

.guide-cta__btn--wa {
  background: #22c55e;
  color: #fff;
}

.guide-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Desktop sidebar pin */
@media (min-width: 1101px) {
  .guide-mobile-toc {
    display: none !important;
  }

  .guide-toc__scroll-hint {
    display: block;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  /*
   * iOS Safari: sticky + overflow on chrome breaks vertical scroll past mid-article
   * (same fix as borehole-cost-breakdown article-toc).
   */
  html.guide-article-root,
  body.guide-article-body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .guide-main,
  .guide-layout,
  .guide-content {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .guide-toc-col {
    display: none;
  }

  .guide-toc {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    bottom: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto;
  }

  .guide-mobile-toc {
    display: block;
    position: relative;
    top: auto;
    z-index: 50;
  }

  .guide-mobile-toc__track {
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
  }

  .guide-timeline {
    grid-template-columns: repeat(7, minmax(72px, 1fr));
  }

  .guide-client-box,
  .guide-diagram {
    grid-template-columns: 1fr;
  }

  .guide-diagram__visual {
    min-height: 0;
    overflow: visible;
    touch-action: pan-y;
  }
}

/* Hero — tablet */
@media (max-width: 900px) {
  .guide-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .guide-hero__trust-label {
    text-align: center;
  }
}

/* Hero — phone */
@media (max-width: 640px) {
  .guide-hero {
    padding: 1.5rem 1rem 2.75rem;
  }

  .guide-hero__top {
    margin-bottom: 0.85rem;
  }

  .guide-hero__breadcrumb {
    display: none;
  }

  .guide-hero h1 {
    max-width: none;
    font-size: clamp(1.65rem, 7.5vw, 2rem);
    margin-bottom: 0.65rem;
  }

  .guide-hero__lead--full {
    display: none;
  }

  .guide-hero__lead--short {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .guide-hero__actions {
    flex-direction: column;
    margin-bottom: 1.15rem;
  }

  .guide-hero__btn {
    width: 100%;
  }

  .guide-hero__trust {
    margin-top: 0;
    padding: 0.9rem 0.75rem 0.85rem;
    border-radius: 16px;
  }

  .guide-hero__trust-label {
    margin-bottom: 0.65rem;
    font-size: 0.62rem;
  }

  .guide-hero__stat {
    padding: 0.65rem 0.35rem;
    border-radius: 12px;
  }

  .guide-hero__stat i {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    border-radius: 8px;
  }

  .guide-hero__stat strong {
    font-size: 1.05rem;
  }

  .guide-hero__stat span {
    font-size: 0.62rem;
  }

  .guide-hero__scroll {
    display: none;
  }

  .guide-hero__curve {
    height: 24px;
    border-radius: 18px 18px 0 0;
  }

  .guide-mobile-toc {
    padding: 0.55rem 0.85rem 0.65rem;
  }

  .guide-mobile-toc__label {
    margin-bottom: 0.3rem;
  }

  .guide-main {
    margin-top: -0.75rem;
    width: min(1200px, calc(100% - 1rem));
  }

  .guide-section {
    padding: 1.25rem 1rem;
  }

  .guide-step__header {
    flex-direction: column;
  }
}

@media (min-width: 641px) {
  .guide-hero__lead--short {
    display: none;
  }
}
