/* =========================================================
   PERA Public Portal — Modern Design System
   Punjab Enforcement & Regulatory Authority
   ========================================================= */

:root {
  /* Brand palette — matches PERA site (charcoal + gold/bronze). */
  /* Legacy names kept; values remapped so templates still work. */
  --pera-charcoal: #2b2b2b;
  --pera-charcoal-dark: #1a1a1a;
  --pera-charcoal-soft: #3a3a3a;

  --pera-bronze: #b8924c;       /* primary accent */
  --pera-bronze-dark: #8f6f36;
  --pera-bronze-light: #d9b870;
  --pera-gold-light: #e4c88a;
  --pera-cream: #f5efe0;        /* tan-cream alt bg */

  /* Legacy aliases (so we don't have to rename every reference) */
  --pera-green: var(--pera-bronze);
  --pera-green-dark: var(--pera-bronze-dark);
  --pera-green-light: var(--pera-bronze-light);
  --pera-gold: var(--pera-bronze);
  --pera-navy: var(--pera-charcoal);
  --pera-navy-soft: var(--pera-charcoal-soft);

  /* Neutrals */
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e5e0d4;
  --line-strong: #cfc6b2;
  --bg: #ffffff;
  --bg-soft: #faf6ed;
  --bg-tint: #f0ead9;

  /* Status */
  --success: #15803d;
  --danger: #b91c1c;
  --warn: #b45309;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Merriweather", "Georgia", "Times New Roman", serif;

  /* Layout */
  --container: 1200px;
  --nav-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pera-green); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--pera-green-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .3em; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pera-green);
  font-family: var(--font-sans);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.75rem, 2.2vw, 2.5rem);
  margin-bottom: .4em;
}
.section-sub {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--pera-green); color: #fff; }
.btn-primary:hover { background: var(--pera-green-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--pera-green); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--pera-green); color: var(--pera-green); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--pera-navy);
  color: #d4cfc2;
  font-size: .82rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .left, .topbar .right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #e8e2d3; }
.topbar a:hover { color: var(--pera-gold-light); }
.topbar .dot { width: 6px; height: 6px; background: var(--pera-gold); border-radius: 50%; display: inline-block; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(1.1) blur(6px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand img { height: 46px; width: auto; }
.brand-text { line-height: 1.15; max-width: 220px; }
.brand-text .b1 { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--pera-navy); display: block; white-space: nowrap; }
.brand-text .b2 { font-size: .68rem; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; line-height: 1.3; }

.gop-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.gop-badge img { height: 48px; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-menu > li { position: relative; flex-shrink: 0; }
.nav-menu > li > a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: .92rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--pera-green); background: var(--bg-tint); }

