/*
Theme Name: JPCC Clerk of Court
Theme URI: https://www.jpclerkofcourt.us/
Author: Jefferson Parish Clerk of Court
Description: Official theme for the Jefferson Parish Clerk of Court. Navy masthead, gold accents, burgundy primary actions, USWDS-standard typefaces (Public Sans / Merriweather), and accessible, operational layouts per the JPCOC design reference.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jpcc
*/

:root {
  --font-ui: "Public Sans", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Merriweather", Georgia, Cambria, "Times New Roman", serif;

  --jpcc-navy: #0a314d;
  --jpcc-navy-dark: #062135;
  --jpcc-gold: #c1a783;
  --jpcc-gold-deep: #9c7f54;
  --jpcc-gold-text: #6a5639; /* darker than --jpcc-gold-deep: needed to hit 4.5:1 on white for small text (WCAG 1.4.3) */
  --jpcc-red: #760b1d;
  --jpcc-red-dark: #5c0917;

  --jpcc-bg: #f4f7fa;
  --jpcc-bg-soft: #f8fafc;
  --jpcc-surface: #ffffff;

  --jpcc-border: #d7dee6;
  --jpcc-border-strong: #b7c4d0;

  --jpcc-text: #152536;
  --jpcc-muted: #5d6b78;

  --pale-gold-bg: #f6efe3;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

a { color: var(--jpcc-navy); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--jpcc-gold-deep);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--jpcc-navy); color: #fff;
  padding: 0.6rem 1rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; clip-path: none; width: auto; height: auto; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Official banner ---------- */
