/* Members portal. Inherits GeneratePress palette variables when present. */
.wcmhs-portal {
	--wcmhs-accent: #661415; /* The site's maroon (GeneratePress link color); the theme's --accent is still the default blue. */
	--wcmhs-text: var(--contrast, #222);
	--wcmhs-muted: var(--contrast-2, #575760);
	--wcmhs-line: var(--contrast-3, #d5d5dc);
	--wcmhs-soft: var(--base-2, #f7f8f9);
	--wcmhs-card: var(--base-3, #fff);
	--wcmhs-ok: #2e7d32;
	--wcmhs-warn: #a15c00;
	--wcmhs-bad: #b3261e;
	color: var(--wcmhs-text);
	max-width: 960px;
}
.wcmhs-portal * { box-sizing: border-box; }
.wcmhs-portal h2 { font-size: 1.4rem; margin: 0 0 .6em; }
.wcmhs-portal h3 { font-size: 1.15rem; }
.wcmhs-muted { color: var(--wcmhs-muted); font-size: .92em; }

.wcmhs-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.wcmhs-card {
	background: var(--wcmhs-card);
	border: 1px solid var(--wcmhs-line);
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.25rem;
}
.wcmhs-card--accent { background: var(--wcmhs-soft); }
.wcmhs-card--center { text-align: center; max-width: 520px; margin-left: auto; margin-right: auto; }

.wcmhs-form label { display: block; font-weight: 600; margin-bottom: .3em; }
.wcmhs-form input[type=email], .wcmhs-form input[type=text], .wcmhs-form input[type=tel],
.wcmhs-form input:not([type]), .wcmhs-form textarea { width: 100%; margin-bottom: .9em; }
.wcmhs-form .wcmhs-check label { font-weight: normal; }
.wcmhs-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.wcmhs-row p { margin: 0; }
.wcmhs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wcmhs-button, .wcmhs-portal button.wcmhs-button {
	display: inline-block;
	background: var(--wcmhs-accent);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: .7em 1.3em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.3;
}
/* The theme colors every content link maroon, which beat the button's white text. */
.wcmhs-portal a.wcmhs-button, .wcmhs-portal a.wcmhs-button:visited { color: #fff; }
.wcmhs-button:hover, .wcmhs-button:focus, .wcmhs-portal a.wcmhs-button:hover, .wcmhs-portal a.wcmhs-button:focus { background: #3f0c0d; color: #fff; }
.wcmhs-button:focus-visible { outline: 2px solid var(--wcmhs-accent); outline-offset: 2px; }
.wcmhs-button--secondary { background: transparent; color: var(--wcmhs-accent); box-shadow: inset 0 0 0 2px var(--wcmhs-accent); }
.wcmhs-portal a.wcmhs-button--secondary, .wcmhs-portal a.wcmhs-button--secondary:visited { color: var(--wcmhs-accent); }
.wcmhs-button--large { font-size: 1.15em; padding: .8em 2em; }

.wcmhs-notice { padding: .8em 1em; border-radius: 6px; margin-bottom: 1.25rem; border-left: 4px solid; }
.wcmhs-notice--error { background: #fdecea; border-color: var(--wcmhs-bad); }
.wcmhs-notice--ok { background: #e8f5e9; border-color: var(--wcmhs-ok); }

.wcmhs-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .95em; }

.wcmhs-status { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border-left: 5px solid var(--wcmhs-ok); }
.wcmhs-status--expiring, .wcmhs-status--grace { border-left-color: var(--wcmhs-warn); }
.wcmhs-status--lapsed { border-left-color: var(--wcmhs-bad); }
.wcmhs-status__main { flex: 1 1 320px; }
.wcmhs-status__cta { flex: 0 1 300px; }
.wcmhs-status__cta .wcmhs-muted { margin: .6em 0 0; }
.wcmhs-status__line { font-size: 1.1em; margin: .5em 0 .25em; }
.wcmhs-badge { display: inline-block; background: var(--wcmhs-soft); border: 1px solid var(--wcmhs-line); border-radius: 99px; padding: .15em .8em; font-size: .85em; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.wcmhs-archive { margin: 2rem 0; }
.wcmhs-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.5rem; }
.wcmhs-filters input[type=search] { flex: 1 1 220px; }
.wcmhs-filters select { flex: 0 1 auto; max-width: 100%; }
.wcmhs-year { border-bottom: 2px solid var(--wcmhs-line); padding-bottom: .3em; margin: 1.8em 0 1em; }
.wcmhs-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); } /* Two roomy columns: descriptions and subject tags need the width. */
.wcmhs-issue { display: flex; gap: 1rem; background: var(--wcmhs-card); border: 1px solid var(--wcmhs-line); border-radius: 8px; padding: 1rem; margin: 0; }
.wcmhs-issue__cover { flex: 0 0 72px; }
.wcmhs-issue__cover img { width: 72px; height: auto; border: 1px solid var(--wcmhs-line); display: block; }
.wcmhs-issue__pdf { display: flex; align-items: center; justify-content: center; width: 72px; height: 94px; background: var(--wcmhs-soft); border: 1px solid var(--wcmhs-line); color: var(--wcmhs-bad); font-weight: 700; font-size: .85em; border-radius: 3px; }
.wcmhs-issue__body { min-width: 0; }
.wcmhs-issue h4 { margin: 0 0 .2em; font-size: 1.05rem; line-height: 1.3; }
.wcmhs-issue p { margin: 0 0 .4em; font-size: .93em; }
.wcmhs-issue__actions a { margin-right: 1em; font-weight: 600; }
.wcmhs-tags a { display: inline-block; font-size: .8em; background: var(--wcmhs-soft); border: 1px solid var(--wcmhs-line); border-radius: 99px; padding: .05em .6em; margin: 0 .3em .3em 0; text-decoration: none; color: var(--wcmhs-muted); }

.wcmhs-profile summary { cursor: pointer; font-weight: 600; font-size: 1.1em; }
.wcmhs-profile[open] summary { margin-bottom: 1em; }
.wcmhs-locked { background: var(--wcmhs-soft); }

@media (max-width: 480px) {
	.wcmhs-card { padding: 1.1rem; }
	.wcmhs-issue__cover { flex-basis: 52px; }
	.wcmhs-issue__cover img, .wcmhs-issue__pdf { width: 52px; }
	.wcmhs-issue__pdf { height: 68px; }
}
