:root {
  color-scheme: light;
  --navy: #253982;
  --ink: #17243a;
  --muted: #627084;
  --canvas: #f5f7fa;
  --border: #e0e5eb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.masthead {
  background: var(--navy);
  border-bottom: 4px solid #7da4ee;
  color: #fff;
}
.mast-inner { height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.team-brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.team-logo { display: block; width: 218px; height: auto; flex: none; }
.brand-divider { width: 1px; height: 50px; flex: none; margin: 0 17px; background: rgba(255,255,255,.32); }
.brand-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.brand-copy strong { font-size: 17.92px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-copy small { color: #c9d7f3; font-size: 12px; font-weight: 750; letter-spacing: 1.68px; white-space: nowrap; }
.season { flex: none; border: 1px solid #7389c1; border-radius: 999px; padding: 8px 13px; font-size: 13.6px; font-weight: 750; line-height: 1.2; text-decoration: none; white-space: nowrap; }
a.season:hover { background: rgba(255,255,255,.12); }
a.season:focus-visible, .team-brand:focus-visible { outline: 3px solid #a7c0ff; outline-offset: 4px; }

.main-content { padding-top: 48px; padding-bottom: 70px; }
.intro h1 { margin: 0; font-size: 33.6px; font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.intro p { margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.portal-card {
  display: flex;
  flex-direction: column;
  min-height: 166px;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(23,36,58,.035);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.portal-card.primary { border-color: var(--navy); background: var(--navy); color: #fff; }
.portal-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(23,36,58,.1); border-color: #a9b8da; }
.portal-card.primary:hover { border-color: var(--navy); }
.portal-card:focus-visible { outline: 3px solid #7da4ee; outline-offset: 4px; }
.portal-label { color: #69778e; font-size: 13.5px; font-weight: 700; }
.primary .portal-label { color: #dce5ff; }
.portal-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 11px; font-size: 30px; font-weight: 750; line-height: 1.1; letter-spacing: -.035em; }
.portal-title span { font-size: 29px; font-weight: 400; line-height: 1; transition: transform .18s ease; }
.portal-card:hover .portal-title span { transform: translateX(4px); }
.portal-description { margin-top: auto; padding-top: 12px; color: #627084; font-size: 13.5px; line-height: 1.45; }
.primary .portal-description { color: #e3e9fb; }

.subpage .intro { margin-bottom: 18px; }
.subpage-panel { max-width: 720px; padding: 25px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(23,36,58,.035); }
.subpage-panel p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.back-link { display: inline-block; margin-top: 20px; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-link:focus-visible { outline: 3px solid #7da4ee; outline-offset: 4px; }

.breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--navy); text-decoration: none; font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs a:focus-visible, .button-link:focus-visible, .item-link:focus-visible, .remove-item:focus-visible { outline: 3px solid #7da4ee; outline-offset: 3px; }
.coaches-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coaches-grid .portal-title { font-size: 25px; }
.coaches-grid .portal-title span { flex: none; }
.content-panel { max-width: 760px; margin-top: 25px; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(23,36,58,.035); }
.content-panel h2 { margin: 8px 0 10px; font-size: 24px; letter-spacing: -.025em; }
.content-panel p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.panel-kicker { color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.empty-panel { min-height: 230px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 22px; padding: 10px 16px; border: 0; border-radius: 9px; background: var(--navy); color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-link:hover { background: #1b2d72; }
.wish-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 14px; align-items: end; margin-top: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 13px; font-weight: 700; }
.form-field input { width: 100%; height: 43px; padding: 10px 12px; border: 1px solid #cbd4df; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; }
.form-field input:focus { outline: 3px solid #b8cdf8; border-color: var(--navy); }
.wish-form .button-link { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
.content-panel .form-message { min-height: 22px; margin-top: 12px; font-size: 13px; }
.wish-section { margin-top: 32px; }
.section-heading { display: flex; align-items: baseline; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.item-count { color: var(--muted); font-size: 13px; }
.storage-note { margin: 7px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.wish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wish-item, .wish-empty { margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 6px 22px rgba(23,36,58,.035); }
.wish-item { display: flex; flex-direction: column; min-height: 140px; }
.wish-item h3 { margin: 0 0 16px; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.item-link { color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.item-link:hover { text-decoration: underline; }
.remove-item { align-self: flex-start; margin-top: auto; padding: 12px 0 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.wish-empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

@media (max-width: 740px) {
  .mast-inner { height: 94px; }
  .team-logo { width: 170px; }
  .brand-divider { height: 42px; margin: 0 13px; }
  .brand-copy { gap: 5px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; letter-spacing: 1px; }
  .season { font-size: 11px; padding: 7px 10px; }
  .main-content { padding-top: 39px; }
  .intro h1 { font-size: 29px; }
  .portal-grid { grid-template-columns: 1fr; }
  .coaches-grid, .wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .mast-inner { height: 82px; gap: 10px; }
  .team-logo { width: 142px; }
  .brand-divider { height: 34px; margin: 0 10px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 7px; letter-spacing: .65px; }
  .season { display: none; }
  .intro h1 { font-size: 27px; }
  .intro p { font-size: 14px; }
  .portal-card { min-height: 150px; }
  .coaches-grid, .wish-grid, .wish-form { grid-template-columns: 1fr; }
  .content-panel { padding: 22px; }
  .wish-form .button-link { grid-column: 1; }
}
