/* AICITY UI foundations, development preview.
   Shared geometry and interaction only: never flatten feature-specific colors.
   2026-11-14, scoped to pages that explicitly include this file. */
:root {
  --aicity-ui-navy: #183348;
  --aicity-ui-brand: #16866a;
  --aicity-ui-link: #075eaa;
  --aicity-ui-post: #b84a24;
  --aicity-ui-card-radius: 14px;
  --aicity-ui-panel-radius: 16px;
  --aicity-ui-line: #dbe6ec;
  --aicity-ui-shadow: 0 3px 14px rgba(24, 51, 72, .055);
  --aicity-ui-space: 14px;
  --aicity-ui-tap: 44px;
}
/* Shared panel geometry; preserve the existing page color and contents. */
.aicity-top-search,
.region-portal .region-hero,
.region-portal .region-panel,
.region-subpage .rbb-board-head,
.region-subpage .rqa-hero,
.region-subpage .match-post-header,
body.aicity-event-ui .aicity-event-lead {
  border-radius: var(--aicity-ui-panel-radius);
}
/* The card family uses the same shape and soft edge.
   Feature color badges, images, card contents and text colors are untouched. */
.aicity-top-card,
.region-portal .region-post,
.region-subpage .rbb-thread-row,
.region-subpage .rqa-item,
.region-subpage .match-card,
body.aicity-event-ui .aicity-event-card,
.aicity-report-card {
  border-radius: var(--aicity-ui-card-radius);
  border-color: var(--aicity-ui-line);
  box-shadow: var(--aicity-ui-shadow);
}
/* Unify card rhythm without changing columns or responsiveness. */
.region-portal .region-posts,
.region-subpage .rbb-thread-list,
.region-subpage .rqa-list-cards,
.region-subpage-match .rbb-thread-list,
body.aicity-event-ui .aicity-event-stack,
.aicity-report-list {
  gap: var(--aicity-ui-space);
}
.aicity-top-card-title,
.region-portal .region-post-title,
.region-subpage .rbb-thread-title,
.region-subpage .rqa-title,
body.aicity-event-ui .aicity-event-card-title,
.aicity-report-title {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
/* Controls have a predictable tap size. Do not override original action colors
   or change site navigation, forms, search behavior or posting permissions. */
.aicity-top-nav-buttons a,
.region-portal .region-button,
.region-subpage .rbb-button,
.region-subpage .rqa-button,
.region-subpage .match-submit-button,
body.aicity-event-ui .aicity-event-nav a,
.aicity-report-post-btn,
.aicity-store-search-panel button,
.aicity-store-detail-page .store_hero_action {
  box-sizing: border-box;
  min-height: var(--aicity-ui-tap);
}
.aicity-top-card:focus-visible,
.region-portal .region-post a:focus-visible,
.region-subpage a:focus-visible,
body.aicity-event-ui .aicity-event-card a:focus-visible,
.aicity-report-card a:focus-visible,
.aicity-report-post-btn:focus-visible,
.aicity-store-search-panel button:focus-visible {
  outline: 3px solid var(--aicity-ui-link);
  outline-offset: 3px;
}
/* Full-color links and underlines remain their original feature colors. */
@media (prefers-reduced-motion: reduce) {
  .aicity-top-card,
  .region-portal .region-post,
  body.aicity-event-ui .aicity-event-card,
  .aicity-report-card {
    scroll-behavior: auto;
  }
}
