/* Liberty PD Policy Portal — sales demo (fictional Town of Liberty) */
:root {
  --navy: #0b2740;
  --navy-mid: #123a5c;
  --navy-deep: #071c2e;
  --accent: #1a4a6e;
  --accent-mid: #2a5f88;
  --mist: #eef2f6;
  --snow: #faf8f3;
  --gold: #c4a35a;
  --gold-bright: #d4b56a;
  --gold-soft: #e8d9a8;
  --cream: #f7f2e8;
  --cream-bright: #fbf7ef;
  --text: #1a2428;
  --muted: #4a5a64;
  --card: #ffffff;
  --border: #d8e0e6;
  --shadow: 0 4px 16px rgba(11, 39, 64, 0.09);
  --radius: 14px;
  --max: 960px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--cream-bright);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }

.demo-banner {
  background: #7a2e24;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  line-height: 1.35;
  position: relative;
  z-index: 10;
}

.site-header {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-mid) 45%, var(--accent) 100%);
  color: #fff;
  padding: 0.85rem 1.25rem 0.95rem;
  min-height: 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(196, 163, 90, 0.55);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1;
}
.brand-block {
  display: flex; gap: 0.9rem; align-items: center; text-decoration: none; color: inherit;
  min-width: 0;
}
.liberty-seal {
  width: 64px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  display: block;
  object-fit: contain;
}
.brand-text { min-width: 0; }
.dept {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: rgba(247, 242, 232, 0.92);
  font-weight: 650;
  margin-bottom: 0.15rem;
}
.site-header h1 {
  font-size: 1.35rem;
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.place {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--gold-soft);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.site-header--home {
  background-color: #0b2740;
  background-image: url("assets/liberty-downtown-hero.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  min-height: 270px;
  padding: 2rem 1.35rem 2.15rem;
  align-items: center;
  border-bottom: none;
  box-shadow: inset 0 -1px 0 rgba(196, 163, 90, 0.65);
}
.site-header--home .hero-landscape {
  position: absolute;
  inset: 0;
  background-image: url("assets/liberty-downtown-hero.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
}
.site-header--home .hero-landscape-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.site-header--home .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(8,28,52,0.62) 0%, rgba(10,40,70,0.38) 45%, rgba(11,39,64,0.22) 100%),
    linear-gradient(180deg, rgba(8,28,52,0.15) 0%, rgba(8,28,52,0.35) 100%);
  pointer-events: none;
}
.site-header--home .header-inner { position: relative; z-index: 2; align-items: center; }
.site-header--home .brand-block { gap: 1.25rem; }
.site-header--home .liberty-seal--home {
  width: 156px;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
}
.site-header--home .dept {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.35rem;
}
.site-header--home h1 {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-header--home .place {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--gold-soft);
}
.chief-line {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(247, 242, 232, 0.85);
  font-weight: 500;
}

main { flex: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 1.25rem 1.15rem 2.5rem; }

.how-strip {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.35rem 0.15rem 0.55rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(216, 224, 230, 0.9);
}
.how-strip h2 {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7a8a94; font-weight: 650; margin-bottom: 0.4rem;
}
.how-strip ol {
  list-style: none; display: grid; gap: 0.2rem;
  font-size: 0.78rem; color: var(--muted);
  counter-reset: step;
}
.how-strip li {
  padding-left: 1.25rem; position: relative;
}
.how-strip li::before {
  content: counter(step); counter-increment: step;
  position: absolute; left: 0; top: 0.05rem;
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: rgba(238, 242, 246, 0.95); color: var(--accent); font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.tile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.05rem;
}
@media (max-width: 820px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.2rem 1.3rem;
  text-decoration: none; color: inherit;
  border-top: 5px solid var(--navy-mid);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  min-height: 148px;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 39, 64, 0.16);
  outline: none;
}
.tile-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--mist); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tile-icon svg { width: 22px; height: 22px; display: block; }
.tile-label {
  font-weight: 750; font-size: 1.08rem; color: var(--navy-deep); line-height: 1.25;
}
.tile-count {
  margin-top: auto; align-self: flex-end;
  background: linear-gradient(160deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--navy-deep);
  font-size: 0.76rem; font-weight: 750;
  min-width: 1.6rem; height: 1.6rem; padding: 0 0.48rem;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(196,163,90,0.35);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.section-strip {
  display: flex; align-items: center; gap: 0.9rem;
  background: linear-gradient(110deg, var(--navy) 0%, var(--navy-mid) 55%, var(--accent) 100%);
  color: var(--cream);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(196,163,90,0.45);
  box-shadow: 0 3px 10px rgba(11, 39, 64, 0.14);
}
.section-strip .strip-seal {
  width: 64px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.35));
  object-fit: contain;
}
.section-strip h2 {
  font-size: 1.22rem; font-weight: 750; color: var(--cream); line-height: 1.2;
  margin: 0;
}
.section-strip .count-pill {
  display: inline-flex; margin-left: 0.4rem; vertical-align: middle;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  font-size: 0.72rem; font-weight: 750;
  min-width: 1.45rem; height: 1.45rem; padding: 0 0.38rem; border-radius: 999px;
  align-items: center; justify-content: center;
}

