/* ==========================================
   GOV.UK THEME - Full Design System Override
   Active when body has class 'theme-govuk'
   ========================================== */

/* ==========================================
   GOV.UK DEFAULT VISIBILITY
   ========================================== */
.govuk-service-header {
  display: none;
}

/* ==========================================
   GOV.UK BASE STYLES
   ========================================== */
body.theme-govuk {
  font-family: "nta", Arial, sans-serif;
  background: #f3f2f1;
  color: #0b0c0c;
  min-height: 100vh;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   SHOW/HIDE ELEMENTS
   ========================================== */
body.theme-govuk .govuk-service-header {
  display: block;
}

body.theme-govuk .top-bar,
body.theme-govuk .notice-banner,
body.theme-govuk .header,
body.theme-govuk .admin-banner {
  display: none !important;
}

/* ==========================================
   GOV.UK WIDTH CONTAINER
   ========================================== */
.govuk-width-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 641px) {
  .govuk-width-container {
    padding: 0 30px;
  }
}

/* ==========================================
   GOV.UK SERVICE HEADER
   ========================================== */
body.theme-govuk .govuk-service-header {
  background: #ffffff;
  padding: 18px 0 16px;
  border-top: 8px solid #1d70b8;
  border-bottom: 1px solid #b1b4b6;
}

.govuk-heading-l {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 10px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsc-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b0c0c;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 4px 7px;
  line-height: 1;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Shared row layout */
.service-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin-bottom: 0;
  padding-bottom: 10px;
}

.service-header-row .govuk-meta-separator {
  color: #b1b4b6;
}

.service-header-version {
  color: #505a5f;
}

/* Meta row gets a subtle line below to separate from session row */
.service-header-meta {
  border-bottom: 1px solid #b1b4b6;
}

/* Refresh button — sits in drinks row, pushed right */
.service-header-refresh {
  margin-left: auto;
  align-self: center;
}

/* Meta-row refresh button — pushed to far right of version/feedback row */
.service-header-meta-refresh {
  margin-left: auto;
  align-self: center;
}

/* Session row — dropdown & + New on one line */
.service-header-session {
  padding-top: 10px;
  padding-bottom: 12px;
  flex-wrap: nowrap;
}

.service-header-create-league,
body.theme-govuk a.service-header-create-league,
body.theme-govuk a.service-header-create-league:visited,
body.theme-govuk a.service-header-create-league:hover {
  margin-left: auto;
  text-decoration: none;
  font-size: 0.8125rem;
  color: #ffffff;
  background-color: #00703c;
  box-shadow: 0 2px 0 #002d18;
  width: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

body.theme-govuk a.service-header-create-league:hover {
  background-color: #005a30;
}

.service-header-session .govuk-select--inline {
  max-width: 260px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Text input (GOV.UK style) */
.govuk-input {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  color: #0b0c0c;
  background: #ffffff;
}

.govuk-input:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #0b0c0c;
}

/* Drinks count — hero stat (gap above, no line) */
.service-header-drinks {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "nta", Arial, sans-serif;
  margin-top: 12px;
  margin-bottom: 4px;
}

.service-header-drinks-count {
  font-size: 2rem;
  font-weight: 700;
  color: #0b0c0c;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.service-header-drinks-label {
  font-size: 0.875rem;
  color: #505a5f;
  font-weight: 400;
}

.service-header-offline {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d4351c;
  margin-left: 4px;
}

.govuk-select--inline {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  padding: 3px 24px 3px 8px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  background: #ffffff;
  color: #0b0c0c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230b0c0c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  appearance: none;
  -webkit-appearance: none;
}

.govuk-select--inline:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #0b0c0c;
  border-color: #0b0c0c;
}

.govuk-select--compact {
  font-size: 0.8125rem;
  padding: 2px 22px 2px 6px;
  border-width: 1px;
  font-weight: 400;
}

/* User profile row */
.service-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: -16px;
  border-top: 1px solid #b1b4b6;
}

.service-header-user .header-avatar-wrap {
  flex-shrink: 0;
  cursor: pointer;
}

.service-header-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.service-header-user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.service-header-user-name-row > span:first-child {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0b0c0c;
}

.service-header-user-email {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #505a5f;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-header-admin-badge {
  display: inline-block;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: #1d70b8;
  padding: 2px 6px;
  flex-shrink: 0;
}

.service-header-user .feedback-viewer-trigger {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #1d70b8;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.service-header-user .feedback-viewer-trigger:hover {
  color: #003078;
}

.service-header-user .members-trigger {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #1d70b8;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.service-header-user .members-trigger:hover {
  color: #003078;
}

.service-header-signout {
  flex-shrink: 0;
  margin-left: auto;
}

/* Sign in row (when not logged in) */
.service-header-signin {
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: -16px;
  border-top: 1px solid #b1b4b6;
}

.govuk-body-l {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  color: #505a5f;
  margin: 0 0 15px;
  line-height: 1.3;
}

.govuk-body-s {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
}

.govuk-\!-margin-bottom-0 {
  margin-bottom: 0 !important;
}

.govuk-hidden {
  display: none !important;
}


@media (max-width: 640px) {
  .govuk-heading-l {
    font-size: 1.25rem;
  }
  .service-header-session .govuk-select--inline {
    max-width: 220px;
  }
  .govuk-service-header__heading-row {
    flex-direction: column;
    gap: 10px;
  }
  .govuk-service-header__session-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .govuk-body-l {
    font-size: 1rem;
  }
}

/* ==========================================
   GOV.UK ADMIN BANNER
   ========================================== */
/* ==========================================
   GOV.UK BUTTONS
   ========================================== */
.govuk-button {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  font-weight: 400;
  padding: 8px 10px 7px;
  border: 2px solid transparent;
  border-radius: 0;
  color: #ffffff;
  background-color: #00703c;
  box-shadow: 0 2px 0 #002d18;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  -webkit-appearance: none;
}

