/*
 * Sitewide card component system.
 *
 * One shared visual language for every "card" on the site — Areas of Service
 * grid, Latest Stories feed, Quick Links / Presidential Theme / Zone 8
 * sidebar widgets, spotlight bio + roster cards, and any future card (Find a
 * Club entries, story archive, etc). Extend this file rather than redefining
 * background/border/radius/shadow per component.
 *
 * Classes:
 *   .card              base surface: background, border, radius, shadow, standard padding
 *   .card--compact     the ONLY other allowed padding size, for dense roster/list cards
 *   .card-header       bordered/shaded title-bar strip a card can opt into
 *                      (shares its rule with .mobile-accordion__toggle, which
 *                      already looks like this — no markup change needed there)
 *   a.card:hover / .card--clickable:hover   lift + deepen shadow, for cards
 *                      that are full links (Area cards today; anything with
 *                      class="card" wrapped in <a> gets this for free)
 *   .tag               small pill label; .tag--pending (amber) and
 *                      .tag--category (azure) are the two variants in use
 */

.card {
	background: var(--r9660-card-bg, #fff);
	border: 1px solid var(--r9660-border, var(--wp--preset--color--powder-blue));
	border-radius: var(--r9660-radius, 14px);
	box-shadow: var(--r9660-shadow);
	padding: 1.25rem;
}

.card--compact {
	padding: 0.85rem;
}

/* WordPress applies a Post Template block's className to its own <ul>
   wrapper, not to each repeated post — so "card"/"card--compact" on
   wp:post-template would otherwise wrap ALL posts in one shared box instead
   of giving each post its own card. Reset the wrapper and push the card
   surface down onto each <li> instead. */
.wp-block-post-template.card,
.wp-block-post-template.card--compact {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wp-block-post-template.card > li {
	background: var(--r9660-card-bg, #fff);
	border: 1px solid var(--r9660-border, var(--wp--preset--color--powder-blue));
	border-radius: var(--r9660-radius, 14px);
	box-shadow: var(--r9660-shadow);
	padding: 1.25rem;
}

.wp-block-post-template.card--compact > li {
	padding: 0.85rem;
}

/* display/width/text-align come from base.css (which also controls the
   toggle's responsive show/hide) so this stays purely visual — otherwise
   this rule's cascade position (after base.css) would win over base.css's
   desktop "display:none" for the toggle and it'd show on desktop too. */
.card-header,
.mobile-accordion__toggle {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1rem;
	color: var(--wp--preset--color--royal-blue);
	background: var(--r9660-surface, var(--wp--preset--color--powder-blue));
	padding: 0.6em 0.9em;
}

.card-header {
	display: block;
	width: 100%;
	text-align: left;
}

a.card:hover,
.card--clickable:hover {
	cursor: pointer;
	transform: translateY(-3px);
	box-shadow: var(--r9660-shadow-hover);
}

/* Card wrapper for the accordion widgets (Quick Links, Contact Us, Presidential
   Theme, Zone 8) — the toggle/body are already styled above; this just gives
   the whole thing the shared radius/shadow instead of a flat bordered box. */
.mobile-accordion {
	border: 1px solid var(--r9660-border, var(--wp--preset--color--powder-blue));
	border-radius: var(--r9660-radius, 14px);
	box-shadow: var(--r9660-shadow);
	overflow: hidden;
}

.tag,
.wp-block-post-terms a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 0.35em 0.7em;
	border-radius: 6px;
	color: #fff;
	text-decoration: none;
}

.tag--pending {
	background: var(--wp--preset--color--gold);
	color: #3a2600;
}

.tag--category,
.wp-block-post-terms a {
	background: var(--wp--preset--color--azure);
}

/* Generic eyebrow label for section heads sitting on dark/card surfaces
   (azure, ties visually to the category tags). The hero banner's own
   .hero-info .eyebrow stays gold via that more specific selector. */
.eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--azure);
	margin-bottom: 0.4rem;
}

/* Latest Stories: featured card (left) + stacked compact cards (right). */
.stories-layout {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1.25rem;
	align-items: start;
	margin-top: 0.75rem;
}

@media (max-width: 980px) {
	.stories-layout {
		grid-template-columns: 1fr;
	}
}

/* Quick Links icon-list rows — replaces the old solid button-block look. */
.quick-link-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75em 0.9em;
	border-bottom: 1px solid var(--r9660-border, var(--wp--preset--color--powder-blue));
	text-decoration: none;
	color: var(--r9660-ink, var(--wp--preset--color--charcoal));
	font-size: 0.9rem;
}

.quick-link-item:last-child {
	border-bottom: none;
}

.quick-link-item:hover {
	background: var(--r9660-surface, var(--wp--preset--color--powder-blue));
}

.quick-link-item .dashicons {
	flex-shrink: 0;
	color: var(--wp--preset--color--azure);
}

/* Vacant/not-yet-filled seat in a compact roster grid (District Board,
   Operations Committee, Services Committee). Compact-card counterpart to the
   full-bio .spotlight--unfilled treatment. */
.spotlight-card--vacant .spotlight-card__photo {
	background: var(--r9660-surface);
	color: var(--r9660-ink-soft, var(--wp--preset--color--charcoal));
}

.spotlight-card--vacant .spotlight-card__name {
	color: var(--r9660-ink-soft, var(--wp--preset--color--charcoal));
	font-style: italic;
}

/* Observer seat — advisory/non-voting, visually distinct via a dashed border,
   matching the org chart's own dashed-box treatment for observers. */
.spotlight-card--observer {
	border-style: dashed;
	opacity: 0.85;
}

/* Small side-by-side info boxes (District Trainers, Rotary Community Leaders)
   that aren't person-roster cards, just brief structural notes. */
.info-box-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 1.25rem;
}

@media (max-width: 640px) {
	.info-box-row {
		grid-template-columns: 1fr;
	}
}
