/* Student Hub: matches the public site design language (green #1a3a2a / gold #c8a84e, Playfair + Inter) */
.student-page { --hub-ink:#18372d; --hub-green:#1a3a2a; --hub-green2:#2d5a3d; --hub-light:#3d7a5a; --hub-gold:#c8a84e; --hub-gold-light:#e8c84e; --hub-paper:#f4f7f4; --hub-muted:#718078; --hub-line:#e5eae5; background:var(--hub-paper); font-family:'Inter',sans-serif; color:#1c2c25; min-height:100vh; }

/* top bar + header (mirrors index.html) */
.student-topbar { background:#142e21; color:#d7e2da; font-size:.78rem; }
.student-topbar-inner { width:min(1200px,calc(100% - 40px)); margin:auto; min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.topbar-loc { display:inline-flex; align-items:center; gap:8px; }
.topbar-loc i { color:var(--hub-gold-light); }
.topbar-motto { font-family:'Playfair Display',serif; font-style:italic; color:var(--hub-gold-light); }
.student-header { background:#fff; box-shadow:0 2px 14px rgba(20,45,33,.08); position:sticky; top:0; z-index:60; }
.student-header-inner { width:min(1200px,calc(100% - 40px)); margin:auto; min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.student-brand { display:flex; align-items:center; gap:13px; color:var(--hub-ink); }
.brand-crest { width:48px; height:48px; display:block; background:#fff; border:1.5px solid rgba(200,168,78,.55); border-radius:12px; overflow:hidden; box-shadow:0 3px 10px rgba(20,45,33,.14); }
.brand-crest img { width:100%; height:100%; object-fit:cover; display:block; }
.brand-text strong { display:block; font:700 .95rem 'Playfair Display',serif; letter-spacing:.05em; }
.brand-text small { display:block; color:#68806f; margin-top:2px; font-size:.7rem; }
.student-top-nav { display:flex; align-items:center; gap:26px; font-size:.9rem; font-weight:500; color:#33473b; }
.student-top-nav a { position:relative; padding:6px 0; }
.student-top-nav a::after { content:''; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--hub-gold),var(--hub-gold-light)); transform:scaleX(0); transform-origin:0 50%; transition:transform .35s cubic-bezier(.22,.61,.36,1); }
.student-top-nav a:hover { color:var(--hub-green2); }
.student-top-nav a:hover::after, .student-top-nav a.active::after { transform:scaleX(1); }
.student-top-nav a.active { color:var(--hub-green); font-weight:600; }

/* auth layout */
.student-app { min-height:calc(100vh - 116px); }
.auth-shell { width:min(1180px,calc(100% - 48px)); margin:34px auto 46px; min-height:620px; display:grid; grid-template-columns:minmax(0,1.04fr) minmax(400px,.96fr); border-radius:22px; overflow:hidden; background:#fff; border:1px solid rgba(200,168,78,.28); box-shadow:0 30px 80px rgba(20,45,33,.16); }

/* brand side: the big crest */
.brand-panel { position:relative; overflow:hidden; display:flex; color:#fff; padding:52px 46px; background:radial-gradient(900px 520px at -12% -12%, rgba(232,200,78,.22), transparent 55%), radial-gradient(760px 540px at 112% 112%, rgba(61,122,90,.55), transparent 62%), linear-gradient(150deg,#12291e,#1a3a2a 46%,#2d5a3d); }
.brand-panel::before { content:''; position:absolute; inset:auto -130px -150px auto; width:440px; height:440px; opacity:.08; background:url('assets/logo/gold-refinery-hall-logo.png') center/contain no-repeat; filter:grayscale(1) brightness(3.2); pointer-events:none; }
.brand-panel-inner { position:relative; z-index:1; margin:auto 0; width:100%; max-width:440px; }
.brand-crest-lg { display:grid; place-items:center; width:122px; height:122px; border-radius:26px; overflow:hidden; background:#fff; box-shadow:0 0 0 2px var(--hub-gold), 0 0 0 9px rgba(232,200,78,.16), 0 24px 48px rgba(8,20,14,.5); margin-bottom:28px; }
.brand-crest-lg img { width:100%; height:100%; object-fit:cover; }
.brand-name h2 { font:700 2.1rem/1.15 'Playfair Display',serif; letter-spacing:.01em; margin:0; }
.brand-rule { display:block; width:64px; height:3px; border-radius:3px; background:linear-gradient(90deg,var(--hub-gold),var(--hub-gold-light)); margin:14px 0 12px; }
.brand-name p { margin:0; color:#b9cfc0; font-size:.85rem; letter-spacing:.05em; }
.brand-tagline { margin:20px 0 0; color:#cfe0d4; font-size:.95rem; line-height:1.7; }
.auth-benefits { list-style:none; margin:26px 0 0; padding:0; display:grid; gap:13px; color:#e6efe7; font-size:.88rem; font-weight:500; }
.auth-benefits li { display:flex; align-items:center; gap:10px; }
.auth-benefits i { width:22px; height:22px; flex:none; display:inline-grid; place-items:center; border-radius:50%; background:rgba(232,200,78,.16); box-shadow:inset 0 0 0 1px rgba(232,200,78,.42); color:var(--hub-gold-light); font-size:.66rem; }
.brand-motto { display:flex; align-items:center; gap:12px; margin-top:44px; color:#8fa89a; font-size:.64rem; letter-spacing:.22em; }
.brand-motto i { color:var(--hub-gold); font-size:.9rem; }

/* login card side */
.auth-card { background:#fff; display:flex; flex-direction:column; justify-content:center; padding:48px 54px; }
.auth-card-brand { text-align:center; margin-bottom:24px; }
.auth-crest { display:inline-grid; place-items:center; width:76px; height:76px; border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 0 0 2px rgba(200,168,78,.75), 0 12px 26px rgba(20,45,33,.16); }
.auth-crest img { width:100%; height:100%; object-fit:cover; }
.auth-card-brand h3 { font:700 1.7rem 'Playfair Display',serif; color:var(--hub-ink); margin:14px 0 4px; }
.auth-card-brand small { color:#748078; font-size:.82rem; }

/* tabs: proper tab bar across the top of the form area */
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #e3e8e2; margin-bottom:24px; }
.auth-tab { position:relative; border:0; background:transparent; padding:12px 8px 14px; font:600 .95rem 'Inter',sans-serif; color:#75817a; cursor:pointer; transition:color .3s, background .3s; }
.auth-tab i { margin-right:8px; font-size:.85rem; color:#a8b3ac; transition:color .3s; }
.auth-tab::after { content:''; position:absolute; left:14%; right:14%; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:linear-gradient(90deg,var(--hub-gold),var(--hub-gold-light)); transform:scaleX(0); transform-origin:50% 50%; transition:transform .35s cubic-bezier(.22,.61,.36,1); }
.auth-tab:hover { color:var(--hub-green2); }
.auth-tab.active { color:var(--hub-ink); font-weight:700; }
.auth-tab.active i { color:var(--hub-gold); }
.auth-tab.active::after { transform:scaleX(1); }

/* form */
.auth-title { font:700 1.5rem 'Playfair Display',serif; color:var(--hub-ink); margin:2px 0 5px; }
.auth-subtitle { color:#748078; font-size:.88rem; margin:0 0 20px; }
.portal-form { display:grid; gap:14px; }
.portal-form .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.portal-form label { display:grid; gap:6px; color:#35483d; font-size:.78rem; font-weight:600; }
.portal-form input,.portal-form select,.portal-form textarea { width:100%; min-height:46px; border:1px solid #dfe5df; border-radius:9px; padding:10px 13px; font:500 .9rem 'Inter',sans-serif; color:#23382d; background:#fff; outline:none; }
.portal-form textarea { min-height:92px; resize:vertical; font-family:inherit; }
.portal-form input:focus,.portal-form select:focus,.portal-form textarea:focus { border-color:#57916e; box-shadow:0 0 0 3px rgba(45,90,61,.12); }
.portal-form input::placeholder,.portal-form textarea::placeholder { color:#a6afa8; }
.form-note { color:#7a877f; font-size:.73rem; line-height:1.5; margin:0; }
.form-submit,.hub-button { display:inline-flex; justify-content:center; align-items:center; gap:9px; border:0; border-radius:9px; padding:13px 17px; background:linear-gradient(120deg,var(--hub-green),var(--hub-green2)); color:#fff; font:700 .9rem 'Inter',sans-serif; cursor:pointer; transition:.25s; box-shadow:0 8px 20px rgba(26,58,42,.22); }
.form-submit:hover,.hub-button:hover { background:linear-gradient(120deg,#2d5a3d,#3d7a5a); transform:translateY(-1px); box-shadow:0 12px 26px rgba(45,90,61,.32); }
.form-submit { width:100%; margin-top:4px; }
.form-submit:disabled { background:#c7d0ca; box-shadow:none; cursor:not-allowed; transform:none; }
.form-error,.form-success { min-height:20px; font-size:.82rem; margin:0; }
.form-error { color:#a8372c; }.form-success { color:#216a46; }
.demo-disclaimer { display:flex; gap:9px; color:#8c938e; font-size:.72rem; line-height:1.55; margin:20px 0 0; padding-top:16px; border-top:1px solid #edf0ed; }
.demo-disclaimer i { color:var(--hub-gold); margin-top:2px; }

/* footer */
.student-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; width:min(1200px,calc(100% - 40px)); margin:auto; padding:18px 0 22px; border-top:1px solid #e6e9e4; color:#8a938d; font-size:.75rem; }
.student-footer a { color:#53675b; font-weight:500; }
.student-footer a:hover { color:var(--hub-green2); }

/* shared bits still used on the dashboard */
.student-eyebrow { color:#987b2b; text-transform:uppercase; letter-spacing:.14em; font-weight:700; font-size:.73rem; }
.student-eyebrow i { margin-right:7px; }

/* signed-in dashboard */
.hub-dashboard { max-width:1240px; padding:34px 24px 70px; margin:auto; }
.hub-welcome { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:27px 32px; color:#fff; border-radius:16px; background:radial-gradient(circle at 85% 0%,rgba(232,200,78,.2),transparent 29%),linear-gradient(120deg,#142e21,#2d5a3d); box-shadow:0 14px 35px rgba(20,45,33,.18); }
.hub-welcome h1 { font:700 clamp(1.65rem,3vw,2.35rem)/1.15 'Playfair Display',serif; margin:8px 0 6px; }.hub-welcome p { margin:0; color:#cfddd4; font-size:.9rem; }
.hub-welcome .student-eyebrow { color:var(--hub-gold-light); }.welcome-side { text-align:right; }.welcome-side .hub-button { background:#fff; color:var(--hub-ink); white-space:nowrap; }.welcome-side .hub-button:hover { background:#efe7ce; }
.hub-profile-strip { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:19px; padding:15px 19px; background:#fff; border:1px solid var(--hub-line); border-radius:10px; color:#627168; font-size:.78rem; }.hub-profile-strip span { display:inline-flex; align-items:center; gap:7px; }.hub-profile-strip i { color:#a48635; }
.hub-section { margin-top:34px; }.hub-section-head { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:15px; }.hub-section-head h2 { font:700 1.55rem 'Playfair Display',serif; color:#1c3b2d; margin:0; }.hub-section-head p { color:#818b84; margin:4px 0 0; font-size:.82rem; }.hub-kicker { color:#a1873e; font-weight:700; text-transform:uppercase; letter-spacing:.12em; font-size:.67rem; }
.hub-resource-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.hub-resource { padding:17px; min-height:151px; border-radius:12px; background:#fff; border:1px solid var(--hub-line); display:flex; flex-direction:column; transition:.2s; overflow:hidden; }
.hub-resource:hover { transform:translateY(-3px); border-color:#c9d9ca; box-shadow:0 10px 24px rgba(26,58,42,.08); }
.hub-resource-img { width:calc(100% + 34px); margin:-17px -17px 12px; height:120px; overflow:hidden; background:#eaf0ea; }
.hub-resource-img img { width:100%; height:100%; object-fit:cover; display:block; }
.hub-resource-icon { width:39px; height:39px; border-radius:11px; display:grid; place-items:center; background:#edf3e9; color:var(--hub-green2); font-size:1rem; flex:none; }
.hub-resource h3 { font-size:.93rem; color:#213d2f; margin:11px 0 4px; }
.hub-resource-meta { display:inline-flex; align-items:center; gap:5px; font-size:.69rem; font-weight:700; color:#846820; background:#faf4e3; padding:3px 8px; border-radius:5px; margin:4px 0 7px; width:fit-content; }
.hub-resource p { color:#7b867f; font-size:.77rem; line-height:1.5; margin:0; }
.hub-resource .resource-link { color:#397350; font-size:.76rem; font-weight:700; margin-top:auto; padding-top:12px; display:inline-flex; align-items:center; }
.resource-link i { font-size:.68rem; margin-left:5px; }
.hub-lower-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:16px; align-items:start; }
.hub-panel { background:#fff; border:1px solid var(--hub-line); border-radius:12px; padding:20px; }
.hub-panel h3 { font:700 1.15rem 'Playfair Display',serif; color:#213d2f; margin:0; }
.hub-panel-intro { color:#818b84; font-size:.78rem; margin:5px 0 15px; }
.announcement-list { display:grid; gap:10px; }
.announcement { display:grid; grid-template-columns:40px 1fr; gap:11px; padding:12px; border-radius:9px; background:#f8faf7; }
.announcement-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:#f2ecd9; color:#997c2f; }
.announcement h4 { margin:0 0 3px; font-size:.86rem; color:#294635; }
.announcement p { margin:0; font-size:.76rem; line-height:1.5; color:#78847c; }
.bus-list { display:grid; gap:0; }
.bus-row { display:flex; justify-content:space-between; gap:12px; padding:11px 2px; border-bottom:1px solid #edf0ed; font-size:.8rem; }
.bus-row:last-child { border:0; }
.bus-row strong { color:#284533; }
.bus-row span { color:#748078; text-align:right; }
.bus-caveat { margin:12px 0 0; padding:10px; border-radius:8px; color:#796728; background:#f8f4e7; font-size:.7rem; line-height:1.45; }
.election-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:14px; }
.election-status { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border-radius:20px; background:#e9f4eb; color:#267349; font-size:.7rem; font-weight:700; white-space:nowrap; }
.election-status.closed { color:#8a554e; background:#f6e9e7; }
.poll-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.poll-card { border:1px solid var(--hub-line); border-radius:11px; padding:17px; background:#fff; }
.poll-card h3 { margin:0 0 4px; color:#264332; font-size:.98rem; }
.poll-card .poll-vote-count { color:#8b958d; font-size:.72rem; margin-bottom:12px; }
/* Which candidate this student backed. The chosen radio shows it too, but a
   sentence survives a page reload and reads the same on a phone. */
.poll-card .poll-your-vote { color:#216a46; font-size:.78rem; margin:-4px 0 12px; }
.poll-card .poll-your-vote:empty { display:none; }
.poll-card .poll-your-vote i { margin-right:5px; }
.candidate-list { display:grid; gap:8px; }
.candidate-option { display:flex; justify-content:space-between; gap:12px; align-items:center; border:1px solid #e5eae5; padding:9px 10px; border-radius:8px; font-size:.8rem; color:#43564a; }
.candidate-option label { display:flex; align-items:center; gap:8px; cursor:pointer; }
.candidate-option input { accent-color:#2d5a3d; }
.candidate-option.is-voted { border-color:#8bb49a; background:#f1f7f1; }
.candidate-result { color:#758279; font-size:.72rem; }
.poll-submit { margin-top:11px; width:100%; }
.graduated-card { width:min(600px,calc(100% - 36px)); margin:60px auto; padding:40px 36px; text-align:center; background:white; border-radius:18px; border:1px solid rgba(200,168,78,.3); box-shadow:0 15px 45px rgba(20,45,33,.1); }
.grad-crest { display:inline-grid; place-items:center; width:64px; height:64px; border-radius:15px; overflow:hidden; background:#fff; box-shadow:0 0 0 2px rgba(200,168,78,.7), 0 10px 22px rgba(20,45,33,.14); margin-bottom:16px; }
.grad-crest img { width:100%; height:100%; object-fit:cover; }
.graduated-card .icon { color:#a58634; font-size:2rem; }
.graduated-card h1 { font:700 2rem 'Playfair Display',serif; color:var(--hub-ink); }
.graduated-card p { color:#718078; line-height:1.6; }
.complete-access { border:1px solid #e4e8e3; border-radius:8px; color:#77837b; background:#fff; padding:9px 12px; font:600 .78rem 'Inter',sans-serif; cursor:pointer; }
.complete-access:hover { border-color:#c9938d; color:#a04439; }

/* ==========================================================================
   GRIEVANCE DESK: Student Hub Layout & Cards
   ========================================================================== */
.hub-grievance-layout { display:grid; grid-template-columns:minmax(300px,1fr) minmax(340px,1.2fr); gap:18px; align-items:start; }
.hub-grievance-form-panel .hub-panel, .hub-grievance-history-panel .hub-panel { background:#fff; border:1px solid var(--hub-line); border-radius:12px; padding:22px; }
.hub-grievance-filters { display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.hub-filter-pill { border:1px solid #dfe5df; background:#f4f7f4; color:#5c6e62; padding:6px 12px; border-radius:18px; font:600 .76rem 'Inter',sans-serif; cursor:pointer; transition:.2s; }
.hub-filter-pill:hover { background:#e7efe7; color:#224030; }
.hub-filter-pill.active { background:var(--hub-green); color:#fff; border-color:var(--hub-green); }

.student-grievance-list { display:grid; gap:12px; }
.student-grievance-item { background:#fafcfa; border:1px solid #e7ede7; border-left:4px solid var(--hub-green); border-radius:10px; padding:15px; transition:all .2s; }
.student-grievance-item.pending { border-left-color:#e6a117; }
.student-grievance-item.in-progress { border-left-color:#2980b9; }
.student-grievance-item.resolved { border-left-color:#27ae60; }
.student-grievance-item.closed { border-left-color:#7f8c8d; }

.s-grievance-top { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.s-grievance-tags { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.s-gid { font-family:monospace; font-weight:700; color:#8a6c23; background:#fcf7e6; padding:2px 6px; border-radius:4px; font-size:.72rem; }
.s-status-badge { padding:2px 8px; border-radius:10px; font-size:.66rem; font-weight:700; text-transform:uppercase; letter-spacing:.02em; }
.s-status-badge.pending { background:#fef6e0; color:#b78103; }
.s-status-badge.in-progress { background:#e8f4fc; color:#1b6ca8; }
.s-status-badge.resolved { background:#eaf7ee; color:#228c4e; }
.s-status-badge.closed { background:#f0f2f1; color:#5b6961; }

.s-priority-badge { padding:2px 7px; border-radius:10px; font-size:.66rem; font-weight:700; }
.s-priority-badge.priority-urgent { background:#fdeeed; color:#c0392b; }
.s-priority-badge.priority-high { background:#fef4e6; color:#c0730b; }
.s-priority-badge.priority-normal { background:#edf4f9; color:#2980b9; }
.s-cat-badge { font-size:.68rem; color:#607366; background:#f0f4f0; padding:2px 6px; border-radius:4px; }
.s-date { color:#8d9a90; font-size:.72rem; display:inline-flex; align-items:center; gap:4px; }

.s-subject { font-size:.96rem; color:#1c3b2d; margin:0 0 4px; font-weight:700; }
.s-desc { color:#55665b; font-size:.8rem; line-height:1.55; margin:0 0 8px; }
.s-location { font-size:.75rem; color:#627568; display:inline-flex; align-items:center; gap:5px; margin-bottom:10px; }
.s-location i { color:#a48633; }

.s-admin-action-callout { background:#f3f9f4; border:1px solid #cde6d4; border-radius:8px; padding:10px 12px; margin-top:8px; }
.s-admin-action-callout.in-progress { background:#f0f7fc; border-color:#c8e1f5; }
.s-admin-action-callout.resolved { background:#f0f9f2; border-color:#c2ebd0; }
.s-action-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:5px; font-size:.74rem; font-weight:700; color:#205e38; }
.s-admin-action-callout.in-progress .s-action-head { color:#1b6ca8; }
.s-action-title { display:inline-flex; align-items:center; gap:5px; }
.s-action-time { color:#758d7d; font-weight:500; font-size:.7rem; }
.s-action-text { font-size:.8rem; color:#234731; line-height:1.5; margin:0 0 5px; }
.s-action-handler { font-size:.72rem; color:#4a7359; display:inline-flex; align-items:center; gap:4px; }

.s-admin-pending-callout { display:flex; align-items:flex-start; gap:10px; background:#fffbf0; border:1px dashed #eedaad; border-radius:8px; padding:9px 12px; font-size:.75rem; color:#846820; margin-top:8px; }
.s-admin-pending-callout i { font-size:.9rem; color:#c7961b; margin-top:2px; flex:none; }
.s-admin-pending-callout strong { display:block; color:#6b5212; margin-bottom:2px; }
.s-admin-pending-callout p { margin:0; line-height:1.45; }

.empty-student-grievance { text-align:center; padding:30px 16px; color:#78867c; }
.empty-student-grievance i { font-size:2.2rem; color:#9db1a3; margin-bottom:10px; }
.empty-student-grievance h4 { color:#224030; font-size:1.05rem; margin:0 0 4px; }
.empty-student-grievance p { font-size:.8rem; margin:0; line-height:1.5; }

/* responsive */
@media(max-width:1050px) {
  .auth-shell { grid-template-columns:1fr; min-height:0; }
  .brand-panel { padding:44px 40px; }
  .brand-panel-inner { max-width:560px; margin:0 auto; }
  .brand-crest-lg { width:96px; height:96px; margin-bottom:22px; }
  .brand-name h2 { font-size:1.75rem; }
  .brand-tagline { font-size:.9rem; }
  .auth-benefits { grid-template-columns:repeat(3,1fr); gap:10px; margin-top:22px; }
  .auth-benefits li { flex-direction:column; text-align:center; gap:8px; font-size:.8rem; }
  .brand-motto { justify-content:center; margin-top:30px; }
  .auth-card { padding:38px 36px; }
  .hub-grievance-layout { grid-template-columns:1fr; }
}
@media(max-width:950px) {
  .hub-resource-grid { grid-template-columns:repeat(2,1fr); }
  .hub-lower-grid { grid-template-columns:1fr; }
  .hub-grievance-layout { grid-template-columns:1fr; }
}
@media(max-width:700px) {
  .student-topbar-inner { width:calc(100% - 32px); min-height:34px; font-size:.7rem; }
  .topbar-motto { display:none; }
  .student-header-inner { width:calc(100% - 32px); min-height:66px; }
  .student-top-nav { gap:14px; font-size:.8rem; }
  .brand-text strong { font-size:.8rem; }
  .brand-text small { font-size:.63rem; }
  .brand-crest { width:40px; height:40px; }
  .auth-shell { width:calc(100% - 28px); margin:20px auto 30px; border-radius:18px; }
  .brand-panel { padding:36px 26px; }
  .brand-panel::before { inset:auto -160px -170px auto; width:340px; height:340px; }
  .auth-benefits { grid-template-columns:1fr; }
  .auth-benefits li { flex-direction:row; text-align:left; }
  .auth-card { padding:30px 22px; }
  .student-footer { width:calc(100% - 36px); flex-direction:column; gap:8px; }
  .portal-form .form-grid { grid-template-columns:1fr 1fr; }
  .hub-dashboard { padding:20px 16px 50px; }
  .hub-welcome { align-items:flex-start; padding:22px; flex-direction:column; }
  .welcome-side { text-align:left; }
  .hub-profile-strip { gap:10px 15px; }
  .hub-section-head { align-items:flex-start; flex-direction:column; }
  .poll-grid { grid-template-columns:1fr; }
  .s-grievance-top { flex-direction:column; align-items:flex-start; }
}
@media(max-width:430px) {
  .student-top-nav { gap:10px; }
  .portal-form .form-grid { grid-template-columns:1fr; }
  .hub-resource-grid { gap:9px; grid-template-columns:1fr; }
  .hub-resource { min-height:140px; padding:13px; }
  .hub-welcome .hub-button { white-space:normal; }
}

/* ==========================================================================
   SIGNED-IN AREA: members-only page, header controls and the pop-up dialog
   ========================================================================== */
.dashboard-page .student-app { min-height: calc(100vh - 200px); }
.student-header-actions { display: flex; align-items: center; gap: 12px; }
.student-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; background: #f2f5f1; border: 1px solid var(--hub-line); color: #3c5346; font-size: .78rem; font-weight: 600; }
.student-chip i { color: #a4862f; }
.hub-button-small { padding: 9px 15px; border-radius: 20px; font-size: .8rem; }
.dashboard-page .hub-dashboard { padding-bottom: 60px; }

/* pop-up dialog (account created, confirmations) */
.gh-dialog-open { overflow: hidden; }
.gh-dialog-backdrop { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 24px; background: rgba(10, 24, 16, .58); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .26s ease, visibility .26s; }
.gh-dialog-backdrop.open { opacity: 1; visibility: visible; }
.gh-dialog { position: relative; width: min(520px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 18px; border-top: 4px solid var(--hub-gold); box-shadow: 0 30px 80px rgba(8, 20, 14, .45); padding: 32px 32px 26px; text-align: center; transform: translateY(16px) scale(.97); transition: transform .32s cubic-bezier(.22, .61, .36, 1); outline: none; }
.gh-dialog-backdrop.open .gh-dialog { transform: none; }
.gh-dialog.gh-tone-warn { border-top-color: #b6473a; }
.gh-dialog-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; font-size: 1.6rem; color: #25714a; background: linear-gradient(135deg, #eaf6ec, #d6ecdd); box-shadow: 0 0 0 7px rgba(45, 122, 84, .08); }
.gh-dialog.gh-tone-warn .gh-dialog-icon { color: #a83c30; background: linear-gradient(135deg, #fbeceb, #f6ded9); box-shadow: 0 0 0 7px rgba(168, 60, 48, .08); }
.gh-dialog-eyebrow { display: block; color: #a1873e; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; margin-bottom: 8px; }
.gh-dialog h2 { font: 700 1.6rem/1.2 'Playfair Display', serif; color: var(--hub-ink); margin: 0 0 10px; }
.gh-dialog-body { color: #6d7c74; font-size: .89rem; line-height: 1.7; margin: 0; }
.gh-dialog-body strong { color: #2f4a3b; }
.gh-dialog-details { margin: 20px 0 0; border: 1px solid #e9eee9; border-radius: 11px; overflow: hidden; text-align: left; }
.gh-dialog-details div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; background: #fafcf9; font-size: .82rem; }
.gh-dialog-details div:nth-child(odd) { background: #f4f8f3; }
.gh-dialog-details span { color: #7b8880; }
.gh-dialog-details strong { color: #294635; text-align: right; }
.gh-dialog-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.gh-dialog-actions .form-submit { margin-top: 0; }
.gh-dialog-ghost { border: 1px solid #e0e6e0; background: #fff; border-radius: 9px; padding: 12px 16px; color: #6f7d75; font: 600 .86rem 'Inter', sans-serif; cursor: pointer; transition: .25s; }
.gh-dialog-ghost:hover { border-color: #c9d3ca; color: #43604f; background: #f7faf6; }

/* six-tab header on small screens: wrap onto its own scrollable row */
@media (max-width: 950px) {
  .student-header-inner { flex-wrap: wrap; padding: 10px 0; row-gap: 6px; }
  .student-top-nav { flex: 1 1 100%; order: 3; gap: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .student-top-nav::-webkit-scrollbar { display: none; }
  .student-top-nav a { white-space: nowrap; }
  .student-header-actions { margin-left: auto; }
}

@media (max-width: 700px) {
  .student-header-actions { gap: 8px; }
  .student-chip { display: none; }
  .gh-dialog { padding: 26px 20px 22px; border-radius: 14px; }
  .gh-dialog h2 { font-size: 1.35rem; }
  .gh-dialog-details div { flex-direction: column; gap: 3px; }
  .gh-dialog-details strong { text-align: left; }
}

/* Student Hub sections */
.hub-tabs-wrap { margin-top: 28px; }
.hub-tabs { display: flex; align-items: stretch; gap: 8px; margin-bottom: 24px; padding: 0 4px; border-bottom: 1px solid #dfe7df; overflow-x: auto; scrollbar-width: thin; }
.hub-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 0 0 auto; min-height: 52px; padding: 12px 17px; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: #68786d; font: 600 .88rem 'Inter', sans-serif; cursor: pointer; transition: color .2s ease, background .2s ease; white-space: nowrap; }
.hub-tab:hover { color: var(--hub-green2); background: #edf3ed; }
.hub-tab:focus-visible { outline: 3px solid rgba(45, 90, 61, .28); outline-offset: -3px; }
.hub-tab.active { color: var(--hub-ink); background: #fff; box-shadow: inset 0 -3px 0 var(--hub-gold); }
.hub-tab.active i { color: #a48635; }
.hub-tab-panel[hidden] { display: none !important; }
.hub-tab-panel { padding: 2px 0 4px; }
.hub-tab-panel > .hub-section-head { margin: 0 0 17px; }
.hub-tab-panel .hub-resource-grid + .hub-subsection-head { margin-top: 34px; }
.poll-section-title { margin: 4px 0 0; color: #1c3b2d; font: 700 1.55rem 'Playfair Display', serif; }
.poll-section-intro { margin: 4px 0 0; color: #818b84; font-size: .82rem; }
@media (max-width: 700px) {
  .hub-tabs-wrap { margin-top: 22px; }
  .hub-tabs { gap: 3px; margin: 0 -2px 18px; }
  .hub-tab { min-height: 48px; padding: 11px 13px; font-size: .8rem; }
  .hub-tab-panel > .hub-section-head { gap: 5px; }
}

.hub-empty-note { grid-column: 1 / -1; margin: 0; padding: 18px 20px; border: 1px dashed rgba(184, 134, 11, .45); border-radius: 12px; background: #fffaf0; color: #5b4a1c; font-size: .9rem; display: flex; gap: 10px; align-items: center; }

/* ===========================================================================
   SUPABASE AUTH: links, status lines, single-column reset pages
   ========================================================================= */
.auth-shell-single { grid-template-columns: minmax(0,560px); justify-content: center; min-height:0; }
.auth-shell-single .auth-card { padding: 34px 32px 30px; }

.auth-links { margin: 2px 0 0; text-align: center; font-size: .82rem; }
.auth-link { border: 0; padding: 0; background: none; font: 600 .82rem 'Inter', sans-serif; color: var(--hub-green2, #3d7a5a); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.auth-link:hover { color: var(--hub-ink, #14301f); text-decoration: underline; }
.auth-link:focus-visible { outline: 2px solid var(--hub-gold, #d8b45c); outline-offset: 3px; border-radius: 4px; }

/* status line used by the reset and confirmation pages */
.reset-status { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #f4f7f5; border: 1px solid #dfe5df; color: #35483d; font-size: .85rem; line-height: 1.55; }
.reset-status i { margin-top: 3px; flex: none; color: #6b7a72; }
.reset-status.success { background: #f1f8f3; border-color: #c9e3d2; color: #1f5b38; }
.reset-status.success i { color: #2f8f57; }
.reset-status.warn { background: #fdf6e7; border-color: #f0dfb2; color: #7a5b16; }
.reset-status.warn i { color: #c08a1c; }
.reset-status.error { background: #fdecec; border-color: #f5c2c2; color: #a12626; }
.reset-status.error i { color: #c0392b; }

.reset-show { display: flex !important; align-items: center; gap: 9px; font-weight: 500 !important; color: #5c6d62 !important; font-size: .8rem !important; }
.reset-show input { width: auto; min-height: 0; margin: 0; }
.auth-card .form-submit + .form-submit { margin-top: 10px; }
.demo-disclaimer-warn { color:#8a5a12; border-top-color:#f0dfb2; }
.demo-disclaimer-warn i { color:#c08a1c; }