.govuk-button:hover {
  background-color: #005a30;
}

.govuk-button:active {
  top: 2px;
  box-shadow: none;
}

.govuk-button:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background-color: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

.govuk-button--secondary {
  background-color: #f3f2f1;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #929191;
}

.govuk-button--secondary:hover {
  background-color: #dbdad9;
  color: #0b0c0c;
}

.govuk-button--secondary:focus {
  color: #0b0c0c;
}

.govuk-button--warning {
  background-color: #d4351c;
  box-shadow: 0 2px 0 #55150b;
}

.govuk-button--warning:hover {
  background-color: #aa2a16;
}

.govuk-btn-sm {
  font-size: 0.875rem;
  padding: 5px 14px 4px;
}

/* Session selector is now integrated into .govuk-service-header */

/* ==========================================
   GOV.UK CONTENT CONTAINER
   ========================================== */
body.theme-govuk .content-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 15px;
  background: #ffffff;
  min-height: 50vh;
}

@media (min-width: 641px) {
  body.theme-govuk .content-container {
    padding: 30px 30px;
  }
}

/* ==========================================
   GOV.UK SECTION TITLES
   ========================================== */
body.theme-govuk .section-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b0c0c;
  text-align: left;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #b1b4b6;
}

@media (min-width: 641px) {
  body.theme-govuk .section-title {
    font-size: 2.25rem;
  }
}

/* ==========================================
   GOV.UK DISCLAIMER TEXT
   ========================================== */
body.theme-govuk .disclaimer-text {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  color: #d4351c;
  font-weight: 700;
  text-align: left;
  background: #fef7f5;
  border-left: 5px solid #d4351c;
  padding: 15px;
  margin-bottom: 20px;
}

/* ==========================================
   GOV.UK VIEW LOGS / BACK BUTTONS
   ========================================== */
body.theme-govuk .view-logs-btn {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 8px 10px 7px;
  border: 2px solid transparent;
  border-radius: 0;
  background: #f3f2f1;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #929191;
  cursor: pointer;
  text-align: center;
  margin-bottom: 20px;
  transition: none;
}

body.theme-govuk .view-logs-btn:hover {
  background: #dbdad9;
  transform: none;
  box-shadow: 0 2px 0 #929191;
}

body.theme-govuk .view-logs-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

body.theme-govuk .back-btn {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #0b0c0c;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.1em;
  margin-bottom: 20px;
}

body.theme-govuk .back-btn:hover {
  color: #003078;
  transform: none;
}

body.theme-govuk .back-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
}

/* ==========================================
   GOV.UK LOSERBOARD (card override)
   ========================================== */
body.theme-govuk .loserboard-container {
  max-width: 100%;
}

body.theme-govuk .loserboard-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

body.theme-govuk .loserboard-controls .view-logs-btn {
  margin-bottom: 0;
  width: auto;
}

body.theme-govuk .loserboard-toggle {
  border: 1px solid #b1b4b6;
  border-radius: 0;
}

body.theme-govuk .loserboard-toggle-btn {
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8rem;
  padding: 4px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

body.theme-govuk .loserboard-toggle-btn.active {
  background: #0b0c0c;
  color: #ffffff;
}

body.theme-govuk .loserboard-toggle-btn:hover:not(.active) {
  background: #f3f2f1;
}

body.theme-govuk .loserboard-list {
  gap: 0;
}

/* When rendered as a table by JS */
body.theme-govuk .govuk-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  margin-bottom: 20px;
}

body.theme-govuk .govuk-table__head {
  border-bottom: none;
}

body.theme-govuk .govuk-table__header {
  font-weight: 700;
  padding: 12px 30px 12px 0;
  border-bottom: 1px solid #b1b4b6;
  text-align: left;
  color: #0b0c0c;
  font-size: 1rem;
}

body.theme-govuk .govuk-table__cell {
  padding: 12px 30px 12px 0;
  border-bottom: 1px solid #b1b4b6;
  color: #0b0c0c;
  vertical-align: top;
  font-size: 1rem;
}

body.theme-govuk .govuk-table__header--numeric,
body.theme-govuk .govuk-table__cell--numeric {
  text-align: right;
  padding-right: 0;
}

body.theme-govuk .govuk-\!-font-weight-bold {
  font-weight: 700;
}

/* Card fallback in GOV.UK mode */
body.theme-govuk .loserboard-item {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  border-radius: 0;
  padding: 15px 20px;
  transition: none;
}

body.theme-govuk .loserboard-item:hover {
  transform: none;
  border-color: #0b0c0c;
}

body.theme-govuk .loserboard-rank {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
  font-weight: 700;
  text-shadow: none;
}