.gov-banner {
  background: var(--jpcc-navy-dark);
  color: #cfdae3;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(193, 167, 131, 0.35);
}
.gov-banner .wrap {
  display: flex; align-items: center; gap: 0.5rem;
  padding-top: 0.3rem; padding-bottom: 0.3rem;
  flex-wrap: wrap;
}
.gov-banner .pelican { color: #fff; font-size: 0.85rem; }
.gov-banner strong { color: #fff; font-weight: 600; }
.gov-banner .utility-menu { margin-left: auto; }
.gov-banner .utility-menu ul { display: flex; gap: 1.1rem; list-style: none; }
.gov-banner a { color: #cfdae3; text-decoration: none; }
.gov-banner a:hover { color: #fff; text-decoration: underline; }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--jpcc-navy);
  border-bottom: 3px solid var(--jpcc-gold);
  color: #fff;
}
.masthead .wrap {
  display: flex; align-items: center; gap: 1.1rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.masthead-brand {
  display: flex; align-items: center; gap: 1.1rem;
  flex: 1 1 auto; min-width: 0;
}
.seal, .masthead .custom-logo { flex: 0 0 auto; width: 110px; height: 110px; object-fit: contain; }
.masthead-id { line-height: 1.12; min-width: 0; }
.masthead-id a { text-decoration: none; }
.masthead-officeholder {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 500; color: #fff;
}
.masthead-office {
  font-family: var(--font-serif);
  font-size: 1.02rem; font-weight: 500; color: var(--jpcc-gold);
  margin-top: 0.15rem;
}
.masthead-tagline {
  font-size: 0.78rem; color: #aebfcd;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 0.35rem;
}
.masthead-actions { margin-left: auto; display: flex; gap: 0.6rem; align-items: center; }

.btn {
  display: inline-block; min-height: 38px;
  padding: 0.55rem 1.1rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-ui);
}
.btn-primary { background: var(--jpcc-red); color: #fff; border-color: var(--jpcc-red); }
.btn-primary:hover { background: var(--jpcc-red-dark); }
.btn-secondary { background: var(--jpcc-navy); color: #fff; border-color: var(--jpcc-navy); }
.btn-secondary:hover { background: var(--jpcc-navy-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-gold-line {
  background: transparent; color: #fff; border-color: var(--jpcc-gold);
  min-height: 34px; padding: 0.4rem 0.9rem; font-size: 0.84rem;
}
.btn-gold-line:hover { background: rgba(193, 167, 131, 0.15); }

/* ---------- Navigation ---------- */
.main-nav {
  background: var(--jpcc-navy-dark);
  border-bottom: 1px solid var(--jpcc-border);
}
.main-nav .wrap { display: flex; }
.main-nav ul { display: flex; list-style: none; flex: 1 1 auto; }
.main-nav a {
  display: block;
  color: #d9e2ea; text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  padding: 0.75rem 0.6rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.main-nav .site-search-item {
  margin-left: auto;
  display: flex; align-items: center;
}
.main-nav .site-search-item form { display: flex; gap: 0.35rem; }
.main-nav .site-search-item input[type="search"] {
  min-height: 28px; width: 160px;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px;
  font-size: 0.78rem; font-family: var(--font-ui); color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.main-nav .site-search-item input[type="search"]::placeholder { color: #aebfcd; }
.main-nav .site-search-item input[type="search"]:focus {
  outline: none; background: #fff; color: var(--jpcc-text);
  border-color: var(--jpcc-gold);
}
.main-nav .site-search-item button {
  min-height: 28px;
  padding: 0.25rem 0.6rem; border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.78rem; font-weight: 600; font-family: var(--font-ui);
  background: var(--jpcc-gold); color: var(--jpcc-navy-dark);
  cursor: pointer;
}
.main-nav .site-search-item button:hover { background: #cdb795; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--jpcc-gold);
}

/* ---------- Primary nav submenu (accessible disclosure) ---------- */
.main-nav li.menu-item-has-children {
  position: relative;
}
.main-nav a .submenu-caret {
  display: inline-flex;
  align-items: center;
  margin-left: 0.2rem;
}
.main-nav a .submenu-caret svg { transition: transform 0.15s ease; }
.main-nav a[aria-expanded="true"] .submenu-caret svg { transform: rotate(180deg); }
.main-nav .sub-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--jpcc-navy-dark);
  border: 1px solid var(--jpcc-border);
  z-index: 30;
}
/* aria-expanded only exists after JS initializes, so this never fires during the pre-JS flash */
.main-nav a[aria-expanded="true"] + .sub-menu { display: flex; }
.main-nav .sub-menu a { border-bottom: none; }

/* ---------- Notice bar ---------- */
.notice {
  background: var(--pale-gold-bg);
  border-bottom: 1px solid var(--jpcc-border);
}
.notice .wrap {
  display: flex; gap: 0.7rem; align-items: center;
  padding-top: 0.6rem; padding-bottom: 0.6rem;
  font-size: 0.875rem;
}
.notice-tag {
  flex: 0 0 auto;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #fff; background: var(--jpcc-red);
  padding: 0.18rem 0.5rem; border-radius: 3px;
  position: relative; top: -1px;
}
.notice a { font-weight: 600; }
.notice-dismiss {
  flex: 0 0 auto;
  margin-left: auto;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 0.2rem;
  cursor: pointer;
  opacity: 0.6;
}
.notice-dismiss:hover { opacity: 1; }
.notice-juror {
  background: var(--jpcc-red);
  border-bottom: 1px solid var(--jpcc-red-dark);
  color: #fff;
}
.notice-juror .notice-tag {
  color: var(--jpcc-red);
  background: #fff;
}
.notice-juror a { color: #fff; text-decoration-color: rgba(255,255,255,0.6); }
.entry-content .juror-notice-callout {
  background: var(--jpcc-red);
  color: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1.4rem;
}
.entry-content .juror-notice-callout strong { color: #fff; }

.entry-content .info-box {
  border-left: 3px solid var(--jpcc-gold);
  background: var(--jpcc-bg-soft);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.entry-content .info-box p:last-child { margin-bottom: 0; }

/* ---------- Section header device ---------- */
.section-head {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 600; color: var(--jpcc-navy);
  white-space: nowrap;
}
.section-head::after {
  content: ""; flex: 1; height: 5px;
  border-top: 1px solid var(--jpcc-gold);
  border-bottom: 1px solid var(--jpcc-gold);
}
.section-head .more {
  font-size: 0.84rem; font-weight: 600; white-space: nowrap;
  text-decoration: none; order: 3;
}
.section-head .more:hover { text-decoration: underline; }

/* ---------- Hero / service finder ---------- */
.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 3px solid var(--jpcc-gold);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: url(assets/img/courthouse.webp);
  background-size: cover;
  background-position: 15% 78%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(6,33,53,0.94) 0%, rgba(6,33,53,0.90) 42%, rgba(10,49,77,0.72) 68%, rgba(10,49,77,0.42) 100%);
}
.hero .wrap {
  padding-top: 2.6rem; padding-bottom: 2.25rem;
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.75rem;
  align-items: start;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600; color: #fff; line-height: 1.25;
}
.hero p.lede { color: #d9e2ea; margin-top: 0.4rem; max-width: 62ch; }

.finder { display: flex; gap: 0.5rem; margin-top: 1.25rem; max-width: 640px; }
.finder input[type="search"] {
  flex: 1; min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--jpcc-border-strong); border-radius: 4px;
  font-size: 0.95rem; font-family: var(--font-ui); color: var(--jpcc-text);
  background: #fff;
}
.finder input[type="search"]:focus {
  outline: none; border-color: var(--jpcc-navy);
  box-shadow: 0 0 0 2px rgba(10, 49, 77, 0.15);
}
.finder button { min-height: 44px; }

.quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-top: 1.5rem;
  list-style: none;
}
.quick-card {
  background: var(--jpcc-bg-soft);
  border: 1px solid var(--jpcc-border);
  border-radius: 6px;
  padding: 0.9rem 0.85rem;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.45rem;
  height: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.quick-card:hover { border-color: var(--jpcc-navy); background: #fff; }
.quick-card .glyph { width: 30px; height: 30px; color: var(--jpcc-gold-deep); }
.quick-card .label { font-weight: 600; font-size: 0.9rem; color: var(--jpcc-navy); line-height: 1.25; }
.quick-card .sub { font-size: 0.76rem; color: var(--jpcc-muted); line-height: 1.35; }

/* ---------- Online services panel (in hero) ---------- */
.svc-panel {
  background: rgba(6,33,53,0.85);
  border: 1px solid var(--jpcc-navy-dark);
  border-top: 3px solid var(--jpcc-gold);
  border-radius: 6px;
  color: #fff;
  padding: 1.15rem 1.25rem 1.25rem;
  backdrop-filter: blur(2px);
}
.svc-panel > .panel-title {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 600; color: #fff;
  display: flex; align-items: center; gap: 0.75rem;
}
.svc-panel > .panel-title::after {
  content: ""; flex: 1; height: 5px;
  border-top: 1px solid rgba(193, 167, 131, 0.7);
  border-bottom: 1px solid rgba(193, 167, 131, 0.7);
}
.svc-panel .panel-sub { font-size: 0.8rem; color: #aebfcd; margin-top: 0.25rem; }
.svc { padding: 0.95rem 0; }
.svc + .svc { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.svc h3 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--jpcc-gold); }
.svc p { font-size: 0.84rem; color: #d9e2ea; margin: 0.3rem 0 0.65rem; }
.svc-link { display: inline-block; margin-left: 0.75rem; font-size: 0.84rem; font-weight: 600; color: #d9e2ea; text-decoration: none; }
.svc-link:hover { color: var(--jpcc-gold); }

/* ---------- Audience split ---------- */
.audiences { padding: 1.5rem 0 2rem; }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.aud-card {
  background: var(--jpcc-surface);
  border: 1px solid var(--jpcc-border);
  border-top: 3px solid var(--jpcc-navy);
  border-radius: 0 0 6px 6px;
  padding: 1.15rem 1.25rem 1.25rem;
}
.aud-card.attorneys { border-top-color: var(--jpcc-red); }
.aud-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem; font-weight: 600; color: var(--jpcc-navy);
}
.aud-card p.desc { font-size: 0.85rem; color: var(--jpcc-muted); margin: 0.25rem 0 0.8rem; }
.aud-links { list-style: none; columns: 2; column-gap: 1.5rem; }
.aud-links li { break-inside: avoid; padding: 0.28rem 0; border-bottom: 1px solid var(--jpcc-bg); }
.aud-links a { text-decoration: none; font-size: 0.9rem; font-weight: 500; display: inline-block; }
.aud-links a:hover { text-decoration: underline; }
.aud-links a::before { content: "\203A\00a0"; color: var(--jpcc-gold-deep); font-weight: 700; }

/* ---------- Content band (Welcome, News, Audiences) ---------- */
.content-band {
  background-color: var(--jpcc-bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%3E%3Cpath%20d='M0,16%20L16,0'%20stroke='%23c1a783'%20stroke-width='1'%20stroke-opacity='0.18'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- Welcome + news ---------- */
.mid { padding: 2rem 0 0.5rem; }
.mid-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }

.welcome {
  background: var(--jpcc-surface);
  border: 1px solid var(--jpcc-border); border-radius: 6px;
  padding: 1.4rem 1.5rem;
}
.welcome .motto {
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 500; color: var(--jpcc-navy);
  border-left: 3px solid var(--jpcc-gold);
  padding-left: 0.9rem; margin: 0.9rem 0 1rem;
  font-style: italic;
}
.welcome-flex { display: flex; gap: 1.4rem; }
.welcome-portrait-col { flex: 0 0 216px; }
.portrait {
  border: 1px solid var(--jpcc-navy-dark);
  border-bottom: 3px solid var(--jpcc-gold);
  border-radius: 4px; overflow: hidden;
  background: var(--jpcc-navy-dark);
  aspect-ratio: 2 / 3;
  display: flex; align-items: flex-end; justify-content: center;
  color: #aebfcd; font-size: 0.7rem; text-align: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; display: block; }
.portrait-caption {
  font-size: 0.74rem; color: var(--jpcc-muted);
  text-align: center; margin-top: 0.4rem; line-height: 1.3;
}
.welcome p.body { font-size: 0.94rem; margin-bottom: 0.75rem; }
.welcome .links { font-size: 0.88rem; font-weight: 600; margin-top: 0.7rem; }
.welcome .links a { text-decoration: none; }
.welcome .links a:hover { text-decoration: underline; }
.welcome .links span { color: var(--jpcc-border-strong); margin: 0 0.5rem; }
.signoff { font-family: var(--font-serif); color: var(--jpcc-navy); font-size: 0.95rem; margin-top: 0.5rem; }

.news-stack { display: flex; flex-direction: column; gap: 1rem; }
.news-item {
  background: var(--jpcc-surface);
  border: 1px solid var(--jpcc-border); border-radius: 6px;
  padding: 1.1rem 1.2rem;
}
.news-item .kicker {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--jpcc-gold-text);
}
.news-item h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 600; color: var(--jpcc-navy);
  margin: 0.2rem 0 0.4rem;
}
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item p { font-size: 0.88rem; color: var(--jpcc-text); }
.news-item .read { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.news-item .read:hover { text-decoration: underline; }

/* ---------- Contact strip ---------- */
.contact-strip { background: var(--jpcc-surface); border-top: 1px solid var(--jpcc-border); }
.contact-strip .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.contact-cell { border-left: 3px solid var(--jpcc-gold); padding-left: 0.9rem; }
.contact-cell .label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--jpcc-muted);
}
.contact-cell .value { font-family: var(--font-serif); font-size: 1.05rem; color: var(--jpcc-navy); font-weight: 600; }
.contact-cell .sub { font-size: 0.84rem; color: var(--jpcc-muted); }
.contact-cell a { text-decoration: none; }
.contact-cell a:hover { text-decoration: underline; }
.entry-content .contact-summary {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
  margin: 0 0 1.6rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--jpcc-border);
  border-bottom: 1px solid var(--jpcc-border);
}
@media (max-width: 560px) {
  .entry-content .contact-summary { grid-template-columns: 1fr; }
}

/* ---------- Interior page header band ---------- */
.page-header {
  background: var(--jpcc-surface);
  border-bottom: 3px solid var(--jpcc-gold);
}
.page-header .wrap { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.breadcrumbs {
  font-size: 0.82rem; color: var(--jpcc-muted);
  margin-bottom: 0.5rem;
}
.breadcrumbs a { color: var(--jpcc-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--jpcc-navy); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.45rem; color: var(--jpcc-border-strong); }
.breadcrumbs [aria-current="page"] { color: var(--jpcc-navy); font-weight: 600; }
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600; color: var(--jpcc-navy); line-height: 1.25;
}

/* ---------- Interior pages ---------- */
.site-content { padding: 2rem 0 2.5rem; }
.page-banner {
  max-width: 900px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--jpcc-border); border-radius: 6px;
  overflow: hidden;
}
.page-banner img { display: block; width: 100%; height: 220px; object-fit: cover; }
.content-card {
  background: var(--jpcc-surface);
  border: 1px solid var(--jpcc-border); border-radius: 6px;
  padding: 1.6rem 1.75rem;
  max-width: 900px;
}
.content-card .entry-title {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 600; color: var(--jpcc-navy);
  padding-bottom: 0.7rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--jpcc-gold);
}
.result-type {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jpcc-navy);
  border: 1px solid var(--jpcc-gold);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-serif); color: var(--jpcc-navy);
  margin: 1.3rem 0 0.5rem;
}
.entry-content h2 { font-size: 1.35rem; }
.entry-content h3 { font-size: 1.15rem; }
.entry-content h4 { font-size: 1rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content .jeffnet-catchphrase {
  margin: 0 0 1.25rem;
  color: var(--jpcc-navy);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.entry-content details {
  border-top: 1px solid var(--jpcc-border);
}
.entry-content details:last-of-type {
  border-bottom: 1px solid var(--jpcc-border);
}
.entry-content summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 600; color: var(--jpcc-navy);
  padding: 0.85rem 1.5rem 0.85rem 0;
  position: relative;
}
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after {
  content: "+";
  position: absolute; right: 0; top: 0.85rem;
  font-family: var(--font-ui); font-weight: 700; color: var(--jpcc-gold-deep);
}
.entry-content details[open] > summary::after { content: "\2212"; }
.entry-content details > summary:focus-visible {
  outline: 3px solid var(--jpcc-gold-deep); outline-offset: 2px;
}
.entry-content details > *:not(summary) { margin-top: 0; padding-bottom: 0.85rem; }
.entry-content details > summary + * { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content dl { margin-bottom: 0.85rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.25rem; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--jpcc-border-strong); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content a.btn { text-decoration: none; }
.entry-content .btn-group { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin: 0.85rem 0; }
.entry-content .btn-with-caption { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.entry-content .btn-caption { display: block; font-size: 0.85rem; color: var(--jpcc-muted); }

.entry-content blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 2rem 2rem 1.5rem 3.5rem;
  border-left: 4px solid var(--jpcc-gold);
  background: var(--jpcc-bg-soft);
}
.entry-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--jpcc-gold);
  pointer-events: none;
}
.entry-content blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--jpcc-navy-dark);
  margin-bottom: 0.75rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--jpcc-muted);
  letter-spacing: 0.01em;
}

.entry-content dl { border-top: 1px solid var(--jpcc-border); }
.entry-content dt {
  font-weight: 700; color: var(--jpcc-navy);
  padding-top: 0.6rem;
}
.entry-content dd {
  margin: 0 0 0.6rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--jpcc-border);
}

