/* The showcase's own teacher-side pages.
   1. The gated card (templates/showcase/gated.html), inside Majordomo's layout: every colour is one of Majordomo's
      tokens (--surface, --text, --accent, ... in its style.css), which it redefines under [data-bs-theme="dark"],
      so the card follows the theme the visitor chose.
   2. The not-found page (templates/showcase/notfound.html): standalone, no Majordomo stylesheet, so it carries its
      own small palette, light or dark after the visitor's system setting. */

/* -- the gated card ------------------------------------------------------------------------------- */

.showcase-gated {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 24px 0;
}
.showcase-gated-card {
  width: 100%;
  max-width: 34rem;
  padding: 36px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  color: var(--text);
  text-align: center;
}
.showcase-gated-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.5rem;
}
.showcase-gated-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.showcase-gated-message {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.showcase-gated-full {
  margin: 0 0 28px;
  padding: 14px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
}
.showcase-gated-full p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--text); }
.showcase-gated-full .showcase-gated-label {
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.showcase-gated-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.showcase-gated-actions .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* Bootstrap's outline-secondary grey is too faint on Majordomo's dark surface; its own text colour reads in both. */
.showcase-gated-actions .btn-outline-secondary { color: var(--text); border-color: var(--text-secondary); }
.showcase-gated-actions .btn-outline-secondary:hover,
.showcase-gated-actions .btn-outline-secondary:focus-visible {
  color: var(--text);
  background: var(--surface-alt);
  border-color: var(--text);
}

@media (max-width: 575.98px) {
  .showcase-gated { min-height: 0; padding: 8px 0; }
  .showcase-gated-card { padding: 28px 18px 20px; }
  .showcase-gated-actions .btn { flex: 1 1 100%; }
}

/* -- the not-found page ----------------------------------------------------------------------------- */

.showcase-nf {
  --nf-bg: #f8f9fb;
  --nf-surface: #ffffff;
  --nf-border: #e5e7eb;
  --nf-text: #1f2937;
  --nf-muted: #6b7280;
  --nf-accent: #4f46e5;
  --nf-on-accent: #ffffff;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  background: var(--nf-bg);
  color: var(--nf-text);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  .showcase-nf {
    --nf-bg: #181825;
    --nf-surface: #1e1e2e;
    --nf-border: #313244;
    --nf-text: #cdd6f4;
    --nf-muted: #a6adc8;
    --nf-accent: #a5b4fc;
    --nf-on-accent: #181825;
  }
}
.showcase-nf *, .showcase-nf *::before, .showcase-nf *::after { box-sizing: border-box; }
.showcase-nf-card {
  width: 100%;
  max-width: 36rem;
  padding: 36px 32px 32px;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .05);
  text-align: center;
}
.showcase-nf-code {
  margin: 0 0 4px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--nf-muted);
}
.showcase-nf h1 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.showcase-nf-text { margin: 0 0 28px; color: var(--nf-text); }
.showcase-nf-actions { display: flex; flex-wrap: nowrap; justify-content: center; gap: 10px; }
.showcase-nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--nf-muted);   /* the button's edge at 3:1 or more against the card, light and dark */
  border-radius: 8px;
  color: var(--nf-text);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.showcase-nf-btn:hover { border-color: var(--nf-text); }
.showcase-nf-btn:focus-visible { outline: 2px solid var(--nf-accent); outline-offset: 2px; }
.showcase-nf-primary { background: var(--nf-accent); border-color: var(--nf-accent); color: var(--nf-on-accent); }
.showcase-nf-primary:hover { border-color: var(--nf-accent); filter: brightness(1.08); }

/* Phones: the three buttons stacked, full width. */
@media (max-width: 575.98px) {
  .showcase-nf-card { padding: 28px 18px 20px; }
  .showcase-nf-actions { flex-wrap: wrap; }
  .showcase-nf-btn { flex: 1 1 100%; }
}