body.theme-govuk .loserboard-rank.first { color: #0b0c0c; text-shadow: none; }
body.theme-govuk .loserboard-rank.second { color: #0b0c0c; }
body.theme-govuk .loserboard-rank.third { color: #0b0c0c; }

body.theme-govuk .loserboard-name {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
  font-weight: 700;
}

body.theme-govuk .loserboard-stats {
  color: #505a5f;
}

body.theme-govuk .stat-badge {
  background: #f3f2f1;
  color: #0b0c0c;
  border-radius: 0;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
}

/* ==========================================
   GOV.UK LOSERBOARD TABLE (gold/silver/bronze)
   ========================================== */
body.theme-govuk .govuk-rank--1 {
  font-weight: 700;
}

body.theme-govuk .govuk-rank-tag {
  display: inline-block;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 0.875rem;
}

body.theme-govuk .govuk-rank-tag--gold {
  background: #ffdd00;
  color: #0b0c0c;
}

body.theme-govuk .govuk-rank-tag--silver {
  background: #b1b4b6;
  color: #0b0c0c;
}

body.theme-govuk .govuk-rank-tag--bronze {
  background: #cd7f32;
  color: #ffffff;
}

/* ==========================================
   GOV.UK GRAPHS SECTION
   ========================================== */
body.theme-govuk .graphs-container {
  border-top: 1px solid #b1b4b6;
  margin-top: 30px;
  padding-top: 30px;
}

body.theme-govuk .chart-container {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  border-radius: 0;
  padding: 20px;
}

/* ==========================================
   GOV.UK DRINKS LIST
   ========================================== */
body.theme-govuk .drinks-list {
  gap: 0;
}

body.theme-govuk .drink-item {
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #b1b4b6;
  border-radius: 0;
  padding: 15px 0;
  animation: none;
  transition: none;
  gap: 15px;
}

body.theme-govuk .drink-item:hover {
  transform: none;
  background: #f3f2f1;
  border-color: #b1b4b6;
}

body.theme-govuk .drink-icon {
  display: none;
}

body.theme-govuk .drink-name {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #0b0c0c;
}

body.theme-govuk .drink-details {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  color: #505a5f;
}

body.theme-govuk .drink-type {
  background: #f3f2f1;
  color: #0b0c0c;
  border-radius: 0;
  font-family: "nta", Arial, sans-serif;
  font-weight: 700;
}

body.theme-govuk .edit-btn,
body.theme-govuk .delete-btn {
  font-family: "nta", Arial, sans-serif;
  background: #f3f2f1;
  border: none;
  border-radius: 0;
  color: #0b0c0c;
  font-size: 0.875rem;
  padding: 5px 10px;
  box-shadow: 0 2px 0 #929191;
}

body.theme-govuk .edit-btn:hover {
  background: #dbdad9;
  transform: none;
}

body.theme-govuk .delete-btn:hover {
  background: #d4351c;
  color: #ffffff;
  transform: none;
  border-color: transparent;
}

body.theme-govuk .delete-btn:focus,
body.theme-govuk .edit-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
}

/* ==========================================
   GOV.UK LOGS FILTER
   ========================================== */
body.theme-govuk .logs-filter {
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #b1b4b6;
  border-radius: 0;
  padding: 15px 0;
  margin-bottom: 20px;
}

body.theme-govuk .logs-filter label {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #0b0c0c;
}

body.theme-govuk .person-filter-select {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  padding: 5px 10px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  background: #ffffff;
  color: #0b0c0c;
}

body.theme-govuk .person-filter-select:hover {
  border-color: #0b0c0c;
  background: #ffffff;
}

body.theme-govuk .person-filter-select:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #0b0c0c;
}

/* ==========================================
   GOV.UK LOADING / EMPTY STATE
   ========================================== */
body.theme-govuk .loading {
  font-family: "nta", Arial, sans-serif;
  color: #505a5f;
  font-style: normal;
}

body.theme-govuk .empty-state {
  font-family: "nta", Arial, sans-serif;
  color: #505a5f;
}

/* ==========================================
   GOV.UK ADD BUTTON (floating)
   ========================================== */
body.theme-govuk .add-btn {
  border-radius: 0;
  background: #00703c;
  box-shadow: 0 2px 0 #002d18;
  font-family: "nta", Arial, sans-serif;
  height: auto;
  padding: 10px 16px 8px 12px;
  transition: none;
}

body.theme-govuk .add-btn:hover {
  background: #005a30;
  transform: none;
  box-shadow: 0 2px 0 #002d18;
}

body.theme-govuk .add-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

body.theme-govuk .add-btn:active {
  transform: none;
  box-shadow: none;
  position: fixed;
  top: auto;
}

body.theme-govuk .add-btn-plus {
  font-size: 1.3rem;
  font-weight: 700;
}

body.theme-govuk .add-btn-label {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

/* ==========================================
   GOV.UK MODAL
   ========================================== */
body.theme-govuk .modal-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
}

body.theme-govuk .modal {
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.theme-govuk .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #b1b4b6;
}

body.theme-govuk .modal-header h2 {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b0c0c;
}

body.theme-govuk .modal-close {
  color: #0b0c0c;
  transition: none;
}

body.theme-govuk .modal-close:hover {
  background: #f3f2f1;
  transform: none;
}

body.theme-govuk .modal-close:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
}

body.theme-govuk .modal-body {
  padding: 24px;
}

/* ==========================================
   GOV.UK FORMS
   ========================================== */
body.theme-govuk label {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #0b0c0c;
  margin-bottom: 5px;
}

body.theme-govuk select,
body.theme-govuk input[type="date"],
body.theme-govuk input[type="time"] {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  padding: 5px 8px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  background: #ffffff;
  color: #0b0c0c;
  width: 100%;
  max-width: 100%;
  height: 40px;
  box-sizing: border-box;
}

body.theme-govuk select:focus,
body.theme-govuk input[type="date"]:focus,
body.theme-govuk input[type="time"]:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #0b0c0c;
  border-color: #0b0c0c;
}

body.theme-govuk select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230b0c0c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 30px;
}

body.theme-govuk input[type="date"]::-webkit-calendar-picker-indicator,
body.theme-govuk input[type="time"]::-webkit-calendar-picker-indicator {
  filter: none;
}

body.theme-govuk .submit-btn {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  font-weight: 400;
  padding: 8px 10px 7px;
  border: none;
  border-radius: 0;
  background: #00703c;
  color: #ffffff;
  box-shadow: 0 2px 0 #002d18;
  cursor: pointer;
  transition: none;
  margin-top: 15px;
}

body.theme-govuk .submit-btn:hover {
  background: #005a30;
  transform: none;
  box-shadow: 0 2px 0 #002d18;
}

body.theme-govuk .submit-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

body.theme-govuk .submit-btn:active {
  box-shadow: none;
  transform: none;
}

body.theme-govuk .form-group {
  margin-bottom: 20px;
}

/* Multi-add / Round mode */
body.theme-govuk .multi-add-toggle {
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
}

body.theme-govuk .multi-add-toggle input[type="checkbox"] {
  accent-color: #1d70b8;
}

