/* UniCircle — styles for js/pages/* modules (dialogs, chips, live cards).
   Built only on redesign.css tokens (--uc-*). Page lanes append below their
   own banner comment; keep selectors prefixed .uc-. */

/* ---- shared dialog (UCP.dialog) ---- */
.uc-dialog { border: 1px solid var(--uc-border); border-radius: var(--uc-r-md); padding: 0;
  width: min(560px, calc(100vw - 32px)); background: var(--uc-card-solid); color: var(--uc-ink);
  font-family: var(--uc-font-body); box-shadow: var(--uc-shadow-lg); }
.uc-dialog::backdrop { background: rgba(43,42,38,.35); backdrop-filter: blur(4px); }
.uc-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 6px; }
.uc-dialog-head h3 { margin: 0; font-weight: 400; font-size: 28px; }
.uc-dialog-x { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--uc-muted); }
.uc-dialog-body { padding: 10px 26px 4px; font-size: 15px; line-height: 1.65; color: var(--uc-ink-2); }
.uc-dialog-body textarea, .uc-dialog-body input, .uc-dialog-body select { width: 100%; box-sizing: border-box;
  border: 1px solid var(--uc-border); border-radius: var(--uc-r-sm); padding: 12px 14px; font: inherit; color: var(--uc-ink); background: var(--uc-bg); }
.uc-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px 24px; flex-wrap: wrap; }

/* ---- landing hero: waitlist card (replaces the inline sign-in) ---- */
.uc-lp-wl { text-align: left; }
.uc-lp-wl .uc-form { display: flex; flex-direction: column; gap: 12px; }
.uc-lp-wl .uc-input-pill { width: 100%; box-sizing: border-box; }
.uc-lp-wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uc-lp-wl-row [hidden] { display: none; }
.uc-lp-wl .uc-tab { cursor: pointer; font-weight: 600; }
.uc-lp-wl .uc-form .uc-lp-wl-consent { flex-direction: row; display: flex; gap: 10px; align-items: flex-start;
  text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--uc-ink-2); cursor: pointer; }
.uc-lp-wl-consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--uc-ink); }
.uc-lp-wl-consent a, .uc-lp-wl-foot a { text-decoration: underline; text-underline-offset: 3px; }
.uc-lp-wl .uc-wl-submit { width: 100%; padding: 15px 20px; font-size: 15px; cursor: pointer; }
.uc-lp-wl .uc-wl-submit:disabled { opacity: .6; cursor: wait; }
.uc-lp-wl-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px;
  font-size: 13px; color: var(--uc-muted); }
.uc-lp-wl-foot a { color: var(--uc-ink); font-weight: 600; }
.uc-lp-wl-done { text-align: center; padding: 10px 4px 4px; outline: none; }
.uc-lp-wl-mark { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--uc-ink); color: var(--uc-bg);
  display: grid; place-items: center; font-size: 24px; }
.uc-lp-wl-done h2 { margin: 0 0 8px; font-weight: 400; font-size: 32px; }
.uc-lp-wl-done p { margin: 0 0 14px; color: var(--uc-ink-2); line-height: 1.6; }
.uc-landing a.uc-btn-dark { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 480px) { .uc-lp-wl-row { grid-template-columns: 1fr; } }

/* landing nav on small screens: the links div carries an inline display:flex,
   so redesign.css's (max-width:900px) hide rule never won — force it here. */
@media (max-width: 900px) {
  .uc-landing [data-nav-links] { display: none !important; }
  .uc-landing .uc-hero { padding-top: 120px; }
}
@media (max-width: 480px) {
  .uc-landing .uc-navpill { gap: 10px; padding-left: 12px; padding-right: 8px; }
  .uc-landing .uc-navpill .uc-btn-dark { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .uc-landing .uc-navpill > div:first-child span { font-size: 15px !important; }
}
@media (max-width: 520px) { .uc-landing #lp-signin-link { display: none; } }

/* ---- landing: explore tiles → standalone topic pages ---- */
.uc-lp-explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc-lp-tile { display: flex; flex-direction: column; border-radius: var(--uc-r-lg); overflow: hidden; background: var(--uc-card); border: 1px solid var(--uc-border);
  box-shadow: var(--uc-shadow); text-decoration: none; color: var(--uc-ink); transition: transform .18s ease, box-shadow .18s ease; }
.uc-lp-tile:hover { transform: translateY(-3px); box-shadow: var(--uc-shadow-lg); }
.uc-lp-tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.uc-lp-tile .body { padding: 22px 24px 24px; }
.uc-lp-tile h3 { margin: 10px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; font-family: var(--uc-font-body); }
.uc-lp-tile h3::after { content: ' →'; color: var(--uc-muted); }
.uc-lp-tile p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--uc-ink-2); }
.uc-lp-tile--wide { grid-column: span 2; flex-direction: row; }
.uc-lp-tile--wide .uc-lp-tile-map { flex: 1.2; min-height: 260px; }
.uc-lp-tile--wide .body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.uc-lp-tile--wide h3 { font-size: 28px; font-family: var(--uc-font-display); font-weight: 400; }
.uc-lp-tile-map { position: relative; background: #f2f0ea; background-image: radial-gradient(rgba(43,42,38,.06) 1px, transparent 1px); background-size: 18px 18px; }
.uc-lp-tile-map span { position: absolute; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
@media (max-width: 960px) {
  .uc-lp-explore { grid-template-columns: 1fr 1fr; }
  .uc-lp-tile--wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .uc-lp-explore { grid-template-columns: 1fr; }
  .uc-lp-tile--wide { grid-column: auto; flex-direction: column; }
  .uc-lp-tile--wide .uc-lp-tile-map { min-height: 200px; }
}
/* five page links in the landing nav: give the hero room at every width,
   and collapse the links before they crowd the pill */
.uc-landing .uc-hero { padding-top: 130px; }
@media (max-width: 1100px) { .uc-landing [data-nav-links] { display: none !important; } }
