/* Default site theme (20261116b): Michigan blue #00274C / maize #FFCB05, dark only.
   Applies to every visitor. U-M-only award data gating is unchanged. */

@font-face {
  font-family: "Fraunces TP";
  src: url("fonts/fraunces-um.woff2") format("woff2"),
       url("fonts/fraunces-um.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces TP";
  src: url("fonts/fraunces-um-italic.woff2") format("woff2"),
       url("fonts/fraunces-um-italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---- Palette (single dark theme) ---- */
html,
html[data-scheme="dark"],
html[data-scheme="light"] {
  color-scheme: dark;
  --um-blue: #00274C;
  --um-maize: #FFCB05;
  --um-cream: #FFF8E7;
  --um-navy: #0A1624;
  --ink: #E8EEF4;
  --ink-soft: #B8C5D6;
  --paper: #0A1624;
  --card: #122033;
  --line: #2A3A4D;
  --focus: #FFCB05;
  --accent: #FFCB05;
  --btn-bg: #FFCB05;
  --btn-fg: #00274C;
  --header-bg: rgba(0, 39, 76, 0.94);
  --soft-bg: #16304A;
  --soft-border: #2A4A6A;
  --soft-text: #E8EEF4;
  --chip-neutral-bg: #16304A;
  --chip-neutral-2: #2A3A4D;
  --progress-track: #2A3A4D;
  --tips-bg: #122033;
  --tips-border: #2A3A4D;
  --pill-bg: #16304A;
  --pill-text: #E8EEF4;
  --hover-line: #2A4A6A;
  --input-bg: #0A1624;
  --page-band: #0C1C30;
  --glow: #0C1C30;
  --edge-hint: transparent;
  --edge-hint-2: transparent;
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}


/* Header stays navy so the approved cream + maize lockup keeps contrast. */
html .site-header {
  --ink: #E8EEF4;
  --ink-soft: #B8C5D6;
  --line: rgba(255, 203, 5, 0.4);
  --header-bg: rgba(0, 39, 76, 0.96);
  --card: #12263C;
  --input-bg: #0C1A2C;
  --btn-bg: #FFCB05;
  --btn-fg: #00274C;
  --soft-bg: #16304A;
  --soft-border: #2A4A6A;
  --soft-text: #E8EEF4;
  --focus: #FFCB05;
  --accent: #FFCB05;
  --pill-bg: #16304A;
  --pill-text: #E8EEF4;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

html a { color: var(--focus); }
html .site-header a { color: var(--ink-soft); }
html .site-header a:hover { color: var(--um-cream, #FFF8E7); }

/* Lockup: hide default wordmark images, show blue-maize icon + Fraunces wordmark */
.brand-mark { display: none !important; }
.brand-um {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-um-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex: 0 0 auto;
}
.brand-um-word {
  font-family: "Fraunces TP", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 36;
  line-height: 1;
  font-style: normal;
}
.brand-um-word .t,
.brand-um-word .p { color: #FFCB05; }

html .site-header nav { gap: 6px 10px; }

/* Home desktop header: match the provided design. Mobile keeps the wrap/scroll fix. */
@media (min-width: 801px) {
  body.page-home .hist-nav,
  body.page-home .chrome-tools,
  body.page-home .browse-banner,
  body.page-home .header-note-row,
  body.page-home .page-band { display: none !important; }
  body.page-home .site-header .wrap.header-main {
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px 20px;
    min-height: 56px;
    padding: 8px 0;
  }
  body.page-home .brand { order: 1; flex: 0 0 auto; }
  body.page-home .site-header .wrap.header-main nav {
    order: 2;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px 28px;
    min-width: 0;
    overflow: visible;
  }
  body.page-home .site-header nav a {
    color: #E8EEF4;
    font-size: 0.98rem;
    padding: 6px 2px;
  }
  body.page-home .site-header nav a[aria-current="page"] {
    padding: 6px 16px;
  }
  body.page-home .header-account {
    order: 3;
    margin-left: 0;
  }
  body.page-home .header-login-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
    min-height: 38px;
  }
}

html .site-header .brand-um { margin-right: 2px; }

/* Narrow phones: keep the nav on one row and scroll it, so labels like Settings
   are not clipped mid-word. No other layout changes. */
@media (max-width: 800px) {
  html .site-header,
  html .site-header .wrap.header-main {
    min-width: 0;
    max-width: 100%;
  }
  html .site-header nav {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 4px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }
  html .site-header nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  html .site-header nav a[aria-current="page"] {
    padding: 4px 8px;
  }
}
/* Active nav as a maize pill; login / account button maize */
html .site-header nav a[aria-current="page"] {
  color: #00274C;
  background: #FFCB05;
  border-bottom: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}
html .site-header .header-login-btn,
html .site-header .header-account .btn {
  background: #FFCB05;
  border-color: #FFCB05;
  color: #00274C;
  border-radius: 999px;
}
html .site-header .mode-toggle {
  border-color: #2A4A6A;
  background: #0C1A2C;
}
html .site-header .mode-toggle button.is-active {
  background: #FFCB05;
  color: #00274C;
}

/* Buttons, links, focus — color only on inner pages */
html .btn, html button.btn {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}
html .btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
html .btn.soft {
  background: var(--soft-bg);
  border-color: var(--soft-border);
  color: var(--soft-text);
}
html a:focus-visible,
html button:focus-visible,
html select:focus-visible,
html input:focus-visible,
html textarea:focus-visible {
  outline-color: var(--focus);
}

/* ---- Home hero ---- */
.hero-um {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #071018;
  color: #E8EEF4;
  min-height: 34rem;
}
.hero-um-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 10rem; /* navy band for the three cards, tall enough for the full painting */
  width: 70%;
  pointer-events: none;
}
.hero-um-art picture,
.hero-um-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}
.hero-um-art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, #071018 0%, #071018 58%, rgba(7, 16, 24, 0.45) 78%, transparent 100%);
  pointer-events: none;
}
.hero-um-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 16%;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 16, 24, 0.4) 50%, #071018 100%);
  pointer-events: none;
}

.hero-um-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 34rem;
  padding: 2.8rem 0 2rem;
}
@media (min-width: 801px) {
  body.page-home .hero-um,
  body.page-home .hero-um-inner {
    min-height: calc(100vh - 4.5rem);
  }
  body.page-home .hero-um-inner {
    padding: 3.4rem 0 2.4rem;
    width: min(1080px, calc(100% - 72px));
  }
}
.hero-um-copy {
  max-width: 40rem;
  padding-bottom: 1.2rem;
}
.hero-um-title {
  font-family: "Fraunces TP", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  /* 2026-11-23j: slightly smaller clamp so the longer owner headline stays clear of the tower. */
  font-size: clamp(2.45rem, 5.8vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 72;
  color: #F7F8FA;
  margin: 0 0 1.15rem;
  max-width: min(38rem, 56vw);
  text-wrap: balance;
}
.hero-um-lede {
  margin: 0 0 1.6rem;
  max-width: min(34rem, 46vw);
  font-size: 1.08rem;
  line-height: 1.5;
  color: #D5DCE6;
  text-wrap: pretty;
}
.hero-um-cta {
  border-radius: 12px;
  background: #FFCB05 !important;
  border-color: #FFCB05 !important;
  color: #00274C !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 28px;
  min-height: 48px;
}

.hero-um-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: auto;
}
.hero-um-card {
  background: rgba(5, 16, 32, 0.35);
  border: 1.5px solid #6AA3C8;
  border-radius: 18px;
  padding: 26px 24px 24px;
  color: #E8EEF4;
}
.hero-um-card .um-ico {
  width: 34px;
  height: 34px;
  color: #FFCB05;
  margin-bottom: 14px;
}
.hero-um-card .um-ico svg {
  width: 34px;
  height: 34px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-um-card h3 {
  font-family: "Fraunces TP", Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 8px;
  color: #F7F8FA;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 28;
}
.hero-um-card p {
  margin: 0;
  color: #E4EAF0;
  font-size: 1rem;
  line-height: 1.45;
}

/* Below-hero home sections keep theme colors; stay readable on the navy/light paper */
html .home-after-hero,
html .mpowered {
  position: relative;
  z-index: 1;
}

/* 20261123k: compact "What each tab does" guide */
.home-tab-guide-section {
  position: relative;
  z-index: 1;
}
.home-tab-guide {
  margin-top: 0.35rem;
  padding: 1rem 1.15rem 0.55rem;
  border-radius: 18px;
}
.home-tab-guide h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink, #00274C);
}
.home-tab-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-tab-guide-list li + li .home-tab-guide-link {
  border-top: 1px solid color-mix(in srgb, var(--ink, #00274C) 12%, transparent);
}
.home-tab-guide-link {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.62rem 0.1rem;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}
.home-tab-guide-link:hover,
.home-tab-guide-link:focus-visible {
  background: color-mix(in srgb, #FFCB05 14%, transparent);
  outline: none;
}
.home-tab-guide-ico {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  margin-top: 0.12rem;
  color: #FFCB05;
}
.home-tab-guide-ico svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-tab-guide-text {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink, #00274C);
}
.home-tab-guide-text strong {
  font-weight: 700;
}
html[data-scheme="dark"] .home-tab-guide h2,
html[data-color-mode="dark"] .home-tab-guide h2,
html[data-scheme="dark"] .home-tab-guide-text,
html[data-color-mode="dark"] .home-tab-guide-text {
  color: #F7F8FA;
}
html[data-scheme="dark"] .home-tab-guide-list li + li .home-tab-guide-link,
html[data-color-mode="dark"] .home-tab-guide-list li + li .home-tab-guide-link {
  border-top-color: rgba(255, 255, 255, 0.12);
}
@media (max-width: 640px) {
  .home-tab-guide {
    padding: 0.9rem 0.95rem 0.4rem;
  }
  .home-tab-guide-text {
    font-size: 0.95rem;
  }
}

.match-hs-filter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.match-hs-filter input {
  min-width: 10rem;
  max-width: 16rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--ink, #00274C) 22%, transparent);
  font: inherit;
  font-size: 0.92rem;
}
.load-more-row {
  margin: 12px 0 8px;
  text-align: center;
}


@media (max-width: 800px) {
  /* 20261117a: put the headline, lede, and Browse matches button ON the
     Burton Tower painting (same overlay idea as desktop). The stacked
     "image on top, text in a navy block below" layout left a large empty
     gap on phones. What's new and the Match / Prepare / Apply cards stay
     in normal flow under the image. Grid + display:contents lets the
     painting's height follow the text, so no leftover empty band. */
  html .hero-um,
  body.page-home .hero-um,
  body.page-home section.hero.hero-um {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    background: #071018;
    padding: 0 0 1.4rem !important;
  }
  html .hero-um-inner,
  body.page-home .hero-um-inner,
  body.page-home .wrap.hero-um-inner {
    display: contents;
  }
  html .hero-um-art,
  body.page-home .hero-um-art {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-self: stretch;
    justify-self: stretch;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }
  html .hero-um-art picture,
  html .hero-um-art img,
  body.page-home .hero-um-art picture,
  body.page-home .hero-um-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: right center; /* keep the tower in view */
  }
  html .hero-um-art::before,
  body.page-home .hero-um-art::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Dark scrim so white type stays readable over the painting. */
    background:
      linear-gradient(90deg, rgba(7, 16, 24, 0.78) 0%, rgba(7, 16, 24, 0.52) 36%, rgba(7, 16, 24, 0.22) 66%, rgba(7, 16, 24, 0.1) 100%),
      linear-gradient(180deg, rgba(7, 16, 24, 0.18) 0%, rgba(7, 16, 24, 0.12) 48%, rgba(7, 16, 24, 0.62) 100%);
  }
  html .hero-um-art::after,
  body.page-home .hero-um-art::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 22%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, #071018 100%);
  }
  html .hero-um-copy,
  body.page-home .hero-um-copy {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(1080px, calc(100% - 28px));
    max-width: none;
    min-height: 0;
    margin: 0 auto;
    padding: 1.7rem 0 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: none;
  }
  /* 2026-11-23j: keep the long owner first line from running edge-to-edge over the tower. */
  .hero-um-title { max-width: min(22rem, 92%); font-size: clamp(1.75rem, 7.4vw, 2.4rem); text-wrap: balance; }
  .hero-um-lede { max-width: min(21rem, 88%); text-wrap: pretty; }
  html .hero-um-cta,
  body.page-home a.btn.hero-um-cta,
  body.page-home .hero-um-cta {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
  }
  html .hero-um .home-updates,
  html .hero-um .hero-um-cards,
  html .hero-um .home-assist-banner,
  body.page-home .home-updates,
  body.page-home .hero-um-cards,
  body.page-home .home-assist-banner {
    box-sizing: border-box;
    width: min(1080px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
  }
  .hero-um-cards { grid-template-columns: 1fr; }
}

@media (min-width: 801px) and (max-width: 1040px) {
  .hero-um-copy { max-width: 36rem; }
}

/* ------------------------------------------------------------------
   Desktop Home: exact replica of the provided 1536×1024 design,
   scaled with vw so 1024×683 matches the image. The painted scene is
   the full-bleed hero background at native scale (not cropped or
   shrunk). HTML text, button, and cards sit directly on the image's
   navy sky — no dark panel, band, gradient, or text-shadow block.
   ------------------------------------------------------------------ */
@media (min-width: 801px) {
  body.page-home {
    background: #01142C;
  }
  /* 20261116e3: the assistant launcher is no longer hidden on desktop Home (was display:none !important). */
  body.page-home .site-header {
    background: #01142C !important;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: calc(1 / 1536 * 100vw) solid #D49E0C;
    height: calc(84 / 1536 * 100vw);
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body.page-home .site-header .wrap.header-main {
    display: block;
    position: relative;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
    box-sizing: border-box;
  }
  body.page-home .brand {
    position: absolute;
    left: calc(70 / 1536 * 100vw);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    gap: 0;
  }
  body.page-home .brand-um {
    gap: calc(16 / 1536 * 100vw);
  }
  body.page-home .brand-um-icon {
    width: calc(52 / 1536 * 100vw);
    height: calc(52 / 1536 * 100vw);
    border-radius: calc(10 / 1536 * 100vw);
  }
  body.page-home .brand-um-word {
    font-size: calc(32 / 1536 * 100vw);
    font-weight: 650;
    letter-spacing: -0.02em;
    font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 36;
    line-height: 1;
  }
  body.page-home .brand-um-word .t,
  body.page-home .brand-um-word .p { color: #FEC31F; }

  body.page-home .site-header nav {
    position: absolute;
    left: calc(448 / 1536 * 100vw);
    top: 0;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    flex: none;
    width: auto;
  }
  body.page-home .site-header nav a {
    color: #F2F4F7;
    font-size: calc(20 / 1536 * 100vw);
    font-weight: 500;
    padding: 0;
    margin: 0;
    line-height: 1;
    border: 0;
    border-bottom: none !important;
    white-space: nowrap;
    background: none;
  }
  body.page-home .site-header nav a[aria-current="page"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(101 / 1536 * 100vw);
    height: calc(44 / 1536 * 100vw);
    padding: 0;
    margin-right: calc(41 / 1536 * 100vw);
    border: 0 !important;
    border-bottom: none !important;
    border-radius: 999px;
    background: #FEC31F;
    color: #01142C;
    font-weight: 700;
    font-size: calc(20 / 1536 * 100vw);
  }
  /* Pin each nav label to the design's x positions (relative to the nav origin at x=448) */
  body.page-home .site-header nav a:nth-child(1) { /* Home pill */
    position: relative;
    margin-right: 0;
  }
  body.page-home .site-header nav a:nth-child(2) { /* Matches */
    position: absolute;
    left: calc((589 - 448) / 1536 * 100vw);
    margin: 0;
  }
  body.page-home .site-header nav a:nth-child(3) { /* Apply kit */
    position: absolute;
    left: calc((731 - 448) / 1536 * 100vw);
    margin: 0;
  }
  body.page-home .site-header nav a:nth-child(4) { /* Submit */
    position: absolute;
    left: calc((878 - 448) / 1536 * 100vw);
    margin: 0;
  }
  body.page-home .site-header nav a:nth-child(5) { /* Tracker */
    position: absolute;
    left: calc((1006 - 448) / 1536 * 100vw);
    margin: 0;
  }
  body.page-home .site-header nav a:nth-child(6) { /* Settings */
    position: absolute;
    left: calc((1140 - 448) / 1536 * 100vw);
    margin: 0;
  }

  body.page-home .header-account {
    position: absolute;
    right: calc(58 / 1536 * 100vw);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2;
  }
  body.page-home .header-login-btn,
  body.page-home .header-login-btn.btn {
    width: auto;
    min-width: calc(197 / 1536 * 100vw);
    max-width: min(22rem, 30vw);
    height: auto;
    min-height: calc(51 / 1536 * 100vw);
    padding: 0.4em 1em;
    border: none !important;
    border-radius: 999px;
    background: #FEC31F !important;
    color: #01142C !important;
    font-size: calc(20 / 1536 * 100vw);
    font-weight: 700;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: break-word;
    box-shadow: none;
  }

  body.page-home .hero-um,
  body.page-home section.hero.hero-um {
    position: relative;
    width: 100%;
    height: calc(940 / 1536 * 100vw);
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    background: none;
  }
  body.page-home .hero-um-art {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 0;
  }
  body.page-home .hero-um-art::before,
  body.page-home .hero-um-art::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }
  body.page-home .hero-um-art picture,
  body.page-home .hero-um-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    object-position: center;
  }
  body.page-home .hero-um-inner,
  body.page-home .wrap.hero-um-inner {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    z-index: 1;
    background: none;
    box-shadow: none;
  }
  body.page-home .hero-um-copy {
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    max-width: none;
    width: auto;
    padding: 0;
    margin: 0;
    background: none !important;
    box-shadow: none !important;
  }
  body.page-home .hero-um-title {
    font-family: "Fraunces TP", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 900;
    /* 2026-11-23j: slightly smaller cap than 80/1536 vw, plus a max-width that
       keeps “Everything you need to apply,” clear of the clock tower. */
    font-size: clamp(2.5rem, 4.7vw, 4.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    width: auto;
    max-width: min(52rem, 60vw);
    text-wrap: balance;
    background: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #FFFFFF;
    position: absolute;
    left: calc(96 / 1536 * 100vw);
    top: calc(110 / 940 * 100%);
  }
  body.page-home .hero-um-lede {
    position: absolute;
    left: calc(97 / 1536 * 100vw);
    top: calc((430 - 84) / 940 * 100%);
    margin: 0;
    max-width: min(36rem, 45vw);
    text-wrap: pretty;
    font-family: var(--sans);
    font-size: calc(24 / 1536 * 100vw);
    font-weight: 400;
    line-height: 1.46;
    letter-spacing: 0;
    color: #C5CDD8;
    background: none !important;
    text-shadow: none !important;
  }
  body.page-home .hero-um-cta,
  body.page-home a.btn.hero-um-cta {
    position: absolute;
    left: calc(96 / 1536 * 100vw);
    top: calc((548 - 84) / 940 * 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: calc(292 / 1536 * 100vw);
    height: calc(70 / 1536 * 100vw);
    min-height: 0;
    padding: 0;
    border: none !important;
    border-radius: calc(16 / 1536 * 100vw);
    background: #FEC31F !important;
    color: #01142C !important;
    font-family: var(--sans);
    font-size: calc(24 / 1536 * 100vw);
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    text-shadow: none;
  }

  body.page-home .hero-um-cards {
    display: block;
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    background: none;
  }
  body.page-home .hero-um-card {
    position: absolute;
    top: calc((704 - 84) / 940 * 100%);
    height: calc(250 / 1536 * 100vw);
    box-sizing: border-box;
    margin: 0;
    padding: calc(30 / 1536 * 100vw) calc(46 / 1536 * 100vw) calc(24 / 1536 * 100vw);
    background: transparent !important;
    border: calc(2 / 1536 * 100vw) solid #6AA3C8;
    border-radius: calc(24 / 1536 * 100vw);
    box-shadow: none !important;
    color: #F7F8FA;
  }
  body.page-home .hero-um-card:nth-child(1) {
    left: calc(81 / 1536 * 100vw);
    width: calc(443 / 1536 * 100vw);
  }
  body.page-home .hero-um-card:nth-child(2) {
    left: calc(551 / 1536 * 100vw);
    width: calc(434 / 1536 * 100vw);
  }
  body.page-home .hero-um-card:nth-child(3) {
    left: calc(1011 / 1536 * 100vw);
    width: calc(442 / 1536 * 100vw);
  }
  body.page-home .hero-um-card .um-ico {
    width: calc(50 / 1536 * 100vw);
    height: calc(50 / 1536 * 100vw);
    margin: 0 0 calc(21 / 1536 * 100vw);
    color: #FEC31F;
  }
  body.page-home .hero-um-card .um-ico svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.page-home .hero-um-card h3 {
    font-family: "Fraunces TP", Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 650;
    font-size: calc(42 / 1536 * 100vw);
    margin: 0 0 calc(10 / 1536 * 100vw);
    color: #FFFFFF;
    letter-spacing: -0.02em;
    font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 36;
    background: none;
    text-shadow: none;
  }
  body.page-home .hero-um-card p {
    margin: 0;
    color: #E6EBF1;
    font-family: var(--sans);
    font-size: calc(22 / 1536 * 100vw);
    font-weight: 400;
    line-height: 1.4;
    background: none;
    text-shadow: none;
  }
}

@media (max-width: 800px) {
  html .site-header nav,
  html .site-header .wrap.header-main nav {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: wrap !important;
  }
}

/* ------------------------------------------------------------------
   Home "What's new" box (20261116f). Content: data/updates.json,
   rendered by js/home-updates.js. Mobile/tablet: a compact card between
   the hero text and the Match / Prepare / Apply cards. Desktop Home: one
   slim strip in the gap just above the three cards (vw-scaled like the
   rest of the replica); "What's new" opens the details over the cards.
   ------------------------------------------------------------------ */
.home-updates[hidden], .home-updates .hu-panel[hidden] { display: none !important; }
.home-updates {
  position: relative;
  margin: 0 0 1rem;
  padding: 12px 14px 10px;
  border: 1px solid rgba(106, 163, 200, 0.55);
  border-left: 3px solid #FFCB05;
  border-radius: 14px;
  background: rgba(1, 20, 44, 0.82);
  color: #E4EAF0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.home-updates .hu-head { display: flex; align-items: center; gap: 8px; flex: none; }
.home-updates .hu-badge {
  display: inline-block; flex: none; padding: 2px 8px; border-radius: 999px;
  background: #FFCB05; color: #00274C; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5;
}
.home-updates .hu-title { margin: 0; font-family: var(--sans, inherit); font-size: 0.95rem; font-weight: 700; color: #F7F8FA; letter-spacing: 0; line-height: 1.3; }
.home-updates .hu-sep, .home-updates .hu-date { color: #C5CDD8; font-weight: 500; }
.home-updates .hu-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; }
.home-updates .hu-list li { position: relative; padding-left: 14px; color: #E4EAF0; }
.home-updates .hu-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: #FFCB05; }
.home-updates .hu-more {
  appearance: none; background: none; border: 0; padding: 6px 0 2px; margin: 0; min-height: 32px; cursor: pointer;
  font: inherit; font-weight: 700; color: #FFCB05; white-space: nowrap;
}
.home-updates .hu-more::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg); transition: transform .15s ease; }
.home-updates.is-open .hu-more::after { transform: translateY(0.05em) rotate(-135deg); }
.home-updates .hu-more:hover, .home-updates .hu-older summary:hover { text-decoration: underline; }
.home-updates .hu-more:focus-visible, .home-updates .hu-older summary:focus-visible { outline: 2px solid #FFCB05; outline-offset: 2px; border-radius: 4px; }
.home-updates .hu-panel { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(106, 163, 200, 0.35); }
.home-updates .hu-detail, .home-updates .hu-older-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.home-updates .hu-detail strong, .home-updates .hu-older-list strong { color: #F7F8FA; }
.home-updates .hu-soon { margin: 8px 0 0; color: #C5CDD8; }
.home-updates .hu-soon strong { color: #FFCB05; }
.home-updates .hu-older { margin-top: 8px; }
.home-updates .hu-older summary { cursor: pointer; color: #FFCB05; font-weight: 700; min-height: 28px; display: list-item; }
.home-updates .hu-older-list { margin-top: 6px; color: #C5CDD8; }
.home-updates .hu-older-date { display: inline-block; min-width: 6.2em; margin-right: 6px; color: #8FA3B8; font-size: 0.9em; }

@media (min-width: 801px) {
  body.page-home .home-updates {
    position: absolute;
    z-index: 3;
    left: calc(81 / 1536 * 100vw);
    width: calc(1372 / 1536 * 100vw);
    top: calc(548 / 940 * 100%);
    box-sizing: border-box;
    margin: 0;
    display: flex;
    align-items: center;
    gap: calc(18 / 1536 * 100vw);
    padding: calc(9 / 1536 * 100vw) calc(20 / 1536 * 100vw);
    border-radius: calc(16 / 1536 * 100vw);
    font-size: max(12px, calc(17 / 1536 * 100vw));
    line-height: 1.3;
  }
  body.page-home .home-updates .hu-title { font-size: 1em; white-space: nowrap; }
  body.page-home .home-updates .hu-badge { font-size: 0.72em; }
  body.page-home .home-updates .hu-list { display: flex; flex-wrap: wrap; gap: 2px calc(20 / 1536 * 100vw); margin: 0; min-width: 0; }
  body.page-home .home-updates .hu-list li { white-space: nowrap; padding-left: 12px; }
  body.page-home .home-updates .hu-list li::before { top: 0.5em; }
  body.page-home .home-updates .hu-more { margin-left: auto; padding: 0; min-height: 28px; flex: none; }
  body.page-home .home-updates .hu-panel {
    position: absolute; left: -1px; right: -1px; top: calc(100% + 6px);
    margin: 0; padding: calc(14 / 1536 * 100vw) calc(22 / 1536 * 100vw);
    max-height: calc(300 / 1536 * 100vw); overflow: auto;
    background: #01142C; border: 1px solid rgba(106, 163, 200, 0.7); border-left: 3px solid #FFCB05;
    border-radius: calc(16 / 1536 * 100vw); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}
@media (min-width: 801px) and (max-width: 1180px) {
  /* Narrow desktop: keep the strip on one line; the 4th item is still listed under "What's new". */
  body.page-home .home-updates .hu-list li:nth-child(n+4) { display: none; }
}


/* 2026-11-22h: persistent home assistant banner (directly under the hero, both modes) */
.home-assist-banner {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px 0 18px;
  background: #01142C;
}
.home-assist-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  border: 1px solid rgba(106, 163, 200, 0.55);
  border-radius: 16px;
  background: rgba(7, 16, 24, 0.55);
  color: #F7F8FA;
}
.home-assist-banner-copy {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #F7F8FA;
}
.home-assist-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 18rem;
}
.home-assist-banner .btn {
  min-height: 44px;
  padding: 10px 16px;
  flex: 0 0 auto;
}
.home-assist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.home-assist-chip {
  appearance: none;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 203, 5, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: #F7F8FA;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
}
.home-assist-chip:hover,
.home-assist-chip:focus-visible {
  background: rgba(255, 203, 5, 0.16);
  border-color: #FFCB05;
  outline: none;
}
.home-assist-chip:focus-visible {
  outline: 2px solid #FFCB05;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .home-assist-banner {
    padding: 12px 0 16px;
  }
  .home-assist-banner-inner {
    width: min(1080px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
  }
  .home-assist-banner-actions {
    width: 100%;
    flex: 1 1 100%;
  }
  .home-assist-banner .btn {
    width: 100%;
  }
  .home-assist-chips {
    width: 100%;
  }
  .home-assist-chip {
    flex: 1 1 calc(50% - 8px);
  }
}

/* ------------------------------------------------------------------
   2026-11-23m: Home buttons match the rest of Home (maize pills like
   "Log in / Sign up" and "Assistant").
   - Hero "Go to scholarships": was a fixed-width rounded box placed at a
     fixed height, so it crowded the lede and the "Latest update" strip,
     and a longer label ("Go to internships & jobs") had to wrap inside it.
     Now it sizes to its label, is a pill, and sits a little higher.
   - Hero lede width scales with its font, so it keeps the same number of
     lines at every desktop width (it used to gain a 3rd line at 1440+).
   - Assistant banner "Try it": was a small square-ish 6px box on a row of
     its own above pill chips. Now a maize pill on the same row as the chips
     (desktop); on phones the chips size to their text instead of a forced
     2-column grid that broke "What's due soon?" onto two lines.
   ------------------------------------------------------------------ */
.hero-um-cta,
body.page-home a.btn.hero-um-cta {
  border-radius: 999px;
  white-space: nowrap;
}
@media (min-width: 801px) {
  body.page-home .hero-um-lede {
    max-width: 45vw;
  }
  body.page-home .hero-um-cta,
  body.page-home a.btn.hero-um-cta {
    top: calc(452 / 940 * 100%);
    width: auto;
    height: max(40px, calc(58 / 1536 * 100vw));
    padding: 0 max(22px, calc(36 / 1536 * 100vw));
    border-radius: 999px;
    font-size: max(14px, calc(21 / 1536 * 100vw));
    white-space: nowrap;
  }
}
.home-assist-banner .btn[data-assist-open] {
  border-radius: 999px;
  background: #FFCB05 !important;
  border-color: #FFCB05 !important;
  color: #00274C !important;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 24px;
  white-space: nowrap;
}
.home-assist-chip {
  white-space: nowrap;
  text-align: center;
}
@media (min-width: 801px) {
  .home-assist-banner-copy {
    flex: 1 1 20rem;
  }
  .home-assist-banner-actions {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .home-assist-chips {
    flex: 0 1 auto;
    min-width: 0;
  }
}
@media (max-width: 800px) {
  .home-assist-banner .btn[data-assist-open] {
    width: 100%;
  }
  .home-assist-chip {
    flex: 1 1 auto;
  }
}
@media (min-width: 1100px) {
  /* one row: Try it + three chips (avoids a sub-pixel wrap of the last chip) */
  .home-assist-chips { flex-wrap: nowrap; flex-shrink: 0; }
}

/* ==================================================================
   2026-11-23m: ONE header on every page (Home included).
   Order (desktop): logo · [owner] section switcher · back/forward ·
   [owner] Admin · Home Matches Apply kit Submit Tracker Settings ·
   Account (far right). Same markup, sizes and spacing everywhere;
   only the active-tab pill changes. The old Home-only replica rules
   (absolute positions, vw sizes, hidden arrows) are overridden here
   with #tp-header-main so they can't win. Fixed widths on the
   switcher, Admin and Account mean nothing moves while the account
   status loads.
   ================================================================== */
html body .site-header {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: #01142C !important;
  border-bottom: 1px solid rgba(212, 158, 12, 0.85) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html body #tp-header-main {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: min(1240px, calc(100% - 40px));
  max-width: none;
  height: 60px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}
html body #tp-header-main > * { position: static !important; transform: none !important; margin: 0; }
/* logo */
html body #tp-header-main .tp-brand-group { order: 1; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; }
html body #tp-header-main .brand { position: static !important; transform: none !important; display: inline-flex; align-items: center; gap: 0; }
html body #tp-header-main .brand-um { gap: 8px; margin-right: 0; }
html body #tp-header-main .brand-um-icon { width: 32px; height: 32px; border-radius: 7px; }
html body #tp-header-main .brand-um-word { font-size: 1.3rem; font-weight: 650; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
/* section switcher (owner) — fixed width so "Scholarships" / "Internships & Jobs" don't move anything */
html body #tp-header-main .tp-mode-switch { width: 10.25rem; flex: 0 0 auto; }
html body #tp-header-main .tp-mode-btn { width: 100%; justify-content: center; gap: 6px; min-height: 34px; height: 34px; padding: 0 12px; font-size: 0.85rem; box-sizing: border-box; }
html body #tp-header-main .tp-owner-slot { visibility: hidden; }
/* back / forward */
html body #tp-header-main .hist-nav { order: 2; display: inline-flex !important; flex: 0 0 auto; gap: 4px; }
html body #tp-header-main .hist-btn { min-height: 34px; height: 34px; width: 34px; padding: 0; justify-content: center; }
html body #tp-header-main .hist-btn .hist-label { display: none; }
/* Admin (owner) */
html body #tp-header-main .header-admin { order: 3; flex: 0 0 auto; display: inline-flex; align-items: center; }
html body #tp-header-main .header-admin:empty { display: none; }
html body #tp-header-main .header-admin .header-admin-link {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 62px; height: 26px; margin: 0; padding: 0; white-space: nowrap; text-decoration: none;
  font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .02em; border-radius: 999px;
  color: #FFCB05; background: transparent; border: 1px solid rgba(255, 203, 5, .55);
}
html body #tp-header-main .header-admin a.header-admin-link:hover,
html body #tp-header-main .header-admin a.header-admin-link:focus-visible { background: rgba(255, 203, 5, .14); }
/* nav */
html body #tp-header-main nav {
  order: 4; position: static !important; flex: 1 1 auto; min-width: 0; width: auto; height: auto;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start;
  gap: 2px !important; padding: 0; margin: 0 0 0 4px;
  overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none;
}
html body #tp-header-main nav::-webkit-scrollbar { display: none; }
html body #tp-header-main nav a,
html body #tp-header-main nav a:nth-child(n) {
  position: static !important; left: auto; width: auto; height: 34px; margin: 0 !important;
  display: inline-flex; align-items: center; flex: 0 0 auto; box-sizing: border-box;
  padding: 0 11px; border: 0 !important; border-radius: 999px; background: none;
  color: #F2F4F7; font-size: 0.95rem; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
}
html body #tp-header-main nav a[aria-current="page"] { background: #FFCB05; color: #00274C; font-weight: 700; }
/* Account (far right) — fixed width so "Log in / Sign up" ⇄ "Account" never shifts the nav */
html body #tp-header-main .header-account { order: 5; flex: 0 0 auto; margin-left: auto !important; display: inline-flex; justify-content: flex-end; width: auto; min-width: 9.5rem; max-width: min(16rem, 30vw); }
html body #tp-header-main .header-account .header-admin-link { display: none; }
html body #tp-header-main .header-login-btn,
html body #tp-header-main .header-login-btn.btn {
  width: 100% !important; height: auto; min-height: 40px; padding: 6px 12px !important; box-sizing: border-box;
  border-radius: 999px; border: 1px solid #FFCB05 !important; background: #FFCB05 !important; color: #00274C !important;
  font-size: 0.9rem; font-weight: 700; line-height: 1.15; white-space: normal; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; overflow-wrap: break-word;
  text-shadow: none; box-shadow: none;
}
html body .site-header .header-note-row { display: none !important; }
@media (min-width: 1181px) and (max-width: 1300px) {
  html body #tp-header-main { width: calc(100% - 24px); gap: 8px; }
  html body #tp-header-main .brand-um-word { font-size: 1.1rem; }
  html body #tp-header-main .tp-mode-switch { width: 8.5rem; }
  html body #tp-header-main .tp-mode-btn { font-size: 0.76rem; padding: 0 8px; }
  html body #tp-header-main nav a, html body #tp-header-main nav a:nth-child(n) { padding: 0 7px; font-size: 0.86rem; }
  html body #tp-header-main .header-account { width: auto; min-width: 7.75rem; max-width: min(14rem, 32vw); }
  html body #tp-header-main .header-login-btn, html body #tp-header-main .header-login-btn.btn { font-size: 0.78rem; padding: 6px 8px !important; }
}
/* Phones and small tablets: same order on two rows — row 1: logo · switcher … back/forward; row 2: Admin · nav (scrolls) · Account. */
@media (max-width: 1180px) {
  html body #tp-header-main { flex-wrap: wrap; height: auto; width: calc(100% - 20px); gap: 6px 8px; padding: 6px 0; }
  html body #tp-header-main::after { content: ""; order: 3; flex: 0 0 100%; height: 0; }
  html body #tp-header-main .brand-um-icon { width: 28px; height: 28px; }
  html body #tp-header-main .brand-um-word { font-size: 1.05rem; }
  html body #tp-header-main .tp-brand-group { gap: 6px; }
  html body #tp-header-main .tp-mode-switch { width: 8.75rem; }
  html body #tp-header-main .tp-mode-btn { font-size: 0.74rem; padding: 0 9px; height: 30px; min-height: 30px; }
  html body #tp-header-main .tp-mode-sep { display: none; }
  html body #tp-header-main .hist-nav { order: 2; margin-left: auto !important; }
  html body #tp-header-main .hist-btn { width: 30px; height: 30px; min-height: 30px; }
  html body #tp-header-main .header-admin { order: 4; }
  html body #tp-header-main nav { order: 5; flex: 1 1 0; margin: 0; }
  html body #tp-header-main nav a, html body #tp-header-main nav a:nth-child(n) { height: 30px; padding: 0 8px; font-size: 0.88rem; }
  html body #tp-header-main .header-account { order: 6; margin-left: 0 !important; width: auto; min-width: 6.75rem; max-width: min(12.5rem, 42vw); }
  html body #tp-header-main .header-login-btn, html body #tp-header-main .header-login-btn.btn { height: auto; min-height: 32px; font-size: 0.74rem; padding: 4px 8px !important; }
}

/* 2026-11-23m: "Also show" toggles are chips in the filter group (Matches, both modes; Submit).
   The real checkbox stays inside for state, keyboard and screen readers; the chip shows it. */
html body main .chip-toggle { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
html body main .chip-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
html body main .chip-toggle::before { content: "+"; font-weight: 700; color: #FFCB05; line-height: 1; }
html body main .chip-toggle:has(input:checked) { background: #16304A; border-color: #FFCB05; box-shadow: 0 0 0 1px #FFCB05; }
html body main .chip-toggle:has(input:checked)::before { content: "\2713"; }
html body main .chip-toggle:has(input:focus-visible) { outline: 2px solid #FFCB05; outline-offset: 2px; }
html body main .chip-toggle[hidden] { display: none !important; }

/* 2026-11-23m: owner jobs-mode Home cards have longer text; tighten the icon and text so it stays inside the card. */
@media (min-width: 801px) {
  html[data-tp-mode="jobs"] body.page-home .hero-um-card .um-ico { width: calc(40 / 1536 * 100vw); height: calc(40 / 1536 * 100vw); margin-bottom: calc(12 / 1536 * 100vw); }
  html[data-tp-mode="jobs"] body.page-home .hero-um-card h3 { margin-bottom: calc(6 / 1536 * 100vw); }
  html[data-tp-mode="jobs"] body.page-home .hero-um-card p { font-size: calc(19 / 1536 * 100vw); line-height: 1.35; }
}

/* 2026-11-23m: jobs filters render as chip rows (js/jobs.js); the select grid stays only as hidden state. */
html body main .jobs-filter-grid[data-chips="1"] { display: none; }
html body main .jobs-chip-group { margin-top: 10px; }

/* =====================================================================
   20261123p: header + layout-shift fixes (kept last so they win).
   - Reserve the header's final height before ui.js fills it (the page used to
     jump ~50px when the header appeared: the main layout-shift source).
   - Keep the footer below the fold while each page's content loads.
   - Phone (<=600px): two rows. Row 1: logo [+ owner switcher], back/forward,
     Account or "Log in / Sign up" at the far right. Row 2: [owner Admin] + all six
     nav links, visible with no sideways scrolling or overlap. Same on every page;
     the account box has a fixed width so nothing shifts when it changes.
   ===================================================================== */
html body .site-header[data-chrome] { min-height: 61px !important; box-sizing: border-box; }
main.section { min-height: calc(100vh - 61px); }
@media (max-width: 1180px) {
  html body .site-header[data-chrome] { min-height: 87px !important; }
  main.section { min-height: calc(100vh - 87px); }
}
@media (max-width: 600px) {
  html body .site-header[data-chrome] { min-height: 85px !important; }
  main.section { min-height: calc(100vh - 85px); }
  html body #tp-header-main {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "brand brand hist acct" "admin nav nav nav";
    align-items: center;
    gap: 6px 6px;
    padding: 6px 0;
    width: calc(100% - 20px);
  }
  html body #tp-header-main::after { display: none; }
  html body #tp-header-main .tp-brand-group { grid-area: brand; min-width: 0; }
  html body #tp-header-main .brand-um-word { font-size: 0.9rem; }
  html body #tp-header-main .hist-nav { grid-area: hist; margin: 0 !important; justify-self: end; }
  html body #tp-header-main .hist-btn { width: 34px; height: 34px; min-height: 34px; } /* 23p: easier tap target on phones */
  html body #tp-header-main .header-admin { grid-area: admin; }
  html body #tp-header-main .header-account { grid-area: acct; margin: 0 !important; width: auto; min-width: 0; max-width: min(8.75rem, 36vw); justify-self: end; }
  html body #tp-header-main nav { grid-area: nav; width: 100%; min-width: 0; margin: 0; justify-content: flex-start; flex-wrap: wrap !important; gap: 2px 8px !important; }
  html body #tp-header-main nav a, html body #tp-header-main nav a:nth-child(n) { padding: 0 5px; font-size: 0.78rem; height: auto; min-height: 30px; }
  html body #tp-header-main nav a[aria-current="page"] { padding: 0 8px; }
  /* 20261128c: the switcher is on row 1 for everyone, so show the logo icon only (hide the wordmark).
     This keeps the phone header at exactly two rows: top = logo, switch, arrows, Account; bottom = tabs. */
  html body #tp-header-main .tp-brand-group:has(.tp-mode-switch) .brand-um-word { display: none; }
  html body #tp-header-main .tp-mode-switch { width: 8.5rem; }
  /* Assistant button: round icon on phones so it covers less of the page (label kept for screen readers). */
  html body .tp-assist-fab { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; }
  html body .tp-assist-fab > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.has-tp-assist main.section { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  html body #tp-header-main:not(:has(.header-admin-link)) { grid-template-areas: "brand brand hist acct" "nav nav nav nav"; }
}
@media (max-width: 600px) {
  /* Owner row 2 also holds Admin: tighten so all six links still fit. */
  html body #tp-header-main:has(.header-admin-link) .header-admin .header-admin-link { width: 48px; font-size: 11px; }
  html body #tp-header-main:has(.header-admin-link) nav { gap: 0 !important; }
  html body #tp-header-main:has(.header-admin-link) nav a,
  html body #tp-header-main:has(.header-admin-link) nav a:nth-child(n) { padding: 0 4px; font-size: 0.74rem; }
  html body #tp-header-main:has(.header-admin-link) nav a[aria-current="page"] { padding: 0 7px; }
}
/* 20261123p: Tracker totals render after account status arrives; reserve their space so the page doesn't jump. */
#tracker-totals-mount:empty { min-height: 184px; }
@media (max-width: 600px) { #tracker-totals-mount:empty { min-height: 276px; } }
/* 23p: Profile's totals card fills in after first paint too; reserve its final size so the cards below don't jump. */
#profile-tracker-totals:empty { min-height: 254px; }
@media (max-width: 600px) { #profile-tracker-totals:empty { min-height: 368px; } }
/* 20261123p: the school tint is always off now (appearance.js), so give the band its final 3px size from the first paint. */
html .page-band { height: 3px; background: var(--line); opacity: 0.35; }


@media (max-width: 360px) {
  html body #tp-header-main .tp-mode-switch { width: 7.15rem; }
  html body #tp-header-main .tp-mode-btn { font-size: 0.66rem; padding: 0 6px; height: 30px; min-height: 30px; }
  html body #tp-header-main .header-account { max-width: min(7.5rem, 34vw); }
}
/* 20261128 (M4): the Log in / Account button is the same box on every page. On Home the old hero header scaled the
   button with the viewport width (min-width calc(197/1536*100vw)), so it was 164 px wide on Home and 124 px elsewhere
   and its left edge jumped. Reset that so Home uses exactly the shared rules above (width comes from .header-account). */
html body.page-home #tp-header-main .header-login-btn,
html body.page-home #tp-header-main .header-login-btn.btn,
html body.page-home .site-header .header-account.has-admin #tp-header-main .header-login-btn {
  min-width: 0 !important; max-width: none !important; width: 100% !important;
  min-height: 40px; padding: 6px 12px !important; font-size: 0.9rem !important; font-weight: 700 !important;
  line-height: 1.15 !important; white-space: normal !important; border: 1px solid #FFCB05 !important;
}
@media (min-width: 1181px) and (max-width: 1300px) {
  html body.page-home #tp-header-main .header-login-btn,
  html body.page-home #tp-header-main .header-login-btn.btn { font-size: 0.78rem !important; padding: 6px 8px !important; }
}
@media (max-width: 1180px) {
  html body.page-home #tp-header-main .header-login-btn,
  html body.page-home #tp-header-main .header-login-btn.btn { min-height: 32px; font-size: 0.74rem !important; padding: 4px 8px !important; }
}

/* 20261130b accessibility: a clear focus ring on controls whose focus style was only a faint tint (WCAG 2.4.7).
   Per Daniel: no hidden skip link over the header; the home page has a visible "Skip to main content" button instead. */
.hero-um-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
body.page-home a.btn.hero-um-skip,
.hero-um-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 999px;
  background: transparent !important;
  color: #FFFFFF !important;
  border: 2px solid #FFCB05 !important;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  padding: 12px 24px;
  min-height: 48px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
}
body.page-home a.btn.hero-um-skip:hover { background: rgba(255, 203, 5, 0.14) !important; }
body.page-home a.btn.hero-um-skip:focus-visible {
  outline: 2px solid #FFCB05;
  outline-offset: 3px;
}
#tp-home-assist-banner:focus { outline: none; }
@media (min-width: 801px) {
  body.page-home .hero-um-actions {
    position: absolute;
    left: calc(96 / 1536 * 100vw);
    top: calc(452 / 940 * 100%);
    gap: max(12px, calc(18 / 1536 * 100vw));
    flex-wrap: nowrap;
    z-index: 2;
  }
  body.page-home .hero-um-actions a.btn.hero-um-cta {
    position: static;
  }
  body.page-home .hero-um-actions a.btn.hero-um-skip {
    height: max(40px, calc(58 / 1536 * 100vw));
    min-height: 0;
    padding: 0 max(18px, calc(32 / 1536 * 100vw));
    font-size: max(14px, calc(21 / 1536 * 100vw));
  }
}
@media (max-width: 800px) {
  body.page-home .hero-um-actions { gap: 10px; }
  body.page-home .hero-um-actions a.btn.hero-um-cta,
  body.page-home .hero-um-actions a.btn.hero-um-skip {
    font-size: 0.9rem;
    padding: 0 13px;
    min-height: 44px;
    height: 44px;
  }
}
html body .tp-mode-opt:focus-visible,
html body .category-search-wrap .suggest button:focus-visible,
html body .smart-detail-chip:focus-visible,
html body .home-tab-guide-link:focus-visible {
  outline: 2px solid #FFCB05;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #00274C;
}
