:root {
 --ink: #0d1117; --ink-muted: #3d4451; --ink-faint: #6b7280;
 --steel: #1a2332; --blue: #0055ff; --blue-light: #e8efff;
 --red: #dc2626; --red-light: #fef2f2; --gold: #d97706; --gold-light: #fff7ed;
 --green: #16a34a; --green-light: #f0fdf4; --border: #dde3ec;
 --bg: #ffffff; --bg-alt: #f5f7fa; --bg-dark: #0d1117; --radius: 6px;
 --serif: 'Source Serif 4', Georgia, serif;
 --sans: 'Barlow', sans-serif;
 --display: 'Barlow Condensed', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: var(--serif); color: var(--ink); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; }
.page-wrap { max-width: 800px; margin: 0 auto; padding: 0 24px 80px; }
.article-headline { font-family: var(--display); font-weight: 900; font-size: 2.1rem; text-transform: uppercase; color: var(--ink); margin: 32px 0 6px; border: none; padding: 0; letter-spacing: -0.01em; line-height: 1.1; }
.article-byline { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0; }
.aio-answer { background: var(--blue-light); border: 1px solid #c5d8f8; border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0 40px; font-family: var(--sans); font-size: 1rem; line-height: 1.75; color: var(--steel); }
.aio-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--blue); display: block; margin-bottom: 10px; }
.article-intro { padding: 28px 0 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.article-intro p { font-size: 1.08rem; line-height: 1.78; color: var(--ink-muted); margin-bottom: 12px; }
.article-intro p:last-child { margin-bottom: 0; }
.article-intro strong { color: var(--ink); font-weight: 600; }
.leak-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 32px 0; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.leak-zones .leak-zone { padding: 18px 14px; text-align: center; }
.leak-zone-title { font-family: var(--display); font-size: 1rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 6px; }
.leak-zone-sub { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
h2 { font-family: var(--display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; color: var(--ink); margin: 56px 0 20px; padding-bottom: 10px; border-bottom: 2px solid #dde3ec; line-height: 1.15; }
h2 .section-num { font-size: 0.75rem; font-weight: 700; color: var(--blue); letter-spacing: 0.1em; display: block; margin-bottom: 4px; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; color: var(--steel); margin: 28px 0 10px; }
p { margin-bottom: 18px; color: var(--ink); font-size: 1rem; }
strong { font-weight: 600; color: var(--ink); }
ul { margin: 0 0 18px; padding: 0; list-style: none; }
ul li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 1rem; }
ul li::before { content: '—'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.callout { border-left: 4px solid var(--blue); background: var(--blue-light); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 24px 0; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--steel); line-height: 1.6; }
.callout strong { color: var(--blue); }
.callout-danger { background: var(--red-light); border-left-color: var(--red); }
.callout-danger strong { color: var(--red); }
.callout-warning { background: var(--gold-light); border-left-color: var(--gold); }
.callout-warning strong { color: var(--gold); }
.callout-success { background: var(--green-light); border-left-color: var(--green); }
.callout-success strong { color: var(--green); }
.cause-list { margin: 32px 0; }
.cause-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.cause-head { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.cause-num { font-family: var(--display); font-size: 1.5rem; font-weight: 900; color: var(--blue); line-height: 1; min-width: 34px; }
.cause-title-wrap { flex: 1; }
.cause-location { font-family: var(--sans); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 2px; }
.cause-name { font-family: var(--display); font-size: 1.05rem; font-weight: 800; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.cause-badge { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.badge-external { background: #fef3c7; color: #92400e; }
.badge-internal { background: #dbeafe; color: #1d4ed8; }
.badge-spec { background: #fee2e2; color: #991b1b; }
.cause-body { padding: 14px 18px; }
.cause-body p { margin-bottom: 10px; font-size: 0.95rem; }
.cause-body p:last-child { margin-bottom: 0; }
.cause-fix { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--steel); padding: 10px 14px; background: var(--green-light); border-radius: var(--radius); margin-top: 10px; line-height: 1.5; border-left: 3px solid var(--green); }
.cause-fix strong { color: var(--green); }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.875rem; }
thead tr { background: var(--ink); color: #fff; }
thead th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:nth-child(even) { background: #fafbfc; }
td { padding: 11px 16px; color: var(--ink-muted); vertical-align: top; }
td:first-child { font-weight: 600; color: var(--ink); }
.row-featured td { background: var(--green-light) !important; }
.row-warn td { background: var(--gold-light) !important; }
.row-danger td { background: var(--red-light) !important; }
.diag-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.diag-head { background: var(--steel); color: #fff; padding: 12px 16px; font-family: var(--display); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.diag-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--sans); font-size: 0.88rem; }
.diag-item:last-child { border-bottom: none; }
.diag-step { font-family: var(--display); font-size: 0.75rem; font-weight: 800; color: var(--blue); min-width: 28px; padding-top: 1px; flex-shrink: 0; }
.diag-text { color: var(--ink-muted); line-height: 1.55; }
.diag-text strong { color: var(--ink); }
.faq-section { margin-top: 56px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; color: var(--ink); padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; list-style: none; user-select: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--blue); flex-shrink: 0; line-height: 1; }
details[open] .faq-q::after { content: '−'; }
.faq-a { font-family: var(--sans); font-size: 0.9rem; line-height: 1.65; color: var(--ink-muted); padding: 0 0 18px; max-width: 680px; }
.cta-block { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px 40px; margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-tag { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 8px; }
.cta-headline { font-family: var(--display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; line-height: 1.2; }
.cta-sub { font-family: var(--sans); font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 6px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 12px 20px; border-radius: 4px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }

.related-grid {
 display: grid !important;
 grid-template-columns: repeat(3, 1fr) !important;
 gap: 16px !important;
 margin: 12px 0 48px 0 !important;
 padding: 0 !important;
}
.related-grid > p, .related-grid > div:not(.rel-card), .related-grid > br { 
 display: none !important; 
}
.related-grid p .rel-card, .related-grid div .rel-card, .related-grid > .rel-card {
 background: #fff !important;
 border: 1px solid var(--border) !important;
 border-radius: 8px !important;
 padding: 20px 18px !important;
 text-decoration: none !important;
 transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s !important;
 display: flex !important;
 flex-direction: column !important;
 justify-content: center !important;
 align-items: flex-start !important;
 box-sizing: border-box !important;
 margin: 0 !important;
 width: auto !important;
 min-width: 0 !important;
 color: inherit !important;
}
.related-grid > .rel-card:hover, .related-grid p .rel-card:hover, .related-grid div .rel-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 10px 25px rgba(0,86,179,0.1);
 border-color: #bae6fd !important;
}
.related-grid .rel-icon { font-size: 28px !important; margin-bottom: 12px !important; display: block !important; }
.related-grid .rel-name { font-family: var(--sans) !important; font-size: 16px !important; font-weight: 700 !important; color: var(--ink) !important; margin-bottom: 6px !important; display: block !important; }
.related-grid .rel-desc { font-family: var(--sans) !important; font-size: 13.5px !important; color: var(--ink-faint) !important; line-height: 1.5 !important; margin: 0 !important; font-weight: 500 !important; display: block !important; }
.ref-section li::before { content: none; }

/* Global System Hero Section Classes */
.hero-section { display: flex; align-items: center; justify-content: flex-start; gap: 20px; margin: 24px 0 32px; padding: 20px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.hero-photo.img-self { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #0055ff; flex-shrink: 0; }
.hero-right { text-align: left; }
.hero-name-link { font-size: 18px; font-weight: 700; color: #1a2332; text-decoration: none; display: inline-block; }
.hero-name-link:hover { text-decoration: underline; color: #0055ff; }
.hero-role { font-size: 14px; color: #475569; margin: 2px 0 0 0; font-weight: 600; line-height: 1.3; }
.hero-company { font-size: 13px; color: #64748b; margin: 1px 0 6px 0; line-height: 1.3; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hero-badges .badge { margin-left: 0 !important; }
.badge-t1 { background: #dcfce7; color: #15803d; }
.badge-t15 { background: #dbeafe; color: #1d4ed8; }

@media(max-width:640px){.leak-zones{grid-template-columns:1fr}.cta-block{flex-direction:column}}
@media(max-width: 720px) { .related-grid { grid-template-columns: repeat(2, 1fr) !important; } .hero-section { flex-direction: column; text-align: center; padding: 16px; } .hero-photo.img-self { margin: 0 auto; } .hero-right { text-align: center; display: flex; flex-direction: column; align-items: center; } .hero-badges { justify-content: center; } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr !important; } }