/* =========================================================
   Advancement Trail — Scouting America Theme (Full CSS)
   Clean rebuild using Montserrat + BSA palette
   ========================================================= */

/* ========== 1. Color Tokens ========== */
:root {
  /* BSA palette */
  --bsa-blue:       #003F87;
  --bsa-dark-blue:  #003366;
  --bsa-red:        #CE1126;
  --bsa-tan:        #D6CEBD;
  --bsa-dark-tan:   #AD9D7B;
  --bsa-gray:       #515354;
  --bsa-light-gray: #E9E9E4;
  --bsa-white:      #ffffff;

  /* App tokens (drive everything) */
  --accent:         var(--bsa-blue);
  --accent-hover:   #004c9f;
  --ink:            #1f2937;     /* darker, cleaner body text */
  --bg:             #ffffff;     /* site background = white */
  --surface:        #ffffff;     /* cards/forms on white too */

  --line-1:         #e5e7eb;     /* borders */
  --shadow-1:       0 4px 12px rgba(0,0,0,.06);
  --shadow-2:       0 10px 24px rgba(0,0,0,.12);
  --radius:         12px;

  /* Form scales */
  --field-h:        48px;        /* tall, modern fields */
  --field-pad-x:    14px;
  --field-gap:      14px;
}

/* ========== 2. Base & Typography ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;              /* normal by default */
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-weight: 700; color: var(--accent); }
/* Keep nav/brand strong but not shouty */
.brand, .nav__link { font-weight: 600; }

/* Focus styling — modern blue outline (no angry red borders) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Modern button (replaces old 90s look) */
button, .btn, input[type="submit"], input[type="button"] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: var(--field-h);
  padding: 0 var(--field-pad-x);
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform .02s ease, box-shadow .2s ease, background .2s ease;
}
button:hover, .btn:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-2);
}
button:active, .btn:active,
input[type="submit"]:active, input[type="button"]:active {
  transform: translateY(1px);
}
.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.form-inline select,
.form-inline button {
  width: auto;
}
a {
  color: var(--bsa-blue);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

a:hover, a:focus { color: var(--accent-hover); text-decoration: underline; }
a:visited {
  color: var(--bsa-blue);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.content { padding: 20px 0; }

:focus-visible {
  outline: 2px solid var(--bsa-blue);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Outline/secondary button variant (keeps your existing .btn--outline) */
.btn--outline {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line-1);
  box-shadow: none;
}
.btn--outline:hover {
  background: #f8fafc;
  border-color: #d1d5db;
}
/* Button links that look like outline buttons */
a.btn.outline,
a.btn.outline:visited {
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line-1);
  box-shadow: none;
}

/* Hover/focus for that outline variant */
a.btn.outline:hover,
a.btn.outline:focus {
  color: var(--accent-hover);
  text-decoration: none;
}

/* ========== 3. Skip Link ========== */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; padding: 10px 14px;
  background: #fff; color: #000; border-radius: 8px; box-shadow: var(--shadow-1);
  z-index: 2000;
}

/* ========== 4. Stage Ribbon (staging banner) ========== */
.stage-ribbon {
  background: var(--bsa-dark-tan);
  color: #fff;
  text-align: center;
  padding: .4rem 0;
  font-weight: 700;
  letter-spacing: .02em;
}

/* =========================================================
   5. HEADER — Unified One-Bar Layout
   ========================================================= */
/* =========================================================
   Header dropdown layering (menus always above content)
   ========================================================= */

/* Header is the root stacking context for the nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;        /* above content, below menus */
  overflow: visible;   /* allow dropdowns to spill outside header box */
}

/* Each dropdown trigger (details) sits above the header plane */
.dd {
  position: relative;
  z-index: 200;
}

/* All dropdown panels (.menu / legacy .dropdown) float above content */
.menu,
.dropdown {
  position: absolute;
  z-index: 300;
}

/* Page content sits underneath menus */
.wrap,
.content,
.card,
.table-wrap,
table {
  position: relative;
  z-index: 1;
}

