/* ==========================================================================
   바른하수구 공공·의료·교육·대형시설 엔지니어링 파트너 전용 스타일시트
   Theme: Single Tone & Manner (Alabaster White #F7F8FA / Soft Cool Gray #EFF2F6 /
          Pure White Cards #FFFFFF + #E1E6EC Border / Accent Steel Slate Navy #36495C)
   Prefix: rg- (Regional & Institutional Engineering System)
   ========================================================================== */

:root {
  --rg-bg-main: #F7F8FA;
  --rg-bg-sub: #EFF2F6;
  --rg-white: #FFFFFF;

  --rg-border: #E1E6EC;
  --rg-border-strong: #D5DCE4;

  --rg-text-dark: #1F2933;
  --rg-text-main: #242B33;
  --rg-text-muted: #52606D;

  --rg-accent: #36495C;
  --rg-accent-hover: #2B3B4B;
  --rg-accent-soft: #EFF2F6;

  --rg-footer-bg: #1F2933;

  --rg-radius-sm: 6px;
  --rg-radius-md: 12px;
  --rg-radius-lg: 16px;
  --rg-shadow-sm: 0 2px 8px rgba(31, 41, 51, 0.04);
  --rg-shadow-md: 0 8px 20px -4px rgba(31, 41, 51, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.rg-body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background-color: var(--rg-bg-main);
  color: var(--rg-text-main);
  line-height: 1.65;
  word-break: keep-all;
  padding-bottom: 84px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.rg-shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Institutional Status Ribbon */
.rg-dispatch-ribbon {
  background-color: var(--rg-bg-sub);
  color: var(--rg-text-main);
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--rg-border);
}

.rg-ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.rg-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--rg-text-dark);
  white-space: nowrap;
}

.rg-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--rg-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.rg-ribbon-zones {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--rg-text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.rg-ribbon-zones strong {
  color: var(--rg-accent);
  font-weight: 800;
}

/* Masthead & Navigation (Strict 1-Line Desktop Alignment) */
.rg-masthead {
  background-color: var(--rg-white);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--rg-border);
  box-shadow: var(--rg-shadow-sm);
}

.rg-masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 72px;
  gap: 16px;
}

.rg-brand-row-wrap {
  flex-shrink: 0;
}

