/* RSNC member portal, laid out like WSTR's Member Services: black top bar, silver title
   band, then a white "Member Links" box beside the page content. White page. Mobile first. */
:root {
  --p-fg: #0f1012; --p-ink-2: #33363b; --p-muted: #65696f; --p-line: #dfe2e6; --p-soft: #fafbfc; --p-silver-line: #c8ccd2;
  --p-black: #0b0a09; --p-gold: #d5a950; --p-gold-hover: #e3c37f; --p-gold-text: #7a5a14;
  --p-red: #9d0001; --p-red-dark: #7a0001; --p-ok: #2f6b3a;
  /* Same honeycomb silver as the RSNC admin header band */
  --p-honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9.07' height='15.72' viewBox='0 0 9.07 15.72'%3E%3Cpath d='M4.54 -0.27 L8.17 1.83 L8.17 6.03 L4.54 8.13 L0.90 6.03 L0.90 1.83Z M4.54 15.45 L8.17 17.55 L8.17 21.75 L4.54 23.85 L0.90 21.75 L0.90 17.55Z M4.54 -15.99 L8.17 -13.89 L8.17 -9.69 L4.54 -7.59 L0.90 -9.69 L0.90 -13.89Z M0.00 7.59 L3.64 9.69 L3.64 13.89 L0.00 15.99 L-3.64 13.89 L-3.64 9.69Z M9.07 7.59 L12.71 9.69 L12.71 13.89 L9.07 15.99 L5.44 13.89 L5.44 9.69Z M0.00 -8.13 L3.64 -6.03 L3.64 -1.83 L0.00 0.27 L-3.64 -1.83 L-3.64 -6.03Z M9.07 -8.13 L12.71 -6.03 L12.71 -1.83 L9.07 0.27 L5.44 -1.83 L5.44 -6.03Z' fill='%230f1012' fill-opacity='0.055' stroke='%23ffffff' stroke-opacity='0.7' stroke-width='0.6'/%3E%3C/svg%3E");
  --p-wide: 'Big Shoulders Display', 'Bebas Neue', sans-serif;
  --p-cond: 'Bebas Neue', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
body.portal { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: var(--p-fg); font: 400 16px/1.5 'Barlow', system-ui, sans-serif; }
.portal a { color: inherit; }
.portal-main a:not(.portal-btn) { color: var(--p-fg); text-decoration-color: var(--p-red); text-underline-offset: 3px; }
.portal-main a:not(.portal-btn):hover { color: var(--p-red); }
.portal-wrap { width: 100%; max-width: 1480px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }

/* Top bar */
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--p-black); color: #fff; border-bottom: 3px solid var(--p-gold); }
.portal-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff !important; }
.portal-brand img { height: 40px; width: auto; }
.portal-brand span { font-family: var(--p-cond); font-size: 26px; letter-spacing: .04em; line-height: 1; }
.portal-who { min-width: 0; font-size: 14px; color: #cfcfcf; }
.portal-who span { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Header band: the same honeycomb silver band, gold eyebrow and gold rule as the RSNC admin */
.portal-band { position: relative; isolation: isolate; background: linear-gradient(180deg, #f8f9fa 0%, #e8eaee 50%, #d3d7dd 100%); border-bottom: 1px solid var(--p-silver-line); }
.portal-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--p-honeycomb); background-size: 9.07px 15.72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.85) 35%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.85) 35%, transparent 92%); }
.portal-band .portal-wrap { padding-top: 22px; padding-bottom: 20px; }
.portal-band .portal-eyebrow { font-family: var(--p-cond); font-size: 15px; letter-spacing: .26em; color: var(--p-gold-text); margin-bottom: 4px; text-transform: uppercase; }
.portal-band h1 { margin: 0; font-family: 'Big Shoulders Display', 'Bebas Neue', sans-serif; font-weight: 900; font-size: clamp(34px, 9vw, 64px); line-height: .92; letter-spacing: .005em; text-transform: uppercase; color: var(--p-fg); }
.portal-band h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; background: linear-gradient(90deg, var(--p-gold), rgba(213,169,80,0)); }

