/* Showcase-only layout. Shares tokens.css and site.css with the chapter site. */

.sc-header { background: color-mix(in oklab, var(--bg) 94%, transparent); }
.sc-brand { font-family: var(--font-sans); font-weight: 750; letter-spacing: -0.02em; }
.sc-mark { width: 2.25rem; height: 2.25rem; color: var(--navy); flex: none; }
@media (prefers-color-scheme: dark) { .sc-mark { color: var(--accent); } }
.sc-brand__sub { font-weight: 500; color: var(--ink-3); }

.sc-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-7) var(--space-8);
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40rem 24rem at -10% 110%, color-mix(in oklab, var(--signal) 14%, transparent), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.sc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 65%);
  opacity: 0.55;
  pointer-events: none;
}
.sc-hero__grid { position: relative; display: grid; gap: var(--space-7); align-items: center; }
.sc-hero h1 { font-size: var(--step-5); max-width: 14ch; margin-bottom: var(--space-4); }
.sc-hero .lede { margin-bottom: var(--space-5); }
@media (min-width: 64em) {
  .sc-hero { padding-block: var(--space-8) var(--space-9); }
  .sc-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* Browser-frame illustration of a chapter site, drawn in CSS */
.sc-frame {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2), 0 30px 60px -30px color-mix(in oklab, var(--accent) 40%, transparent);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
}
@media (prefers-reduced-motion: reduce) { .sc-frame { transform: none; } }
.sc-frame__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.sc-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.sc-frame__bar span {
  margin-left: 10px; flex: 1;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.72rem; color: var(--ink-3);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sc-frame__page { --mock-accent: #2f6f5e; background: #fbfaf7; }
@media (prefers-color-scheme: dark) { .sc-frame__page { background: #15181b; } }
.mock-nav { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.mock-nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--mock-accent); margin-right: auto; }
.mock-nav span { width: 36px; height: 7px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 16%, transparent); }
.mock-hero {
  position: relative;
  padding: 22px 18px 64px;
  background: linear-gradient(180deg, #dbe9f4, #f7efe2);
  display: grid; gap: 8px;
}
@media (prefers-color-scheme: dark) { .mock-hero { background: linear-gradient(180deg, #1b2633, #221f1c); } }
.mock-line { height: 8px; width: 70%; border-radius: 4px; background: color-mix(in oklab, var(--ink) 18%, transparent); }
.mock-line--eyebrow { width: 22%; height: 6px; background: var(--mock-accent); opacity: 0.8; }
.mock-line--title { height: 16px; width: 78%; background: color-mix(in oklab, var(--ink) 70%, transparent); }
.mock-line--title.short { width: 50%; }
.mock-btns { display: flex; gap: 8px; margin-top: 6px; }
.mock-btns span { width: 70px; height: 20px; border-radius: 10px; background: var(--mock-accent); }
.mock-btns span + span { background: transparent; border: 1px solid color-mix(in oklab, var(--ink) 30%, transparent); }
.mock-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 50px; }
.mock-hills path:first-child { fill: color-mix(in oklab, var(--mock-accent) 35%, #e6dfcf); }
.mock-hills path:last-child { fill: color-mix(in oklab, var(--mock-accent) 65%, #e6dfcf); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px 18px; }
.mock-cards div { display: grid; gap: 6px; padding: 10px; border-radius: 8px; background: color-mix(in oklab, var(--surface) 90%, transparent); border: 1px solid color-mix(in oklab, var(--line) 80%, transparent); }
.mock-cards em { width: 18px; height: 18px; border-radius: 5px; background: color-mix(in oklab, var(--mock-accent) 25%, transparent); }
.mock-cards span { height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 18%, transparent); }
.mock-cards span.short { width: 60%; }

/* Components */
.sc-components { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 40em) { .sc-components { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .sc-components { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-component { display: flex; flex-direction: column; gap: var(--space-2); }
.sc-component__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.sc-component h3 a { color: var(--ink); text-decoration: none; }
.sc-component p { color: var(--ink-2); font-size: var(--step--1); flex: 1; }
.sc-component__link { color: var(--accent-text); font-weight: 600; }

/* Live panels */
.sc-live { background: var(--bg-tint); border-block: 1px solid var(--line); }
.sc-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.sc-panel__head { display: flex; align-items: center; gap: var(--space-2); font-weight: 650; padding: var(--space-1) var(--space-1) var(--space-2); border-bottom: 1px solid var(--line); }
.sc-panel__head svg { width: 18px; height: 18px; color: var(--accent-text); }
.sc-panel__head a { margin-left: auto; font-weight: 600; }
.sc-panel .event { border: 0; padding: var(--space-3) var(--space-1); border-radius: 0; }
.sc-panel .event + .event { border-top: 1px solid var(--line); }
.sc-panel .event-list { gap: 0; }
.sc-panel .news-card { border: 0; padding: var(--space-3) var(--space-1); border-radius: 0; }
.sc-panel .news-list { gap: 0; }
.sc-panel .news-list li + li .news-card { border-top: 1px solid var(--line); }
.sc-panel .data-region { min-height: 14rem; }

/* Modules */
.sc-modules { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 64em) { .sc-modules { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } }
.sc-modules p:not(.eyebrow):not(.lede) { color: var(--ink-2); max-width: 40rem; }
.sc-stack { display: grid; gap: var(--space-3); }
.sc-core {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: center;
  padding: var(--space-5);
  border-radius: var(--radius-l);
  background: var(--navy);
  color: #eef1f8;
}
.sc-core .icon-badge { background: var(--accent); color: #fff; }
.sc-core strong { display: block; font-size: var(--step-1); }
.sc-core span { color: #bcc3d6; font-size: var(--step--1); }
.sc-optional { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--space-2); }
.sc-optional li {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-m);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  font-size: var(--step--1);
  font-weight: 600;
}
.sc-optional svg { width: 16px; height: 16px; color: var(--accent-text); flex: none; }

/* Demo credentials */
.sc-demo { background: var(--bg-tint); border-top: 1px solid var(--line); }
/* head, description, fields, button: the description absorbs the difference
   so the fields line up across the two cards. */
.sc-cred { display: grid; gap: var(--space-3); grid-template-rows: auto 1fr auto auto; }
.sc-cred__head { display: flex; align-items: center; gap: var(--space-3); }
.sc-cred__head h3 { margin: 0; }
.sc-cred p { color: var(--ink-2); }
.sc-cred dl { margin: 0 0 var(--space-2); display: grid; gap: var(--space-2); }
.sc-cred dl > div { display: grid; gap: 2px; }
.sc-cred dt { font-size: var(--step--2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.sc-cred dd {
  margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 0.35rem 0.35rem 0.35rem 0.75rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.sc-cred code { font-family: var(--font-mono); font-size: var(--step--1); min-width: 0; flex: 1 1 0; }
.sc-cred code .nw { white-space: nowrap; }
/* Phones, and the two-column tablet layout, where each card is narrowest. */
@media (max-width: 26em), (min-width: 40em) and (max-width: 63.99em) { .sc-cred code { font-size: var(--step--2); } }
.sc-cred .btn { justify-self: start; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; flex: none;
  min-height: 36px; padding: 0 0.7rem;
  border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: var(--step--2); font-weight: 600; cursor: pointer;
}
.copy-btn:hover { color: var(--ink); }
.copy-btn svg { width: 14px; height: 14px; }
.no-js .copy-btn { display: none; }

/* Contact band */
.sc-contact { background: var(--navy); color: #eef1f8; }
.sc-contact .lede { color: #bcc3d6; }
.sc-contact__inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 64em) { .sc-contact__inner { grid-template-columns: 1fr auto; } }
.sc-btn-light { --btn-bg: #ffffff; --btn-ink: var(--navy); background: #fff; color: #0e1629; font-size: var(--step-0); overflow-wrap: anywhere; }
.sc-btn-light:hover { background: var(--signal); }
.sc-btn-light svg { width: 18px; height: 18px; }

.sc-footer { padding-block: var(--space-5); }
.sc-footer .footer-bottom { margin-top: 0; border-top: 0; padding-top: 0; }
/* Trademark mark after the first Wardstow on the showcase. */
.sc-tm { font-size: 0.55em; vertical-align: super; margin-left: 0.05em; font-weight: 400; }
