/* =====================================================================
   GPA Member Portal — shared styles
   Loaded automatically by the GPA Portal Pages plugin.
   ===================================================================== */
.gpa-p {
	--gpa-brand: #004d43;
	--gpa-panel: #e5efe5; /* login page left panel */
	--gpa-tint: #e0eeec;
	--gpa-ground: #f3f7f6;
	--gpa-line: #d6e3e0;
	--gpa-input: #b3c6c2;
	--gpa-text: #10201d;
	--gpa-muted: #475a56;
	color: var(--gpa-text);
	font-size: 17px;
	line-height: 1.55;
}
.gpa-p *, .gpa-p *::before, .gpa-p *::after { box-sizing: border-box; }
.gpa-p h1, .gpa-p h2, .gpa-p h3 { color: inherit; margin: 0; line-height: 1.2; }
.gpa-p p { margin: 0; }
.gpa-p-muted { color: var(--gpa-muted); }

/* Portal menu bar ([gpa_portal_nav]) */
.gpa-p-nav {
	display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
	background: #fff; border: 1px solid var(--gpa-line); border-radius: 14px; padding: 8px 12px; margin-bottom: 28px;
}
.gpa-p-nav__links { display: flex; flex-wrap: wrap; gap: 4px; }
.gpa-p-nav__links a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px;
	color: #394b47 !important; text-decoration: none !important; font-weight: 500;
}
.gpa-p-nav__links a.is-active, .gpa-p-nav__links a:hover { background: var(--gpa-tint); color: var(--gpa-brand) !important; font-weight: 700; }
.gpa-p-nav__me { display: flex; gap: 16px; align-items: center; font-size: 15px; color: var(--gpa-muted); padding-right: 6px; }
.gpa-p-nav__me a { color: var(--gpa-brand) !important; font-weight: 600; }

/* Page header */
.gpa-p-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.gpa-p-head h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
.gpa-p-head p { font-size: 18px; color: var(--gpa-muted); max-width: 760px; }
.gpa-p-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gpa-brand); }

/* Dark welcome band */
.gpa-p-hero { background: var(--gpa-brand); color: #fff; border-radius: 16px; padding: clamp(28px, 5vw, 48px); margin-bottom: 32px; }
.gpa-p-hero .gpa-p-eyebrow { color: #cfe5e1; }
.gpa-p-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 8px 0; }
.gpa-p-hero p { color: #e6f1ef; font-size: 18px; }

/* Cards and grids */
.gpa-p-section { margin-bottom: 36px; }
.gpa-p-section > h2 { font-size: 22px; margin-bottom: 16px; }
.gpa-p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gpa-p-tile {
	display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--gpa-line);
	border-radius: 14px; padding: 22px; color: var(--gpa-text) !important; text-decoration: none !important;
}
.gpa-p-tile:hover { border-color: var(--gpa-brand); }
.gpa-p-tile__icon {
	flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--gpa-tint);
	display: flex; align-items: center; justify-content: center; color: var(--gpa-brand);
}
.gpa-p-tile strong { display: block; font-size: 17px; margin-bottom: 4px; }
.gpa-p-tile span.gpa-p-muted { font-size: 15px; }