body.theme-govuk .multi-add-people {
  border: 2px solid #b1b4b6;
  border-radius: 0;
  background: #ffffff;
}

body.theme-govuk .multi-add-select-all,
body.theme-govuk .multi-add-select-none {
  border: 1px solid #b1b4b6;
  color: #1d70b8;
  font-family: "nta", Arial, sans-serif;
  border-radius: 0;
}

body.theme-govuk .multi-add-select-all:hover,
body.theme-govuk .multi-add-select-none:hover {
  background: #1d70b8;
  color: #ffffff;
}

body.theme-govuk .multi-add-person {
  border-radius: 0;
}

body.theme-govuk .multi-add-person:hover {
  background: rgba(29, 112, 184, 0.1);
}

body.theme-govuk .multi-add-person input[type="checkbox"] {
  accent-color: #1d70b8;
}

body.theme-govuk .multi-add-person label,
body.theme-govuk .multi-add-person span {
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .multi-add-count {
  color: #505a5f;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   GOV.UK PROVIDER BUTTON (Login)
   ========================================== */
body.theme-govuk .provider-btn {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  background: #00703c;
  color: #ffffff;
  border: 2px solid transparent;
  border-radius: 0;
  box-shadow: 0 2px 0 #002d18;
  padding: 8px 20px;
}

body.theme-govuk .provider-btn:hover {
  background: #005a30;
  transform: none;
  box-shadow: 0 2px 0 #002d18;
  border-color: transparent;
}

body.theme-govuk .provider-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
}

body.theme-govuk .provider-icon {
  display: none;
}

/* ==========================================
   GOV.UK FOOTER
   ========================================== */
.govuk-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ==========================================
   GOV.UK VIEW ANIMATIONS (none)
   ========================================== */
body.theme-govuk .view.active {
  animation: none;
}

/* ==========================================
   GOV.UK FOCUS STATES (global)
   ========================================== */
body.theme-govuk a:focus,
body.theme-govuk button:focus,
body.theme-govuk select:focus,
body.theme-govuk input:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
}

/* ==========================================
   GOV.UK LINKS
   ========================================== */
body.theme-govuk a {
  color: #1d70b8;
  text-decoration: underline;
}

body.theme-govuk a:hover {
  color: #003078;
}

body.theme-govuk a:visited {
  color: #4c2c92;
}

body.theme-govuk a:focus {
  color: #0b0c0c;
  background: #ffdd00;
  text-decoration: none;
}

/* ==========================================
   GOV.UK NOTICE BANNER OVERRIDE
   ========================================== */
body.theme-govuk .notice-banner {
  display: none !important;
}

/* ==========================================
   GOV.UK SUMMARY LIST (Forecasts)
   ========================================== */
.govuk-summary-list {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 20px;
}

.govuk-summary-list__row {
  display: flex;
  border-bottom: 1px solid #b1b4b6;
  padding: 10px 0;
}

.govuk-summary-list__key {
  font-weight: 700;
  width: 50%;
  padding-right: 20px;
  color: #0b0c0c;
}

.govuk-summary-list__value {
  width: 50%;
  color: #0b0c0c;
}

.govuk-body {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.1875rem;
  color: #0b0c0c;
  margin: 0 0 15px;
}

/* ==========================================
   GOV.UK FORECASTS SECTION
   ========================================== */
body.theme-govuk .forecasts-container {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #b1b4b6;
}

/* ==========================================
   GOV.UK COLLAPSIBLE SECTIONS
   ========================================== */
body.theme-govuk .section-toggle::after {
  color: #0b0c0c;
}

body.theme-govuk .photo-top {
  border-top: none;
}