.entry-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.entry-content th, .entry-content td {
  border: 1px solid var(--jpcc-border); padding: 0.5rem 0.7rem;
  font-size: 0.92rem; text-align: left; vertical-align: top;
}
.entry-content th { color: var(--jpcc-navy); background: var(--jpcc-bg-soft); }
.entry-content tr:nth-child(even) td { background: var(--jpcc-bg-soft); }
.entry-content table table { margin: 0.5rem 0; }
.entry-content table table th, .entry-content table table td { background: var(--jpcc-surface); }
.entry-content table img { max-width: 100%; height: auto; }

@media (max-width: 700px) {
  .entry-content table { display: block; overflow-x: auto; }
}

/* ---------- Image galleries (core gallery shortcode) ---------- */
.entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
  gap: 0.85rem;
  margin: 1.2rem 0;
  list-style: none;
  padding: 0;
}
.entry-content .gallery-columns-1 { --gallery-columns: 1; }
.entry-content .gallery-columns-2 { --gallery-columns: 2; }
.entry-content .gallery-columns-3 { --gallery-columns: 3; }
.entry-content .gallery-columns-4 { --gallery-columns: 4; }
.entry-content .gallery-columns-5 { --gallery-columns: 5; }
.entry-content .gallery-columns-6 { --gallery-columns: 6; }
.entry-content .gallery-columns-7 { --gallery-columns: 7; }
.entry-content .gallery-columns-8 { --gallery-columns: 8; }
.entry-content .gallery-columns-9 { --gallery-columns: 9; }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-icon { line-height: 0; }
.entry-content .gallery-icon a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--jpcc-border);
  background: var(--jpcc-navy-dark);
}
.entry-content .gallery-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.entry-content .gallery-caption {
  font-size: 0.8rem;
  color: var(--jpcc-muted);
  text-align: center;
  padding: 0.35rem 0.25rem 0;
}

