/* Los Granados Golf Community — Main Stylesheet */

:root {
  /* Deep-green / lime luxury palette (Los Granados Golf prototypes).
     Variable names are kept from the original navy/gold theme so every
     existing rule below repaints automatically. */
  --navy: #0A4B32;        /* pine — headers, sidebars, primary dark surfaces */
  --navy-light: #0F7A52;  /* brand green */
  --navy-lighter: #14603f;
  --gold: #A6C63C;        /* lime accent */
  --gold-light: #c3dd6c;
  --gold-dark: #6f8f2a;
  --white: #F7F6F0;       /* ivory */
  --white-pure: #ffffff;
  --green: #0F7A52;       /* brand green (same as navy-light, kept distinct for clarity) */
  --green-light: #3B6D11;
  --text: #1C2B22;        /* ink */
  --text-muted: #6B7A70;  /* muted */
  --border: #E3E1D6;      /* line */
  --card-bg: #ffffff;
  --shadow: 0 2px 8px rgba(10, 75, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(10, 75, 50, 0.14);
  --radius: 8px;
  --radius-lg: 12px;
  --font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --status-open: #3B6D11;
  --status-closed: #A32D2D;
  --status-maintenance: #BA7517;
  --red-bg: #FCEBEB;
  --red: #A32D2D;
  --red-ink: #791F1F;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

h1, .page-title, .admin-page-title {
  font-family: var(--font-serif);
  font-weight: 600;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

a {
  color: var(--gold-dark);
  text-decoration: none;
}
a:hover { color: var(--navy); text-decoration: underline; }

/* ─── Header / Navigation ────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.site-nav a {
  color: rgba(248, 245, 240, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(200, 169, 110, 0.15);
}

.site-nav a.active {
  color: var(--gold);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(248, 245, 240, 0.3);
  color: rgba(248, 245, 240, 0.7);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.15s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.user-menu {
  position: relative;
}

.user-btn {
  background: rgba(200, 169, 110, 0.15);
  border: 1px solid rgba(200, 169, 110, 0.4);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
}

.user-btn:hover {
  background: rgba(200, 169, 110, 0.25);
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
}

.user-menu:focus-within .user-dropdown,
.user-menu.open .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: var(--white);
  color: var(--navy);
}

.user-dropdown hr {
  margin: 0.25rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.user-dropdown-form {
  margin: 0;
}

.user-dropdown-form button,
.btn-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.user-dropdown-form button {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  color: #b91c1c;
}

.user-dropdown-form button:hover {
  background: var(--cream);
  color: #7f1d1d;
}

/* ─── Brand Mark (crest logo) ─────────────────────────────────────────── */
.brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.site-logo {
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* ─── Icon sizing (inline SVG icon set, layouts/partials.html) ───────── */
.icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lock { color: var(--gold); }

/* ─── Notification bell ───────────────────────────────────────────────── */
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  padding: 0.3rem;
}

.notif-bell .icon { width: 1.4rem; height: 1.4rem; }

.notif-bell .notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
}

/* ─── Secure indicator (admin topbar) ─────────────────────────────────── */
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green);
  background: rgba(15, 122, 82, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.secure-badge .icon { width: 0.95rem; height: 0.95rem; }

/* ─── Status dot (tri-state facility status) ──────────────────────────── */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.4rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.status-dot.status-open { background: var(--status-open); }
.status-dot.status-closed { background: var(--status-closed); }
.status-dot.status-maintenance { background: var(--status-maintenance); }

/* ─── Mobile bottom navigation (owner app) ────────────────────────────── */
.bottom-nav {
  display: none;
}

/* ─── Main Layout ─────────────────────────────────────────────────────── */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-header h2, .card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ─── Content Grid ────────────────────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.content-card.pinned {
  border-top: 3px solid var(--gold);
}

.content-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.content-type-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.content-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.content-card h3 a {
  color: inherit;
  text-decoration: none;
}

.content-card h3 a:hover {
  color: var(--gold-dark);
}

.content-card-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Badges ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-draft { background: #f3f4f6; color: #6b7280; }
.badge-review { background: #fef3c7; color: #92400e; }
.badge-published { background: #d1fae5; color: #065f46; }
.badge-archived { background: #f3f4f6; color: #9ca3af; }
.badge-pinned { background: #fef3c7; color: #b45309; }
.badge-open { background: #dbeafe; color: #1e40af; }
.badge-waiting { background: #fef3c7; color: #92400e; }
.badge-resolved { background: #d1fae5; color: #065f46; }
.badge-gold { background: var(--gold); color: var(--navy); }
.badge-navy { background: var(--navy); color: var(--white); }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); color: var(--white); text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy); text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--white); border-color: var(--navy); color: var(--navy); text-decoration: none; }

.btn-danger {
  background: #dc2626;
  color: white;
}
.btn-danger:hover { background: #b91c1c; color: white; text-decoration: none; }

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

/* ─── Forms ───────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white-pure);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

.form-control::placeholder {
  color: #adb5bd;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* ─── Alerts ──────────────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.alert-warning {
  background: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}

/* ─── Tables ──────────────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 0.875rem;
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--white); }

/* ─── Auth Pages ──────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--white-pure);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.auth-header {
  background: var(--navy);
  padding: 2rem;
  text-align: center;
}

.auth-header h1 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.auth-header p {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.auth-body {
  padding: 2rem;
}

.auth-footer {
  text-align: center;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-updated {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.75;
  animation: auth-updated-fade 6s ease-in-out infinite;
}

/* A slow, shallow fade — enough to draw the eye once, not enough to nag. */
@keyframes auth-updated-fade {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}

/* Anyone who has asked their OS for less motion gets the static version. */
@media (prefers-reduced-motion: reduce) {
  .auth-updated {
    animation: none;
    opacity: 0.75;
  }
}

/* ─── Hero / Sections ─────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.4rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.5rem 0 1.5rem;
}

/* ─── Home Hero ───────────────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 60%, var(--green) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.home-hero p {
  color: rgba(248, 245, 240, 0.8);
  font-size: 1rem;
  margin: 0;
}

/* ─── Facility Cards ──────────────────────────────────────────────────── */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.facility-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}

.facility-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.facility-card-header {
  background: var(--navy);
  padding: 1.5rem;
  color: var(--white);
}

.facility-card-header h3 {
  color: var(--white);
  margin: 0 0 0.25rem;
}

.facility-card-status {
  font-size: 0.75rem;
  color: var(--gold);
}

.facility-card-body {
  padding: 1.25rem;
}

.facility-hours {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  white-space: pre-line;
}

.facility-closed-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #991b1b;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Budget Items (category document library) ───────────────────────── */
.budget-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.budget-cat-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  transition: box-shadow 0.15s, transform 0.15s;
}

.budget-cat-row:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  text-decoration: none;
}

.budget-cat-row .budget-cat-name {
  font-weight: 600;
  color: var(--text);
}

.budget-cat-row .budget-cat-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.budget-cat-row .budget-cat-chevron {
  margin-left: auto;
  color: var(--text-muted);
}

.budget-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.budget-doc-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.budget-doc-row .budget-doc-title {
  font-weight: 600;
  color: var(--text);
}

.budget-doc-row .budget-doc-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.budget-doc-row .budget-doc-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── Messages ────────────────────────────────────────────────────────── */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.thread-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}

.thread-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.thread-item.unread {
  border-left: 3px solid var(--gold);
}

.thread-subject {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.thread-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sla-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.sla-ok { background: #d1fae5; color: #065f46; }
.sla-warn { background: #fef3c7; color: #92400e; }
.sla-expired { background: #fef2f2; color: #991b1b; }

.message-bubble {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  margin-bottom: 1.25rem;
}

.message-bubble.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.message-bubble.received {
  align-self: flex-start;
  align-items: flex-start;
}

.message-content {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-bubble.sent .message-content {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.message-bubble.received .message-content {
  background: var(--white-pure);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.message-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  padding: 0 0.25rem;
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem;
  background: #f9f7f4;
  border-radius: var(--radius);
  min-height: 300px;
}

/* ─── Admin Layout ────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  width: 240px;
  background: var(--navy);
  flex-shrink: 0;
  padding: 1.5rem 0;
}

.admin-sidebar-title {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.admin-sidebar-title:first-child {
  margin-top: 0;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  color: rgba(248, 245, 240, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}

.admin-sidebar nav a .icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: var(--white);
  background: rgba(200, 169, 110, 0.1);
  padding-left: 1.5rem;
}

.admin-sidebar nav a.active {
  color: var(--gold);
  border-left: 3px solid var(--gold);
}

.admin-main {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  overflow: hidden;
}

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

.admin-page-title {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
}

/* ─── Stats Cards ─────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ─── Rich text content ───────────────────────────────────────────────── */
.rich-content {
  line-height: 1.7;
  color: var(--text);
}

.rich-content h2, .rich-content h3 {
  margin-top: 1.5em;
  color: var(--navy);
}

.rich-content ul, .rich-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.rich-content li {
  margin-bottom: 0.4em;
}

.rich-content mark {
  background: #fef3c7;
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(248, 245, 240, 0.6);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--gold);
}

/* ─── Pagination ──────────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--white-pure);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* ─── Totp / QR ───────────────────────────────────────────────────────── */
.qr-container {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.secret-code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  letter-spacing: 0.1em;
  word-break: break-all;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
.admin-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}

.admin-split-sidebar { grid-template-columns: minmax(0, 1fr) minmax(260px, 350px); }
.admin-split-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .header-inner {
    padding: 0 1rem;
    gap: 1rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .site-nav {
    display: none;
  }

  .lang-btn {
    min-width: 44px;
    min-height: 44px;
  }

  @media (max-width: 480px) {
    .header-inner {
      padding: 0 0.5rem;
      gap: 0.5rem;
    }

    .logo-text,
    .user-btn > span {
      display: none;
    }

    .header-actions {
      gap: 0.35rem;
    }
  }


  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white-pure);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0.25rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(10, 75, 50, 0.08);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    position: relative;
    padding: 0.1rem 0;
  }

  .bottom-nav-item .icon { width: 1.35rem; height: 1.35rem; }

  .bottom-nav-item.active { color: var(--green); }

  .bottom-nav-item .bottom-nav-dot {
    position: absolute;
    top: -1px;
    right: calc(50% - 15px);
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
  }

  .main-wrapper {
    padding: 1.25rem 1rem;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-split-sidebar,
  .admin-split-equal {
    grid-template-columns: minmax(0, 1fr);
  }

  .visibility-radio-group {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    padding: 0.75rem 0;
  }

  .admin-sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0 1rem;
  }

  .admin-sidebar nav a {
    white-space: nowrap;
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
  }

  .admin-sidebar nav a.active {
    border-left: none;
    border-bottom: 2px solid var(--gold);
    padding-left: 0.75rem;
  }

  .admin-main {
    padding: 1.25rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-hero {
    padding: 2rem 1.5rem;
  }

  .home-hero h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .auth-card { margin: 0; border-radius: 0; min-height: 100vh; }
  .auth-page { padding: 0; align-items: flex-start; }
}

/* ─── Utilities ───────────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-dark); }
.text-navy { color: var(--navy); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── Visibility Badges ───────────────────────────────────────────────── */
.badge-urgent   { background: #fee2e2; color: #991b1b; }
.badge-featured { background: #d1fae5; color: #065f46; }
.badge-standard { background: #f3f4f6; color: #6b7280; }

/* ─── Content Card Variants (by visibility) ───────────────────────────── */
.content-card.card-urgent {
  border-top: 3px solid #dc2626;
}
.content-card.card-featured {
  border-top: 3px solid var(--gold);
}

/* ─── Urgent Alert Strip (Home Dimension 2 = Urgent) ─────────────────── */
.urgent-strip {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.urgent-strip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.urgent-icon {
  font-size: 1.1rem;
  color: #dc2626;
}

.urgent-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #991b1b;
}

.urgent-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.urgent-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #fff1f2;
  border-radius: var(--radius);
  border: 1px solid #fecaca;
}

.urgent-item-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #dc2626;
  white-space: nowrap;
}

.urgent-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7f1d1d;
}

.urgent-item-date {
  font-size: 0.75rem;
  color: #991b1b;
  white-space: nowrap;
}

/* ─── Featured Grid (Home Dimension 2 = Featured) ────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.featured-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.featured-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.featured-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ftype-news     { background: #dbeafe; color: #1e40af; }
.ftype-update   { background: #fef3c7; color: #92400e; }
.ftype-facility { background: #d1fae5; color: #065f46; }
.ftype-project  { background: #ede9fe; color: #5b21b6; }

.featured-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.featured-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  flex: 1;
}

.featured-read-link {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.25rem;
}

.featured-read-link:hover {
  color: var(--navy);
  text-decoration: none;
}

/* ─── Facility Status Pills (Home) ────────────────────────────────────── */
.facility-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.facility-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
  transition: all 0.15s;
  box-shadow: var(--shadow);
}

.facility-status-pill:hover {
  border-color: var(--gold);
  text-decoration: none;
  color: var(--navy);
}

.facility-status-pill.open .facility-status-dot {
  background: #22c55e;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.facility-status-pill.closed .facility-status-dot {
  background: #ef4444;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.facility-status-pill.closed {
  opacity: 0.7;
}

.facility-status-pill.maintenance .facility-status-dot {
  background: var(--status-maintenance);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.facility-status-pill.maintenance {
  opacity: 0.85;
}

.facility-status-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Event Banner (Home Upcoming Event) ─────────────────────────────── */
.event-banner {
  margin-bottom: 2rem;
}

.event-banner-inner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}

.event-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  color: var(--gold);
}

.event-banner-content {
  flex: 1;
}

.event-banner-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.event-banner-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white-pure);
}

.event-banner-date {
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-top: 0.15rem;
}

/* ─── Community Tabs ──────────────────────────────────────────────────── */
.community-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
}

.community-tab {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.community-tab:hover {
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
}

.community-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  background: var(--white-pure);
  font-weight: 600;
}

.community-section {
  margin-bottom: 0.5rem;
}

/* ─── Admin Info Banner ───────────────────────────────────────────────── */
.admin-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #1e3a5f;
  line-height: 1.5;
}

.admin-info-banner-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}