/* Shell: Member Links box + content */
.portal-shell { flex: 1; display: flex; flex-direction: column; gap: 20px; padding-top: 20px; padding-bottom: 40px; }
.portal-main { flex: 1; min-width: 0; }
body.portal > .portal-main { padding-top: 24px; padding-bottom: 40px; }
.portal-side { align-self: stretch; background: #fff; border: 1px solid var(--p-line); border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.05); padding: 16px; }
.portal-side h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px solid var(--p-line); font-family: var(--p-wide); font-weight: 900; font-size: 19px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.portal-side nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0 0 14px; }
.portal-side nav a { display: flex; align-items: center; min-height: 44px; padding: 2px 0 0 14px; border-left: 3px solid var(--p-line); font-family: var(--p-cond); font-size: 20px; letter-spacing: .04em; line-height: 1.05; text-decoration: none; color: var(--p-fg) !important; }
.portal-side nav a:hover { border-left-color: var(--p-gold); }
.portal-side nav a[aria-current="page"] { border-left-color: var(--p-gold); color: var(--p-gold-text) !important; }

/* Headings inside the content */
.portal h1, .portal h2 { margin: 0; line-height: 1; }
.portal-head { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--p-line); position: relative; }
.portal-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: linear-gradient(90deg, var(--p-gold), rgba(213,169,80,0)); }
.portal-head h1 { font-family: var(--p-wide); font-weight: 900; font-size: 22px; letter-spacing: .01em; text-transform: uppercase; }
.portal-h2 { margin: 28px 0 12px !important; font-family: var(--p-wide); font-weight: 900; font-size: 18px; text-transform: uppercase; }
.portal-panel h1, .portal-panel h2, .portal-board h2, .portal-show h2 { font-family: var(--p-cond); font-weight: 400; letter-spacing: .03em; }
.portal-small { font-size: 14px; color: var(--p-muted); }

