/* Sign-in and account pages: the landing page's pieces, narrower. */

.wrap.narrow {
  width: min(860px, 100% - 40px);
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.auth-stage {
  padding: clamp(24px, 4vw, 40px);
}
.auth-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.auth-lede {
  margin-top: 8px;
  color: var(--muted-foreground);
  max-width: 60ch;
}
.auth-cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.auth-cards.single {
  grid-template-columns: minmax(0, 420px);
}
@media (max-width: 720px) {
  .auth-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.action.static:hover {
  background: color-mix(in oklab, var(--card) 70%, transparent);
  border-color: var(--border);
  color: inherit;
  transform: none;
  box-shadow: none;
}
.action.static:hover p {
  color: var(--muted-foreground);
}
.action.static:hover .tile {
  background: var(--tile);
  color: var(--tile-foreground);
}
.action.static .btn {
  margin-top: auto;
}
.auth-form {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-form input {
  flex: 1 1 160px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}
.code-input {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.auth-error {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--destructive) 40%, transparent);
  background: color-mix(in oklab, var(--destructive) 8%, transparent);
  font-size: 13px;
}
.auth-fine {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.auth-fine a,
.linkish {
  color: var(--link);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.handoff {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.handoff-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: color-mix(in oklab, var(--card) 60%, transparent);
}
.handoff-code .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-foreground);
}
.handoff-code code {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--link);
}

.account-card {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}
.account-card img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}
.account-card .initial {
  font-weight: 800;
  font-size: 16px;
}
.account-card #signout {
  margin-left: 8px;
}
.account-card .who {
  min-width: 0;
  flex: 1;
}
.pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: color-mix(in oklab, var(--primary) 15%, transparent);
  color: var(--link);
}
.pill[data-tone="ok"] {
  background: color-mix(in oklab, var(--success) 15%, transparent);
  color: var(--success);
}
.pill[data-tone="warn"] {
  background: color-mix(in oklab, var(--destructive) 12%, transparent);
  color: var(--destructive);
}
.row .btn {
  margin-left: auto;
}
.panel h2 {
  font-size: 15px;
  font-weight: 700;
}

.panel.danger {
  border-color: color-mix(in oklab, var(--destructive) 45%, transparent);
}
.btn.danger {
  color: var(--destructive);
  border-color: color-mix(in oklab, var(--destructive) 45%, transparent);
}
.btn.danger::after {
  background: var(--destructive);
}
.btn.danger:hover {
  color: var(--primary-foreground);
  border-color: var(--destructive);
}

/* Legal pages */
.prose {
  max-width: 72ch;
  padding: clamp(8px, 2vw, 16px) 0 24px;
  font-size: 15px;
  line-height: 1.65;
}
.prose h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.prose .meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.prose h2 {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.prose p,
.prose ul,
.prose ol {
  margin-top: 12px;
}
.prose ul,
.prose ol {
  padding-left: 20px;
}
.prose ol {
  list-style: decimal;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--link);
  font-weight: 700;
}
.prose table {
  margin-top: 14px;
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  font-size: 12px;
  color: var(--muted-foreground);
}
/* /licences: program, licence, source links (long links wrap instead of widening the page) */
.licence-table td {
  overflow-wrap: anywhere;
}
.licence-table td:first-child {
  width: 30%;
}
.licence-table td:nth-child(2) {
  width: 20%;
}

/* Articles (blog): the prose column with screenshots between paragraphs. */
.prose.article {
  padding-bottom: 48px;
}
.prose .lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted-foreground);
}
.prose .shot {
  margin: 22px 0 6px;
}
.prose h2 + p,
.prose h2 + ul {
  margin-top: 10px;
}
.linkish:disabled {
  opacity: 0.55;
  cursor: default;
}
#code-tools #btn-back {
  margin-left: 6px;
}
