/* ════════════════════════════════════════
   DWELLTRY, ADU Guide page
   Loaded after style.css + footer.css + rail.css + municipality.css.
   Reuses the .muni-snap-panel frame, dot rail, FAQ overlay, type
   helpers. Adds Guide-specific content: hero topo background, type
   cards w/ SVG art, terminology glossary, reasons grid, costs +
   investment SVG charts, light/dark panel toggles, CTA.
════════════════════════════════════════ */

body { background: #000; color: #FFF; scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }

/* ──── Light variant of section heading bits (used on light panels) ──── */
.muni-section-eyebrow--light { color: var(--gold); }
.muni-section-h2--light       { color: #111; }
.muni-section-h2--light em    { color: var(--gold); font-style: italic; }

/* ════════════════════════════════════════
   GENERAL HEAD STRUCTURE FOR GUIDE PANELS
══════════════════════════════════════ */
.guide-head {
  max-width: 880px;
  margin: 0 auto 2rem;
  text-align: center;
}
.guide-head--light { color: #111; }
.guide-lede {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.4vw, 1.36rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 800px;
  margin: 0.6rem auto 0;
}
.guide-lede--light { color: #333; }

/* ════════════════════════════════════════
   SNAP 1, HERO (overrides + extras)
══════════════════════════════════════ */
.guide-hero-panel {
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.guide-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.guide-topo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
  animation: guideTopoDrift 22s ease-in-out infinite alternate;
}
.guide-topo--a { animation-duration: 26s; }
@keyframes guideTopoDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1.04); }
}
.guide-hero-radial {
  position: absolute; inset: 0;
  background:
    radial-gradient(38% 50% at 88% 12%, rgba(240,168,0,0.20), transparent 70%), radial-gradient(45% 50% at 6%  88%, rgba(240,168,0,0.10), transparent 75%);
}
.guide-hero-hatch {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.020) 0 1px, transparent 1px 14px);
}
.guide-hero-inner {
  position: relative;
  z-index: 2;
}
.guide-also-known {
  font-family: 'Jost', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1.5rem;
}
.guide-also-known em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}
.guide-quickgrid-grid { grid-template-columns: repeat(3, 1fr); }

/* ════════════════════════════════════════
   SNAP 2, TYPES OF ADUS
══════════════════════════════════════ */
.guide-types-panel { background: #060606; }
.guide-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}
.guide-type {
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  padding: 0.85rem 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.guide-type:hover {
  border-color: var(--gold);
  background: rgba(240,168,0,0.05);
  transform: translateY(-3px);
}
.guide-type-art {
  position: relative;
  height: 130px;
  margin: -0.25rem -0.25rem 0.6rem;
  background:
    radial-gradient(60% 70% at 50% 110%, rgba(240,168,0,0.12), transparent 70%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.guide-type-svg {
  width: 100%; height: 100%;
  display: block;
}
.guide-type-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  display: block;
  margin: 0.25rem 0 0.3rem;
}
.guide-type-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 0 0 0.55rem;
  color: #FFF;
}
.guide-type-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.82;
  margin: 0 0 0.9rem;
}
.guide-type-stats {
  list-style: none;
  margin: auto 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.32rem;
}
.guide-type-stats li {
  display: flex;
  justify-content: space-between;
  font-family: 'Jost', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}
.guide-type-stats li span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.6;
  font-size: 0.78rem;
}
.guide-type-stats li strong {
  color: var(--gold);
  font-weight: 400;
}

/* ════════════════════════════════════════
   SNAP 3, TERMINOLOGY (light)
══════════════════════════════════════ */
.guide-terminology-panel {
  background: #FFFFFF;
  color: #111;
}
.guide-terminology-panel::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 16px), radial-gradient(40% 50% at 92% 8%, rgba(240,168,0,0.10), transparent 70%);
  z-index: 0;
}
.guide-terminology-panel .muni-snap-inner {
  position: relative; z-index: 1;
}
.guide-glossary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 0.5rem;
}
.guide-term {
  position: relative;
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.10);
  padding: 0.85rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.guide-term:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 18px -10px rgba(240,168,0,0.55);
  transform: translateY(-2px);
}
.guide-term-mark {
  position: absolute;
  right: 0.75rem;
  top: 0.55rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(240,168,0,0.20);
}
.guide-term-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 0;
  color: #111;
}
.guide-term-def {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.74);
  margin: 0;
}