.nav-menu .has-sub > a::after {
  content: "▾";
  font-size: .7rem;
  margin-left: 6px;
  color: var(--muted);
}
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .18s ease;
}
.sub-menu li { margin: 0; }
.sub-menu a {
  display: block;
  padding: 9px 12px;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  font-size: .9rem;
  text-decoration: none;
}
.sub-menu a:hover { background: var(--bg-tint); color: var(--pera-green); }
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(26,26,26,0.94), rgba(43,43,43,0.88)),
    radial-gradient(ellipse at top right, rgba(184,146,76,0.18), transparent 55%),
    #2b2b2b;
  color: #fff;
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(217,184,112,0.15), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(184,146,76,0.18), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  color: #fff;
  margin-bottom: .2em;
  line-height: 1.15;
}
.hero h1 span { color: var(--pera-gold-light); display: block; font-size: .55em; font-weight: 400; margin-top: .4em; letter-spacing: 1px; }
.hero p.lede { font-size: 1.1rem; color: #e8e2d3; max-width: 540px; margin-bottom: 28px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stat .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--pera-gold-light); line-height: 1; }
.hero-stat .lbl { font-size: .85rem; color: #d4cfc2; margin-top: 6px; }
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  padding: 8px;
}
.hero-card img { border-radius: var(--r-md); width: 100%; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Hero Slider (top banner carousel) ----------
 * Locked to 16:9 aspect on every breakpoint so a single uploaded image fits
 * perfectly. object-fit: contain keeps the full image visible — if a slide
 * was uploaded at a different ratio it will letterbox onto the dark backdrop
 * rather than crop. Recommended upload: 1920 × 1080 px (16:9).
 */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 16/9;
  max-height: 720px;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease, visibility 900ms ease;
  background: #1a1a1a;
}
.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero-slider .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 70%,
    rgba(0,0,0,0.35) 100%
  );
  pointer-events: none;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  backdrop-filter: blur(6px);
}
.slider-arrow:hover {
  background: var(--pera-bronze);
  border-color: var(--pera-bronze);
  color: #1a1a1a;
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.slider-dots .dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.slider-dots .dot.active {
  background: var(--pera-gold-light);
  width: 42px;
}
@media (max-width: 960px) {
  /* Aspect ratio stays 16:9 — only the chrome (arrows, dots) shrinks. */
  .slider-arrow { width: 40px; height: 40px; font-size: 1.3rem; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
}
@media (max-width: 640px) {
  .slider-dots .dot { width: 20px; }
  .slider-dots .dot.active { width: 30px; }
}

/* ---------- Hero About (consolidated intro on home) ---------- */
.hero-about {
  position: relative;
  color: #fff;
  padding: 90px 0 100px;
  background:
    linear-gradient(135deg, rgba(20,20,20,0.94), rgba(43,43,43,0.85)),
    url("../images/banner-image.jpg") center/cover no-repeat,
    #1f1f1f;
  overflow: hidden;
}
.hero-about::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(217,184,112,0.18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(184,146,76,0.12), transparent 50%);
  pointer-events: none;
}
.hero-about .container { position: relative; z-index: 2; }
.hero-about .split-2 { gap: 56px; align-items: stretch; grid-template-columns: 1.15fr 1fr; }
.hero-about .split-2 > div:first-child { display: flex; flex-direction: column; justify-content: center; }
.hero-about .eyebrow { color: var(--pera-gold-light); letter-spacing: 2.5px; }
.hero-about h2.hero-about-title {
  color: #fff;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.25;
  margin-bottom: .55em;
  letter-spacing: .2px;
  font-weight: 700;
}
.hero-about h2.hero-about-title span {
  color: var(--pera-gold-light);
  display: block;
  font-weight: 500;
  font-size: .72em;
  margin-top: 4px;
  letter-spacing: .3px;
}
.hero-about p {
  color: #e8e2d3;
  text-align: justify;
  hyphens: auto;
  font-size: 1rem;
  line-height: 1.75;
}
.hero-about .bullet-list li { color: #e8e2d3; }
.hero-about .bullet-list li::before { background: var(--pera-bronze-light); box-shadow: inset 0 0 0 3px rgba(0,0,0,0.35); }
.hero-about .btn-primary {
  background: var(--pera-bronze);
  color: #1a1a1a;
  border-color: var(--pera-bronze);
}
.hero-about .btn-primary:hover {
  background: var(--pera-bronze-light);
  color: #1a1a1a;
  border-color: var(--pera-bronze-light);
}
.hero-about .media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(217,184,112,0.2);
  min-height: 420px;
  align-self: stretch;
}
.hero-about .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-about .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-about .hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pera-gold-light);
  line-height: 1;
}
.hero-about .hero-stat .lbl { font-size: .82rem; color: #d4cfc2; margin-top: 6px; }
@media (max-width: 960px) {
  .hero-about { padding: 60px 0 70px; }
  .hero-about .split-2 { grid-template-columns: 1fr; align-items: stretch; }
  .hero-about .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-about .media { min-height: 280px; }
}

/* ---------- Page header (for inner pages) ---------- */
.page-header {
  background:
    linear-gradient(135deg, rgba(26,26,26,0.95), rgba(43,43,43,0.88)),
    #2b2b2b;
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(217,184,112,.28), transparent 55%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: .3em; }
.breadcrumbs {
  font-size: .88rem;
  color: #d4cfc2;
}
.breadcrumbs a { color: var(--pera-gold-light); }
.breadcrumbs .sep { margin: 0 8px; color: rgba(255,255,255,.4); }

/* ---------- Section layout ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-soft); }

/* Intro / about split */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-2 .media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.bullet-list { list-style: none; padding: 0; margin: 18px 0 28px; }
.bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pera-green);
  box-shadow: inset 0 0 0 3px #fff;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-tint); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .media img { transform: scale(1.04); }
