/* Scoped under .lc so it won't fight your portfolio's own styles.
   Swap the tokens below for your site's colors and fonts. */
.lc {
  --lc-ink: #1d1d1f;
  --lc-muted: #5f6368;
  --lc-line: #d9dde3;
  --lc-card: #ffffff;
  --lc-bg: #f6f7f9;
  --lc-accent: #1f3a5f;
  --lc-accent-soft: #e8eef6;
  --lc-error: #b3261e;
  --lc-radius: 10px;

  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  color: var(--lc-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

[x-cloak] { display: none !important; }

.lc-header { margin-bottom: 24px; }
.lc-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lc-accent);
}
.lc-header h1 { margin: 4px 0 8px; font-size: 1.9rem; line-height: 1.2; }
.lc-intro { color: var(--lc-muted); }
.lc-sample {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--lc-accent);
}

.lc-card {
  margin: 0 0 16px;
  padding: 18px 20px 6px;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: var(--lc-card);
}
.lc-card > legend {
  padding: 0 6px;
  margin-left: -6px;
  font-weight: 650;
}
.lc-section { border-left: 4px solid var(--lc-accent); }

.lc-grid { display: grid; gap: 0 16px; }
@media (min-width: 620px) {
  .lc-grid { grid-template-columns: 1fr 1fr; }
  .lc-grid-3 { grid-template-columns: 1.3fr 1fr 1.3fr; }
}

.lc-field { margin-bottom: 14px; }
.lc-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}
.lc-field input,
.lc-field select,
.lc-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  font: inherit;
  color: inherit;
  border: 1px solid var(--lc-line);
  border-radius: 7px;
  background: #fff;
}
.lc-field input:focus,
.lc-field select:focus,
.lc-field textarea:focus {
  outline: 2px solid var(--lc-accent);
  outline-offset: 1px;
  border-color: transparent;
}
.lc-field.has-error input,
.lc-field.has-error select,
.lc-field.has-error textarea { border-color: var(--lc-error); }

.lc-help { margin: 4px 0 0; font-size: 0.82rem; color: var(--lc-muted); }
.lc-error { margin: 4px 0 0; font-size: 0.85rem; color: var(--lc-error); }
.lc-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--lc-radius);
  background: #fdecea;
  color: var(--lc-error);
}

.lc-choices {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 620px) { .lc-choices { grid-template-columns: 1fr 1fr; } }
.lc-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--lc-line);
  border-radius: 8px;
  cursor: pointer;
}
.lc-choice:has(input:checked) {
  border-color: var(--lc-accent);
  background: var(--lc-accent-soft);
}
.lc-choice input { margin-top: 4px; accent-color: var(--lc-accent); }
.lc-choice strong { display: block; }
.lc-choice small { color: var(--lc-muted); }

.lc-lookup {
  margin: -6px 0 14px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.88rem;
  background: var(--lc-bg);
  color: var(--lc-muted);
}
.lc-lookup.is-found { background: #e7f4ec; color: #1e6b3a; }

.lc-empty {
  padding: 18px;
  text-align: center;
  border: 1px dashed var(--lc-line);
  border-radius: var(--lc-radius);
  color: var(--lc-muted);
}

.lc-actions { padding-bottom: 18px; }
.lc-actions .lc-field { max-width: 240px; }
.lc-actions button {
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--lc-accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.lc-actions button:hover { filter: brightness(1.12); }
