/* MATOA shared components (MATOA_DESIGN_RULES.md, chapters 1, 3, 4).
   Requires matoa-tokens.css + themes/<app>.css. */

/* ---------- Wordmark: MAT + ring + A, product label ---------- */
.mc-wordmark {
  display: flex; align-items: center; gap: 3px;
  font-family: var(--mc-font-display); font-weight: 700; letter-spacing: 0.08em; line-height: 1;
  color: var(--mc-slate);
}
.mc-wordmark .mc-ring-outer { stroke: var(--mc-accent); }
.mc-wordmark .mc-ring-dot { fill: var(--mc-slate); }
.mc-product { font-weight: 600; color: var(--mc-terracotta-text); }

/* Brand block sizes: header (26px) and hero (34px, login) */
.mc-brand { display: flex; align-items: center; gap: 14px; }
.mc-brand .mc-wordmark { font-size: 26px; }
.mc-brand .mc-wordmark svg { margin-right: 2px; }
.mc-brand .mc-product { font-size: 12px; letter-spacing: 0.4em; }
.mc-brand-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mc-brand-hero .mc-wordmark { gap: 4px; font-size: 34px; }
.mc-brand-hero .mc-wordmark svg { margin-right: 3px; }
.mc-brand-hero .mc-product { font-size: 12px; letter-spacing: 0.5em; margin-right: -0.5em; }

/* ---------- Round icon button (48px; always aria-label) ---------- */
.mc-round-btn {
  flex: 0 0 auto; width: 48px; height: 48px; margin: 0; padding: 0; border: none; border-radius: 24px;
  background: var(--mc-ground); color: var(--mc-slate); cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--mc-raised-sm); transition: box-shadow 150ms ease;
}
.mc-round-btn:hover { background: var(--mc-ground); color: var(--mc-slate); box-shadow: var(--mc-raised-hover); }
.mc-round-btn:active { box-shadow: var(--mc-pressed-sm); }

/* ---------- Buttons ---------- */
.mc-btn-primary {
  min-height: 54px; margin: 0; padding: 8px 32px; border: none; border-radius: 27px;
  background: var(--mc-slate); color: var(--mc-on-dark); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: var(--mc-raised-dark); transition: background-color 150ms ease, box-shadow 150ms ease;
}
.mc-btn-primary:hover { background: var(--mc-slate-hover); color: var(--mc-on-dark); }
.mc-btn-primary:active { background: var(--mc-slate); box-shadow: var(--mc-pressed-dark); }
.mc-btn-primary:disabled, .mc-btn-primary:disabled:hover {
  background: var(--mc-disabled); color: var(--mc-muted); box-shadow: none; cursor: not-allowed;
}
.mc-btn-secondary {
  min-height: 44px; margin: 0; padding: 8px 24px; border: none; border-radius: 22px;
  background: var(--mc-ground); color: var(--mc-slate); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: var(--mc-raised-sm); transition: box-shadow 150ms ease;
}
.mc-btn-secondary:hover { background: var(--mc-ground); color: var(--mc-slate); box-shadow: var(--mc-raised-hover); }
.mc-btn-secondary:active { box-shadow: var(--mc-pressed-sm); }

/* ---------- Text field (pill, inset, label above via for/id) ---------- */
.mc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mc-field label { margin: 0; padding-left: 6px; font-size: 14px; font-weight: 500; color: var(--mc-slate); }
.mc-field input {
  width: 100%; height: 52px; margin: 0; padding: 0 22px; border: none; border-radius: 26px;
  background: var(--mc-ground); color: var(--mc-slate); font: inherit; font-size: 16px;
  box-shadow: var(--mc-inset-shadow);
}
.mc-field input:focus { border: none; box-shadow: var(--mc-inset-shadow); }
.mc-field input[readonly] { background: var(--mc-inset); color: var(--mc-muted); box-shadow: none; }

/* ---------- Cards / panels ---------- */
.mc-card-raised { border-radius: 32px; background: var(--mc-ground); box-shadow: var(--mc-raised-card); }
.mc-panel-inset { border-radius: 26px; background: var(--mc-inset); box-shadow: var(--mc-inset-shadow); }

/* ---------- Focus (keyboard) ---------- */
.mc-root a:focus-visible, .mc-root button:focus-visible, .mc-root input:focus-visible,
.mc-root select:focus-visible, .mc-root textarea:focus-visible {
  outline: 2px solid var(--mc-terracotta-text); outline-offset: 3px;
}

.mc-skyline { display: block; width: 100%; }

/* Universal map-area symbol: always black, never the app accent */
.mc-map-area-symbol { color: var(--mc-black); filter: var(--mc-emboss-symbol); }

@media (prefers-reduced-motion: reduce) {
  .mc-round-btn, .mc-btn-primary, .mc-btn-secondary { transition: none; }
}