.card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card .date-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pera-green);
  color: #fff;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-weight: 700;
  min-width: 54px;
  line-height: 1;
}
.card .date-chip .d { font-size: 1.15rem; }
.card .date-chip .m { font-size: .72rem; text-transform: uppercase; margin-top: 3px; opacity: .85; }
.card h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.card p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.card .more { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--pera-green); display: inline-flex; gap: 6px; align-items: center; }
.card .more::after { content: "→"; transition: transform .18s ease; }
.card:hover .more::after { transform: translateX(3px); }

/* ---------- Leadership cards ---------- */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.leader {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.leader:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.leader .avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--bg-tint);
  border: 4px solid var(--pera-gold-light);
}
.leader .avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pera-green), var(--pera-navy));
  color: #fff; font-size: 2rem; font-family: var(--font-display); font-weight: 700;
}
.leader .avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader .name { font-size: 1.1rem; margin: 4px 0 2px; }
.leader .role { color: var(--pera-green); font-weight: 600; font-size: .9rem; }
.leader .dept { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* ---------- Quick links ---------- */
.qlink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.qlink {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: all .18s ease;
  align-items: center;
}
.qlink:hover { border-color: var(--pera-green); box-shadow: var(--shadow-sm); color: var(--ink); transform: translateY(-2px); }
.qlink .ic {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--pera-bronze);
  transition: transform .2s ease, color .2s ease;
}
.qlink .ic svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.7;
}
.qlink:hover .ic {
  color: var(--pera-bronze-dark);
  transform: scale(1.08) rotate(-2deg);
}
.qlink .t { font-weight: 600; font-size: 1rem; line-height: 1.25; }
.qlink .s { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.qlink {
  gap: 18px;
  padding: 22px 22px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .95rem;
}
table.data th, table.data td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.data thead th {
  background: var(--pera-green);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .82rem;
}
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }
table.data tbody tr:hover { background: var(--bg-tint); }

/* ---------- Station image cards (tehsil/division overview) ---------- */
.station-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.station-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.station-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pera-bronze);
  color: var(--ink);
}
.station-card .sc-media {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--pera-charcoal) 0%, var(--pera-bronze-dark) 100%);
  overflow: hidden;
}
.station-card .sc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.station-card:hover .sc-media img { transform: scale(1.05); }
.station-card .sc-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.station-card .sc-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(26,26,26,0.75);
  color: var(--pera-gold-light);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.station-card .sc-name {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.station-card .sc-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.station-card .sc-desc {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.station-card .sc-cta {
  color: var(--pera-bronze);
  font-weight: 600;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.station-card .sc-cta::after { content: "→"; transition: transform .2s ease; }
.station-card:hover .sc-cta::after { transform: translateX(4px); }

/* Summary bar on station pages */
.station-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 22px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 32px;
}
.station-summary .sm-item { text-align: center; padding: 0 18px; }
.station-summary .sm-item + .sm-item { border-left: 1px solid var(--line); }
.station-summary .sm-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pera-bronze);
  font-size: 1.6rem;
  line-height: 1;
}
.station-summary .sm-lbl {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
@media (max-width: 640px) {
  .station-summary .sm-item + .sm-item { border-left: none; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
}

/* ---------- Division card (card with nested station chips) ---------- */
.division-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.division-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pera-bronze);
}
.division-card .dc-media {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--pera-charcoal) 0%, var(--pera-bronze-dark) 100%);
  overflow: hidden;
}
.division-card .dc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.division-card:hover .dc-media img { transform: scale(1.06); }
.division-card .dc-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.division-card .dc-count {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: var(--pera-bronze);
  color: #1a1a1a;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.division-card .dc-name {
  position: absolute;
  left: 18px; bottom: 14px; right: 18px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.division-card .dc-name .sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pera-gold-light);
  margin-bottom: 2px;
}
.division-card .dc-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.division-card .dc-body h5 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}
.division-card .dc-stations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.division-card .dc-station {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 11px;
  font-size: .85rem;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.division-card .dc-station::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pera-bronze);
}
.division-card .dc-station:hover {
  background: var(--bg-tint);
  color: var(--ink);
}