@media (max-width: 700px) {
  .entry-content .gallery { grid-template-columns: repeat(min(var(--gallery-columns, 3), 2), 1fr); }
}
@media (max-width: 420px) {
  .entry-content .gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- Content tables ---------- */
.entry-content table,
.entry-content .jpcc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.entry-content table th,
.entry-content .jpcc-table th {
  background: var(--jpcc-navy);
  color: #fff;
  text-align: left;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.entry-content table td,
.entry-content .jpcc-table td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--jpcc-border);
  vertical-align: top;
}
.entry-content table tr:last-child td,
.entry-content .jpcc-table tr:last-child td { border-bottom: none; }
.entry-content table tr:nth-child(even) td,
.entry-content .jpcc-table tr:nth-child(even) td { background: var(--jpcc-bg-soft); }
@media (max-width: 480px) {
  .entry-content table,
  .entry-content .jpcc-table { font-size: 0.875rem; }
  .entry-content table th,
  .entry-content .jpcc-table th,
  .entry-content table td,
  .entry-content .jpcc-table td { padding: 0.45rem 0.6rem; }
}

/* ---------- FAQ accordion (details/summary) ---------- */
.faq-item {
  border-top: 1px solid var(--jpcc-border);
  padding: 0;
}
.faq-item:last-of-type {
  border-bottom: 1px solid var(--jpcc-border);
}
.faq-item summary {
  cursor: pointer;
  padding: 0.85rem 2rem 0.85rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  position: relative;
  color: var(--jpcc-navy);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--jpcc-gold-deep);
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--jpcc-navy-dark); }
.faq-item .faq-body,
.faq-item > p,
.faq-item > ol,
.faq-item > ul {
  padding: 0.25rem 0 1rem;
  margin: 0;
}
.faq-item > p + p { margin-top: 0.6rem; }