.back-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--accent-mid);
  margin-bottom: 0.75rem;
}
.back-link:hover { text-decoration: underline; }
.page-head { margin-bottom: 1rem; }
.page-head .blurb { color: var(--muted); font-size: 0.95rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.35rem 0.85rem;
}
.policy-rows { list-style: none; }
.policy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 0.15rem; border-bottom: 1px solid var(--border);
}
.policy-row:last-child { border-bottom: none; }
.pdf-link {
  display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--navy-deep);
  font-weight: 650; min-width: 0; flex: 1;
}
.pdf-link:hover .pdf-title { text-decoration: underline; }
.pdf-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 7px;
  background: #eef2f5; color: #6b7c88; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.04em; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.pdf-title { overflow-wrap: anywhere; }
.draft-badge {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 0.45rem; padding: 0.12rem 0.42rem; border-radius: 999px;
  font-size: 0.62rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase;
  background: #b8860b; color: #fff; flex-shrink: 0;
}

.recent-strip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem 0.95rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--navy);
}
.recent-strip h2 {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.recent-list { list-style: none; display: grid; gap: 0.15rem; }
.recent-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  text-decoration: none; color: inherit; padding: 0.38rem 0.2rem; border-radius: 8px;
}
.recent-link:hover, .recent-link:focus-visible { background: var(--mist); outline: none; }
.recent-title {
  font-weight: 650; font-size: 0.9rem; color: var(--navy-deep);
  min-width: 0; overflow-wrap: anywhere;
}
.recent-link:hover .recent-title { text-decoration: underline; }
.recent-meta {
  display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0;
  font-size: 0.75rem; color: var(--muted);
}
.recent-section { font-weight: 600; color: var(--accent-mid); }
.recent-date { font-variant-numeric: tabular-nums; white-space: nowrap; }

.site-footer {
  text-align: center; padding: 1.1rem 1rem 1.4rem;
  color: var(--muted); font-size: 0.7rem;
}
.footer-seal {
  display: block; width: 56px; height: auto; margin: 0 auto 0.45rem; opacity: 0.55;
}

@media (max-width: 720px) {
  .site-header--home { min-height: 170px; padding: 1.35rem 1.1rem 1.5rem; }
  .site-header--home .liberty-seal--home { width: 120px; }
  .site-header--home h1 { font-size: 1.75rem; }
  .site-header--home .dept { font-size: 0.68rem; letter-spacing: 0.14em; }
  .site-header--home .place { font-size: 0.84rem; }
}
@media (max-width: 560px) {
  .tile-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0.75rem 1rem 0.85rem; }
  .liberty-seal { width: 56px; }
  .site-header h1 { font-size: 1.2rem; }
  .site-header--home { min-height: 160px; padding: 1.2rem 1rem 1.35rem; }
  .site-header--home .liberty-seal--home { width: 108px; }
  .site-header--home h1 { font-size: 1.55rem; }
  .dept { font-size: 0.62rem; letter-spacing: 0.12em; }
  .place { font-size: 0.76rem; }
  .section-strip .strip-seal { width: 56px; }
  .section-strip h2 { font-size: 1.08rem; }
  .tile { min-height: 128px; padding: 1.2rem 1.05rem; }
  .recent-link { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
}

.btn-ack {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--navy, #0B1F3A);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ack:hover { filter: brightness(1.08); }

.btn-review {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: #1a4a6e;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-review:hover { filter: brightness(1.08); }