body.theme-govuk .photo-top .section-title {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

body.theme-govuk .photo-grid {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #b1b4b6;
}

/* ==========================================
   GOV.UK MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
  body.theme-govuk .content-container {
    padding: 10px 10px;
  }

  body.theme-govuk .chart-container {
    height: 380px;
  }

  body.theme-govuk .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  body.theme-govuk .govuk-table {
    font-size: 1rem;
  }

  body.theme-govuk .govuk-table__header,
  body.theme-govuk .govuk-table__cell {
    padding: 10px 16px 10px 0;
    font-size: 0.875rem;
  }

  body.theme-govuk .drink-name {
    font-size: 1rem;
  }

  body.theme-govuk .drink-details {
    font-size: 0.875rem;
  }

  body.theme-govuk .modal {
    width: 95%;
  }

  .govuk-summary-list__row {
    flex-direction: column;
    gap: 5px;
  }

  .govuk-summary-list__key,
  .govuk-summary-list__value {
    width: 100%;
    padding-right: 0;
  }

  .govuk-summary-list__key {
    font-size: 0.875rem;
  }

  .govuk-summary-list__value {
    font-size: 0.875rem;
  }
}

/* ==========================================
   GOV.UK PHOTO UPLOAD AREA
   ========================================== */
body.theme-govuk .photo-upload-area {
  border: 2px dashed #b1b4b6;
  border-radius: 0;
  background: #f3f2f1;
}

body.theme-govuk .photo-upload-area:hover {
  border-color: #0b0c0c;
  background: #e8e6e3;
}

body.theme-govuk .photo-upload-icon {
  background: #0b0c0c;
  color: #ffffff;
  border-radius: 0;
}

body.theme-govuk .photo-upload-text {
  font-family: "nta", Arial, sans-serif;
  color: #505a5f;
}

body.theme-govuk .photo-preview-container img {
  border-radius: 0;
}

body.theme-govuk .photo-remove-btn {
  border-radius: 0;
  border: 2px solid #0b0c0c;
}

/* ==========================================
   GOV.UK DRINK PHOTO THUMBNAIL
   ========================================== */
body.theme-govuk .drink-photo-thumb {
  border-radius: 0;
  border: 2px solid #b1b4b6;
}

body.theme-govuk .drink-photo-thumb:hover {
  border-color: #0b0c0c;
}

/* ==========================================
   GOV.UK LIKE & DISLIKE BUTTONS
   ========================================== */
body.theme-govuk .like-btn,
body.theme-govuk .dislike-btn {
  border: 1px solid #b1b4b6;
  border-radius: 0;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .like-btn:hover:not(:disabled),
body.theme-govuk .dislike-btn:hover:not(:disabled) {
  border-color: #0b0c0c;
  background: #f3f2f1;
}

body.theme-govuk .like-btn.liked {
  color: #d4351c;
  border-color: #d4351c;
}

body.theme-govuk .like-btn.liked:hover:not(:disabled) {
  background: #fef7f5;
}

body.theme-govuk .dislike-btn.disliked {
  color: #1d70b8;
  border-color: #1d70b8;
}

body.theme-govuk .dislike-btn.disliked:hover:not(:disabled) {
  background: #f0f6fb;
}

/* ==========================================
   GOV.UK LATEST PHOTO
   ========================================== */
body.theme-govuk .latest-photo-container {
  border-top: none;
  max-width: 100%;
  padding-top: 0;
  margin-bottom: 0;
}

body.theme-govuk .latest-photo-card {
  border: 1px solid #b1b4b6;
  border-radius: 0;
  background: #ffffff;
}

body.theme-govuk .latest-photo-card:hover {
  border-color: #0b0c0c;
  transform: none;
  box-shadow: none;
}

body.theme-govuk .latest-photo-img {
  border-radius: 0;
}

body.theme-govuk .latest-photo-name {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
  font-weight: 700;
}

body.theme-govuk .latest-photo-detail {
  font-family: "nta", Arial, sans-serif;
  color: #505a5f;
}

/* ==========================================
   GOV.UK PHOTO LIGHTBOX
   ========================================== */
body.theme-govuk .photo-lightbox-close {
  border-radius: 0;
}

body.theme-govuk .photo-lightbox img {
  border-radius: 0;
}

/* ==========================================
   GOV.UK CHART TOGGLE
   ========================================== */
body.theme-govuk .chart-toggle {
  border: 1px solid #b1b4b6;
  border-radius: 0;
}

body.theme-govuk .chart-toggle-btn {
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .chart-toggle-btn.active {
  background: #0b0c0c;
  color: #ffffff;
}

body.theme-govuk .chart-toggle-btn:hover:not(.active) {
  background: #f3f2f1;
}

/* ==========================================
   GOV.UK INSTAGRAM PHOTOS GALLERY
   ========================================== */
/* The Instagram gallery intentionally breaks from GOV.UK styling
   to provide an Instagram-like photo browsing experience */
body.theme-govuk .ig-container {
  max-width: 935px;
}

body.theme-govuk .ig-title {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
}

body.theme-govuk .ig-filter-select {
  border: 2px solid #0b0c0c;
  border-radius: 0;
  background: #ffffff;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230b0c0c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

body.theme-govuk .ig-grid {
  gap: 3px;
  border: 1px solid #b1b4b6;
}

body.theme-govuk .ig-post-card {
  border-radius: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.theme-govuk .ig-feed-header {
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .ig-feed-back {
  border-radius: 0;
}

body.theme-govuk .ig-drink-number {
  font-family: "nta", Arial, sans-serif;
  color: #505a5f;
}

/* Profile avatar in header */
body.theme-govuk .header-avatar-wrap .ig-avatar {
  border-color: #1d70b8;
}


/* ==========================================
   GOV.UK FEEDBACK PANEL
   ========================================== */
body.theme-govuk .feedback-trigger {
  color: #1d70b8;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .feedback-trigger:hover {
  color: #003078;
}

body.theme-govuk .feedback-panel {
  background: #f3f2f1;
  border-bottom: 1px solid #b1b4b6;
}

body.theme-govuk .feedback-label {
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .feedback-textarea {
  background: #ffffff;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .feedback-textarea:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  border-color: #0b0c0c;
}

body.theme-govuk .feedback-send {
  background: #00703c;
  color: #ffffff;
  border-radius: 0;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .feedback-send:hover {
  background: #005a30;
}

body.theme-govuk .feedback-cancel {
  border: 1px solid #b1b4b6;
  border-radius: 0;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .feedback-cancel:hover {
  border-color: #0b0c0c;
}

body.theme-govuk .feedback-response {
  background: #f3f2f1;
  border-left: 4px solid #1d70b8;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

/* Profile photo picker */
body.theme-govuk .profile-picker-card {
  border-radius: 0;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .profile-picker-title {
  color: #0b0c0c;
}

body.theme-govuk .profile-picker-empty {
  color: #505a5f;
}

/* Feedback viewer (admin) */
body.theme-govuk .feedback-viewer-trigger {
  border-color: #ffffff;
  color: #ffffff;
  border-radius: 0;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .feedback-viewer-trigger:hover {
  background: #ffffff;
  color: #1d70b8;
}

body.theme-govuk .feedback-viewer-item {
  border-bottom-color: #b1b4b6;
}

body.theme-govuk .feedback-viewer-meta {
  color: #505a5f;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .feedback-viewer-meta strong {
  color: #0b0c0c;
}

body.theme-govuk .feedback-viewer-session {
  background: #f3f2f1;
  color: #0b0c0c;
}

body.theme-govuk .feedback-viewer-text {
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
}

body.theme-govuk .feedback-viewer-empty {
  color: #505a5f;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   GOV.UK LOSERBOARD % INLINE
   ========================================== */
body.theme-govuk .govuk-pct-inline {
  color: #505a5f;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   GOV.UK STORIES BAR
   ========================================== */
body.theme-govuk .ig-stories-bar {
  border-bottom-color: #b1b4b6;
}

body.theme-govuk .ig-story-circle-name {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
}

/* ==========================================
   GOV.UK PROFILE VIEW
   (Mostly overridden by ig-fullscreen mode,
   but these handle edge cases)
   ========================================== */
body.theme-govuk .ig-profile-username {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
}

body.theme-govuk .ig-profile-display-name {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
}

body.theme-govuk .ig-profile-bio {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
}

body.theme-govuk .ig-profile-stat-num {
  font-family: "nta", Arial, sans-serif;
  color: #0b0c0c;
}

body.theme-govuk .ig-profile-stat-label {
  font-family: "nta", Arial, sans-serif;
  color: #505a5f;
}

body.theme-govuk .ig-profile-edit-bio-btn {
  font-family: "nta", Arial, sans-serif;
  border-radius: 0;
  border-color: #b1b4b6;
}

body.theme-govuk .ig-profile-tabs {
  border-top-color: #b1b4b6;
}

body.theme-govuk .ig-profile-tab.active {
  border-top-color: #0b0c0c;
  color: #0b0c0c;
}

body.theme-govuk .bio-char-count {
  color: #505a5f;
  font-family: "nta", Arial, sans-serif;
}

/* ==========================================
   GOV.UK INSTAGRAM FULLSCREEN MODE
   The ig-fullscreen class takes priority —
   override GOV.UK to show Instagram styling.
   ========================================== */
body.theme-govuk.ig-fullscreen {
  background: #fafafa;
}

body.theme-govuk.ig-fullscreen .content-container {
  background: #fafafa;
  padding: 0;
}

body.theme-govuk.ig-fullscreen .back-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
  text-decoration: none;
  padding: 12px 16px;
}

body.theme-govuk.ig-fullscreen .back-btn:hover {
  color: #3897f0;
}

body.theme-govuk.ig-fullscreen .back-btn:focus {
  outline: none;
  background: transparent;
}

body.theme-govuk.ig-fullscreen .section-title,
body.theme-govuk.ig-fullscreen .ig-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
  border-bottom: none;
  padding-bottom: 0;
  text-align: center;
}

body.theme-govuk.ig-fullscreen .ig-filter-select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  background: #fff;
  color: #262626;
}

body.theme-govuk.ig-fullscreen .ig-filter-select:focus {
  outline: none;
  border-color: #3897f0;
  box-shadow: none;
}

body.theme-govuk.ig-fullscreen .ig-grid {
  border: none;
}

body.theme-govuk.ig-fullscreen .ig-stories-bar {
  border-bottom-color: #dbdbdb;
}

body.theme-govuk.ig-fullscreen .ig-story-circle-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
}

body.theme-govuk.ig-fullscreen .ig-profile-username,
body.theme-govuk.ig-fullscreen .ig-profile-display-name,
body.theme-govuk.ig-fullscreen .ig-profile-bio,
body.theme-govuk.ig-fullscreen .ig-profile-stat-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
}

body.theme-govuk.ig-fullscreen .ig-profile-stat-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #8e8e8e;
}

body.theme-govuk.ig-fullscreen .ig-profile-edit-bio-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border-radius: 8px;
  border-color: #dbdbdb;
}

body.theme-govuk.ig-fullscreen .ig-profile-tabs {
  border-top-color: #dbdbdb;
}

body.theme-govuk.ig-fullscreen .ig-profile-tab.active {
  border-top-color: #262626;
  color: #262626;
}

body.theme-govuk.ig-fullscreen .ig-empty {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #8e8e8e;
}

body.theme-govuk.ig-fullscreen .loading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #8e8e8e;
}

/* Daily Wrapped highlight circles in Instagram mode */
body.theme-govuk.ig-fullscreen .wrapped-highlight-ring {
  background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
}

body.theme-govuk.ig-fullscreen .wrapped-highlight-icon {
  background: #191414;
  border-color: #fafafa;
}

body.theme-govuk.ig-fullscreen .wrapped-highlight-day {
  color: #1DB954;
}

body.theme-govuk.ig-fullscreen .wrapped-highlight-month {
  color: #b3b3b3;
}

/* Wrapped viewer uses its own theming (Spotify dark) regardless of GOV.UK */
body.theme-govuk .wrapped-viewer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Celebration overlay uses its own theming regardless of GOV.UK */
body.theme-govuk .celebration-overlay {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================
   REFLECTIONS BANNER (hero card at top of main view)
   ========================================== */
.reflections-banner {
  background: #f3f2f1;
  border-left: 5px solid #1d70b8;
  padding: 20px;
  margin-bottom: 20px;
}

.reflections-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reflections-banner-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 4px;
}

.reflections-banner-desc {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin: 0;
}

.reflections-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 8px 16px 7px;
  border: 2px solid transparent;
  border-radius: 0;
  background: #00703c;
  color: #ffffff;
  box-shadow: 0 2px 0 #002d18;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.reflections-banner-btn:hover {
  background: #005a30;
}

.reflections-banner-btn:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  background: #ffdd00;
  color: #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
}

@media (max-width: 480px) {
  .reflections-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .reflections-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   REFLECTIONS DASHBOARD (GOV.UK light theme)
   ========================================== */

/* Full-screen overlay */
.reflections-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #f3f2f1;
  color: #0b0c0c;
  font-family: "nta", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  flex-direction: column;
  overflow: hidden;
}

.reflections-overlay.active {
  display: flex;
}

/* Top bar — GOV.UK dark header */
.reflections-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  background: #0b0c0c;
  border-bottom: 3px solid #1d70b8;
  flex-shrink: 0;
}

.reflections-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reflections-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.reflections-clock {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.reflections-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reflections-progress-wrap {
  width: 200px;
  height: 4px;
  background: #505a5f;
  border-radius: 2px;
  overflow: hidden;
}

.reflections-progress-bar {
  width: 0%;
  height: 100%;
  background: #1d70b8;
  border-radius: 2px;
  transition: width 0.05s linear;
}

.reflections-close {
  background: none;
  border: none;
  color: #b1b4b6;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.reflections-close:hover {
  color: #fff;
}

.reflections-close:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
}

/* Main grid — responsive, desktop = 2-col with KPIs spanning full width */
.reflections-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* Bottom row wrapper — on desktop, span full width with 2-col grid */
.reflections-bottom-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
  min-height: 0;
}

/* KPI cards span full width on desktop */
.reflections-kpi-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex-shrink: 0;
}

.reflections-kpi {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  border-left: 4px solid #1d70b8;
  padding: 10px 10px;
  text-align: center;
}

.reflections-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0b0c0c;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.reflections-kpi-label {
  font-size: 0.75rem;
  color: #505a5f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Card styling — GOV.UK white cards with border */
.reflections-chart-card,
.reflections-leaderboard-card,
.reflections-photo-card {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.reflections-card-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #505a5f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px 4px;
  flex-shrink: 0;
  border-bottom: 1px solid #b1b4b6;
}

.reflections-chart-card {
  grid-column: 1 / -1;
  height: 420px;
  flex: none;
}

.reflections-chart-wrap {
  flex: 1;
  padding: 8px 12px 12px;
  min-height: 0;
  position: relative;
}

.reflections-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Leaderboard */
.reflections-leaderboard-card {
  min-height: 420px;
  max-height: 500px;
}

.reflections-leaderboard {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.refl-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 4px;
  transition: background 0.3s;
  border-bottom: 1px solid #f3f2f1;
}

.refl-lb-row.refl-rank-gold {
  background: #fff8e5;
  border-left: 3px solid #ffdd00;
}

.refl-lb-row.refl-rank-silver {
  background: #f3f2f1;
  border-left: 3px solid #b1b4b6;
}

.refl-lb-row.refl-rank-bronze {
  background: #fdf4ec;
  border-left: 3px solid #cd7f32;
}

.refl-lb-rank {
  font-size: 1rem;
  font-weight: 700;
  color: #0b0c0c;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.refl-rank-gold .refl-lb-rank { color: #0b0c0c; }
.refl-rank-silver .refl-lb-rank { color: #505a5f; }
.refl-rank-bronze .refl-lb-rank { color: #6f4e20; }

.refl-lb-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0b0c0c;
  flex: 1;
}

.refl-lb-stat {
  font-size: 0.8125rem;
  color: #505a5f;
  flex-shrink: 0;
}

.refl-lb-units {
  font-size: 0.8125rem;
  color: #1d70b8;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 50px;
  text-align: right;
}

/* Photo card */
.reflections-photo-card {
  min-height: 420px;
  max-height: 500px;
}

.reflections-photo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.reflections-photo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.reflections-photo-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(11, 12, 12, 0.8);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}

.reflections-no-photo {
  color: #505a5f;
  font-size: 0.875rem;
  font-style: italic;
}

/* ==========================================
   REFLECTIONS — LANDSCAPE PHONE (480-900px)
   2 columns, scrollable
   ========================================== */
@media (max-width: 900px) and (min-width: 481px) {
  .reflections-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    overflow: auto;
  }

  .reflections-kpi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .reflections-chart-card {
    height: 360px;
    flex: none;
  }

  .reflections-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .reflections-leaderboard-card {
    min-height: 380px;
    max-height: 460px;
  }

  .reflections-photo-card {
    min-height: 380px;
    max-height: 460px;
  }

  .reflections-progress-wrap {
    width: 120px;
  }
}

/* ==========================================
   REFLECTIONS — PORTRAIT PHONE (<=480px)
   Single column, stacked scroll
   ========================================== */
@media (max-width: 480px) {
  .reflections-topbar {
    padding: 0 10px;
    height: 36px;
  }

  .reflections-topbar-title {
    display: none;
  }

  .reflections-clock {
    font-size: 0.9375rem;
  }

  .reflections-progress-wrap {
    width: 60px;
  }

  .reflections-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .reflections-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .reflections-kpi {
    padding: 6px 6px;
  }

  .reflections-kpi-value {
    font-size: 1.25rem;
  }

  .reflections-kpi-label {
    font-size: 0.625rem;
    margin-top: 2px;
  }

  .reflections-chart-card {
    height: 300px;
    min-height: 0;
    flex: none;
  }

  /* Leaderboard + photo side by side */
  .reflections-leaderboard-card,
  .reflections-photo-card {
    min-height: 340px;
    max-height: 400px;
  }

  .reflections-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  /* Compact leaderboard: rank + name only */
  .reflections-leaderboard-card .reflections-card-header {
    padding: 8px 10px 6px;
    font-size: 0.75rem;
  }

  .refl-lb-row {
    padding: 4px 6px;
    gap: 6px;
  }

  .refl-lb-stat,
  .refl-lb-units {
    display: none;
  }

  .refl-lb-rank {
    font-size: 0.8125rem;
    width: 18px;
  }

  .refl-lb-name {
    font-size: 0.8125rem;
  }

  .reflections-photo-card .reflections-card-header {
    padding: 8px 10px 6px;
    font-size: 0.75rem;
  }

  .reflections-photo-wrap {
    min-height: 100px;
  }

  .reflections-photo-caption {
    font-size: 0.6875rem;
    padding: 4px 8px;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }
}

/* ==========================================
   LEAGUE MEMBERS ADMIN VIEW
   ========================================== */
.members-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px;
}

@media (min-width: 641px) {
  .members-container {
    padding: 15px 30px;
  }
}

.members-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 12px 0 4px;
}

