﻿:root {
  --bg: #f4efe8;
  --surface: rgba(250, 245, 239, 0.88);
  --surface-strong: #fff9f2;
  --ink: #11212f;
  --muted: #586772;
  --line: rgba(17, 33, 47, 0.12);
  --brand: #1f9ec4;
  --brand-dark: #0b617e;
  --accent: #d13434;
  --shadow: 0 24px 70px rgba(17, 33, 47, 0.12);
  --radius-xl: 30px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 158, 196, 0.22), transparent 24%),
    radial-gradient(circle at right 10% top 25%, rgba(209, 52, 52, 0.12), transparent 18%),
    linear-gradient(180deg, #f8f2ea 0%, #efe6dc 100%);
}
a, button, input, textarea, select { font: inherit; }
.backdrop-orb { position: fixed; border-radius: 999px; filter: blur(18px); opacity: .45; pointer-events: none; }
.orb-a { width: 220px; height: 220px; background: rgba(31, 158, 196, 0.2); top: 80px; left: -30px; }
.orb-b { width: 280px; height: 280px; background: rgba(209, 52, 52, 0.15); right: -70px; top: 360px; }
.shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 40px; position: relative; z-index: 1; }
.card, .site-header, .flash {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.site-header, .card, .flash { border-radius: var(--radius-xl); }
.site-header {
  position: relative; z-index: 15;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px 18px; margin-bottom: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 16px; background: rgba(255,255,255,.75); padding: 6px; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: var(--muted); }
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav a { color: inherit; text-decoration: none; font-weight: 700; }
.nav a.active { color: var(--brand-dark); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; font-weight: 700;
}
.button-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.button-secondary { background: rgba(255,255,255,.5); color: var(--ink); border-color: var(--line); }
.button-block { width: 100%; }
.flash { padding: 14px 18px; margin-bottom: 20px; }
.flash-success { border-left: 4px solid #2d915a; }
.flash-error { border-left: 4px solid var(--accent); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.hero-copy, .hero-side, .section-block, .feature-card { padding: 28px; }
.eyebrow {
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: .14em;
  font-size: .77rem; font-weight: 800; color: var(--brand-dark);
}
h1, h2, h3 {
  margin: 0; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; line-height: .95;
}
h1 { font-size: clamp(3rem, 7vw, 5.8rem); max-width: 9ch; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead, .section-copy, .list-card p, .feature-card p, .council-card p, .notice-box p, .auth-card p, .empty-copy {
  color: var(--muted); line-height: 1.65;
}
.hero-actions, .stack, .form-stack, .list-stack { display: grid; gap: 12px; }
.hero-actions { grid-template-columns: repeat(2, max-content); margin-top: 26px; }
.hero-stats, .feature-grid, .columns, .dashboard-grid, .profile-meta, .inline-fields { display: grid; gap: 18px; }
.search-grid, .projects-list { display: grid; gap: 18px; }
.hero-stats { grid-template-columns: repeat(3, 1fr); margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 2rem; color: var(--accent); font-family: "Barlow Condensed", sans-serif; }
.hero-seal { width: min(240px, 100%); object-fit: contain; margin-bottom: 18px; }
.notice-box, .list-card {
  padding: 16px; border-radius: var(--radius-md); background: rgba(255,255,255,.55); border: 1px solid var(--line);
}
.section-block { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.council-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.council-card { display: grid; gap: 12px; padding: 22px; border-radius: 24px; background: rgba(255,255,255,.42); border: 1px solid var(--line); }
.council-photo, .profile-photo { width: 100%; border-radius: 20px; object-fit: cover; background: linear-gradient(180deg, #d9e7ee, #f6f0e9); }
.council-photo { aspect-ratio: 1 / 1.1; }
.profile-photo { max-width: 320px; aspect-ratio: 1 / 1.08; }
.tag { margin: 0; color: var(--accent); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.feature-grid { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.columns, .dashboard-grid, .profile-card { grid-template-columns: 1fr 1fr; }
.auth-wrap { display: grid; place-items: center; min-height: 70vh; }
.auth-card { width: min(560px, 100%); padding: 28px; }
.single-form { width: min(760px, 100%); margin-inline: auto; }
.form-page-hero, .auth-gate { text-align: left; }
.auth-gate { display: grid; gap: 16px; }
.search-grid { grid-template-columns: repeat(6, 1fr); align-items: end; }
.search-actions { display: grid; gap: 12px; }
.project-card { padding: 22px; }
.project-top, .project-meta, .project-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.project-meta, .project-badges { color: var(--muted); }
.search-grid-management { grid-template-columns: repeat(5, 1fr); }
.management-actions, .status-form {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.management-actions { margin-top: 14px; }
.status-form select { width: auto; min-width: 150px; }
.status-form .button { min-height: 42px; }
.chip.read-only { cursor: default; }
label span { display: block; margin-bottom: 8px; font-weight: 700; }
input, textarea, select {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-strong); color: var(--ink); outline: none;
}
textarea { min-height: 110px; resize: vertical; }
.list-card strong, .list-card span, .profile-meta strong, .site-footer strong { display: block; }
.list-card span, .profile-meta span, .site-footer small { color: var(--muted); }
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 8px 0; margin-top: 24px; color: var(--muted);
}
.footer-logo { width: 110px; object-fit: contain; }
.not-found { text-align: center; }

@media (max-width: 1080px) {
  .hero, .council-grid, .feature-grid, .columns, .dashboard-grid, .profile-card { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid-management { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 18px, 1240px); }
  .site-header, .nav, .section-head, .site-footer { flex-direction: column; align-items: stretch; }
  .hero-actions, .hero-stats, .inline-fields, .search-grid { grid-template-columns: 1fr; }
  .search-grid-management, .management-actions, .status-form { display: grid; }
  .card, .section-block, .feature-card, .site-header { padding: 18px; }
  h1 { max-width: none; }
}