.gpa-p-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.gpa-p-cols > .gpa-p-main { flex: 999 1 520px; min-width: 0; }
.gpa-p-cols > .gpa-p-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.gpa-p-card { background: #fff; border: 1px solid var(--gpa-line); border-radius: 14px; padding: 26px; }
.gpa-p-card > h2 { font-size: 21px; margin-bottom: 12px; }
.gpa-p-card--tint { background: var(--gpa-tint); border-color: transparent; }
.gpa-p-card__head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.gpa-p-card__head h2 { font-size: 21px; }

/* Lists ([gpa_recent]) */
.gpa-p-list { list-style: none; margin: 0; padding: 0; }
.gpa-p-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 14px 0; border-top: 1px solid #e1ebe9; }
.gpa-p-list li:first-child { border-top: 0; }
.gpa-p-list a { font-weight: 600; color: var(--gpa-text) !important; }
.gpa-p-list span { font-size: 14px; color: var(--gpa-muted); }

/* Buttons and links */
.gpa-p a.gpa-p-link { color: var(--gpa-brand); font-weight: 600; }
.gpa-p-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px;
	background: var(--gpa-brand); color: #fff !important; font-weight: 600; text-decoration: none !important;
}
.gpa-p-btn--ghost { background: #fff; color: var(--gpa-brand) !important; border: 1px solid var(--gpa-input); }
.gpa-p-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Login page */
.gpa-p-login { display: flex; flex-wrap: wrap; border-radius: 0; overflow: hidden; border: 1px solid var(--gpa-line); background: var(--gpa-ground); }
.gpa-p-login__brand { flex: 1 1 420px; background: var(--gpa-panel); color: var(--gpa-text); padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.gpa-p-login__brand h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--gpa-brand); }
.gpa-p-login__brand p { color: #2b3d39; font-size: 18px; }
.gpa-p-badge { align-self: flex-start; padding: 6px 12px; border-radius: 0; background: rgba(0,77,67,.1); color: var(--gpa-brand); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gpa-p-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gpa-p-checks li { display: flex; gap: 10px; font-size: 16px; color: var(--gpa-text); }
.gpa-p-checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--gpa-brand); box-shadow: inset 0 0 0 5px var(--gpa-panel); border: 2px solid var(--gpa-brand); box-sizing: border-box; }
.gpa-p-login__form { flex: 1 1 380px; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; background: #fff; }
.gpa-p-login__form h2 { font-size: 28px; }
.gpa-p-login__more { border-top: 1px solid #e1ebe9; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--gpa-muted); }
.gpa-p-login__more a { color: var(--gpa-brand); font-weight: 600; }

/* Login page: square corners on the form fields, button and messages */
.gpa-p-login .gpa-login input[type=text],
.gpa-p-login .gpa-login input[type=password],
.gpa-p-login .gpa-login input[type=submit],
.gpa-p-login .gpa-login__btn,
.gpa-p-login .gpa-login__msg { border-radius: 0; }

/* =====================================================================
   Elementor helpers
   ===================================================================== */

/* Show/hide by membership level. Elementor → Advanced → CSS Classes. */
body:not(.gpa-is-members):not(.elementor-editor-active) .gpa-show-members,
body:not(.gpa-is-board):not(.elementor-editor-active) .gpa-show-board,
body:not(.gpa-is-academic):not(.elementor-editor-active) .gpa-show-academic,
body:not(.gpa-is-guest):not(.elementor-editor-active) .gpa-show-guests { display: none !important; }
/* (In the Elementor editor everything stays visible so you can edit it.) */

/* Portal look for any Elementor container. Elementor → Advanced → CSS Classes. */
.gpa-card { background: #fff; border: 1px solid #d6e3e0; border-radius: 14px; padding: 26px; }
.gpa-card-tint { background: #e0eeec; border-radius: 14px; padding: 26px; }
.gpa-card-dark { background: #004d43; color: #fff; border-radius: 16px; padding: 40px; }
.gpa-card-dark h1, .gpa-card-dark h2, .gpa-card-dark h3, .gpa-card-dark p, .gpa-card-dark li { color: #fff; }
.gpa-card-light { background: #e5efe5; border-radius: 0; padding: 40px; }
.gpa-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #004d43; }
.gpa-card-dark .gpa-eyebrow { color: #cfe5e1; }

/* Shortcode blocks sit cleanly inside Elementor widgets */
.elementor-widget-shortcode .gpa-p-nav { margin-bottom: 0; }
span.gpa-p { display: inline-block; }

/* =====================================================================
   Resource grid  [gpa_resources]
   ===================================================================== */
.gpa-res { display: flex; flex-direction: column; gap: 20px; }
.gpa-res__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gpa-res__q {
	width: 100%; max-width: 440px; height: 48px; border: 1px solid var(--gpa-input); border-radius: 10px;
	padding: 0 14px; font: inherit; font-size: 16px; background: #fff;
}
.gpa-res__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gpa-res__pill {
	min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--gpa-input); background: #fff; color: var(--gpa-text);
	font: inherit; font-size: 15px; font-weight: 700;
}
.gpa-res__pill:hover { border-color: var(--gpa-brand); }
.gpa-res__pill.is-active { background: var(--gpa-brand); border-color: var(--gpa-brand); color: #fff; }
.gpa-res__count { margin: 0; font-size: 15px; color: var(--gpa-muted); }

.gpa-res__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.gpa-res__card { background: #fff; border: 1px solid var(--gpa-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.gpa-res__card[hidden] { display: none; }

.gpa-res__cover {
	position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
	background: var(--gpa-panel); color: var(--gpa-brand); text-decoration: none !important; overflow: hidden;
}
.gpa-res__cover.is-dark { background: var(--gpa-brand); color: #fff; }
.gpa-res__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gpa-res__lock {
	position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 10px; border-radius: 999px; background: var(--gpa-text); color: #fff; font-size: 12px; font-weight: 700;
}

.gpa-res__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gpa-res__chip {
	align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--gpa-tint); color: var(--gpa-brand);
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.gpa-p .gpa-res__title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.gpa-res__title a { color: var(--gpa-text) !important; text-decoration: none !important; }
.gpa-res__title a:hover { color: var(--gpa-brand) !important; }
.gpa-p .gpa-res__desc { margin: 0; font-size: 15px; line-height: 1.5; color: #2b3d39; }
.gpa-res__foot {
	margin-top: auto; padding-top: 14px; border-top: 1px solid #e1ebe9;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gpa-res__meta { font-size: 14px; color: var(--gpa-muted); }
.gpa-res__btn {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
	background: var(--gpa-brand); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; white-space: nowrap;
}
.gpa-res__btn:hover { background: #00362f; }
.gpa-res__empty { color: var(--gpa-muted); }

.gpa-res__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.gpa-res__pages[hidden] { display: none; }
.gpa-res__page {
	min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 10px; cursor: pointer;
	border: 1px solid var(--gpa-input); background: #fff; color: var(--gpa-brand); font: inherit; font-weight: 700;
}
.gpa-res__page.is-current { background: var(--gpa-brand); border-color: var(--gpa-brand); color: #fff; }