.members-subtitle {
  margin-bottom: 20px;
}

.members-section-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 8px;
}

.members-invite-section {
  background: #f3f2f1;
  border: 1px solid #b1b4b6;
  padding: 16px;
  margin-bottom: 20px;
}

.members-invite-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.members-invite-row .govuk-input {
  flex: 1;
  font-size: 0.8125rem;
}

.members-link-copied {
  color: #00703c;
  font-weight: 700;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.members-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #b1b4b6;
  padding: 12px 16px;
  gap: 12px;
}

.members-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.members-row-name {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0b0c0c;
}

.members-row-email {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #505a5f;
}

.members-row-nickname {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #505a5f;
  font-style: italic;
}

.members-row-unclaimed {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #d4351c;
}

.members-row-actions {
  flex-shrink: 0;
}

.members-row-status {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
}

.members-row-status--claimed {
  color: #00703c;
  background: #e6f3ec;
}

.members-copy-link {
  white-space: nowrap;
}

/* Settings trigger (inline link button next to Members) */
.service-header-user .settings-trigger {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #1d70b8;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.service-header-user .settings-trigger:hover {
  color: #003078;
}

/* ==========================================
   ADMIN SETTINGS VIEW
   ========================================== */
.settings-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px;
}

@media (min-width: 641px) {
  .settings-container {
    padding: 15px 30px;
  }
}