/* ---------- Pillar cards (Four Pillars of PERA / feature grid) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 26px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pera-bronze) 0%, var(--pera-bronze-light) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.pillar:hover::before { opacity: 1; }
.pillar .pillar-ic {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(184,146,76,0.15) 0%, rgba(217,184,112,0.08) 100%);
  border: 1px solid rgba(184,146,76,0.2);
  color: var(--pera-bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform .25s ease, background .25s ease;
}
.pillar:hover .pillar-ic {
  transform: rotate(-4deg) scale(1.05);
  background: linear-gradient(135deg, rgba(184,146,76,0.25) 0%, rgba(217,184,112,0.12) 100%);
}
.pillar .pillar-ic svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.6;
}
.pillar h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--pera-charcoal);
  line-height: 1.3;
}
.pillar p {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------- District tiles (compact image grid for many districts) ---------- */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.district-tile {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--pera-charcoal) 0%, var(--pera-bronze-dark) 100%);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.district-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.district-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
  filter: saturate(0.9);
}
.district-tile:hover img { transform: scale(1.08); filter: saturate(1.05); }
.district-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
  transition: background .25s ease;
}
.district-tile:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(184,146,76,0.25) 60%, rgba(0,0,0,0.05) 100%);
}
.district-tile .dt-region {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: rgba(26,26,26,0.65);
  color: var(--pera-gold-light);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.district-tile .dt-name {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.district-tile .dt-name small {
  display: block;
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
  letter-spacing: .3px;
}
@media (max-width: 640px) {
  .district-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .district-tile .dt-name { font-size: .95rem; }
}

/* ---------- Station list / chips ---------- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--pera-green);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--ink);
  transition: all .15s ease;
}
.chip:hover { background: var(--bg-tint); border-left-color: var(--pera-gold); }
.group-title {
  font-family: var(--font-display);
  color: var(--pera-navy);
  font-size: 1.1rem;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pera-gold);
  display: inline-block;
}

/* ---------- Document list ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  transition: all .18s ease;
}
.doc-list li:hover { border-color: var(--pera-green); box-shadow: var(--shadow-sm); }
.doc-list .meta { display: flex; gap: 14px; align-items: center; }
.doc-list .pdf-ic {
  width: 42px; height: 42px;
  background: #fde4e4;
  color: var(--danger);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  flex-shrink: 0;
}
.doc-list .title { font-weight: 500; color: var(--ink); }
.doc-list .date { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.doc-list .dl-btn {
  color: var(--pera-green);
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  padding: 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-group label .req { color: var(--danger); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pera-green);
  box-shadow: 0 0 0 3px rgba(184,146,76,.20);
}
.form-group .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }

/* ---------- Contact / CTA band ---------- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(26,26,26,0.95), rgba(43,43,43,0.9)),
    radial-gradient(circle at 80% 20%, rgba(184,146,76,0.25), transparent 50%),
    #2b2b2b;
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 2rem; }
.cta-band p { color: #d4cfc2; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--pera-navy);
  color: #d4cfc2;
  padding: 60px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: #d4cfc2; font-size: .92rem; }
.footer a:hover { color: var(--pera-gold-light); }
.footer .brand-block p { color: #a8a08f; font-size: .92rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.footer-social a:hover { background: var(--pera-gold); }
.footer-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding: 20px 0;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Partner cards ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.partner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  text-align: center;
  transition: all .18s ease;
}
.partner:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.partner .logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.partner .logo img { max-height: 90px; max-width: 180px; }
.partner h4 { font-size: 1.05rem; margin-bottom: 4px; }
.partner .tag {
  display: inline-block;
  background: var(--pera-green);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.partner .tag.associate { background: var(--pera-navy); }

/* ---------- Info box ---------- */
.info-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--pera-green);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box strong { color: var(--pera-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px;
    display: none;
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 14px; border-radius: var(--r-sm); }
  .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    display: none;
  }
  .has-sub.open .sub-menu { display: block; }
  .has-sub > a { cursor: pointer; }
  .gop-badge { display: none; }
  .topbar .left span:nth-child(n+2) { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  section.block { padding: 52px 0; }
  .hero { padding: 60px 0 70px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .topbar { font-size: .75rem; }
  .topbar .left { gap: 10px; }
}

/* ---------- Small helpers ---------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2rem; }
.prose p { color: var(--ink-soft); font-size: 1.02rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.badge {
  display: inline-block;
  background: var(--pera-gold-light);
  color: var(--pera-navy);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-left: 8px;
}
.badge.new { background: var(--pera-green); color: #fff; }

/* Scroll back-to-top */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  background: var(--pera-green);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  font-size: 1.2rem;
}
.to-top.visible { display: flex; }
.to-top:hover { background: var(--pera-green-dark); }

/* Privacy policy / long-form legal page */
.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px;
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
}
.legal-toc h4 {
  margin: 0 0 12px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 700;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; margin-bottom: 6px; }
