/* /home/seqgov/public_html/beta.sequatchiecountytn.gov/assets/css/style.css */

/* ============================================================
   Sequatchie County Government — Public Stylesheet
   Mockup 1: Classic Banner Design
   Navy #14213d / Gold #C9A84C
   ============================================================ */

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

/* ADA: Global keyboard focus ring — never suppress focus for keyboard users.
   :focus-visible only shows on keyboard navigation, not mouse clicks. */
:focus-visible {
  outline: 3px solid #C9A84C;
  outline-offset: 2px;
}

:root {
  --navy:       #14213d;
  --navy2:      #1d3461;
  --navy3:      #243b6a;
  --gold:       #C9A84C;
  --gold-light: #e8c96a;
  --gold-pale:  #fdf6e3;
  --bg:         #f4f2ee;
  --white:      #ffffff;
  --border:     #dedad3;
  --text:       #1a1a1a;
  --muted:      #555555;
  --danger:     #b22222;
  --success:    #1a5c2a;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;
  --radius:     4px;
  --radius-lg:  8px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--navy2); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar { background: #0d1826; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-location { color: #b8c5d6; font-size: 12px; font-weight: 500; }
.topbar-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-links a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 4px 10px;
  color: #d9e1ec;
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.topbar-links a:hover,
.topbar-links a:focus-visible {
  color: var(--gold);
  background: rgba(201,168,76,0.14);
  border-color: rgba(201,168,76,0.55);
}
.topbar-links a.topbar-ada {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}
.topbar-links a.topbar-ada:hover,
.topbar-links a.topbar-ada:focus-visible {
  color: var(--navy);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ============================================================
   SITE HEADER — full-width dark navy, single row
   ============================================================ */
.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-brand { display: flex; align-items: center; gap: 0; }
.logo-link { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.seal {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold-light);
  flex-shrink: 0;
}
/* Uploaded logo image — larger, no border, minimal padding */
.site-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
}
.seal-txt {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: var(--font-serif);
}
.site-title {
  font-family: var(--font-serif);
  font-size: 23px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-sub { font-size: 13px; color: #aab; margin-top: 4px; letter-spacing: 0.3px; }
.header-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.search-form { display: flex; gap: 6px; }
.search-form input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 14px;
  color: #fff;
  width: 220px;
  font-family: var(--font-sans);
}
.search-form input::placeholder { color: rgba(255,255,255,0.45); }
/* ADA: Never suppress focus outline — keyboard users need it */
.search-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); outline: 2px solid var(--gold); outline-offset: 2px; }
.search-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
}
.search-form button:hover { background: var(--gold-light); }
.header-meta { display: flex; gap: 20px; font-size: 13px; color: #aab; }
.header-meta strong { color: var(--gold); }

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav { background: var(--navy2); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
}
.nav-inner a {
  color: #c8d0dc;
  font-size: 14px;
  padding: 12px 16px;
  display: block;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-inner a:hover,
.nav-inner a.active {
  background: var(--navy);
  color: var(--gold);
}

/* ── DROPDOWN NAV ────────────────────────────────────────── */
.nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-parent {
  color: #c8d0dc;
  font-size: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.nav-parent:hover,
.nav-parent.active,
.nav-dropdown-wrap:hover .nav-parent {
  background: var(--navy);
  color: var(--gold);
}
.nav-arrow {
  font-size: 9px;
  transition: transform 0.2s;
  display: inline-block;
}
.nav-dropdown-wrap:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 210px;
  z-index: 1000;
  border-top: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown { display: block; }
.nav-dropdown li { display: block; margin: 0; }
.nav-dropdown a {
  display: block;
  color: #c8d0dc;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
  text-decoration: none;
}
.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  background: rgba(255,255,255,0.08);
  color: var(--gold);
}

/* ============================================================
   ALERT BANNER — emergency styling (red)
   ============================================================ */
.alert-bar { background: #fde8e8; border-left: 5px solid #c8102e; }
.alert-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #5a0000;
}
.alert-tag {
  background: #9b0f24;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
/* ADA: Link color darkened from #7a5c00 to #7a0000 to maintain WCAG AA contrast on the red-tinted background */
.alert-inner a { color: #7a0000; font-weight: 600; text-decoration: underline; }

/* ============================================================
   HERO BANNER — quote + stats
   ============================================================ */
.hero-banner {
  background: var(--navy2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-quote { flex: 1; }
.hero-quote blockquote {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #e8eaf0;
  line-height: 1.9;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}
.hero-quote cite {
  display: block;
  font-size: 13px;
  color: var(--gold);
  font-style: normal;
  margin-top: 10px;
  padding-left: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.hero-stats { display: flex; gap: 16px; flex-shrink: 0; }
.hstat {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
}
.hstat .num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.hstat .lbl {
  font-size: 12px;
  color: #aab;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ============================================================
   QUICK LINKS — solid gold bar
   ============================================================ */
.quicklinks-bar { background: var(--gold); }
.quicklinks-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
}
.ql-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  border-right: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}
.ql-item:last-child { border-right: none; }
.ql-item:hover { opacity: 0.7; color: var(--navy); }
.ql-icon { display: none; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.site-main { min-height: 60vh; }
.page-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 38px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}
.page-body.full-width { grid-template-columns: 1fr; }
.page-body.full-width .content-narrow { max-width: 820px; }
.content-narrow { width: 100%; }
.main-col { display: flex; flex-direction: column; gap: 32px; }
.side-col { display: flex; flex-direction: column; gap: 22px; }
.page-body.readable .content-narrow {
  max-width: 920px;
  margin: 0 auto;
}
.page-body.full-width.directory-page-body {
  padding-top: 24px;
  gap: 0;
}
.listing-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-card-title {
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 16px;
  margin: 0;
  line-height: normal;
}
.sidebar-card-body {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.sidebar-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-link-list li { border-bottom: 1px solid var(--border); }
.sidebar-link-list li:last-child { border-bottom: none; }
.sidebar-link-list > li > a,
.sidebar-link-list > li > span {
  display: block;
  padding: 11px 16px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar-link-list a:hover {
  background: var(--gold-pale);
  color: var(--navy);
}
.sidebar-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.sidebar-date-pill {
  display: inline-block;
  width: fit-content;
  margin: 0 0 4px 0;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  font-size: 9px;
  font-weight: 700;
  line-height: 2;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  vertical-align: top;
}
.sidebar-notice-title {
  display: block;
}
.sidebar-stat { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 2;
  font-family: var(--font-serif);
}
.sidebar-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* ADA: gold on light bg fails (2.03:1) — navy2 on bg = 9.6:1, passes AAA */
.section-head a { font-size: 13px; color: var(--navy2); font-weight: 600; text-decoration: underline; }
.section-rule { display: none; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  border-left: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-left-color 0.15s;
  text-decoration: none;
}
.news-card:hover { border-left-color: var(--gold); }
.news-card .date {
/* ADA: 11px too small — increased to 12px */
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.5;
}
.news-card .excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   DIRECTORY TABS + SELECT
   ============================================================ */
.dir-tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20,33,61,0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dir-tab {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.dir-tab:hover {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold-pale);
}
.dir-tab.active {
  color: var(--gold);
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.dir-select-wrap { display: none; }
.dir-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314213d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.dir-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}

.dir-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.dir-panel.active { display: block; }

.dir-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dir-table th {
  background: #f0ede6;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  padding: 9px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}
.dir-table td { padding: 9px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.dir-table tr:last-child td { border-bottom: none; }
.dir-table tr:hover td { background: var(--gold-pale); }
.dir-table .official { color: var(--muted); font-size: 13px; }
.dir-table a { color: var(--navy2); font-weight: 500; }
.dir-table a:hover { color: var(--gold); }
.dir-name-link { font-weight: 700 !important; }
.dir-action-col,
.dir-action-cell {
  width: 120px;
  text-align: right !important;
  white-space: nowrap;
}
.dir-empty { color: var(--muted); font-style: italic; padding: 20px 12px !important; text-align: center; }
.entry-notes { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
/* ADA: widget-title changed to <h2> in index.php — margin-top/line-height reset */
.widget-title {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  margin: 0 0 12px 0;
  line-height: normal;
}

.evt-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; }
.evt-item:last-of-type { border-bottom: none; }
.evt-cal {
  background: var(--navy);
  color: var(--gold);
  min-width: 40px; width: 40px;
  border-radius: var(--radius);
  text-align: center;
  padding: 5px 0;
  flex-shrink: 0;
}
/* ADA: 8px is too small — increased to 11px minimum */
.evt-cal .mo { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.evt-cal .dy { font-size: 19px; font-weight: 700; line-height: 1; font-family: var(--font-serif); }
.evt-info .title { font-size: 13px; color: var(--navy); font-weight: 600; line-height: 1.4; }
.evt-info .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.grant-card {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  margin-bottom: 8px;
}
.grant-card:last-child { margin-bottom: 0; }
.grant-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-open     { background: #1a4731; color: #b7e4c7; }
.badge-upcoming { background: var(--navy); color: var(--gold); }
.badge-closed   { background: #555; color: #ddd; }
.grant-card h4 { font-size: 13px; color: var(--navy); font-weight: 700; line-height: 1.4; }
.grant-card p  { font-size: 12px; color: #665500; margin-top: 3px; line-height: 1.5; }

.qn-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.qn-item:last-child { border-bottom: none; }
.qn-label { color: var(--muted); }
.qn-phone { color: var(--navy); font-weight: 700; }

.res-link { display: block; font-size: 14px; color: var(--navy2); padding: 5px 0; border-bottom: 1px solid #eee; }
.res-link:last-child { border-bottom: none; }
.res-link:hover { color: var(--gold); }

.btn { display: block; text-align: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--navy); background: var(--white); margin-top: 10px; transition: background 0.15s; text-decoration: none; }
.btn:hover { background: var(--gold-pale); color: var(--navy); }
.btn-primary { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy2); color: var(--gold); }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header { background: var(--navy); border-bottom: 3px solid var(--gold); }
.page-header-inner { max-width: 1180px; margin: 0 auto; padding: 24px 38px; }
.page-header h1 { font-family: var(--font-serif); font-size: 26px; color: #fff; font-weight: 700; }
/* ADA: Breadcrumb changed to <ol> for semantics — styled to match original visual */
/* ADA: Breadcrumb is <nav><ol class="breadcrumb"> — styled as inline horizontal trail */
.page-header .breadcrumb {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: #aab;
}
.page-header .breadcrumb li { display: flex; align-items: center; }
.page-header .breadcrumb li + li::before { content: "›"; margin: 0 7px; color: #aab; }
.page-header .breadcrumb a { color: var(--gold); }
.page-header .breadcrumb li[aria-current="page"] { color: #aab; }

/* ============================================================
   NEWS LISTING
   ============================================================ */
.news-list-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border-left: 4px solid var(--navy);
  display: flex;
  gap: 16px;
  transition: border-left-color 0.15s;
}
.news-list-item:hover { border-left-color: var(--gold); }
.news-list-item .thumb { width: 100px; height: 80px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.news-list-item .content { flex: 1; }
.news-list-item h2 { font-family: var(--font-serif); font-size: 16px; color: var(--navy); font-weight: 700; }
.news-list-item .meta { font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.news-list-item .excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; }
.news-list-item .attachments { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.attachment-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--navy2); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px 10px; font-weight: 500; }
.attachment-link:hover { background: var(--gold-pale); }

/* ============================================================
   GRANTS PAGE
   ============================================================ */
.grant-full-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; border-top: 4px solid var(--navy); }
.grant-full-card.status-open { border-top-color: var(--success); }
.grant-full-card.status-upcoming { border-top-color: var(--gold); }
.grant-full-card.status-closed { border-top-color: #999; opacity: 0.75; }
.grant-full-card h2 { font-family: var(--font-serif); font-size: 17px; color: var(--navy); font-weight: 700; margin: 8px 0 10px; }
.grant-full-card .body { font-size: 15px; color: var(--text); line-height: 1.7; }
.grant-full-card .deadline { font-size: 14px; color: var(--muted); margin-top: 10px; font-weight: 500; }

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.event-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; gap: 16px; }
.event-cal-lg { background: var(--navy); color: var(--gold); min-width: 58px; border-radius: var(--radius); text-align: center; padding: 8px 0; flex-shrink: 0; }
.event-cal-lg .mo { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.event-cal-lg .dy { font-size: 28px; font-weight: 700; line-height: 1; font-family: var(--font-serif); }
.event-card .ev-title { font-family: var(--font-serif); font-size: 16px; color: var(--navy); font-weight: 700; }
.event-card .ev-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.event-card .ev-body { font-size: 14px; color: var(--text); margin-top: 8px; line-height: 1.6; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span { padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--navy); background: var(--white); transition: background 0.15s; }
.pagination a:hover { background: var(--gold-pale); }
.pagination .current { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0d1826; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo { display: flex; gap: 14px; align-items: flex-start; }
.footer-seal { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.footer-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo strong { color: #fff; font-size: 15px; font-weight: 600; display: block; margin-bottom: 4px; }
/* ADA: #7888aa borderline on dark footer — #b8c5d6 = 10.2:1 (passes AAA) */
.footer-logo p { font-size: 13px; color: #b8c5d6; line-height: 1.8; }
/* ADA: h3 changed to h2 in footer.php — selector updated to match */
.site-footer h2 { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 6px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 6px; }
/* ADA: #8899bb borderline on dark footer — #b8c5d6 = 10.2:1 (passes AAA) */
.site-footer ul a { color: #b8c5d6; font-size: 14px; transition: color 0.15s; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom { padding: 0; }
.footer-bottom .footer-inner { padding: 14px 28px; grid-template-columns: 1fr auto; gap: 0; }
/* ADA: #556 on dark footer bg = 2.45:1 (fails) — #9aaabb = 7.13:1 (passes AA) */
.footer-bottom p { color: #9aaabb; font-size: 13px; }
.footer-legal { display: flex; gap: 18px; }
/* ADA: #7888aa borderline on dark footer — #b8c5d6 = 10.2:1 (passes AAA) */
.footer-legal a { color: #b8c5d6; font-size: 13px; }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── TABLET (≤1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .header-inner { padding: 14px 20px; }
  .site-title { font-size: 19px; }
  .seal { width: 56px; height: 56px; }
  .site-logo-img { width: 64px; height: 64px; }
  .search-form input { width: 180px; }
  .hero-stats { gap: 10px; }
  .hstat { padding: 12px 16px; }
  .hstat .num { font-size: 23px; }
  .quicklinks-inner { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; padding: 10px 20px; }
  .page-body { padding: 20px 20px 40px; }
  .page-body.full-width.directory-page-body {
    padding-top: 20px;
    gap: 0;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 20px; }
}

/* ── SMALL TABLET / LARGE PHONE (≤768px) ───────────────────── */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px; }
  .header-right { align-items: flex-start; width: 100%; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; width: auto; }
  .header-meta { flex-wrap: wrap; gap: 10px; }
  .nav-inner { padding: 0 8px; }
  .nav-inner a { padding: 10px 10px; font-size: 13px; }
  .hero-inner { flex-direction: column; gap: 16px; padding: 20px 16px; }
  .hero-stats { width: 100%; justify-content: space-around; }
  .quicklinks-inner { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 10px 16px; }
  .page-body { grid-template-columns: 1fr; padding: 16px 16px 36px; gap: 20px; }
  .page-body.full-width.directory-page-body {
    padding-top: 16px;
    gap: 0;
  }
  .news-grid { grid-template-columns: 1fr; }
  .page-header-inner { padding: 18px 16px; }
  .dir-tabs { display: none; }
  .dir-select-wrap { display: block; }
  .dir-panel { border-top: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 10px; }
  .dir-action-col,
  .dir-action-cell { display: none; }
  .news-list-item { flex-direction: column; }
  .news-list-item .thumb { width: 100%; height: 180px; }
  .event-card { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 20px 16px; gap: 20px; }
  .footer-bottom .footer-inner { flex-direction: column; gap: 8px; grid-template-columns: 1fr; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
}

/* ── MOBILE (≤480px) ────────────────────────────────────────── */
@media (max-width: 480px) {
  .topbar-inner { padding: 7px 14px; justify-content: center; }
  .topbar-location,
  .topbar-secondary { display: none !important; }
  .topbar-links { display: flex; justify-content: center; }
  .header-inner { padding: 12px 14px; }
  .seal { width: 46px; height: 46px; }
  .site-logo-img { width: 50px; height: 50px; }
  .seal-txt { font-size: 6px; }
  .site-title { font-size: 17px; }
  .site-sub { font-size: 11px; }
  .header-meta { display: none; }
  .search-form input { font-size: 14px; }
  .nav-inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0; }
  .nav-inner a { white-space: nowrap; padding: 10px 12px; font-size: 13px; flex-shrink: 0; }
  .hero-inner { padding: 16px 14px; }
  .hero-quote blockquote { font-size: 14px; }
  .hero-stats { display: none; }
  .quicklinks-inner { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 8px 14px; gap: 6px; }
  .ql-item { font-size: 12px; padding: 8px 4px; }
  .page-body { padding: 14px 14px 32px; }
  .page-body.full-width.directory-page-body {
    padding-top: 14px;
    gap: 0;
  }
  .page-header-inner { padding: 16px 14px; }
  .page-header h1 { font-size: 20px; }
  .dir-table th:nth-child(4),
  .dir-table td:nth-child(4) { display: none; }
  .footer-inner { grid-template-columns: 1fr; padding: 20px 14px; gap: 16px; }
  .footer-logo { flex-direction: column; }
  .footer-bottom .footer-inner { padding: 12px 14px; }
  .footer-bottom p { font-size: 12px; }
  .footer-legal { gap: 10px; }
  .footer-legal a { font-size: 12px; }
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: transparent;
  border: 2px solid rgba(201,168,76,0.5);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
  transition: border-color 0.2s ease, background 0.2s ease;
}
/* ADA: Never suppress focus outline — removed outline:none */
.nav-toggle:hover, .nav-toggle:focus { border-color: #C9A84C; background: rgba(201,168,76,0.1); }
.nav-toggle:focus-visible { outline: 2px solid #C9A84C; outline-offset: 2px; }
.nav-toggle__bar {
  display: block;
  width: 22px; height: 2px;
  background: #C9A84C;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,18,35,0.55);
  z-index: 999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-overlay.is-visible { display: block; }
.nav-overlay.is-active  { opacity: 1; }
body.nav-is-open { overflow: hidden; }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; }
  .header-right { display: none; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #14213d;
    border-left: 3px solid #C9A84C;
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0.32s step-end;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s step-start;
  }
  .main-nav::before {
    content: "Navigation";
    display: block;
    padding: 18px 24px 14px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #C9A84C;
    border-bottom: 1px solid rgba(201,168,76,0.25);
    background: rgba(0,0,0,0.2);
  }
  .main-nav .nav-inner { display: flex; flex-direction: column; padding: 8px 0 32px; }
  .main-nav .nav-inner a {
    display: block;
    padding: 13px 24px;
    color: #e8e8e8;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  }
  .main-nav .nav-inner a:hover,
  .main-nav .nav-inner a:focus { background: rgba(201,168,76,0.12); color: #C9A84C; padding-left: 32px; outline: none; }
  .main-nav .nav-inner a.active { color: #C9A84C; border-left: 3px solid #C9A84C; padding-left: 21px; background: rgba(201,168,76,0.08); }

  /* Mobile dropdown */
  .nav-dropdown-wrap { flex-direction: column; align-items: stretch; }
  .nav-parent { padding: 12px 20px; justify-content: space-between; }
  .nav-parent:hover, .nav-dropdown-wrap:hover .nav-parent { background: transparent; color: #c8d0dc; }
  .nav-parent.active { color: #C9A84C; }
  .nav-dropdown-wrap:hover .nav-dropdown { display: none; }
  .nav-dropdown-wrap.mobile-open .nav-dropdown { display: block; }
  .nav-dropdown-wrap.mobile-open .nav-arrow { transform: rotate(180deg); }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid #C9A84C;
    margin-left: 20px;
    background: transparent;
    padding: 0;
  }
  .nav-dropdown a { padding: 10px 20px; font-size: 13px; }
  .nav-dropdown a:hover { padding-left: 28px; background: rgba(201,168,76,0.08); color: #C9A84C; }

  .quicklinks-inner { flex-wrap: wrap; gap: 6px; padding: 10px 16px; }
  .quicklinks-inner .ql-item { flex: 1 1 calc(50% - 6px); min-width: 130px; justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .nav-toggle { width: 40px; height: 40px; }
  .main-nav { width: 100vw; border-left: none; border-top: 3px solid #C9A84C; }
  .main-nav .nav-inner a { padding: 14px 20px; }
}

/* ============================================================
   MAINTENANCE ADMIN BAR
   ============================================================ */
.maintenance-admin-bar {
  background: #b22222;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 9999;
}
.maintenance-admin-bar a {
  color: #ffd0d0;
  margin-left: 12px;
  text-decoration: underline;
}
.maintenance-admin-bar a:hover { color: #fff; }/* /home/seqgov/public_html/beta.sequatchiecountytn.gov/assets/css/style.css */
/* ── APPEND TO BOTTOM ────────────────────────────────────────────────────── */

/* ============================================================
   GRANTS LISTING PAGE
   ============================================================ */
/* ADA: grants-section-head changed to <h2> — margin reset keeps visual identical */
.grants-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.grants-section-head:first-child { margin-top: 0; }
.grants-section-closed { color: var(--muted); border-bottom-color: var(--border); }

.grants-section-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-open     { background: var(--success); }
.dot-upcoming { background: var(--gold); }
.dot-closed   { background: #aaa; }

.grants-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.grant-card-link {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  background: var(--white);
  transition: border-left-color 0.15s, box-shadow 0.15s;
}
.grant-card-link:hover {
  border-left-color: var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.grant-card-link.status-open     { border-left-color: var(--success); }
.grant-card-link.status-upcoming { border-left-color: var(--gold); }
.grant-card-link.status-closed   { border-left-color: #ccc; opacity: 0.8; }

.grant-card-inner { padding: 18px 22px; }

.grant-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.grant-deadline {
  font-size: 13px;
  color: var(--muted);
}
.grant-deadline strong { color: var(--navy); }
.grant-funds {
  font-size: 13px;
  color: var(--success);
  font-weight: 700;
}

/* ADA: grant-card-title changed to <h3> in PHP (under h2 section heads) — margin reset */
.grant-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.grant-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.grant-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy2);
}
.grant-card-link:hover .grant-card-cta { color: var(--gold); }

.grants-empty {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   GRANT DETAIL PAGE
   ============================================================ */
.grant-detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 38px 56px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* Status / deadline bar */
.grant-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy2);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.grant-detail-bar.gdb-urgent {
  border-left-color: var(--danger);
  background: #fff8f8;
}
.grant-detail-bar.gdb-closed {
  border-left-color: #aaa;
  background: #f8f8f8;
  opacity: 0.85;
}
.gdb-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}
.gdb-cta {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.gdb-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.grant-detail-stat { display: flex; flex-direction: column; gap: 2px; }
/* ADA: 10px is too small — increased to 12px */
.gds-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 700;
}
.gds-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.gds-urgent { color: var(--danger); }

/* Rich body content — TinyMCE output */
.grant-body-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.grant-body-content h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.grant-body-content h2:first-child { margin-top: 0; }
.grant-body-content h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  margin: 20px 0 8px;
}
.grant-body-content h4 {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
  margin: 16px 0 6px;
}
/* grant-body-content p spacing — see bottom of file */
.grant-body-content ul,
.grant-body-content ol {
  padding-left: 26px;
  margin-bottom: 14px;
}
.grant-body-content li { margin-bottom: 5px; }
.grant-body-content strong { color: var(--navy); }
.grant-body-content a { color: var(--navy2); text-decoration: underline; }
.grant-body-content a:hover { color: var(--gold); }
.grant-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.grant-body-content td,
.grant-body-content th {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.grant-body-content th {
  background: #f0ede6;
  font-weight: 700;
  color: var(--navy);
}
.grant-body-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 16px 0;
  padding: 10px 18px;
  background: var(--gold-pale);
  font-style: italic;
  color: var(--muted);
}

/* Contact box */
.grant-contact-box {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
}
/* ADA: Changed from h3 to h2 in PHP — selector updated; margin reset added */
.grant-contact-box h2 {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 8px 0;
}
.grant-contact-box p { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.grant-contact-box a { color: var(--navy2); font-weight: 600; }

/* Sidebar file groups */
.grant-detail-sidebar { position: sticky; top: 24px; }

.grant-files-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
/* ADA: Changed from div to h2 in PHP — font-size/margin reset keeps visual identical */
.grant-files-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  background: var(--navy);
  padding: 9px 14px;
  margin: 0;
  line-height: normal;
}
.grant-files-list {
  list-style: none;
  padding: 8px 0;
}
.grant-files-list li { border-bottom: 1px solid #f0ede6; }
.grant-files-list li:last-child { border-bottom: none; }

/* Download button */
.grant-file-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.grant-file-btn:hover { background: var(--gold-pale); color: var(--text); }

.gfb-icon {
  width: 32px; height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gfb-icon svg { width: 18px; height: 18px; }

/* Icon colours by file type */
.grant-file-btn[class*="icon-pdf"] .gfb-icon    { background: #fff0f0; color: #b22222; }
.grant-file-btn[class*="icon-doc"] .gfb-icon    { background: #e8f0ff; color: #1a3c8f; }
.grant-file-btn[class*="icon-xls"] .gfb-icon    { background: #e8f8ee; color: #1a5c2a; }
.grant-file-btn[class*="icon-jpg"] .gfb-icon,
.grant-file-btn[class*="icon-jpeg"] .gfb-icon,
.grant-file-btn[class*="icon-png"] .gfb-icon    { background: #f5eeff; color: #5a2a8a; }
.grant-file-btn[class*="icon-file"] .gfb-icon   { background: var(--bg); color: var(--muted); }

.gfb-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gfb-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ADA: 11px too small — increased to 12px */
.gfb-meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .grant-detail-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 36px;
    gap: 24px;
  }
  .grant-detail-sidebar { position: static; }
  .grant-body-content { padding: 20px 18px; }
  .grant-card-title { font-size: 15px; }
}

@media (max-width: 480px) {
  .grant-detail-layout { padding: 14px 14px 32px; }
  .grant-detail-bar { gap: 14px; padding: 12px 14px; }
  .grant-body-content { padding: 16px 14px; }
  .grant-body-content h2 { font-size: 16px; }
}

/* ── WordPress paste cleanup — neutralise leftover WP classes ── */
.grant-body-content .wp-block-spacer { display: none; }
.grant-body-content .wp-block-heading { font-weight: 700; }
.grant-body-content .wp-block-list { padding-left: 26px; margin-bottom: 14px; }
.grant-body-content .exitNotifierLink { color: var(--navy2); text-decoration: underline; }

/* ── Paragraph spacing — belt and suspenders ── */
.grant-body-content > p,
.grant-body-content p {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
.grant-body-content p:last-child { margin-bottom: 0 !important; }

/* ── Grant files locked state ───────────────────────────────── */
.grant-files-locked {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}
.grant-files-locked-icon { font-size: 28px; margin-bottom: 10px; }
.grant-files-locked p { font-size: 13px; line-height: 1.6; }

/* ============================================================
   DIRECTORY TABLE — avatars + profile links
   ============================================================ */
/* Photo column header — matches cell width */
.dir-photo-col { width: 44px; padding: 6px 8px 6px 12px !important; }
.dir-photo-cell { width: 44px; padding: 6px 8px 6px 12px !important; }
.dir-table-avatar {
  width: 55px;
  height: 55px;
  min-width: 55px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
  display: block;
  flex-shrink: 0;
}
.dir-table-initial {
  width: 55px; height: 55px;
  min-width: 55px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

/* ============================================================
   DIRECTORY DETAIL PAGE
   ============================================================ */
.dir-detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 38px 56px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Aside / profile card */
.dir-detail-aside {
  position: sticky;
  top: 24px;
}
.dir-detail-photo-wrap {
  margin-bottom: 0;
}
.dir-detail-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: none;
  display: block;
}
.dir-detail-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  font-family: var(--font-serif);
}
.dir-detail-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.dir-detail-title {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}
.dir-detail-meta-group {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dir-detail-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 8px;
}
.dir-detail-meta-label {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}
.dir-detail-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
  font-style: normal;
}
.dir-detail-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  font-style: normal;
}
a.dir-detail-contact-row:hover {
  background: var(--gold-pale);
  color: var(--navy);
}
.dir-detail-contact-icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.dir-detail-back {
  display: block;
  font-size: 13px;
  color: var(--navy2);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
}
.dir-detail-back:hover { color: var(--gold); }

/* Main content area */
.dir-detail-main { display: flex; flex-direction: column; gap: 24px; }
.dir-detail-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.dir-detail-section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.dir-detail-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.dir-detail-bio p { margin: 0 0 0.9em; }
.dir-detail-bio p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .dir-detail-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 36px;
    gap: 20px;
  }
  .dir-detail-aside { position: static; }
  .dir-detail-photo, .dir-detail-avatar {
    width: 180px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: var(--radius-lg);
  }
  .dir-detail-name { text-align: center; }
  .dir-detail-title { text-align: center; }
}

@media (max-width: 480px) {
  .dir-photo-cell { display: none; }
  .dir-detail-layout { padding: 14px 14px 32px; }
  .dir-detail-section { padding: 18px 16px; }
}

/* ── Directory detail — restyle contact card ── */
.dir-detail-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* ADA/UX: Square crop with center-top positioning works best for portrait
   headshots — prevents heads being cut off at top or too much torso showing */
.dir-detail-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: none;
  display: block;
}
.dir-detail-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 700;
  font-family: var(--font-serif);
}
.dir-detail-photo-wrap { margin-bottom: 0; }

/* Name/title plate sits right below photo */
.dir-detail-nameplate {
  background: var(--navy);
  padding: 16px 20px;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.dir-detail-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 3px;
}
.dir-detail-title {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

/* Contact card below nameplate */
.dir-detail-contact {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 6px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
  font-style: normal;
}
.dir-detail-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f0ede6;
  transition: background 0.15s;
  line-height: 1.5;
  font-style: normal;
}
.dir-detail-contact-row:last-child { border-bottom: none; }
a.dir-detail-contact-row:hover {
  background: var(--gold-pale);
  color: var(--navy);
}
.dir-detail-contact-icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
  width: 18px;
  text-align: center;
}

/* District/term badge group */
.dir-detail-meta-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dir-detail-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 8px;
}
.dir-detail-meta-label {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}
.dir-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--navy2);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: background 0.15s;
}
.dir-detail-back:hover { background: var(--gold-pale); color: var(--navy); }

/* Directory table profile link */
.dir-profile-link-wrap { margin-top: 0; }
/* ADA: 11px too small — increased to 12px */
.dir-profile-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy2);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dir-profile-link:hover { color: var(--gold); }

/* ============================================================
   EVENT DETAIL PAGE
   ============================================================ */
.event-detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 38px 56px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.event-detail-main { display: flex; flex-direction: column; gap: 20px; }
.event-detail-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 0; }

/* Date/meta bar */
.event-detail-bar {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.event-detail-cal {
  text-align: center;
  background: var(--gold);
  border-radius: var(--radius);
  padding: 10px 18px;
  flex-shrink: 0;
  min-width: 70px;
}
.edc-month { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--navy); }
.edc-day   { font-size: 36px; font-weight: 700; line-height: 1; color: var(--navy); font-family: var(--font-serif); }
/* ADA: opacity: 0.7 on gold bg reduces contrast to 3.69:1 (fails) — removed */
.edc-year  { font-size: 11px; color: var(--navy); }

.event-detail-meta { flex: 1; }
.edm-title { font-family: var(--font-serif); font-size: 18px; color: #fff; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.edm-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #b8c5d6; margin-bottom: 5px; }
.edm-row:last-child { margin-bottom: 0; }
.edm-icon { flex-shrink: 0; width: 20px; }

/* Content sections */
.event-detail-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.event-detail-section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.event-detail-body p { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 14px; }
.event-detail-body p:last-child { margin-bottom: 0; }

/* Sidebar info card */
.event-detail-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* ADA: edic-title changed to <h2> in PHP — font-size/margin resets keep it visually identical */
.edic-title {
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  margin: 0;
  line-height: normal;
}
.edic-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.edic-row:last-child { border-bottom: none; }
.edic-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.edic-value { font-size: 14px; color: var(--text); font-weight: 500; }
.edic-cal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: var(--bg);
  transition: background 0.15s;
}
.edic-cal-btn:hover { background: var(--gold-pale); color: var(--navy); }

/* Responsive */
@media (max-width: 768px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 36px;
    gap: 20px;
  }
  .event-detail-sidebar { position: static; }
  .event-detail-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .edm-title { font-size: 16px; }
}

@media (max-width: 480px) {
  .event-detail-layout { padding: 14px 14px 32px; }
  .event-detail-section { padding: 18px 16px; }
}

/* ============================================================
   EVENT DETAIL PAGE
   ============================================================ */
.event-detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 38px 56px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ── Date/time bar ── */
.event-detail-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.event-detail-cal {
  background: var(--gold);
  border-radius: var(--radius);
  padding: 10px 16px;
  text-align: center;
  flex-shrink: 0;
  min-width: 72px;
}
.edc-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.edc-day {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
/* ADA: opacity: 0.7 removed — see first definition above */
.edc-year {
  font-size: 11px;
  color: var(--navy);
  margin-top: 2px;
}
.event-detail-meta { flex: 1; min-width: 0; }
.edm-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.edm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #b8c5d6;
  margin-bottom: 4px;
}
.edm-row:last-child { margin-bottom: 0; }
.edm-icon { font-size: 14px; flex-shrink: 0; }

/* ── Content sections ── */
.event-detail-main { display: flex; flex-direction: column; gap: 0; }
.event-detail-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.event-detail-section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.event-detail-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.event-detail-body p { margin-bottom: 14px; }
.event-detail-body p:last-child { margin-bottom: 0; }

/* ── Sidebar ── */
.event-detail-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.event-detail-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.edic-title {
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 16px;
}
.edic-row {
  padding: 10px 16px;
  border-bottom: 1px solid #f0ede6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.edic-row:last-child { border-bottom: none; }
/* ADA: edic-row now uses <dl>/<dt>/<dd> — reset browser indent; 10px raised to 12px */
.event-detail-info-card dl { margin: 0; padding: 0; }
.edic-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.edic-value {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}
.edic-cal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}
.edic-cal-btn:hover { background: var(--gold-pale); color: var(--navy); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 36px;
    gap: 20px;
  }
  .event-detail-sidebar { position: static; }
  .event-detail-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .edm-title { font-size: 16px; }
}

@media (max-width: 480px) {
  .event-detail-layout { padding: 14px 14px 32px; }
  .event-detail-section { padding: 18px 16px; }
  .edc-day { font-size: 28px; }
}
/* ============================================================
   VISITOR GUIDE
   ============================================================ */
.visitor-layout {
  width: 100%;
}

.visitor-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  background: var(--navy);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.visitor-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.visitor-intro h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  max-width: 800px;
}

.visitor-intro p:last-child {
  margin: 0;
  color: #d6deeb;
  font-size: 15px;
  line-height: 1.65;
  max-width: 840px;
}

.visitor-intro-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(201,168,76,0.75);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.visitor-intro-link:hover,
.visitor-intro-link:focus {
  background: rgba(201,168,76,0.16);
  color: #fff;
  text-decoration: none;
}

.visitor-section-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 20px;
}

.visitor-featured {
  margin-bottom: 24px;
}

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

.visitor-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 138px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.visitor-feature-card:hover,
.visitor-feature-card:focus {
  color: var(--navy);
  text-decoration: none;
  border-color: rgba(201,168,76,0.75);
  box-shadow: 0 8px 20px rgba(20,33,61,0.08);
}

.visitor-feature-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.visitor-feature-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.visitor-topic-grid {
  column-count: 2;
  column-gap: 14px;
}

.visitor-topic-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.visitor-topic-card h3 {
  margin: 0;
  padding: 12px 15px;
  background: var(--navy);
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.visitor-topic-card > p {
  margin: 0;
  padding: 12px 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px solid #f0ede6;
}

.visitor-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visitor-page-list li {
  border-bottom: 1px solid #f0ede6;
}

.visitor-page-list li:last-child {
  border-bottom: none;
}

.visitor-page-list a {
  display: block;
  padding: 12px 15px;
  color: var(--navy);
  text-decoration: none;
}

.visitor-page-list a:hover,
.visitor-page-list a:focus {
  background: var(--bg);
  color: var(--navy);
  text-decoration: none;
}

.visitor-page-list span {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.visitor-page-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.visitor-empty-note {
  padding: 12px 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .visitor-intro {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 18px;
  }
  .visitor-intro-link {
    justify-self: start;
  }
  .visitor-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .visitor-topic-grid {
    column-count: 1;
  }
  .visitor-intro h2 {
    font-size: 21px;
  }
}
/* ============================================================
   SERVICES PAGE
   ============================================================ */
/* services-layout sits inside .page-body.full-width which already handles
   max-width, margin, and padding — no extra wrapper needed */
.services-layout {
  width: 100%;
}

.services-intro {
  background: var(--navy);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 22px;
}

.services-intro h2 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
}

.services-intro p {
  color: #d6deeb;
  margin: 0;
  max-width: 800px;
  font-size: 15px;
  line-height: 1.65;
}

.services-section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--navy);
}

.services-popular {
  margin-bottom: 22px;
}

.services-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.services-popular-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.services-popular-card:hover,
.services-popular-card:focus {
  color: var(--navy);
  text-decoration: none;
  border-color: rgba(201,168,76,0.75);
  box-shadow: 0 8px 20px rgba(20,33,61,0.08);
}

.services-popular-card strong {
  font-size: 16px;
  line-height: 1.25;
}

.services-popular-card span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.services-topic-grid {
  column-count: 2;
  column-gap: 14px;
}

.services-topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 14px;
}

.services-topic-card h3 {
  margin: 0;
  padding: 12px 15px;
  background: var(--navy);
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.services-task-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.services-task-list li {
  padding: 9px 15px;
  border-bottom: 1px solid #f0ede6;
}

.services-task-list li:last-child {
  border-bottom: none;
}

.services-task-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy2);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.services-task-link::after {
  content: ">";
  color: var(--gold);
  flex: 0 0 auto;
}

.services-task-link:hover,
.services-task-link:focus {
  color: var(--navy);
  text-decoration: underline;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.service-detail-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
}

.service-detail-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--gold-pale);
  border-left: 5px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.65;
}

.service-detail-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.service-detail-content p,
.service-detail-content ul,
.service-detail-content ol {
  margin-bottom: 1.1em;
}

.service-detail-content p:last-child,
.service-detail-content ul:last-child,
.service-detail-content ol:last-child {
  margin-bottom: 0;
}

.service-detail-content h2,
.service-detail-content h3,
.service-detail-content h4 {
  color: var(--navy);
  margin: 1.35em 0 0.45em;
}

.service-detail-content h2:first-child,
.service-detail-content h3:first-child,
.service-detail-content h4:first-child {
  margin-top: 0;
}

.service-detail-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-detail-back,
.service-detail-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.service-detail-back {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
}

.service-detail-back:hover,
.service-detail-back:focus {
  color: var(--navy);
  background: var(--gold-pale);
  text-decoration: none;
}

.service-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-detail-card h2 {
  margin: 0;
  padding: 11px 15px;
  background: var(--navy);
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-related-list li {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.service-related-list li:last-child {
  border-bottom: none;
}

.service-related-list a {
  color: var(--navy);
  text-decoration: none;
}

.service-related-list strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.service-related-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.service-related-contact {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}
.section-index-layout {
  width: 100%;
}
.search-layout {
  width: 100%;
}
.standard-page-layout {
  width: 100%;
}
.standard-page-layout,
.page-content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.page-rich-content > h2:first-child,
.page-rich-content > h3:first-child,
.page-rich-content > h4:first-child {
  margin-top: 0;
}
.page-bottom-nav {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.services-grid {
  column-count: 3;
  column-gap: 18px;
  margin-bottom: 32px;
}

.services-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.services-card:hover {
  border-color: rgba(178, 144, 72, 0.7);
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08);
}

.services-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
  background: var(--navy);
  padding: 13px 15px;
}

.services-card-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.services-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services-list li {
  border-bottom: none;
  padding-bottom: 0;
}

.services-list a {
  font-size: 14px;
  color: var(--navy2);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s, background 0.15s;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 15px;
}
.services-list a::after {
  content: ">";
  color: var(--gold);
  flex: 0 0 auto;
}
.services-list a:hover {
  color: var(--navy);
  background: #f8fafc;
}
.services-list a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Emergency callout */
.services-callout {
  background: var(--navy);
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--gold);
  padding: 24px 28px;
}
.services-callout-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}
.services-callout p {
  font-size: 15px;
  color: #c8d0dc;
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { column-count: 2; }
  .services-popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .services-grid {
    column-count: 1;
    column-gap: 0;
  }
  .services-intro { padding: 16px; }
  .services-popular-grid,
  .services-topic-grid {
    grid-template-columns: 1fr;
  }
  .services-topic-grid {
    column-count: 1;
    column-gap: 0;
  }
  .services-popular-card { min-height: 96px; }
  .service-detail-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-detail-main { padding: 20px 16px; }
  .service-detail-sidebar {
    position: static;
  }
  .services-callout { padding: 18px 16px; }
.standard-page-layout,
.page-content-card { padding: 18px 16px; }
}

/* ============================================================
   SITEMAP PAGE
   ============================================================ */
.sitemap-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.sitemap-intro {
  grid-column: 1 / -1;
  background: var(--navy);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}

.sitemap-intro p {
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 780px;
}

.sitemap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.sitemap-card-primary,
.sitemap-card-wide {
  grid-column: 1 / -1;
}

.sitemap-card h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.sitemap-card h3 {
  font-size: 13px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 8px;
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sitemap-feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sitemap-feature-list li {
  min-width: 0;
}

.sitemap-feature-list a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
}

.sitemap-feature-list a::after {
  content: ">";
  color: var(--gold);
  flex: 0 0 auto;
}

.sitemap-column-list {
  display: block;
  columns: 2;
  column-gap: 24px;
}

.sitemap-column-list li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.sitemap-list a {
  color: var(--navy2);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.sitemap-list a:hover,
.sitemap-list a:focus {
  color: var(--navy);
  text-decoration: underline;
}

.sitemap-feature-list a:hover,
.sitemap-feature-list a:focus {
  background: var(--gold-pale);
  text-decoration: none;
}

.sitemap-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
}

@media (max-width: 900px) {
  .sitemap-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitemap-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sitemap-layout,
  .sitemap-feature-list,
  .sitemap-service-grid {
    grid-template-columns: 1fr;
  }
  .sitemap-card { padding: 18px 16px; }
  .sitemap-intro { padding: 16px; }
  .sitemap-column-list { columns: 1; }
}
/* ============================================================
   NEWS DETAIL PAGE
   ============================================================ */
.news-detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 38px 56px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ── Main article column ── */
.news-detail-main { display: flex; flex-direction: column; gap: 0; }

.news-detail-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.news-detail-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.news-detail-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.news-detail-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.news-detail-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.news-detail-body p { margin-bottom: 14px; }
.news-detail-body p:last-child { margin-bottom: 0; }
.news-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 12px 0;
}

.news-detail-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.news-detail-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.news-detail-linked-event {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 0.15s;
}
.news-detail-linked-event:hover,
.news-detail-linked-event:focus { background: var(--navy2, #1d3461); color: var(--gold); }
.news-detail-linked-event-date {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

.news-detail-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.news-detail-images-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.news-detail-image-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  text-align: center;
}

.news-detail-attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-detail-back-inline {
  margin-top: 28px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.news-detail-back-inline:hover { text-decoration: underline; }

/* ── Sidebar ── */
.news-detail-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-detail-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ndic-title {
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 16px;
  margin: 0;
  line-height: normal;
}

.ndic-body {
  padding: 14px 16px;
}

/* Back-to-news button in sidebar */
.ndic-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
  box-sizing: border-box;
}
.ndic-back-btn:hover,
.ndic-back-btn:focus { background: var(--navy2, #1d3461); color: var(--gold); }
/* ADA: visible focus indicator */
.ndic-back-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.news-detail-featured-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
}

.news-detail-featured-mobile {
  display: none;
}

.news-detail-featured {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  background: #f8fafc;
}

/* Recent news list in sidebar */
.ndic-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ndic-recent-list li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.ndic-recent-list li:last-child { border-bottom: none; }
.ndic-recent-link {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.ndic-recent-link:hover { text-decoration: underline; color: var(--navy2, #1d3461); }
.ndic-recent-date {
  display: inline-block;
  width: fit-content;
  margin: 0 0 5px 0;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  font-size: 9px;
  font-weight: 700;
  line-height: 2;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  vertical-align: top;
}
.ndic-recent-title { display: block; }
.ndic-view-all {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.ndic-view-all:hover { background: var(--gold-pale); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 36px;
    gap: 20px;
  }
  .news-detail-sidebar { position: static; }
  .news-detail-article { padding: 22px 20px; }
  .news-detail-sidebar .news-detail-featured-card { display: none; }
  .news-detail-featured-mobile {
    display: block;
    margin-bottom: 20px;
  }
  .news-detail-featured { max-height: 320px; }
}

@media (max-width: 480px) {
  .news-detail-layout { padding: 14px 14px 32px; }
  .news-detail-article { padding: 18px 16px; }
}

/* ============================================================
   LAYOUT NORMALIZATION
   Detail layouts already sit inside .page-body, so they should not
   add their own page-width padding on top of the shared container.
   ============================================================ */
.page-body.full-width > .grant-detail-layout,
.page-body.full-width > .event-detail-layout,
.page-body.full-width > .dir-detail-layout,
.page-body.full-width > .news-detail-layout {
  max-width: none;
  width: 100%;
  padding: 0;
}

@media (max-width: 768px) {
  .page-body.full-width > .grant-detail-layout,
  .page-body.full-width > .event-detail-layout,
  .page-body.full-width > .dir-detail-layout,
  .page-body.full-width > .news-detail-layout {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .page-body.full-width > .grant-detail-layout,
  .page-body.full-width > .event-detail-layout,
  .page-body.full-width > .dir-detail-layout,
  .page-body.full-width > .news-detail-layout {
    padding: 0;
  }
}
