/* Brothers dashboard shell: left navigation, top bar, main panel and dashboard cards.
   Component styles shared with the public 50th page (forms, buttons, tables) stay in portal.css. */

:root {
	--pd-purple: #660066;
	--pd-purple-dark: #3d0a40;
	--pd-purple-deep: #2a0630;
	--pd-gold: #c29c3a;
	--pd-gold-soft: #f3e7c6;
	--pd-bg: #f5f1f6;
	--pd-surface: #ffffff;
	--pd-text: #2b2030;
	--pd-muted: #6f6475;
	--pd-line: #e6dfe9;
	--pd-radius: 14px;
	--pd-shadow: 0 6px 24px rgba(42, 6, 48, .07);
	--pd-sidebar: 264px;
}

html, body.pd-body { margin: 0; padding: 0; }
body.pd-body {
	font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pd-text);
	background: var(--pd-bg);
	-webkit-font-smoothing: antialiased;
}
.pd-body *, .pd-body *::before, .pd-body *::after { box-sizing: border-box; }
.pd-body a { color: var(--pd-purple); }
.pd-body h1, .pd-body h2, .pd-body h3 { font-family: 'Assistant', sans-serif; color: var(--pd-purple-dark); line-height: 1.2; }
.pd-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.pd-skip:focus { left: 8px; }