/* --- Brand --- */
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
/* Troop "badge" select (looks like a pill with ▼) */
.troop-select select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  background:#eef4ff; color:#0b1f35; font-weight:700;
  border:1px solid #d6e6ff; border-radius:10px;
  padding:8px 36px 8px 12px; line-height:1.2;
  background-image:
     linear-gradient(45deg,transparent 50%, #4b6382 50%),
     linear-gradient(135deg,#4b6382 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.troop-select select:focus-visible { outline: 2px solid #4f9cff; outline-offset: 2px; }

a:link, a:visited { color: #003F87; }
a:hover { color: #003F87; text-decoration: underline; }

.main-nav a,
.main-nav summary {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.main-nav a:hover,
.main-nav summary:hover {
  background: rgba(255,255,255,0.15);
}

/* --- Dropdown Panels --- */
details { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  color: var(--bsa-blue);
  border-radius: 8px;
  box-shadow: var(--shadow-2);
  display: none;
  min-width: 200px;
  padding: 6px 0;
  z-index: 999;
}
details[open] .dropdown { display: block; }
.dropdown.right { right: 0; left: auto; }
.dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--bsa-blue);
  font-weight: 600;
  text-decoration: none;
}
.dropdown a:hover { background: var(--bsa-light-gray); }

/* --- Right Side: Troop + Debug + User --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Troop dropdown */
.troop-switcher select {
  background: #fff;
  color: var(--bsa-blue);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 6px 12px;
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--bsa-blue) 50%),
    linear-gradient(135deg, var(--bsa-blue) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.troop-switcher select:hover {
  background-color: var(--bsa-light-gray);
}

/* Debug chip */
.chip-debug {
  background: #FFD966;
  color: var(--bsa-blue);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
}

/* User dropdown */
.user-menu summary {
  background: var(--bsa-light-gray);
  color: var(--bsa-blue);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.user-menu .dropdown a {
  color: var(--bsa-blue);
}
.user-menu .dropdown a:hover {
  background: var(--bsa-light-gray);
}

/* --- Responsive Header --- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .site-header.open .main-nav {
    display: flex;
    flex-direction: column;
    background: var(--bsa-dark-blue);
    padding: 10px;
  }
}

/* =========================================================
   6. CONTENT STYLES
   ========================================================= */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  border: 1px solid #e2e8f0;
  padding: 20px;
}
/* Dashboard layout: cards in a responsive 2-column grid */
.cards--dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.cards--dashboard .card {
  height: 100%;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  background: var(--bsa-blue);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 1;
}
tbody td {
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
}
tbody tr:nth-child(odd) td { background: #f9fafb; }
tbody tr:hover td       { background: #eef6ff; }

/* =========================================================
   7. UTILITIES
   ========================================================= */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.alert.info  { border-color:#cfe0f2; background:#eef6ff; }
.alert.warn  { border-color:#fbd38d; background:#fff7e6; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.badge.green  { background: #e6f6f4; color: #035d4c; }
.badge.yellow { background: #fff7e6; color: #775a00; }
.badge.red    { background: #fdecec; color: #7a1b1f; }

.grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }


  #show_all {
    transform: none !important;
    width: auto !important;
    height: auto !important;
    appearance: checkbox !important;
    accent-color: initial !important;
  }


/* FORM ACTIONS */

/* Form fields — consistent, spacious, mobile-friendly */
input, select, textarea {
  width: 100%;
  max-width: 100%;
  height: var(--field-h);
  padding: 0 var(--field-pad-x);
  border-radius: var(--radius);
  border: 1px solid var(--line-1);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;              /* slightly stronger than body */
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: border-color .15s ease, box-shadow .2s ease, background .15s ease;
}
textarea {
  min-height: calc(var(--field-h) * 2.2);
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: #9aa3af; }

/* Focus for fields */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,63,135,.15); /* soft BSA blue halo */
  outline: none;
}
/* =========================================================
   Universal invalid-field styling for forms
   Used by register.php (and reusable anywhere)
   ========================================================= */

/* Inputs, selects, textarea in invalid state */
.form-input.is-invalid,
.form-select.is-invalid,
textarea.is-invalid {
  border-color: #b91c1c; /* deep red */
  background: #fef2f2;   /* soft red background */
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.35);
}

/* Labels for invalid fields */
label.is-invalid,
.checkbox.is-invalid,
.radio.is-invalid {
  color: #b91c1c;
}

/* Required asterisk remains red */
.req::after {
  content: " *";
  color: #b91c1c;
  font-weight: 700;
}

/* Optional: highlight group borders on invalid fieldsets */
fieldset .is-invalid ~ fieldset {
  border-color: #b91c1c;
}
/* Labels & spacing */
.label, label {
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
  color: var(--ink);
}
.field { margin-bottom: var(--field-gap); }

/* Required star (asterisk) */
.req::after {
  content: " *";
  color: var(--bsa-red);
  font-weight: 700;
}

/* Checkboxes/radios: align + clickable */
.checkbox, .radio {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .6rem 0;
  line-height: 1.4;
}
.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  width: 20px; height: 20px;
  margin-top: 2px;
}

/* Fieldset + legend: inside the box */
fieldset {
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
  background: #fff;
}
legend {
  font-weight: 800;
  color: var(--accent);
  padding: 0 .5rem;
  font-size: 1.05rem;
}

/* Actions row: buttons don’t stretch unless you want them to */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: .75rem;
}
.btn--full { width: 100%; }

/* Responsive — forms are naturally 100% width; spacing adapts */
@media (max-width: 640px) {
  :root { --field-h: 46px; }
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer {
  background: var(--bsa-dark-blue);
  color: #e5e7eb;
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: .9rem;
}

/* Footer links on dark background */
.site-footer a,
.site-footer a:visited { color: var(--bsa-light-gray); text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus { color: #fff; text-decoration: underline; }


/* Form-page container (centered, consistent width, mobile-friendly) */
.content.narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ===========================
   Header/Nav (BSA palette, 508)
   =========================== */

/* Palette (Scouting America) */
:root{
  --bsa-red:  #CE1126;
  --bsa-blue: #003F87;
  --bsa-blue-dark: #003366;
  --bsa-tan:  #D6CEBD;
  --bsa-tan-light:#E9E9E4;
  --bsa-gray: #515354;
  --bsa-gray-2:#232528;
  --white:#fff;

  --ink:#1f2937;
  --line:#e5e9f0;
  --line-2:#dbe3ee;

  --radius:12px;
  --shadow-1:0 2px 8px rgba(0,0,0,.06);
  --shadow-2:0 8px 24px rgba(0,0,0,.12);
}

/* Staging ribbon (tan + red dot) */
.stage-ribbon{
  background: var(--bsa-tan);
  color: var(--bsa-gray-2);
  font: 600 14px/1.4 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding:.35rem .75rem;
  display:flex; align-items:center; gap:.5rem;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.stage-dot{ width:.55rem; height:.55rem; border-radius:50%; background:var(--bsa-red); display:inline-block; }

/* Header bar */
.header{
  background: var(--white);
  color: var(--ink);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 0 0 1px rgba(15,23,42,.06), 0 10px 20px rgba(15,23,42,.06);
}
.header__row{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 0;
}
.header__left{ display:flex; align-items:center; gap: 12px; }
.header__right{ display:flex; align-items:center; gap: 8px; }

/* Brand */
.brand{
  font-weight:800; color: var(--bsa-blue);
  text-decoration:none; padding: 8px 10px; border-radius: 10px;
}
.brand:visited{ color: var(--bsa-blue); }
.brand:hover{ background: var(--bsa-tan-light); }

/* Primary nav */
.nav{ display:flex; align-items:center; gap: 6px; }
.nav__link{
  display:inline-block; padding:10px 12px; border-radius:10px;
  font-weight:700; text-decoration:none; color: var(--ink);
  border: 1px solid transparent;
}
.nav__link:hover{ background: var(--bsa-tan-light); }
.nav__link.is-active{
  background:#f5f7fb; border-color: var(--line-2);
}

/* details/summary dropdowns (one caret only) */
.dd{ position: relative; }
.dd > summary{ list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker{ display:none; }

/* menu panels */
.menu{
  position:absolute; top: calc(100% + 8px);
  background:#fff; color: var(--ink);
  border:1px solid var(--line-2); border-top:3px solid var(--bsa-blue);
  border-radius:12px; box-shadow: var(--shadow-2); padding:6px; min-width:240px;
  z-index:1100;
}
.dd[open] > .menu{ display:block; }
.menu--right{ right:0; }
.menu__item{
  display:block; padding:.55rem .6rem; border-radius:8px;
  text-decoration:none; color: var(--ink); font-weight:700;
}
.menu__item:hover{ background:#f5f7fb; }
.menu__item--muted{ color:#6b7280; padding:.55rem .6rem; }

/* Pill badges / buttons */
.pill{
  display:inline-block; padding:.30rem .6rem; border-radius:999px;
  font-size:.85rem; font-weight:700; border:1px solid var(--line-2); background:#fff; color: var(--ink);
}
.pill--debug{
  background:#FFF3CD; border-color:#F0AD4E; color:#7a5200;
}
.pill--bug {
  background: #FFF3CD;
  border-color: #F0AD4E;
  color: #7a5200;
}

.bug-report-pill {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 400; /* above content, below menus/dialogs */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bug-report-pill__close {
  display: inline-block;
  font-weight: 700;
  padding: 0 0.25rem;
  cursor: pointer;
}

/* Bug report — full overlay inside the dialog */
/* When hidden attribute is present, force it away */
#bugReportOverlay[hidden] {
  display: none !important;
}
dialog.dialog--bug,
.dialog--bug {
  position: relative; /* make dialog the positioning context */
}

#bugReportOverlay {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;

  background: #0057b7;  /* dim everything under it */
  color: #fff;
  font-weight: 600;
  font-size: 1rem;

  z-index: 10;
  pointer-events: auto; /* overlay is what gets clicks while shown */
}
/* Buttons are inline-sized by default */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  width: auto;                /* <-- key: not full width */
  max-width: none;
}

/* Only make a button full-width when explicitly requested */
.btn--full, .btn.full {
  display: flex;
  width: 100%;
}
.btn:hover{ background:#0b4da8; }
.dialog--bug {
  max-width: 32rem;
}

.dialog--bug .field + .field {
  margin-top: 0.75rem;
}

.bug-desc-preview {
  display: inline;
}

.bug-desc-full {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.bug-toggle {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  margin-right: 0.35rem;
}

.bug-toggle::before {
  content: '▶';
  display: inline-block;
  transform-origin: center;
}

.bug-toggle--open::before {
  transform: rotate(90deg);
}

.table--bugs th,
.table--bugs td {
  font-size: 0.85rem;
}

/* Bug reports – keep priority dropdown readable */
.table--bugs .form-select--compact {
  min-width: 7rem;   /* enough for “Medium” */
}

.form-select--compact {
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}
.select{
  width:100%; padding:.5rem; border-radius:8px; border:1px solid var(--line-2);
  background:#fff; color:var(--ink); font-weight:600;
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background-image: linear-gradient(45deg,transparent 50%,#8aa3c0 50%),
                    linear-gradient(135deg,#8aa3c0 50%,transparent 50%),
                    linear-gradient(to right,transparent,transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 2.5em;
  background-repeat:no-repeat;
}

/* Divider under the header */
.header__divider{
  height:1px; background: linear-gradient(to right, rgba(2,8,23,.12), rgba(2,8,23,.04));
}

/* Accessibility: keep visited links readable */
a:visited{ color: var(--bsa-blue); }

/* Responsive tweaks */
@media (max-width: 900px){
  .header__row{ flex-wrap: wrap; gap: 8px; }
  .header__left{ flex-wrap: wrap; }
  .menu{ position: static; border-top-width: 3px; margin-top: 6px; }
}

/* --- Debug "scream" blocks (always in CSS, never inline) --- */
.tt-scream{
  font: 14px/1.5 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  border: 2px solid #A61B1B;            /* accessible red */
  background: #FDECEC;                   /* pale red bg */
  color: #5B0E0E;                        /* dark text */
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.tt-scream__title{
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #A61B1B;
  letter-spacing: .02em;
}
.tt-scream__meta{
  font-size: 12px;
  color: #515354;                        /* Scouting Gray */
  margin: -2px 0 8px 0;
  word-break: break-all;
}
.tt-scream__msg{
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}
@media (prefers-color-scheme: dark){
  .tt-scream{
    background:#2a1111; border-color:#D66; color:#ffdede;
  }
  .tt-scream__title{ color:#ffb3b3; }
  .tt-scream__meta{ color:#9AB3D5; }
}
/* Bug 1 - pointer cursor on clickable table rows */
.tt-table tr[data-href] {
  cursor: pointer;
}

.tt-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:9999;}
.tt-overlay-bg{position:absolute;inset:0;}
.tt-overlay-box{position:relative;background:#fff;padding:1rem;border-radius:8px;max-width:90vw;max-height:80vh;overflow:auto;box-shadow:0 2px 8px rgba(0,0,0,.4);}
.tt-overlay-box pre{white-space:pre-wrap;font-family:monospace;font-size:.9rem;line-height:1.3;}
.tt-overlay-close{position:absolute;top:4px;right:8px;font-size:1.4rem;border:none;background:none;cursor:pointer;} 
/* example only – tweak however you like */
/* Path to Eagle row states */
.tt-table tbody tr.pte-row-red td {
  background: #fdecec;
  color: #7a1b1f;
}

.tt-table tbody tr.pte-row-yellow td {
  background: #fff7e6;
  color: #775a00;
}

/* ===== Header Logo ===== */
.brand-logo {
  height: 60px;          /* adjust if needed */
  width: auto;
  display: block;
}

.brand {
  padding: 0;            /* removes old text padding */
  display: flex;
  align-items: center;
}