.rg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.rg-brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--rg-accent);
  color: var(--rg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.rg-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.rg-brand-title {
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--rg-text-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.rg-brand-sub {
  font-size: 0.74rem;
  color: var(--rg-text-muted);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

.rg-gnb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  white-space: nowrap;
}

.rg-gnb-link {
  padding: 8px 13px;
  border-radius: var(--rg-radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--rg-text-muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.rg-gnb-link:hover,
.rg-gnb-link.is-active {
  background-color: var(--rg-bg-sub);
  color: var(--rg-accent);
}

.rg-masthead-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.rg-btn-call-top {
  background-color: var(--rg-accent);
  color: var(--rg-white);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: var(--rg-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.rg-btn-call-top:hover {
  background-color: var(--rg-accent-hover);
}

/* Hero Banner / Clean Balanced Split Layout */
.rg-hero-stage {
  background-color: var(--rg-white);
  color: var(--rg-text-main);
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--rg-border);
}

.rg-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: stretch;
}

.rg-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rg-kicker-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  background-color: var(--rg-bg-sub);
  border: 1px solid var(--rg-border-strong);
  color: var(--rg-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 16px;
  white-space: nowrap;
}

.rg-hero-heading {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: var(--rg-text-dark);
  margin-bottom: 16px;
}

.rg-hero-lead {
  font-size: 1rem;
  color: var(--rg-text-muted);
  margin-bottom: 22px;
  line-height: 1.65;
}

.rg-hero-lead strong {
  color: var(--rg-text-dark);
}

.rg-trust-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.rg-trust-pill {
  background-color: var(--rg-bg-main);
  border: 1px solid var(--rg-border);
  padding: 12px 14px;
  border-radius: var(--rg-radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rg-trust-pill strong {
  display: block;
  color: var(--rg-accent);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
}

.rg-trust-pill span {
  font-size: 0.78rem;
  color: var(--rg-text-muted);
  white-space: nowrap;
}

.rg-cta-pair {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.rg-btn-emergency {
  background-color: var(--rg-accent);
  color: var(--rg-white);
  padding: 15px 24px;
  border-radius: var(--rg-radius-sm);
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--rg-accent);
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.rg-btn-emergency:hover {
  background-color: var(--rg-accent-hover);
}

.rg-btn-sms {
  background-color: var(--rg-bg-sub);
  color: var(--rg-text-main);
  padding: 15px 22px;
  border-radius: var(--rg-radius-sm);
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--rg-border-strong);
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.rg-btn-sms:hover {
  background-color: #E2E7EE;
}

.rg-hero-visual-card {
  background: var(--rg-white);
  color: var(--rg-text-main);
  border-radius: var(--rg-radius-md);
  padding: 20px;
  box-shadow: var(--rg-shadow-md);
  border: 1px solid var(--rg-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.rg-visual-frame {
  border-radius: var(--rg-radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  background-color: #F0F3F7;
  border: 1px solid var(--rg-border);
}

.rg-visual-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.rg-visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.rg-visual-caption strong {
  display: block;
  font-size: 0.96rem;
  color: var(--rg-text-dark);
}

.rg-visual-caption p {
  font-size: 0.82rem;
  color: var(--rg-text-muted);
}

.rg-link-arrow {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--rg-accent);
  white-space: nowrap;
}

.rg-link-arrow:hover {
  text-decoration: underline;
}

/* Interactive Facility & Regional Dispatch Estimator Widget */
.rg-estimator-section {
  padding: 44px 0 12px;
}

.rg-estimator-board {
  background-color: var(--rg-white);
  border-radius: var(--rg-radius-md);
  box-shadow: var(--rg-shadow-sm);
  border: 1px solid var(--rg-border);
  border-top: 3px solid var(--rg-accent);
  padding: 28px 30px;
}

.rg-board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rg-border);
}

.rg-board-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--rg-text-dark);
  line-height: 1.3;
}

.rg-board-sub {
  font-size: 0.9rem;
  color: var(--rg-text-muted);
}

.rg-estimator-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 18px;
  align-items: stretch;
}

.rg-control-box {
  background-color: var(--rg-bg-main);
  padding: 20px;
  border-radius: var(--rg-radius-sm);
  border: 1px solid var(--rg-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.rg-control-label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--rg-accent);
  margin-bottom: 10px;
}

.rg-select-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--rg-radius-sm);
  border: 1px solid var(--rg-border-strong);
  background-color: var(--rg-white);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rg-text-main);
  cursor: pointer;
}

.rg-control-hint {
  font-size: 0.8rem;
  color: var(--rg-text-muted);
  margin-top: 12px;
}

.rg-result-panel {
  background-color: var(--rg-bg-main);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.rg-eta-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--rg-accent);
  margin-bottom: 6px;
}

.rg-eta-highlight {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--rg-text-dark);
  margin-bottom: 6px;
}

.rg-eta-desc {
  font-size: 0.85rem;
  color: var(--rg-text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.rg-eta-actions {
  display: flex;
  gap: 8px;
}

.rg-eta-btn-call,
.rg-eta-btn-sms {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--rg-radius-sm);
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
}

.rg-eta-btn-call {
  background-color: var(--rg-accent);
  color: var(--rg-white);
  border: 1px solid var(--rg-accent);
}

.rg-eta-btn-sms {
  background-color: var(--rg-bg-sub);
  color: var(--rg-text-main);
  border: 1px solid var(--rg-border-strong);
}

/* Section Layout Commons */
.rg-section {
  padding: 64px 0;
}

.rg-section-alt {
  background-color: var(--rg-bg-sub);
  border-top: 1px solid var(--rg-border);
  border-bottom: 1px solid var(--rg-border);
}

.rg-sec-head {
  margin-bottom: 36px;
}

.rg-sec-head-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.rg-sec-head.is-center {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.rg-sec-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--rg-accent);
  background-color: var(--rg-bg-sub);
  border: 1px solid var(--rg-border-strong);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.rg-section-alt .rg-sec-tag {
  background-color: var(--rg-white);
}

.rg-sec-title {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--rg-text-dark);
}

.rg-sec-desc {
  font-size: 0.98rem;
  color: var(--rg-text-muted);
}

/* 3 Institutional / Regional Zone Cards (Strict Box Alignment) */
.rg-zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.rg-zone-card {
  background-color: var(--rg-white);
  border-radius: var(--rg-radius-md);
  padding: 26px;
  border: 1px solid var(--rg-border);
  box-shadow: var(--rg-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rg-zone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rg-shadow-md);
  border-color: var(--rg-accent);
}