/* ════════════════════════════════════════
   SNAP 4, WHY BUILD
══════════════════════════════════════ */
.guide-why-panel {
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.guide-why-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.guide-why-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 60% at 18% 22%, rgba(240,168,0,0.18), transparent 70%), radial-gradient(50% 60% at 88% 78%, rgba(240,168,0,0.12), transparent 75%), linear-gradient(160deg, #050505 0%, #0c0c0c 50%, #060606 100%);
}
.guide-why-hatch {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px);
}
.guide-why-panel .muni-snap-inner { position: relative; z-index: 1; }

.guide-reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.guide-reason {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.guide-reason:hover {
  border-color: var(--gold);
  background: rgba(240,168,0,0.06);
  transform: translateY(-3px);
}
.guide-reason-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(240,168,0,0.55);
  background: rgba(240,168,0,0.06);
  margin-bottom: 0.3rem;
}
.guide-reason-icon svg { width: 22px; height: 22px; }
.guide-reason-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0;
  color: #FFF;
}
.guide-reason-text {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.04rem;
  line-height: 1.6;
  opacity: 0.82;
  margin: 0;
}

/* ════════════════════════════════════════
   SNAP 5, COSTS
══════════════════════════════════════ */
.guide-cost-panel { background: #060606; }
.guide-cost-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.guide-cost-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.guide-cost-list li {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.guide-cost-label {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
}
.guide-cost-bar {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}
.guide-cost-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(240,168,0,0.6), var(--gold));
  box-shadow: 0 0 12px rgba(240,168,0,0.45);
  animation: guideBarGrow 1.2s cubic-bezier(0.2,0.7,0.2,1) both;
  transform-origin: left;
}
@keyframes guideBarGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.guide-cost-value {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--gold);
  min-width: 100px;
  text-align: right;
}

.guide-cost-side {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.guide-side-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.guide-side-h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: #FFF;
}
.guide-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.guide-side-list li {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: 0.88;
  padding-left: 1.2rem;
  position: relative;
}
.guide-side-list li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}
.guide-side-list strong { color: #FFF; font-weight: 500; }
.guide-side-callout {
  border-top: 1px solid rgba(240,168,0,0.35);
  background: rgba(240,168,0,0.05);
  padding: 0.85rem 0.9rem 0.9rem;
  margin-top: 0.4rem;
}
.guide-side-callout-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}
.guide-side-callout p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.88;
  margin: 0;
}

/* ════════════════════════════════════════
   SNAP 6, INVESTMENT (charts)
══════════════════════════════════════ */
.guide-invest-panel {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(240,168,0,0.08), transparent 70%), #060606;
}
.guide-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 1.2rem;
}
.guide-chart {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  padding: 1.2rem 1.3rem 1.3rem;
}
.guide-chart-cap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.guide-chart-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.guide-chart-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.15;
  color: #FFF;
}
.guide-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.guide-chart-note {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-style: italic;
}

/* ════════════════════════════════════════
   SNAP 7, FAQ, uses muni-faq overlay system from municipality.css
══════════════════════════════════════ */
/* Background tone tweak for the guide FAQ panel, keep the light bg already
   styled by municipality.css; nothing else needed here. */

/* ════════════════════════════════════════
   SNAP 8, CTA
══════════════════════════════════════ */
.guide-cta-panel {
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.guide-cta-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 20% 80%, rgba(240,168,0,0.18), transparent 75%), radial-gradient(60% 70% at 90% 10%, rgba(240,168,0,0.10), transparent 70%), repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px), linear-gradient(150deg, #0a0a0a, #050505);
}
.guide-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.guide-cta-h2 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.guide-cta-lede {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
  max-width: 600px;
  margin: 0 0 1.6rem;
}
.guide-cta-actions {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.guide-cta-btn {
  padding: 0.95rem 1.4rem 0.9rem 1.45rem;
}
.guide-cta-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.25s;
}
.guide-cta-link:hover { color: var(--gold); }
.guide-cta-link .slash-motif { color: var(--gold); font-style: italic; padding-left: 0.4rem; }