/* ---------- Board member list ---------- */
.jpcc-member-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.jpcc-member-list li {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--jpcc-gold);
  background: var(--jpcc-bg-soft);
  margin-bottom: 0.5rem;
}
.jpcc-member-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--jpcc-navy-dark);
}
.jpcc-member-role {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--jpcc-text-muted, #5a6a7a);
  margin-top: 0.15rem;
}

/* ---------- Department/Court template ---------- */
.court-section {
  margin-top: 0;
  border-top: 1px solid var(--jpcc-border);
}

/* Accordion */
.court-accordion { border: none; }
.court-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.court-accordion__trigger::-webkit-details-marker { display: none; }
.court-accordion__trigger h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--jpcc-navy);
}
.court-accordion__trigger::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--jpcc-gold);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}
details[open] .court-accordion__trigger::after {
  content: '−';
}
.court-accordion__body {
  padding-bottom: 1.25rem;
}

/* ---------- News & Innovation — Single Post ---------- */
.post-single__hero { margin: -1.5rem -1.5rem 0; overflow: hidden; }
.post-single__hero-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.post-single__hero img { width: 100%; height: 360px; object-fit: cover; object-position: center top; display: block; }
@media (max-width: 640px) {
  .post-single__hero img { height: 220px; }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 33, 53, 0.92);
  padding: 2.5rem;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