.rg-zone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.rg-zone-badge {
  background-color: var(--rg-accent);
  color: var(--rg-white);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.rg-zone-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rg-accent);
  white-space: nowrap;
}

.rg-zone-title {
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--rg-text-dark);
  line-height: 1.35;
}

.rg-zone-desc {
  font-size: 0.9rem;
  color: var(--rg-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.rg-zone-towns {
  font-size: 0.88rem;
  color: var(--rg-text-main);
  background-color: var(--rg-bg-main);
  border: 1px solid var(--rg-border);
  padding: 11px 13px;
  border-radius: var(--rg-radius-sm);
  margin-bottom: 14px;
  line-height: 1.5;
}

.rg-zone-points {
  margin-bottom: 18px;
}

.rg-zone-points li {
  font-size: 0.88rem;
  color: var(--rg-text-muted);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
}

.rg-zone-points li strong {
  color: var(--rg-text-dark);
}

.rg-zone-points li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--rg-accent);
  font-weight: 900;
}

.rg-zone-footer {
  border-top: 1px solid var(--rg-border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--rg-accent);
}

.rg-zone-note {
  border-top: 1px solid var(--rg-border);
  padding-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rg-accent);
}

/* Institutional 2-Column Cards (Strict Box Alignment) */
.rg-magazine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.rg-mag-card {
  background-color: var(--rg-white);
  border-radius: var(--rg-radius-md);
  overflow: hidden;
  border: 1px solid var(--rg-border);
  box-shadow: var(--rg-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rg-mag-media {
  background-color: #F0F3F7;
  border-bottom: 1px solid var(--rg-border);
  overflow: hidden;
}

.rg-mag-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.rg-mag-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rg-mag-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--rg-accent);
  margin-bottom: 6px;
}

.rg-mag-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--rg-text-dark);
  line-height: 1.35;
}

.rg-mag-summary {
  background-color: var(--rg-bg-main);
  border: 1px solid var(--rg-border);
  border-left: 3px solid var(--rg-accent);
  padding: 12px 14px;
  font-size: 0.89rem;
  color: var(--rg-text-main);
  margin-bottom: 12px;
  border-radius: 0 4px 4px 0;
  line-height: 1.55;
}

.rg-mag-list {
  list-style: decimal;
  padding-left: 18px;
  color: var(--rg-text-main);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.rg-mag-list li {
  margin-bottom: 6px;
}

.rg-mag-footer {
  border-top: 1px solid var(--rg-border);
  padding-top: 14px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Subpage Banner Header (Clean Calm Tone) */
.rg-sub-hero {
  background-color: var(--rg-white);
  color: var(--rg-text-main);
  padding: 48px 0;
  border-bottom: 1px solid var(--rg-border);
}

.rg-breadcrumb {
  font-size: 0.82rem;
  color: var(--rg-accent);
  margin-bottom: 10px;
  font-weight: 700;
}

.rg-sub-title {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.32;
  color: var(--rg-text-dark);
}

.rg-sub-lead {
  font-size: 0.98rem;
  color: var(--rg-text-muted);
  max-width: 820px;
  line-height: 1.65;
}

.rg-sub-lead strong {
  color: var(--rg-text-dark);
}

/* Diagnostic Matrix / Technical Table */
.rg-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--rg-white);
  border-radius: var(--rg-radius-md);
  box-shadow: var(--rg-shadow-sm);
  border: 1px solid var(--rg-border);
}

.rg-dispatch-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.rg-dispatch-table th,
.rg-dispatch-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rg-border);
  font-size: 0.91rem;
  color: var(--rg-text-main);
}

.rg-dispatch-table th {
  background-color: var(--rg-accent);
  color: var(--rg-white);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.rg-dispatch-table tr:last-child td {
  border-bottom: none;
}

.rg-dispatch-table tr:hover td {
  background-color: var(--rg-bg-main);
}

.rg-table-accent {
  font-weight: 800;
  color: var(--rg-accent);
}

/* Case Logs Grid (Strict Equal Height Alignment) */
.rg-log-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.rg-log-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.rg-log-card {
  background-color: var(--rg-white);
  border-radius: var(--rg-radius-md);
  overflow: hidden;
  border: 1px solid var(--rg-border);
  box-shadow: var(--rg-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rg-log-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--rg-border);
  background-color: #F0F3F7;
}

.rg-log-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rg-log-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rg-accent);
  margin-bottom: 8px;
}