.settings-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 12px 0 4px;
}

.settings-subtitle {
  margin-bottom: 20px;
}

.settings-section {
  border-bottom: 1px solid #b1b4b6;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.settings-section:last-of-type {
  border-bottom: none;
}

.settings-section-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 8px;
}

.settings-label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Inline row: label + input side by side */
.settings-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Compact input override for settings */
.settings-container .govuk-input--compact {
  width: auto;
  flex: 1;
  min-width: 0;
}

.settings-container .govuk-input--narrow {
  width: 80px;
  flex: none;
}

/* Drink units grid */
.settings-units-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 8px;
}

.settings-unit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-unit-item label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
  min-width: 50px;
}

.settings-unit-item input {
  width: 70px;
  flex: none;
  box-sizing: border-box;
}

.settings-unit-remove {
  background: none;
  border: none;
  color: #d4351c;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.settings-unit-remove:hover {
  color: #942514;
}

/* Add row (drink type / person) */
.settings-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.settings-add-row input[type="text"] {
  width: 120px;
  flex: none;
}

.settings-add-row input[type="number"] {
  width: 70px;
  flex: none;
}

/* People list */
.settings-people-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.settings-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f2f1;
  border: 1px solid #b1b4b6;
  padding: 6px 12px;
}

.settings-person-name {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
}