.lightbox-overlay__close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: transparent; border: 0; color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; padding: 0.3rem 0.6rem;
}
body.lightbox-open { overflow: hidden; }
.post-single__meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #6b7280; padding: 1.1rem 0 0; border-top: 1px solid var(--jpcc-border); margin-top: 1.25rem; }
.post-single__meta time { font-weight: 500; }
.post-single__meta-sep { color: #d1d5db; }
.post-single__back-inline { color: var(--jpcc-navy); font-weight: 600; text-decoration: none; }
.post-single__back-inline:hover { text-decoration: underline; }
.post-single__body { max-width: 720px; padding: 1.5rem 0 0.5rem; }
.post-single__footer { border-top: 1px solid var(--jpcc-border); margin-top: 2rem; padding-top: 1.25rem; }
.post-single__back { font-size: 0.9rem; font-weight: 600; color: var(--jpcc-navy); text-decoration: none; }
.post-single__back:hover { color: var(--jpcc-gold); text-decoration: underline; }
.post-more { margin-top: 2.5rem; }
.post-more__heading { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--jpcc-gold); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--jpcc-border); }

/* ---------- News & Innovation ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.news-card { background: #fff; border: 1px solid var(--jpcc-border); border-radius: 3px; display: flex; flex-direction: column; overflow: hidden; }
.news-card__thumb img { width: 100%; height: 180px; object-fit: cover; object-position: center top; display: block; }
.news-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { font-size: 0.78rem; color: #6b7280; margin-bottom: 0.4rem; }
.news-card__cat { color: var(--jpcc-navy); font-weight: 600; }
.news-card__sep { margin: 0 0.3rem; }
.news-card__title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; margin: 0 0 0.6rem; line-height: 1.35; }
.news-card__title a { color: var(--jpcc-navy-dark); text-decoration: none; }
.news-card__title a:hover { color: var(--jpcc-gold); text-decoration: underline; }
.news-card__excerpt { font-size: 0.88rem; color: #374151; line-height: 1.55; flex: 1; }
.news-card__more { display: inline-block; margin-top: 0.75rem; font-size: 0.84rem; font-weight: 600; color: var(--jpcc-navy); text-decoration: none; }
.news-card__more:hover { color: var(--jpcc-gold); text-decoration: underline; }
.news-pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0 2rem; }
.news-pagination .page-numbers { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid var(--jpcc-border); border-radius: 3px; font-size: 0.875rem; color: var(--jpcc-navy); text-decoration: none; }
.news-pagination .page-numbers.current { background: var(--jpcc-navy); color: #fff; border-color: var(--jpcc-navy); }
.news-pagination .page-numbers:hover:not(.current) { background: var(--jpcc-surface); }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--jpcc-navy-dark); color: #b9c7d2; border-top: 3px solid var(--jpcc-gold); }
.site-footer .wrap { position: relative; z-index: 1; padding-top: 2rem; padding-bottom: 1.4rem; }
.foot-seal {
  position: absolute;
  top: 50%; left: 0px;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  object-fit: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 1.5rem; }
.foot-col h2 {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--jpcc-gold); margin-bottom: 0.55rem;
}
.foot-col ul { list-style: none; }
.foot-col li { padding: 0.18rem 0; }
.foot-col a { color: #b9c7d2; text-decoration: none; font-size: 0.86rem; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1.6rem; padding-top: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.78rem;
}
.foot-legal a { color: #b9c7d2; }
.foot-legal a:hover { color: #fff; }

/* ---------- Nav toggle (hamburger) — hidden on desktop ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  margin: 0.4rem 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #d9e2ea;
  cursor: pointer;
  font-size: 0.82rem; font-weight: 600; font-family: inherit;
}
.nav-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.nav-toggle-icon { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 18px; height: 14px; flex-shrink: 0; }
.nav-toggle-icon .bar {
  display: block;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero::before { background-position: 10% 78%; }
  .mid-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip .wrap { grid-template-columns: 1fr; }
  .foot-seal { width: 280px; height: 280px; left: 20px; }
}
/* Middle tier: full horizontal nav still fits without the search box, but
   not with it (search box needed ~1140px total; nav items alone measured
   at ~911px). Drop the inline search bar here instead of jumping straight
   to the hamburger drawer -- search is still reachable via the drawer once
   the lower breakpoint below is hit. */