.rg-log-title {
  font-size: 1.06rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--rg-text-dark);
  line-height: 1.35;
}

.rg-log-desc {
  font-size: 0.88rem;
  color: var(--rg-text-muted);
  margin-bottom: 16px;
  line-height: 1.58;
}

.rg-log-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--rg-border);
}

.rg-chip {
  font-size: 0.74rem;
  font-weight: 700;
  background-color: var(--rg-bg-sub);
  color: var(--rg-accent);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Filter Tabs */
.rg-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.rg-tab-btn {
  padding: 10px 18px;
  border-radius: var(--rg-radius-sm);
  border: 1px solid var(--rg-border-strong);
  background-color: var(--rg-white);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rg-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.rg-tab-btn.is-active,
.rg-tab-btn:hover {
  background-color: var(--rg-accent);
  color: var(--rg-white);
  border-color: var(--rg-accent);
}

/* FAQ Accordion */
.rg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.rg-faq-item {
  background-color: var(--rg-white);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-sm);
  overflow: hidden;
}

.rg-faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--rg-text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.rg-faq-a {
  padding: 16px 22px 20px;
  font-size: 0.92rem;
  color: var(--rg-text-muted);
  border-top: 1px solid var(--rg-border);
  background-color: var(--rg-bg-main);
  display: none;
  line-height: 1.65;
}

.rg-faq-item.is-open .rg-faq-a {
  display: block;
}

/* Call Banner CTA Block (Clean White Card Style) */
.rg-final-dispatch {
  background-color: var(--rg-white);
  color: var(--rg-text-main);
  border-radius: var(--rg-radius-md);
  border: 1px solid var(--rg-border);
  border-top: 3px solid var(--rg-accent);
  padding: 42px 32px;
  text-align: center;
  box-shadow: var(--rg-shadow-sm);
}

.rg-final-dispatch h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  color: var(--rg-text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.rg-final-dispatch p {
  font-size: 0.96rem;
  color: var(--rg-text-muted);
  max-width: 720px;
  margin: 0 auto 24px;
}

.rg-cta-center {
  justify-content: center;
}

.rg-btn-full {
  width: 100%;
}

/* Footer (Only place using #1F2933 Dark Slate Navy) */
.rg-footer {
  background-color: var(--rg-footer-bg);
  color: #CBD2D9;
  padding: 52px 0 40px;
  font-size: 0.88rem;
}

.rg-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rg-footer-title {
  color: var(--rg-white);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.rg-footer-tel {
  color: var(--rg-white);
  font-weight: 800;
  text-decoration: underline;
}

.rg-footer-links li {
  margin-bottom: 8px;
}

.rg-footer-links a:hover {
  color: var(--rg-white);
  text-decoration: underline;
}

.rg-footer-copy {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #9AA5B1;
}

/* Sticky Bottom Action Bar */
.rg-sticky-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--rg-white);
  border-top: 1px solid var(--rg-border-strong);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(31, 41, 51, 0.08);
}

.rg-dock-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rg-dock-info {
  display: flex;
  flex-direction: column;
}

.rg-dock-info strong {
  font-size: 0.9rem;
  color: var(--rg-text-dark);
}

.rg-dock-info span {
  font-size: 0.78rem;
  color: var(--rg-text-muted);
}

.rg-dock-buttons {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 480px;
  justify-content: flex-end;
}

.rg-dock-call {
  flex: 1.3;
  background-color: var(--rg-accent);
  color: var(--rg-white);
  font-weight: 800;
  font-size: 0.92rem;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--rg-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.rg-dock-sms {
  flex: 1;
  background-color: var(--rg-bg-sub);
  color: var(--rg-text-main);
  border: 1px solid var(--rg-border-strong);
  font-weight: 700;
  font-size: 0.88rem;
  min-height: 50px;
  padding: 0 14px;
  border-radius: var(--rg-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .rg-hero-grid,
  .rg-estimator-controls,
  .rg-zone-grid,
  .rg-magazine-grid,
  .rg-log-grid,
  .rg-log-grid-4,
  .rg-footer-grid {
    grid-template-columns: 1fr;
  }

  .rg-masthead-row {
    overflow-x: auto;
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  body.rg-body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .rg-shell {
    padding: 0 16px;
  }

  /* Natural multi-line word wrapping for all headings & titles on mobile */
  h1,
  h2,
  h3,
  .rg-hero-heading,
  .rg-sub-title,
  .rg-sec-title,
  .rg-board-title,
  .rg-zone-title,
  .rg-mag-title,
  .rg-log-title,
  .rg-final-dispatch h2,
  .rg-eta-highlight,
  .rg-faq-q span {
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* Top Ribbon Mobile Fit */
  .rg-ribbon-zones {
    display: none;
  }

  .rg-live-indicator {
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* Mobile Masthead: Row 1 Brand + Call CTA, Row 2 Touch-Scrollable 5-Category Bar */
  .rg-masthead-row {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 10px 0 8px;
    gap: 8px;
    min-height: auto;
  }

  .rg-brand-row-wrap {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .rg-brand-title {
    font-size: 1.02rem;
  }

  .rg-brand-sub {
    font-size: 0.7rem;
  }

  .rg-masthead-cta {
    order: 2;
    flex-shrink: 0;
  }

  .rg-btn-call-top {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .rg-gnb {
    order: 3;
    width: 100%;
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid var(--rg-border);
    padding: 8px 2px 2px;
    gap: 6px;
  }

  .rg-gnb::-webkit-scrollbar {
    display: none;
  }

  .rg-gnb-link {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.84rem;
    background-color: var(--rg-bg-main);
    border: 1px solid var(--rg-border);
    border-radius: 999px;
  }

  .rg-gnb-link.is-active {
    background-color: var(--rg-accent);
    color: var(--rg-white);
    border-color: var(--rg-accent);
  }

  /* Hero & Sub-Hero Mobile Adjustments */
  .rg-hero-stage {
    padding: 32px 0 40px;
  }

  .rg-sub-hero {
    padding: 32px 0;
  }

  .rg-kicker-badge {
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.35;
    padding: 6px 12px;
  }

  .rg-hero-heading {
    font-size: 1.55rem;
    line-height: 1.35;
  }

  .rg-sub-title {
    font-size: 1.48rem;
    line-height: 1.35;
  }

  .rg-trust-pills {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rg-trust-pill strong,
  .rg-trust-pill span {
    white-space: normal;
  }

  .rg-cta-pair {
    flex-direction: column;
    gap: 10px;
  }

  .rg-btn-emergency,
  .rg-btn-sms {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
  }

  .rg-visual-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Estimator & Cards Mobile Padding */
  .rg-section {
    padding: 44px 0;
  }

  .rg-estimator-board {
    padding: 20px 16px;
  }

  .rg-zone-card,
  .rg-mag-body,
  .rg-log-body {
    padding: 20px 18px;
  }

  .rg-eta-actions {
    flex-direction: column;
  }

  .rg-eta-btn-call,
  .rg-eta-btn-sms {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Table Smooth Touch Scroll */
  .rg-table-wrap,
  .rg-table-wrap table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Sticky Dock Mobile Thumb-Friendly 50px Buttons */
  .rg-sticky-dock {
    padding: 8px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .rg-dock-info {
    display: none;
  }

  .rg-dock-buttons {
    max-width: 100%;
    width: 100%;
    gap: 8px;
  }

  .rg-dock-call,
  .rg-dock-sms {
    height: 50px;
    min-height: 50px;
    font-size: 0.9rem;
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .rg-shell {
    padding: 0 14px;
  }

  h1,
  h2,
  h3,
  .rg-sec-title,
  .rg-board-title,
  .rg-zone-title,
  .rg-mag-title,
  .rg-log-title {
    white-space: normal !important;
    word-break: keep-all;
  }

  .rg-brand-emblem {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .rg-brand-title {
    font-size: 0.95rem;
  }

  .rg-btn-call-top {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .rg-hero-heading {
    font-size: 1.4rem;
  }

  .rg-sub-title {
    font-size: 1.35rem;
  }

  .rg-sec-title {
    font-size: 1.32rem;
  }

  .rg-board-title {
    font-size: 1.2rem;
  }

  .rg-zone-title,
  .rg-mag-title {
    font-size: 1.08rem;
  }

  .rg-log-title {
    font-size: 1.02rem;
  }

  .rg-zone-top,
  .rg-log-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .rg-final-dispatch {
    padding: 28px 18px;
  }

  .rg-final-dispatch h2 {
    font-size: 1.28rem;
  }

  .rg-tab-btn {
    width: 100%;
    text-align: center;
  }

  .rg-dock-call {
    flex: 1.35;
    font-size: 0.86rem;
  }

  .rg-dock-sms {
    flex: 0.95;
    font-size: 0.84rem;
  }
}
