/* Arka Translations — black & white Cadillac brand */
:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --text: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --arka-navy: #000000;
  --arka-signal: #333333;
  --accent: #000000;
  --accent-hover: #111111;
  --accent-light: #f0f0f0;
  --accent-soft: #e5e5e5;
  --border: #e5e5e5;
  --border-subtle: #f0f0f0;
  --border-focus: #000000;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --success: #15803d;
  --success-bg: #eef7f1;
  --danger: #b91c1c;
  --danger-bg: #faf0f0;
  --warning: #333333;
  --warning-bg: #f0f0f0;
  --shell-height: 4.25rem;
  --content-max: 44rem;
  --content-wide: 56rem;
  --text-on-dark: #ffffff;
  --text-muted-on-dark: rgba(255, 255, 255, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Gate — solid black private entrance ──────────────────────── */

.login-page,
.language-page {
  --gate-ink: #ffffff;
  --gate-ink-soft: rgba(255, 255, 255, 0.78);
  --gate-focus: #ffffff;
  --gate-focus-soft: rgba(255, 255, 255, 0.22);
  --gate-bg: #141414;

  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Soft Cadillac charcoal — not crushing pure black behind the logo mark */
  background-color: var(--gate-bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 38%, #2a2a2a 0%, transparent 62%),
    radial-gradient(ellipse 120% 90% at 50% 100%, #0c0c0c 0%, var(--gate-bg) 55%);
}

.login-page::before,
.language-page::before {
  content: none;
  display: none;
}

.login-panel,
.language-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  text-align: center;
}

.login-brand,
.language-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.25rem;
}

.language-brand {
  margin-bottom: 1.25rem;
}

.login-logo,
.language-logo {
  width: min(10.5rem, 56vw);
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  /* Neon 3D A-mark — keep color; soft lift so it doesn’t sink into charcoal */
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.language-kicker {
  font-family: 'Montserrat', 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 0.85rem;
}

.language-lead {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  color: #ffffff;
  margin: 0 0 0.85rem;
  letter-spacing: 0.01em;
}

.language-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
  letter-spacing: 0.03em;
}

.code-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.code-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.code-digit {
  width: 3.4rem;
  height: 4.1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.95rem;
  font-weight: 500;
  text-align: center;
  color: var(--gate-ink);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.code-digit::-webkit-outer-spin-button,
.code-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.code-digit:focus {
  border-color: var(--gate-focus);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.25),
    0 0 0 3px var(--gate-focus-soft);
}

.code-digit.filled {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* Small elegant year label — private entrance cue */
.code-hint {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.15rem 0 0;
  padding-left: 0.42em;
}

.login-error {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f0a090;
  min-height: 1.25rem;
}

.lang-choices {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lang-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gate-ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover,
.lang-btn:focus {
  outline: none;
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

/* ── App shell ────────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--shell-height);
  background: #111111;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #1f1f1f;
  box-shadow: none;
}

.app-shell-inner {
  max-width: calc(var(--content-wide) + 3rem);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  min-width: 0;
}

.brand-logo {
  height: 2.35rem;
  width: auto;
  display: block;
  object-fit: contain;
  /* Soft lift on charcoal header so the mark reads clearly */
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

.brand-text {
  display: none;
}

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
}

.site-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  padding: 0.2rem;
  background: #111111;
  border-radius: 999px;
  border: 1px solid #333333;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  font-family: 'Montserrat', 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link-active {
  color: #000000;
  background: #ffffff;
  box-shadow: none;
}

.shell-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shell-link {
  font-family: 'Montserrat', 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.shell-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Page intro ───────────────────────────────────────────────── */

.page-intro {
  padding: 2.25rem 1.25rem 0;
}

.page-intro-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.page-intro-inner.wide {
  max-width: var(--content-wide);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Montserrat', 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.page-intro h1 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.page-lead {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--content-max) + 3rem);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

main.wide {
  max-width: calc(var(--content-wide) + 3rem);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card + .card {
  margin-top: 1.25rem;
}

.instructions {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #fafafa, var(--surface));
}

.instructions h2 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.instructions p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.form-section {
  padding: 1.75rem 2rem 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

label span {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 1.05rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.btn-primary,
.btn-secondary {
  font-family: 'Montserrat', 'Source Sans 3', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background: #000000;
  border: 1px solid #000000;
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.75rem;
  box-shadow: none;
  text-decoration: none;
}

.btn-primary:hover {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  background: #ffffff;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.2rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-block {
  width: 100%;
}

.error-message {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.success-message {
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* ── About / home ─────────────────────────────────────────────── */

.about-card {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.75rem;
  padding: 2rem;
  align-items: start;
}

.portrait {
  /* light rim keeps dark jacket/photo edges from melting into the card */
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #f0f0f0, #e5e5e5);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.08);
  position: relative;
  contain: paint;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 1;
  background: transparent;
}

.portrait img.is-hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
  background: linear-gradient(145deg, #f0f0f0, #e5e5e5);
}

.portrait-fallback[hidden] {
  display: none !important;
}

.portrait-fallback .initials {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.portrait-fallback .role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.about-body h2 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.credential-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 1rem;
}

.credential {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0;
}

.photo-upload {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.photo-upload-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.photo-upload-btn:hover,
.photo-upload-btn:focus {
  outline: none;
  color: #000000;
  border-color: #000000;
  background: #f0f0f0;
  box-shadow: var(--shadow-xs);
}

.photo-upload-btn-remove {
  color: var(--danger, #b42318);
  border-color: rgba(180, 35, 24, 0.28);
  background: rgba(180, 35, 24, 0.04);
}

.photo-upload-btn-remove:hover,
.photo-upload-btn-remove:focus {
  color: var(--danger, #b42318);
  border-color: rgba(180, 35, 24, 0.5);
  background: rgba(180, 35, 24, 0.08);
}

.photo-upload-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.photo-upload-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.photo-upload-status.is-ok {
  color: var(--success);
}

.photo-upload-status.is-error {
  color: var(--danger);
}

.about-body p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.trust-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: #000000;
  opacity: 0.85;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Status badges ────────────────────────────────────────────── */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  line-height: 1.2;
}

.status-badge.tone-danger {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(185, 28, 28, 0.15);
}

.status-badge.tone-warning {
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.status-badge.tone-success {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(21, 128, 61, 0.15);
}

.status-panel {
  padding: 1.75rem 2rem;
}

.status-meta {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.status-meta strong {
  color: var(--text-secondary);
  font-weight: 700;
}

.billing-box {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.billing-box h3 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.price-total {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.35rem 0 1rem;
}

.tracking-code-display {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  text-align: center;
  margin: 1rem 0;
}

/* ── Admin ────────────────────────────────────────────────────── */

.admin-list {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.75rem;
}

.admin-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  background: var(--surface);
}

.admin-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-item h3 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  align-items: end;
}

.admin-actions .form-group {
  margin-bottom: 0;
  min-width: 7rem;
}

.admin-actions input[type="number"],
.admin-actions select {
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.admin-login-card {
  max-width: 24rem;
  margin: 2rem auto;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-xs);
}

.stat-label {
  font-family: 'Montserrat', 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}

.team-assign-box {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
}

main.wide {
  max-width: calc(var(--content-wide) + 3rem);
}

.app-shell .nav-link {
  border: none;
  background: transparent;
  font-family: 'Montserrat', 'Source Sans 3', sans-serif;
}

.app-shell .nav-link.nav-link-active {
  background: #ffffff;
  color: #000000;
}

.app-shell .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.app-shell .nav-link.nav-link-active:hover {
  background: #ffffff;
  color: #000000;
}

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.site-footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.6;
}

.site-footer .coming-soon {
  margin-top: 0.45rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ── Mobile ───────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .app-shell {
    height: auto;
    min-height: var(--shell-height);
  }

  .app-shell-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 0.65rem 1rem;
    gap: 0.55rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .shell-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-link {
    flex: 1;
    padding: 0.5rem 0.55rem;
    font-size: 0.72rem;
  }

  .brand-logo {
    height: 2.4rem;
    max-width: 2.75rem;
  }

  .about-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .portrait {
  /* light rim keeps dark jacket/photo edges from melting into the card */
    max-width: 14rem;
    margin: 0 auto;
  }

  .instructions,
  .form-section,
  .status-panel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .code-digit {
    width: 3.15rem;
    height: 3.85rem;
    font-size: 1.75rem;
  }

  .code-inputs {
    gap: 0.6rem;
  }
}


/* ── Phone sign-off ───────────────────────────────────────────── */

.signoff-page .page {
  max-width: 32rem;
  margin: 0 auto;
  overflow-x: hidden;
}

.signoff-page main {
  max-width: 100%;
  padding: 1rem 1rem 2.5rem;
}

.signoff-count {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin: 0 0 0.85rem;
}

.signoff-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signoff-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.signoff-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.signoff-card-body {
  padding: 1.15rem 1.15rem 0.5rem;
}

.signoff-card h2 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.signoff-card .status-meta {
  margin-top: 0.5rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.signoff-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem 1.15rem;
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.signoff-actions .btn-primary,
.signoff-actions .btn-secondary {
  width: 100%;
  min-height: 44px;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  text-align: center;
}

.signoff-actions .btn-sign-off {
  position: sticky;
  bottom: 0.75rem;
  min-height: 48px;
  font-size: 1rem;
}

.signoff-page .item-error,
.signoff-page .item-ok {
  margin: 0;
}


/* Phone workspace: readable drafts + no clip on iOS */
.signoff-page .draft-area {
  font-size: 16px;
  line-height: 1.5;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .signoff-page .draft-area {
    min-height: 18rem;
  }
  .signoff-page .draft-area.source-area {
    min-height: 12rem;
  }
}


.site-footer .cchi-line,
.about-body .cchi-line {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 42rem;
  margin: 0.65rem auto 0;
}

.about-body .cchi-line {
  margin: 0.75rem 0 1rem;
  text-align: left;
}

.site-footer .cchi-line a,
.about-body .cchi-line a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .cchi-line a:hover,
.about-body .cchi-line a:hover {
  color: #000;
}