.legal-toc a {
  display: block;
  font-size: .82rem;
  padding: 6px 10px 6px 32px;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  position: relative;
  line-height: 1.35;
  transition: all .15s ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 6px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--pera-bronze);
  font-size: .74rem;
}
.legal-toc a:hover { background: var(--bg-tint); color: var(--ink); }
.legal-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}
.legal-main h2 {
  font-size: 1.4rem;
  color: var(--pera-charcoal);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pera-bronze-light);
  scroll-margin-top: calc(var(--nav-h) + 20px);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-main h2 .n {
  font-size: .9rem;
  color: var(--pera-bronze);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 1px;
}
.legal-main h3 {
  font-size: 1.05rem;
  color: var(--pera-charcoal);
  margin: 1.6rem 0 .6rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.legal-main p, .legal-main li { font-size: .95rem; line-height: 1.75; color: var(--ink-soft); }
.legal-main li { margin-bottom: 6px; }
.legal-main ul, .legal-main ol { padding-left: 22px; margin-bottom: 1.1em; }
.legal-main section + section { margin-top: 2.4rem; }
.legal-meta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  font-size: .85rem;
}
.legal-meta strong { color: var(--pera-charcoal); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.legal-meta .item .val { color: var(--ink); font-weight: 500; }
@media (max-width: 960px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
  .legal-main { padding: 28px 22px; }
}

/* News article (detail page) */
.article-hero {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  background: var(--bg-tint);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 18px;
}
.article-meta .dot { width: 4px; height: 4px; background: var(--muted); border-radius: 50%; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.article-body p { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pera-green);
  font-weight: 600;
  margin-bottom: 24px;
}

/* Image-only section (org charts — legacy small layout) */
.org-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 30px;
}
.org-figure img { margin: 0 auto; max-width: 100%; }
.org-figure figcaption { margin-top: 12px; font-weight: 600; color: var(--pera-navy); }

