/* ICF Leagues — public styles. Dark design matching itscalled-football.com (black, #111 cards, white pill buttons). */

.icfl {
	--icfl-card: #111;
	--icfl-card-2: #171717;
	--icfl-line: #262626;
	--icfl-input: #1e1e1e;
	--icfl-input-line: #2e2e2e;
	--icfl-text: #f9f9f9;
	--icfl-muted: #a3a3a3;
	--icfl-ok: #3ddc84;
	--icfl-live: #4da3ff;
	--icfl-warn: #f5b942;
	--icfl-err: #ff6b6b;
	--icfl-radius: 14px;
	color: var(--icfl-text);
	text-transform: none;
	font-size: 1rem;
	line-height: 1.55;
	margin-block: 1.5rem 3rem;
}
.icfl *, .icfl *::before, .icfl *::after { box-sizing: border-box; }
.icfl a { color: inherit; }
.icfl h1, .icfl h2, .icfl h3 { margin: 0 0 .75rem; line-height: 1.15; }
.icfl h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
.icfl h3 { font-size: 1.1rem; }
.icfl p { margin: 0 0 .75rem; }
.icfl p:not([class]), .icfl-panel > p.icfl-muted { font-size: inherit; }
.icfl ul, .icfl ol { margin-top: 0; }
.icfl-muted, .icfl-sub { color: var(--icfl-muted); }
.icfl .screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.icfl :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Buttons */
.icfl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 46px; padding: .7rem 1.6rem; border: 2px solid #fff; border-radius: 999px;
	background: #fff; color: #0d0d0d !important; font: inherit; font-size: .85rem; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, transform .1s;
}
.icfl-btn:hover { background: #e6e6e6; }
.icfl-btn:active { transform: scale(.98); }
.icfl-btn--ghost { background: transparent; color: #fff !important; }
.icfl-btn--ghost:hover { background: #fff; color: #0d0d0d !important; }
.icfl-btn--block { width: 100%; margin-top: .5rem; }
.icfl-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Badges & status */
.icfl-badges { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 .9rem; padding: 0; }
.icfl-badge { border: 1px solid var(--icfl-input-line); border-radius: 999px; padding: .2rem .65rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--icfl-muted); }
.icfl-badge--strong { background: #fff; border-color: #fff; color: #000; font-weight: 700; }
.icfl-pill { display: inline-flex; align-items: center; gap: .5rem; margin: .1rem 0 1rem; font-size: .85rem; color: var(--icfl-muted); }
.icfl-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.icfl-pill--open { color: var(--icfl-ok); }
.icfl-pill--live { color: var(--icfl-live); }
.icfl-pill--live .icfl-dot { animation: icfl-pulse 1.6s ease-in-out infinite; }
.icfl-pill--full { color: var(--icfl-warn); }
@keyframes icfl-pulse { 50% { opacity: .3; } }

/* Filters */
.icfl-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.icfl-chip { padding: .45rem 1rem; border: 1px solid var(--icfl-input-line); border-radius: 999px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.icfl-chip:hover { border-color: #fff; }
.icfl-chip.is-active { background: #fff; border-color: #fff; color: #000 !important; }

/* League cards */
.icfl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.icfl-card { display: flex; flex-direction: column; padding: 1.5rem; background: var(--icfl-card); border: 1px solid var(--icfl-line); border-radius: var(--icfl-radius); transition: border-color .2s, transform .2s; }
.icfl-card:hover { border-color: #444; transform: translateY(-2px); }
.icfl-card__title a { text-decoration: none; }
.icfl-card__title a:hover { text-decoration: underline; }
.icfl-meta { list-style: none; margin: 0 0 .5rem; padding: 0; color: var(--icfl-muted); font-size: .92rem; }
.icfl-meta li { display: flex; align-items: center; gap: .5rem; margin: .3rem 0; }
.icfl-icon { flex: none; }
.icfl-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--icfl-line); }
.icfl-price { margin: 0 !important; font-size: 1.5rem; font-weight: 700; }
.icfl-price span { font-size: .8rem; font-weight: 400; color: var(--icfl-muted); }
.icfl-price del { font-size: 1rem; font-weight: 400; color: var(--icfl-muted); margin-right: .3rem; }
.icfl-price--early del { display: block; font-size: .85rem; margin: 0; line-height: 1.2; }
.icfl-price--early strong { display: block; white-space: nowrap; font-weight: 700; }
.icfl-price .icfl-early { display: block; margin-top: .15rem; line-height: 1.3; }
.icfl-early { font-size: .78rem; font-weight: 600; color: var(--icfl-warn); letter-spacing: .01em; }
.icfl-empty { padding: 2.5rem; background: var(--icfl-card); border: 1px dashed var(--icfl-input-line); border-radius: var(--icfl-radius); }

/* League header */
.icfl-back { margin-bottom: 1rem !important; }
.icfl-back a { color: var(--icfl-muted); font-size: .9rem; text-decoration: none; }
.icfl-back a:hover { color: #fff; }
.icfl-hero { margin-bottom: 1rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--icfl-card); border: 1px solid var(--icfl-line); border-radius: var(--icfl-radius); }
.icfl-hero__title { font-size: clamp(1.9rem, 5vw, 3.25rem); }
.icfl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem 1.5rem; margin: .5rem 0 1.5rem; }
.icfl-facts dt { margin-bottom: .2rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--icfl-muted); }
.icfl-facts dd { margin: 0; }
.icfl-facts a { color: var(--icfl-muted); font-size: .9rem; }
.icfl-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Section nav */
.icfl-subnav { position: sticky; top: 0; z-index: 5; margin: 0 0 .5rem; background: rgba(0, 0, 0, .92); border-bottom: 1px solid var(--icfl-line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.admin-bar .icfl-subnav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .icfl-subnav { top: 46px; } }
.icfl-subnav ul { display: flex; gap: 1.5rem; margin: 0; padding: .9rem 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.icfl-subnav a { color: var(--icfl-muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.icfl-subnav a:hover { color: #fff; }
.icfl-section { padding: 2rem 0; border-bottom: 1px solid var(--icfl-line); scroll-margin-top: 80px; }
.icfl-section:last-child { border-bottom: 0; }
.icfl-prose { color: #ddd; }
.icfl-points { color: var(--icfl-muted); font-size: .92rem; }

/* Steps */
.icfl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: icfl-step; }
.icfl-steps li { position: relative; padding: 1rem 1rem 1rem 3.25rem; background: var(--icfl-card); border: 1px solid var(--icfl-line); border-radius: 12px; color: var(--icfl-muted); font-size: .92rem; counter-increment: icfl-step; }
.icfl-steps li::before { content: counter(icfl-step); position: absolute; top: 1rem; left: 1rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; color: #000; font-size: .85rem; font-weight: 700; }
.icfl-steps strong { display: block; color: #fff; }

/* Forms */
.icfl-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; align-items: start; }
.icfl-panel { padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--icfl-card); border: 1px solid var(--icfl-line); border-radius: var(--icfl-radius); scroll-margin-top: 80px; }
.icfl-panel--narrow { max-width: 640px; }
.icfl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .icfl-row { grid-template-columns: 1fr; } }
.icfl-field { margin-bottom: 1rem; }
.icfl-field label { display: block; margin-bottom: .4rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #aaa; }
.icfl-optional { color: #777; letter-spacing: 0; text-transform: none; }
.icfl input[type="text"], .icfl input[type="email"], .icfl input[type="tel"], .icfl select, .icfl textarea {
	width: 100%; min-height: 46px; padding: .7rem .8rem; background: var(--icfl-input); border: 1px solid var(--icfl-input-line);
	border-radius: 8px; color: #fff; font-family: inherit; font-size: 16px; text-transform: none;
}
.icfl select { appearance: auto; }
.icfl input:focus, .icfl select:focus, .icfl textarea:focus { border-color: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.icfl .has-error input, .icfl .has-error select, .icfl .has-error textarea { border-color: var(--icfl-err); }
.icfl-error { margin: .35rem 0 0 !important; color: var(--icfl-err); font-size: .85rem; }
.icfl-check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; margin: .6rem 0; }
.icfl-check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: #fff; }
.icfl-check label { font-size: .95rem; cursor: pointer; }
.icfl-check .icfl-error { grid-column: 2; }
.icfl-waiver { margin: .5rem 0 1rem; padding: .75rem 1rem; background: var(--icfl-card-2); border: 1px solid var(--icfl-line); border-radius: 10px; }
.icfl-waiver summary { color: #ddd; font-size: .9rem; cursor: pointer; }
.icfl-waiver .icfl-prose { max-height: 220px; margin-top: .75rem; overflow: auto; color: var(--icfl-muted); font-size: .88rem; }
.icfl-fineprint { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 !important; color: var(--icfl-muted); font-size: .8rem; }
.icfl-fineprint .icfl-icon { margin-top: .15rem; }
.icfl-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Notices */
.icfl-notice { margin: 0 0 1rem; padding: .9rem 1.1rem; border: 1px solid; border-radius: 10px; font-size: .95rem; }
.icfl-notice--success { border-color: #2f7d4f; background: rgba(61, 220, 132, .08); color: #c9f5dc; }
.icfl-notice--info { border-color: #3a5f8a; background: rgba(77, 163, 255, .08); color: #d6e8ff; }
.icfl-notice--error { border-color: #8a3a3a; background: rgba(255, 107, 107, .08); color: #ffd6d6; }

/* Tables (same look as the ICF standings tables) */
.icfl-table-wrap { overflow-x: auto; border: 1px solid var(--icfl-line); border-radius: 12px; }
.icfl-table { width: 100%; margin: 0; border-collapse: collapse; background: #0a0a0a; font-size: .95rem; font-variant-numeric: tabular-nums; }
.icfl-table th, .icfl-table td { padding: .85rem .6rem; border: 0; border-bottom: 1px solid #1d1d1d; text-align: center; }
.icfl-table tbody tr:last-child > * { border-bottom: 0; }
.icfl-table thead th { background: #000; border-bottom: 2px solid #333; color: #bbb; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.icfl-table abbr { text-decoration: none; cursor: help; }
.icfl-table tbody tr:hover { background: #151515; }
.icfl-table tr.is-mine { background: rgba(255, 255, 255, .07); }
.icfl-team-col { text-align: left !important; font-weight: 700; white-space: nowrap; }
.icfl-pts-col { background: #141414; border-left: 1px solid #2a2a2a; font-weight: 800; }
.icfl-rank { color: var(--icfl-muted); }
.icfl-rank--1 { color: #ffd700 !important; font-weight: 800; }
.icfl-rank--2 { color: #c0c0c0 !important; font-weight: 800; }
.icfl-rank--3 { color: #cd7f32 !important; font-weight: 800; }
.icfl-formguide { display: inline-flex; gap: 3px; }
.icfl-formguide span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; font-size: .7rem; font-weight: 700; color: #000; }
.icfl-formguide__w { background: var(--icfl-ok); }
.icfl-formguide__d { background: #9a9a9a; }
.icfl-formguide__l { background: var(--icfl-err); }
@media (max-width: 640px) { .icfl-hide-sm { display: none; } .icfl-table th, .icfl-table td { padding: .7rem .4rem; } .icfl-team-col { min-width: 8rem; white-space: normal; overflow-wrap: anywhere; } .icfl-match { gap: .25rem .6rem; padding: .8rem .75rem; } }

/* Schedule */
.icfl-round { margin-bottom: 1.5rem; }
.icfl-round h3 span { color: var(--icfl-muted); font-weight: 400; }
.icfl-round--playoff h3 { letter-spacing: .04em; text-transform: uppercase; }
.icfl-round--playoff ul { border-color: currentColor; }
.icfl-round ul { margin: 0; padding: 0; overflow: hidden; list-style: none; border: 1px solid var(--icfl-line); border-radius: 12px; }
.icfl-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .25rem 1rem; align-items: center; padding: .9rem 1rem; background: #0a0a0a; border-bottom: 1px solid #1d1d1d; }
.icfl-match:last-child { border-bottom: 0; }
.icfl-match.is-mine { background: #161616; }
.icfl-match__home { text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.icfl-match__away { font-weight: 700; overflow-wrap: anywhere; }
.icfl-match__meta { grid-column: 1 / -1; color: var(--icfl-muted); font-size: .78rem; text-align: center; }
.icfl-match__summary { grid-column: 1 / -1; max-width: 62ch; margin: .35rem auto 0 !important; color: #cfcfcf; font-size: .88rem; line-height: 1.5; text-align: center !important; }
.icfl-score { padding: .2rem .6rem; background: #fff; border-radius: 6px; color: #000; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.icfl-vs { color: var(--icfl-muted); font-size: .85rem; white-space: nowrap; }
.icfl-tag { padding: .15rem .5rem; border: 1px solid var(--icfl-input-line); border-radius: 999px; color: var(--icfl-warn); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* Captain page */
.icfl-private { display: flex; gap: .5rem; align-items: center; color: var(--icfl-warn); font-size: .85rem; }
.icfl-copy { display: flex; gap: .5rem; }
.icfl-copy input { flex: 1; font-size: .85rem !important; }
.icfl-roster-count { display: flex; gap: .5rem; align-items: center; margin-top: 1rem !important; color: var(--icfl-muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
	.icfl *, .icfl *::before { animation: none !important; transition: none !important; }
}
