/* ==========================================================================
   MDRC Heritage — supplementary front-end styles
   ========================================================================== */

/* --- Header banner: eagle left, club name right (like the original) ------ */
.mdrc-banner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}
.mdrc-banner figure {
	margin: 0;
	min-width: 0;          /* allow the eagle to shrink instead of overflowing */
	flex: 0 1 auto;
}
.mdrc-banner figure img {
	max-width: 100%;
	height: auto;
	display: block;
}
/* Crop the eagle PNG like the original site: the old theme showed only the
   top slice of the 740x326 image inside a fixed-height header, so the yellow
   ribbon at the bottom (rough pixels) never showed. Reproduce that crop. */
/* The eagle banner div (in parts/header.html) shows only the top ~185px of
   the 740x326 PNG via background-image — the same technique and crop the
   original theme used, so the yellow ribbon at the bottom stays hidden.
   On narrow screens, scale the crop height with the width (185/740 = 25vw). */
@media (max-width: 740px) {
	.mdrc-eagle {
		height: 25vw !important;
	}
}
.mdrc-banner .wp-block-site-title {
	flex: 0 0 auto;
	text-align: right;
}
/* Stack + center on narrower screens */
@media (max-width: 980px) {
	.mdrc-banner {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem;
	}
	.mdrc-banner .wp-block-site-title {
		flex-basis: 100%;
		text-align: center;
	}
}

/* --- Content tables: tidy grid, comfortable spacing, responsive --------- */

/* Let wide tables scroll instead of overflowing the page on small screens */
main .wp-block-post-content,
main.wp-block-group {
	overflow-x: auto;
}

main table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	background: #ffffff;
	border: 1px solid #d9d3c4;
	font-size: 1rem;
	line-height: 1.4;
}

/* Grid lines + generous padding; override the old inline px widths/heights */
main table td,
main table th {
	border: 1px solid #e6e0d0;
	padding: 12px 16px !important;
	width: auto !important;
	height: auto !important;
	vertical-align: middle;
	text-align: left !important;
}

/* Header row, if the table has one */
main table th {
	background: #12233f;
	color: #f7f4ec;
	font-weight: 700;
	font-family: Lora, Georgia, serif;
}

/* Emphasise the first column (names / labels) */
main table td:first-child {
	font-weight: 600;
	color: #12233f;
}

/* Subtle zebra striping for scan-ability */
main table tbody tr:nth-child(even) td {
	background: #faf8f1;
}

/* Tighten up on phones */
@media (max-width: 600px) {
	main table td,
	main table th {
		padding: 8px 10px !important;
		font-size: 0.9rem;
	}
}