/* Org Chart section — full-width stacked (title on top, chart below) */
.org-section {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.org-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.org-section .org-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.org-section .org-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--pera-bronze), var(--pera-bronze-dark));
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .5px;
  box-shadow: 0 3px 10px rgba(184,146,76,0.25);
}
.org-section .org-title {
  margin: 0;
  line-height: 1.2;
}
.org-section .org-title h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin: 0 0 4px;
  color: var(--pera-charcoal);
}
.org-section .org-title .org-sub {
  color: var(--muted);
  font-size: .88rem;
  font-family: var(--font-sans);
  letter-spacing: .2px;
}
.org-section .org-chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.org-section .org-chart:hover { box-shadow: var(--shadow-md); }
.org-section .org-chart img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .org-section { margin-bottom: 40px; padding-bottom: 28px; }
  .org-section .org-head { gap: 14px; margin-bottom: 18px; }
  .org-section .org-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .org-section .org-chart { padding: 16px; }
}

/* ────────────────────────────────────────────────────────────────
 * Citizen auth pages — login, register, forgot-password, reset.
 * Override the per-page <style> block in each view so a single
 * stylesheet edit can re-tune the whole flow.
 *
 * Layout intent:
 *   • Desktop (≥ 960 px): a wide, centred card (~960 px) sat on a
 *     tinted page section. No more 480-px mobile column on a 1080p
 *     monitor.
 *   • Tablet (640–960 px): same card, lets the content area
 *     breathe with side padding.
 *   • Phone (< 640 px): card collapses to full width, two-column
 *     register fields stack.
 * ──────────────────────────────────────────────────────────────── */

.auth-shell {
  background: linear-gradient(180deg, #fafaf6 0%, #f4efe2 100%);
  padding: 48px 0 64px;
  min-height: calc(100vh - 220px);
}
.auth-shell > .container { max-width: 960px; }

.auth-card {
  background: #fff;
  border: 1px solid #e7e2d3;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.auth-card .auth-title  { font-size: 1.75rem; margin: 0 0 6px; }
.auth-card .auth-sub    { color: #555; margin: 0 0 22px; font-size: 1rem; }

.auth-card .field { margin-bottom: 16px; }
.auth-card .field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
}
.auth-card .field input[type="text"],
.auth-card .field input[type="email"],
.auth-card .field input[type="tel"],
.auth-card .field input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d8d3c4;
  border-radius: 8px;
  font-size: .98rem;
  font-family: var(--font-sans);
}
.auth-card .field input:focus { outline: 2px solid var(--pera-gold); outline-offset: 1px; }
.auth-card .field .help { color: #777; font-size: .82rem; display: block; margin-top: 6px; }

/* Two-column row that collapses gracefully on phones. */
.auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .auth-grid-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 22px; }
}

/* Form-row helpers (remember-me + forgot-password). */
.auth-card .field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.auth-card .check { font-weight: 400; font-size: .92rem; }
.auth-card .req   { color: var(--danger); }
.auth-card .btn-block { width: 100%; padding: 12px; font-size: 1rem; }
.auth-card .auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: .95rem;
  color: #555;
}
.auth-card .link-muted { font-size: .9rem; color: #666; }

/* ────────────────────────────────────────────────────────────────
 * Error display — louder, RED, and visually distinct from help
 * text. Used by .alert.alert-danger and any inline .field-error.
 * ──────────────────────────────────────────────────────────────── */

.alert {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: .95rem;
  line-height: 1.45;
  border-left-width: 4px;
  border-left-style: solid;
}
.alert-danger {
  background: #fef2f2;
  color: var(--danger);
  border-color: var(--danger);
}
.alert-danger ul { margin: 0; padding-left: 18px; }
.alert-danger li { color: var(--danger); }
.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-color: #15803d;
}

/* Per-field error: scoped to inputs that failed validation. */
.field .field-error,
.auth-card .field .help.error {
  color: var(--danger);
  font-weight: 600;
}
.field.has-error input,
.field input.has-error {
  border-color: var(--danger);
  background: #fef9f9;
}
