:root {
  color-scheme: light;
  --club-ink: #202722;
  --club-muted: #687069;
  --club-gold: #e4cc8f;
  --club-paper: #f7f6f1;
  --club-line: #e3e4dc;
  --club-dark: #181c19;
}
body {
  background: var(--club-paper);
  color: var(--club-ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #645020;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #a17d2e;
  outline-offset: 4px;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 2000;
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.club-sidebar {
  width: 248px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--club-dark);
  color: #f8f7ee;
  padding: 28px 20px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid #35392d;
  z-index: 50;
}
.club-brand {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 13px 30px;
  width: 170px;
  align-self: center;
  box-shadow: 0 8px 24px #0002;
}
.club-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.sidebar-caption {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #d8c89d;
  margin: 22px 0 12px;
}
.gold-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9ad69;
  display: inline-block;
  flex-shrink: 0;
}
.club-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0;
  gap: 5px;
}
.nav-section-label {
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #9ba59c;
  padding: 20px 14px 8px;
}
.club-nav .club-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #c7cec7;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.club-nav .club-nav-link:hover {
  background: #272e27;
  color: white;
}
.club-nav .is-active {
  background: #e4cc8f14;
  border-color: #e4cc8f2a;
  color: #e4cc8f;
}
.nav-indicator {
  height: 5px;
  width: 5px;
  background: var(--club-gold);
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding: 30px 4px 20px;
  font-size: 10px;
  color: #9ba59c;
}
.sidebar-bottom .league-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-bottom img {
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}
.sidebar-bottom a { color: inherit; text-decoration: none; }
.sidebar-bottom a:hover { text-decoration: underline; }
.sidebar-bottom span {
  display: block;
  font-size: 10px;
  color: #d5dbd3;
  margin-top: 3px;
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 2px 0;
  border-top: 1px solid #ffffff15;
}
.account-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4cc8f;
  color: #24271e;
  font-size: 13px;
  font-weight: 650;
}
.sidebar-account strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.sidebar-account small {
  font-size: 10px;
  color: #b1bbb2;
}
.sidebar-account > a {
  margin-left: auto;
  color: #d9c48d;
  text-decoration: none;
  font-size: 23px;
  padding: 5px;
}
.club-workspace {
  margin-left: 248px;
  min-width: 0;
}
.club-topbar {
  margin: 0;
  padding: 26px 42px;
  background: #fcfcf8;
  border-bottom: 1px solid var(--club-line);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.breadcrumb {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #5e695b;
}
.breadcrumb span {
  padding: 0 10px;
  color: #b2b7ad;
}
.club-topbar h1 {
  font-size: 23px;
  letter-spacing: -0.045em;
  color: var(--club-ink);
  font-weight: 600;
  margin-top: 5px;
}
.topbar-club {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #636b61;
}
.club-content {
  max-width: 1560px;
  padding: 34px 42px;
  min-height: calc(100vh - 190px);
}
.club-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 42px 25px;
  font-size: 10px;
  color: #5e695b;
}
.club-footer a {
  font-weight: 600;
  text-decoration: none;
  color: #5e522f;
}
.footer-divider {
  padding: 0 10px;
  color: #a5aa9e;
}
.card {
  background: white;
  border: 1px solid var(--club-line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 3px 12px #19231903;
  min-width: 0;
}
.card h2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--club-ink);
  margin-bottom: 16px;
}
.card h3 {
  font-weight: 600;
}
.btn {
  background: var(--club-gold);
  color: #25291e;
  border: 1px solid #d6bf82;
  border-radius: 7px;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 2px 2px #342e1207;
}
.btn:hover {
  background: #d8bd77;
  box-shadow: 0 3px 9px #342e1210;
}
.btn-sm {
  padding: 6px 11px;
  font-size: 11px;
}
.grid-2 {
  gap: 22px;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--club-line);
  border-radius: 8px;
  margin-top: 8px;
  overscroll-behavior-inline: contain;
}
.table-scroll table {
  margin: 0;
  border: 0;
}
table {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  border: 0;
  border-bottom: 1px solid #e5e7df;
  padding: 12px 13px;
}
th {
  background: #28322b;
  color: #f4f4eb;
  font-size: 10px;
  letter-spacing: 0.035em;
  font-weight: 600;
}
td,
tr:nth-child(odd) td,
tr.row-light td {
  background: #fff;
}
tr:nth-child(even) td,
tr.row-tan td {
  background: #f7f8f3;
}
tbody tr:hover td {
  background: #f2f2e6;
}
tr:last-child td {
  border-bottom: 0;
}
.gold-label {
  background: #f0e8cf !important;
  font-size: 12px;
  color: #4b432d;
}
.result-bar {
  background: #eee6cf;
  border: 1px solid #dfd2ac;
  border-radius: 8px;
  color: #464128;
  padding: 16px 20px;
}
input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
select,
textarea {
  border: 1px solid #d9ded3;
  border-radius: 6px;
  background: #fff;
  color: #28332a;
  padding: 9px 11px;
  min-height: 37px;
  font-size: 13px;
  max-width: 100%;
}
input[type="number"] {
  padding: 6px 3px;
  width: 52px;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #a3ae99;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #a38747;
  box-shadow: 0 0 0 3px #c6af7520;
  outline: none;
}
label {
  color: #4f5b4f;
}
details.visit-session {
  border-color: var(--club-line);
  border-radius: 10px;
}
details.visit-session summary {
  background: #f3f5ee;
}
.audit-details {
  background: #f6f7f2;
  border-color: var(--club-line);
}
.flash {
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
}
.status-pending {
  color: #63705f;
}
.status-in_progress {
  color: #805c0d;
}
.status-complete {
  color: #306440;
}
.archive-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: #243027;
  border: 1px solid #344439;
  border-radius: 14px;
  padding: 35px 38px;
  margin-bottom: 26px;
  color: #fff;
}
.archive-intro:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: 80px;
  top: -170px;
  border: 1px solid #d5c18730;
  border-radius: 50%;
  box-shadow:
    0 0 0 28px #d5c18707,
    0 0 0 56px #d5c18706,
    0 0 0 84px #d5c18704;
  pointer-events: none;
}
.overline {
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #d6c58f;
}
.archive-intro h2 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin: 12px 0;
}
.archive-intro p {
  color: #c4d0c1;
  font-size: 12px;
  max-width: 430px;
  line-height: 1.8;
}
.archive-total {
  position: relative;
  text-align: center;
  min-width: 120px;
  padding-left: 30px;
  border-left: 1px solid #ffffff25;
}
.archive-total strong {
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
  color: #e4cc8f;
}
.archive-total span {
  display: block;
  color: #c6cec0;
  font-size: 10px;
  margin-top: 10px;
  letter-spacing: 0.08em;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-toolbar h2 {
  margin: 0;
}
.section-toolbar p {
  font-size: 12px;
  color: #6a7366;
  margin-top: 4px;
}
.empty-state {
  text-align: center;
  padding: 54px 20px;
  color: #63705f;
}
.empty-state svg {
  color: #988350;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  color: #354132;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 13px;
  margin-bottom: 22px;
}
.club-auth .club-workspace {
  margin: 0;
}
.club-auth .club-content {
  padding: 0;
  max-width: none;
  min-height: calc(100vh - 60px);
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: calc(100vh - 60px);
}
.login-scene {
  background: #1c261f;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 65px;
}
.login-scene .club-brand {
  width: 154px;
  align-self: flex-start;
  padding: 15px 25px;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}
.login-editorial {
  position: relative;
  z-index: 1;
  max-width: 460px;
  padding: 90px 0;
}
.login-editorial h1 {
  font-family: Georgia, serif;
  font-size: clamp(44px, 4.4vw, 70px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 20px 0 25px;
}
.login-editorial h1 em {
  font-weight: 400;
  color: #e4cc8f;
}
.login-editorial p {
  font-size: 14px;
  color: #c3cfc0;
  max-width: 310px;
  line-height: 1.9;
}
.login-scene-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d3c399;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.course-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 45px;
  background: #f7f6f1;
}
.login-form-wrap {
  width: 100%;
  max-width: 350px;
}
.login-form-wrap .overline {
  color: #7a662e;
}
.login-form-wrap h2 {
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 14px 0 12px;
}
.login-form-wrap > p {
  font-size: 13px;
  color: #6a7467;
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-form {
  display: grid;
  gap: 20px;
}
.login-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.login-form input {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  background: #fff;
  border-color: #d7ddcf;
}
.login-form .btn {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  font-size: 13px;
  background: #25352a;
  color: #fff;
  border-color: #25352a;
}
.login-form .btn:hover {
  background: #374b3c;
}
.login-note {
  font-size: 10px;
  color: #5e695b;
  border-top: 1px solid #dde2d5;
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (min-width: 1800px) {
  .club-content {
    padding-top: 45px;
  }
  .club-topbar {
    padding-block: 30px;
  }
}
@media (max-width: 1150px) {
  .club-sidebar {
    width: 218px;
    padding-inline: 14px;
  }
  .club-workspace {
    margin-left: 218px;
  }
  .club-content {
    padding: 28px 25px;
  }
  .club-topbar {
    padding: 22px 25px;
  }
  .club-footer {
    padding-inline: 25px;
  }
  .login-scene {
    padding: 40px;
  }
  .card {
    padding: 22px;
  }
  .archive-intro {
    padding: 30px;
  }
}
@media (max-width: 800px) {
  .club-sidebar {
    position: relative;
    width: 100%;
    padding: 18px 20px;
    overflow: visible;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px 20px;
  }
  .club-brand {
    width: 100px;
    padding: 8px 16px;
    grid-row: 1;
  }
  .sidebar-caption {
    margin: 0;
    justify-content: flex-start;
    align-self: start;
    padding-top: 8px;
    font-size: 9px;
  }
  .club-nav {
    grid-column: 1/-1;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: #867348 transparent;
  }
  .club-nav .club-nav-link {
    flex-shrink: 0;
    font-size: 11px;
    padding: 10px;
  }
  .nav-section-label,
  .nav-indicator,
  .sidebar-bottom {
    display: none;
  }
  .sidebar-account {
    position: absolute;
    right: 20px;
    top: 42px;
    border: 0;
    padding: 0;
    min-width: 155px;
  }
  .sidebar-account .account-avatar {
    width: 28px;
    height: 28px;
  }
  .sidebar-account strong {
    font-size: 11px;
  }
  .sidebar-account small {
    font-size: 9px;
  }
  .sidebar-account > a {
    font-size: 20px;
  }
  .club-workspace {
    margin: 0;
  }
  .club-topbar {
    padding: 20px;
  }
  .club-topbar h1 {
    font-size: 22px;
  }
  .club-content {
    padding: 22px 20px;
  }
  .club-footer {
    padding: 20px;
    font-size: 9px;
  }
  .topbar-club {
    font-size: 10px;
  }
  .archive-intro h2 {
    font-size: 30px;
  }
  .login-layout {
    grid-template-columns: 1fr 1fr;
  }
  .login-scene {
    padding: 30px;
  }
  .login-panel {
    padding: 35px 25px;
  }
  .login-editorial h1 {
    font-size: 44px;
  }
  .login-editorial {
    padding: 60px 0;
  }
}
@media (max-width: 600px) {
  .topbar-club {
    display: none;
  }
  .club-content {
    padding: 20px 14px;
  }
  .club-topbar {
    padding: 18px 20px;
  }
  .card {
    padding: 18px 15px;
    border-radius: 10px;
  }
  .card h2 {
    font-size: 18px;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .archive-intro {
    padding: 25px 22px;
    gap: 20px;
  }
  .archive-intro h2 {
    font-size: 28px;
  }
  .archive-intro p {
    font-size: 11px;
  }
  .archive-total {
    min-width: 67px;
    padding-left: 16px;
  }
  .archive-total strong {
    font-size: 36px;
  }
  .archive-total span {
    font-size: 9px;
    max-width: 60px;
  }
  .club-footer {
    padding: 18px 14px;
    flex-wrap: wrap;
  }
  .section-toolbar {
    align-items: flex-start;
  }
  .section-toolbar .btn {
    padding: 8px 12px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-scene {
    padding: 25px 28px;
    min-height: 270px;
  }
  .login-scene .club-brand {
    width: 88px;
    padding: 7px 14px;
  }
  .login-editorial {
    padding: 25px 0 10px;
  }
  .login-editorial h1 {
    font-size: 36px;
    margin: 10px 0;
  }
  .login-editorial h1 br {
    display: none;
  }
  .login-editorial p {
    font-size: 12px;
    max-width: 290px;
  }
  .login-scene-foot {
    position: absolute;
    right: 25px;
    top: 40px;
    font-size: 8px;
    max-width: 140px;
    line-height: 1.8;
  }
  .login-panel {
    padding: 35px 26px 45px;
  }
  .login-form-wrap {
    max-width: 420px;
  }
  .login-form-wrap h2 {
    font-size: 32px;
  }
  .login-form-wrap > p {
    margin-bottom: 24px;
  }
  .login-note {
    margin-top: 25px;
  }
  .club-auth .club-footer {
    background: #f7f6f1;
  }
  .table-scroll th,
  .table-scroll td {
    padding: 10px 9px;
  }
  .btn {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .club-sidebar,
  .club-topbar,
  .club-footer,
  .skip-link {
    display: none !important;
  }
  .club-workspace {
    margin: 0;
  }
  .club-content {
    padding: 0;
    max-width: none;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
  .table-scroll {
    overflow: visible;
  }
  .archive-intro {
    background: white;
    color: #222;
  }
  .archive-intro p,
  .archive-total strong,
  .archive-total span {
    color: #222;
  }
}
/* Hidden tooltip boxes must not widen the document on touch screens. */
.club-content [data-tip]::before,
.club-content [data-tip]::after {
  display: none;
}
@media (hover: hover) {
  .club-content [data-tip]:hover::before,
  .club-content [data-tip]:hover::after,
  .club-content [data-tip]:focus-visible::after {
    display: block;
  }
  .club-content [data-tip]::after {
    white-space: normal;
    width: max-content;
    max-width: 240px;
  }
}
.btn-secondary {
  background: #f2f3ec;
  border-color: #dce1d3;
  color: #3e4c3e;
}
.btn-dark {
  background: #26372b;
  border-color: #26372b;
  color: #fff;
}
.btn-dark:hover {
  background: #3b5040;
}
.btn-secondary:hover {
  background: #e8ebdf;
}
@media (max-width: 600px) {
  .section-toolbar .btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .archive-intro {
    gap: 14px;
  }
}
