/* ==========================================================================
   layout.css — page shell: topbar, masthead, step rail, main grid, aside

   Layout uses the Bootstrap 5 grid (bootstrap-grid.min.css, loaded first in
   index.html) for .container / .row / .col-*. Only grid and containers are
   pulled in — no Reboot and no component styles — so everything below still
   owns the look of the page.
   ========================================================================== */

/* Banner image sits behind the topbar, masthead and step rail. */
.banner {
  background: url("../images/inner-banner.png") no-repeat top left;
  background-size: cover;
}

.topbar {
  /* background: var(--navy); */
  color: #eee;
  font-size: 13px;
  padding: 19px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #404040;
}

.topbar .container {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar strong {
  color: #fff;
}

.topbar .sep {
  color: #3d5f76;
}

header.masthead {
  /* background: var(--navy-2); */
  color: #fff;
  padding: 30px 0 50px;
  /* border-bottom: 3px solid var(--flame); */
}

.brand {
  display: inline-block;
  line-height: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 100%;
}

@media (max-width: 575px) {
  .brand img {
    height: 34px;
  }
}

header.masthead h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-top: 14px;
  line-height: 1.05;
}

header.masthead p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: #eee;
  font-size: 15px;
}

/* --- step rail ----------------------------------------------------------- */

.rail-outer {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.rail {
  display: flex;
  overflow-x: auto;
}

.rail button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font:
    600 13.5px/1 "Montserrat",
    sans-serif;
  color: var(--steel);
  padding: 16px 18px 13px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  gap: 9px;
  align-items: center;
}

.rail button .n {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #e6e2db;
  color: var(--steel);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
}

.rail button[aria-current="true"] {
  color: var(--navy);
  border-bottom-color: var(--flame);
}

.rail button[aria-current="true"] .n {
  background: var(--flame);
  color: #fff;
}

.rail button.done .n {
  background: var(--ok);
  color: #fff;
}

.rail button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- main grid ----------------------------------------------------------- */

/* The two-column split is Bootstrap's: .row > .col-lg-8 + .col-lg-4,
   which stacks to full width below the lg breakpoint (992px). */
.wrap {
  padding-top: 26px;
  padding-bottom: 60px;
}

.wrap .row {
  align-items: start;
}

/* .panel is on the <main> column. Bootstrap gives a column horizontal
   gutter padding of its own, so the panel's own padding is set on top of
   that with the gutter neutralised — keeping the white card flush to the
   column edge and the inner padding at the intended 26px. */
.panel {
  background: #F9F7F1;
    border-radius: 12px;
  padding: 26px;
  --bs-gutter-x: 0;
}

.step {
  display: none;
}

.step.on {
  display: block;
}

.step h2 {
  font-size: 22px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

@media (max-width: 600px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* --- estimate aside ------------------------------------------------------ */

/* aside is a Bootstrap column, so it carries the grid gutter padding.
   The panel styling goes on .body inside it, otherwise the background
   would bleed across the gutter. */
aside .body {
  position: sticky;
  top: 20px;
  background: #333;
  color: #fff;
  border-radius: 12px;
  padding: 22px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

aside h3 {
  font-size: 17px;
  color: #fff;
}

aside .empty {
  color: #8fb0c1;
  font-size: 14px;
  margin-top: 10px;
}
