/* Teams overview page (teamsconferences.jsp) */
:root {
	--bg: #f4f1ea;
	--card: #ffffff;
	--line: #e4dfd4;
	--ink: #151515;
	--muted: #6e6a62;
	--red: #d1203a;
	--pink-bg: #fde6ea;
	--chip-bg: #ffffff;
	--badge-bg: #efebe2;
	--bar-bg: #ece7dd;
}

* { box-sizing: border-box; }

body.teams-page {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
}

.teams-page a { color: inherit; }
.teams-page button { font: inherit; color: inherit; cursor: pointer; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--red); }
.brand span { color: var(--ink); font-family: "Barlow Condensed", Arial, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.brand b { color: var(--red); }
.mainnav { display: flex; gap: 22px; height: 100%; }
.mainnav a { display: flex; align-items: center; text-decoration: none; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--ink); }
.mainnav a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--red); }

/* title */
.crumbs { margin: 24px 0 18px; font-size: 12px; color: var(--muted); }
.crumbs a { text-decoration: underline; }
.crumbs span:last-child { color: var(--ink); font-weight: 600; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.title-row h1 { margin: 0; font-family: "Barlow Condensed", Arial, sans-serif; font-weight: 800; font-size: 54px;
	line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.lede { margin: 8px 0 0; color: var(--muted); }

.pills, .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button, .chips button { border: 1px solid var(--line); background: var(--chip-bg); border-radius: 999px;
	padding: 6px 13px; font-size: 12px; font-weight: 600; }
.pills button:hover, .chips button:hover { border-color: var(--ink); }
.pills button.active, .chips button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; margin: 22px 0 40px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; }

.filters { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.select { height: 30px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 0 10px;
	font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.select:focus { outline: 0; border-color: var(--ink); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--card);
	border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; height: 32px; width: 220px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font: inherit; color: var(--ink); }
.search:focus-within { border-color: var(--ink); }

/* table */
.teams-table { width: 100%; border-collapse: collapse; }
.teams-table th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.teams-table td { padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.teams-table tbody tr:last-child td { border-bottom: 0; }
.teams-table tbody tr.team-row { cursor: pointer; }
.teams-table tbody tr.team-row:hover td { background: #faf8f3; }
.teams-table tbody tr.team-row:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.col-no { width: 40px; color: var(--muted); font-size: 11px; }
.col-conf { width: 120px; }
.col-lost { width: 210px; }
.col-go { width: 36px; color: var(--muted); text-align: right; }
.teams-table th.col-lost { text-align: center; }

.team { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.abbr { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 4px;
	background: var(--badge-bg); border-radius: 3px; font-size: 9px; font-weight: 700; letter-spacing: .03em; color: #4a463f; }

.tag { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; background: var(--badge-bg); color: #4a463f; white-space: nowrap; }
.tag.dark { background: var(--ink); color: #fff; }
.tag.pink { background: var(--pink-bg); color: var(--red); }

.lost { display: flex; align-items: center; gap: 12px; }
.bar { flex: 1; height: 4px; background: var(--bar-bg); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 2px; }
.lost b { width: 34px; text-align: right; font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 28px 14px !important; }

/* sidebar */
.snapshot { background: var(--ink); color: #fff; border-color: var(--ink); padding: 16px 16px 18px; }
.snapshot h2, .measures h2 { margin: 0 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.stats strong { display: block; font-family: "Barlow Condensed", Arial, sans-serif; font-size: 30px; font-weight: 800; line-height: 1; }
.stats span { display: block; margin-top: 4px; font-size: 11px; color: #bdb8ae; }
.measures { margin-top: 12px; padding: 14px 16px; }
.measures h2 { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.measures p { margin: 0; color: var(--muted); line-height: 1.55; }

.footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 28px;
	border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
	.layout { grid-template-columns: 1fr; }
	aside { order: -1; }
	.search { margin-left: 0; width: 100%; }
}

@media (max-width: 600px) {
	.wrap { padding: 0 16px; }
	.title-row h1 { font-size: 40px; }
	.col-conf, .teams-table td:nth-child(3) { display: none; }
	.col-lost { width: 130px; }
	.mainnav { gap: 14px; }
}