/* ---------- Sidebar ---------- */
.pd-sidebar {
	position: fixed; inset: 0 auto 0 0; width: var(--pd-sidebar); z-index: 40;
	display: flex; flex-direction: column;
	background: linear-gradient(180deg, var(--pd-purple-dark) 0%, var(--pd-purple-deep) 100%);
	color: #eadcef;
	transition: transform .25s ease;
}
.pd-brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; text-decoration: none !important; }
.pd-brand img { width: 44px; height: 44px; }
.pd-brand strong { display: block; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.pd-brand span { display: block; color: var(--pd-gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; }
.pd-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.pd-nav-label { margin: 18px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(234, 220, 239, .55); }
.pd-sidebar .pd-nav a {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; margin: 2px 0; border-radius: 10px;
	color: #eadcef; font-weight: 600; font-size: 15px; text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.pd-sidebar .pd-nav a .fa { width: 20px; text-align: center; font-size: 16px; color: rgba(234, 220, 239, .7); }
.pd-sidebar .pd-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pd-sidebar .pd-nav a.is-active { background: rgba(194, 156, 58, .18); color: #fff; box-shadow: inset 3px 0 0 var(--pd-gold); }
.pd-sidebar .pd-nav a.is-active .fa { color: var(--pd-gold); }
.pd-sidebar .pd-nav a .fa.pd-ext { width: auto; margin-left: auto; font-size: 11px; }
.pd-sidebar-foot { padding: 14px 12px 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pd-sidebar .pd-sidebar-foot a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #d9c9df; font-weight: 600; font-size: 14px; text-decoration: none; }
.pd-sidebar .pd-sidebar-foot a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pd-overlay { display: none; }

/* ---------- Top bar and main ---------- */
.pd-shell { margin-left: var(--pd-sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.pd-topbar {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: 14px;
	padding: 14px 28px; background: rgba(245, 241, 246, .9);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--pd-line);
}
.pd-menu-btn { display: none; border: 0; background: var(--pd-surface); width: 42px; height: 42px; border-radius: 10px; box-shadow: var(--pd-shadow); color: var(--pd-purple); font-size: 18px; cursor: pointer; }
.pd-topbar h1 { margin: 0; font-size: 24px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-user { display: flex; align-items: center; gap: 10px; color: var(--pd-text) !important; text-decoration: none !important; font-weight: 700; }
.pd-user small { display: block; color: var(--pd-muted); font-weight: 600; font-size: 12px; }
.pd-main { flex: 1; padding: 26px 28px 48px; outline: none; transition: opacity .15s ease; }
.pd-main.is-loading { opacity: .45; pointer-events: none; }
.pd-main > .portal_flash, .pd-main > .portal_error { margin-bottom: 20px; }
.pd-footer { padding: 18px 28px 26px; color: var(--pd-muted); font-size: 13px; }
.pd-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--pd-gold); z-index: 60; transition: width .3s ease, opacity .3s ease; opacity: 0; }
.pd-progress.is-active { width: 70%; opacity: 1; }

/* Legacy chapter resource pages (their own full-width template sections) */
.pd-main.pd-legacy { padding: 0; background: #fff; }

/* ---------- Avatar ---------- */
.pd-avatar {
	flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
	width: 40px; height: 40px; border-radius: 50%;
	background: linear-gradient(135deg, var(--pd-purple), #8e2a8e); color: #fff;
	font-weight: 800; font-size: 15px; letter-spacing: .5px;
}
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-avatar.lg { width: 84px; height: 84px; font-size: 28px; border: 3px solid var(--pd-gold-soft); }
.pd-avatar.sm { width: 34px; height: 34px; font-size: 13px; }

/* ---------- Dashboard grid and cards ---------- */
.pd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.pd-span-12 { grid-column: span 12; } .pd-span-8 { grid-column: span 8; } .pd-span-7 { grid-column: span 7; }
.pd-span-6 { grid-column: span 6; } .pd-span-5 { grid-column: span 5; } .pd-span-4 { grid-column: span 4; }
.pd-card { background: var(--pd-surface); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); padding: 22px 24px; min-width: 0; }
.pd-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pd-card-head h2 { margin: 0; font-size: 18px; font-weight: 800; flex: 1; }
.pd-card-head .fa { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--pd-gold-soft); color: var(--pd-purple); font-size: 15px; }
.pd-card-head a { font-size: 14px; font-weight: 700; text-decoration: none; }
.pd-muted { color: var(--pd-muted); }
.pd-empty { color: var(--pd-muted); background: #faf8fb; border: 1px dashed var(--pd-line); border-radius: 10px; padding: 14px 16px; font-size: 15px; }

.pd-profile { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.pd-profile h3 { margin: 0 0 2px; font-size: 22px; font-weight: 800; }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 18px; margin: 0; }
.pd-facts div { min-width: 0; }
.pd-facts dt { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pd-muted); }
.pd-facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }

.pd-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f1e9f3; color: var(--pd-purple); font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.pd-chip.gold { background: var(--pd-gold-soft); color: #6b4f0a; }
.pd-chip.ok { background: #e2f4e5; color: #1d6b2c; }
.pd-chip.warn { background: #fff3d6; color: #7a5a00; }
.pd-chip.bad { background: #fdecec; color: #8a1f1f; }

.pd-deans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pd-dean { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #faf6fb; border: 1px solid var(--pd-line); min-width: 0; }
.pd-dean small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pd-gold); }
.pd-dean strong { display: block; overflow-wrap: anywhere; line-height: 1.25; }
.pd-list { list-style: none; margin: 0; padding: 0; }
.pd-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1ecf3; min-width: 0; }
.pd-list li:last-child { border-bottom: 0; }
.pd-list .pd-num { flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--pd-purple); color: #fff; font-weight: 800; font-size: 13px; }
.pd-list .pd-grow { flex: 1; min-width: 0; }
.pd-list .pd-grow strong, .pd-list .pd-grow span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-list .pd-grow span { font-size: 13px; color: var(--pd-muted); }
.pd-list li.is-me { background: #fbf6e8; margin: 0 -10px; padding: 9px 10px; border-radius: 10px; }

.pd-status { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #faf6fb, #fdf9ee); border: 1px solid var(--pd-line); margin-bottom: 14px; }
.pd-status .fa { font-size: 30px; color: var(--pd-gold); }
.pd-status strong { display: block; font-size: 18px; }

.pd-search { display: grid; gap: 12px; }
.pd-search .pd-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.pd-search label { display: block; font-size: 13px; font-weight: 700; color: var(--pd-muted); }
.pd-search input, .pd-search select {
	display: block; width: 100%; margin-top: 5px; padding: 11px 12px;
	border: 1px solid #d9cfdd; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--pd-text);
}
.pd-search input:focus, .pd-search select:focus, .portal_form input:focus, .portal_form select:focus, .portal_form textarea:focus { outline: 3px solid rgba(194, 156, 58, .35); border-color: var(--pd-gold); }
.pd-search-row { display: flex; gap: 10px; }
.pd-search-row input { margin-top: 0; }

.pd-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.pd-result { background: var(--pd-surface); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pd-result-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pd-result-head h3 { margin: 0; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.pd-result-head p { margin: 0; color: var(--pd-muted); font-size: 14px; }
.pd-result .pd-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.pd-result .pd-meta li { display: flex; gap: 8px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.pd-result .pd-meta .fa { width: 16px; color: var(--pd-gold); flex: none; }
.pd-logo { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #f5f0f6; display: flex; align-items: center; justify-content: center; color: var(--pd-purple); font-size: 24px; }
.pd-logo img { width: 100%; height: 100%; object-fit: cover; }
.pd-count { margin: 18px 0 0; color: var(--pd-muted); font-weight: 700; }

.pd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pd-table-wrap .portal_table { min-width: 520px; }

/* Auth pages (signed out) */
.pd-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: radial-gradient(circle at top, #4a0d4f 0%, var(--pd-purple-deep) 60%); }
.pd-auth .pd-brand { justify-content: center; padding: 0 0 22px; }
.pd-auth-card { width: 100%; max-width: 480px; }
.pd-auth-card .portal_card { margin: 0; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.pd-auth-card .portal_card.portal_narrow { max-width: none; }
.pd-auth-foot { margin-top: 20px; }
.pd-auth .pd-auth-foot a { color: #e5d3ea; font-weight: 600; text-decoration: none; font-size: 14px; }

/* Portal components inside the new shell */
.pd-main .portal_card { border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); }
.pd-main .portal_card h2 { font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.pd-span-8, .pd-span-7, .pd-span-6, .pd-span-5, .pd-span-4 { grid-column: span 6; }
}
@media (max-width: 991px) {
	.pd-sidebar { transform: translateX(-100%); box-shadow: none; }
	.pd-sidebar.is-open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
	.pd-overlay.is-open { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(20, 4, 24, .45); }
	.pd-shell { margin-left: 0; }
	.pd-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
	.pd-topbar { padding: 12px 16px; background: var(--pd-purple); border-bottom-color: var(--pd-purple-dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
	.pd-topbar h1 { font-size: 20px; color: #fff; }
	.pd-topbar .pd-menu-btn { background: none; color: var(--pd-gold); box-shadow: none; font-size: 24px; }
	.pd-topbar .pd-menu-btn:hover { color: #e9cf7a; }
	.pd-topbar .pd-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
	.pd-user .pd-user-name { display: none; }
	.pd-main { padding: 18px 16px 40px; }
	.pd-footer { padding: 16px; }
	.pd-grid { gap: 16px; }
	.pd-span-12, .pd-span-8, .pd-span-7, .pd-span-6, .pd-span-5, .pd-span-4 { grid-column: span 12; }
}
@media (max-width: 520px) {
	.pd-card { padding: 18px 16px; }
	.pd-deans { grid-template-columns: 1fr; }
	.pd-profile { flex-direction: column; align-items: flex-start; }
	.pd-search-row { flex-direction: column; }
	.pd-results { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.pd-sidebar, .pd-main, .pd-progress { transition: none; }
}

/* ---------- Sidebar dropdown (Chapter Resources) ---------- */
.pd-nav-group { margin: 2px 0; }
.pd-nav-group > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; border-radius: 10px; color: #eadcef; font-weight: 600; font-size: 15px;
	transition: background .15s ease, color .15s ease;
}
.pd-nav-group > summary::-webkit-details-marker { display: none; }
.pd-nav-group > summary .fa:first-child { width: 20px; text-align: center; font-size: 16px; color: rgba(234, 220, 239, .7); }
.pd-nav-group > summary:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pd-nav-group > summary:focus-visible { outline: 2px solid var(--pd-gold); outline-offset: 2px; }
.pd-caret { margin-left: auto; font-size: 11px !important; transition: transform .2s ease; color: rgba(234, 220, 239, .6); }
.pd-nav-group[open] > summary .pd-caret { transform: rotate(180deg); }
.pd-nav-group:has(a.is-active) > summary { color: #fff; }
.pd-nav-group:has(a.is-active) > summary .fa:first-child { color: var(--pd-gold); }
.pd-subnav { margin: 2px 0 6px 21px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .12); }
.pd-sidebar .pd-subnav a { padding: 7px 12px; font-size: 14px; font-weight: 600; color: #d9c9df; }
.pd-sidebar .pd-subnav a .fa { width: auto; font-size: 11px; margin-left: auto; }

/* ---------- Manage Composites ---------- */
.pd-inline-num input { width: 46px; padding: 6px 4px; text-align: center; border: 1px solid #d9cfdd; border-radius: 8px; font: inherit; font-weight: 800; color: var(--pd-purple); }
.pd-btn-sm { padding: 6px 12px !important; font-size: 12px !important; }
.pd-add-row { display: grid; grid-template-columns: 1fr 70px auto; gap: 10px; align-items: end; }
.pd-add-row label { margin-bottom: 0; }
.pd-card-head .portal_btn { color: #fff !important; }
@media (max-width: 520px) { .pd-add-row { grid-template-columns: 1fr 70px; } .pd-add-row button { grid-column: span 2; } }

/* ---------- Old template pages inside the dashboard ----------
   The template drew the purple photo behind roster sections (Bloodline, L Club) with a parallax
   script that cannot line up inside the dashboard panel, which left white text on white.
   Draw it with CSS instead. */
.pd-legacy .mission {
	position: relative;
	background: var(--pd-purple-dark) url("../images/mission.jpg") center / cover no-repeat;
}
.pd-legacy .mission::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(61, 10, 64, .9) 0%, rgba(42, 6, 48, .94) 100%);
}
.pd-legacy .mission_background { display: none; }
.pd-legacy .mission_items { position: relative; z-index: 1; }
.pd-body > .parallax-mirror { display: none !important; }

/* ---------- Gold Homecoming / rivalry game card ---------- */
.pd-card.pd-card-gold {
	background: linear-gradient(135deg, #f8ecc4 0%, #ecd27f 45%, #d4ad4a 100%);
	color: #2b1d05;
	box-shadow: 0 10px 30px rgba(140, 100, 20, .25);
}
.pd-card-gold .pd-card-head h2, .pd-card-gold h3 { color: var(--pd-purple-dark); }
.pd-card-gold .pd-card-head .fa { background: var(--pd-purple); color: var(--pd-gold-soft); }
.pd-card-gold .pd-muted, .pd-card-gold .pd-game-info p { color: #5a4416; }
.pd-card-gold a:not(.portal_btn) { color: var(--pd-purple-dark); font-weight: 700; }
.pd-chip.pd-chip-code { background: var(--pd-purple); color: #fff; letter-spacing: .8px; }
.pd-game { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.pd-game-date { flex: none; width: 74px; height: 74px; border-radius: 16px; background: var(--pd-purple); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(61, 10, 64, .3); }
.pd-game-date strong { font-size: 28px; line-height: 1; }
.pd-game-date span { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; color: var(--pd-gold-soft); }
.pd-game-info h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.pd-game-info p { margin: 0; font-weight: 600; }
.pd-game-countdown { margin-top: 6px !important; display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 13px; }
.pd-game-reg { background: rgba(255, 255, 255, .6); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.pd-game-reg-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.pd-card-gold .portal_metrics div { background: rgba(255, 255, 255, .75); }
.pd-card-gold .pd-status { background: rgba(255, 255, 255, .6); border-color: rgba(120, 90, 20, .2); }
.pd-card-gold .pd-status .fa { color: var(--pd-purple); }
.pd-card-gold .pd-empty { background: rgba(255, 255, 255, .5); border-color: rgba(120, 90, 20, .3); color: #5a4416; }
.pd-game-summary { cursor: pointer; font-weight: 700; color: var(--pd-purple-dark); }
.pd-game-more { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(90, 68, 22, .2); font-size: 14px; }
@media (max-width: 520px) { .pd-game { align-items: flex-start; } .pd-game-date { width: 60px; height: 60px; } }
.pd-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; }
.pd-card-link { margin-top: auto; font-size: 14px; font-weight: 700; text-decoration: none; }
/* Gold life member badges (LM#, DLM#) */
.pd-chip.pd-chip-lm { background: linear-gradient(135deg, #e9cf7a, #c29c3a); color: var(--pd-purple); border: 1px solid #b38a2a; }
/* Homecoming card image (season flyer, event image or the placeholder) */
.pd-game-body { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 22px; align-items: start; }
.pd-game-main { min-width: 0; }
.pd-game-media { border-radius: 14px; overflow: hidden; background: var(--pd-purple-dark); box-shadow: 0 8px 22px rgba(61, 10, 64, .25); aspect-ratio: 8 / 5; }
.pd-game-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .pd-game-body { grid-template-columns: 1fr; } }
.pd-sub-field { margin-top: -6px; padding-left: 12px; border-left: 3px solid var(--pd-gold-soft); font-weight: 600 !important; font-size: 14px; }

/* ---------- Full-width banner (Homecoming 2027 · 50th) ---------- */
.pd-banner {
	position: relative; margin: -26px -28px 24px; min-height: clamp(200px, 30vw, 360px);
	background: var(--pd-purple-dark) center / cover no-repeat;
	display: flex; align-items: flex-end;
}
.pd-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 6, 48, 0) 35%, rgba(42, 6, 48, .85) 100%); }
.pd-banner-text { position: relative; z-index: 1; padding: 24px 28px; color: #fff; }
.pd-banner-text h2 { color: #fff; margin: 8px 0 4px; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.pd-banner-text p { margin: 0; color: var(--pd-gold-soft); font-weight: 700; }
@media (max-width: 991px) { .pd-banner { margin: -18px -16px 18px; } .pd-banner-text { padding: 18px 16px; } }

/* ---------- Omega Chapter ---------- */
.pd-omega-intro { text-align: center; margin-bottom: 4px; }
.pd-omega-quote { font-family: 'Old Standard TT', Georgia, serif; font-style: italic; font-size: 22px; color: var(--pd-purple-dark); margin: 0 0 6px; }
.pd-omega-card { align-items: center; text-align: center; border-top: 4px solid var(--pd-gold); }
.pd-omega-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; border: 4px solid var(--pd-gold-soft); box-shadow: 0 6px 18px rgba(61, 10, 64, .2); display: flex; align-items: center; justify-content: center; background: #f5f0f6; }
.pd-omega-photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-omega-photo .pd-avatar.lg { width: 100%; height: 100%; border: 0; font-size: 40px; }
.pd-omega-card h3 { margin: 4px 0 0; font-size: 19px; font-weight: 800; }
.pd-omega-dates { margin: 0; font-weight: 700; color: var(--pd-purple-dark); }
.pd-omega-dates span { color: var(--pd-gold); text-transform: uppercase; font-size: 12px; letter-spacing: 1.4px; }
.pd-omega-card .pd-meta { justify-items: center; }
.pd-omega-link { margin-top: auto; }

/* ---------- L Club ---------- */
.pd-sport { margin-top: 28px; }
.pd-sport > h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin: 0; padding-bottom: 8px; border-bottom: 3px solid var(--pd-gold-soft); }
.pd-sport > h2 .fa { color: var(--pd-gold); }
.pd-player .pd-result-head p { color: var(--pd-purple); font-weight: 700; }
.pd-omega-banner { width: calc(100% + 36px); margin: -18px -18px 4px; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--pd-radius) var(--pd-radius) 0 0; background: var(--pd-purple-dark); }
.pd-omega-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Registration open/closed switch (homecoming and rivalry games) */
.pd-switch-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 12px; }
.portal_table .pd-switch-form { margin: 8px 0 0; }
.pd-switch { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.pd-switch-track { position: relative; width: 44px; height: 24px; flex: none; border-radius: 999px; background: #b9aebd; transition: background .2s; }
.pd-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.pd-switch[aria-checked="true"] .pd-switch-track { background: #2e7d32; }
.pd-switch[aria-checked="true"] .pd-switch-track::after { transform: translateX(20px); }
.pd-switch:focus-visible .pd-switch-track { outline: 2px solid var(--pd-gold); outline-offset: 2px; }
#card-game { scroll-margin-top: 110px; }

/* Tables that turn into one card per row on phones (Approve Brothers). Cells label themselves with data-label. */
.pd-approve-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 767px) {
	.pd-stack-table, .pd-stack-table tbody, .pd-stack-table tr, .pd-stack-table td { display: block; width: 100%; }
	.pd-stack-table tr:first-child { display: none; }
	.pd-stack-table tr { margin: 0 0 14px; padding: 14px 16px; border: 1px solid rgba(61, 10, 64, .12); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(61, 10, 64, .06); }
	.pd-stack-table td { border: 0 !important; padding: 6px 0 !important; overflow-wrap: anywhere; }
	.pd-stack-table td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
	.pd-stack-table td[data-label]::before { content: attr(data-label); flex: none; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #7a6a80; }
	.pd-stack-table td[data-label] > *:not(:first-child) { text-align: right; }
	.pd-stack-table .pd-stack-title { padding-bottom: 10px !important; margin-bottom: 4px; border-bottom: 1px solid rgba(61, 10, 64, .1) !important; }
	.pd-stack-table .portal_role_form select { max-width: 60vw; }
	.pd-stack-table .pd-stack-actions:empty { display: none; }
	.pd-stack-table .pd-approve-actions { display: flex; width: 100%; padding-top: 6px; }
	.pd-stack-table .pd-approve-actions .portal_btn { flex: 1; text-align: center; }
	.pd-stack-table td.portal_actions { display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; padding-top: 10px !important; }
	.pd-stack-table td.portal_actions form { display: contents !important; }
	.pd-stack-table td.portal_actions .portal_btn { flex: 1 1 28%; width: auto; min-width: 0; margin: 0; padding: 11px 8px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 13px; }
	.pd-stack-table td[data-label]::before { margin-right: auto; }
	.pd-stack-table td.pd-stack-wrap { flex-wrap: wrap; }
	.pd-stack-table td.pd-stack-wrap .pd-switch-form { flex-basis: 100%; justify-content: flex-end; margin: 4px 0 0; }
	.pd-stack-table .pd-stack-hide { display: none !important; }
	.pd-stack-table td:not([data-label]):not(.pd-stack-title):not(.portal_actions):not(.pd-stack-actions) { text-align: center; }
}
.pd-stack-only { display: none; }
@media (max-width: 767px) { .pd-stack-table .pd-stack-only { display: inline; } }

/* ---------- Chapter Overview ---------- */
.ov-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.ov-kpi { background: var(--pd-surface); border-radius: 14px; box-shadow: var(--pd-shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--pd-gold); }
.ov-kpi span { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--pd-muted); }
.ov-kpi strong { font-size: 32px; line-height: 1.15; color: var(--pd-purple); font-weight: 800; }
.ov-kpi small { color: var(--pd-muted); font-weight: 600; }
.ov-chart-title { font-size: 15px; font-weight: 800; color: var(--pd-text); margin: 6px 0 8px; }
.ov-chart { overflow-x: auto; margin-bottom: 18px; }
.ov-svg { display: block; width: 100%; min-width: 560px; height: auto; }
.ov-grid { stroke: rgba(61, 10, 64, .08); stroke-width: 1; }
.ov-base { stroke: rgba(61, 10, 64, .3); stroke-width: 1; }
.ov-axis { font-size: 11px; fill: #7a6a80; font-family: inherit; }
.ov-fill { fill: var(--pd-purple); }
.ov-hit { fill: transparent; }
.ov-bar:hover .ov-fill { fill: var(--pd-gold); }
.ov-bar:hover .ov-hit, .ov-pt:hover .ov-hit { fill: rgba(194, 156, 58, .12); }
.ov-line { fill: none; stroke: var(--pd-purple); stroke-width: 2; stroke-linejoin: round; }
.ov-area { fill: rgba(102, 0, 102, .08); }
.ov-dot { fill: var(--pd-purple); stroke: #fff; stroke-width: 1.5; }
.ov-pt:hover .ov-dot { fill: var(--pd-gold); r: 5; }

.ov-hbars { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.ov-hbar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr 36px; align-items: center; gap: 10px; font-size: 14px; }
.ov-hbar-label { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-hbar-track { height: 12px; background: rgba(61, 10, 64, .06); border-radius: 4px; overflow: hidden; }
.ov-hbar-fill { display: block; height: 100%; background: var(--pd-purple); border-radius: 0 4px 4px 0; }
.ov-hbar:hover .ov-hbar-fill { background: var(--pd-gold); }
.ov-hbar-value { font-weight: 800; text-align: right; color: var(--pd-text); }

.ov-decades { display: flex; flex-direction: column; }
.ov-decade-row { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 10px; padding: 12px 10px; align-items: center; text-align: right; }
.ov-decade-row > span:first-child { text-align: left; }
.ov-decade-headrow { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--pd-muted); border-bottom: 1px solid var(--pd-line); }
.ov-decade { border-bottom: 1px solid var(--pd-line); }
.ov-decade > summary { cursor: pointer; list-style: none; border-radius: 10px; font-weight: 700; }
.ov-decade > summary::-webkit-details-marker { display: none; }
.ov-decade > summary > span:first-child::before { content: "\f105"; font-family: FontAwesome; display: inline-block; width: 16px; color: var(--pd-gold); transition: transform .2s; }
.ov-decade[open] > summary > span:first-child::before { transform: rotate(90deg); }
.ov-decade > summary:hover { background: rgba(194, 156, 58, .1); }
.ov-decade-body { padding: 4px 12px 14px 36px; }
.ov-decade-body p { margin: 4px 0; }
.ov-drill { border-top: 1px solid var(--pd-line); padding: 8px 0; }
.ov-drill summary { cursor: pointer; font-weight: 700; color: var(--pd-purple); }
.ov-drill ul { margin: 8px 0 0; padding-left: 18px; }
.ov-drill li { margin: 4px 0; }

.ov-map-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.ov-map { width: 100%; height: auto; display: block; }
.ov-state rect { stroke: #fff; stroke-width: 2; }
.ov-state:hover rect { stroke: var(--pd-gold); stroke-width: 3; }
.ov-state-code { font-size: 13px; font-weight: 800; font-family: inherit; }
.ov-state-n { font-size: 13px; font-weight: 700; font-family: inherit; }
.ov-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--pd-muted); margin-bottom: 14px; }
.ov-legend i { width: 26px; height: 12px; border-radius: 3px; display: inline-block; }
.ov-legend span:first-child { margin-right: 4px; }
.ov-legend span:last-child { margin-left: 4px; }
@media (max-width: 991px) {
	.ov-map-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ov-kpi strong { font-size: 26px; }
	.ov-decade-headrow { display: none; }
	.ov-decade-row { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; row-gap: 6px; }
	.ov-decade-row > span:first-child { grid-column: 1 / -1; }
	.ov-decade-row > span[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--pd-muted); }
	.ov-decade-body { padding-left: 14px; }
}
/* A letter used as a menu icon (Ω for Omega Chapter), sized like the Font Awesome icons */
.pd-sidebar .pd-nav a .pd-nav-glyph { font-family: Georgia, 'Times New Roman', serif; font-style: normal; font-weight: 700; font-size: 17px; line-height: 1; }
.fa.pd-glyph { font-family: Georgia, "Times New Roman", serif; font-style: normal; font-weight: 700; }

/* ---------- 50th Anniversary composite leaderboard ---------- */
.ml-board { margin-top: 22px; }
.ml-board-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ml-board-row { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(80px, 2fr) 64px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.ml-board-row.is-top .ml-board-rank { background: var(--pd-gold); color: var(--pd-purple-deep); }
.ml-board-row.is-mine { background: rgba(194, 156, 58, .14); box-shadow: inset 3px 0 0 var(--pd-gold); }
.ml-board-rank { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(61, 10, 64, .07); color: var(--pd-purple); }
.ml-board-name { min-width: 0; }
.ml-board-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-board-name small, .ml-board-score small { display: block; color: var(--pd-muted); font-weight: 600; font-size: 12px; }
.ml-board-bar { height: 12px; background: rgba(61, 10, 64, .07); border-radius: 4px; overflow: hidden; }
.ml-board-bar > span { display: block; height: 100%; background: var(--pd-purple); border-radius: 0 4px 4px 0; }
.ml-board-row.is-full .ml-board-bar > span { background: var(--pd-gold); }
.ml-board-score { text-align: right; }
.ml-board-score strong { color: var(--pd-purple); font-size: 16px; }
@media (max-width: 600px) {
	.ml-board-row { grid-template-columns: 30px minmax(0, 1fr) 56px; row-gap: 6px; }
	.ml-board-bar { grid-column: 2 / 4; grid-row: 2; }
}

/* Chapter Overview: a word with a hover/focus explanation (e.g. how "living" is counted) */
.ov-tip { position: relative; border-bottom: 1px dotted currentColor; cursor: help; outline: none; }
.ov-tip::after {
	content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 8px);
	padding: 6px 10px; border-radius: 8px; background: var(--pd-purple-deep); color: #fff; font-size: 12px; font-weight: 700;
	white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 5; pointer-events: none;
}
.ov-tip:hover::after, .ov-tip:focus::after { opacity: 1; visibility: visible; }
