:root {
  --ink: #122a34;
  --muted: #5b6b72;
  --paper: #f4f1e9;
  --surface: #fff;
  --navy: #123d4b;
  --navy-deep: #092f3a;
  --green: #078a48;
  --green-soft: #e6f4eb;
  --red: #e31d2c;
  --yellow: #ffdb1f;
  --blue: #0ca4d2;
  --line: #dce2df;
  --shadow: 0 20px 60px rgba(18, 42, 52, 0.12);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(12, 164, 210, 0.08), transparent 28%), radial-gradient(circle at 10% 70%, rgba(7, 138, 72, 0.07), transparent 32%); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy-deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.portal-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(18, 42, 52, 0.09); background: rgba(244, 241, 233, 0.93); backdrop-filter: blur(18px); }
.header-inner { width: var(--shell); min-height: 82px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.portal-brand img { width: 54px; height: 54px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(18, 42, 52, 0.12); }
.portal-brand span { display: grid; line-height: 1.2; }
.portal-brand strong { letter-spacing: -0.02em; }
.portal-brand small { margin-top: 4px; color: var(--muted); font-size: 0.75rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.session-label { margin-right: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.header-button { padding: 10px 15px; border: 0; border-radius: 999px; color: #fff; background: var(--navy); font-weight: 800; text-decoration: none; cursor: pointer; }
.header-button-muted { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.member-navigation { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px); }
.member-navigation a { color: var(--ink); font-size: 0.81rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.member-navigation a:hover, .member-navigation a[aria-current="page"] { color: var(--green); }
.member-menu-button { display: none; }

.eyebrow { margin: 0 0 9px; color: var(--red); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.04em; }

.login-view { width: var(--shell); min-height: calc(100vh - 150px); margin-inline: auto; padding-block: 72px; display: grid; grid-template-columns: 1fr minmax(360px, 0.72fr); align-items: center; gap: clamp(50px, 10vw, 140px); }
.login-intro h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.6rem); }
.login-intro > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.13rem; }
.login-benefits { margin: 32px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.login-benefits li { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.login-benefits span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 0.72rem; }
.public-booking-card { max-width: 650px; margin-top: 28px; padding: 18px; border: 1px solid #a8d8bc; border-radius: 18px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 16px; background: #fff; box-shadow: 0 12px 34px rgba(18, 42, 52, 0.08); text-align: left; }
.public-booking-card strong { display: block; color: var(--navy-deep); font-size: 1.02rem; }
.public-booking-card p { margin: 5px 0 14px; color: var(--muted); font-size: 0.88rem; }
.public-booking-card .secondary-button { min-height: 42px; padding: 9px 16px; }
.public-booking-icon { width: 42px !important; height: 42px !important; border-radius: 50%; display: grid; place-items: center; color: #fff !important; background: var(--green) !important; font-size: 1.1rem !important; font-weight: 900; }
.score-route-card { max-width: 650px; margin-top: 14px; padding: 18px; border: 1px solid #ead783; border-radius: 18px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 16px; background: #fff8d8; text-align: left; }
.score-route-card strong { display: block; color: var(--navy-deep); font-size: 1.02rem; }
.score-route-card p { margin: 5px 0 0; color: #61582d; font-size: 0.88rem; }
.score-route-icon { width: 42px !important; height: 42px !important; border-radius: 50%; display: grid; place-items: center; color: var(--navy-deep) !important; background: var(--yellow) !important; font-size: 1rem !important; font-weight: 950; }

.login-card { padding: 38px; border: 1px solid var(--line); border-radius: 28px; display: grid; gap: 10px; background: #fff; box-shadow: var(--shadow); }
.login-card h2 { margin-bottom: 8px; font-size: 2.2rem; }
.login-card > div > p:last-child { color: var(--muted); }
.login-card label { margin-top: 8px; font-size: 0.84rem; font-weight: 800; }
.login-card input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c8d1ce; border-radius: 11px; color: var(--ink); background: #fff; }
.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(7, 138, 72, 0.11); outline: none; }
.primary-button { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--green); font-weight: 850; text-decoration: none; cursor: pointer; }
.primary-button:hover { background: #056d3a; }
.primary-button:disabled, .primary-button[aria-disabled="true"] { cursor: not-allowed; color: rgba(255, 255, 255, 0.78); background: #76868b; }
.login-card .primary-button { margin-top: 14px; }
.testing-notice { padding: 16px 17px; border: 1px solid #ead783; border-left: 5px solid var(--yellow); border-radius: 12px; color: #514819; background: #fff8d8; }
.testing-notice strong { display: block; color: var(--navy-deep); font-size: 0.94rem; }
.testing-notice p { margin: 6px 0 0; color: #61582d; font-size: 0.84rem; line-height: 1.5; }
.login-testing-notice { margin: 6px 0 4px; }
.text-button { width: fit-content; margin: 2px auto 0; padding: 7px 10px; border: 0; color: var(--navy); background: transparent; font-size: 0.82rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:hover { color: var(--green); }
.text-button:disabled { color: var(--muted); cursor: wait; }
.form-message { min-height: 24px; margin: 4px 0 0; color: var(--red); font-size: 0.84rem; font-weight: 700; }
.form-message.is-success { color: var(--green); }
.login-help { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }

.state-view { min-height: calc(100vh - 150px); display: grid; place-content: center; justify-items: center; text-align: center; }
.state-view h1 { margin: 22px 0 8px; }
.state-view p { color: var(--muted); }
.loading-mark { width: 52px; height: 52px; border: 5px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.portal-view { width: var(--shell); margin-inline: auto; padding-block: 28px 80px; }
.portal-view section[id], .portal-view article[id] { scroll-margin-top: 104px; }
.section-menu { position: relative; z-index: 30; width: fit-content; margin-bottom: 20px; }
.section-menu summary { padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 14px; background: #fff; box-shadow: 0 8px 24px rgba(12, 43, 52, 0.08); color: var(--navy); font-size: 0.85rem; font-weight: 850; cursor: pointer; list-style: none; }
.section-menu summary::-webkit-details-marker { display: none; }
.section-menu[open] summary { border-radius: 12px 12px 0 0; }
.portal-nav { position: absolute; top: 100%; left: 0; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 0 12px 12px 12px; display: grid; gap: 2px; background: #fff; box-shadow: 0 16px 32px rgba(12, 43, 52, 0.14); }
.portal-nav a { padding: 10px 12px; border-radius: 8px; white-space: nowrap; color: var(--muted); font-size: 0.84rem; font-weight: 800; text-decoration: none; }
.portal-nav a:hover { color: #fff; background: var(--navy); }

@media (max-width: 1050px) {
  .portal-header .header-inner { position: relative; }
  .member-menu-button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); background: #fff; font-size: 0.82rem; font-weight: 800; cursor: pointer; }
  .menu-button-lines, .menu-button-lines::before, .menu-button-lines::after { width: 18px; height: 2px; display: block; background: currentColor; }
  .menu-button-lines { position: relative; }
  .menu-button-lines::before, .menu-button-lines::after { content: ""; position: absolute; left: 0; }
  .menu-button-lines::before { top: -6px; }
  .menu-button-lines::after { top: 6px; }
  .member-navigation { position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 20px; border: 1px solid var(--line); border-radius: 0 0 16px 16px; display: none; align-items: stretch; gap: 0; background: var(--paper); box-shadow: 0 24px 45px rgba(18, 42, 52, 0.18); }
  .member-navigation.is-open { display: grid; }
  .member-navigation a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .portal-header .session-label { display: none; }
}

.member-hero { min-height: 260px; padding: clamp(34px, 6vw, 68px); border-radius: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; color: #fff; background: linear-gradient(110deg, rgba(7, 31, 39, 0.97), rgba(7, 31, 39, 0.68)), url("../assets/branding/outdoor-range-hero.webp") center / cover; box-shadow: var(--shadow); }
.member-hero .eyebrow { color: var(--yellow); }
.member-hero h1 { margin-bottom: 10px; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.member-hero p:last-child { margin: 0; color: rgba(255, 255, 255, 0.74); }
.status-pill { padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, 0.12); font-weight: 850; text-transform: capitalize; }
.status-pill.is-active { color: #063d24; background: #d9f7e5; }
.status-pill.is-warning { color: #6b3700; background: #fff0bf; }
.status-pill.is-danger { color: #75131c; background: #ffe0e3; }

.portal-alert { margin-top: 18px; padding: 16px 20px; border-left: 5px solid var(--yellow); border-radius: 12px; color: #fff; background: var(--navy); }
.portal-alert.is-error { border-color: var(--red); }

.summary-grid { margin-block: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-grid article { min-height: 132px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; display: grid; align-content: end; background: #fff; }
.summary-grid span { margin-bottom: auto; color: var(--muted); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.summary-grid strong { font-size: 1.45rem; text-transform: capitalize; }
.summary-grid small { color: var(--muted); }

.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-heading { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 0; font-size: 1.8rem; }
.privacy-chip, .count-chip { padding: 7px 10px; border-radius: 999px; color: var(--muted); background: #edf1ef; font-size: 0.72rem; font-weight: 850; }

.digital-card { position: relative; isolation: isolate; min-height: 310px; padding: 24px 26px 22px; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: linear-gradient(122deg, #082f3a 0%, #0a4b43 57%, #08763e 100%); box-shadow: 0 20px 46px rgba(7, 31, 39, 0.27); }
.digital-card::before { content: ""; position: absolute; z-index: -2; width: 260px; height: 260px; right: -92px; top: -100px; border: 22px solid rgba(12, 164, 210, 0.17); border-radius: 50%; box-shadow: 0 0 0 22px rgba(227, 29, 44, 0.14), 0 0 0 44px rgba(255, 219, 31, 0.12); }
.digital-card::after { content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; height: 7px; background: linear-gradient(90deg, var(--green) 0 25%, var(--yellow) 25% 50%, var(--red) 50% 75%, var(--blue) 75%); }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.card-club-mark { min-width: 0; display: flex; align-items: center; gap: 14px; }
.card-club-mark img { width: 72px; height: 72px; flex: 0 0 72px; padding: 3px; border: 2px solid rgba(255, 255, 255, 0.66); border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2); }
.card-club-mark div { min-width: 0; display: grid; line-height: 1.18; }
.card-club-mark span { font-size: 1.05rem; font-weight: 900; }
.card-club-mark small { margin-top: 5px; color: rgba(255, 255, 255, 0.7); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.card-member-label { align-self: flex-start; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; color: var(--navy-deep); background: var(--yellow); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.card-main { margin-block: auto; padding-block: 22px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.card-identity { min-width: 0; display: grid; }
.card-field-label { margin-bottom: 3px; color: rgba(255, 255, 255, 0.62); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.card-identity > strong { overflow-wrap: anywhere; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -0.03em; line-height: 1.05; }
.card-number-row { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.card-number-row span { color: rgba(255, 255, 255, 0.62); font-size: 0.72rem; font-weight: 750; text-transform: uppercase; }
.card-number-row b { font-size: 0.9rem; }
.card-initials { width: 56px; height: 56px; flex: 0 0 56px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 16px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.1); font-size: 1.1rem; font-weight: 900; letter-spacing: 0.04em; backdrop-filter: blur(8px); }
.card-bottom { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.card-bottom > div { display: grid; gap: 3px; }
.card-bottom span { color: rgba(255, 255, 255, 0.6); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.card-bottom strong { font-size: 0.88rem; text-transform: capitalize; }
.card-status-field { justify-items: end; text-align: right; }
.card-status-field strong { padding: 4px 9px; border-radius: 999px; color: #073c25; background: #d9f7e5; }
.card-status-field strong.is-warning { color: #6b3700; background: #fff0bf; }
.card-status-field strong.is-danger { color: #75131c; background: #ffe0e3; }

.profile-details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-details div { min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile-details div:nth-child(odd) { padding-right: 16px; }
.profile-details dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.profile-details dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.panel-note { margin: 22px 0 0; color: var(--muted); font-size: 0.79rem; }
.member-profile-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.member-profile-form label { min-width: 0; display: grid; gap: 7px; }
.member-profile-form label > span { color: var(--muted); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.member-profile-form input, .member-profile-form select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c8d1ce; border-radius: 11px; color: var(--ink); background: #fff; }
.member-profile-form input:focus, .member-profile-form select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(7, 138, 72, 0.11); outline: none; }
.member-profile-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.member-profile-actions .form-message { flex: 1; margin: 0; }

.booking-panel { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; color: #fff; background: var(--navy); }
.booking-panel .eyebrow { color: var(--yellow); }
.booking-panel h2 { margin-bottom: 8px; }
.booking-panel p:last-child { margin: 0; color: rgba(255, 255, 255, 0.7); }
.booking-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-deep); background: var(--yellow); font-size: 1.5rem; font-weight: 900; }

.governance-entry-panel { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; border-color: #c7d8d2; background: linear-gradient(135deg, #f1f7f4, #fff); }
.governance-entry-panel .eyebrow { color: var(--green); }
.governance-entry-panel h2 { margin-bottom: 7px; }
.governance-entry-panel p:last-child { margin: 0; color: var(--muted); }
.governance-entry-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--navy); font-size: 1.5rem; font-weight: 900; }
.new-archer-entry-panel { border-color: #a8d8bc; background: linear-gradient(135deg, #f0faf4, #fff); }
.new-archer-entry-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 1.25rem; font-weight: 950; }
.club-records-entry-panel { border-color: #e6d190; background: linear-gradient(135deg, #fff9e7, #fff); }
.club-records-entry-panel .eyebrow { color: #805f00; }
.club-records-entry-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-deep); background: var(--yellow); font-size: 1.4rem; font-weight: 900; }

.new-archer-panel { grid-column: 1 / -1; }
.new-archer-intro { max-width: 850px; margin: -5px 0 24px; color: var(--muted); font-size: 1.02rem; }
.new-archer-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.new-archer-guide-grid details { border: 1px solid var(--line); border-radius: 15px; background: #f8faf9; overflow: hidden; }
.new-archer-guide-grid details:last-child { grid-column: 1 / -1; }
.new-archer-guide-grid details[open] { border-color: #8cc9a9; background: #fff; box-shadow: 0 12px 28px rgba(18, 42, 52, 0.07); }
.new-archer-guide-grid summary { min-height: 68px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--navy-deep); font-weight: 900; list-style: none; cursor: pointer; }
.new-archer-guide-grid summary::-webkit-details-marker { display: none; }
.new-archer-guide-grid summary b { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 1.15rem; transition: transform 160ms ease; }
.new-archer-guide-grid details[open] summary b { transform: rotate(45deg); }
.new-archer-guide-grid details > p { margin: -2px 20px 20px; color: var(--muted); font-size: 0.9rem; }
.guide-detail-content { padding: 0 20px 22px; color: var(--muted); font-size: 0.92rem; }
.guide-detail-content p { margin: 0 0 14px; }
.guide-detail-content h3 { margin: 0 0 8px; color: var(--navy-deep); font-size: 1.05rem; }
.guide-detail-content ul { margin: 4px 0 16px; padding-left: 20px; }
.guide-detail-content li + li { margin-top: 7px; }
.whistle-command-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 16px 0; }
.whistle-command-grid article { padding: 14px 12px; border: 1px solid #b9ddc9; border-radius: 12px; background: #f0faf4; text-align: center; }
.whistle-command-grid strong, .whistle-command-grid span { display: block; }
.whistle-command-grid strong { color: var(--green-deep); font-size: 1rem; }
.whistle-command-grid span { margin-top: 3px; color: var(--navy-deep); font-size: 0.84rem; font-weight: 800; }
.guide-emergency { padding: 12px 14px; border-left: 4px solid #c73535; border-radius: 8px; background: #fff1f1; color: #742323; }
.guide-scope-note { margin-bottom: 0 !important; color: var(--navy-deep); font-weight: 800; }
.guide-table-wrap { margin: 16px 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guide-table-wrap:focus { outline: 3px solid rgba(0, 112, 75, 0.22); outline-offset: 2px; }
.guide-score-table { width: 100%; min-width: 550px; border-collapse: collapse; color: var(--navy-deep); font-size: 0.85rem; text-align: center; }
.guide-score-table caption { padding: 13px 14px; color: var(--navy-deep); background: #eef7f2; font-weight: 900; text-align: left; }
.guide-score-table th, .guide-score-table td { padding: 10px 12px; border-top: 1px solid var(--line); }
.guide-score-table thead th { background: #f8faf9; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.guide-score-table tbody th { text-align: left; }
.guide-score-table tbody tr:nth-child(even) { background: #fbfcfb; }
.guide-review-note { margin-top: 18px; padding: 17px 19px; border-left: 5px solid var(--yellow); border-radius: 12px; background: #fff7d2; }
.guide-review-note p { margin: 4px 0 0; color: #61552d; font-size: 0.86rem; }

.targettotal-panel { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; border-color: #9ed8ef; background: linear-gradient(135deg, #eefaff, #fff); }
.targettotal-panel .eyebrow { color: #006d9d; }
.targettotal-panel h2 { margin-bottom: 8px; }
.targettotal-panel p:not(.eyebrow) { margin: 0 0 7px; color: var(--muted); }
.targettotal-panel small { color: var(--muted); }
.targettotal-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 1.7rem; font-weight: 900; }

.secondary-button { min-height: 48px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); background: #fff; font-weight: 850; text-decoration: none; }
.secondary-button:hover { border-color: var(--navy); }

.score-submit-panel { grid-column: 1 / -1; }
.scores-panel { grid-column: 1 / -1; }
.score-insights { margin: -4px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.score-insights article { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 4px; background: #f8faf9; }
.score-insights span, .score-filters label > span { color: var(--muted); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.score-insights strong { font-size: 1.25rem; }
.score-filters { margin-bottom: 18px; padding: 14px; border-radius: 14px; display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr auto; align-items: end; gap: 10px; background: #edf5f0; }
.score-filters label { min-width: 0; display: grid; gap: 5px; }
.score-filters input, .score-filters select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #c8d1ce; border-radius: 9px; color: var(--ink); background: #fff; }
.score-filters button, .correction-banner button, .score-correction-button { min-height: 42px; padding: 9px 13px; border: 1px solid #b8c7c1; border-radius: 9px; color: var(--navy); background: #fff; font-weight: 800; cursor: pointer; }
.submission-intro { max-width: 780px; margin: -6px 0 24px; color: var(--muted); }
.score-testing-notice { margin: -6px 0 24px; }
.round-summary { margin: -4px 0 0; padding: 12px 14px; border-radius: 10px; color: var(--muted); background: #edf5f0; font-size: 0.78rem; }
.score-submit-form input[readonly] { color: #42534d; background: #f0f4f2; cursor: not-allowed; }
.correction-banner { margin: -6px 0 22px; padding: 15px 17px; border-left: 5px solid var(--yellow); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff4c9; }
.correction-banner[hidden] { display: none; }
.correction-banner div { display: grid; gap: 3px; }
.correction-banner span { color: #5f4d16; font-size: 0.8rem; }
.score-submit-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.score-submit-form label { min-width: 0; display: grid; align-content: start; gap: 7px; }
.score-submit-form label > span { font-size: 0.78rem; font-weight: 850; }
.score-submit-form input, .score-submit-form select, .score-submit-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c8d1ce; border-radius: 11px; color: var(--ink); background: #fff; }
.score-filters input[type="date"], .score-submit-form input[type="date"] { min-width: 0; max-width: 100%; overflow: hidden; display: block; appearance: none; -webkit-appearance: none; }
.score-filters input[type="date"]::-webkit-date-and-time-value, .score-submit-form input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.score-submit-form textarea { min-height: 92px; resize: vertical; }
.score-submit-form input:focus, .score-submit-form select:focus, .score-submit-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(7, 138, 72, 0.11); outline: none; }
.score-submit-form .wide { grid-column: 1 / -1; }
.file-field { padding: 17px; border: 1px dashed #aebbb7; border-radius: 14px; background: #f7faf8; }
.file-field input { min-height: auto; padding: 8px; background: #fff; }
.file-field small { color: var(--muted); }
.submission-actions { display: flex; align-items: center; gap: 18px; }
.submission-actions .primary-button { flex: 0 0 auto; }
.submission-actions .form-message { flex: 1; margin: 0; }

.item-list { display: grid; gap: 10px; }
.list-item { padding: 15px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; }
.list-item strong { overflow-wrap: anywhere; }
.list-item span, .list-item small { color: var(--muted); }
.list-item small { grid-column: 1; }
.list-item .item-status { grid-column: 2; grid-row: 2; align-self: start; padding: 5px 8px; border-radius: 999px; background: #edf1ef; font-size: 0.68rem; font-weight: 850; text-transform: capitalize; }
.list-item .item-status.is-approved { color: #075c36; background: #ddf5e7; }
.list-item .item-status.is-submitted { color: #725000; background: #fff0bd; }
.list-item .item-status.is-rejected { color: #821d27; background: #ffe1e4; }
.score-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.score-badge { padding: 4px 8px; border-radius: 999px; color: var(--green); background: #e2f5e9; font-size: 0.67rem; font-weight: 850; }
.official-feedback { grid-column: 1 / -1; margin-top: 7px; padding: 12px 14px; border-left: 4px solid var(--green); border-radius: 9px; display: grid; gap: 5px; background: #f1f8f4; }
.official-feedback.is-rejected { border-color: var(--red); background: #fff1f2; }
.official-feedback p { margin: 0; color: var(--ink); font-size: 0.8rem; white-space: pre-line; }
.score-correction-button { width: fit-content; margin-top: 5px; border-color: var(--red); color: #821d27; }
.notice-item.is-pinned { border-left: 4px solid var(--yellow); }
.notice-item p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); white-space: pre-line; }
.empty-state { margin: 0; padding: 28px 16px; border: 1px dashed #c9d2cf; border-radius: 13px; color: var(--muted); text-align: center; }
.next-feature { margin-top: 14px; padding: 14px 16px; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #edf5f0; }
.next-feature div { display: grid; }
.next-feature div span { color: var(--muted); font-size: 0.76rem; }
.next-feature > span { padding: 5px 8px; border-radius: 999px; white-space: nowrap; color: var(--green); background: #fff; font-size: 0.68rem; font-weight: 850; }

.portal-footer { width: var(--shell); margin: 0 auto 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 0.8rem; }
.portal-footer a { font-weight: 800; }

@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; }
  .login-intro { text-align: center; }
  .login-intro > p:not(.eyebrow) { margin-inline: auto; }
  .login-benefits { width: fit-content; margin-inline: auto; text-align: left; }
  .public-booking-card, .score-route-card { margin-inline: auto; }
  .login-card { width: min(100%, 520px); margin-inline: auto; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .booking-panel { grid-column: 1; }
  .targettotal-panel { grid-column: 1; }
  .score-submit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-filters { grid-template-columns: repeat(2, 1fr); }
  .score-filters button { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .member-profile-form { grid-template-columns: 1fr; }
  .member-profile-actions { grid-column: 1; align-items: stretch; flex-direction: column; }
  :root { --shell: min(100% - 28px, 1180px); }
  .header-inner { min-height: 72px; }
  .portal-brand img { width: 46px; height: 46px; }
  .portal-brand small, .session-label, .header-button-muted { display: none; }
  .header-button { padding-inline: 13px; }
  .login-view { min-height: auto; padding-block: 48px 60px; gap: 40px; }
  .login-intro h1 { font-size: 3rem; }
  .public-booking-card { grid-template-columns: 1fr; }
  .score-route-card { grid-template-columns: 1fr; }
  .public-booking-card .secondary-button { width: 100%; }
  .login-card { padding: 26px 22px; border-radius: 22px; }
  .portal-view { padding-top: 16px; }
  .member-navigation { max-height: calc(100dvh - 72px); overflow-y: auto; }
  .member-hero { min-height: 330px; padding: 28px 24px; flex-direction: column; align-items: flex-start; justify-content: flex-end; background-position: 62% center; }
  .member-hero h1 { font-size: 2.7rem; }
  .booking-panel, .governance-entry-panel, .targettotal-panel { grid-template-columns: 1fr; }
  .new-archer-guide-grid { grid-template-columns: 1fr; }
  .new-archer-guide-grid details:last-child { grid-column: 1; }
  .whistle-command-grid { grid-template-columns: 1fr; }
  .status-pill { align-self: flex-start; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .score-submit-form { grid-template-columns: 1fr; }
  .score-submit-form .wide { grid-column: 1; }
  .score-insights, .score-filters { grid-template-columns: 1fr; }
  .score-filters button { grid-column: 1; }
  .correction-banner { align-items: stretch; flex-direction: column; }
  .submission-actions { align-items: stretch; flex-direction: column; }
  .submission-actions .primary-button { width: 100%; }
  .summary-grid article { min-height: 118px; padding: 17px; }
  .summary-grid strong { font-size: 1.1rem; }
  .panel { padding: 22px; }
  .digital-card { min-height: 300px; padding: 20px; }
  .digital-card::before { right: -130px; }
  .card-club-mark { max-width: calc(100% - 112px); padding-right: 0; gap: 10px; }
  .card-club-mark img { width: 54px; height: 54px; flex-basis: 54px; }
  .card-club-mark span { font-size: 0.92rem; }
  .card-club-mark small { display: none; }
  .card-member-label { position: absolute; top: 18px; right: 18px; }
  .card-main { padding-block: 24px 16px; }
  .profile-details { grid-template-columns: 1fr; }
  .profile-details div:nth-child(odd) { padding-right: 0; }
  .booking-panel { grid-template-columns: 1fr; }
  .governance-entry-panel { grid-template-columns: 1fr; }
  .booking-icon { width: 44px; height: 44px; }
  .booking-panel .primary-button, .governance-entry-panel .primary-button { width: 100%; }
  .next-feature { align-items: flex-start; }
  .portal-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
