/* TalkBoard classroom visual system, adapted from the Unity environment textures. */
:root {
  --chalk: #183f36;
  --chalk-deep: #0f2e28;
  --chalk-light: #2f6759;
  --paper: #fbf7ed;
  --paper-white: #fffdf7;
  --ink: #21332f;
  --muted: #68736d;
  --wood: #a86f42;
  /* Same wood family, darkened for use as TEXT. #a86f42 is only 4.11:1 on --paper-white, under
     the 4.5:1 WCAG AA minimum; this is 6.5:1. Kept separate from --wood so the cork board
     background kept its original tone. */
  --wood-text: #7e5330;
  --gold: #d49b52;
  --red: #a84f42;
  --line: rgba(42, 60, 53, 0.16);
  --shadow: 0 18px 45px rgba(39, 45, 39, 0.16);
}

html {
  position: relative;
  min-height: 100%;
  font-size: 15px;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 88px;
  color: var(--ink);
  background-color: #e9e5da;
  background-image: linear-gradient(rgba(247, 244, 235, 0.88), rgba(241, 237, 226, 0.94)),
    url("../images/classroom/concrete.webp");
  background-size: auto, 480px 480px;
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--chalk-deep);
  letter-spacing: -0.025em;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
}

a {
  color: var(--chalk-light);
}

a:hover {
  color: var(--chalk-deep);
}

/* Navigation */
.navbar {
  min-height: 76px;
  padding: 0.65rem 0;
  border-bottom: 4px solid rgba(102, 61, 32, 0.75);
  background-color: var(--chalk-deep);
  background-image: linear-gradient(rgba(12, 49, 41, 0.91), rgba(14, 55, 46, 0.94)),
    url("../images/classroom/wood.webp");
  background-size: auto, 520px 520px;
  box-shadow: 0 5px 18px rgba(29, 42, 34, 0.22);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  margin-right: 2.25rem;
  color: #fffdf4 !important;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 42px;
  height: 34px;
  padding: 7px 6px;
  border: 2px solid #e9dfc5;
  border-radius: 3px;
  background: #12342d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 2px 2px 0 #8b5e38;
  transform: rotate(-1.5deg);
}

.brand-mark::after {
  position: absolute;
  right: 5px;
  bottom: 3px;
  left: 5px;
  height: 2px;
  background: rgba(242, 238, 219, 0.55);
  content: "";
}