.guide-cta-card {
  border: 1px solid rgba(240,168,0,0.35);
  background: rgba(240,168,0,0.04);
  padding: 1.4rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.guide-cta-card-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.guide-cta-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.guide-cta-card-grid li {
  border-left: 1px solid rgba(240,168,0,0.35);
  padding: 0.2rem 0 0.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.guide-cta-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.guide-cta-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.28rem;
  color: #FFF;
}
.guide-cta-card-text {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.82;
}
.guide-cta-card-foot {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-top: 1px dashed rgba(240,168,0,0.35);
  padding-top: 0.7rem;
  text-align: center;
}

/* ════════════════════════════════════════
   RESPONSIVE, keep desktop layouts down to ~900px so the snap
   panels still fit in a 1000-wide viewport. Below 900 we degrade.
══════════════════════════════════════ */
@media (max-width: 1180px) {
  /* Tighten densities to fit ~1000-wide viewports */
  .guide-head             { margin-bottom: 1.3rem; }
  .guide-lede             { font-size: 1.04rem; line-height: 1.55; }
  .guide-types-grid       { gap: 0.55rem; }
  .guide-type             { padding: 0.6rem 0.7rem 0.85rem; }
  .guide-type-art         { height: 105px; margin-bottom: 0.4rem; }
  .guide-type-name        { font-size: 1.35rem; }
  .guide-type-desc        { font-size: 0.88rem; line-height: 1.55; margin-bottom: 0.6rem; }
  .guide-type-stats li    { font-size: 0.78rem; }
  .guide-type-stats li span  { font-size: 0.72rem; }
  .guide-type-stats       { padding-top: 0.55rem; gap: 0.25rem; }

  .guide-glossary         { gap: 0.5rem; }
  .guide-term             { padding: 0.6rem 0.7rem 0.7rem; }
  .guide-term-name        { font-size: 1.25rem; }
  .guide-term-def         { font-size: 0.88rem; line-height: 1.5; }
  .guide-term-mark        { font-size: 1.9rem; right: 0.55rem; top: 0.35rem; }

  .guide-reasons-grid     { gap: 0.7rem; }
  .guide-reason           { padding: 0.85rem 0.95rem 0.95rem; }
  .guide-reason-name      { font-size: 1.35rem; }
  .guide-reason-text      { font-size: 0.92rem; line-height: 1.55; }
  .guide-reason-icon      { width: 36px; height: 36px; }
  .guide-reason-icon svg  { width: 18px; height: 18px; }

  .guide-charts           { gap: 1rem; }
  .guide-chart            { padding: 0.85rem 0.95rem 0.95rem; }
  .guide-chart-title      { font-size: 1.3rem; }
  .guide-chart-note       { font-size: 0.82rem; }

  .guide-cost-grid        { grid-template-columns: 1.1fr 0.95fr; gap: 1.6rem; }
  .guide-cost-value       { font-size: 1.5rem; min-width: 84px; }
  .guide-cost-label       { font-size: 0.94rem; }
  .guide-side-list li     { font-size: 0.92rem; }
  .guide-side-callout p   { font-size: 0.9rem; }
  .guide-cost-side        { padding: 1.05rem 1.1rem 1.15rem; }
  .guide-side-h3          { font-size: 1.5rem; }
}

@media (max-width: 900px) {
  .guide-types-grid    { grid-template-columns: repeat(2, 1fr); }
  .guide-glossary      { grid-template-columns: repeat(3, 1fr); }
  .guide-reasons-grid  { grid-template-columns: repeat(2, 1fr); }
  .guide-charts        { grid-template-columns: 1fr; }
  .guide-cost-grid     { grid-template-columns: 1fr; gap: 1.4rem; }
  .guide-cta-inner     { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .guide-glossary      { grid-template-columns: repeat(2, 1fr); }
  .guide-reasons-grid  { grid-template-columns: 1fr; }
  .guide-types-grid    { grid-template-columns: 1fr; }
  .guide-quickgrid-grid { grid-template-columns: repeat(2, 1fr); }
}
