/* Cork GAA Hub. Brand: Cork red #B5121B, deep red #5E080E / #3A0508, gold #F2C230. */
.cork-hub {
	--ch-red: #b5121b;
	--ch-red-bright: #ed1b36;
	--ch-deep: #5e080e;
	--ch-deeper: #3a0508;
	--ch-gold: #f2c230;
	--ch-ink: #14110f;
	--ch-muted: #6b625c;
	--ch-line: #e6ddd3;
	--ch-paper: #ffffff;
	--ch-cream: #f6f1ea;
	--ch-display: 'Anton', 'Oswald', Impact, sans-serif;
	--ch-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--ch-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-family: var(--ch-body);
	color: var(--ch-ink);
	line-height: 1.45;
	margin: 0 0 2rem;
}
.cork-hub *, .cork-hub *::before, .cork-hub *::after { box-sizing: border-box; }
.cork-hub p { margin: 0; }
.cork-hub button { font: inherit; }
.cork-hub .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cork-hub a { color: var(--ch-red); }

/* Header: title and tabs on a red band */
.ch-top {
	background: var(--ch-red);
	background-image: linear-gradient(115deg, var(--ch-red) 0 62%, var(--ch-deep) 62% 100%);
	color: #fff;
	padding: 22px 22px 0;
	border-radius: 6px 6px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
}
.ch-title {
	font-family: var(--ch-display);
	font-weight: 400;
	text-transform: uppercase;
	font-size: clamp(1.7rem, 4vw, 2.5rem);
	line-height: 1;
	letter-spacing: .01em;
	margin: 0 0 18px;
	color: inherit;
}
.ch-tabs { display: flex; gap: 4px; }
.ch-tab {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-family: var(--ch-label) !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 1.05rem;
	padding: 10px 18px 9px;
	border-radius: 4px 4px 0 0;
	cursor: pointer;
}
.ch-tab:hover { background: rgba(255, 255, 255, .22); }
.ch-tab.is-on { background: var(--ch-paper); color: var(--ch-red); }
.ch-tab:focus-visible, .ch-chip:focus-visible, .ch-btn:focus-visible, .ch-select select:focus-visible { outline: 3px solid var(--ch-gold); outline-offset: 2px; }

