/* =========================================================
   OttawaSoftball - main stylesheet
   To change the site colours, edit the values just below.
   ========================================================= */
:root {
  --navy: #0B2545;      /* main dark blue */
  --navy-2: #16365F;    /* slightly lighter navy */
  --navy-3: #071A33;    /* footer */
  --blue: #1D5FD1;      /* bright blue accent */
  --yellow: #F4C430;    /* softball yellow */
  --ink: #0B2545;       /* main text */
  --muted: #4A5A70;     /* grey text */
  --line: #D6E0EE;      /* borders */
  --pale: #EEF3FA;      /* light blue background */
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.big { font-size: 18px; }

h1, h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; margin: 0; line-height: 1; }
h2 { font-size: 48px; }
h3 { margin: 0; font-size: 18px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #FFD558; color: var(--navy); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #174FB0; color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-outline-light { border-color: #8FB0E3; color: var(--white); }
.btn-outline-light:hover { background: var(--navy-2); color: var(--white); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--pale); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
/* Logo sizes */
.logo-tile { display: inline-flex; align-items: center; justify-content: center; }
.logo-tile img { height: 98px; width: auto; }
.logo-tile.small img { height: 77px; }
.site-footer .logo-tile { align-self: flex-start; }
.sister-league { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 14px; }
.sister-league strong { color: var(--white); }
.brand-ball { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.brand-word { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 28px; letter-spacing: 0.5px; color: var(--white); }
.brand-word span { color: var(--yellow); }
.brand-word.small { font-size: 26px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 500; }
.main-nav a { color: #DCE6F5; text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--yellow); }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 24px 0 72px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text, .hero-photo { flex: 1 1 440px; min-width: 0; }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); }
.hero h1 { font-size: 76px; line-height: 0.95; }
.lead { margin: 24px 0 0; font-size: 19px; color: #DCE6F5; max-width: 520px; }
.hero-photo img { width: 100%; height: 440px; object-fit: cover; border-radius: 16px; }

/* ---------- Facts ---------- */
.facts { background: var(--blue); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.fact-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 48px; line-height: 1; }
.fact-label { font-size: 15px; color: #E3ECFA; }

/* ---------- Rainout bar ---------- */
.rainout { background: #FFF8E1; border-bottom: 1px solid #F0DFA6; }
.rainout-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 18px; padding-bottom: 18px; }
.rainout-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #6B4E00; }
.rainout-text { flex: 1 1 300px; font-size: 15px; color: #3D3420; }
.rainout a { font-weight: 600; color: #6B4E00; }

/* ---------- Account pitch ---------- */
.account { background: var(--pale); padding: 88px 0; }
.account-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.account-text, .feature-grid { flex: 1 1 420px; min-width: 0; }
.account-text p { margin: 12px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--white); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Champions ---------- */
.champions { padding: 88px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-head p { margin: 8px 0 0; }
.champ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.champ-grid figure { margin: 0; }
.champ-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; }
.champ-grid figcaption { margin-top: 12px; }
.champ-grid strong { display: block; font-size: 17px; }
.champ-grid span { font-size: 14px; color: var(--muted); }

/* ---------- Player Find + News ---------- */
.bottom-cards { padding: 0 0 88px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card-navy { background: var(--navy); color: var(--white); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.card-navy h2, .card-outline h2 { font-size: 36px; }
.card-navy p { margin: 0; font-size: 17px; color: #DCE6F5; }
.card-outline { border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.news-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid #E3EAF4; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item strong { font-size: 18px; }
.news-date { font-size: 13px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Coming soon page ---------- */
.coming-soon { padding: 120px 0; text-align: center; }
.coming-soon h1 { font-size: 64px; margin-bottom: 16px; }
.coming-soon .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #B9CBE6; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 32px; }
.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.footer-col.wide { flex-basis: 280px; }
.footer-col p { margin: 0; font-size: 15px; }
.footer-col strong { color: var(--white); font-size: 15px; }
.footer-col a { color: #B9CBE6; }
.footer-col a:hover { color: var(--yellow); }
.partners { display: flex; flex-wrap: wrap; gap: 10px; }
.partner { padding: 10px 14px; border: 1px solid #2A4670; border-radius: 8px; font-size: 14px; text-decoration: none; }
.footer-bottom { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #1B355A; font-size: 13px; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  .hero h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .hero-photo img { height: 280px; }
  .account, .champions { padding: 56px 0; }
  .header-row { justify-content: center; }
  .site-header .logo-tile img { height: 140px !important; }
  .main-nav { justify-content: center; }
}

/* =========================================================
   Schedule + Standings pages
   ========================================================= */
.page-head { background: var(--navy); color: var(--white); padding: 40px 0 44px; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head h1 { font-size: 56px; }
.page-head .eyebrow { margin-bottom: 10px; }

.picker { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 0 1 380px; }
.picker label { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #B9CBE6; }
.picker select, .filters select { min-height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid #B9CBE6; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); width: 100%; }

.page-body { padding: 40px 0 88px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.toolbar p { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 200px; }
.filters select { min-height: 44px; font-size: 15px; }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.data-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); background: var(--pale); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #E3EAF4; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #F7FAFE; }
.data-table .num { text-align: right; }
.data-table .nowrap { white-space: nowrap; }
.data-table .winner { font-weight: 700; }
.data-table .mine { background: #FFF8E1; }
.data-table .score { font-weight: 700; }
.data-table .vs { color: var(--muted); }
.data-table .strong { font-weight: 700; }
.data-table .team-cell { font-weight: 600; }
.standings { min-width: 600px; }
.sort-link { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.sort-link:hover { color: var(--blue); }
.sort-link.active { color: var(--navy); border-bottom: 2px solid var(--yellow); }
.small-note { font-size: 14px; margin-top: 12px; }

.notice { padding: 16px 18px; border-radius: 10px; background: var(--pale); border: 1px solid var(--line); }
.notice-error { background: #FDECEC; border-color: #F3B8B8; color: #7A1C1C; }

.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 28px; }
.dir-group { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.dir-group h2 { font-size: 28px; margin-bottom: 12px; }
.dir-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dir-group a { display: block; padding: 10px 0; border-top: 1px solid #E3EAF4; text-decoration: none; font-weight: 500; }
.dir-group li:first-child a { border-top: 0; }

@media (max-width: 700px) {
  .page-head h1 { font-size: 40px; }
  .picker { flex-basis: 100%; }
  .filters label { min-width: 0; flex: 1 1 140px; }
}

/* Clickable team names + team schedule banner */
.team-link { color: inherit; text-decoration: none; border-bottom: 1px dotted #8FA3BF; }
.team-link:hover { color: var(--blue); border-bottom-color: var(--blue); }
.team-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; margin-bottom: 20px; border-radius: 12px; background: #FFF8E1; border: 1px solid #F0DFA6; }
.team-banner h2 { font-size: 36px; margin: 2px 0 4px; }
.team-banner-label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #6B4E00; }

/* =========================================================
   Player accounts: forms, dashboard, account page
   ========================================================= */
button.btn { font-family: inherit; cursor: pointer; }
.inline-form { display: inline-flex; margin: 0; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #B42318; color: var(--white); }
.btn-danger:hover { background: #8F1C13; color: var(--white); }

.auth-page { background: var(--pale); padding: 64px 16px 88px; }
.auth-card { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.auth-card.narrow { max-width: 460px; }
.auth-card h1 { font-size: 44px; margin-bottom: 8px; }
.auth-card > .muted { margin: 0 0 24px; }
.auth-switch { text-align: center; margin: 24px 0 0; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field input { min-height: 48px; padding: 0 14px; border: 1px solid #B9CBE6; border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); width: 100%; }
.field input:focus, .picker select:focus, .filters select:focus { outline: 3px solid rgba(29, 95, 209, 0.25); border-color: var(--blue); }
.optional, .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.hint-link { font-size: 14px; align-self: flex-start; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }

.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-error { background: #FDECEC; border: 1px solid #F3B8B8; color: #7A1C1C; }
.alert-success { background: #E7F6EC; border: 1px solid #A9DDBA; color: #14532D; }
.alert-info { background: var(--pale); border: 1px solid var(--line); color: var(--ink); }

.role-badge { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.dash-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.dash-card h2 { font-family: Inter, system-ui, sans-serif; font-size: 22px; font-weight: 700; text-transform: none; }
.dash-wide { grid-column: 1 / -1; }
.dash-admin { border: 2px solid var(--yellow); }
.empty-state { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.empty-state svg { flex-shrink: 0; color: var(--blue); }
.empty-state p { margin: 0; }
.empty-state strong { color: var(--ink); }
.link-list { display: flex; flex-direction: column; width: 100%; }
.link-list a { padding: 12px 0; border-top: 1px solid #E3EAF4; font-weight: 600; text-decoration: none; }
.link-list a:first-child { border-top: 0; }
.mini-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.mini-details dt { color: var(--muted); }
.mini-details dd { margin: 0; word-break: break-word; }

.account-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.account-wrap .dash-card { align-items: stretch; }
.account-wrap .dash-card .btn { align-self: flex-start; }
.danger-zone { border-color: #F3B8B8; }

.prose { max-width: 760px; font-size: 17px; line-height: 1.65; }
.prose h2 { font-family: Inter, system-ui, sans-serif; text-transform: none; font-size: 22px; font-weight: 700; margin: 32px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 700px) {
  .auth-card { padding: 24px; }
  .auth-card h1 { font-size: 36px; }
}

/* Season profile + waiver */
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; width: 100%; }
.rank-grid input { min-height: 46px; padding: 0 12px; border: 1px solid #B9CBE6; border-radius: 8px; font: inherit; font-size: 16px; width: 100%; color: var(--ink); background: var(--white); }
.rank-grid input:focus { outline: 3px solid rgba(29, 95, 209, 0.25); border-color: var(--blue); }
.rank-head { font-weight: 600; font-size: 14px; color: var(--muted); }
.waiver-box { max-height: 340px; overflow-y: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #FAFCFF; font-size: 15px; line-height: 1.6; width: 100%; }
.waiver-box h3 { font-size: 16px; margin: 16px 0 4px; }
.waiver-box h3:first-of-type { margin-top: 4px; }
.waiver-box p { margin: 0 0 8px; }
.waiver-draft { background: #FFF8E1; border: 1px solid #F0DFA6; border-radius: 8px; padding: 10px 12px; color: #3D3420; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.status-pill.ok { background: #E7F6EC; color: #14532D; }
.status-pill.missing { background: #FDECEC; color: #7A1C1C; }
.select-input { min-height: 48px; padding: 0 14px; border: 1px solid #B9CBE6; border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); max-width: 320px; width: 100%; }
.select-input:focus { outline: 3px solid rgba(29, 95, 209, 0.25); border-color: var(--blue); }

/* =========================================================
   Teams: admin, captain hub, join/invite, dashboard teams
   ========================================================= */
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-row-tight { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-danger { background: none; border: 0; padding: 6px 0; color: #B42318; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.link-danger:hover { color: #8F1C13; }
.text-warn { color: #B42318; }
.admin-stack { display: flex; flex-direction: column; gap: 24px; }
.admin-stack .dash-card { align-items: stretch; }
.admin-stack .dash-card > .btn, .admin-stack form > .btn { align-self: flex-start; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; }
.dash-card .table-box { width: 100%; }
.eyebrow-dark { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }
.stack-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
textarea { min-height: 90px; padding: 12px 14px; border: 1px solid #B9CBE6; border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); width: 100%; resize: vertical; }
textarea:focus { outline: 3px solid rgba(29, 95, 209, 0.25); border-color: var(--blue); }

.team-admin-list { display: flex; flex-direction: column; gap: 10px; }
.team-admin { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.team-admin[open] { border-color: var(--blue); }
.team-admin summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.team-admin summary::-webkit-details-marker { display: none; }
.team-admin-name { font-weight: 700; font-size: 17px; }
.team-admin-meta { flex: 1 1 320px; color: var(--muted); font-size: 14px; }
.team-admin-edit { color: var(--blue); font-weight: 600; font-size: 14px; }
.team-admin-body { padding: 4px 18px 18px; border-top: 1px solid #E3EAF4; display: flex; flex-direction: column; gap: 12px; }
.team-admin-body .form { padding-top: 14px; }
.delete-team { align-self: flex-end; }

.copy-row { display: flex; gap: 8px; width: 100%; }
.copy-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #B9CBE6; border-radius: 8px; font: inherit; font-size: 14px; background: #FAFCFF; color: var(--ink); }
.invite-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #E3EAF4; }
.invite-row:first-child { border-top: 0; }

.invite-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; margin-bottom: 20px; border-radius: 12px; background: #FFF8E1; border: 1px solid #F0DFA6; }
.invite-banner p { margin: 4px 0 0; }

.my-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; width: 100%; }
.my-team-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.my-team-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.my-team-head h3 { font-size: 20px; margin: 0 0 2px; }
.role-badge.small { min-height: 28px; padding: 0 10px; font-size: 12px; }
.next-game { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--pale); }
.next-game strong { font-size: 17px; }
.my-team-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; font-weight: 600; }
.my-team-actions { margin-top: auto; }

.roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.roster-grid .my-team { border: 2px solid var(--yellow); }
.roster-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.roster-list li { padding: 8px 0; border-top: 1px solid #E3EAF4; }
.roster-list li:first-child { border-top: 0; }

/* =========================================================
   Header on computer screens (wider than 900px)
   Logo on the left; account buttons top right with the menu
   underneath. Phones and small tablets keep their own layout.
   ========================================================= */
@media (min-width: 901px) {
  .header-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "brand actions" "brand nav";
    column-gap: 32px;
    row-gap: 14px;
    align-items: start;
  }
  .header-row > .brand { grid-area: brand; align-self: center; }
  .header-row > .header-actions { grid-area: actions; justify-self: end; justify-content: flex-end; align-items: center; }
  .header-row > .main-nav { grid-area: nav; justify-self: end; justify-content: flex-end; }
  /* Pages with a role badge (like the dashboard): keep the badge next to the heading */
  .page-head-row:has(> .role-badge) { justify-content: flex-start; align-items: center; gap: 24px; }
}
