/*
 * EB public front end (results site). Sits on plain Bootstrap 4, no Slica
 * theme: EB colours, rounded cards, and the two fonts of www.eb.org.au:
 * Zona Pro Bold (headings, buttons, anything bold) and Basic Sans (text).
 */
@font-face { font-family: "Zona Pro"; src: url("../fonts/zonapro/ZonaPro-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Basic Sans"; src: url("../fonts/basicsans/BasicSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
	--eb-navy: #002856; --eb-royal: #0066B3; --eb-magenta: #DA1884; --eb-green: #95D600; --eb-yellow: #F8DB00;
	--eb-ink: #1B2A41; --eb-sub: #5B6577; --eb-line: #E4E8EF; --eb-page: #F2F4F8; --eb-soft: #F7F9FC;
	--eb-text: "Basic Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--eb-head: "Zona Pro", "Basic Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
	--eb-radius: 14px; --eb-radius-sm: 9px;
	--eb-shadow: 0 1px 2px rgba(0, 40, 86, .05), 0 6px 20px rgba(0, 40, 86, .06);
}

html { -webkit-text-size-adjust: 100%; }
body.eb-front { background: var(--eb-page); color: var(--eb-ink); font-family: var(--eb-text); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.eb-front h1, .eb-front h2, .eb-front h3, .eb-front h4, .eb-front h5 { color: var(--eb-navy); font-weight: 700; }
.eb-front h1, .eb-front h2, .eb-front h3, .eb-front h4, .eb-front h5, .eb-front .card-title, .eb-front .btn, .eb-front .eb-top-nav a, .eb-front .breadcrumb-item.active, .eb-front .form-label { font-family: var(--eb-head); }
/* Basic Sans has one weight: bold text is set in Zona Pro Bold, never a faked bold */
.eb-front b, .eb-front strong, .eb-front .font-weight-bold, .eb-front th { font-family: var(--eb-head); font-weight: 700; }
.eb-front h1, .eb-front h2 { letter-spacing: -.01em; }
.eb-front h5 { font-size: 15px; }
.eb-front a { color: var(--eb-royal); }
.eb-front a:hover { color: var(--eb-navy); }
.eb-front .text-muted { color: var(--eb-sub) !important; }
.eb-front .text-primary { color: var(--eb-royal) !important; }
.eb-front .fs-14 { font-size: 14px; }
.eb-front .text-orange { color: #E8590C; }
.eb-front .opacity-75 { opacity: .75; }

/* Header */
.eb-top { background: var(--eb-navy); color: #fff; }
.eb-top-in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.eb-top-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; }
.eb-top-brand img { height: 30px; width: auto; display: block; }
.eb-top-brand span { font-family: var(--eb-head); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--eb-yellow); border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 12px; }
.eb-top-nav { margin-left: auto; display: flex; gap: 4px; }
.eb-top-nav a { color: #fff; font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.eb-top-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.eb-top-nav a.active { background: #fff; color: var(--eb-navy); }
@media (max-width: 575px) {
	.eb-top-brand span { display: none; }
	.eb-top-nav a { padding: 6px 9px; font-size: 13px; }
	.eb-top-nav a .fa { display: none; }
}

.eb-main { flex: 1; padding-top: 22px; padding-bottom: 40px; }
.eb-foot { color: var(--eb-sub); font-size: 13px; text-align: center; padding: 20px 16px 28px; border-top: 1px solid var(--eb-line); }
.eb-foot a { color: var(--eb-sub); font-weight: 600; }

/* Breadcrumb: a quiet trail, not a card */
.eb-front .page-header { margin: 0 0 14px; }
.eb-front .breadcrumb { background: none; padding: 0; margin: 0; font-size: 13px; }
.eb-front .breadcrumb-item, .eb-front .breadcrumb-item a { color: var(--eb-sub); }
.eb-front .breadcrumb-item a:hover { color: var(--eb-royal); }
.eb-front .breadcrumb-item.active { color: var(--eb-navy); font-weight: 600; }
.eb-front .breadcrumb-item + .breadcrumb-item::before { content: "›"; color: #A3ADBA; }

/* Cards */
.eb-front .card { border: 0; border-radius: var(--eb-radius); box-shadow: var(--eb-shadow); margin-bottom: 1.5rem; overflow: hidden; }
.eb-front .card-header { background: none; border-bottom: 1px solid var(--eb-line); padding: 15px 20px; display: flex; align-items: center; min-height: 0; }
.eb-front .card-header.d-block { display: block !important; }
.eb-front .card-title { font-size: 16px; font-weight: 700; color: var(--eb-navy); margin: 0; line-height: 1.3; }
.eb-front .card-body { padding: 20px; }
.eb-front .card .card { box-shadow: none; border: 1px solid var(--eb-line); }
.eb-front .border { border-color: var(--eb-line) !important; border-radius: var(--eb-radius-sm); }
.eb-front .border-top { border-color: var(--eb-line) !important; }

/* Tables */
.eb-front .table { color: var(--eb-ink); margin-bottom: 0; font-variant-numeric: tabular-nums; }
.eb-front .table th, .eb-front .table td { border-top: 1px solid var(--eb-line); padding: 11px 12px; }
.eb-front .table thead th { border: 0; border-bottom: 1px solid var(--eb-line); background: var(--eb-soft); color: var(--eb-sub); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.eb-front .table tbody tr:first-child td { border-top: 0; }
.eb-front .table-sm th, .eb-front .table-sm td { padding: 7px 10px; }
.eb-front .table-vcenter td, .eb-front .table-vcenter th { vertical-align: middle; }
.eb-front .card-table th:first-child, .eb-front .card-table td:first-child { padding-left: 20px; }
.eb-front .card-table th:last-child, .eb-front .card-table td:last-child { padding-right: 20px; }
.eb-front .card-body > .table-responsive > .table thead th:first-child, .eb-front .rs-laps thead th:first-child { border-radius: var(--eb-radius-sm) 0 0 var(--eb-radius-sm); }
.eb-front .card-body > .table-responsive > .table thead th:last-child, .eb-front .rs-laps thead th:last-child { border-radius: 0 var(--eb-radius-sm) var(--eb-radius-sm) 0; }
.eb-front .card-body > .table-responsive > .table thead th, .eb-front .rs-laps thead th { border-bottom: 0; }

/* Buttons and forms */
.eb-front .btn { border-radius: 999px; font-weight: 600; padding: .45rem 1.1rem; font-size: 14px; }
.eb-front .btn-sm { padding: .3rem .85rem; font-size: 13px; }
.eb-front .btn-primary { background: var(--eb-royal); border-color: var(--eb-royal); color: #fff; }
.eb-front .btn-primary:hover, .eb-front .btn-primary:focus { background: var(--eb-navy); border-color: var(--eb-navy); }
.eb-front .btn-outline-primary { border-color: #C5D3E4; color: var(--eb-royal); background: #fff; }
.eb-front .btn-outline-primary:hover, .eb-front .btn-outline-primary.active, .eb-front .btn-outline-primary:not(:disabled):not(.disabled).active { background: var(--eb-navy); border-color: var(--eb-navy); color: #fff; }
.eb-front .btn-light { background: #E9EEF5; border-color: #E9EEF5; color: var(--eb-navy); }
.eb-front .btn:focus, .eb-front .form-control:focus { box-shadow: 0 0 0 3px rgba(0, 102, 179, .25); }
.eb-front .btn-group > .btn { border-radius: 0; }
.eb-front .btn-group > .btn:first-child { border-radius: 999px 0 0 999px; }
.eb-front .btn-group > .btn:last-child { border-radius: 0 999px 999px 0; }
.eb-front .form-control, .eb-front .custom-select { border-radius: var(--eb-radius-sm); border-color: #CFD8E3; color: var(--eb-ink); }
.eb-front .form-label { font-weight: 600; color: var(--eb-navy); margin-bottom: 4px; display: block; }
.eb-front .list-group-item { border-color: var(--eb-line); }
.eb-front .list-group-item:first-child { border-top-left-radius: var(--eb-radius-sm); border-top-right-radius: var(--eb-radius-sm); }
.eb-front .list-group-item:last-child { border-bottom-left-radius: var(--eb-radius-sm); border-bottom-right-radius: var(--eb-radius-sm); }
.eb-front .alert { border: 0; border-radius: var(--eb-radius-sm); }
.eb-front .badge { border-radius: 999px; padding: .35em .7em; }
.eb-front .progress { border-radius: 999px; background: #E9EEF5; }
.eb-front .select2-container--default .select2-selection--single { border-color: #CFD8E3; border-radius: var(--eb-radius-sm); height: 38px; }
.eb-front .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-left: 12px; }
.eb-front .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }

/* Embedded boards (timing wall panels) */
body.eb-front.rs-embed { background: #fff; display: block; }
body.eb-front.rs-embed .eb-main { padding: 8px 10px 16px; }

/* Phones: tighter cells so tables fit the screen rather than scroll sideways */
@media (max-width: 575px) {
	.eb-front .table th, .eb-front .table td { padding: 10px 6px; }
	.eb-front .card-table th:first-child, .eb-front .card-table td:first-child { padding-left: 14px; }
	.eb-front .card-table th:last-child, .eb-front .card-table td:last-child { padding-right: 14px; }
	.eb-front .card-header, .eb-front .card-body { padding-left: 14px; padding-right: 14px; }
}