/* Filters */
.ch-filters {
	background: var(--ch-paper);
	border: 1px solid var(--ch-line);
	border-top: 0;
	padding: 14px 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
}
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-chip {
	appearance: none;
	border: 1.5px solid var(--ch-line);
	background: #fff;
	color: var(--ch-ink);
	font-family: var(--ch-label) !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: .95rem;
	padding: 5px 14px 4px;
	border-radius: 999px;
	cursor: pointer;
}
.ch-chip:hover { border-color: var(--ch-red); }
.ch-chip.is-on { background: var(--ch-red); border-color: var(--ch-red); color: #fff; }
.ch-select select {
	font-family: var(--ch-body);
	font-size: .95rem;
	padding: 7px 34px 7px 12px;
	border: 1.5px solid var(--ch-line);
	border-radius: 4px;
	background: #fff;
	color: var(--ch-ink);
	min-width: 220px;
}

/* Panel */
.ch-panel {
	background: var(--ch-cream);
	border: 1px solid var(--ch-line);
	border-top: 0;
	border-radius: 0 0 6px 6px;
	padding: 20px 22px 26px;
}
.ch-day {
	font-family: var(--ch-label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 1rem;
	color: var(--ch-red);
	margin: 22px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--ch-red);
}
.ch-day:first-child { margin-top: 0; }
.ch-empty { padding: 24px 0; color: var(--ch-muted); }
.ch-muted { color: var(--ch-muted); }
.ch-kicker {
	font-family: var(--ch-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: .9rem;
	color: var(--ch-muted);
}

/* Next match */
.ch-next {
	position: relative;
	overflow: hidden;
	background: var(--ch-deeper);
	background-image: linear-gradient(120deg, var(--ch-deep) 0%, var(--ch-deeper) 70%);
	color: #fff;
	border-radius: 6px;
	padding: 22px 24px;
	margin-bottom: 8px;
	border-left: 6px solid var(--ch-gold);
}
.ch-next::after {
	content: '';
	position: absolute;
	right: -40px;
	top: 0;
	bottom: 0;
	width: 180px;
	background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(242, 194, 48, .14) 18px 22px);
	pointer-events: none;
}
.ch-next__label {
	display: inline-block;
	background: var(--ch-gold);
	color: var(--ch-deeper);
	font-family: var(--ch-label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .85rem;
	padding: 3px 10px 2px;
	margin-bottom: 10px !important;
}
.ch-next .ch-kicker { color: rgba(255, 255, 255, .75); }
.ch-next__teams {
	font-family: var(--ch-display);
	text-transform: uppercase;
	font-size: clamp(2rem, 6vw, 3.2rem);
	line-height: 1.05;
	margin: 6px 0 8px !important;
}
.ch-next__teams em { font-style: normal; color: var(--ch-gold); font-size: .6em; vertical-align: .25em; padding: 0 .2em; }
.ch-next__meta { font-size: 1.05rem; color: rgba(255, 255, 255, .9); }
.ch-next__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.ch-tv {
	font-family: var(--ch-label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	border: 1.5px solid rgba(255, 255, 255, .5);
	padding: 6px 12px 5px;
	border-radius: 4px;
}

/* Buttons and badges */
.ch-btn {
	display: inline-block;
	font-family: var(--ch-label) !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-size: 1rem;
	padding: 8px 18px 7px;
	border-radius: 4px;
	text-decoration: none !important;
	cursor: pointer;
	border: 1.5px solid transparent;
	line-height: 1.2;
	white-space: nowrap;
}
.cork-hub .ch-btn--gold { background: var(--ch-gold); color: var(--ch-deeper); }
.cork-hub .ch-btn--gold:hover { background: #ffd451; }
.cork-hub .ch-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.ch-next .ch-btn--ghost { color: #fff; }
.ch-btn--sm { font-size: .88rem; padding: 6px 12px 5px; }
.ch-badge {
	display: inline-block;
	font-family: var(--ch-label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .8rem;
	padding: 3px 8px 2px;
	border-radius: 3px;
	background: var(--ch-line);
	color: var(--ch-ink);
}
.ch-badge--alert { background: var(--ch-gold); color: var(--ch-deeper); }
.ch-badge--note { background: transparent; color: var(--ch-red); box-shadow: inset 0 0 0 1.5px currentColor; }
.ch-next .ch-badge--note, .ch-single__head .ch-badge--note { color: var(--ch-gold); }
.ch-badge + .ch-badge { margin-left: 6px; }
.ch-md__date--wk b { font-size: 1.05rem; padding: 3px 0 2px; }
.ch-result {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-family: var(--ch-label);
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
}
.ch-result--W { background: #1d7a3a; }
.ch-result--L { background: var(--ch-red); }
.ch-result--D { background: #8a7f76; }

/* Match card */
.ch-card {
	display: grid;
	grid-template-columns: 92px 1fr auto;
	gap: 4px 18px;
	align-items: center;
	background: var(--ch-paper);
	border: 1px solid var(--ch-line);
	border-left: 4px solid var(--ch-red);
	border-radius: 4px;
	padding: 14px 16px;
	margin-bottom: 8px;
}
.ch-card__when {
	font-family: var(--ch-label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ch-ink);
}
.ch-card__time { font-family: var(--ch-display); font-weight: 400; font-size: 1.6rem; color: var(--ch-red); letter-spacing: .01em; }
.ch-card--result .ch-card__when { font-size: 1rem; color: var(--ch-muted); }
.ch-pill {
	display: inline-block;
	background: var(--ch-red);
	color: #fff;
	padding: 1px 7px 0;
	border-radius: 3px;
	margin-right: 4px;
	letter-spacing: .04em;
}
.ch-pill--football { background: var(--ch-deeper); }
.ch-pill--camogie { background: var(--ch-gold); color: var(--ch-deeper); }
.ch-pill--ladies-football { background: var(--ch-red-bright); }
.ch-card__teams {
	font-family: var(--ch-label);
	font-weight: 700;
	font-size: 1.45rem;
	line-height: 1.2;
	margin: 4px 0 2px !important;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.ch-side.is-cork .ch-side__name { color: var(--ch-red); }
.ch-side__score { font-family: var(--ch-display); font-weight: 400; letter-spacing: .02em; }
.ch-side__score small { font-family: var(--ch-label); font-size: .75em; color: var(--ch-muted); }
.ch-card__v, .ch-card__dash { color: var(--ch-muted); padding: 0 .35em; font-weight: 500; }
.ch-card__meta { color: var(--ch-muted); font-size: .95rem; }
.ch-card__actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.ch-card__actions .ch-btn--ghost { color: var(--ch-red); }
.ch-card__more { grid-column: 1 / -1; }

/* Expanded details */
.ch-more { border-top: 1px dashed var(--ch-line); margin-top: 12px; padding-top: 14px; }
.ch-more h4 {
	font-family: var(--ch-label);
	text-transform: uppercase;
	letter-spacing: .07em;
	font-size: .95rem;
	color: var(--ch-red);
	margin: 0 0 6px;
}
.ch-more p + p { margin-top: .5em; }
.ch-more__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 14px; }
.ch-more__link { margin-top: 14px !important; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ch-more__link a { text-decoration: none; }
.ch-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 22px; margin: 0; }
.ch-facts div { min-width: 0; }
.ch-facts dt {
	font-family: var(--ch-label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-size: .8rem;
	color: var(--ch-muted);
}
.ch-facts dd { margin: 0; font-weight: 500; }
.ch-lineup { columns: 2; column-gap: 20px; margin: 0; padding-left: 1.6em; }
.ch-lineup li { break-inside: avoid; padding: 1px 0; }
.ch-lineup li::marker { font-family: var(--ch-label); font-weight: 700; color: var(--ch-red); }
.ch-lineup__name { font-weight: 600; }
.ch-lineup__club { color: var(--ch-muted); }
.ch-subs { margin-top: 8px !important; font-size: .95rem; }

/* League tables */
.ch-table { background: var(--ch-paper); border: 1px solid var(--ch-line); border-radius: 4px; padding: 16px 18px; margin-bottom: 14px; }
.ch-table h3 { font-family: var(--ch-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; margin: 2px 0 10px; color: var(--ch-ink); }
.ch-table__wrap { overflow-x: auto; }
.ch-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0; }
.ch-table th, .ch-table td { padding: 8px 8px; text-align: center; border: 0; border-bottom: 1px solid var(--ch-line); }
.ch-table thead th {
	font-family: var(--ch-label);
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .85rem;
	color: var(--ch-muted);
	border-bottom: 2px solid var(--ch-ink);
}
.ch-table .ch-team { text-align: left; font-weight: 600; width: 45%; }
.ch-table .ch-pos { width: 32px; color: var(--ch-muted); }
.ch-table .ch-pts { font-weight: 700; }
.ch-table tr.is-cork { background: #fbe9ea; }
.ch-table tr.is-cork .ch-team, .ch-table tr.is-cork .ch-pts { color: var(--ch-red); }
.ch-table__note { margin-top: 10px !important; font-size: .9rem; color: var(--ch-muted); }

/* Fallback list before the script runs */
.ch-fallback { background: var(--ch-cream); border-top: 6px solid var(--ch-red); padding: 18px 22px; border-radius: 6px; }
.ch-fallback .ch-title { color: var(--ch-red); margin-bottom: 12px; }
.ch-fallback ul { margin: 0; padding-left: 1.2em; }
.ch-fallback li { margin-bottom: 8px; }

/* Single match page */
.ch-single__head {
	background: var(--ch-red);
	background-image: linear-gradient(115deg, var(--ch-red) 0 62%, var(--ch-deep) 62% 100%);
	color: #fff;
	padding: 26px 24px;
	border-radius: 6px;
	text-align: center;
	margin-bottom: 18px;
}
.ch-single__head .ch-kicker { color: rgba(255, 255, 255, .85); }
.ch-single__head .ch-badge { margin-top: 8px; }
.ch-single__teams {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 6px 16px;
	font-family: var(--ch-display);
	text-transform: uppercase;
	font-size: clamp(2rem, 6vw, 3.4rem);
	line-height: 1.1;
	margin: 10px 0;
}
.ch-single__score { color: var(--ch-gold); }
.ch-single__v, .ch-single__dash { font-size: .55em; color: var(--ch-gold); }
.ch-single__ft { font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.ch-single__head .ch-btn { margin-top: 12px; }
.ch-single .ch-facts { background: var(--ch-cream); padding: 16px 18px; border-radius: 4px; margin-bottom: 18px; }
.ch-section { margin-bottom: 22px; }
.ch-section h2, .ch-report-heading {
	font-family: var(--ch-display);
	font-weight: 400;
	text-transform: uppercase;
	font-size: 1.6rem;
	color: var(--ch-red);
	margin: 0 0 10px;
}
.ch-section h3 { font-family: var(--ch-label); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; margin: 14px 0 6px; }
.ch-section p + p { margin-top: .6em; }
.ch-single .ch-subs { padding-left: 1.2em; }

/* Crests */
.cork-hub .ch-crest { display: inline-block; object-fit: contain; vertical-align: middle; flex: none; }
.ch-crest--xs { width: 20px; height: 20px; margin-right: 6px; }
.ch-crest--sm { width: 26px; height: 26px; margin-right: 8px; }
.ch-crest--lg { width: 72px; height: 72px; }
.ch-crest--xl { width: 96px; height: 96px; margin: 0 auto 8px; display: block !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.ch-crest--blank { border: 2px dashed rgba(255,255,255,.3); border-radius: 50%; }
.ch-side { display: inline-flex; align-items: center; }
.ch-team__in { display: inline-flex; align-items: center; }
.ch-next__teams--crests { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.ch-next__side { display: inline-flex; align-items: center; gap: 14px; }
.ch-next__teams--crests em { font-size: .55em; vertical-align: 0; }
.ch-next .ch-crest--lg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.ch-single__teams { align-items: flex-end; }
.ch-single__side { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ch-single__score { font-size: .8em; }

/* Homepage Matchday panel */
.cork-matchday { margin: 0 0 2.5rem; }
.ch-md { background: var(--ch-cream); border-radius: 6px; overflow: hidden; max-width: 100%; border: 1px solid var(--ch-line); }
.ch-md__top {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	background: var(--ch-red);
	background-image: linear-gradient(115deg, var(--ch-red) 0 70%, var(--ch-deep) 70% 100%);
	color: #fff; padding: 16px 22px;
}
.ch-md__top .ch-title { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.cork-hub .ch-md__all {
	color: #fff; text-decoration: none; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase;
	letter-spacing: .08em; font-size: .95rem; border-bottom: 2px solid var(--ch-gold); padding-bottom: 1px;
}
.cork-hub .ch-md__all:hover { color: var(--ch-gold); }
.ch-md__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-width: 0; gap: 18px; padding: 20px 22px; }
.ch-md__body--solo { grid-template-columns: 1fr; }
.ch-md__next { margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ch-md__next > .ch-kicker, .ch-md__next > .ch-next__meta, .ch-md__next > .ch-next__teams { align-self: stretch; }
.ch-md__empty { padding: 24px; background: #fff; border-radius: 6px; color: var(--ch-muted); }
.ch-md__h {
	font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	font-size: .95rem; color: var(--ch-red); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ch-red);
}
.ch-md__list ul { list-style: none; margin: 0; padding: 0; }
.ch-md__list li { margin: 0 0 6px; }
.cork-hub .ch-md__row {
	display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--ch-line);
	border-radius: 4px; padding: 10px 12px; text-decoration: none; color: var(--ch-ink);
}
.cork-hub .ch-md__row:hover { border-color: var(--ch-red); }
.ch-md__date {
	flex: none; width: 50px; text-align: center; background: var(--ch-deeper); color: #fff; border-radius: 4px;
	padding: 4px 0 5px; font-family: var(--ch-label); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; line-height: 1.1;
}
.ch-md__date b { display: block; font-family: var(--ch-display); font-weight: 400; font-size: 1.45rem; color: var(--ch-gold); letter-spacing: 0; }
.ch-md__info { min-width: 0; display: flex; flex-direction: column; }
.ch-md__team { font-family: var(--ch-label); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--ch-muted); }
.ch-md__team em { font-style: normal; color: var(--ch-red); }
.ch-md__vs { display: flex; align-items: center; flex-wrap: wrap; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; line-height: 1.3; }
.ch-md__vs i { font-style: normal; color: var(--ch-muted); font-weight: 500; padding: 0 .4em; }
.ch-md__meta { font-size: .88rem; color: var(--ch-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-md__results { padding: 0 22px 22px; }
.ch-md__res { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cork-hub .ch-md__result {
	display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--ch-line);
	border-top: 4px solid var(--ch-red); border-radius: 4px; padding: 12px 14px; text-decoration: none; color: var(--ch-ink);
}
.cork-hub .ch-md__result:hover { border-color: var(--ch-red); }
.ch-md__rhead { display: flex; justify-content: space-between; gap: 8px; font-family: var(--ch-label); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--ch-muted); }
.ch-md__rline { display: flex; align-items: center; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; }
.ch-md__rline.is-cork .ch-md__rname { color: var(--ch-red); }
.ch-md__rname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-md__rscore { font-family: var(--ch-display); font-weight: 400; font-size: 1.2rem; letter-spacing: .02em; }
.ch-md__rscore small { font-family: var(--ch-label); font-size: .7em; color: var(--ch-muted); }
.ch-md__rfoot { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ch-muted); margin-top: 2px; }
.ch-md__rfoot .ch-result { width: 22px; height: 22px; font-size: .8rem; }
.ch-count { display: flex; gap: 8px; margin: 14px 0 0 !important; position: relative; z-index: 1; }
.ch-count span {
	display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 8px 5px;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 4px;
	font-family: var(--ch-label); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; color: rgba(255,255,255,.8);
}
.ch-count b { font-family: var(--ch-display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--ch-gold); letter-spacing: 0; }
.ch-count span.ch-count__live { min-width: 0; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.ch-fallback-link { margin-top: 8px !important; }
.ch-editor-note { font-size: 12px; color: #757575; margin-top: 6px; }

@media (max-width: 680px) {
	.ch-top { padding: 18px 14px 0; }
	.ch-tabs { width: 100%; }
	.ch-tab { flex: 1; padding: 10px 6px 9px; }
	.ch-filters, .ch-panel { padding-left: 14px; padding-right: 14px; }
	.ch-select, .ch-select select { width: 100%; }
	.ch-card { grid-template-columns: 1fr; gap: 4px; }
	.ch-card__actions { justify-content: flex-start; margin-top: 8px; }
	.ch-card__time { font-size: 1.3rem; }
	.ch-more__cols { grid-template-columns: 1fr; }
	.ch-next { padding: 18px; }
	.ch-md__body { grid-template-columns: minmax(0, 1fr); padding: 14px; }
	.ch-md__res { grid-template-columns: minmax(0, 1fr); }
	.ch-next__teams--crests { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; text-align: center; gap: 8px; font-size: 1.75rem; align-self: stretch; }
	.ch-next__teams--crests .ch-next__side { flex-direction: column; gap: 6px; min-width: 0; }
	.ch-next__name { overflow-wrap: anywhere; }
	.ch-md__next .ch-next__actions .ch-btn { flex: 1; text-align: center; }
	.ch-md__results { padding: 0 14px 14px; }
	.ch-md__top { padding: 14px; }
	.ch-crest--lg { width: 52px; height: 52px; }
	.ch-crest--xl { width: 72px; height: 72px; }
	.ch-next__side { gap: 10px; }
}
@media (max-width: 420px) {
	.ch-lineup { columns: 1; }
}

/* =========================================================================
   Intercounty Hub (v1.4): header, menu, team cards and linked pages
   ========================================================================= */
.cork-hub .ih {
	--ih-red: #c8102e;
	--ih-red-dark: #a30d25;
	--ih-ink: #111;
	--ih-grey: #6b6b6b;
	--ih-line: #ececec;
	--ih-soft: #fdecef;
	background: #fff;
	color: var(--ih-ink);
	font-family: var(--ch-body);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.cork-hub .ih a { text-decoration: none; }
.cork-hub .ih h2, .cork-hub .ih h3, .cork-hub .ih h4 { margin: 0; padding: 0; border: 0; background: none; text-transform: none; letter-spacing: normal; }

/* Header */
.ih-head { background: var(--ih-red); color: #fff; }
.ih-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 16px 24px 0; flex-wrap: wrap; }
.cork-hub .ih-brand { display: flex; align-items: center; gap: 16px; color: #fff; padding-bottom: 16px; }
.ih-brand__badge {
	display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--ih-red);
	font-family: var(--ch-display); font-size: 1.05rem; letter-spacing: .01em; flex: none;
}
.cork-hub .ih-brand__crest { width: 60px; height: 60px; object-fit: contain; flex: none; background: #fff; border-radius: 50%; padding: 6px; }
.ih-brand__text { display: flex; flex-direction: column; line-height: 1; }
.ih-brand__name { font-family: var(--ch-display); text-transform: uppercase; font-size: 2.05rem; letter-spacing: .01em; }
.ih-brand__sub { font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .32em; font-size: .9rem; margin-top: 6px; opacity: .92; }
.ih-nav { display: flex; flex-wrap: wrap; gap: 4px 30px; align-self: stretch; align-items: stretch; }
.cork-hub .ih-nav a {
	display: flex; align-items: center; color: #fff; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase;
	font-size: 1.22rem; letter-spacing: .02em; padding: 8px 0 16px; border-bottom: 4px solid transparent; opacity: .92;
}
.cork-hub .ih-nav a:hover { opacity: 1; border-bottom-color: rgba(255,255,255,.45); }
.cork-hub .ih-nav a.is-on { opacity: 1; border-bottom-color: #fff; }
.ih-menu { display: none; }
.ih-sub { display: flex; flex-wrap: wrap; gap: 0 6px; padding: 0 24px; background: var(--ih-red-dark); }
.ih-sub::-webkit-scrollbar { display: none; }
.cork-hub .ih-sub a {
	flex: none; color: #fff; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	font-size: 1.02rem; padding: 13px 18px; opacity: .9; border-bottom: 3px solid transparent;
}
.cork-hub .ih-sub a:hover { opacity: 1; background: rgba(255,255,255,.07); }
.cork-hub .ih-sub a.is-on { opacity: 1; border-bottom-color: var(--ch-gold); }

/* Red band with team cards */
.ih-band {
	position: relative; margin: 0 -24px; padding: 46px 24px 0;
	background:
		repeating-linear-gradient(120deg, transparent 0 46px, rgba(255,255,255,.07) 46px 48px) top / 100% 72% no-repeat,
		linear-gradient(var(--ih-red), var(--ih-red)) top / 100% 72% no-repeat;
}
.ih-teamcards { display: grid; grid-template-columns: repeat(var(--ih-cols, 4), minmax(0, 1fr)); gap: 12px; }
.cork-hub .ih-teamcard, .cork-hub .ih-teambox {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	background: #fff; color: var(--ih-ink); border-radius: 4px; padding: 24px 12px 22px; border-bottom: 5px solid var(--ih-red);
	box-shadow: 0 6px 18px rgba(0,0,0,.12); transition: transform .15s ease, box-shadow .15s ease;
}
.cork-hub .ih-teamcard:hover, .cork-hub .ih-teambox:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.16); }
.cork-hub .ih-teamcard.is-on { background: var(--ih-soft); }
.ih-teamcard__grade { font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: .92rem; color: var(--ih-grey); }
.ih-teamcard__code { font-family: var(--ch-display); text-transform: uppercase; font-size: 1.85rem; line-height: 1.1; margin-top: 6px; }

/* Main area */
.ih-main { padding: 0 24px 34px; }
.ih-split { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 36px; }
.ih-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 44px 0 18px; }
.ih-kicker, .cork-hub .ih .ch-kicker {
	font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .24em; font-size: .98rem; color: var(--ih-red); margin: 0;
}
.cork-hub .ih .ih-kicker a { color: var(--ih-red); }
.cork-hub .ih .ih-h2, .cork-hub .ih .ih-h1 {
	font-family: var(--ch-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.02; color: var(--ih-ink); margin-top: 6px;
}
.cork-hub .ih .ih-h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.cork-hub .ih-more, .cork-hub .ih-link { color: var(--ih-red); font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.cork-hub .ih-more:hover, .cork-hub .ih-link:hover { text-decoration: underline; }
.ih-pagehead { margin: 36px 0 18px; }
.ih-pagehead__teams { margin-top: 12px !important; display: flex; flex-wrap: wrap; gap: 6px; }
.ih-crumb { margin: 22px 0 0 !important; font-size: .95rem; color: var(--ih-grey); }
.cork-hub .ih-crumb a { color: var(--ih-red); font-weight: 600; }
.ih-group {
	font-family: var(--ch-label) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .1em !important;
	font-size: 1.05rem !important; color: var(--ih-red); margin: 30px 0 12px !important; padding-bottom: 8px !important; border-bottom: 2px solid var(--ih-red) !important;
}
.cork-hub .ih-group a { color: var(--ih-red); }
.ih-grid { display: grid; gap: 18px; }
.ih-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ih-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ih-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ih-empty { background: #fafafa; border: 1px dashed #ddd; border-radius: 6px; padding: 22px; color: var(--ih-grey); }
.cork-hub .ih-empty a { color: var(--ih-red); font-weight: 700; }

/* Filter chips */
.ih-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cork-hub .ih-chip {
	font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem;
	padding: 7px 14px 6px; border-radius: 999px; border: 1.5px solid var(--ih-line); color: var(--ih-ink); background: #fff;
}
.cork-hub .ih-chip:hover { border-color: var(--ih-red); color: var(--ih-red); }
.cork-hub .ih-chip.is-on { background: var(--ih-red); border-color: var(--ih-red); color: #fff; }

/* Match card */
.ih-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ih-line); border-radius: 6px;
	padding: 22px 24px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.04); min-width: 0;
}
.ih-card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ih-card__top .ch-result { margin-left: auto; }
.cork-hub .ih-pill {
	display: inline-block; background: var(--ih-soft); color: var(--ih-red); font-family: var(--ch-label); font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; font-size: .98rem; padding: 5px 13px 4px; border-radius: 999px;
}
.cork-hub .ih-pill:hover { background: var(--ih-red); color: #fff; }
.ih-card__comp { margin: 14px 0 4px !important; color: #555; font-size: 1.05rem; }
.cork-hub .ih-card__comp a { color: #555; }
.cork-hub .ih-card__comp a:hover { color: var(--ih-red); text-decoration: underline; }
.cork-hub .ih-card__teams { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 14px; color: var(--ih-ink); }
.ih-row { display: flex; align-items: center; gap: 14px; }
.cork-hub .ih-crest { width: 46px; height: 46px; object-fit: contain; flex: none; display: block; }
.ih-crest--blank { border-radius: 50%; background: #f3f3f3; }
.cork-hub .ih-crest--sm { width: 22px; height: 22px; margin-right: 8px; display: inline-block; vertical-align: middle; }
.ih-row__name { flex: 1; min-width: 0; font-family: var(--ch-display); text-transform: uppercase; font-size: 1.85rem; line-height: 1.1; overflow-wrap: anywhere; }
.ih-row.is-cork .ih-row__name { color: var(--ih-red); }
.ih-row__score { font-family: var(--ch-display); font-size: 1.7rem; }
.ih-row__score small { font-family: var(--ch-label); font-size: .6em; color: var(--ih-grey); }
.cork-hub .ih-card__teams:hover .ih-row__name { text-decoration: underline; text-decoration-thickness: 2px; }
.ih-card__foot { margin-top: auto; border-top: 1px solid var(--ih-line); padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ih-card__when { display: flex; flex-direction: column; gap: 2px; font-size: .98rem; color: #444; min-width: 0; }
.ih-card__when span:first-child { font-weight: 700; color: var(--ih-ink); }
.cork-hub .ih-card__when a { color: #444; text-decoration: underline; text-decoration-color: #ccc; }
.ih-tv { font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ih-red); }
.ih-card__actions { display: flex; align-items: center; gap: 14px; }
.cork-hub .ih-btn { font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 7px 14px 6px; border-radius: 4px; }
.cork-hub .ih-btn--gold { background: var(--ch-gold); color: var(--ch-deeper); }
.cork-hub .ih-btn--gold:hover { background: #ffd451; }
.ih-card--result .ih-card__teams { padding-bottom: 12px; }

/* Important matches and side lists */
.ih-imp { list-style: none; margin: 0 !important; padding: 0 !important; border: 1px solid var(--ih-line); border-radius: 6px; overflow: hidden; background: #fff; }
.ih-imp li { margin: 0 !important; border-bottom: 1px solid var(--ih-line); list-style: none; }
.ih-imp li:last-child { border-bottom: 0; }
.cork-hub .ih-imp a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; color: var(--ih-ink); }
.cork-hub .ih-imp a:hover { background: #fbf6f6; }
.ih-imp__title { font-family: var(--ch-display); text-transform: uppercase; font-size: 1.55rem; line-height: 1.1; }
.cork-hub .ih-imp a:hover .ih-imp__title { color: var(--ih-red); }
.ih-imp__meta { color: #555; font-size: 1.02rem; }
.ih-imp__note { align-self: flex-start; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--ih-red); border: 1.5px solid currentColor; border-radius: 3px; padding: 1px 6px 0; }
.ih-split__side .ih-table { margin-top: 18px; }

/* Competitions and teams pages */
.cork-hub .ih-comp, .cork-hub .ih-teambox { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--ih-line); border-radius: 6px; padding: 20px 22px; color: var(--ih-ink); }
.cork-hub .ih-comp:hover { border-color: var(--ih-red); }
.ih-comp__name { font-family: var(--ch-display); text-transform: uppercase; font-size: 1.4rem; line-height: 1.1; }
.ih-comp__count { font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ih-grey); font-size: .9rem; }
.ih-comp__next { font-size: .98rem; color: #444; }
.cork-hub .ih-comp .ih-link, .cork-hub .ih-teambox .ih-link { margin-top: auto; font-size: 1rem; }
.cork-hub .ih-teambox { border-bottom: 5px solid var(--ih-red); align-items: flex-start; text-align: left; box-shadow: none; }
.ih-teambox .ih-teamcard__code { margin: 0 0 6px; }
.ih-teambox__line { font-size: .95rem; color: #444; }
.ih-teambox__line b { font-family: var(--ch-label); text-transform: uppercase; letter-spacing: .08em; color: var(--ih-red); margin-right: 4px; }
.ih-teambox__line .ch-result { width: 20px; height: 20px; font-size: .75rem; vertical-align: middle; }

/* Team page */
.ih-teamhead { margin: 0 -24px; padding: 4px 24px 30px; background: repeating-linear-gradient(120deg, transparent 0 46px, rgba(255,255,255,.07) 46px 48px), var(--ih-red); color: #fff; }
.ih-teamhead .ih-crumb, .cork-hub .ih-teamhead .ih-crumb a { color: #fff; opacity: .9; }
.ih-teamhead__grade { margin: 18px 0 0 !important; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .3em; font-size: 1.1rem; opacity: .9; }
.cork-hub .ih .ih-teamhead__code { font-family: var(--ch-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1; color: #fff; }
.ih-teamhead__links { display: flex; gap: 10px; margin-top: 16px !important; }
.cork-hub .ih-teamhead__links a { color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: 4px; padding: 7px 16px 6px; font-family: var(--ch-label); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.cork-hub .ih-teamhead__links a:hover { background: #fff; color: var(--ih-red); }
.ih-nextwrap { margin-top: 24px; }
.cork-hub .ih .ih-next .ch-kicker, .cork-hub .ih .ih-next .ch-kicker a { color: rgba(255,255,255,.8); letter-spacing: .06em; font-size: .9rem; }

/* League tables */
.ih-table { background: #fff; border: 1px solid var(--ih-line); border-radius: 6px; padding: 18px 20px; min-width: 0; }
.cork-hub .ih .ih-table h3 { font-family: var(--ch-display); font-weight: 400; text-transform: uppercase; font-size: 1.45rem; margin: 4px 0 10px; }
.cork-hub .ih-table h3 a { color: var(--ih-ink); }
.cork-hub .ih-table h3 a:hover { color: var(--ih-red); }
.ih-table__wrap { overflow-x: auto; }
.cork-hub .ih-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0; border: 0; }
.cork-hub .ih-table th, .cork-hub .ih-table td { padding: 8px 6px; text-align: center; border: 0; border-bottom: 1px solid var(--ih-line); background: none; }
.cork-hub .ih-table thead th { font-family: var(--ch-label); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--ih-grey); border-bottom: 2px solid var(--ih-ink); }
.cork-hub .ih-table .ih-team { text-align: left; font-weight: 600; }
.ih-team__in { display: inline-flex; align-items: center; }
.ih-table .ih-pos { width: 28px; color: var(--ih-grey); }
.ih-table .ih-pts { font-weight: 700; }
.cork-hub .ih-table tr.is-cork td, .cork-hub .ih-table tr.is-cork th { background: var(--ih-soft); color: var(--ih-red); }
.ih-table__note { margin-top: 10px !important; font-size: .9rem; color: var(--ih-grey); }

/* Match page menu */
.ih-standalone { margin-bottom: 18px; }
.ih-standalone .ih { box-shadow: none; }
.ih-nav--static { display: flex; }
.ih-standalone .ih-crumb { margin: 12px 0 0 !important; }

@media (max-width: 1000px) {
	.ih-teamcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ih-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ih-grid--3, .ih-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ih-nav { gap: 4px 20px; }
	.cork-hub .ih-nav a { font-size: 1.05rem; }
}
@media (max-width: 700px) {
	.ih-bar { padding: 12px 16px; }
	.cork-hub .ih-brand { padding-bottom: 0; gap: 12px; }
	.ih-brand__badge, .cork-hub .ih-brand__crest { width: 48px; height: 48px; }
	.ih-brand__name { font-size: 1.6rem; }
	.ih-brand__sub { font-size: .72rem; letter-spacing: .22em; }
	.ih-menu {
		display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 4px;
		background: transparent; color: #fff; cursor: pointer; padding: 0;
	}
	.ih-menu > span:first-child, .ih-menu > span:first-child::before, .ih-menu > span:first-child::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
	.ih-menu > span:first-child::before, .ih-menu > span:first-child::after { content: ''; position: absolute; left: 0; }
	.ih-menu > span:first-child::before { top: -6px; }
	.ih-menu > span:first-child::after { top: 6px; }
	.ih-nav { display: none; width: 100%; flex-direction: column; gap: 0; }
	.ih-head.is-open .ih-nav { display: flex; }
	.cork-hub .ih-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
	.cork-hub .ih-nav a.is-on { border-bottom-color: rgba(255,255,255,.2); box-shadow: inset 4px 0 0 #fff; padding-left: 12px; }
	.ih-nav--static { display: none; }
	.ih-sub { padding: 0 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.cork-hub .ih-sub a { font-size: .9rem; padding: 11px 10px; }
	.ih-band { margin: 0 -16px; padding: 26px 16px 0; }
	.ih-teamcards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
	.cork-hub .ih-teamcard { padding: 16px 8px 14px; }
	.ih-teamcard__code { font-size: 1.4rem; }
	.ih-main { padding: 0 16px 26px; }
	.ih-teamhead { margin: 0 -16px; padding: 4px 16px 24px; }
	.ih-grid--2, .ih-grid--3, .ih-grid--4 { grid-template-columns: minmax(0, 1fr); }
	.ih-sechead { flex-wrap: wrap; margin-top: 34px; }
	.ih-card { padding: 18px; }
	.ih-row__name { font-size: 1.5rem; }
	.cork-hub .ih-crest { width: 38px; height: 38px; }
}