.brand-mark span {
  align-self: center;
  height: 11px;
  border-radius: 50%;
  border-left: 2px solid rgba(242, 238, 219, 0.9);
  transform: rotate(20deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  color: #fffdf4;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 0.3rem;
  color: rgba(255, 253, 244, 0.66);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.navbar .nav-link {
  position: relative;
  padding: 0.55rem 0.8rem !important;
  color: rgba(255, 253, 244, 0.74) !important;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.navbar a.nav-link:hover,
.navbar a.nav-link:focus {
  color: #fffdf4 !important;
}

.navbar a.nav-link::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.22rem;
  left: 0.8rem;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 160ms ease;
}

.navbar a.nav-link:hover::after,
.navbar a.nav-link:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar .user-name {
  max-width: 15rem;
  overflow: hidden;
  color: rgba(255, 253, 244, 0.48) !important;
  text-overflow: ellipsis;
}

.nav-register {
  margin-left: 0.35rem;
  border: 1px solid rgba(255, 253, 244, 0.42);
  border-radius: 3px;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Page structure */
.site-container {
  padding-top: clamp(2rem, 2.6vw, 4.25rem);
  padding-bottom: 2rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--wood-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.narrow-wrap {
  max-width: 650px;
}

.paper-panel {
  position: relative;
  padding: clamp(2rem, 5vw, 3.75rem);
  border: 1px solid rgba(94, 77, 54, 0.18);
  border-radius: 2px;
  background-color: var(--paper-white);
  background-image: linear-gradient(135deg, #fffdf7 0%, #fbf7ed 100%);
  box-shadow: var(--shadow), inset 0 0 60px rgba(130, 97, 53, 0.035);
}

.paper-panel::before,
.auth-panel::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 116px;
  height: 25px;
  background: rgba(214, 194, 149, 0.58);
  box-shadow: 0 1px 2px rgba(63, 51, 35, 0.1);
  content: "";
  transform: translateX(-50%) rotate(-1deg);
}

.paper-panel.compact-panel {
    padding: 25px;
}

.paper-panel.config-panel {
    padding: 40px;
}

.page-intro {
  max-width: 48rem;
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Dashboard hero */
.classroom-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  box-sizing: border-box;
  max-width: 100%;
  min-height: 385px;
  margin-bottom: 2rem;
  overflow: hidden;
  border: 7px solid #795136;
  border-radius: 3px;
  background-image: linear-gradient(90deg, rgba(10, 37, 31, 0.95) 0%, rgba(12, 45, 37, 0.87) 47%, rgba(14, 39, 33, 0.24) 76%),
    url("../images/classroom/schoolyard.webp");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,0.12);
}

.classroom-hero::before {
  position: absolute;
  inset: 0;
  background: url("../images/classroom/chalkwriting.webp") center / cover no-repeat;
  content: "";
  opacity: 0.055;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  width: auto;
  max-width: 720px;
  padding: clamp(2rem, 5vw, 4.25rem);
}

.hero-copy .eyebrow {
  color: #e2bd7d;
}

.hero-copy h1 {
  color: #fffdf4;
  font-size: clamp(2.4rem, 5vw, 4.15rem);
}

.hero-copy p {
  max-width: 35rem;
  margin: 1.2rem 0 1.75rem;
  color: rgba(255, 253, 244, 0.78);
  font-size: 1.06rem;
}


/* Cards and data */
.card {
  border: 1px solid rgba(71, 80, 69, 0.14);
  border-radius: 2px;
  background: var(--paper-white);
  box-shadow: 0 9px 24px rgba(50, 57, 49, 0.09);
}

.dashboard-card {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.dashboard-card::before {
  display: block;
  height: 6px;
  background: var(--wood) url("../images/classroom/cork.webp") center / 320px 320px;
  content: "";
}

.dashboard-card .card-body {
  padding: clamp(1.5rem, 3vw, 2.15rem);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.card-heading .eyebrow {
  margin-bottom: 0.1rem;
}

.card-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
}

.card-icon {
  display: inline-grid;
  flex: 0 0 52px;
  height: 52px;
  place-items: center;
  border: 2px solid #d6c6a4;
  border-radius: 50%;
  color: #f7f0db;
  background: var(--chalk);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.key-icon {
  font-size: 1.85rem;
}

.list-group-item {
  padding: 0.9rem 0;
  border-color: var(--line);
  background: transparent;
}

.table {
  margin-bottom: 0;
  color: var(--ink);
}

.table > :not(caption) > * > * {
  padding: 1.1rem 0.8rem;
  border-bottom-color: var(--line);
}

.table thead th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.keys-table th:nth-child(1) { width: 15%; }
.keys-table th:nth-child(2) { width: 18%; }
.keys-table th:nth-child(4) { width: 6rem; }

.key-form {
  display: flex;
  gap: 0.55rem;
  min-width: 270px;
}

code {
  color: #74503f;
}

.badge {
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.bg-success { background-color: #3e725f !important; }
.bg-secondary { background-color: #7c817c !important; }

/* Forms and actions */
.form-label {
  margin-bottom: 0.38rem;
  color: #3b4b45;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.form-control {
  min-height: 47px;
  border: 1px solid #c8c4b8;
  border-radius: 2px;
  color: var(--ink);
  background: rgba(255, 255, 252, 0.9);
  box-shadow: inset 0 1px 2px rgba(39, 53, 45, 0.04);
}

.form-control:focus {
  border-color: var(--chalk-light);
  box-shadow: 0 0 0 0.2rem rgba(47, 103, 89, 0.15);
}

.pairing-code {
  max-width: 17rem;
  letter-spacing: 0.26em;
}

.btn {
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.btn-primary {
  padding: 0.68rem 1.1rem;
  border-color: var(--chalk);
  color: #fffdf4;
  background: var(--chalk);
  box-shadow: 0 4px 10px rgba(24, 63, 54, 0.15);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--chalk-deep);
  background: var(--chalk-deep);
}

.btn-outline-primary {
  border-color: var(--chalk-light);
  color: var(--chalk-light);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: var(--chalk-light);
  color: #fff;
  background: var(--chalk-light);
}

.btn-outline-danger {
  border-color: #a45a50;
  color: #944b42;
}

.btn-link {
  color: var(--chalk-light);
  text-decoration: none;
}

.alert {
  border-width: 0 0 0 4px;
  border-radius: 2px;
}

.alert-success {
  border-color: #4e806c;
  color: #285543;
  background: #e3eee7;
}

.alert-danger {
  border-color: #a85a50;
  color: #7a3e37;
  background: #f4e5e2;
}

/* Authentication pages */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(340px, 0.92fr);
  max-width: 980px;
  min-height: 570px;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(53, 64, 55, 0.15);
  border-radius: 3px;
  background: var(--paper-white);
  box-shadow: var(--shadow);
}

.auth-scene {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-right: 6px solid #80583a;
  background-image: linear-gradient(180deg, rgba(12, 36, 31, 0.08), rgba(12, 36, 31, 0.32)),
    url("../images/classroom/schoolyard.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.chalk-note {
  position: absolute;
  top: 42px;
  left: 36px;
  width: min(75%, 310px);
  padding: 1.4rem 1.6rem 1.65rem;
  border: 7px solid #7b5539;
  color: rgba(255, 253, 244, 0.72);
  background-color: var(--chalk-deep);
  background-image: linear-gradient(rgba(15, 46, 40, 0.93), rgba(15, 46, 40, 0.93)),
    url("../images/classroom/chalkwriting.webp");
  background-size: auto, cover;
  box-shadow: 0 12px 26px rgba(26, 35, 28, 0.28);
  transform: rotate(-1.5deg);
}

.chalk-note span {
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chalk-note strong {
  display: block;
  margin-top: 0.35rem;
  color: #fffdf4;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.05;
}


.auth-panel {
  position: relative;
  align-self: stretch;
  padding: clamp(3rem, 6vw, 5.25rem) clamp(2rem, 5vw, 4.25rem);
  background-color: var(--paper-white);
  background-image: linear-gradient(135deg, #fffdf7 0%, #fbf7ed 100%);
}

.auth-panel form {
  max-width: 360px;
}

/* Footer */
.footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 64px;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(40, 57, 49, 0.12);
  color: #68736d;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  background: rgba(244, 241, 232, 0.86);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive behavior */
@media (min-width: 768px) {
  html { font-size: 16px; }
}

@media (max-width: 767.98px) {
  body { padding-bottom: 112px; }

  .navbar { padding: 0.55rem 0; }
  .navbar-collapse { padding: 0.8rem 0 0.25rem; }
  .navbar .nav-link { padding-right: 0 !important; padding-left: 0 !important; }
  .navbar a.nav-link::after { right: auto; left: 0; width: 30px; }
  .nav-register { margin-left: 0; border: 0; }

  .site-container {
    max-width: 100%;
    padding-top: 1.5rem;
  }

  .site-container > main {
    min-width: 0;
    width: 100%;
  }

  .classroom-hero {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 390px;
    background-image: linear-gradient(180deg, rgba(10, 37, 31, 0.94) 0%, rgba(12, 45, 37, 0.78) 62%, rgba(14, 39, 33, 0.32) 100%),
      url("../images/classroom/schoolyard.webp");
  }

  .hero-copy {
    align-self: start;
    max-width: 100%;
    padding: 2rem 1.5rem 1rem;
  }

  .dashboard-grid {
    --bs-gutter-x: 0;
  }

  .auth-shell { grid-template-columns: 1fr; }
  .auth-scene { min-height: 260px; border-right: 0; border-bottom: 5px solid #80583a; }
  .login-auth-shell .auth-scene {
    background-position: center, calc(50% + 100px) center;
    background-size: 100% 100%, calc(100% + 200px) auto;
  }
  .chalk-note { top: 25px; left: 24px; width: 70%; }
  .auth-panel { padding: 2.75rem 1.5rem 2.25rem; }

  .paper-panel,.paper-panel.config-panel { padding: 2.25rem 1.25rem; }
  .keys-table { min-width: 760px; }

  .footer .container { flex-direction: column; gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* Expanded application surfaces */
.classroom-menu {
  min-width: 13rem;
  padding: 0.45rem;
  border: 1px solid rgba(235, 224, 194, 0.34);
  border-radius: 2px;
  background: #f9f5e9;
  box-shadow: 0 15px 35px rgba(10, 35, 29, 0.26);
}

.classroom-menu .dropdown-item {
  padding: 0.55rem 0.75rem;
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
}

.classroom-menu .dropdown-item:hover,
.classroom-menu .dropdown-item:focus {
  color: #fffdf4;
  background: var(--chalk);
}

.account-nav {
  flex-shrink: 0;
}

.auth-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.auth-help-link {
  display: inline-block;
  margin-top: 0.7rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.7rem 0 1.15rem;
  color: #8a8e87;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.btn-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  border: 1px solid #3569c8;
  border-radius: 2px;
  color: #fff;
  background: #3569c8;
  box-shadow: 0 4px 12px rgba(53, 105, 200, 0.18);
}

.btn-meta:hover,
.btn-meta:focus {
  border-color: #2855a7;
  color: #fff;
  background: #2855a7;
}

.meta-mark {
  font-family: Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 0.5;
  transform: translateY(-1px);
}

.meta-mark-large {
  display: inline-block;
  margin-bottom: 1.15rem;
  color: #3569c8;
  font-size: 4rem;
}

.auth-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.meta-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.05rem;
  border-left: 4px solid #3569c8;
  background: rgba(53, 105, 200, 0.07);
}

.meta-callout strong {
  display: block;
  color: #294d8f;
  font-size: 0.86rem;
}

.meta-callout p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.account-panel {
  min-height: 315px;
}

.meta-progress {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.workspace-wrap {
  max-width: 1180px;
}

.workspace-panel {
  overflow: visible;
}

.workspace-panel > .table,
.workspace-panel > form > .table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.workspace-panel h2,
.help-panel h2,
.help-panel h4 {
  color: var(--chalk-deep);
}

.workspace-panel textarea.font-monospace {
  border-color: #aaa99f;
  color: #dde9df;
  background: #18362f;
  line-height: 1.5;
  tab-size: 2;
}

.workspace-panel textarea.font-monospace:focus {
  color: #f2f6ed;
  background: #102d27;
}

.trial-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
}

.trial-status span {
  font-size: 0.85rem;
}

.key-actions {
  display: flex;
  gap: 0.45rem;
}

.alert-info {
  border-color: #4b7e86;
  color: #315c63;
  background: #e5eff0;
}

.alert-warning {
  border-color: #be8c45;
  color: #765322;
  background: #f7edda;
}

.bg-danger { background-color: #a6564d !important; }
.bg-primary { background-color: #35645a !important; }

.btn-outline-secondary {
  border-color: #747d77;
  color: #5f6963;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  border-color: #5f6963;
  color: #fff;
  background: #5f6963;
}

.policy-wrap,
.help-wrap {
  max-width: 960px;
}

.policy-panel,
.help-panel {
  line-height: 1.72;
}

.policy-panel h4,
.help-panel h4,
.help-panel h5 {
  margin-top: 2rem !important;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--chalk-deep);
}

.policy-panel li,
.help-panel li {
  margin-bottom: 0.48rem;
}

.help-panel pre {
  padding: 1.1rem !important;
  overflow-x: auto;
  border: 1px solid rgba(64, 78, 69, 0.25) !important;
  border-radius: 2px !important;
  color: #e2ece4;
  background: #18362f !important;
}

.help-panel pre code {
  color: inherit;
}

.help-panel .desc,
.help-panel .url {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.help-panel .url {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.help-panel > .footer-note {
  margin-top: 2.2rem;
  padding: 1.15rem;
  border: 1px solid rgba(67, 94, 80, 0.15);
  color: var(--chalk);
  background: rgba(47, 103, 89, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 0.8rem 0 0.25rem; }
  .navbar .nav-link { padding-right: 0 !important; padding-left: 0 !important; }
  .navbar a.nav-link::after { right: auto; left: 0; width: 30px; }
  .navbar .dropdown-menu { margin: 0.25rem 0 0.5rem; }
  .nav-register { margin-left: 0; border: 0; }
  .account-nav { padding-top: 0.25rem; border-top: 1px solid rgba(255,255,255,0.12); }
}

@media (max-width: 767.98px) {
  .auth-actions { align-items: flex-start; flex-direction: column; }
  .auth-actions .btn-link { padding-left: 0; }
  .trial-status { align-items: flex-start; flex-direction: column; }
  .workspace-panel { overflow: visible; }
  .workspace-panel .d-flex.gap-2 { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------------
   Analytics consent bar
   Rendered with [hidden]; analytics-consent.js clears that only when no choice
   has been stored. Contrast against --chalk-deep: body text 13.6:1, gold link
   and Allow button 6:1, all clear of AA.
   --------------------------------------------------------------------------- */

.consent-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1080;                 /* over the sticky footer, under Bootstrap modals (1055+) */
  width: min(46rem, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(212, 155, 82, 0.35);
  border-radius: 6px;
  background: var(--chalk-deep);
  color: var(--paper);
  box-shadow: var(--shadow);
}

/* [hidden] loses to display:flex on specificity, so it has to be restated. */
.consent-bar[hidden] { display: none; }

.consent-copy {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.consent-copy a {
  color: var(--gold);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.consent-bar .btn {
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-consent-allow {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--chalk-deep);
}

.btn-consent-allow:hover,
.btn-consent-allow:focus-visible {
  background: #e0ab63;
  border-color: #e0ab63;
  color: var(--chalk-deep);
}

.btn-consent-ghost {
  background: transparent;
  border: 1px solid rgba(251, 247, 237, 0.45);
  color: var(--paper);
}

.btn-consent-ghost:hover,
.btn-consent-ghost:focus-visible {
  background: rgba(251, 247, 237, 0.12);
  border-color: var(--paper);
  color: var(--paper);
}

/* Keyboard focus has to stay visible against a dark bar, where the default ring vanishes. */
.consent-bar .btn:focus-visible,
.consent-copy a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .consent-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .consent-actions { justify-content: flex-end; }
  /* 31px cleared WCAG 2.2's 24px minimum but is mean to a thumb; this lands at ~44px. */
  .consent-bar .btn { padding: 0.62rem 1.1rem; }
}
