/* GCSS app pages: profile, account, admin */
:root {
  --white: #FFFFFF; --mist: #F2F5FA; --ink: #0A1F44; --ink-soft: #4A5670; --line: #D9E0EA;
  --blue: #003DA5; --blue-dark: #002B75; --red: #E03A3E; --red-text: #B8232A; --green: #00843D; --yellow: #FFC72C; --focus: #1E6BFF;
  --ok-bg: #E6F2EA; --ok: #1F6B3A; --warn-bg: #FFF4DE; --warn: #8A5A00; --bad-bg: #FDECEA; --bad: #A3271D;
  --display: "Saira Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light; box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--white); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }
.tnum { font-variant-numeric: tabular-nums; }

.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; color: var(--blue); }
.brand span { font-size: .8rem; color: var(--ink-soft); line-height: 1.2; max-width: 15ch; border-left: 1px solid var(--line); padding-left: 10px; }
@media (max-width: 520px) { .brand span { display: none; } }
.head-right { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: .92rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--body); text-decoration: none; cursor: pointer; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--white); }
.btn:hover { background: var(--white); color: var(--blue); }
.btn.ghost { background: var(--white); color: var(--blue); }
.btn.ghost:hover { background: var(--blue); color: var(--white); }
.btn.sm { padding: 8px 14px; font-size: .86rem; }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.ok:hover { background: var(--white); color: var(--ok); }
.btn.bad { background: var(--white); border-color: var(--bad); color: var(--bad); }
.btn.bad:hover { background: var(--bad); color: var(--white); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkbtn { all: unset; cursor: pointer; color: var(--blue); font-weight: 600; }
.linkbtn:focus-visible { outline: 3px solid var(--focus); }

main { padding: clamp(28px, 5vw, 56px) 0 80px; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); background: var(--white); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.6rem; }
.panel .lead { color: var(--ink-soft); margin-top: 6px; }

form.grid { display: grid; gap: 16px; margin-top: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .two, .three { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
label .hint { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
input, select, textarea { font: 400 1rem var(--body); padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
fieldset { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0; }
legend { font-size: .9rem; font-weight: 500; padding: 0 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.checks input { width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.msg { min-height: 1.4em; font-size: .93rem; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--bad); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-soft); white-space: nowrap; }
.badge.verified { background: var(--ok-bg); color: var(--ok); }
.badge.verified::before { content: "✓"; }
.badge.submitted { background: var(--warn-bg); color: var(--warn); }
.badge.rejected, .badge.suspended { background: var(--bad-bg); color: var(--bad); }

.av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--display); color: var(--white); background: var(--blue); overflow: hidden; flex: none; }
.av.acad { border-radius: 12px; background: var(--ink); }
.av.spec { background: var(--green); }
.av img { width: 100%; height: 100%; object-fit: cover; }

.list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.list .grow { flex: 1; min-width: 0; }
.list .nm { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.note { padding: 12px 14px; border-radius: 10px; background: var(--mist); font-size: .93rem; }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.warn { background: var(--warn-bg); color: var(--warn); }

footer { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.stripe { display: grid; grid-template-columns: repeat(5, 1fr); height: 4px; }
.stripe i:nth-child(1) { background: var(--blue); } .stripe i:nth-child(2) { background: var(--yellow); }
.stripe i:nth-child(3) { background: var(--ink); } .stripe i:nth-child(4) { background: var(--green); }
.stripe i:nth-child(5) { background: var(--red); }
h1.page { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--blue); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font: 600 .92rem var(--body); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer; text-decoration: none; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab[aria-selected="true"], .tab[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip { display: inline-block; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-soft); margin: 2px 4px 2px 0; }
.kind { font-size: .78rem; font-weight: 600; color: var(--red-text); text-transform: uppercase; letter-spacing: .04em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.cardlink { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.cardlink:hover { border-color: var(--blue); }
.cardlink h3 { font-size: 1.3rem; }
.cardlink p { color: var(--ink-soft); font-size: .94rem; }
.cardlink .by { margin-top: auto; padding-top: 8px; font-size: .84rem; color: var(--ink-soft); }
.lock { font-size: .78rem; font-weight: 600; color: var(--blue); }
.prose { max-width: 70ch; font-size: 1.08rem; line-height: 1.7; }
.prose h2 { font-size: 1.6rem; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