@media (min-width: 931px) and (max-width: 1180px) {
  .main-nav .site-search-item { display: none; }
}
@media (max-width: 930px) {
  /* Breakpoint measured against the live primary nav's natural content
     width (logo + top-level items alone, no search box) -- below this,
     items start clipping and the page gains a horizontal scrollbar
     before the drawer takes over. Keep this at or above that measured
     width. */

  /* Top utility links (Contact, Hours & Locations, Fees, Forms) aren't
     useful at tablet width and below, and were overflowing/wrapping. */
  .gov-banner .utility-menu { display: none; }

  /* Show toggle button */
  .nav-toggle { display: flex; }

  /* Nav bar becomes an anchor for the absolute drawer */
  .main-nav { position: relative; }
  .main-nav .wrap { justify-content: flex-start; }

  /* Collapse menu by default; expand via .is-open */
  #primary-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--jpcc-navy-dark);
    border-top: 2px solid var(--jpcc-gold);
    border-bottom: 1px solid var(--jpcc-border);
    z-index: 40;
    padding-bottom: 0.5rem;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }
  #primary-nav-menu.is-open { display: flex; }

  /* Full-width items, stacked */
  .main-nav li { width: 100%; }
  .main-nav li.menu-item-has-children { position: static; }
  .main-nav a {
    padding: 0.85rem 1.25rem;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  /* Search moves to the top of the drawer, full-width, no auto-margin */
  .main-nav .site-search-item {
    order: -1;
    margin-left: 0;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .main-nav .site-search-item form { width: 100%; }
  .main-nav .site-search-item input[type="search"] { flex: 1; width: auto; }

  /* Submenus stack inline, indented */
  .main-nav .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    min-width: 0;
    width: 100%;
    padding: 0;
  }
  .main-nav .sub-menu a {
    padding-left: 2.25rem;
    font-size: 0.84rem;
    font-weight: 500;
  }
}
@media (max-width: 640px) {
  .hero::before { background-position: 8% 78%; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: 1fr; }
  .aud-links { columns: 1; }
  .masthead .wrap { flex-wrap: wrap; }
  .masthead-actions { margin-left: 0; width: 100%; }
  .seal, .masthead .custom-logo { width: 80px; height: 80px; }
  .welcome-flex { flex-direction: column-reverse; }
  .welcome-portrait-col { flex-basis: auto; width: 216px; }
  .page-banner img { height: 150px; }
}

/* Accolades page */
.accolades-intro {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 72ch;
  margin: 0 0 2.5rem;
  line-height: 1.7;
}
.accolades-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
}
.testimonial {
  position: relative;
  background: #fff;
  border: 1px solid var(--jpcc-border);
  border-left: 4px solid var(--jpcc-navy);
  border-radius: 0 4px 4px 0;
  padding: 1.75rem 1.75rem 1.5rem 2rem;
}
.testimonial__date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--jpcc-navy);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.testimonial__quote {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  position: relative;
}
.testimonial__quote::before {
  content: '\201C';
  font-family: 'Merriweather', Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--jpcc-gold);
  position: absolute;
  top: -0.5rem;
  left: -1.5rem;
  pointer-events: none;
}
.testimonial__quote p {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.8;
  color: #1f2937;
  margin: 0 0 0.75rem;
  padding-left: 0.25rem;
}
.testimonial__quote p:last-child { margin-bottom: 0; }
.testimonial__attribution {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--jpcc-border);
  font-style: normal;
}
.testimonial__attribution strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jpcc-navy);
}
.testimonial__attribution span {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Biography page */
.bio-hero {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--jpcc-navy);
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.bio-hero__portrait {
  flex: 0 0 auto;
  width: 260px;
}
.bio-hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.bio-hero__intro {
  flex: 1;
  padding: 2rem 2rem 2rem 0;
}
.bio-hero__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jpcc-gold);
  margin: 0 0 0.4rem;
}
.bio-hero__name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.bio-hero__tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.bio-hero__credentials {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1rem;
}
.bio-hero__credentials li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.bio-hero__credentials li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jpcc-gold);
  position: absolute;
  left: 0;
  top: 0.55rem;
}
.bio-body {
  max-width: 72ch;
  line-height: 1.75;
}
.bio-body p { margin-bottom: 1.25rem; }

