/* GoPlay's shared product interface. Workspace-specific compositions live in
   the family and staff stylesheets; this layer owns the shell and UI primitives. */
:root {
  --ink: #172b4d;
  --muted: #617188;
  --line: #e4e9f1;
  --snow: #f6f8fb;
  --paper: #fff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --radius: 14px;
  --shadow: 0 2px 5px #172b4d03;
}
body { font-size: .9375rem; -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { transition: background-color .15s, border-color .15s, color .15s; }
.app-shell { grid-template-columns: 252px minmax(0, 1fr); }
.workspace-body { background: var(--snow); }
.view-root { max-width: 1600px; padding: 32px 36px 64px; }

/* The quiet navigation rail keeps frequent destinations visible and organizes
   the rest into native, keyboard-accessible disclosure groups. */
.sidebar { background: white; color: var(--ink); border-right: 1px solid var(--line); padding: 25px 16px 18px; scrollbar-width: thin; scrollbar-color: #d4dde9 transparent; }
.sidebar-brand { align-items: center; min-height: 36px; margin: 0 10px 25px; }
.sidebar .brand { margin: 0; }
.sidebar .brand-words .goplay-wordmark { color: #172b4d; font-size: 1.75rem; letter-spacing: -.065em; }
.sidebar .goplay-wordmark span { color: var(--blue); }
.sidebar .brand-words small { color: var(--muted); font-size: .5625rem; letter-spacing: .19em; }
.sidebar-club { padding: 13px 12px; background: #f7f9fc; border: 1px solid #e9edf4; border-radius: 12px; margin-bottom: 16px; gap: 11px; text-decoration: none; }
.sidebar-club:hover { background: #f1f5fc; }
.sidebar-club img { width: 31px; height: 36px; }
.sidebar-club strong { color: var(--ink); font-size: .8125rem; font-weight: 650; }
.sidebar-club small { color: var(--muted); font-size: .6875rem; margin-top: 3px; }
.workspace-switch, .workspace-label { min-height: 38px; padding: 9px 11px; color: #526680; background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: .75rem; font-weight: 550; }
.workspace-switch { background: #f8faff; border-color: var(--line); margin-bottom: 12px; }
.workspace-switch:hover { background: #edf3ff; border-color: #cddbf5; }
.workspace-switch > .icon, .workspace-label > .icon { width: 16px; height: 16px; color: #7185a1; }
.switch-copy strong { color: #3b5272; font-size: .75rem; font-weight: 600; }
.switch-copy small { color: #7a89a0; font-size: .6875rem; }
.workspace-label { padding-top: 0; min-height: 30px; margin-bottom: 5px; }
.sidebar .gp-workspace-nav { display: block; }
.gp-nav-primary, .gp-nav-group-links { display: grid; gap: 3px; }
.gp-nav-primary { margin-bottom: 17px; }
.side-link { min-height: 44px; width: 100%; padding: 11px 12px; color: #596b85; border: 0; border-radius: 9px; font-size: .875rem; font-weight: 500; line-height: 1.4; gap: 12px; }
.side-link > span { min-width: 0; }
.side-link .icon { width: 19px; height: 19px; color: #7d8fa8; flex: none; }
.side-link:hover { color: #274568; background: #f4f7fc; }
.side-link[aria-current='page'] { color: #2258c6; background: #edf3ff; font-weight: 650; box-shadow: none; }
.side-link[aria-current='page'] .icon { color: #326ce0; }
.gp-nav-group { border-top: 1px solid #eff2f7; }
.gp-nav-group summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 11px; color: var(--muted); font-size: .6875rem; font-weight: 600; cursor: pointer; list-style: none; line-height: 1.5; }
.gp-nav-group summary::-webkit-details-marker { display: none; }
.gp-nav-group summary:hover { color: #274568; }
.gp-nav-group summary > .icon { width: 13px; height: 13px; color: #94a2b7; transition: transform .15s; }
.gp-nav-group[open] summary > .icon { transform: rotate(90deg); }
.gp-nav-group-links { padding-bottom: 12px; }
.gp-nav-group-links .side-link { font-size: .8125rem; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 0; gap: 1px; }
.sidebar-footer .home-link { min-height: 35px; padding: 8px 12px; color: #718199; font-size: .75rem; border-radius: 8px; }
.sidebar-footer .home-link .icon { width: 16px; height: 16px; color: #91a0b5; }
.sidebar-footer .home-link:hover { background: #f6f8fc; color: #31577f; }
.goplay-credit { padding: 15px 12px 0; color: #8a98ad; font-size: .625rem; }
.goplay-credit a { text-decoration: none; color: #6c7e98; }

/* Utility header: search, alerts and the account remain in the same place. */
.appbar { height: 76px; min-height: 76px; padding: 14px 36px; gap: 20px; background: #fffffff5; border-bottom-color: #e9edf4; }
.crumb { font-size: .8125rem; font-weight: 600; gap: 10px; }
.crumb-first { font-size: .75rem; color: var(--muted); }
.crumb > .icon { color: #b5bfce; width: 12px; height: 12px; }
.gp-command { width: 240px; min-height: 40px; border-color: #edf0f6; border-radius: 9px; background: #f8f9fc; color: var(--muted); padding-inline: 12px; }
.gp-command:hover { background: #f3f6fc; border-color: #d9e3f2; }
.gp-command kbd { font-size: .625rem; border-color: #e4e9f1; color: var(--muted); padding: 3px 5px; }
.gp-activity-button { width: 42px; height: 42px; color: #69809d; }
.account-button { min-height: 44px; gap: 10px; padding-left: 18px; border-left: 1px solid #e9edf4; }
.account-button .avatar { width: 36px; height: 36px; border-radius: 50%; color: #3d63a3; background: #edf2fa; font-size: .75rem; font-weight: 650; }
.gp-account-copy { display: grid; gap: 4px; }
.gp-account-copy .account-name { max-width: 140px; font-size: .75rem; font-weight: 600; }
.gp-account-copy small { font-size: .625rem; color: var(--muted); font-weight: 450; text-transform: capitalize; }
.account-button > .icon { width: 13px; height: 13px; color: #99a6b8; }
.account-menu { padding: 18px; border-radius: 14px; box-shadow: 0 14px 45px #172b4d14; }
.account-menu .btn-secondary { margin-top: 8px; }
.preview-strip { background: #eef4ff; color: #526f9c; font-size: .75rem; padding: 9px 36px; border-bottom: 1px solid #e1eafb; }

/* Common content primitives: calm typography, flat tabs and useful spacing. */
.page-heading, .sc-heading { margin-bottom: 26px; gap: 20px; }
.page-heading h1, .sc-heading h1, .view-root > h1, .gp-notification-header h1 { font: 650 clamp(1.65rem, 2.2vw, 2rem)/1.25 var(--sans); letter-spacing: -.035em; color: var(--ink); }
.page-heading p, .sc-heading p { color: var(--muted); font-size: .875rem; line-height: 1.65; margin-top: 8px; }
.page-eyebrow, .program-season, .eyebrow { color: var(--muted); font-size: .6875rem; letter-spacing: .025em; font-weight: 550; text-transform: none; }
.card, .sc-panel, .sc-field-card, .sc-clock, .fundraiser-card, .sc-fund-card, .following-card { border-color: var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.card, .sc-panel { padding: 24px; }
.card-head, .sc-panel-head { border-bottom-color: #edf1f6; padding-bottom: 16px; margin-bottom: 16px; }
.card h2, .sc-panel h2, .sc-clock h2, .sc-field-card h2, .sub-heading { font: 650 1.0625rem/1.4 var(--sans); letter-spacing: -.02em; }
.card-head p, .sc-panel-head p { font-size: .8125rem; color: var(--muted); }
.card-head .btn-text, .sc-panel-head .sc-btn { font-size: .75rem; }
.btn, .sc-btn { border-radius: 9px; font-size: .8125rem; font-weight: 600; min-height: 42px; padding: 10px 15px; line-height: 1.4; }
.btn-primary, .sc-btn-primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 2px 3px #2563eb0d; }
.btn-primary:hover, .sc-btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-secondary, .sc-btn-quiet { background: #fff; color: #4d627e; border-color: #dae2ee; box-shadow: 0 1px 2px #172b4d03; }
.btn-secondary:hover, .sc-btn-quiet:hover { background: #f6f8fd; border-color: #bbceeb; }
.btn-text { color: #3569c8; background: none; box-shadow: none; border-color: transparent; padding: 7px 0; min-height: 36px; }
.icon-button { border-radius: 9px; }
.tag, .sc-badge { border-radius: 6px; font-size: .75rem; font-weight: 550; padding: 5px 8px; line-height: 1.4; background: #f0f3f8; color: var(--muted); }
.tag.green, .sc-badge.sc-green { background: #edf8f2; color: #277552; }
.tag.amber, .sc-badge.sc-amber { background: #fff6e7; color: #926224; }
.tag.blue, .sc-badge.sc-blue { background: #edf3ff; color: #3767bd; }
.tag.red, .sc-badge.sc-red { background: #fff0f1; color: #ad4656; }
.tabs, .sc-tabs { gap: 20px; margin-bottom: 24px; border-bottom-color: #dfe6f0; }
.tabs button, .sc-tabs button { padding: 12px 1px; border-radius: 0; border-bottom-width: 2px; font-size: .8125rem; min-height: 46px; font-weight: 500; color: var(--muted); }
.tabs button[aria-pressed='true'], .sc-tabs button[aria-pressed='true'] { color: #2563d9; background: transparent; font-weight: 600; border-bottom-color: #2563eb; }
.tabs button:hover, .sc-tabs button:hover { background: transparent; color: #315985; }
input:not([type='checkbox']):not([type='radio']):not([type='file']), select, textarea { border-color: #dbe3ef; border-radius: 9px; font-size: .875rem; box-shadow: 0 1px 2px #172b4d02; }
input::placeholder, textarea::placeholder { color: #9aa6b8; }
input:focus, select:focus, textarea:focus { border-color: #81a7f1; box-shadow: 0 0 0 3px #2563eb0a; }
.form-field > span, .sc-input > span { font-size: .8125rem; font-weight: 600; color: #405672; }
.form-field small, .sc-input small { color: var(--muted); font-size: .75rem; }
.row-icon { background: #f2f5fb; color: #6886b2; border-radius: 10px; }
.data-row, .sc-line { border-bottom-color: #edf1f6; padding-block: 16px; }
.row-body strong, .sc-line-copy strong { font-size: .875rem; font-weight: 600; color: #314866; }
.row-body p, .sc-line-copy p { font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.empty-state, .sc-empty { border: 1px solid #edf1f6; background: #fafbfd; padding: 28px 22px; border-radius: 11px; }
.empty-state > .icon { color: #9aafcf; }
.empty-state h3, .sc-empty strong { font-size: .9375rem; font-weight: 600; color: #4c6584; }
.empty-state p, .sc-empty p { color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.kpi, .sc-tile, .fund-metric { box-shadow: none; border-color: #e4eaf3; border-radius: 12px; }
.gp-notification-row { border-color: #e4eaf3; padding: 18px; }
.gp-notification-row.is-unread { background: #f8faff; border-left-color: #4f7fdf; }
.gp-notification-icon { background: #f0f4fc; color: #7493c6; }
.gp-notification-copy p { color: var(--muted); }
.dialog, .sc-dialog { border-color: #e3e9f2; box-shadow: 0 22px 90px #172b4d26; border-radius: 18px; }
body:has(dialog[open]) { overflow: hidden; }
.dialog::backdrop, .sc-dialog::backdrop { background: #142b4a57; backdrop-filter: blur(4px); }
.dialog h2, .sc-dialog-head h2 { color: #223d60; font-weight: 650; letter-spacing: -.025em; }
.dialog-head, .sc-dialog-head { border-bottom-color: #e9eef5; }
.dialog-head > .icon-button, .sc-dialog-head > .sc-dialog-close { background: #f6f8fc; border-color: transparent; }
.fund-intro { background: #f0f5ff; border-color: #e0e9fa; }
.fundraiser-cover { background: #fafbfe; }
.fund-avatar { background: #edf2ff; color: #5c7fb9; }
.gp-task-column { background: #f0f3f8; border-color: #e5eaf2; }
.gp-task-card { border-color: #e2e8f1; box-shadow: 0 2px 4px #142a4503; }
.gp-activity-item { border-color: #e4eaf3; border-radius: 11px; }

/* Account entry shares the product typography while retaining club imagery. */
.auth-page { background: #f8faff; }
.signin-top { border-bottom-color: #e9edf5; }
.signin-top .goplay-wordmark { color: var(--ink); }
.signin-top .goplay-wordmark span { color: var(--blue); }
.auth-hero { border-radius: 22px; }
.hero-copy .hero-kicker { text-transform: none; letter-spacing: .025em; font-size: .8125rem; font-weight: 500; }
.hero-copy .hero-title { font: 650 clamp(2.2rem, 3.6vw, 3.7rem)/1.1 var(--sans); text-transform: none; letter-spacing: -.05em; max-width: 10ch; }
.auth-panel h1 { font: 650 1.9rem/1.25 var(--sans); letter-spacing: -.035em; }
.auth-tabs { border-radius: 10px; padding: 4px; }
.auth-tabs button { border-radius: 7px; font-size: .8125rem; }
.auth-tabs button[aria-pressed='true'] { box-shadow: 0 2px 5px #172b4d09; }
.auth-lead { font-size: .875rem; color: var(--muted); }

/* Thumb-friendly destinations on small screens; More contains the full rail. */
.gp-mobile-nav { display: none; }
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .view-root { padding: 28px 26px 60px; }
  .appbar { padding-inline: 26px; gap: 14px; }
  .gp-command { width: 200px; }
  .gp-command kbd { display: none; }
  .gp-account-copy { display: none; }
}
@media (max-width: 1000px) {
  .gp-command { width: 40px; padding: 9px; justify-content: center; }
  .gp-command > span { display: none; }
  .card, .sc-panel { padding: 21px; }
}
@media (max-width: 810px) {
  .app-shell { display: block; }
  .sidebar { width: 282px; max-width: calc(100vw - 38px); padding: 24px 16px 18px; box-shadow: 10px 0 50px #172b4d12; }
  .sidebar-brand { margin-bottom: 22px; }
  .mobile-nav-close { width: 36px; height: 36px; margin: 0; background: #f4f7fc; color: #7386a2; border: 0; }
  .mobile-nav-close:hover { background: #eaf0fa; }
  .appbar { height: 66px; min-height: 66px; padding: 10px 18px; gap: 10px; }
  .menu-toggle { width: 40px; height: 40px; border: 0; background: none; }
  .crumb { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8125rem; }
  .crumb-first, .crumb > .icon { display: none; }
  .crumb > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .gp-command { width: 36px; min-height: 40px; background: transparent; border: 0; }
  .gp-activity-button { width: 38px; height: 40px; }
  .account-button { padding-left: 2px; border: 0; }
  .account-button > .icon { display: none; }
  .account-button .avatar { width: 32px; height: 32px; }
  .view-root { padding: 26px 20px calc(100px + env(safe-area-inset-bottom)); }
  .preview-strip { padding: 8px 20px; font-size: .6875rem; }
  .gp-mobile-nav { display: flex; justify-content: space-around; position: fixed; inset: auto 0 0; z-index: 20; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); min-height: 70px; background: #fffffff7; border-top: 1px solid #e7ecf4; backdrop-filter: blur(14px); box-shadow: 0 -3px 18px #172b4d03; }
  .gp-mobile-link { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; min-height: 54px; padding: 7px 4px; font-size: .6875rem; font-weight: 550; line-height: 1.3; }
  .gp-mobile-link > .icon { width: 20px; height: 20px; }
  .gp-mobile-link:hover { background: #f7f9fd; }
  .gp-mobile-link[aria-current='page'], .gp-mobile-link.is-selected { color: #2e68d7; background: #f0f5ff; }
  body:has(.app-shell.nav-open) { overflow: hidden; }
  body:has(.gp-mobile-nav) #notice { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .view-root { padding: 24px 16px calc(100px + env(safe-area-inset-bottom)); }
  .appbar { padding-inline: 12px; gap: 7px; }
  .page-heading, .sc-heading { margin-bottom: 22px; }
  .page-heading h1, .sc-heading h1, .gp-notification-header h1 { font-size: 1.65rem; }
  .page-heading p, .sc-heading p { font-size: .8125rem; }
  .card, .sc-panel { padding: 19px; border-radius: 12px; }
  .card h2, .sc-panel h2 { font-size: 1rem; }
  .btn, .sc-btn { min-height: 44px; font-size: .8125rem; padding: 10px 13px; }
  .tabs, .sc-tabs { gap: 19px; margin-bottom: 21px; }
  .tabs button, .sc-tabs button { padding: 11px 1px; }
  .dialog, .sc-dialog { border-radius: 15px; }
  .preview-strip { padding-inline: 16px; }
  .auth-panel h1 { font-size: 1.75rem; }
}
@media print {
  .gp-mobile-nav { display: none !important; }
  .view-root { padding: 0; }
}
