/* The early-access banner and its list form (templates/_early_access.html, _early_access_form.html).
   Claude Design: "Public Guides Design" > EarlyAccess.dc.html. Site tokens only, so day and night follow app.css. */
.ea-bar { background: var(--soft); border-bottom: 1px solid var(--line); color: var(--ink); }
.ea-row { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.ea-pill { flex: none; background: var(--accent); color: var(--accent-ink); font: 800 12px/1 var(--font);
  letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 6px 11px; }
.ea-copy { flex: 1 1 420px; min-width: 0; }
.ea-head { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.35; }
.ea-sub { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.ea-terms { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 600; }
.ea-nw { white-space: nowrap; }
.ea-btn { flex: none; }
.ea-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .ea-row { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; padding-bottom: 16px; }
  .ea-pill { align-self: flex-start; font-size: 11px; padding: 5px 10px; }
  .ea-copy { flex: none; }
  .ea-btn { width: 100%; }
}

/* The bar's two states (static/early-access.js). Full: in the page, at the very top, above the nav. Compact: a thin
   line fixed at the top once scrolled past; the nav sticks just below it (app.css .topbar top: var(--ea-stick)). */
.ea-slot { position: relative; z-index: 30; }
.ea-top { position: relative; z-index: 30; }
.ea-top.is-compact { position: fixed; top: 0; left: 0; right: 0; }
.ea-top.is-compact .ea-bar { display: none; }
.ea-top.is-compact.is-open .ea-bar { display: block; position: absolute; top: 100%; left: 0; right: 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
.ea-mini { background: var(--soft); box-shadow: 0 1px 0 var(--line); }
.ea-mini[hidden] { display: none; }
.ea-mini-row { height: 40px; box-sizing: border-box; display: flex; align-items: center; }
.ea-mini-btn { display: inline-flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; height: 40px;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: 700 14px/1.2 var(--font);
  text-align: left; cursor: pointer; }
.ea-mini-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.ea-mini-btn .ea-pill { font-size: 11px; padding: 4px 9px; align-self: center; }
.ea-mini-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-mini-cta { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ea-chev { flex: none; color: var(--muted); }
.ea-top.is-open .ea-chev { transform: rotate(180deg); }
.ea-sub a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 480px) { .ea-mini-btn { gap: 8px; font-size: 13px; } .ea-mini-more { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ea-chev { transition: transform .15s ease; }
  .ea-top.is-compact.is-open .ea-bar { animation: ea-drop .14s ease-out; }
  @keyframes ea-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* The dialog */
.ea-dialog { border: 1px solid var(--line); padding: 0; border-radius: 16px; width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px);
  background: var(--surface); color: var(--ink); box-shadow: 0 18px 48px rgba(0, 0, 0, .25); font: 16px/1.5 var(--font); }
.ea-dialog::backdrop { background: rgba(18, 23, 18, .5); }
.ea-panel { padding: 26px; }
.ea-panel[hidden] { display: none; }
.ea-title { margin: 0 0 6px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.ea-lede { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.ea-form .field { margin-bottom: 14px; }
.ea-types { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.ea-types legend { padding: 0; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ea-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ea-choice { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.ea-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.ea-choice:has(input:checked) { border: 2px solid var(--accent); padding: 0 13px; background: var(--soft); }
.ea-choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ea-rx { margin: 0 0 14px; }
.ea-rx-check { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0; }
.ea-rx-note { display: none; margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft);
  color: color-mix(in srgb, var(--warn) 70%, var(--ink)); font-size: 14px; font-weight: 600; line-height: 1.45; }
.ea-rx:has(input:checked) .ea-rx-note { display: block; }
/* The feedback page's early-access option (templates/feedback.html) */
.fb-ea { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; margin: 6px 0 4px; min-width: 0; }
.fb-ea > legend { font-weight: 800; font-size: 15px; padding: 0 6px; }
.fb-ea .fb-ea-more { display: none; margin-top: 12px; }
.fb-ea:has(input[name=join]:checked) .fb-ea-more { display: block; }
.ea-consent { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.ea-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad);
  font-weight: 600; font-size: 14px; }
.ea-error[hidden] { display: none; }
.ea-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ea-actions .btn[type=submit] { flex: 1 1 160px; }
.ea-thanks:focus { outline: none; }
.ea-check { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soft);
  color: var(--accent); margin-bottom: 12px; }
.ea-dialog .ea-back { display: none; }
.ea-page [data-ea-close], .ea-page [data-ea-cancel] { display: none; }
.ea-page { max-width: 520px; margin: 40px auto 64px; padding: 0 16px; }
.ea-page .ea-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .ea-dialog[open] { animation: ea-in .16s ease-out; }
  @keyframes ea-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media print { .ea-slot, .ea-dialog { display: none !important; } }
/* Opened from the slim line, the full panel drops below it: the slim line already shows the "Early access" pill, so
   the panel's own pill is hidden there (Effie 2026-11-28: it was repeated). */
.ea-top.is-compact.is-open .ea-bar .ea-pill { display: none; }