@media (max-width: 700px) {
  .bio-hero { flex-direction: column; gap: 0; }
  .bio-hero__portrait { width: 100%; max-height: 280px; overflow: hidden; }
  .bio-hero__portrait img { width: 100%; height: 280px; object-fit: cover; object-position: top center; }
  .bio-hero__intro { padding: 1.5rem; }
  .bio-hero__name { font-size: 1.5rem; }
}

/* =========================================================
   History page
   ========================================================= */
.history-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.history-narrative h2,
.history-roster h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  color: var(--jpcc-navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--jpcc-gold);
}

.history-narrative p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #222;
  margin-bottom: 1rem;
}

.history-attribution {
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid var(--jpcc-border);
  padding-top: 0.75rem;
  margin-top: 1.5rem;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.history-table thead th {
  background: var(--jpcc-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.history-table tbody tr:nth-child(even) { background: #f5f7fa; }
.history-table tbody tr:hover { background: #eef1f6; }

.history-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--jpcc-border);
  vertical-align: middle;
}

.history-table td a {
  color: var(--jpcc-navy);
  text-decoration: none;
  font-weight: 500;
}

.history-table td a:hover { text-decoration: underline; }

.history-table tfoot td {
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  color: #666;
  border-top: 2px solid var(--jpcc-border);
  border-bottom: none;
}

@media (max-width: 800px) {
  .history-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================================
   Clerk profile subpages (/history/name/)
   ========================================================= */
.clerk-term {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--jpcc-navy);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

/* Photo gallery grid — 3+ photos */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.photo-gallery figure {
  margin: 0;
  background: #f5f7fa;
  border: 1px solid var(--jpcc-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-gallery figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-gallery figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.45;
  flex: 1;
}

/* Profile layout — 1 or 2 photos */
.photo-profile {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.photo-profile figure {
  margin: 0;
  flex: 0 0 auto;
  width: 190px;
}

.photo-profile figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--jpcc-border);
  border-radius: 4px;
}

.photo-profile figcaption {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.4;
}

.photo-credit {
  font-size: 0.78rem;
  color: #777;
  border-top: 1px solid var(--jpcc-border);
  padding-top: 0.65rem;
  margin-top: 1.75rem;
}

@media (max-width: 600px) {
  .photo-gallery { grid-template-columns: 1fr 1fr; }
  .photo-gallery figure img { height: 150px; }
  .photo-profile figure { width: 100%; }
}

/* =========================================================
   History page — vertical timeline (overrides grid layout)
   ========================================================= */
.history-layout {
  display: block;
}

.history-narrative {
  margin-bottom: 2.5rem;
}

.clerks-timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  max-width: 560px;
}

/* Rail is drawn per entry so each dot sits in a clean gap rather than on top
   of a continuous line. */
.timeline-entry {
  position: relative;
  padding-bottom: 1.1rem;
}

/* Dot — unlinked clerk. */
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jpcc-surface);
  border: 2px solid var(--jpcc-border-strong);
  box-sizing: content-box;
}

/* The segment begins 5px below the 14px dot and ends above the next dot. */
.timeline-entry::after {
  content: '';
  position: absolute;
  left: -24px;
  top: calc(0.35rem + 19px);
  bottom: 0;
  width: 2px;
  background: var(--jpcc-border-strong);
}

.timeline-entry:last-child::after { display: none; }

/* Dot — linked clerk (has bio page): gold fill, navy ring. */
.timeline-entry--linked::before {
  background: var(--jpcc-gold);
  border-color: var(--jpcc-navy);
}

.timeline-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--jpcc-text);
  line-height: 1.3;
}

.timeline-name a {
  color: var(--jpcc-navy);
  text-decoration: none;
}

.timeline-name a:hover { text-decoration: underline; }

.timeline-dates {
  display: block;
  font-size: 0.78rem;
  color: var(--jpcc-muted);
  margin-top: 0.1rem;
}

.timeline-footnote {
  font-size: 0.78rem;
  color: var(--jpcc-muted);
  border-top: 1px solid var(--jpcc-border);
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  max-width: 560px;
}
