:root {
    --red: #c91d24;
    --red-dark: #98171c;
    --red-soft: #f7e9ea;
    --blue: #173f78;
    --blue-soft: #eaf0f8;
    --ink: #20242a;
    --muted: #69707a;
    --line: #dfe3e8;
    --surface: #ffffff;
    --surface-soft: #f5f6f8;
    --shadow: 0 10px 28px rgba(25, 34, 46, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.narrow { max-width: 760px; }
.top-stripe { height: 6px; background: var(--red); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; border: 3px solid var(--red); background: #191512; }
.brand-text { display: flex; flex-direction: column; }
.brand-abra { color: var(--red); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: .06em; }
.brand-name { font-weight: 700; font-size: 18px; margin-top: 5px; }
.member-button { background: var(--red); color: #fff; font-weight: 800; padding: 12px 18px; border-radius: 6px; }
.member-button:hover { background: var(--red-dark); }
.main-nav { background: var(--red); color: #fff; }
.nav-inner { display: flex; align-items: stretch; overflow-x: auto; }
.nav-inner a { font-weight: 800; padding: 14px 20px; border-bottom: 4px solid transparent; white-space: nowrap; }
.nav-inner a:hover, .nav-inner a.active { background: var(--red-dark); border-bottom-color: #fff; }
.hero { background: linear-gradient(115deg, #fff 0%, #fff 58%, var(--red-soft) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; min-height: 510px; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin: 14px 0 22px; max-width: 860px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 760px; }
.eyebrow { display: inline-block; color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .16em; }
.eyebrow.blue { color: var(--blue); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer; }
.button.primary { color: #fff; background: var(--red); }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { color: var(--blue); background: #fff; border: 2px solid var(--blue); }
.button.full { width: 100%; }
.hero-card { background: #fff; border-top: 6px solid var(--red); border-radius: 10px; padding: 30px; box-shadow: var(--shadow); }
.hero-card img { display: block; width: 132px; height: 132px; object-fit: cover; border-radius: 50%; margin-bottom: 20px; }
.hero-card h2 { margin: 8px 0 10px; font-size: 25px; line-height: 1.2; }
.hero-card p { font-size: 16px; }
.hero-card a { color: var(--blue); font-weight: 900; }
.small-label { color: var(--red); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 44px; padding-bottom: 44px; }
.quick-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8cdd4; }
.quick-number { color: var(--red); font-weight: 900; font-size: 13px; }
.quick-card h3 { margin: 10px 0 8px; font-size: 21px; }
.quick-card p { margin: 0; color: var(--muted); }
.content-section { padding: 62px 0; }
.light-section { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-column { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; }
.section-heading h2 { font-size: 34px; margin: 6px 0 20px; }
.table-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
table { width: 100%; border-collapse: collapse; }
th { background: #f0f2f5; color: #3b424c; font-size: 13px; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
.empty-state { text-align: center; color: var(--muted); padding: 34px; }
.empty-panel { background: #fff; color: var(--muted); border: 1px dashed #c6cbd2; border-radius: 8px; padding: 36px; text-align: center; }
.result-list { margin-bottom: 14px; }
.text-link { color: var(--blue); font-weight: 900; display: inline-block; margin-top: 14px; }
.ranking-feature { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #fff; border-left: 7px solid var(--red); padding-top: 16px; padding-bottom: 16px; }
.ranking-feature h2 { font-size: 36px; margin: 8px 0 10px; }
.ranking-feature p { color: var(--muted); max-width: 760px; }
.page-banner { background: linear-gradient(100deg, var(--red-dark), var(--red)); color: #fff; padding: 52px 0; }
.page-banner .eyebrow { color: #fff; opacity: .82; }
.page-banner h1 { font-size: 48px; margin: 7px 0 8px; }
.page-banner p { margin: 0; font-size: 18px; color: rgba(255,255,255,.9); }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; background: var(--surface-soft); border: 1px solid var(--line); padding: 16px; border-radius: 8px; margin-bottom: 22px; }
input, select { min-height: 44px; border: 1px solid #bcc2ca; border-radius: 5px; padding: 9px 12px; background: #fff; font: inherit; color: var(--ink); }
.filter-bar input, .filter-bar select { min-width: 190px; flex: 1; }
.search-card, .login-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); box-shadow: var(--shadow); border-radius: 8px; padding: 30px; }
.search-card label, .login-card label { font-weight: 800; display: block; margin-bottom: 7px; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; }
.help-text { color: var(--muted); font-size: 14px; }
.login-card { max-width: 470px; margin: 0 auto; }
.login-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 18px; }
.login-card h2 { text-align: center; margin-top: 0; }
.login-card input { width: 100%; margin-bottom: 16px; }
.login-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.login-links a { color: var(--blue); font-weight: 700; font-size: 14px; }
.site-footer { background: #17191d; color: #fff; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding-top: 38px; padding-bottom: 34px; }
.footer-grid p { color: #bfc5cc; margin-bottom: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-content: flex-start; }
.footer-links a { color: #fff; font-weight: 700; }
.footer-bottom { text-align: center; padding: 14px; border-top: 1px solid #30343a; color: #aab0b8; font-size: 13px; }


.state-club-section { margin: 34px 0 44px; }
.state-club-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--red); }
.state-club-heading h2 { margin: 0; font-size: 28px; color: var(--blue); }
.state-club-heading span { color: var(--muted); font-weight: 700; }
.club-card-facts { margin: 16px 0 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 7px; }
.club-card-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: baseline; }
.club-card-facts span { color: var(--muted); font-weight: 700; }
.club-card-facts strong { color: var(--text); font-weight: 700; }

@media (max-width: 860px) {
    .header-inner { min-height: 88px; }
    .brand-logo { width: 70px; height: 70px; }
    .brand-abra { font-size: 28px; }
    .brand-name { font-size: 15px; }
    .hero-grid, .two-column { grid-template-columns: 1fr; }
    .hero-grid { min-height: auto; gap: 28px; }
    .quick-links { grid-template-columns: repeat(2, 1fr); }
    .ranking-feature { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 24px, 1180px); }
    .header-inner { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
    .brand-logo { width: 62px; height: 62px; }
    .brand-name { display: none; }
    .member-button { padding: 10px 12px; font-size: 13px; }
    .nav-inner a { padding: 12px 14px; }
    .hero h1 { font-size: 40px; }
    .quick-links { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 38px; }
    .search-row { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Club / Range registry */
.club-summary-line { color: var(--muted); margin: -6px 0 18px; }
.club-summary-line strong { color: var(--red); font-size: 21px; }
.club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.club-card { border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 9px; padding: 22px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.045); }
.club-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.club-code { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-weight: 900; letter-spacing: .06em; padding: 5px 10px; border-radius: 5px; font-size: 13px; }
.club-code.large { font-size: 15px; padding: 7px 12px; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.status-pill.active { background: #e7f6ec; color: #24743b; }
.status-pill.inactive { background: #eee; color: #666; }
.club-card h2 { font-size: 21px; margin: 15px 0 5px; line-height: 1.2; }
.club-card h2 a:hover { color: var(--red); }
.club-location { margin: 0 0 14px; color: var(--muted); font-weight: 700; }
.environment-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }
.environment-badge { font-weight: 900; font-size: 12px; padding: 5px 9px; border-radius: 999px; }
.environment-badge.outdoor { color: #842026; background: var(--red-soft); border: 1px solid #ecc6c8; }
.environment-badge.indoor { color: var(--blue); background: var(--blue-soft); border: 1px solid #cbd9ed; }
.legacy-mini { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.legacy-mini > span:first-child { display: block; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.legacy-mini strong { color: #444; }
.dot-sep { margin: 0 5px; }

.club-profile-section { padding: 28px 0 64px; background: #fff; }
.breadcrumbs { color: var(--blue); margin-bottom: 28px; font-size: 15px; }
.breadcrumbs a { text-decoration: underline; font-weight: 700; }
.breadcrumbs span { color: #8d949e; margin: 0 7px; }
.club-profile-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 34px; }
.club-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.club-title-row h1 { color: var(--blue); font-size: clamp(34px, 4vw, 50px); line-height: 1.05; margin: 10px 0 0; }
.club-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 30px 0; }
.club-info-grid h3 { color: var(--red-dark); margin: 0 0 9px; font-size: 20px; }
.profile-link { color: var(--blue); text-decoration: underline; }
.profile-muted { color: var(--muted); font-style: italic; }
.contact-block + .contact-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.club-detail-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-soft); }
.club-detail-strip > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.club-detail-strip > div:last-child { border-right: 0; }
.club-detail-strip span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; margin-bottom: 3px; }
.club-detail-strip strong { font-size: 16px; }
.club-panel { padding: 30px 0; border-bottom: 1px solid var(--line); }
.club-panel h2 { margin: 0 0 16px; color: #4a4f56; font-size: 29px; }
.empty-announcement { background: var(--surface-soft); border-left: 5px solid var(--red); padding: 18px 20px; color: var(--muted); }
.club-sidebar { background: #f2f2f2; padding: 18px; align-self: start; border-radius: 6px; position: sticky; top: 155px; }
.club-logo-placeholder { height: 180px; border: 3px solid #d5d5d5; background: #e9e9e9; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #b5b5b5; text-align: center; font-size: 22px; font-style: italic; margin-bottom: 16px; }
.club-side-link { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 14px 3px; color: var(--blue); border-bottom: 1px solid #d6d6d6; font-weight: 800; }
.club-side-link span { grid-row: 1 / span 2; font-size: 20px; }
.club-side-link small { color: var(--muted); font-weight: 400; font-size: 11px; }
.disabled-link { cursor: default; }
.legacy-box { margin-top: 20px; padding-top: 16px; border-top: 3px solid #d1d1d1; }
.legacy-box h3 { margin: 0 0 7px; color: #555; }
.legacy-box p { color: var(--muted); font-size: 13px; }
.legacy-line { display: flex; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid #ddd; padding: 9px 11px; margin-top: 6px; border-radius: 4px; }
.legacy-line strong { color: var(--red); }
.legacy-line span { color: var(--blue); font-weight: 800; }

@media (max-width: 980px) {
    .club-grid { grid-template-columns: repeat(2, 1fr); }
    .club-profile-grid { grid-template-columns: 1fr; }
    .club-sidebar { position: static; }
    .club-detail-strip { grid-template-columns: repeat(2, 1fr); }
    .club-detail-strip > div:nth-child(2) { border-right: 0; }
    .club-detail-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
    .club-grid { grid-template-columns: 1fr; }
    .club-title-row { flex-direction: column; }
    .club-info-grid { grid-template-columns: 1fr; gap: 24px; }
    .club-detail-strip { grid-template-columns: 1fr; }
    .club-detail-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .club-detail-strip > div:last-child { border-bottom: 0; }
}

/* Competitor registry and account module */
.member-area { display: flex; align-items: center; gap: 8px; }
.member-area form { margin: 0; }
.member-button.secondary-member { background: var(--blue); }
.logout-button { border: 0; cursor: pointer; font: inherit; }

.competitor-directory-summary { margin: -4px 0 18px; color: var(--muted); }
.competitor-directory-summary strong { color: var(--red); font-size: 22px; }
.competitor-table-card { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.competitor-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.competitor-table th { background: var(--blue); color: #fff; text-align: left; padding: 13px 14px; font-size: 13px; letter-spacing: .02em; }
.competitor-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.competitor-table tr:last-child td { border-bottom: 0; }
.competitor-table tbody tr:hover { background: #fafbfc; }
.competitor-id-badge { display: inline-flex; background: var(--red); color: #fff; font-weight: 900; letter-spacing: .045em; border-radius: 5px; padding: 5px 9px; white-space: nowrap; }
.competitor-id-badge.large { font-size: 15px; padding: 7px 11px; }
.text-link.compact { margin-top: 0; white-space: nowrap; }
.simple-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 22px; color: var(--muted); font-weight: 700; }
.simple-pagination > div:last-child { text-align: right; }
.page-button { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--blue); padding: 8px 13px; border-radius: 5px; font-weight: 800; }
.page-button.disabled { color: #aaa; background: #f6f6f6; }

.competitor-profile-section { padding: 30px 0 65px; }
.competitor-profile-header { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.competitor-profile-header h1 { color: var(--blue); font-size: clamp(35px, 5vw, 52px); line-height: 1.05; margin: 9px 0 8px; }
.competitor-avatar { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 50%; background: linear-gradient(140deg, var(--red-dark), var(--red)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 30px; border: 5px solid #f4d9db; }
.competitor-meta { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; color: var(--muted); font-weight: 700; }
.profile-tab-row { display: flex; gap: 7px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-tab-row a { padding: 8px 13px; color: var(--blue); font-weight: 800; border-radius: 5px; }
.profile-tab-row a:hover, .profile-tab-row a.active { color: #fff; background: var(--blue); }
.competitor-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-top: 24px; }
.profile-main-column { min-width: 0; }
.profile-panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 24px; margin-bottom: 22px; box-shadow: 0 3px 14px rgba(0,0,0,.035); }
.profile-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.profile-panel-heading h2 { margin: 5px 0 0; color: #383d44; }
.season-chip { background: var(--blue-soft); color: var(--blue); font-weight: 900; padding: 6px 10px; border-radius: 5px; }
.competitor-profile-sidebar { border-top: 5px solid var(--red); background: var(--surface-soft); padding: 22px; border-radius: 7px; align-self: start; }
.competitor-profile-sidebar h3 { margin-top: 0; color: var(--blue); }
.profile-facts { margin: 0 0 20px; }
.profile-facts > div { padding: 10px 0; border-bottom: 1px solid #dfe2e6; }
.profile-facts dt { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .06em; font-weight: 900; }
.profile-facts dd { margin: 3px 0 0; font-weight: 800; }
.full-width { width: 100%; text-align: center; }
.qualification-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qualification-preview > div { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 7px; padding: 16px; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; }
.qualification-preview small { grid-column: 2; color: var(--muted); }
.qualification-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.qualification-icon.pending { background: #e5e7ea; color: #747b84; }

.form-alert { padding: 12px 15px; border-radius: 6px; margin-bottom: 18px; font-weight: 700; }
.form-alert.error { background: #fae8e9; color: #8f181e; border: 1px solid #ecc5c8; }
.form-alert.success { background: #e7f6ec; color: #236d39; border: 1px solid #c0e5cc; }
.checkbox-line { display: flex !important; align-items: center; gap: 8px; margin: -5px 0 17px; font-weight: 600 !important; }
.checkbox-line input { width: auto !important; min-height: auto; margin: 0 !important; }
.compact-banner { padding: 35px 0; }

.account-profile-hero { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-left: 6px solid var(--red); padding: 20px; border-radius: 8px; margin-bottom: 24px; }
.account-profile-hero h2 { margin: 5px 0 3px; font-size: 30px; color: var(--blue); }
.account-profile-hero p { margin: 0; color: var(--muted); }
.account-profile-hero .button { margin-left: auto; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.dashboard-card { border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 8px; padding: 20px; background: #fff; }
.dashboard-card > span { color: var(--blue); font-weight: 900; }
.dashboard-card h3 { margin: 5px 0 8px; }
.dashboard-card p { color: var(--muted); }
.dashboard-card strong { color: var(--red-dark); font-size: 13px; }
.editable-profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.editable-profile-grid > div { background: var(--surface-soft); border: 1px solid var(--line); padding: 15px; border-radius: 6px; }
.editable-profile-grid span, .editable-profile-grid small { display: block; }
.editable-profile-grid span { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 900; letter-spacing: .05em; }
.editable-profile-grid strong { display: block; margin: 4px 0; }
.editable-profile-grid small { color: var(--muted); }

.claim-intro { max-width: 780px; margin-bottom: 24px; }
.claim-intro h2 { color: var(--blue); font-size: 31px; margin-bottom: 8px; }
.claim-intro p { color: var(--muted); }
.claim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.claim-card { border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 8px; padding: 24px; background: #fff; box-shadow: var(--shadow); }
.claim-card h2 { margin: 5px 0 8px; }
.claim-card > p { color: var(--muted); }
.claim-card label { display: block; font-weight: 800; margin: 13px 0 6px; }
.claim-card input, .claim-card select, .claim-card textarea { width: 100%; }
.claim-card textarea { border: 1px solid #bcc2ca; border-radius: 5px; padding: 9px 12px; font: inherit; resize: vertical; }
.claim-card .button { margin-top: 17px; }
.two-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pending-claim-card { max-width: 720px; border: 1px solid #e8d6a4; border-left: 6px solid #d7a31d; background: #fff9e8; border-radius: 7px; padding: 22px; }
.status-pill.pending { background: #fff0be; color: #7c5a00; }

@media (max-width: 900px) {
    .competitor-profile-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .claim-grid { grid-template-columns: 1fr; }
    .account-profile-hero { align-items: flex-start; flex-wrap: wrap; }
    .account-profile-hero .button { margin-left: 0; }
}

@media (max-width: 620px) {
    .member-area { flex-direction: column; align-items: stretch; gap: 4px; }
    .member-button { text-align: center; }
    .competitor-profile-header { align-items: flex-start; flex-direction: column; }
    .qualification-preview { grid-template-columns: 1fr; }
    .editable-profile-grid, .two-field-row { grid-template-columns: 1fr; }
    .simple-pagination { grid-template-columns: 1fr 1fr; }
    .simple-pagination > span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}
.inline-profile-form { display: flex; gap: 8px; align-items: center; margin-top: 5px; }
.inline-profile-form input { width: 76px; min-height: 38px; text-transform: uppercase; }
.small-button { padding: 8px 12px; min-height: 38px; }

/* Competitor ranking eligibility */
.eligibility-panel { margin-top: 28px; }
.eligibility-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; }
.eligibility-heading p { margin:6px 0 0; max-width:760px; color:#5d6470; }
.season-form { display:flex; align-items:center; gap:10px; font-weight:700; color:#b31b1b; }
.season-form select { min-width:100px; padding:8px 10px; border:1px solid #b8bdc5; background:#fff; }
.eligibility-rules-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:22px; }
.eligibility-rule-card { border:1px solid #dfe2e6; border-top:4px solid #c8102e; background:#fff; padding:20px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.eligibility-rule-card.club-rule { grid-column:1 / -1; border-top-color:#173f8a; }
.eligibility-rule-title { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:14px; }
.eligibility-rule-title h3 { margin:0; color:#173f8a; font-size:1.08rem; }
.qualification-status { font-weight:800; white-space:nowrap; font-size:.88rem; }
.qualification-status.not-qualified { color:#c8102e; }
.status-pill.neutral { background:#eef1f5; color:#555; }
.eligibility-requirements { border-top:1px solid #eceef1; }
.eligibility-row { display:flex; justify-content:space-between; gap:20px; padding:11px 0; border-bottom:1px solid #eceef1; }
.eligibility-row small { display:block; margin-top:3px; color:#757b84; font-weight:400; }
.eligibility-value { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.eligibility-count { font-weight:800; color:#343941; }
.eligibility-mark { font-size:1.2rem; font-weight:900; }
.eligibility-mark.no { color:#c8102e; }
.eligibility-or, .eligibility-basis { margin:13px 0 0; font-size:.92rem; color:#555c66; }
.eligibility-data-note { margin-top:18px; padding:14px 16px; background:#fff5f5; border-left:4px solid #c8102e; color:#4d5158; }
@media (max-width: 800px) {
  .eligibility-rules-grid { grid-template-columns:1fr; }
  .eligibility-rule-card.club-rule { grid-column:auto; }
  .eligibility-heading, .eligibility-rule-title { flex-direction:column; }
}

/* Competitor account v3 */
.stacked-login-links { display:flex; flex-direction:column; gap:8px; align-items:center; margin-top:18px; }
.registration-grid { align-items:start; }
.form-help { margin-top:14px; color:var(--muted); font-size:.92rem; }
.login-card textarea { width:100%; border:1px solid #bcc2ca; border-radius:5px; padding:10px 12px; font:inherit; }
.private-profile-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.private-profile-summary > div { border:1px solid var(--line); background:var(--surface-soft); border-radius:6px; padding:14px; }
.private-profile-summary span, .private-profile-summary small { display:block; }
.private-profile-summary span { color:var(--muted); font-size:11px; text-transform:uppercase; font-weight:900; letter-spacing:.05em; }
.private-profile-summary strong { display:block; margin:5px 0; color:#2f343b; }
.private-profile-summary small { color:var(--muted); }
.profile-edit-form label, .password-form label { display:block; font-weight:800; margin:12px 0 6px; }
.profile-edit-form input, .password-form input { width:100%; }
.profile-edit-form .button, .password-form .button { margin-top:18px; }
.three-field-row { display:grid; grid-template-columns:2fr .7fr 1fr; gap:12px; }
.class-chip-row { display:flex; flex-wrap:wrap; gap:9px; margin-top:15px; }
.class-chip { background:var(--blue-soft); color:var(--blue); border:1px solid #c8d5ee; border-radius:999px; padding:7px 12px; font-weight:900; }
.season-class-form { display:flex; gap:12px; flex-wrap:wrap; }
.season-class-form > div { display:flex; align-items:center; gap:7px; }
.season-class-form label { font-weight:900; color:var(--red-dark); }
.season-class-form select { min-width:120px; padding:8px 10px; border:1px solid #b8bdc5; background:#fff; }
.selected-class-heading { background:var(--blue-soft); color:var(--blue); border-left:4px solid var(--blue); padding:11px 14px; margin-top:18px; border-radius:4px; }
.eligibility-mark.na { color:#777; }
.dashboard-tabs { scroll-margin-top:20px; }
.password-form { max-width:560px; }
.pending-claim-card code { background:#fff; padding:4px 6px; border-radius:4px; }
@media (max-width:800px) {
    .private-profile-summary { grid-template-columns:1fr 1fr; }
    .three-field-row { grid-template-columns:1fr; }
}
@media (max-width:560px) {
    .private-profile-summary { grid-template-columns:1fr; }
}

/* ABRA Rules page */
.rules-page { padding-top: 34px; padding-bottom: 50px; }
.rules-heading-row { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 24px; }
.rules-heading-row h1 { margin-bottom: 8px; }
.rules-intro { max-width: 760px; margin: 0; color: #5b6470; }
.rules-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.rules-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; }
.rules-document-card { min-width: 0; background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.rules-pdf { display: block; width: 100%; height: 78vh; min-height: 720px; border: 0; background: #f2f3f5; }
.pdf-fallback { padding: 12px 16px; margin: 0; font-size: .9rem; color: #5c6570; border-top: 1px solid #e5e7eb; }
.rules-toc { position: sticky; top: 18px; }
.rules-toc-inner { background: #fff; border: 1px solid #dfe3e8; border-top: 5px solid #b51f24; border-radius: 12px; padding: 18px 16px; box-shadow: 0 8px 24px rgba(16, 24, 40, .07); max-height: calc(100vh - 36px); overflow-y: auto; }
.rules-toc h2 { margin: 0 0 4px; font-size: 1.25rem; color: #1e3f82; }
.toc-help { margin: 0 0 12px; color: #69727d; font-size: .88rem; }
.rules-section-links { display: grid; gap: 3px; }
.rules-section-links a { display: grid; grid-template-columns: 28px 1fr; gap: 7px; align-items: start; padding: 7px 8px; border-radius: 6px; color: #252b33; text-decoration: none; font-size: .91rem; line-height: 1.2; }
.rules-section-links a:hover, .rules-section-links a:focus { background: #f8ecec; color: #a6191e; }
.rules-section-links a span { color: #b51f24; font-weight: 800; text-align: right; }
.rules-section-links a:first-child, .rules-section-links a:nth-child(2) { grid-template-columns: 1fr; color: #1e3f82; font-weight: 700; border-bottom: 1px solid #eceff3; margin-bottom: 2px; }
@media (max-width: 980px) {
    .rules-heading-row { align-items: flex-start; flex-direction: column; }
    .rules-actions { justify-content: flex-start; }
    .rules-shell { grid-template-columns: 1fr; }
    .rules-toc { position: static; }
    .rules-toc-inner { max-height: 360px; }
    .rules-pdf { height: 70vh; min-height: 560px; }
}
@media (max-width: 600px) {
    .rules-page { padding-top: 22px; }
    .rules-actions { width: 100%; }
    .rules-actions .button { flex: 1 1 140px; text-align: center; }
    .rules-pdf { min-height: 520px; }
}

/* ABRA v6 portals */
.portal-action-grid,.admin-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:22px}.portal-action-card{display:flex;flex-direction:column;gap:5px;padding:20px;border:1px solid #dfe3e8;border-radius:12px;background:#fff;text-decoration:none;color:#111;box-shadow:0 4px 14px rgba(0,0,0,.05)}.portal-action-card strong{color:#b20d16;font-size:1.08rem}.portal-grid.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.portal-row,.admin-review-card,.admin-result-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e7e7e7}.portal-row small,.admin-review-card small,.admin-result-head small{display:block;color:#666;margin-top:4px}.portal-table{width:100%;border-collapse:collapse}.portal-table th,.portal-table td{padding:11px 10px;border-bottom:1px solid #e4e4e4;text-align:left;vertical-align:top}.portal-table th{background:#f4f6f8}.table-wrap{overflow-x:auto}.portal-form label,.admin-result-card label{display:block;font-weight:700;margin:12px 0 6px}.portal-form input,.portal-form select,.portal-form textarea,.admin-review-card input,.admin-result-card select,.admin-result-card textarea,.profile-panel input,.profile-panel select{width:100%;box-sizing:border-box}.checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 16px}.check-card{display:flex!important;align-items:center;gap:8px;padding:10px;border:1px solid #ddd;border-radius:8px;margin:0!important}.check-card input{width:auto!important}.button-row,.inline-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.button.small{padding:8px 12px;font-size:.9rem}.admin-summary-grid>div{background:#fff;border:1px solid #ddd;border-top:4px solid #b20d16;border-radius:10px;padding:18px}.admin-summary-grid strong{display:block;font-size:1.8rem}.admin-summary-grid span{color:#555}.admin-review-card form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;max-width:620px}.admin-review-card form input{min-width:180px;flex:1}.admin-result-card{border:1px solid #ddd;border-radius:10px;padding:16px;margin:12px 0}.integration-note{margin:16px 0;padding:14px 16px;border-left:4px solid #245aa5;background:#f3f7fc;border-radius:6px}.status-pill.approved{background:#e9f7ed;color:#176b2d}.status-pill.pending{background:#fff3cd;color:#7a5a00}.status-pill.denied,.status-pill.rejected{background:#fdebec;color:#8c1e25}.admin-member{background:#244f92!important;color:#fff!important}.narrow-content{max-width:920px}
@media(max-width:820px){.portal-grid.two-col{grid-template-columns:1fr}.admin-review-card,.portal-row,.admin-result-head{align-items:flex-start;flex-direction:column}.checkbox-grid{grid-template-columns:1fr}}

/* v7 new-club request workflow */
.form-grid.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.profile-panel textarea{width:100%;box-sizing:border-box}.check-line{display:flex!important;align-items:flex-start;gap:9px;margin:14px 0!important;font-weight:700}.check-line input{width:auto!important;margin-top:3px}.club-request-details{padding:10px 0 4px;line-height:1.55;color:#444}.status-pill.returned{background:#eaf2fb;color:#244f92}@media(max-width:760px){.form-grid.two-col{grid-template-columns:1fr}}

/* v8 schedule spreadsheet / CSV import */
.schedule-import-panel { margin-bottom: 24px; }
.schedule-import-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:16px 0 10px; }
.inline-upload-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.inline-upload-form input[type=file] { max-width:380px; }
.schedule-help { font-size:.92rem; line-height:1.55; background:#f6f8fb; border:1px solid #dce3eb; border-radius:8px; padding:12px 14px; }
.schedule-heading-row { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.muted-copy { color:#68717d; margin:.35rem 0 0; }
.schedule-grid-wrap { width:100%; overflow-x:auto; border:1px solid #d7dde5; border-radius:9px; }
.schedule-entry-table { border-collapse:collapse; width:max-content; min-width:100%; background:white; }
.schedule-entry-table th, .schedule-entry-table td { border-right:1px solid #e0e5eb; border-bottom:1px solid #e0e5eb; padding:6px; vertical-align:middle; white-space:nowrap; }
.schedule-entry-table th { background:#f3f5f8; color:#26313e; font-size:.78rem; text-transform:uppercase; letter-spacing:.02em; text-align:center; position:sticky; top:0; z-index:1; }
.schedule-entry-table td select, .schedule-entry-table td input[type=date], .schedule-entry-table td input[type=time], .schedule-entry-table td input[type=text] { margin:0; min-height:36px; padding:6px 8px; font-size:.9rem; }
.schedule-entry-table td select[data-field=club_id] { min-width:220px; }
.schedule-entry-table td select[data-field=event_type] { min-width:155px; }
.schedule-entry-table td input[data-field=notes] { min-width:180px; }
.schedule-entry-table .class-col { min-width:54px; max-width:72px; }
.class-check-cell { text-align:center; }
.class-check-cell input { width:18px; height:18px; }
.schedule-remove-row { border:0; background:transparent; color:#b00020; font-size:1.6rem; line-height:1; cursor:pointer; padding:2px 8px; }
.schedule-legend { display:flex; gap:8px 14px; flex-wrap:wrap; font-size:.84rem; margin:12px 0 0; color:#56606d; }
.schedule-submit-row { margin-top:18px; }
@media (max-width: 760px) {
  .schedule-heading-row { flex-direction:column; }
  .inline-upload-form { width:100%; }
}

/* v9: compact result-driven ranking / qualification display */
.eligibility-summary-list{border-top:1px solid #dfe5ec;margin-top:18px}
.eligibility-summary-line{border-bottom:1px solid #dfe5ec;background:#fff}
.eligibility-summary-line>summary{list-style:none;display:flex;align-items:center;gap:18px;padding:18px 4px;cursor:pointer}
.eligibility-summary-line>summary::-webkit-details-marker{display:none}
.eligibility-summary-main{flex:1;min-width:0}
.eligibility-summary-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:8px}
.eligibility-summary-title{font-weight:800;font-size:1.05rem;color:#143f78}
.eligibility-inline-metrics{display:flex;gap:0;flex-wrap:wrap;color:#25364b}
.eligibility-inline-metrics span{padding:0 14px;border-right:1px solid #cfd7e1}
.eligibility-inline-metrics span:first-child{padding-left:0}
.eligibility-inline-metrics span:last-child{border-right:0}
.eligibility-open-hint{font-size:.82rem;font-weight:700;color:#51657c;white-space:nowrap}
.eligibility-summary-details{padding:0 4px 18px 4px;color:#4b5d70}
.eligibility-summary-details p{margin:.45rem 0}
.profile-muted-note{color:#617286;margin-top:12px}
@media(max-width:760px){
  .eligibility-summary-line>summary{align-items:flex-start}
  .eligibility-summary-head{align-items:flex-start;flex-direction:column;gap:6px}
  .eligibility-inline-metrics{display:block}
  .eligibility-inline-metrics span{display:block;border:0;padding:2px 0}
  .eligibility-open-hint{display:none}
}

/* v9 schedule grid */
.schedule-rule-note{margin:0 0 18px;padding:12px 14px;border-left:4px solid #123f7a;background:#f4f7fb;color:#32465d}
.locked-target-count{background:#edf1f5;font-weight:800;color:#32465d}

/* v9 admin schedule approval */
.admin-schedule-table-wrap{overflow-x:auto}
.admin-schedule-table{width:100%;border-collapse:collapse;min-width:850px}
.admin-schedule-table th,.admin-schedule-table td{padding:10px 9px;border-bottom:1px solid #dfe5ec;text-align:left;vertical-align:middle}
.admin-schedule-table th{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:#53657a}
.state-tournament-row{background:#fff8e8}

/* v10 true competitor profile tabs */
.true-tabs{margin-bottom:22px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.true-tabs a{display:inline-flex;align-items:center;justify-content:center}
.tab-content-panel{margin-top:0}
.tab-heading-with-filter{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.compact-season-form{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.compact-season-form label{margin:0;font-weight:800;color:#9f1720}
.compact-season-form select{width:auto;min-width:105px;margin:0;padding:8px 34px 8px 10px}
@media(max-width:700px){.tab-heading-with-filter,.eligibility-heading{flex-direction:column}.compact-season-form{width:100%}.compact-season-form select{flex:1}}

/* v11 competitor profile picture */
.competitor-avatar.has-photo { overflow: hidden; background: #fff; }
.competitor-avatar.has-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.competitor-avatar.large-preview { width: 112px; height: 112px; flex: 0 0 112px; font-size: 36px; }
.avatar-settings-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); gap: 28px; align-items: start; }
.avatar-settings-preview { display: flex; gap: 18px; align-items: center; }
.avatar-settings-preview p { margin: 5px 0 0; color: var(--muted); }
.avatar-settings-actions { border-left: 1px solid var(--line); padding-left: 26px; }
.avatar-upload-form label { display: block; font-weight: 800; margin-bottom: 8px; }
.avatar-upload-form input[type="file"] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.avatar-upload-form small { display: block; color: var(--muted); margin: 8px 0 14px; }
.avatar-settings-actions .button { margin-top: 8px; }
.button.subtle-danger { background: #fff; color: var(--red-dark); border: 1px solid #d6a2a5; }
.button.subtle-danger:hover { background: #fff2f2; }
.account-password-panel { margin-top: 20px; }
@media (max-width: 760px) {
    .avatar-settings-row { grid-template-columns: 1fr; }
    .avatar-settings-actions { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
}


/* v12 public profile claim + reliable rules navigation */
.public-claim-box{margin-top:18px;padding:18px;border:1px solid #e1b6b8;border-top:4px solid var(--red);background:#fff7f7;text-align:center}
.public-claim-box strong{display:block;color:var(--red-dark);font-size:1.08rem}
.public-claim-box p{font-size:.9rem;line-height:1.45;color:#56606d;margin:8px 0 14px}
.public-claim-box p strong{display:inline;font-size:inherit}
.profile-claimed-note{margin-top:18px;padding:12px;background:#f4f6f8;color:#66717d;text-align:center;font-size:.9rem}
.profile-found-banner{padding:12px 14px;margin:0 0 12px;border-left:4px solid var(--red);background:#fff4f4;color:#343d48}
.rules-jump-link.selected{background:#fcebec;color:var(--red-dark);font-weight:800}

/* v13 Schedule & Results */
.schedule-filter-grid{display:grid;grid-template-columns:1.15fr 1.15fr .7fr 1fr auto auto;gap:14px;align-items:end;margin-bottom:12px}.schedule-filter-grid label{display:flex;gap:8px;align-items:center;font-weight:800;color:#263f87}.schedule-filter-grid select{min-width:0;width:100%;padding:10px 12px;border:1px solid #b9bec9;border-radius:3px;background:#fff}.schedule-count{margin:8px 0 12px;color:#667085;font-size:.92rem}.schedule-results-table th{white-space:nowrap;color:#263f87}.schedule-results-table td{vertical-align:top}.schedule-results-table td small{color:#667085}.schedule-results-table .results-link{font-weight:800;color:#b42318}.schedule-results-table .results-pending{color:#98a2b3}@media(max-width:900px){.schedule-filter-grid{grid-template-columns:1fr 1fr}.schedule-results-table{min-width:980px}}@media(max-width:560px){.schedule-filter-grid{grid-template-columns:1fr}.schedule-filter-grid label{display:block}.schedule-filter-grid label span{display:block;margin-bottom:5px}}

/* v13.2 Schedule designation columns */
.schedule-results-table .designation-cell {
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

/* v14 Factory rifle eligibility wizard */
.factory-check-button { background: var(--red); color: #fff; border: 2px solid var(--red); white-space: nowrap; }
.factory-check-button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.factory-wizard-page { padding-top: 28px; padding-bottom: 48px; }
.factory-wizard-heading { display:flex; justify-content:space-between; gap:24px; align-items:flex-end; margin-bottom:18px; }
.factory-wizard-heading h1 { margin-bottom:8px; }
.factory-wizard-intro { max-width:760px; margin:0; color:#555; }
.factory-wizard-notice { background:#fff6df; border:1px solid #e8ca73; border-left:5px solid #d39a00; padding:14px 16px; border-radius:7px; margin-bottom:20px; }
.factory-wizard-shell { max-width:900px; margin:0 auto 30px; }
.factory-progress-wrap { margin-bottom:12px; }
.factory-progress-bar { height:8px; border-radius:999px; overflow:hidden; background:#e8e8e8; }
.factory-progress-bar span { display:block; height:100%; width:12%; background:var(--red); transition:width .2s ease; }
.factory-step-label { margin-top:7px; text-align:right; font-size:13px; font-weight:800; color:#666; }
.factory-wizard-card { background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 7px 20px rgba(0,0,0,.07); padding:28px; min-height:310px; }
.factory-wizard-card h2 { margin:8px 0 10px; font-size:clamp(24px,3vw,34px); line-height:1.15; }
.factory-rule-pill { display:inline-block; background:#edf3f8; color:var(--blue); border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900; }
.factory-question-help { color:#555; max-width:760px; line-height:1.55; }
.factory-answer-list { display:grid; gap:10px; margin-top:22px; }
.factory-answer { width:100%; text-align:left; padding:15px 17px; border:2px solid #ddd; background:#fff; color:#222; border-radius:7px; font:inherit; font-weight:800; cursor:pointer; transition:.15s ease; }
.factory-answer:hover, .factory-answer:focus { border-color:var(--red); background:#fff7f7; outline:none; }
.factory-back-link { margin-top:20px; border:0; background:transparent; color:var(--blue); font:inherit; font-weight:800; cursor:pointer; padding:4px 0; }
.factory-reference-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:30px; }
.factory-reference-card { background:#fff; border:1px solid var(--line); border-top:5px solid var(--blue); border-radius:8px; padding:20px; }
.factory-reference-card h2 { margin-top:0; font-size:20px; }
.factory-reference-card p { line-height:1.5; }
.factory-reference-card.excluded-card { border-top-color:var(--red); }
.factory-reference-card.approved-card { border-top-color:#777; }
.rule-tag { white-space:nowrap; color:var(--blue); font-size:12px; font-weight:900; }
.factory-result { border-left:6px solid #777; padding-left:18px; }
.factory-result.eligible { border-left-color:#267a3b; }
.factory-result.review { border-left-color:#d39a00; }
.factory-result.not-eligible { border-left-color:var(--red); }
.factory-result-label { text-transform:uppercase; letter-spacing:.08em; font-size:13px; font-weight:900; color:#555; }
.factory-result-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
@media (max-width: 900px) {
  .factory-wizard-heading { display:block; }
  .factory-wizard-heading .button { margin-top:15px; }
  .factory-reference-grid { grid-template-columns:1fr; }
  .factory-wizard-card { padding:20px; }
}

/* v15 canonical Master Comp results */
.result-match-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 18px}.result-match-summary>div{background:#fff;border:1px solid #d9dde3;border-radius:10px;padding:12px}.result-match-summary span{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#68717c;margin-bottom:4px}.result-match-summary strong{display:block}.results-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.result-class-panel{margin-top:18px}.master-results-table th,.master-results-table td,.competitor-results-table th,.competitor-results-table td{white-space:nowrap}.master-results-table td:nth-child(2),.competitor-results-table td:nth-child(3){white-space:normal}.results-filter-grid{grid-template-columns:repeat(6,minmax(120px,1fr)) auto auto}.pagination-wrap{margin-top:18px}.source-class-note{font-size:.78rem;color:#68717c}
@media(max-width:1000px){.result-match-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.results-filter-grid{grid-template-columns:repeat(3,minmax(140px,1fr))}}
@media(max-width:640px){.result-match-summary{grid-template-columns:1fr 1fr}.results-filter-grid{grid-template-columns:1fr 1fr}}


/* v15.1.3 — Results filter bar: clean two-row desktop layout */
.results-filter-form {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 22px;
    align-items: end;
    width: 100%;
}
.results-filter-form > * {
    min-width: 0;
}
.results-filter-form label {
    display: block;
}
.results-filter-form select,
.results-filter-form input {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}
.results-filter-form button,
.results-filter-form .btn {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1000px) {
    .results-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .results-filter-form {
        grid-template-columns: 1fr;
    }
}


/* v15.1.4 — Results month selector; keep the filter area balanced */
@media (min-width: 1001px) {
    .results-filter-form {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}


/* v15.1.5 — Combined Schedule & Results public page */
.combined-schedule-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px 22px !important;
    align-items: end;
}
.combined-schedule-filter-grid label {
    display: block !important;
}
.combined-schedule-filter-grid label span {
    display: block;
    margin-bottom: 5px;
}
.combined-schedule-filter-grid select,
.combined-schedule-filter-grid .button {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .combined-schedule-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 560px) {
    .combined-schedule-filter-grid {
        grid-template-columns: 1fr !important;
    }
}

/* v15.1.8 — Live homepage: next 10 matches + latest 10 results */
.abra-home-hero{background:linear-gradient(135deg,#f7f8fa 0%,#fff 58%,#f4f5f7 100%);border-bottom:1px solid var(--line);padding:42px 0}.abra-home-hero-inner{display:grid;grid-template-columns:180px 1fr;gap:34px;align-items:center}.abra-home-hero-logo{width:180px;height:180px;object-fit:contain;border-radius:50%;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.12)}.abra-home-hero h1{font-size:clamp(2rem,4vw,3.3rem);margin:5px 0 10px;line-height:1.05}.abra-home-hero p{font-size:1.08rem;max-width:760px;margin:0;color:#525b66}.abra-home-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.abra-home-section{padding-top:38px;padding-bottom:38px}.abra-home-results-section{background:#f6f7f9;border-top:1px solid var(--line)}.abra-home-section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:16px}.abra-home-section-heading h2{font-size:1.8rem;margin:3px 0 3px}.abra-home-section-heading p{margin:0;color:#68717c}.abra-home-table-card{overflow:hidden}.abra-home-table td,.abra-home-table th{vertical-align:middle}.abra-home-table tbody tr:hover{background:#fafbfc}.abra-home-table .results-link{white-space:nowrap}
@media(max-width:760px){.abra-home-hero{padding:28px 0}.abra-home-hero-inner{grid-template-columns:1fr;text-align:center}.abra-home-hero-logo{width:140px;height:140px;margin:0 auto}.abra-home-actions{justify-content:center}.abra-home-section-heading{align-items:flex-start;flex-direction:column}.abra-home-section-heading .button{width:100%;box-sizing:border-box;text-align:center}}
