:root {
  --background: #f7f4ee;
  --foreground: #172033;
  --ink: #10294b;
  --brick: #b73a2f;
  --leaf: #2f704f;
  --sky: #d7ebf7;
  --line: rgba(23, 32, 51, 0.14);
  --paper: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.hero {
  min-height: 88vh;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(16, 41, 75, 0.94), rgba(16, 41, 75, 0.66)),
    radial-gradient(circle at 80% 20%, rgba(215, 235, 247, 0.42), transparent 32%),
    linear-gradient(135deg, #315f78, #10294b);
  color: #fffdf8;
}

.topbar, .hero-grid, .section, .split-section, .services-band, .contact-section {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand small { color: rgba(255, 253, 248, 0.76); font-size: 13px; margin-top: 2px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  border: 1px solid rgba(255, 253, 248, 0.26);
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.92);
  font-size: 14px;
  padding: 10px 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: end;
  margin-top: 130px;
}

.hero-copy { max-width: 740px; }
.eyebrow {
  color: var(--brick);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ffd9c8; }

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: 0;
}
h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
}

.lede {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 20px;
  line-height: 1.55;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 800;
}
.primary { background: var(--brick); color: #fffdf8; }
.secondary { border: 1px solid currentColor; background: rgba(255, 253, 248, 0.12); color: inherit; }
.ink { background: transparent; color: var(--ink); }

.service-panel {
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--foreground);
  padding: 24px;
}
.panel-label { color: var(--leaf); font-size: 13px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.hours { display: grid; gap: 12px; margin: 24px 0 0; }
.hours div { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.hours dt { color: rgba(23, 32, 51, 0.7); }
.hours dd { margin: 0; text-align: right; font-weight: 800; }

.alert-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 24px;
  background: var(--brick);
  color: #fffdf8;
}
.alert-band img {
  width: 74px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 253, 248, 0.28);
}
.alert-band span { max-width: 760px; }
.alert-band a { border-bottom: 2px solid currentColor; font-weight: 800; }

.section, .split-section, .services-band, .contact-section { padding: 76px 24px; }
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.compact-public-heading { margin-top: 34px; }
.stacked { display: block; margin-bottom: 0; }