/* ─── Visibility Radio Group (content edit) ───────────────────────────── */
.visibility-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.visibility-radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.visibility-radio:hover {
  border-color: var(--gold);
  background: #fdfaf5;
}

/* .selected is kept in sync with the radio's real checked state by JS
   (see app.js) so the highlight always matches what will actually be
   submitted, not just the value the page was rendered with. The :has()
   rule is a CSS-only backstop for anything that fires a change event
   without JS running (e.g. browser autofill/restore). */
.visibility-radio.selected,
.visibility-radio:has(input:checked) {
  border-color: var(--navy);
  background: var(--white);
}

.visibility-radio input[type=radio] {
  display: none;
}

.visibility-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.urgent-dot  { background: #dc2626; }
.featured-dot { background: #16a34a; }
.standard-dot { background: #9ca3af; }

.visibility-radio-label {
  display: flex;
  flex-direction: column;
}

.visibility-radio-label strong {
  font-size: 0.875rem;
  color: var(--navy);
}

.visibility-radio-label small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Filters group label ─────────────────────────────────────────────── */
.filters-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  align-self: center;
}

/* ─── Form hint inline ────────────────────────────────────────────────── */
.form-hint-inline {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ─── Home hero text override ─────────────────────────────────────────── */
.home-hero-text {
  position: relative;
  z-index: 1;
}

/* ─── Attachments (owner-facing) ──────────────────────────────────────── */
.attachment-list {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.attachment-list-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.attachment-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.attachment-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.attachment-link {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
}

.attachment-link:hover {
  color: var(--gold-dark);
}

.attachment-description {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── Admin: repeatable attachment upload rows ────────────────────────── */
.attachment-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ─── Responsive additions ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .urgent-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .urgent-item-type, .urgent-item-date { font-size: 0.7rem; }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .event-banner-inner {
    flex-wrap: wrap;
  }

  .community-tabs {
    gap: 0;
  }
}

/* ─── Offline shell (PWA) ──────────────────────────────────────────────── */
.offline-shell {
  max-width: 420px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1.5rem;
}

.offline-shell-icon {
  border-radius: 20%;
  margin-bottom: 1.25rem;
}

.offline-shell-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Toasts ───────────────────────────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
}

.toast {
  background: var(--navy);
  color: var(--white-pure);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast .icon { color: var(--gold); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* ─── Notification list ────────────────────────────────────────────────── */
.notif-list { display: flex; flex-direction: column; gap: 0.6rem; }

.notif-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
}

.notif-row.unread { border-left: 3px solid var(--green); background: rgba(15, 122, 82, 0.04); }
.notif-row.critical .notif-row-title { color: var(--red-ink); }

.notif-row-icon { color: var(--green); flex-shrink: 0; margin-top: 0.15rem; }
.notif-row-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.15rem; }
.notif-row-body { font-size: 0.85rem; color: var(--text-muted); }
.notif-row-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ─── Empty state ──────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}

.empty-state .icon { width: 2.25rem; height: 2.25rem; color: var(--border); margin-bottom: 0.75rem; }
.empty-state p:first-of-type { font-size: 1.05rem; color: var(--text); margin-bottom: 0.4rem; }
