/* BGCS Handicaps — front styles */
.bgcs-front { margin: 1em 0; font-size: 15px; color: #1d2327; }
.bgcs-front h3 { margin: 0 0 .2em; }
.bgcs-front .bgcs-sub { color: #6b7178; margin: 0 0 1em; }
.bgcs-empty { color: #6b7178; font-style: italic; }

.bgcs-hcap-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0 20px;
}
.bgcs-hcap-card {
	flex: 0 0 auto;
	min-width: 120px;
	background: #f6f8fa;
	border: 1px solid #e2e6ea;
	border-radius: 10px;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bgcs-hcap-card.bgcs-standard { background: #eef4ff; border-color: #cfe0ff; }
.bgcs-hcap-label { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #6b7178; }
.bgcs-hcap-value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.bgcs-hcap-rounds { font-size: 11px; color: #8a9099; }

.bgcs-history {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 16px;
}
.bgcs-history th, .bgcs-history td {
	padding: 7px 10px;
	border-bottom: 1px solid #ececee;
	text-align: left;
}
.bgcs-history thead th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #6b7178;
	border-bottom: 2px solid #e2e6ea;
}
.bgcs-history tr.bgcs-counting td { background: transparent; }

/* Rolling-window divider: a thick rule under the last in-window round, with
   every row below it shaded to show those rounds are outside the record. */
.bgcs-history tr.bgcs-window-edge td { border-bottom: 3px solid #6b7178; }
.bgcs-history tr.bgcs-out-of-window td { background: #f1f3f5; color: #8a9099; }
.bgcs-history tr.bgcs-out-of-window .bgcs-score-gross { color: #a7adb4; }

.bgcs-card-toggle, .bgcs-btn {
	display: inline-block;
	border: 1px solid #c3c8ce;
	background: #fff;
	color: #1d2327;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
}
.bgcs-btn-primary { background: #1e5aa8; border-color: #1e5aa8; color: #fff; }
.bgcs-card-toggle:hover, .bgcs-btn:hover { border-color: #1e5aa8; }

.bgcs-card-wrap { overflow-x: auto; }
.bgcs-card { border-collapse: collapse; margin: 6px 0; min-width: 640px; }
.bgcs-card th, .bgcs-card td {
	border: 1px solid #e2e6ea;
	padding: 4px 6px;
	text-align: center;
	font-size: 13px;
}
.bgcs-card tbody tr:first-child th, .bgcs-card tbody tr:first-child td { background: #f6f7f7; }
.bgcs-card .bgcs-nr { color: #b32d2e; font-weight: 600; }

.bgcs-comp-list { list-style: none; margin: 0; padding: 0; }
.bgcs-comp-list li { padding: 8px 0; border-bottom: 1px solid #ececee; }
.bgcs-badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 10px;
	background: #f0f0f1;
	color: #50575e;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}
.bgcs-badge-done { background: #e6f4ea; color: #1e7e34; }

.bgcs-fe-holes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.bgcs-fe-hole {
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bgcs-fe-hnum { font-weight: 700; }
.bgcs-fe-par { font-size: 12px; color: #6b7178; }
.bgcs-fe-strokes { width: 70px; padding: 4px; }
.bgcs-fe-nrlabel { font-size: 12px; color: #6b7178; }
.bgcs-note { color: #1e7e34; font-weight: 600; }
.bgcs-error { color: #b32d2e; font-weight: 600; }

/* Per-category scoring record chart (England-Golf-style) */
.bgcs-cat-section { margin: 22px 0 10px; }
.bgcs-cat-title { margin: 0 0 8px; }
.bgcs-chart-wrap { overflow-x: auto; }
.bgcs-chart { width: 100%; max-width: 600px; height: auto; display: block; }
.bgcs-grid { stroke: #e6e9ed; stroke-width: 1; stroke-opacity: 0.5; }
.bgcs-axis { fill: #8a9099; font-size: 11px; font-family: inherit; }
.bgcs-diff-line { fill: none; stroke: #b8bfc7; stroke-width: 1.75; }
.bgcs-idx-line { fill: none; stroke: #2579ad; stroke-width: 3; }
.bgcs-idx-pt { fill: #ffffff; stroke: #2579ad; stroke-width: 2.5; }
.bgcs-pt-counting { fill: #22c55e; stroke: #fff; stroke-width: 1; }
.bgcs-pt-noncounting { fill: #ffffff; stroke: #f5821f; stroke-width: 3; }
.bgcs-chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #6b7178; margin: 6px 0 12px; }
.bgcs-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.bgcs-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bgcs-legend-counting { background: #22c55e; }
.bgcs-legend-noncounting { background: #fff; border: 2px solid #f5821f; box-sizing: border-box; }
.bgcs-legend-line { width: 16px; height: 3px; background: #2579ad; display: inline-block; }
.bgcs-count-cell { width: 20px; text-align: center; padding-right: 0; }
.bgcs-count-dot { width: 9px; height: 9px; border-radius: 50%; background: #1e7e34; display: inline-block; }
.bgcs-supp-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block; }

/* Clickable category cards */
.bgcs-hcap-card.bgcs-cat-toggle {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	text-align: left;
	transition: border-color .12s, box-shadow .12s;
}
/* The whole card is the click target — children never swallow the click,
   so a single press anywhere on the box reliably opens the record. */
.bgcs-hcap-card.bgcs-cat-toggle > * { pointer-events: none; }
.bgcs-hcap-card.bgcs-cat-toggle:hover { border-color: #1e5aa8; }
.bgcs-hcap-card.bgcs-cat-toggle.bgcs-active { border-color: #1e5aa8; box-shadow: 0 0 0 2px rgba(30,90,168,.15); }
.bgcs-hcap-cta { font-size: 11px; color: #1e5aa8; margin-top: 3px; font-weight: 600; }

/* Score + differential cells in the records table */
.bgcs-score-cell { text-align: center; white-space: nowrap; }
.bgcs-diff-cell { text-align: center; font-weight: 600; color: #50575e; }
/* England-Golf-style score badge: green (counting) / white+grey border (non-counting) */
.bgcs-score-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 7px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	box-sizing: border-box;
	line-height: 1;
}
.bgcs-score-counting { background: #1e7e34; color: #fff; border: 1.5px solid #1e7e34; }
.bgcs-score-noncounting { background: #fff; color: #1d2327; border: 1.5px solid #c3c8ce; }
.bgcs-score-gross { color: #8a9099; font-size: 12px; margin-left: 5px; }

/* Scorecard hole marks — birdie/eagle circles (green), bogey/double squares (red) */
.bgcs-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	line-height: 1;
	margin: 2px;
	box-sizing: border-box;
	font-weight: 600;
}
/* Handicap-list "start typing" search + member links */
.bgcs-list-search { margin: 0 0 12px; }
.bgcs-list-filter {
	width: 100%;
	max-width: 320px;
	padding: 8px 12px;
	border: 1px solid #c3c8ce;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}
.bgcs-list-filter:focus {
	border-color: #1e5aa8;
	outline: none;
	box-shadow: 0 0 0 2px rgba( 30, 90, 168, .15 );
}
.bgcs-handicap-list table.bgcs-hcap-table a { color: #1e5aa8; text-decoration: none; }
.bgcs-handicap-list table.bgcs-hcap-table a:hover { text-decoration: underline; }

.bgcs-birdie { border: 1.6px solid #1e7e34; border-radius: 50%; color: #1e7e34; }
.bgcs-eagle  { border: 1.6px solid #1e7e34; border-radius: 50%; color: #1e7e34; box-shadow: 0 0 0 1.6px #fff, 0 0 0 3px #1e7e34; }
.bgcs-bogey  { border: 1.6px solid #b32d2e; color: #b32d2e; }
.bgcs-dbogey { border: 1.6px solid #b32d2e; color: #b32d2e; box-shadow: 0 0 0 1.6px #fff, 0 0 0 3px #b32d2e; }