.quick-grid, .agenda-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.quick-card, .news-item, .agenda-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.quick-card { min-height: 245px; padding: 22px; }
.quick-card p { color: rgba(23, 32, 51, 0.72); line-height: 1.5; }
.quick-card a { color: var(--brick); font-weight: 800; }
.public-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin: -6px 0 26px;
}
.public-search-form label {
  display: grid;
  gap: 7px;
  color: rgba(23, 32, 51, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
}
.public-search-form input {
  min-height: 48px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
}
.public-search-form button, .public-search-form a {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.public-search-form button {
  border: 0;
  background: var(--ink);
  color: white;
}
.public-search-form a {
  color: var(--ink);
  background: rgba(23, 32, 51, 0.06);
}

.form-download-box {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(18, 111, 169, 0.18);
  border-radius: 12px;
  background: rgba(222, 239, 248, 0.58);
}

.form-download-box span {
  color: rgba(23, 32, 51, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 620px) {
  .public-search-form {
    grid-template-columns: 1fr;
  }

  .public-search-form button,
  .public-search-form a {
    width: 100%;
  }
}

.opportunity-admin { grid-column: 1 / -1; width: 100%; }
.opportunity-tabs { display:flex; gap:0; margin-bottom:22px; border-bottom:1px solid #d8e1e5; }
.opportunity-tabs a { padding:13px 18px; color:#506873; font-weight:800; text-decoration:none; }
.opportunity-tabs a.active { border-bottom:3px solid #007b78; color:#062f4a; }
.opportunity-filters { align-items:end; margin:18px 0 22px; }
.opportunity-filters .button { min-height:46px; }
.opportunity-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.opportunity-card { min-height:300px; }
.opportunity-card > p { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.opportunity-card > small { margin-top:auto; color:#506873; font-weight:750; }
.opportunity-card-actions form { display:inline-flex; }
.opportunity-detail { max-width:900px; }
.opportunity-detail > p { color:#506873; line-height:1.65; }
.opportunity-form { max-width:920px; }
.opportunity-subtabs { margin-top:-12px; }
.opportunity-subtabs a { font-size:13px; }
.opportunity-admin {
  padding: 26px 30px 48px;
  background: #edf2f3;
  font-family: "Segoe UI", Arial, sans-serif;
}
.opportunity-admin .opportunity-admin-header {
  min-height: 132px;
  margin: 0 0 20px;
  border: 0;
  border-left: 5px solid #16a6a1;
  background: #082f49;
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.14);
  color: #fff;
  padding: 24px 28px;
}
.opportunity-admin .opportunity-admin-header h1 { margin: 2px 0 5px; color: #fff; font-size: 34px; letter-spacing: 0; }
.opportunity-admin .opportunity-admin-header p { color: rgba(255,255,255,.76); }
.opportunity-admin .opportunity-admin-header .eyebrow { color: #71d6d1; font-size: 11px; letter-spacing: .08em; }
.opportunity-admin .opportunity-admin-header .button { min-height: 42px; border-color: rgba(255,255,255,.5); background: transparent; color: #fff; padding: 10px 15px; }
.opportunity-admin .opportunity-admin-header .button:hover { background: #fff; color: #082f49; }
.opportunity-admin > .opportunity-tabs {
  width: max-content;
  max-width: 100%;
  gap: 5px;
  margin: 0 0 14px;
  border: 1px solid #d2dde1;
  border-radius: 6px;
  background: #fff;
  padding: 5px;
}
.opportunity-admin > .opportunity-tabs a { border: 0; border-radius: 4px; padding: 10px 17px; color: #536b76; font-size: 14px; }
.opportunity-admin > .opportunity-tabs a.active { border: 0; background: #082f49; color: #fff; }
.opportunity-admin > .opportunity-subtabs {
  width: 100%;
  margin: 0 0 20px;
  border: 0;
  border-bottom: 1px solid #ccd9de;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.opportunity-admin > .opportunity-subtabs a { border-radius: 0; padding: 11px 16px; font-size: 13px; }
.opportunity-admin > .opportunity-subtabs a.active { border-bottom: 3px solid #008b87; background: transparent; color: #082f49; }
.opportunity-admin .single-module-panel,
.opportunity-admin .detail-module-panel { min-height: 0; }
.opportunity-admin .single-module-panel .module-list-panel,
.opportunity-admin .module-detail-card {
  border: 1px solid #d7e0e3;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8,47,73,.06);
  padding: 22px 24px 26px;
}
.opportunity-admin .module-toolbar { align-items: center; padding-bottom: 18px; }
.opportunity-admin .module-toolbar h2 { margin: 0; color: #082f49; font-size: 27px; }
.opportunity-admin .module-toolbar .button { min-height: 42px; padding: 10px 16px; }
.opportunity-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 230px) 130px auto;
  align-items: end;
  gap: 13px;
  margin: 18px 0 24px;
  border: 1px solid #d9e3e6;
  border-radius: 6px;
  background: #f4f8f8;
  padding: 16px;
}
.opportunity-filters label { display: grid; gap: 7px; min-width: 0; color: #163d52; font-size: 12px; font-weight: 750; }
.opportunity-filters input,
.opportunity-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b8c9d0;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
}
.opportunity-filters input:focus,
.opportunity-filters select:focus { border-color: #008b87; box-shadow: 0 0 0 3px rgba(0,139,135,.12); outline: 0; }
.opportunity-filters .button { min-height: 44px; border: 0; border-radius: 5px; background: #087ca7; padding: 10px 16px; }
.opportunity-filters .button:hover { background: #075f83; }
.opportunity-reset { align-self: center; color: #536b76; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.opportunity-admin .opportunity-grid { gap: 16px; margin-top: 0; }
.opportunity-admin .opportunity-card {
  min-height: 270px;
  gap: 10px;
  border: 1px solid #d8e1e4;
  border-top: 4px solid #008b87;
  border-radius: 6px;
  padding: 18px;
}
.opportunity-admin .opportunity-card:hover { border-color: #9fc1c5; box-shadow: 0 10px 24px rgba(8,47,73,.09); transform: translateY(-2px); }
.opportunity-admin .opportunity-card > strong { color: #082f49; font-size: 19px; line-height: 1.28; }
.opportunity-admin .opportunity-card .category-pill { color: #087ca7; font-size: 11px; font-weight: 800; }
.opportunity-admin .opportunity-card mark.status { border-radius: 4px; background: #e6f4f2; color: #08645f; padding: 6px 8px; font-size: 11px; font-weight: 800; }
.opportunity-admin .opportunity-card .admin-card-actions { justify-content: flex-start; padding-top: 13px; border-top: 1px solid #e1e8ea; }
.opportunity-admin .opportunity-card .admin-card-actions .button { min-height: 36px; padding: 8px 11px; font-size: 12px; }
.opportunity-audit-list { display:grid; }
.opportunity-audit-list article { display:grid; grid-template-columns:145px minmax(0,1fr) 180px; gap:18px; align-items:start; padding:17px 4px; border-bottom:1px solid #e1e8ea; }
.opportunity-audit-list time,.opportunity-audit-list span { color:#607681; font-size:12px; font-weight:750; }
.opportunity-audit-list strong { color:#082f49; font-size:14px; }
.opportunity-audit-list p { margin:5px 0 0; color:#536b76; font-size:13px; line-height:1.45; }
.permission-choice { grid-template-columns:22px 1fr!important; align-items:start; border:1px solid rgba(23,32,51,.12); border-radius:7px; background:#f4f8f8; padding:15px; }
.permission-choice input { width:18px!important; min-height:18px!important; margin-top:2px; }
.permission-choice span { display:grid; gap:4px; }
.permission-choice small { color:rgba(23,32,51,.62); font-weight:600; line-height:1.45; }
@media (max-width:980px){.opportunity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:980px){.opportunity-filters{grid-template-columns:1fr 220px 130px}.opportunity-reset{grid-column:1/-1}.opportunity-admin .opportunity-admin-header{align-items:flex-start}.opportunity-admin .opportunity-admin-header .button{flex-shrink:0}}
@media (max-width:620px){.opportunity-admin{padding:16px}.opportunity-admin .opportunity-admin-header{min-height:0;align-items:flex-start;flex-direction:column;padding:21px}.opportunity-admin .opportunity-admin-header h1{font-size:28px}.opportunity-admin .opportunity-admin-header .button{width:100%}.opportunity-admin > .opportunity-tabs{display:grid;width:100%;grid-template-columns:repeat(3,1fr)}.opportunity-tabs a{text-align:center}.opportunity-admin > .opportunity-subtabs{display:grid;grid-template-columns:1fr 1fr}.opportunity-filters{grid-template-columns:1fr;padding:14px}.opportunity-reset{grid-column:auto}.opportunity-grid{grid-template-columns:1fr}.opportunity-admin .single-module-panel .module-list-panel,.opportunity-admin .module-detail-card{padding:18px}.opportunity-admin .module-toolbar{align-items:flex-start}.opportunity-admin .module-toolbar .button{flex-shrink:0}.opportunity-audit-list article{grid-template-columns:1fr;gap:5px}}

/* Public portal v1: calm civic navigation over a real Lyon city view. */
:root {
  --background: #f4f7f7;
  --foreground: #183142;
  --ink: #062f4a;
  --brick: #e65e42;
  --leaf: #007b78;
  --sky: #dceff0;
  --line: rgba(6, 47, 74, 0.15);
  --paper: #ffffff;
}

body { background: var(--background); }

.hero {
  position: relative;
  min-height: 76vh;
  padding: 24px;
  isolation: isolate;
  background: url("images/lyon-hero-v1.png") center center / cover no-repeat;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(4, 31, 48, 0.64);
}

.topbar { padding: 4px 0; }

.brand-mark {
  border-radius: 6px;
  background: #e65e42;
  color: #ffffff;
}

.nav-links { gap: 20px; }

.nav-links a {
  border: 0;
  border-radius: 0;
  padding: 10px 0;
  font-weight: 700;
}

.nav-links a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  padding: 10px 14px;
}

.hero-grid {
  display: block;
  margin-top: 120px;
}

.hero-copy { max-width: 720px; }

.hero .eyebrow {
  color: #bde4e3;
  margin-bottom: 18px;
}

.hero h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: 74px;
  line-height: 0.98;
}

.hero-statement {
  margin-bottom: 22px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
}

.lede { max-width: 620px; font-size: 19px; }

.hero .primary { background: #e65e42; }
.hero .secondary { border-color: rgba(255, 255, 255, 0.74); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-facts span {
  display: grid;
  gap: 5px;
  min-width: 190px;
  padding: 16px 24px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.hero-facts strong { color: #ffffff; font-size: 15px; }

.section, .split-section, .services-band, .contact-section { padding-top: 88px; padding-bottom: 88px; }

.quick-card, .news-item, .agenda-item { border-color: rgba(6, 47, 74, 0.11); }
.quick-card { min-height: 225px; }
.quick-card a, .news-item strong { color: #007b78; }
.muted { background: #e4eeee; }

.services-band { background: #062f4a; color: #ffffff; }
.services-band h2, .services-band li { color: #ffffff; }
.services-band .eyebrow { color: #8bd1cd; }

.contact-section { background: #ffffff; }

@media (max-width: 760px) {
  .hero { min-height: 700px; padding: 18px; background-position: 63% center; }
  .topbar { align-items: flex-start; }
  .nav-links { display: none; }
  .hero-grid { margin-top: 112px; }
  .hero h1 { font-size: 48px; }
  .hero-statement { font-size: 24px; }
  .hero-facts { margin-top: 38px; }
  .hero-facts span { min-width: 50%; padding-right: 14px; }
}

/* Live municipal public site: final cascade, kept after legacy dashboard styles. */
.municipal-header { position: relative; z-index: 10; max-width: 1180px; margin: 20px auto 0; background: #ffffff; color: #122b3c; box-shadow: 0 10px 28px rgba(9, 37, 52, 0.12); }
.municipal-header-overlay { position: absolute; top: 20px; left: 50%; width: min(1180px, calc(100% - 40px)); margin: 0; transform: translateX(-50%); }
.municipal-main-nav { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto 52px; align-items: stretch; min-height: 94px; }
.municipal-brand-tile { display: grid; place-items: center; align-content: center; gap: 6px; background: #e65e42; color: #ffffff; font-weight: 900; text-decoration: none; }
.municipal-brand-tile span { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; font-size: 22px; }
.municipal-brand-tile small { font-size: 9px; letter-spacing: 0.08em; }
.municipal-primary-links { display: flex; align-items: stretch; min-width: 0; padding: 0; }
.municipal-menu-item { position: relative; display: flex; min-width: 0; border-right: 1px solid #e1e7e8; }
.municipal-menu-item > a { display: grid; align-content: center; gap: 4px; width: 100%; min-width: 122px; padding: 17px 14px 14px; color: #132d3d; text-decoration: none; }
.municipal-menu-item > a strong { display: block; font-size: 16px; letter-spacing: 0; }
.municipal-menu-item > a small { display: block; margin-top: 0; color: #58707a; font-size: 12px; font-weight: 650; }
.municipal-menu-item > a:hover, .municipal-menu-item > a.active { box-shadow: inset 0 -3px 0 #e65e42; }
.municipal-submenu { position: absolute; top: 94px; left: 0; z-index: 20; display: none; width: 238px; padding: 9px; background: #ffffff; box-shadow: 0 16px 34px rgba(6, 37, 55, 0.19); }
.municipal-submenu a { display: block; padding: 10px 11px; color: #263f4c; font-size: 13px; font-weight: 760; text-decoration: none; }
.municipal-submenu a:hover { background: #edf5f4; color: #007b78; }
.municipal-menu-item:hover .municipal-submenu, .municipal-menu-item:focus-within .municipal-submenu { display: block; }
.municipal-nav-actions { display: flex; align-items: stretch; gap: 0; padding: 0; font-size: 13px; font-weight: 800; white-space: normal; }
.municipal-nav-actions > a { display: grid; align-content: center; padding: 0 16px; color: #183142; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.municipal-nav-actions > .municipal-report-link { display: grid; min-width: 154px; min-height: 0; background: #ffc437; color: #18262d; font-size: 14px; }
.municipal-nav-actions > a:hover { background: #edf5f4; }
.municipal-nav-actions > .municipal-report-link:hover { background: #f2b72a; }
.municipal-mobile-toggle { display: none; border: 0; background: #ffffff; color: #173844; font-size: 25px; cursor: pointer; }
.municipal-secondary-nav { display: flex; min-height: 46px; align-items: center; gap: 30px; padding: 0 22px 0 156px; border-top: 1px solid #e3e9ea; font-size: 13px; font-weight: 850; }
.municipal-secondary-nav a { color: #38535e; }
.hero-home { margin-top: 0; padding-top: 0; }
.hero-home .hero-grid { margin-top: 0; padding-top: 178px; }
.public-footer-shell { margin-top: 0; background: #102c3d; }
.public-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; min-height: 164px; margin: 0 auto; gap: 28px; padding: 34px 24px; border: 0; }
.public-footer strong { color: #ffffff; font-size: 21px; }
.public-footer p { margin: 8px 0 0; color: #b9cdd1; }
.public-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; color: #ffffff; font-weight: 800; }
.public-footer-links a { color: #ffffff; text-decoration: none; }
.public-footer-links a:hover { color: #9ed5d2; }
@media (max-width: 900px) {
  .municipal-header, .municipal-header-overlay { position: relative; top: auto; left: auto; width: 100%; margin: 0; transform: none; box-shadow: none; }
  .municipal-main-nav { position: relative; grid-template-columns: 72px minmax(0, 1fr) 54px; min-height: 72px; }
  .municipal-brand-tile span { width: 40px; height: 40px; font-size: 18px; }
  .municipal-brand-tile small, .municipal-nav-actions, .municipal-secondary-nav { display: none; }
  .municipal-primary-links { display: none; }
  .municipal-mobile-toggle { display: grid; place-items: center; }
  .municipal-header.menu-open .municipal-primary-links { position: absolute; top: 72px; right: 0; left: 0; z-index: 30; display: block; background: #ffffff; box-shadow: 0 16px 28px rgba(6, 37, 55, 0.18); }
  .municipal-header.menu-open .municipal-menu-item { display: block; border-right: 0; border-bottom: 1px solid #e2e8e9; }
  .municipal-header.menu-open .municipal-menu-item > a { min-width: 0; padding: 15px 18px; }
  .municipal-header.menu-open .municipal-submenu { display: none; }
  .hero-home .hero-grid { margin-top: 0; padding-top: 96px; }
}
@media (max-width: 760px) {
  .public-footer { align-items: flex-start; flex-direction: column; min-height: auto; padding: 32px 18px; }
  .public-footer-links { justify-content: flex-start; }
}

/* Last public-site rules. They intentionally follow the historic stylesheet. */
.municipal-header {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 20px auto 0;
  background: #ffffff;
  color: #122b3c;
  box-shadow: 0 10px 28px rgba(9, 37, 52, 0.12);
}

.municipal-header-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  margin: 0;
  transform: translateX(-50%);
}

.municipal-main-nav {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto 52px;
  align-items: stretch;
  min-height: 94px;
}

.municipal-brand-tile { display: grid; place-items: center; align-content: center; gap: 6px; background: #e65e42; color: #ffffff; font-weight: 900; text-decoration: none; }
.municipal-brand-tile span { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; font-size: 22px; }
.municipal-brand-tile small { font-size: 9px; letter-spacing: 0.08em; }

.municipal-primary-links { display: flex; align-items: stretch; min-width: 0; padding: 0; }
.municipal-menu-item { position: relative; display: flex; min-width: 0; border-right: 1px solid #e1e7e8; }
.municipal-menu-item > a { display: grid; align-content: center; gap: 4px; width: 100%; min-width: 122px; padding: 17px 14px 14px; color: #132d3d; text-decoration: none; }
.municipal-menu-item > a strong { display: block; font-size: 16px; letter-spacing: 0; }
.municipal-menu-item > a small { display: block; margin-top: 0; color: #58707a; font-size: 12px; font-weight: 650; }
.municipal-menu-item > a:hover, .municipal-menu-item > a.active { box-shadow: inset 0 -3px 0 #e65e42; }

.municipal-submenu { position: absolute; top: 94px; left: 0; z-index: 20; display: none; width: 238px; padding: 9px; background: #ffffff; box-shadow: 0 16px 34px rgba(6, 37, 55, 0.19); }
.municipal-submenu a { display: block; padding: 10px 11px; color: #263f4c; font-size: 13px; font-weight: 760; text-decoration: none; }
.municipal-submenu a:hover { background: #edf5f4; color: #007b78; }
.municipal-menu-item:hover .municipal-submenu, .municipal-menu-item:focus-within .municipal-submenu { display: block; }

.municipal-nav-actions { display: flex; align-items: stretch; gap: 0; padding: 0; font-size: 13px; font-weight: 800; white-space: normal; }
.municipal-nav-actions > a { display: grid; align-content: center; padding: 0 16px; color: #183142; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.municipal-nav-actions > .municipal-report-link { display: grid; min-width: 154px; min-height: 0; background: #ffc437; color: #18262d; font-size: 14px; }
.municipal-nav-actions > a:hover { background: #edf5f4; }
.municipal-nav-actions > .municipal-report-link:hover { background: #f2b72a; }
.municipal-mobile-toggle { display: none; border: 0; background: #ffffff; color: #173844; font-size: 25px; cursor: pointer; }
.municipal-secondary-nav { display: flex; min-height: 46px; align-items: center; gap: 30px; padding: 0 22px 0 156px; border-top: 1px solid #e3e9ea; font-size: 13px; font-weight: 850; }
.municipal-secondary-nav a { color: #38535e; }

.hero-home { margin-top: 0; padding-top: 0; }
.hero-home .hero-grid { margin-top: 0; padding-top: 178px; }

.public-footer-shell { margin-top: 0; background: #102c3d; }
.public-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; min-height: 164px; margin: 0 auto; gap: 28px; padding: 34px 24px; border: 0; }
.public-footer strong { color: #ffffff; font-size: 21px; }
.public-footer p { margin: 8px 0 0; color: #b9cdd1; }
.public-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; color: #ffffff; font-weight: 800; }
.public-footer-links a { color: #ffffff; text-decoration: none; }
.public-footer-links a:hover { color: #9ed5d2; }

@media (max-width: 900px) {
  .municipal-header, .municipal-header-overlay { position: relative; top: auto; left: auto; width: 100%; margin: 0; transform: none; box-shadow: none; }
  .municipal-main-nav { position: relative; grid-template-columns: 72px minmax(0, 1fr) 54px; min-height: 72px; }
  .municipal-brand-tile span { width: 40px; height: 40px; font-size: 18px; }
  .municipal-brand-tile small, .municipal-nav-actions, .municipal-secondary-nav { display: none; }
  .municipal-primary-links { display: none; }
  .municipal-mobile-toggle { display: grid; place-items: center; }
  .municipal-header.menu-open .municipal-primary-links { position: absolute; top: 72px; right: 0; left: 0; z-index: 30; display: block; background: #ffffff; box-shadow: 0 16px 28px rgba(6, 37, 55, 0.18); }
  .municipal-header.menu-open .municipal-menu-item { display: block; border-right: 0; border-bottom: 1px solid #e2e8e9; }
  .municipal-header.menu-open .municipal-menu-item > a { min-width: 0; padding: 15px 18px; }
  .municipal-header.menu-open .municipal-submenu { display: none; }
  .hero-home .hero-grid { margin-top: 0; padding-top: 96px; }
}

@media (max-width: 760px) {
  .public-footer { align-items: flex-start; flex-direction: column; min-height: auto; padding: 32px 18px; }
  .public-footer-links { justify-content: flex-start; }
}

/* Public navigation v2: the homepage header sits over the hero, interior pages retain it in flow. */
.municipal-header {
  max-width: 1180px;
  border: 0;
  border-radius: 0;
}

.municipal-header-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  margin: 0;
  transform: translateX(-50%);
}

.municipal-main-nav {
  grid-template-columns: 132px minmax(0, 1fr) auto 52px;
  min-height: 94px;
}

.municipal-brand-tile {
  gap: 6px;
  background: #e65e42;
  text-decoration: none;
}

.municipal-brand-tile span {
  width: 52px;
  height: 52px;
  font-size: 22px;
}

.municipal-primary-links {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.municipal-menu-item {
  position: relative;
  display: flex;
  min-width: 0;
  border-right: 1px solid #e1e7e8;
}

.municipal-menu-item > a {
  display: grid;
  align-content: center;
  gap: 4px;
  width: 100%;
  min-width: 122px;
  padding: 17px 14px 14px;
  color: #132d3d;
  text-decoration: none;
}

.municipal-menu-item > a strong {
  font-size: 16px;
  letter-spacing: 0;
}

.municipal-menu-item > a small {
  color: #58707a;
  font-size: 12px;
  font-weight: 650;
}

.municipal-menu-item > a:hover,
.municipal-menu-item > a.active {
  box-shadow: inset 0 -3px 0 #e65e42;
}

.municipal-submenu {
  position: absolute;
  top: 84px;
  left: 0;
  z-index: 20;
  display: none;
  width: 238px;
  padding: 9px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(6, 37, 55, 0.19);
}

.municipal-submenu a {
  display: block;
  padding: 10px 11px;
  color: #263f4c;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.municipal-submenu a:hover { background: #edf5f4; color: #007b78; }
.municipal-menu-item:hover .municipal-submenu,
.municipal-menu-item:focus-within .municipal-submenu { display: block; }

.municipal-nav-actions { display: flex; align-items: stretch; }
.municipal-nav-actions > a { display: grid; align-content: center; padding: 0 16px; color: #183142; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.municipal-nav-actions > .municipal-report-link { min-width: 154px; background: #ffc437; color: #18262d; font-size: 14px; }
.municipal-nav-actions > a:hover { background: #edf5f4; }
.municipal-nav-actions > .municipal-report-link:hover { background: #f2b72a; }

.municipal-mobile-toggle { display: none; border: 0; background: #ffffff; color: #173844; font-size: 25px; cursor: pointer; }
.municipal-secondary-nav { padding-left: 156px; gap: 30px; }

.hero-home { margin-top: 0; padding-top: 0; }
.hero-home .hero-grid { margin-top: 0; padding-top: 178px; }

@media (max-width: 900px) {
  .municipal-header,
  .municipal-header-overlay {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0;
    transform: none;
    box-shadow: none;
  }

  .municipal-main-nav { position: relative; grid-template-columns: 72px minmax(0, 1fr) 54px; min-height: 72px; }
  .municipal-brand-tile span { width: 40px; height: 40px; font-size: 18px; }
  .municipal-brand-tile small, .municipal-nav-actions, .municipal-secondary-nav { display: none; }
  .municipal-primary-links { display: none; }
  .municipal-mobile-toggle { display: grid; place-items: center; }
  .municipal-header.menu-open .municipal-primary-links { position: absolute; top: 72px; left: 0; right: 0; z-index: 30; display: block; background: #ffffff; box-shadow: 0 16px 28px rgba(6, 37, 55, 0.18); }
  .municipal-header.menu-open .municipal-menu-item { display: block; border-bottom: 1px solid #e2e8e9; border-right: 0; }
  .municipal-header.menu-open .municipal-menu-item > a { min-width: 0; padding: 15px 18px; }
  .municipal-header.menu-open .municipal-submenu { display: none; }
  .hero-home .hero-grid { margin-top: 0; padding-top: 96px; }
}

.public-header { background: #ffffff; border-bottom: 1px solid rgba(6, 47, 74, 0.1); }
.public-nav, .page-intro, .content-page, .home-services, .home-preview, .public-footer { max-width: 1180px; margin: 0 auto; }
.public-nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 16px 24px; }
.public-brand .brand-mark { color: #ffffff; }
.public-brand small { color: rgba(6, 47, 74, 0.63); }
.public-nav-links { display: flex; align-items: center; gap: 20px; }
.public-nav-links a { color: #183142; font-size: 14px; font-weight: 750; }
.public-nav-links a.active { color: #007b78; }
.public-nav-links .public-account-link { border: 1px solid #062f4a; border-radius: 6px; padding: 10px 14px; }
.page-intro { padding: 82px 24px 56px; }
.page-intro h1 { max-width: 850px; margin-bottom: 18px; font-size: 56px; line-height: 1; }
.page-intro > p:last-child { max-width: 680px; color: rgba(24, 49, 66, 0.72); font-size: 19px; line-height: 1.55; }
.content-page { padding: 0 24px 92px; }
.news-list-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-list-wide .news-item { display: block; padding: 0; overflow: hidden; }
.news-list-wide .news-item > img { width: 100%; height: 180px; border-radius: 0; object-fit: cover; }
.news-list-wide .news-item > div { padding: 18px; }
.news-list-wide .news-item > span { margin: 18px; }
.procedure-list { display: grid; gap: 12px; }
.procedure-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px; border: 1px solid rgba(6, 47, 74, 0.13); border-radius: 8px; background: #ffffff; }
.procedure-item h2 { margin: 10px 0 8px; font-size: 24px; }
.procedure-item p, .procedure-item small { color: rgba(24, 49, 66, 0.7); line-height: 1.5; }
.procedure-actions { display: grid; justify-items: end; gap: 12px; }
.procedure-actions > a:first-child { color: #007b78; font-weight: 800; }
.empty-public-state { padding: 30px; border: 1px dashed rgba(6, 47, 74, 0.24); background: #ffffff; }
.contact-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-page-grid article { padding: 24px; border-top: 4px solid #007b78; background: #ffffff; }
.contact-page-grid h2 { margin-bottom: 16px; font-size: 24px; }
.contact-page-grid p { color: rgba(24, 49, 66, 0.74); line-height: 1.6; }
.contact-page-grid a:not(.button) { color: #007b78; font-weight: 800; }
.home-services, .home-preview { padding: 84px 24px; }
.home-services { background: #ffffff; max-width: none; padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); }
.home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(6, 47, 74, 0.15); }
.home-service-grid a { display: grid; gap: 10px; min-height: 190px; padding: 26px 24px 26px 0; border-right: 1px solid rgba(6, 47, 74, 0.15); color: #183142; }
.home-service-grid a + a { padding-left: 24px; }
.home-service-grid a:last-child { border-right: 0; }
.home-service-grid strong { font-size: 21px; color: #062f4a; }
.home-service-grid span { color: rgba(24, 49, 66, 0.7); line-height: 1.45; }
.home-service-grid b, .text-link { color: #007b78; font-size: 14px; }
.home-preview { max-width: 1180px; }
.home-preview.muted { max-width: none; padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); }
.public-footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 40px 24px; border-top: 1px solid rgba(6, 47, 74, 0.13); }
.public-footer strong { color: #062f4a; }
.public-footer p { color: rgba(24, 49, 66, 0.66); margin: 8px 0 0; }
.public-footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: #007b78; font-weight: 800; }
@media (max-width: 760px) {
  .public-nav { padding: 14px 18px; }
  .public-nav-links { display: none; }
  .page-intro { padding: 58px 18px 38px; }
  .page-intro h1 { font-size: 40px; }
  .content-page, .home-preview { padding: 0 18px 58px; }
  .home-services { padding: 58px 18px; }
  .home-preview.muted { padding: 58px 18px; }
  .news-list-wide, .contact-page-grid, .home-service-grid { grid-template-columns: 1fr; }
  .home-service-grid a, .home-service-grid a + a { min-height: auto; padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(6, 47, 74, 0.15); }
  .procedure-item { grid-template-columns: 1fr; }
  .procedure-actions { justify-items: start; }
  .public-footer { align-items: start; flex-direction: column; padding: 32px 18px; }
}

/* Shared municipal navigation and footer. */
.municipal-header { position:relative; z-index:5; max-width:1180px; margin:20px auto -1px; background:#ffffff; color:#122b3c; box-shadow:0 10px 28px rgba(9,37,52,.12); }
.municipal-main-nav { min-height:96px; display:grid; grid-template-columns:118px minmax(0,1fr) auto; align-items:stretch; }
.municipal-brand-tile { display:grid; place-items:center; align-content:center; gap:5px; background:#e65e42; color:#ffffff; font-weight:900; }
.municipal-brand-tile span { display:grid; place-items:center; width:56px; height:56px; border:2px solid rgba(255,255,255,.85); border-radius:50%; font-size:23px; }
.municipal-brand-tile small { font-size:9px; letter-spacing:.08em; }
.municipal-primary-links { display:flex; align-items:center; padding:0 22px; }
.municipal-primary-links a { min-width:118px; padding:8px 18px; border-right:1px solid #dbe3e5; }
.municipal-primary-links a:last-child { border-right:0; }
.municipal-primary-links strong, .municipal-primary-links small { display:block; }
.municipal-primary-links strong { font-size:16px; }
.municipal-primary-links small { margin-top:5px; color:#66808a; font-size:11px; font-weight:700; }
.municipal-primary-links a.active strong { color:#007d79; }
.municipal-nav-actions { display:flex; align-items:center; gap:16px; padding-right:18px; font-size:13px; font-weight:850; white-space:nowrap; }
.municipal-report-link { display:flex; align-items:center; min-height:70px; padding:0 17px; background:#ffc53b; color:#122b3c; }
.municipal-secondary-nav { min-height:46px; display:flex; align-items:center; gap:28px; padding:0 22px 0 140px; border-top:1px solid #e3e9ea; font-size:13px; font-weight:850; }
.municipal-secondary-nav a { color:#38535e; }
.municipal-footer { margin-top:0; background:#102c3d; color:#ffffff; }
.municipal-footer-grid { max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1.6fr repeat(3,1fr); gap:40px; padding:58px 24px 42px; }
.municipal-footer-brand { font-size:22px; }
.municipal-footer p { max-width:320px; margin:12px 0 0; color:#bfd2d5; line-height:1.55; }
.municipal-footer h2 { margin:0 0 16px; color:#9ed5d2; font-size:14px; }
.municipal-footer a { display:block; margin:0 0 10px; color:#ffffff; font-size:14px; }
.municipal-footer-bottom { max-width:1180px; margin:auto; padding:18px 24px; border-top:1px solid rgba(255,255,255,.18); color:#b5c8cc; font-size:12px; }
.hero-home { margin-top:-20px; padding-top:20px; }
.hero-home .hero-grid { margin-top:60px; }
@media (max-width:900px) {
  .municipal-header { margin:0; box-shadow:none; }
  .municipal-main-nav { min-height:72px; grid-template-columns:72px 1fr; }
  .municipal-brand-tile span { width:40px; height:40px; font-size:18px; }
  .municipal-brand-tile small, .municipal-primary-links, .municipal-nav-actions, .municipal-secondary-nav { display:none; }
  .hero-home { margin-top:0; padding-top:0; }
  .hero-home .hero-grid { margin-top:72px; }
  .municipal-footer-grid { grid-template-columns:1fr 1fr; gap:28px; padding:42px 18px 30px; }
}
@media (max-width:560px) { .municipal-footer-grid { grid-template-columns:1fr; } }

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
}
.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.news-item:hover {
  box-shadow: 0 14px 34px rgba(16, 41, 75, 0.08);
  transform: translateY(-2px);
}
.news-item img {
  width: 96px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}
.news-item span {
  display: inline-block;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  text-align: center;
  width: fit-content;
}
.news-item strong {
  display: inline-block;
  color: var(--brick);
  font-size: 13px;
  margin-top: 10px;
}
.news-item p, .agenda-item p, .contact-section p {
  margin-bottom: 0;
  color: rgba(23, 32, 51, 0.7);
  line-height: 1.55;
}

.muted { max-width: none; background: #ece7dc; }
.muted > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.agenda-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agenda-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 136px;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.agenda-item.has-photo {
  display: block;
  overflow: hidden;
  padding: 0;
}
.agenda-item time {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf8;
}
.agenda-item time strong { font-size: 28px; line-height: 1; }
.agenda-item time span { margin-top: 4px; font-size: 13px; }
.agenda-photo {
  position: relative;
  height: 168px;
}
.agenda-photo img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.agenda-item.has-photo .agenda-photo img {
  border-radius: 8px 8px 0 0;
}
.agenda-photo time {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 74px;
  box-shadow: 0 14px 26px rgba(16, 41, 75, 0.2);
}
.agenda-content {
  padding: 0;
}
.agenda-item.has-photo .agenda-content {
  padding: 16px 18px 18px;
}
.agenda-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--brick);
  font-size: 13px;
  font-weight: 900;
}

.services-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 36px;
}
.services-band ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.services-band li {
  border-left: 5px solid var(--leaf);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 700;
  padding: 16px 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
}
.contact-section > div:first-child { max-width: 720px; }

.event-page {
  min-height: 100vh;
  padding: 24px;
}

.event-topbar {
  display: flex;
  max-width: 1180px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 26px;
}

.event-brand .brand-mark {
  background: var(--ink);
  color: #fffdf8;
}

.event-brand small {
  color: rgba(23, 32, 51, 0.58);
}

.event-return {
  border-color: rgba(16, 41, 75, 0.2);
  color: var(--ink);
}

.event-detail-card {
  max-width: 1180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  margin: 0 auto 48px;
  box-shadow: 0 22px 60px rgba(16, 41, 75, 0.1);
}

.event-hero-photo {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.event-detail-body {
  padding: 34px;
}

.event-detail-body h1 {
  max-width: 920px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 68px);
}

.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.event-meta-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.event-meta-grid span {
  display: block;
  color: rgba(23, 32, 51, 0.58);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.event-meta-grid strong {
  color: var(--ink);
  line-height: 1.35;
}

.event-description {
  max-width: 780px;
  margin-top: 18px;
}

.event-description h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.event-description p {
  color: rgba(23, 32, 51, 0.74);
  font-size: 18px;
  line-height: 1.65;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.public-request-form {
  margin-top: 24px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: rgba(23, 32, 51, 0.72);
  line-height: 1.45;
}

.consent-row input {
  margin-top: 3px;
}

.history-list {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.history-list h3 {
  font-size: 18px;
}

.history-list p {
  margin: 0 0 10px;
}

.history-list span {
  color: rgba(23, 32, 51, 0.64);
  font-size: 13px;
}

.citizen-toolbar {
  margin: 24px 0 14px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.equipment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.equipment-card:hover {
  box-shadow: 0 18px 42px rgba(16, 41, 75, 0.1);
  transform: translateY(-2px);
}

.equipment-card img, .equipment-icon {
  display: grid;
  width: 100%;
  height: 168px;
  place-items: center;
}

.equipment-card img {
  object-fit: cover;
}

.equipment-icon {
  background: var(--sky);
  color: var(--ink);
  font-size: 42px;
  font-weight: 900;
}

.equipment-card div {
  padding: 18px;
}

.equipment-category {
  display: inline-block;
  border-radius: 999px;
  background: rgba(47, 112, 79, 0.12);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
  padding: 7px 10px;
}

.equipment-card p {
  color: rgba(23, 32, 51, 0.7);
  line-height: 1.5;
}

.equipment-card strong {
  color: var(--brick);
  font-size: 13px;
}

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero-grid, .split-section, .services-band, .contact-section { grid-template-columns: 1fr; }
  .hero-grid { margin-top: 72px; }
  .quick-grid, .agenda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-header { align-items: start; flex-direction: column; }
  .event-topbar { align-items: flex-start; flex-direction: column; }
  .event-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { min-height: auto; padding: 18px; }
  .nav-links { justify-content: flex-start; }
  .hero-grid { margin-top: 54px; }
  h1 { font-size: 46px; }
  .lede { font-size: 18px; }
  .alert-band, .news-item, .agenda-item { display: grid; grid-template-columns: 1fr; align-items: start; }
  .agenda-item.has-photo { display: block; }
  .quick-grid, .agenda-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .section, .split-section, .services-band, .contact-section { padding: 56px 18px; }
  .button, .actions { width: 100%; }
  .event-page { padding: 16px; }
  .event-detail-body { padding: 22px; }
  .event-detail-body h1 { font-size: 38px; }
  .event-hero-photo { max-height: 280px; }
  .event-actions .button, .event-return { width: 100%; text-align: center; }
}

.auth-body, .dashboard-body {
  min-height: 100vh;
  background: #eef3f7;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 28px;
  box-shadow: 0 24px 70px rgba(16, 41, 75, 0.12);
}

.auth-brand {
  color: var(--ink);
  margin-bottom: 28px;
}

.auth-brand .brand-mark, .dashboard-brand .brand-mark {
  background: var(--ink);
  color: var(--paper);
}

.auth-brand small, .dashboard-brand small {
  color: rgba(23, 32, 51, 0.62);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 8px;
  background: #e5edf4;
  padding: 6px;
  margin-bottom: 28px;
}

.auth-tabs a {
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 12px;
  text-align: center;
}

.auth-tabs .active {
  background: var(--ink);
  color: var(--paper);
}

.auth-panel h1, .dashboard-header h1 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.05;
}

.auth-copy, .demo-note {
  color: rgba(23, 32, 51, 0.68);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.auth-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--foreground);
  font: inherit;
  padding: 12px 14px;
}

.form-error {
  border-radius: 8px;
  background: #ffe8e1;
  color: var(--brick);
  font-weight: 800;
  padding: 12px;
}

.demo-note {
  margin: 18px 0 0;
  font-size: 13px;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(215, 235, 247, 0.72), rgba(247, 244, 238, 0.86) 280px),
    var(--background);
}

.dashboard-sidebar {
  height: 100vh;
  min-height: 100vh;
  border-right: 1px solid rgba(255, 253, 248, 0.14);
  background:
    linear-gradient(180deg, #10294b, #16385f);
  box-shadow: 12px 0 36px rgba(16, 41, 75, 0.08);
  overflow-y: auto;
  padding: 26px 22px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.dashboard-brand {
  color: var(--paper);
  margin-bottom: 36px;
}

.dashboard-brand .brand-mark {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.dashboard-brand small {
  color: rgba(255, 253, 248, 0.76);
}

.dashboard-nav {
  display: grid;
  gap: 10px;
}

.dashboard-nav a, .logout-link {
  border-radius: 8px;
  color: rgba(255, 253, 248, 0.9);
  font-weight: 800;
  padding: 13px 14px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dashboard-nav a:hover {
  background: rgba(255, 253, 248, 0.13);
  transform: translateX(2px);
}

.dashboard-nav .active {
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  color: var(--ink);
}

.logout-link {
  display: block;
  margin-top: 28px;
  color: var(--brick);
  background: rgba(255, 253, 248, 0.82);
}

.dashboard-main {
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px;
  scrollbar-width: thin;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.74)),
    var(--paper);
  box-shadow: 0 18px 48px rgba(16, 41, 75, 0.08);
  padding: 22px;
}

.dashboard-header h1 {
  margin-bottom: 6px;
}

.dashboard-header p {
  margin-bottom: 0;
  color: rgba(23, 32, 51, 0.68);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stats-grid article, .dashboard-card {
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(16, 41, 75, 0.07);
}

.stats-grid article {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.stats-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--sky);
}

.stats-grid article:nth-child(2)::before { background: #f2b8a8; }
.stats-grid article:nth-child(3)::before { background: #f0d37c; }
.stats-grid article:nth-child(4)::before { background: #9ed3b6; }

.stats-grid span {
  color: rgba(23, 32, 51, 0.62);
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 34px;
}

.dashboard-card {
  padding: 22px;
}

.appearance-preview{margin:0 0 24px;border:1px solid #dbe3e7;background:#fff;overflow:hidden}.appearance-preview img{display:block;width:100%;max-height:420px;object-fit:cover}.appearance-preview figcaption{padding:12px 16px;color:#65737d;font-size:13px}.appearance-editor .module-detail-card{max-width:980px}
.responsive-hero-previews{display:grid;grid-template-columns:2fr 1.2fr .7fr;align-items:end;gap:14px;margin:0 0 28px}.responsive-hero-previews>div{position:relative;display:flex;min-height:190px;flex-direction:column;justify-content:center;padding:20px;overflow:hidden;background-image:linear-gradient(90deg,rgba(5,31,52,.9) 0%,rgba(5,31,52,.74) 38%,rgba(5,31,52,.14) 78%),var(--hero);background-position:var(--fx) var(--fy);background-size:cover;color:#fff}.responsive-hero-previews[data-subject=left]>div{background-image:linear-gradient(270deg,rgba(5,31,52,.9) 0%,rgba(5,31,52,.74) 38%,rgba(5,31,52,.14) 78%),var(--hero)}.responsive-hero-previews .preview-tablet{min-height:220px}.responsive-hero-previews .preview-phone{min-height:250px}.responsive-hero-previews span{font-size:11px;text-transform:uppercase}.responsive-hero-previews strong{max-width:260px;font-size:20px}.responsive-hero-previews[data-align=right]>div{align-items:flex-end;text-align:right}@media(max-width:760px){.responsive-hero-previews{grid-template-columns:1fr}.responsive-hero-previews>div{min-height:190px!important}}

.pilotage-overview { display: grid; gap: 18px; }
.pilotage-stats { margin-bottom: 0; }
.stats-grid article small { display: block; margin-top: 6px; color: rgba(23, 32, 51, 0.58); font-size: 12px; font-weight: 700; line-height: 1.35; }
.pilotage-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; align-items: start; }
.card-count { display: inline-grid; min-width: 30px; min-height: 30px; place-items: center; border-radius: 50%; background: #eaf3f7; color: var(--ink); font-weight: 850; }
.pilotage-case-list, .workload-list { display: grid; gap: 8px; }
.pilotage-case { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid rgba(23, 32, 51, .1); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.pilotage-case:hover { border-color: #82b7d0; box-shadow: 0 10px 22px rgba(16, 41, 75, .08); transform: translateY(-1px); }
.pilotage-case-kind { color: var(--city-teal, #257377); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.pilotage-case strong { font-size: 14px; line-height: 1.3; }
.pilotage-case small, .workload-row small { color: rgba(23, 32, 51, .6); font-size: 12px; line-height: 1.35; }
.workload-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(23, 32, 51, .1); }
.workload-row:last-child { border-bottom: 0; padding-bottom: 0; }
.workload-row > div { display: grid; gap: 3px; }
.workload-row b { display: grid; min-width: 32px; min-height: 32px; place-items: center; border-radius: 8px; background: #17385f; color: #fff; font-size: 14px; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.card-header p, .dashboard-card.compact p {
  margin-bottom: 0;
  color: rgba(23, 32, 51, 0.68);
}

.report-table {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding: 2px 8px 2px 2px;
}

.report-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.9fr 0.8fr 0.6fr;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f8fafc;
  cursor: pointer;
  padding: 14px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.report-row:not(.report-head):hover {
  background: #eef6fb;
  border-color: rgba(16, 41, 75, 0.14);
  transform: translateY(-1px);
}

.report-head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.report-row.selected {
  outline: 2px solid rgba(16, 41, 75, 0.72);
  background: #eef6fb;
}

.report-head {
  border-color: transparent;
  background: rgba(255, 253, 248, 0.96);
  cursor: default;
  color: rgba(23, 32, 51, 0.6);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-row small {
  display: block;
  margin-top: 4px;
  color: rgba(23, 32, 51, 0.62);
  line-height: 1.35;
}

.status {
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font-weight: 800;
  padding: 8px 10px;
}

.status.nouveau { background: #ffe8e1; color: var(--brick); }
.status.en-cours { background: #fff1c9; color: #6c5300; }
.status.résolu { background: #dff2e8; color: var(--leaf); }
.status.rejeté { background: #ece7dc; color: rgba(23, 32, 51, 0.72); }

.row-action {
  color: var(--brick);
  font-weight: 800;
}

.dashboard-notice {
  border-radius: 8px;
  background: #dff2e8;
  color: var(--leaf);
  font-weight: 800;
  margin: 0;
  padding: 10px 12px;
}

.global-notice {
  box-shadow: 0 12px 28px rgba(47, 112, 79, 0.12);
  margin-bottom: 18px;
}

.workflow-card {
  margin-top: 20px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.citizen-request, .workflow-form {
  border-radius: 8px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: #f8fafc;
  padding: 18px;
}

.citizen-request dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.citizen-request div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.citizen-request dt {
  color: rgba(23, 32, 51, 0.58);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.citizen-request dd {
  margin: 0;
  line-height: 1.45;
}

.workflow-form {
  display: grid;
  gap: 14px;
}

.workflow-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.workflow-form select, .workflow-form textarea, .event-form input, .event-form select, .event-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--foreground);
  font: inherit;
  padding: 12px;
}

.workflow-form select:focus, .workflow-form textarea:focus,
.event-form input:focus, .event-form select:focus, .event-form textarea:focus {
  border-color: rgba(18, 111, 169, 0.72);
  box-shadow: 0 0 0 3px rgba(215, 235, 247, 0.72);
  outline: none;
}

.workflow-form textarea, .event-form textarea {
  resize: vertical;
}

.appointment-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.appointment-day-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 4px 0;
}

.appointment-day-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .appointment-settings-grid { grid-template-columns: 1fr; }
}

.history-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.history-panel h3 {
  margin: 0 0 14px;
}

.history-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.history-list strong {
  display: block;
  color: var(--ink);
}

.history-list span {
  display: block;
  color: rgba(23, 32, 51, 0.58);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.history-list p {
  margin: 10px 0 0;
}

.history-list small {
  display: block;
  border-left: 3px solid var(--sky);
  color: rgba(23, 32, 51, 0.72);
  line-height: 1.45;
  margin-top: 10px;
  padding-left: 10px;
}

.empty-history {
  border-radius: 8px;
  background: #f8fafc;
  color: rgba(23, 32, 51, 0.68);
  margin: 0;
  padding: 14px;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.module-grid {
  margin-top: 0;
}

.module-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  min-height: calc(100vh - 180px);
}

.single-module-panel, .detail-module-panel {
  min-height: calc(100vh - 180px);
}

.single-module-panel .module-list-panel, .module-detail-card {
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 46px rgba(16, 41, 75, 0.08);
  padding: 18px;
}

.module-detail-card {
  width: 100%;
}

.section-stack {
  display: grid;
  gap: 22px;
}

.section-stack .module-workbench {
  min-height: auto;
}

.module-list-panel, .module-editor-panel {
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 46px rgba(16, 41, 75, 0.08);
}

.module-list-panel {
  min-width: 0;
  padding: 18px;
}

.module-editor-panel {
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  position: sticky;
  top: 24px;
}

.module-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.1);
  padding-bottom: 16px;
}

.module-toolbar h2, .editor-heading h2 {
  font-size: 26px;
  line-height: 1.08;
}

.module-toolbar p, .editor-heading p {
  color: rgba(23, 32, 51, 0.66);
  line-height: 1.45;
  margin: 8px 0 0;
}

.compact-button {
  min-height: 38px;
  padding: 9px 12px;
  white-space: nowrap;
}

.action-view, .action-edit {
  border-color: rgba(18, 111, 169, 0.28);
  background: rgba(215, 235, 247, 0.48);
  color: var(--ink);
}

.action-archive {
  border-color: rgba(23, 32, 51, 0.14);
  color: rgba(23, 32, 51, 0.66);
}

.action-archive:hover {
  border-color: rgba(183, 58, 47, 0.32);
  background: rgba(183, 58, 47, 0.08);
  color: var(--brick);
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: #fff;
  min-height: 210px;
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-card:hover, .selected-card {
  border-color: rgba(18, 111, 169, 0.34);
  box-shadow: 0 14px 30px rgba(16, 41, 75, 0.08);
}

.selected-card {
  outline: 2px solid rgba(18, 111, 169, 0.16);
}

.admin-card-top, .admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-card-actions {
  flex-wrap: wrap;
  margin-top: auto;
}

.admin-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.admin-card-photo {
  width: 100%;
  height: 118px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.equipment-admin-card .admin-card-photo {
  height: 142px;
}

.news-admin-card .admin-card-photo {
  height: 136px;
}

.alert-admin-card .admin-card-photo {
  height: 122px;
}

.empty-photo {
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
}

.dashboard-map-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 14px;
  margin-top: 18px;
}

.dashboard-map-canvas {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(30deg, transparent 0 46%, rgba(18, 111, 169, 0.18) 46% 50%, transparent 50%),
    linear-gradient(120deg, transparent 0 58%, rgba(47, 112, 79, 0.16) 58% 62%, transparent 62%),
    linear-gradient(135deg, #edf6f8, #f8fbf6);
}

.dashboard-map-canvas::before,
.dashboard-map-canvas::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(18, 111, 169, 0.12);
}

.dashboard-map-canvas::before {
  width: 190px;
  height: 72px;
  left: 10%;
  top: 16%;
}

.dashboard-map-canvas::after {
  width: 230px;
  height: 90px;
  right: 8%;
  bottom: 13%;
}

.dashboard-map-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  width: min(210px, 42%);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 16px 34px rgba(16, 41, 75, 0.12);
  padding: 8px;
}

.dashboard-map-pin img,
.dashboard-map-pin span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.dashboard-map-pin img {
  object-fit: cover;
}

.dashboard-map-pin span {
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--ink);
  font-weight: 900;
}

.dashboard-map-pin strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-1 { left: 7%; top: 18%; }
.pin-2 { right: 7%; top: 24%; }
.pin-3 { left: 30%; top: 50%; }
.pin-4 { right: 18%; bottom: 13%; }
.pin-5 { left: 10%; bottom: 15%; }

.dashboard-map-summary {
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.dashboard-map-summary span {
  color: var(--brick);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-map-summary h3 {
  margin: 8px 0 10px;
}

.dashboard-map-summary p {
  color: rgba(23, 32, 51, 0.68);
  line-height: 1.5;
  margin: 0;
}

.admin-card span, .admin-card p, .admin-card small {
  color: rgba(23, 32, 51, 0.66);
  line-height: 1.4;
}

.admin-card p {
  margin: 0;
}

.admin-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.report-workbench {
  margin-top: 18px;
}

.report-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.report-card {
  min-height: 190px;
}

.report-card .status {
  padding: 6px 9px;
}

.priority-pill {
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.08);
  color: rgba(23, 32, 51, 0.72);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.report-editor-panel {
  max-height: calc(100vh - 150px);
}

.detail-module-panel .report-editor-panel {
  max-height: none;
}

.compact-request {
  margin-top: 16px;
}

.compact-request h3 {
  font-size: 18px;
}

.status-pill, .category-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.status-pill.published {
  background: rgba(47, 112, 79, 0.12);
  color: var(--leaf);
}

.status-pill.hidden {
  background: rgba(183, 58, 47, 0.12);
  color: var(--brick);
}

.category-pill {
  background: var(--sky);
  color: var(--ink);
}

.editor-heading span {
  color: var(--brick);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.editor-form {
  background: #fff;
}

.read-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  background: #fff;
  margin-top: 18px;
  padding: 16px;
}

.read-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.read-panel div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.read-panel div:first-child {
  border-top: 0;
  padding-top: 0;
}

.read-panel dt {
  color: rgba(23, 32, 51, 0.58);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.read-panel dd {
  color: var(--foreground);
  line-height: 1.45;
  margin: 0;
}

.read-panel-photo {
  width: min(100%, 520px);
  max-height: 280px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agenda-admin-card, .map-admin-card {
  grid-column: span 3;
}

.module-grid .dashboard-card {
  min-height: 280px;
}

.empty-state {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(23, 32, 51, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  margin-top: 18px;
  padding: 18px;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state span {
  color: rgba(23, 32, 51, 0.66);
  line-height: 1.45;
}

.neutral-panel {
  align-content: start;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.neutral-panel .button {
  justify-self: start;
  margin-top: 6px;
}


.event-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.event-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.inline-search-form {
  align-items: end;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin: 0 0 16px;
}

.inline-search-form .panel-actions {
  margin: 0;
}

.event-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-help {
  color: rgba(23, 32, 51, 0.62);
  font-size: 13px;
  line-height: 1.45;
  margin: -2px 0 0;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: auto;
}

.event-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.event-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.event-admin-row:hover {
  border-color: rgba(18, 111, 169, 0.24);
  box-shadow: 0 10px 24px rgba(16, 41, 75, 0.06);
}

.event-admin-row strong, .event-admin-row span {
  display: block;
}

.event-admin-row span {
  color: rgba(23, 32, 51, 0.62);
  font-size: 13px;
  margin-top: 4px;
}

.event-admin-row form, .admin-actions {
  flex: 0 0 auto;
}

.edit-panel {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.edit-panel summary {
  color: var(--brick);
  cursor: pointer;
  font-weight: 800;
}

.compact-form {
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  margin-top: 12px;
  padding: 14px;
}

.muted-row {
  opacity: 0.62;
}

@media (max-width: 980px) {
  .dashboard-body {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .dashboard-sidebar {
    height: auto;
    min-height: auto;
    overflow: visible;
    position: static;
  }
  .dashboard-main {
    height: auto;
    overflow: visible;
  }
  .stats-grid, .management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-workbench { grid-template-columns: 1fr; }
  .module-editor-panel {
    max-height: none;
    position: static;
  }
  .agenda-admin-card, .map-admin-card { grid-column: span 2; }
  .dashboard-map-preview { grid-template-columns: 1fr; }
  .report-row, .workflow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .dashboard-main, .dashboard-sidebar { padding: 18px; }
  .dashboard-header, .card-header { align-items: start; flex-direction: column; }
  .stats-grid, .management-grid { grid-template-columns: 1fr; }
  .agenda-admin-card, .map-admin-card { grid-column: span 1; }
  .event-form-row { grid-template-columns: 1fr; }
  .inline-search-form { grid-template-columns: 1fr; }
  .event-admin-row { grid-template-columns: 1fr; }
}

/* Final public-site overrides: kept last because this stylesheet also serves the dashboard. */
:root { --background: #f4f7f7; --foreground: #183142; --ink: #062f4a; --brick: #e65e42; --leaf: #007b78; --sky: #dceff0; --line: rgba(6, 47, 74, 0.15); --paper: #ffffff; }
body { background: var(--background); }
.hero { position: relative; min-height: 76vh; padding: 24px; isolation: isolate; background: url("images/lyon-hero-v1.png") center center / cover no-repeat; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: rgba(4, 31, 48, 0.64); }
.topbar { padding: 4px 0; }
.brand-mark { border-radius: 6px; background: #e65e42; color: #ffffff; }
.nav-links { gap: 20px; }
.nav-links a { border: 0; border-radius: 0; padding: 10px 0; font-weight: 700; }
.nav-links a:last-child { border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 6px; padding: 10px 14px; }
.hero-grid { display: block; margin-top: 120px; }
.hero-copy { max-width: 720px; }
.hero .eyebrow { color: #bde4e3; margin-bottom: 18px; }
.hero h1 { max-width: none; margin-bottom: 12px; font-size: 74px; line-height: 0.98; }
.hero-statement { margin-bottom: 22px; font-size: 30px; font-weight: 800; line-height: 1.12; }
.lede { max-width: 620px; font-size: 19px; }
.hero .primary { background: #e65e42; }
.hero .secondary { border-color: rgba(255, 255, 255, 0.74); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 54px; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.hero-facts span { display: grid; gap: 5px; min-width: 190px; padding: 16px 24px 0 0; color: rgba(255, 255, 255, 0.74); font-size: 13px; }
.hero-facts strong { color: #ffffff; font-size: 15px; }
.section, .split-section, .services-band, .contact-section { padding-top: 88px; padding-bottom: 88px; }
.quick-card, .news-item, .agenda-item { border-color: rgba(6, 47, 74, 0.11); }
.quick-card { min-height: 225px; }
.quick-card a, .news-item strong { color: #007b78; }
.muted { background: #e4eeee; }
.services-band { background: #062f4a; color: #ffffff; }
.services-band h2, .services-band li { color: #ffffff; }
.services-band .eyebrow { color: #8bd1cd; }
.contact-section { background: #ffffff; }
@media (max-width: 760px) {
  .hero { min-height: 700px; padding: 18px; background-position: 63% center; }
  .topbar { align-items: flex-start; }
  .nav-links { display: none; }
  .hero-grid { margin-top: 112px; }
  .hero h1 { font-size: 48px; }
  .hero-statement { font-size: 24px; }
  .hero-facts { margin-top: 38px; }
  .hero-facts span { min-width: 50%; padding-right: 14px; }
}
.deposit-reference{display:inline-grid;gap:4px;margin:4px 0 8px;padding:16px 20px;border-left:4px solid #0f766e;background:#f2f8f7}.deposit-reference small{color:#64747d;font-size:11px;font-weight:800;text-transform:uppercase}.deposit-reference strong{color:#10294b;font-size:24px;letter-spacing:.08em}
.embedded-app-flow{background:#f7f4ee}.embedded-app-flow .page-intro{padding-top:34px}.embedded-app-flow .opportunity-deposit-page{padding-top:26px}.embedded-app-flow .opportunity-deposit-form,.embedded-app-flow .deposit-confirmation{margin-inline:auto;box-shadow:0 12px 32px rgba(16,41,75,.09)}
.embedded-auth-flow .auth-panel{max-width:620px}.embedded-auth-flow .auth-brand{pointer-events:none}.embedded-auth-flow .auth-shell{min-height:100vh;padding:24px}