.settings-person-remove {
  background: none;
  border: none;
  color: #d4351c;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.settings-person-remove:hover {
  color: #942514;
}

/* Archive toggle */
.settings-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.settings-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Save actions */
.settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.settings-save-status {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #00703c;
}

@media (max-width: 480px) {
  .settings-units-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LANDING PAGE
   ========================================== */

/* Hero */
.landing-page {
  font-family: "nta", Arial, sans-serif;
}

.landing-hero {
  background: linear-gradient(135deg, #0b0c0c 0%, #1d1d1d 100%);
  color: #ffffff;
  padding: 60px 20px 50px;
  text-align: center;
}

.landing-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.landing-hero-badge {
  display: inline-block;
  font-family: "nta", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: #ffffff;
  color: #0b0c0c;
  padding: 8px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.landing-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.1;
}

.landing-hero-subtitle {
  font-size: 1.125rem;
  color: #b1b4b6;
  margin: 0 0 32px;
  line-height: 1.5;
}

.landing-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-cta-btn {
  min-width: 160px;
  text-align: center;
  text-decoration: none;
}

/* How it works — steps */
.landing-features {
  padding: 40px 0 60px;
}

.landing-section-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b0c0c;
  text-align: center;
  margin: 0 0 28px;
}

.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.landing-step-card {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  padding: 24px 20px;
  text-align: center;
}

.landing-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d70b8;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.landing-step-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 8px;
}

.landing-step-desc {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin: 0;
  line-height: 1.5;
}

/* Feature cards */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.landing-feature-card {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  padding: 20px;
  text-align: center;
  transition: border-color 0.15s;
}

.landing-feature-card:hover {
  border-color: #0b0c0c;
}

.landing-feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1;
}

.landing-feature-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 6px;
}

.landing-feature-desc {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  color: #505a5f;
  margin: 0;
  line-height: 1.5;
}

/* Pricing */
.landing-pricing {
  text-align: center;
  margin-bottom: 40px;
}

.landing-pricing-card {
  display: inline-block;
  background: #ffffff;
  border: 2px solid #0b0c0c;
  padding: 32px 40px;
  max-width: 420px;
}

.landing-pricing-amount {
  font-family: "nta", Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #0b0c0c;
  line-height: 1;
}

.landing-pricing-unit {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  color: #505a5f;
  margin-bottom: 12px;
}

.landing-pricing-desc {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Footer CTA */
.landing-footer {
  text-align: center;
  padding: 24px 0 0;
  border-top: 1px solid #b1b4b6;
}

.landing-footer p {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  color: #505a5f;
}

.landing-signin-link {
  background: none;
  border: none;
  color: #1d70b8;
  text-decoration: underline;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0;
}

.landing-signin-link:hover {
  color: #003078;
}

/* Landing page auth states */
.landing-auth-state {
  margin-top: 8px;
}

.landing-hero-hint {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #b1b4b6;
  margin-top: 16px;
}

.landing-noleagues-msg {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  color: #ffffff;
  margin: 0 0 8px;
}

.landing-noleagues-msg strong {
  color: #ffffff;
}

.landing-noleagues-detail {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #b1b4b6;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Access denied banner */
.access-denied-banner {
  background: #ffffff;
  border: 2px solid #d4351c;
  padding: 24px;
  margin: 24px auto;
  max-width: 600px;
  text-align: center;
}

.access-denied-banner h2 {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #d4351c;
  margin: 0 0 8px;
}

.access-denied-banner p {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin: 0 0 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .landing-hero {
    padding: 40px 16px 36px;
  }
  .landing-hero-title {
    font-size: 2rem;
  }
  .landing-steps-grid,
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
  .landing-pricing-card {
    padding: 24px 20px;
  }
  .landing-hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