/* Buttons */
.portal-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--p-gold); border-radius: 2px; background: var(--p-gold); color: #000 !important; font: 400 22px/1 var(--p-cond); letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.portal-btn:hover { background: var(--p-gold-hover); border-color: var(--p-gold-hover); }
.portal-btn-ghost { background: #fff; border-color: var(--p-black); min-height: 44px; font-size: 19px; }
.portal-btn-ghost:hover { background: var(--p-black); border-color: var(--p-black); color: #fff !important; }
.portal-btn-dark { min-height: 46px; padding: 0 18px; background: var(--p-black); border-color: var(--p-black); color: #fff !important; font-size: 21px; }
.portal-btn-dark:hover { background: #2a2b2f; border-color: #2a2b2f; }

/* Signed out */
.portal-hero { max-width: 640px; padding: 8px 0 24px; }
.portal-hero h1 { font-family: var(--p-wide); font-weight: 900; font-size: 26px; text-transform: uppercase; margin: 0 0 12px; }
.portal-hero p { margin: 0 0 18px; }
.portal-eyebrow { font-family: var(--p-cond); font-size: 17px; letter-spacing: .2em; color: var(--p-gold-text); margin-bottom: 6px; }

.portal-panel { background: #fff; border: 1px solid var(--p-line); border-radius: 4px; padding: 18px 16px; margin: 0 0 18px; }
.portal-panel h1, .portal-panel h2 { font-size: 28px; margin-bottom: 10px; }
.portal-notice { margin: 0 0 18px; padding: 10px 14px; border-left: 4px solid var(--p-gold); border-radius: 2px; background: #fbf3df; font-size: 14px; }
.portal-flash { padding: 10px 14px; border-radius: 3px; background: #e6f0e7; color: var(--p-ok); font-weight: 600; }
.portal-error { padding: 10px 14px; border-radius: 3px; background: #fbe6e6; color: var(--p-red); font-weight: 600; }

/* Overview: cards with their details underneath */
.portal-members { display: grid; gap: 28px; }
.portal-member { min-width: 0; }
.portal-card { margin: 0 0 14px; }
.portal-card .mcard { box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.portal-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0 0 14px; }
.portal-facts div { min-width: 0; }
.portal-facts dt { font-family: var(--p-cond); font-size: 17px; letter-spacing: .08em; color: var(--p-fg); }
.portal-facts dd { margin: 0; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.portal-ok { color: var(--p-ok); font-weight: 700; }
.portal-bad { color: var(--p-red); font-weight: 700; }

/* Forms */
.portal-form { display: grid; gap: 14px; max-width: 420px; }
.portal-form label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.portal-form input { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #8d939b; border-radius: 3px; font: inherit; font-size: 16px; background: #fff; }
.portal-form input:focus, .portal-filter select:focus { outline: 3px solid var(--p-gold); border-color: var(--p-fg); }
.portal-form .portal-btn { justify-self: start; }

/* Family switcher, season filter */
.portal-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.portal-picker a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--p-line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.portal-picker a[aria-current="page"] { background: var(--p-black); border-color: var(--p-black); color: #fff !important; }
.portal-filter { margin: 0 0 18px; }
.portal-filter label { display: inline-grid; gap: 4px; font-weight: 600; font-size: 14px; }
.portal-filter.portal-filter-wide label { display: grid; width: 100%; font-size: 16px; font-weight: 700; }
.portal-filter.portal-filter-wide select { width: 100%; min-height: 52px; font-size: 18px; }
.portal-filter select { min-height: 44px; min-width: 200px; padding: 0 12px; border: 1px solid #8d939b; border-radius: 3px; font: inherit; font-size: 16px; background: #fff; }

/* Totals */
.portal-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.portal-stats div { background: #fff; border: 1px solid var(--p-line); border-bottom: 3px solid var(--p-gold); border-radius: 3px; padding: 12px 14px; }
.portal-stats b { display: block; font-family: var(--p-cond); font-weight: 400; font-size: 34px; line-height: 1; }
.portal-stats span { font-size: 13px; color: var(--p-muted); letter-spacing: .04em; }

/* Standings: National / State rank tiles, which also switch the table below */
.portal-ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.portal-ranks a { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--p-line); border-bottom: 3px solid var(--p-line); border-radius: 3px; text-decoration: none !important; color: var(--p-fg) !important; }
.portal-ranks a[aria-current="page"] { border-color: var(--p-black); border-bottom-color: var(--p-gold); box-shadow: 0 3px 10px -5px rgba(15,16,18,.25); }
.portal-ranks span { font-family: var(--p-cond); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; }
.portal-ranks b { font-family: 'Big Shoulders Display', 'Bebas Neue', sans-serif; font-weight: 900; font-size: 44px; line-height: .95; }
.portal-ranks small { font-size: 13px; color: var(--p-muted); }

/* Results by show, standings boards */
.portal-show, .portal-board { background: #fff; border: 1px solid var(--p-line); border-radius: 4px; margin: 0 0 16px; overflow: hidden; }
.portal-show > header, .portal-board > header { padding: 12px 16px; border-bottom: 1px solid var(--p-line); background: var(--p-soft); }
.portal-show time { font-family: var(--p-cond); font-size: 16px; letter-spacing: .1em; color: var(--p-gold-text); }
.portal-show h2, .portal-board h2 { font-size: 24px; }
.portal-show header p, .portal-board header p { margin: 2px 0 0; font-size: 14px; color: var(--p-muted); }
.portal-board header p b { font-family: var(--p-cond); font-weight: 400; font-size: 26px; color: var(--p-fg); }

.portal-table-wrap { width: 100%; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.portal-table th { text-align: left; font-family: var(--p-cond); font-weight: 400; font-size: 16px; letter-spacing: .08em; color: var(--p-muted); padding: 8px 12px; border-bottom: 2px solid var(--p-line); white-space: nowrap; }
.portal-table td { padding: 9px 12px; border-bottom: 1px solid #efeeeb; vertical-align: top; }
.portal-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.portal-table td small { display: block; font-size: 12px; color: var(--p-muted); }
.portal-table tr.is-paid td { background: #fbf5e6; }
.portal-table tr.is-me td { background: #f8ecd0; font-weight: 700; }
.portal-table tr.is-current td { background: var(--p-soft); }
.portal-table tfoot td { padding: 14px 12px; font-weight: 700; font-size: 16px; background: var(--p-soft); border-top: 2px solid var(--p-line); }
.portal-table small.portal-inline { display: inline; font-size: 14px; }
.portal-gap td { text-align: center; color: var(--p-muted); padding: 2px; }
.portal-you { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--p-gold); color: #000; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }

.portal-foot { padding: 18px 16px; background: var(--p-black); color: #a9a9a9; font-size: 13px; text-align: center; }

/* Phones: each table row becomes a small card with labels */
@media (max-width: 599px) {
  .portal-table thead { display: none; }
  .portal-table, .portal-table tbody, .portal-table tr, .portal-table td { display: block; }
  .portal-table tr { padding: 8px 14px; border-bottom: 1px solid #efeeeb; }
  .portal-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .portal-table td::before { content: attr(data-label); font-family: var(--p-cond); font-size: 15px; letter-spacing: .08em; color: var(--p-muted); text-align: left; flex: 0 0 auto; }
  .portal-table td[data-label="Class"], .portal-table td[data-label="Member"], .portal-table td[data-label="Season"], .portal-table td[data-label="Show"] { text-align: left; font-size: 16px; }
  .portal-table td[data-label="Class"]::before, .portal-table td[data-label="Member"]::before, .portal-table td[data-label="Season"]::before, .portal-table td[data-label="Show"]::before { display: none; }
  .portal-table td small { display: inline; margin-left: 6px; }
  .portal-gap { display: none !important; }
  .portal-board .portal-table tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
  .portal-board .portal-table td { display: block; padding: 2px 0; text-align: left; }
  .portal-board .portal-table td::before { display: none; }
  .portal-board .portal-table td[data-label="State"], .portal-board .portal-table td[data-label="Show days"], .portal-board .portal-table td[data-label="Rating"] { display: none; }
  .portal-board .portal-table td[data-label="Rank"] { font-family: 'Big Shoulders Display', 'Bebas Neue', sans-serif; font-weight: 900; font-size: 22px; }
  .portal-board .portal-table td[data-label="Points"] { text-align: right; font-size: 17px; }
  .portal-table tfoot, .portal-table tfoot tr { display: block; }
  .portal-table tfoot td:first-child { display: none; }
  .portal-table tfoot td:last-child::before { content: "Season total"; font-family: var(--p-cond); color: var(--p-fg); }
  .portal-table td[data-label="Event"] { flex-direction: column; text-align: left; }
  .portal-table td[data-label="Event"]::before { display: none; }
}

@media (min-width: 700px) {
  .portal-wrap { padding-left: 24px; padding-right: 24px; }
  .portal-who span { display: inline; }
  .portal-band .portal-wrap { padding-top: 34px; padding-bottom: 26px; }
  .portal-band .portal-eyebrow { font-size: 17px; margin-bottom: 6px; }
  .portal-head h1 { font-size: 30px; }
  .portal-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portal-panel { padding: 24px; }
  .portal-members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
}

@media (min-width: 1000px) {
  .portal-wrap { padding-left: 40px; padding-right: 40px; }
  .portal-shell { flex-direction: row; align-items: flex-start; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
  .portal-side { flex: 0 0 300px; align-self: flex-start; padding: 22px 22px 24px; }
  .portal-side nav { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .portal-head h1 { font-size: 36px; }
}

/* Join form and Renew / Upgrade (mobile first) */
.portal-form.portal-join { max-width: 760px; gap: 0; }
.portal-join select, .portal-join textarea { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #8d939b; border-radius: 3px; font: inherit; font-size: 16px; background: #fff; }
.portal-join textarea { min-height: 70px; }
.portal-join h3 { font-family: var(--p-cond); font-size: 22px; letter-spacing: .04em; margin: 14px 0 8px; }
.portal-lead { margin: 0 0 14px; }
.portal-error ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.portal-choices { display: grid; gap: 8px; }
.portal-form label.portal-choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: 4px; cursor: pointer; font-weight: 500; }
.portal-choice input { width: 20px; min-height: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--p-black); }
.portal-choice span { flex: 1; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.portal-choice:has(input:checked) { border-color: var(--p-fg); background: #fbf3df; }
.portal-price { font-style: normal; font-weight: 700; white-space: nowrap; }
.portal-grid { display: grid; gap: 12px; }
.portal-form label small { font-weight: 400; color: var(--p-muted); font-size: 13px; }
.portal-form label.portal-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.portal-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--p-black); }
.portal-more { margin-top: 12px; }
.portal-more summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.portal-family { border: 1px solid var(--p-line); border-radius: 4px; padding: 12px; margin: 0 0 12px; }
.portal-family legend { font-weight: 700; padding: 0 6px; }
.portal-total { margin: 0 0 14px; display: grid; gap: 6px; }
.portal-total div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--p-line); padding: 6px 0; }
.portal-total dt { color: var(--p-ink-2); }
.portal-total dd { margin: 0; font-weight: 700; white-space: nowrap; }
.portal-total .is-total dt, .portal-total .is-total dd { font-size: 20px; color: var(--p-fg); font-weight: 800; }
@media (min-width: 640px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-grid .portal-span { grid-column: 1 / -1; }
}

/* Embedded on rsnc.us ([rsnc_join]): no page chrome, transparent so it sits in the site's page */
body.portal-embedded { min-height: 0; background: transparent; }
.portal-embedded .portal-main { max-width: none; padding: 0; margin: 0; }
.portal-first { margin-top: 14px; }

/* Signed-out home: centered sign-in card on the dark RSNC background (like the Auth0 page). */
body.portal-login-page { margin: 0; min-height: 100vh; background: #0f1012; }
.portal-login { min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px 16px; }
.portal-login-card { width: 100%; max-width: 440px; box-sizing: border-box; padding: 40px 36px 36px; background: #fff; border-radius: 6px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.portal-login-logo { display: block; height: 96px; width: auto; margin: 0 auto 18px; }
.portal-login-card h1 { margin: 0 0 10px; font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: 1; letter-spacing: .02em; color: #0f1012; }
.portal-login-card p { margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: #333; }
.portal-login-card .portal-small { margin: 12px 0 0; font-size: 13.5px; color: #666; }
.portal-login-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
.portal-login-join { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e3e1da; }
.portal-login-join h2 { margin: 0 0 6px; font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: .02em; color: #0f1012; }
.portal-login-join p { margin-bottom: 16px; }
.portal-login-foot { margin: 0; max-width: 440px; text-align: center; font-size: 13px; line-height: 1.5; color: #9a9a9a; }
@media (max-width: 420px) { .portal-login-card { padding: 32px 22px 28px; } .portal-login-logo { height: 80px; } }

/* Join form: memberships the rider is too young / not old enough for are hidden. */
.portal-choice[hidden], .portal-join [hidden] { display: none !important; }

/* Every dropdown: our own chevron with room on the right, so it never touches the edge. */
body.portal select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 46px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' fill='none' stroke='%230f1012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 9px; }

/* Card fields (pay on the page). */
.portal-card-fields { margin: 18px 0 6px; padding: 18px; border: 1px solid #d9d6cc; border-radius: 4px; background: #faf9f6; }
.portal-card-fields h3 { margin: 0 0 12px; font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: .02em; }
.portal-card-fields input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 12px; border: 1px solid #8d939b; border-radius: 3px; font: inherit; font-size: 17px; background: #fff; letter-spacing: .04em; }
.portal-card-fields .portal-small { margin: 10px 0 0; }
#cc-error { margin-top: 12px; }

.portal-join button[type=submit] { margin-top: 18px; }
.portal-join .portal-check { margin-top: 16px; }

.portal-prefs { margin: 18px 0 6px; padding: 0; border: 0; }
.portal-prefs legend { margin-bottom: 6px; font-weight: 700; }
.portal-prefs .portal-check { margin-top: 6px; }
/* Join form: boxes still to fill in */
.portal-join label.is-missing input, .portal-join label.is-missing select, .portal-join label.is-missing textarea { border-color: var(--p-red); box-shadow: 0 0 0 2px rgba(157,0,1,.15); }
.portal-join label.portal-choice.is-missing, .portal-join label.portal-check.is-missing { color: var(--p-red); }
#join-missing { margin: 0 0 12px; }
/* Consent and opt-in checkboxes: the words wrap as one paragraph next to the box */
.portal-form label.portal-check > span { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.portal-join .portal-check { padding: 14px 16px; border: 1px solid var(--p-line, #dfe2e6); border-radius: 4px; background: #fafafa; }
.portal-prefs .portal-check { padding: 0; border: 0; background: none; }
.portal-join .join-billing-address { margin-top: 16px; } .portal-join .join-bill-same { margin-top: 16px; }
.portal-req { color: var(--p-red); font-weight: 700; } .portal-req-note { margin: -4px 0 12px; }

/* ==========================================================================
   The new website's look (approved as a mockup by Whitney, 2026-10-16): Saira and Saira Condensed, charcoal with the
   site's deep red and gold, the dark header band with the honeycomb fading in toward the right, white cards on the
   site's tan, gold hex-cut buttons. This block comes last so it wins over the WSTR styling above; it changes only
   colours, type and shape, never how a page works. Screen only.
   ========================================================================== */
@media screen {
:root {
  --p-fg: #1c1b19; --p-black: #1c1b19; --p-muted: #6d675c; --p-line: #ece7dc; --p-soft: #faf9f5;
  --p-gold: #e2bb6a; --p-gold-hover: #f2d58e; --p-gold-text: #8a5a14; --p-red: #9b0f0f; --p-red-dark: #7e0a0a;
  --p-wide: 'Saira Condensed', 'Arial Narrow', sans-serif; --p-cond: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --p-border: #d3cab8; --p-lift: 0 2px 6px rgba(28, 27, 25, .10);
  --p-hex: url("/admin/images/hex-dark.svg");
}
body.portal { font-family: 'Saira', system-ui, sans-serif; }

/* Top bar: charcoal, no gold line. */
.portal-top { height: 72px; padding: 0 16px; background: #1c1b19; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.portal-brand img { height: 48px; }
.portal-brand span { display: flex; flex-direction: column; gap: 4px; font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.portal-brand small { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 9.5px; letter-spacing: .3em; color: #f2d58e; }
.portal-who { color: rgba(255, 255, 255, .75); }

/* Header band: flat charcoal, honeycomb fading in toward the right, gold line under it. */
.portal-band { background: #1c1b19; border-bottom: 2px solid #c9973a; }
.portal-band::before { background-image: var(--p-hex); background-size: 16.6px 28.8px; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 100%); mask-image: linear-gradient(90deg, transparent 10%, #000 100%); }
.portal-band .portal-eyebrow { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .3em; color: #f2d58e; }
.portal-band h1 { font-family: 'Saira Condensed', 'Arial Narrow', sans-serif; font-weight: 800; color: #fff; }
.portal-band h1::after { display: none; }

/* Member Links box and content cards: white, darker border, soft shadow. */
.portal-side, .portal-panel, .portal-show, .portal-board { background: #fff; border: 1px solid var(--p-border); border-radius: 0; box-shadow: var(--p-lift); }
.portal-side { border-top: 4px solid var(--p-red); }
.portal-side h2 { margin-bottom: 14px; border-bottom: 0; padding: 0 0 0 12px; border-left: 4px solid var(--p-red); font-weight: 800; font-size: 22px; }
.portal-side nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (min-width: 1000px) { .portal-side nav { grid-template-columns: 1fr; gap: 0; } }
.portal-side nav a { min-height: 46px; padding: 0 12px; border-left: 0; border-top: 1px solid var(--p-line); font-family: 'Saira', sans-serif; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.portal-side nav a:hover { background: #faf6ec; }
.portal-side nav a[aria-current="page"] { background: #faf6ec; color: var(--p-red) !important; font-weight: 700; }
.portal-head { border-bottom: 0; padding: 0 0 0 12px; border-left: 4px solid var(--p-red); }
.portal-head::after { display: none; }
.portal-head h1 { font-weight: 800; }
.portal-h2, .portal-panel h1, .portal-panel h2, .portal-board h2, .portal-show h2 { font-weight: 800; letter-spacing: 0; }
.portal-panel, .portal-show > header, .portal-board > header { background: #fff; }
.portal-show > header, .portal-board > header { border-bottom-color: var(--p-line); }

/* Buttons: gold hex-cut (main), charcoal, cream. */
.portal-btn { border: 0; border-radius: 0; background: linear-gradient(180deg, #f6e3a8, #c9973a); color: #1c1b19 !important; font-family: 'Saira', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; min-height: 48px; padding: 0 28px;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.portal-btn:hover { background: linear-gradient(180deg, #f9edc4, #e2bb6a); }
.portal-btn-ghost { background: #ece7dc; min-height: 48px; font-size: 12px; }
.portal-btn-ghost:hover { background: #1c1b19; color: #fff !important; }
.portal-btn-dark, .portal-btn-dark:hover { background: #1c1b19; color: #fff !important; font-size: 12px; min-height: 48px; }
.portal-btn-dark:hover { background: var(--p-red); }

/* Each member: their real card with their details, in a white card. */
.portal-member { padding: 24px; background: #fff; border: 1px solid var(--p-border); box-shadow: var(--p-lift); }
.portal-card .mcard { box-shadow: 0 8px 22px rgba(28, 27, 25, .22); }

/* The current card on the Purchase Membership page. */
.portal-card-current { max-width: 460px; margin: 4px 0 18px; }

/* Facts, tiles and tables. */
.portal-facts dt, .portal-card-fields h3 { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--p-gold-text); }
.portal-card-fields h3 { font-size: 13px; }
.portal-facts dd { font-weight: 600; }
.portal-stats div, .portal-ranks a { background: #fff; border: 1px solid var(--p-border); border-top: 4px solid var(--p-red); border-radius: 0; box-shadow: var(--p-lift); }
.portal-stats b, .portal-ranks b { font-family: 'Saira Condensed', sans-serif; font-weight: 800; }
.portal-ranks a[aria-current="page"] { border-color: var(--p-border); border-top-color: #c9973a; box-shadow: 0 0 0 2px #c9973a; }
.portal-ranks span { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .2em; color: var(--p-gold-text); }
.portal-table th { background: #1c1b19; border-bottom: 0; color: #f2d58e; font-family: 'Saira', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.portal-table td { border-bottom-color: #ece7dc; }
.portal-table tr.is-paid td { background: #fbf6e8; }
.portal-table tr.is-me td { background: #f6ecd2; }
.portal-table tfoot td { background: #faf9f5; border-top-color: #d3cab8; }
.portal-show time { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--p-gold-text); }
.portal-you, .portal-picker a { border-radius: 0; }
.portal-you { background: #e2bb6a; }
.portal-picker a[aria-current="page"] { background: #1c1b19; }

/* Forms. */
.portal-form label { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--p-gold-text); }
.portal-form label small { text-transform: none; letter-spacing: 0; }
.portal-form label.portal-choice, .portal-form label.portal-check { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: #1c1b19; }
.portal-form input, .portal-join select, .portal-join textarea, .portal-filter select, .portal-card-fields input { border-color: #d8d1c2; border-radius: 0; }
.portal-form input:focus, .portal-form select:focus, .portal-filter select:focus, .portal-card-fields input:focus { outline: 2px solid #c9973a; outline-offset: 1px; border-color: #c9973a; }
.portal-form label.portal-choice, .portal-family, .portal-card-fields, .portal-join .portal-check { border-radius: 0; }
.portal-choice:has(input:checked) { border-color: #c9973a; background: #fbf6e8; box-shadow: 0 0 0 1px #c9973a; }
.portal-join h3 { font-family: 'Saira Condensed', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: 24px; }
.portal-card-fields h3 { font-family: 'Saira', sans-serif; }
.portal-notice { border-radius: 0; border-left-color: #c9973a; background: #fbf0d9; }
.portal-flash, .portal-error { border-radius: 0; }

/* Footer. */
.portal-foot { background: #1c1b19; color: rgba(255, 255, 255, .65); border-top: 2px solid #c9973a; padding: 22px 16px; }

/* Sign-in page: dark page with the honeycomb around the card, white card with a gold top edge. */
body.portal-login-page { background: #1c1b19; position: relative; isolation: isolate; }
body.portal-login-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: var(--p-hex); background-size: 16.6px 28.8px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000, transparent 80%); }
.portal-login-card { border-radius: 0; border-top: 5px solid #c9973a; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.portal-login-card h1 { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 44px; text-transform: uppercase; color: #1c1b19; }
.portal-login-join h2 { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 26px; text-transform: uppercase; }
.portal-login-join { border-top-color: #ece7dc; }
.portal-login-foot { color: rgba(255, 255, 255, .6); }
.portal-login-card .portal-btn-ghost { background: #ece7dc; }
}

/* Benefits page (2026-10-28): rows the level does not include are dimmed. */
.portal-benefits .portal-benefit-off td { color: #777; }
.portal-benefits td b { font-weight: 700; }
.portal-benefits .portal-how { display: block; text-align: right; }
@media (min-width: 600px) { .portal-benefits .portal-how { text-align: left; } }
.portal-benefits .portal-how-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.portal-btn.portal-btn-sm { min-height: 34px; padding: 0 20px; font-size: 14px; letter-spacing: .06em; }

/* Join form: the email step (2026-10-28). */
.join-step-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; }
.join-step-form { display: grid; gap: 14px; max-width: 420px; }
.join-step-form .portal-btn { justify-self: start; }

/* Ride TV on Benefits: a member with no Ride TV account under their RSNC email picks here (2026-10-29). */
.portal-ride-form { margin-top: 12px; gap: 8px; text-align: left; justify-items: start; }
.portal-ride-form label { width: 100%; }
.portal-ride-form > span { font-size: 14px; }
.portal-how .portal-flash, .portal-how .portal-error { margin: 0 0 8px; }

/* My Details (details.php): phones and mailing address a member can edit. */
.portal-form.portal-details { max-width: 640px; gap: 18px; margin-top: 14px; }
.portal-details .portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.portal-details .portal-grid .portal-span { grid-column: 1 / -1; }
.portal-details-who { max-width: 640px; margin: 10px 0 0; padding: 10px 14px; background: #faf9f6; border: 1px solid #d9d6cc; border-radius: 4px; }
.portal-details-email { display: grid; gap: 2px; padding: 12px 14px; border: 1px dashed #c9c5b8; border-radius: 4px; }
.portal-details-email span { font-weight: 600; font-size: 15px; }
.portal-details-email small { color: var(--p-muted); }
@media (max-width: 599px) { .portal-details .portal-grid { grid-template-columns: 1fr; } }


/* Event news (T-126): the unread count in Member Links, the events with their posts */
.portal-side nav a .portal-dot { margin-left: auto; margin-right: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--p-red); color: #fff; font: 700 13px/22px 'Barlow', sans-serif; text-align: center; letter-spacing: 0; }
.portal-feed-event { margin: 0 0 22px; }
.portal-feed-event > h2 { font-family: var(--p-cond); font-size: 26px; letter-spacing: .03em; margin: 0 0 2px; }
.portal-feed-event > .portal-small { margin: 0 0 10px; }
.portal-post { background: #fff; border: 1px solid var(--p-line); border-left: 4px solid var(--p-line); border-radius: 4px; padding: 14px 16px; margin: 0 0 10px; }
.portal-post.is-new { border-left-color: var(--p-gold); }
.portal-post-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
.portal-post h3 { margin: 0; font: 700 18px/1.25 'Barlow', sans-serif; }
.portal-post time { font-size: 13px; color: var(--p-muted); white-space: nowrap; }
.portal-post p { margin: 6px 0 0; }
.portal-post .portal-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #fbf3df; color: var(--p-gold-text); font: 600 12px/18px 'Barlow', sans-serif; vertical-align: middle; }
.portal-post-link { margin-top: 8px; font-weight: 600; }

/* Futurity sign-up (T-144, futurity-entry.php): the side pot's additional fee stands out. */
.portal-fut .fut-fee { color: #8a3b12; font-weight: 600; font-size: 14px; }
.portal-fut .portal-choice span { flex-wrap: wrap; }
.portal-fut .portal-choice .portal-price { white-space: normal; flex-basis: 100%; font-style: normal; }

/* My bookings (T-013 stage 3, bookings.php): status pills, what was booked, the invoice buttons. */
.portal-bookings td { vertical-align: middle; }
.portal-booked { display: block; }
.portal-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: #e8f3ea; color: var(--p-ok); }
.portal-pill.is-balance-due { background: #fbf3df; color: var(--p-gold-text); }
.portal-pill.is-cancelled, .portal-pill.is-refunded { background: #eef0f2; color: var(--p-muted); }
.portal-btn.portal-btn-line { background: #fff; border-color: var(--p-line); }
.portal-bookings-acts { text-align: right; white-space: nowrap; }
.portal-bookings-acts .portal-btn + .portal-btn { margin-left: 6px; }
@media (max-width: 599px) {
  .portal-table.portal-bookings td[data-label="Event"] { display: block; text-align: left; font-size: 16px; padding-bottom: 4px; }
  .portal-table.portal-bookings td[data-label="Event"] small { display: block; margin-left: 0; }
  .portal-table.portal-bookings td[data-label="Event"]::before, .portal-table.portal-bookings td[data-label=""]::before { display: none; }
  .portal-bookings .portal-booked { display: inline; }
  .portal-bookings .portal-booked + .portal-booked::before { content: ", "; }
  .portal-bookings-acts { justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding-top: 6px !important; }
  .portal-bookings-acts .portal-btn + .portal-btn { margin-left: 0; }
}
/* Two sign-in buttons (password, text code; T-161) sit apart. */
.portal-login-btn + .portal-login-btn { margin-top: 10px; }
