/* Slim WG21 banner — shared by the mailing (eval) and pragma sites.

   Self-contained on purpose: it defines its own colors and fonts so it
   renders identically regardless of the host page's theme (mailing is
   dark, pragma is a light terminal look). It mirrors the landing-page
   banner, minus the WG21.org H1 and the meta row, at a reduced height.
   Reference: export/Alt Banner.png.

   Content width is kept in lockstep with the page content column: the same
   1280px max-width (--page-max on the mailing pages) and the same 0.75rem
   gutter, so the emblem, text, and building artwork line up with the
   content below the banner. */

.slim-banner {
  --sb-navy:    #011b41;
  --sb-soft:    rgba(142, 197, 255, .7);
  --sb-pad-x:   0.75rem; /* matches the page content gutter (.mailing-page) */
  --sb-house-w: 460px;

  position: relative;
  overflow: hidden;
  background: var(--sb-navy);
  color: #fff;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Gold gradient frame, inset from the edges like the landing banner. */
.slim-banner-frame {
  position: absolute;
  inset: 8px;
  border: 3px solid transparent;
  border-image: linear-gradient(90deg, #b8922a 0%, #cfae65 50%, #b8922a 100%) 1;
  pointer-events: none;
  z-index: 2;
}

.slim-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 84px;
  margin: 0 auto;
  padding: 12px var(--sb-pad-x);
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Building artwork, anchored to the content's right edge (right: --sb-pad-x
   on the centered inner box) so it aligns with page content exactly like
   the landing banner — not bled to the raw viewport edge. */
.slim-banner-inner::after {
  content: "";
  position: absolute;
  right: var(--sb-pad-x);
  top: 0;
  width: var(--sb-house-w);
  height: 100%;
  background: url('../img/banner-bg.png') no-repeat right bottom;
  background-size: contain;
  opacity: .5;
  pointer-events: none;
  z-index: -1;
}

.slim-banner-emblem-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 4px;
}
.slim-banner-emblem {
  width: 56px;
  height: auto;
  display: block;
}

.slim-banner-subtitle {
  margin: 0;
  min-width: 0;
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 22px);
  letter-spacing: -.01em;
  line-height: 1.15;
  color: #fff;
}

/* Submit Issue sits immediately to the right of the page-title text
   (mailing pages only — the pragma banner has no such link). It stays on
   the title row, so it adds no height to the banner. */
.slim-banner-submit {
  flex-shrink: 0;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, .5);
  transition: color .15s, border-color .15s;
}
.slim-banner-submit:hover {
  color: #cfae65;
  border-bottom-color: #cfae65;
}
.slim-banner-submit:focus-visible {
  outline: 2px solid #cfae65;
  outline-offset: 2px;
}

/* margin-left:auto pushes the version block to the far right, leaving the
   Submit Issue link tucked next to the title. */
.slim-banner-cpp {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  text-align: right;
}
.slim-banner-cpp-label {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sb-soft);
}
.slim-banner-cpp-version {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1;
  color: #fff;
}

/* Keyboard focus ring on the home link. */
.slim-banner-emblem-link:focus-visible {
  outline: 2px solid #cfae65;
  outline-offset: 2px;
}

/* ── Responsive: the 0.75rem gutter is constant (it matches the page
   content), so only the artwork, emblem, and density shrink. ── */
@media (max-width: 1100px) {
  .slim-banner { --sb-house-w: 360px; }
  .slim-banner-inner { min-height: 72px; gap: 14px; }
  .slim-banner-emblem { width: 48px; }
  .slim-banner-inner::after { opacity: .4; }
}
@media (max-width: 720px) {
  .slim-banner { --sb-house-w: 280px; }
  .slim-banner-frame { display: none; }
  .slim-banner-inner { min-height: 60px; gap: 12px; padding: 10px var(--sb-pad-x); }
  .slim-banner-emblem { width: 40px; }
  .slim-banner-inner::after { opacity: .25; }
  /* Keep the version, drop the "WORKING DRAFT" label to save room. */
  .slim-banner-cpp-label { display: none; }
  .slim-banner-subtitle { font-size: 15px; }
  .slim-banner-submit { font-size: 11px; }
}
