/* Scope: .amgb-how */

.amgb-how {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--amgb-text);
  background: var(--amgb-white);
  overflow-x: clip;
}

/* ============================================================
   Hero with three-step flow
   ============================================================ */

.amgb-how__hero {
  background: var(--amgb-linen);
  padding: var(--amgb-space-12) 0;
}

/* Tier 1, A1: animated process line above the three flow cards.
   Desktop only (the CSS in amgb-anim.css hides on <768px). */
.amgb-how__process-line {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: 50px;
  margin: 0 auto var(--amgb-space-5);
  opacity: 0.85;
}
.amgb-how__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--amgb-space-5);
}
@media (min-width: 768px) {
  .amgb-how__flow { grid-template-columns: repeat(3, 1fr); gap: var(--amgb-space-6); }
}
.amgb-how__flow-card {
  background: var(--amgb-white);
  border: 1px solid var(--amgb-border);
  border-radius: var(--amgb-radius-lg);
  padding: var(--amgb-space-6);
  text-align: center;
  position: relative;
}
.amgb-how__flow-num {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amgb-gold);
  color: var(--amgb-white);
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amgb-how__flow-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--amgb-gold-deep);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: var(--amgb-space-4) auto var(--amgb-space-3);
  display: block;
}
.amgb-how__flow-title {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 var(--amgb-space-2);
}
.amgb-how__flow-card p { margin: 0; font-size: 15px; color: var(--amgb-text-muted); line-height: 1.55; }

/* Per-step */
.amgb-how__step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--amgb-space-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .amgb-how__step-grid { grid-template-columns: 1.1fr 1fr; gap: var(--amgb-space-10); }
  .amgb-how__step-grid--reverse > :first-child { order: 2; }
}
.amgb-how__step-photo { aspect-ratio: 4 / 3; }

.amgb-how__bullets {
  margin: var(--amgb-space-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--amgb-space-3);
}
.amgb-how__bullets li {
  font-size: 16px;
  line-height: 1.55;
  padding-left: var(--amgb-space-4);
  border-left: 2px solid var(--amgb-gold);
}
.amgb-how__bullets a { color: var(--amgb-gold-deep); font-weight: 600; }
.amgb-how__bullets strong { color: var(--amgb-text); }

.amgb-how__gear {
  list-style: none;
  margin: var(--amgb-space-4) 0;
  padding: 0;
  display: grid;
  gap: var(--amgb-space-2);
}
.amgb-how__gear li {
  display: flex;
  align-items: flex-start;
  gap: var(--amgb-space-3);
  font-size: 16px;
}
.amgb-how__gear svg {
  width: 22px;
  height: 22px;
  stroke: var(--amgb-gold-deep);
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}
.amgb-how__inline-note {
  background: var(--amgb-linen);
  border-left: 3px solid var(--amgb-gold);
  padding: var(--amgb-space-3) var(--amgb-space-4);
  font-style: italic;
  font-size: 15px;
  color: var(--amgb-text-muted);
  margin: var(--amgb-space-4) 0 0;
  border-radius: var(--amgb-radius-sm);
}

.amgb-how__paymode {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--amgb-space-4);
  margin: var(--amgb-space-4) 0;
}
@media (min-width: 640px) {
  .amgb-how__paymode { grid-template-columns: 1fr 1fr; }
}
.amgb-how__paymode > div {
  background: var(--amgb-linen);
  border: 1px solid var(--amgb-border);
  border-radius: var(--amgb-radius-md);
  padding: var(--amgb-space-4);
}
.amgb-how__paymode svg {
  width: 24px;
  height: 24px;
  stroke: var(--amgb-gold-deep);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--amgb-space-2);
}
.amgb-how__paymode h3 { margin: 0 0 var(--amgb-space-1); font-family: 'Roboto Slab', serif; font-size: 17px; }
.amgb-how__paymode p { margin: 0; font-size: 14px; color: var(--amgb-text-muted); }

/* Time table */
.amgb-how__time .amgb-page__section-head { text-align: center; }
.amgb-how__time-icon, .amgb-how__id-icon, .amgb-how__where-icon, .amgb-how__walk-icon {
  width: 48px;
  height: 48px;
  stroke: var(--amgb-gold-deep);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin: 0 auto var(--amgb-space-3);
}
.amgb-how__walk-icon { stroke: var(--amgb-white); }
.amgb-how__timetable {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--amgb-white);
  border: 1px solid var(--amgb-border);
  border-radius: var(--amgb-radius-lg);
  overflow: hidden;
  box-shadow: var(--amgb-shadow-md);
}
.amgb-how__timetable li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--amgb-space-4);
  padding: var(--amgb-space-4) var(--amgb-space-5);
  border-bottom: 1px solid var(--amgb-border-light);
  font-size: 16px;
}
.amgb-how__timetable li:last-child { border-bottom: none; }
.amgb-how__time-val {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  color: var(--amgb-gold-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ID block */
.amgb-how__id-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--amgb-space-6);
  align-items: start;
}
@media (min-width: 768px) {
  .amgb-how__id-grid { grid-template-columns: 1.4fr 1fr; gap: var(--amgb-space-8); }
}
.amgb-how__id-icon { margin: 0 0 var(--amgb-space-3); }
.amgb-how__id-card {
  background: var(--amgb-linen);
  border: 1px solid var(--amgb-border);
  border-radius: var(--amgb-radius-lg);
  padding: var(--amgb-space-5);
}
.amgb-how__id-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--amgb-space-2);
}
.amgb-how__id-card li {
  padding: var(--amgb-space-2) 0;
  border-bottom: 1px solid var(--amgb-border-light);
  font-size: 15px;
}
.amgb-how__id-card li:last-child { border-bottom: none; }
.amgb-how__id a { color: var(--amgb-gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Walk-away gold callout */
.amgb-how__walk-inner { text-align: center; }

/* Service area */
.amgb-how__where-icon { margin: 0 auto var(--amgb-space-3); }
.amgb-how__where .amgb-page__section-head { text-align: center; }
.amgb-how__suburbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--amgb-space-2);
  max-width: 720px;
  margin-inline: auto;
}
@media (min-width: 414px) { .amgb-how__suburbs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .amgb-how__suburbs { grid-template-columns: repeat(5, 1fr); } }
.amgb-how__suburbs li {
  background: var(--amgb-linen);
  border: 1px solid var(--amgb-border);
  border-radius: var(--amgb-radius-md);
  padding: var(--amgb-space-3);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* Close */
.amgb-how__close-inner { text-align: center; }
.amgb-how__close-links {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: var(--amgb-space-5) 0 0;
}
.amgb-how__close-links a { color: var(--amgb-gold); text-decoration: underline; text-underline-offset: 3px; }
.amgb-how__close-links a:hover { color: var(--amgb-white); }

/* ==========================================================================
   ROUND 2 FIX APPEND — QA-1 .amgb-how__time-val mobile overflow (2026-05-28)
   --------------------------------------------------------------------------
   Original rule had `white-space: nowrap;` which forced 630px scrollWidth on
   320-414px viewports. Allow wrap on mobile, keep nowrap on desktop where
   the row has room.
   ========================================================================== */

@media (max-width: 768px) {
  .amgb-how__time-val {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    font-size: 14px;
    line-height: 1.4;
  }
  /* Stack the timetable rows visually so the value can occupy a full row */
  .amgb-how__timetable li {
    flex-wrap: wrap;
  }
}
