/* EPS, Inc. — epstracsservices.com static rebuild.
   Visual parity with the WordPress attar/blockbase theme (captured 2026-08-26):
   headings DM Sans 400, body Inter, black on white (v2-theme.css layers the
   navy/gold skin over this and wins - it is concatenated after),
   1200px content width, min(30px,5vw) vertical rhythm. */

/* ---------- fonts (self-hosted, copied from the live theme) ---------- */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/dm-sans/dm-sans-Regular.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/dm-sans/dm-sans-Medium.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/dm-sans/dm-sans-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter/inter-100-900.woff2) format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --fg: #000000;
  --bg: #ffffff;
  --accent-ink: #c65000;    /* the text-safe sibling: 4.62:1 on white - links, hovers, rings */
  --content-size: 1200px;
  --gap-v: min(30px, 5vw);
  --gap-h: min(30px, 5vw);
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;   /* the 100vw alignfull hero otherwise adds a horizontal scrollbar */
  overflow-wrap: anywhere;   /* long pasted URLs must wrap, not clip (WCAG 1.4.10) */
  /* sticky footer: short pages must not show page background under the footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.125;
  margin: 1.2em 0 0.6em;
}
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
a { color: var(--fg); }
a:hover { color: var(--accent-ink); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 0.6em 1.2em;
}
.skip-link:focus { left: 0; }
img { max-width: 100%; height: auto; }
figure { margin: 0 0 1em; }

.site-content, .site-footer-inner {
  max-width: var(--content-size);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap-h);
  padding-right: var(--gap-h);
}
/* the header goes edge to edge: logo hard left, nav hard right (like live) */
.site-header-inner {
  padding-left: var(--gap-h);
  padding-right: var(--gap-h);
}
.site-content { padding-top: var(--gap-v); padding-bottom: calc(2 * var(--gap-v)); flex: 1 0 auto; width: 100%; }
.site-header, .site-footer { flex-shrink: 0; }

/* full-bleed blocks escape the content column */
.site-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.alignwide { max-width: var(--content-size); margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header { background: var(--bg); }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--gap-v);
  padding-bottom: var(--gap-v);
}
.site-logo img { width: 194px; height: auto; display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.site-nav a { text-decoration: none; font-family: var(--font-heading); }
.site-nav li { position: relative; }
.site-nav li.has-sub > a::after { content: "\2304"; display: inline-block; margin-left: 0.35em; vertical-align: 0.2em; }
.site-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--fg);
  padding: 0.75rem 1rem;
  min-width: 220px;
  z-index: 50;
}
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
/* keep the checkbox focusable for keyboard users; visually clipped, not display:none */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.nav-toggle-label { display: none; }
/* ---------- site search ----------
   Desktop: icon at the end of the nav opens a full overlay layer.
   Mobile: lives inside the hamburger panel (unchanged). */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #1e3560;
  padding: 0.3rem 0.4rem;
  display: inline-flex;
  align-items: center;
}
.search-toggle:hover { color: #9a5b00; }
.site-search input {
  width: 100%;
  max-width: 340px;
  padding: 0.45em 0.8em;
  border: 1px solid #7e91ac;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--fg);
}
.site-search input:focus { border-color: #306090; outline: 3px solid rgba(48, 96, 144, 0.25); outline-offset: 0; }
.search-results {
  background: var(--bg);
  border: 1px solid #d6dce6;
  border-top: 3px solid #306090;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(22, 41, 77, 0.16);
  max-height: 60vh;
  overflow-y: auto;
}
@media (min-width: 761px) {
  .site-search { display: none; }
  body.search-open .site-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(22, 41, 77, 0.55);
    padding: 12vh 1rem 0;
  }
  body.search-open .site-search input {
    max-width: 560px;
    font-size: 1.15rem;
    padding: 0.75em 1.1em;
    border-width: 2px;
  }
  body.search-open .search-results {
    width: 100%;
    max-width: 560px;
    margin-top: 8px;
  }
}
.sr-item { display: block; padding: 0.7rem 1rem; text-decoration: none; border-bottom: 1px solid #eef1f6; }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.sr-active { background: #f4f7fb; }
.sr-title { display: block; font-family: var(--font-heading); font-weight: 500; color: #1f3d73; }
.sr-meta { display: block; font-size: 0.8rem; color: #55606e; margin-top: 0.15rem; }
.sr-empty { padding: 0.9rem 1rem; color: #55606e; font-size: 0.9rem; }
@media (max-width: 760px) {
  /* search lives inside the hamburger panel on mobile (John) */
  .nav-search { display: none; }
  .site-search { display: none; position: relative; order: 3; width: 100%; margin-top: 0.75rem; padding: 0; }
  .nav-toggle:checked ~ .site-search { display: block; }
  .site-search input { max-width: none; }
  .search-results { position: absolute; top: calc(100% + 6px); left: 0; width: 100%; z-index: 80; }
}
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
/* Escape closes the open submenu (WCAG 1.4.13 Dismissible; assets/js/nav.js) */
.site-nav li.sub-dismissed > ul { display: none !important; }

@media (max-width: 760px) {
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--fg);
  }
  .site-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .site-nav li ul { display: block; position: static; border: none; padding: 0.25rem 0 0 1rem; }
}

/* ---------- footer ---------- */
.site-footer { padding-top: 80px; padding-bottom: 30px; }
.footer-mark { border-radius: 6px; margin-bottom: 0.75rem; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .footer-right { text-align: right; }
@media (max-width: 560px) {
  .site-footer-inner { flex-direction: column; }
  .site-footer .footer-right { text-align: left; }
}

/* ---------- homepage hero: full-bleed slides, arrows either side ---------- */
.home-hero {
  position: relative;
  background: #464646;
}
.home-hero .news-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-hero .news-carousel::-webkit-scrollbar { display: none; }
.home-hero .news-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: clamp(420px, 78vh, 860px);
}
.home-hero .news-slide > a.slide-image {
  display: block;
  width: 100%;
  height: 100%;
}
.home-hero .news-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-hero .slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem var(--gap-h) 2.5rem;
  /* solid panel, not a gradient: white text must hold 4.5:1 over ANY photo */
  background: rgba(0, 0, 0, 0.66);
}
.home-hero .slide-caption h3 { margin: 0 0 0.4rem; font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.home-hero .slide-caption h3 a { color: #fff; text-decoration: none; }
.home-hero .slide-caption .slide-meta { color: #fff; font-size: 0.9rem; margin: 0; }
.home-hero .slide-caption .slide-meta strong { font-weight: 600; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.carousel-arrow { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
.carousel-arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.carousel-dots { gap: 4px; }
/* 24x24 hit target (WCAG 2.5.8); the visible 10px dot is drawn inside */
.carousel-dots button {
  width: 24px; height: 24px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel-dots button::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.carousel-dots button[aria-current="true"]::before {
  background: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- WordPress block compatibility ---------- */
.wp-block-group.alignfull { padding-left: var(--gap-h); padding-right: var(--gap-h); }
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: var(--content-size);
  margin: 0 auto;
}
.wp-block-column { flex: 1 1 0; min-width: 250px; }
.wp-block-image.aligncenter { text-align: center; }
.wp-block-image.aligncenter img { margin: 0 auto; display: inline-block; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }
.wp-block-spacer { clear: both; }
.wp-block-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.wp-block-button__link, .pushbutton-wide, button[type=submit] {
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 0.75em 1.5em;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.wp-block-button.wp-block-button__width-100 { width: 100%; }
.wp-block-button__width-100 .wp-block-button__link { display: block; width: 100%; text-align: center; }
.wp-block-separator { border: none; border-top: 1px solid var(--fg); margin: 2em auto; max-width: 100px; }
.wp-block-table table, table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th, table td, table th { border: 1px solid var(--fg); padding: 0.5em; }
.wp-block-file { margin: 0.75em 0; }
.wp-block-file a:first-child { font-weight: 500; }

/* ---------- news index + post ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; align-items: flex-start; }
.news-item img { width: 220px; height: auto; flex-shrink: 0; }
.news-item h2 { margin: 0 0 0.25rem; font-size: 1.6rem; }
.news-item .news-date { font-size: 0.875rem; }
@media (max-width: 560px) {
  .news-item { flex-direction: column; }
  .news-item img { width: 100%; }
}
/* post titles: centered and moderate, matching live (page h1s stay left/large) */
.post-header {
  text-align: center;
  margin: 0.25rem 0 1.5rem;
}
.post-header h1 {
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  margin: 0.5em 0;
}
/* featured image goes full screen width, like the live site */
.post-featured-image {
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw) 1.5rem;
}
.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 2.5rem;
}
.post-meta .meta-label { font-family: var(--font-heading); }
.share-row { margin-top: 2rem; }
.share-row .meta-label { display: block; font-family: var(--font-heading); font-size: 0.9rem; margin-bottom: 0.5rem; }
.share-btn {
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.3em 0.9em;
  font-size: 0.9rem;
  text-decoration: none;
  margin-right: 0.5rem;
}
.share-btn:hover { border-color: var(--accent-ink); }
.archive-intro { font-size: 0.95rem; }

/* ---------- forms ---------- */
.eps-form label { display: block; font-family: var(--font-heading); margin: 1em 0 0.25em; }
.eps-form input[type=text], .eps-form input[type=email], .eps-form input[type=url], .eps-form textarea {
  width: 100%;
  padding: 0.6em;
  border: 1px solid var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--fg);
}
.eps-form button[type=submit] { margin-top: 1.25em; }
.hp-field { position: absolute; left: -5000px; }
.form-status { padding: 0.85em 1.1em; border-radius: 4px; margin-bottom: 1rem; font-size: 0.95rem; }
.form-status-ok { background: #e7f3ea; border: 1px solid #22703a; color: #17502a; }
.form-status-err { background: #fbebe9; border: 1px solid #9a2f20; color: #7c2318; }

/* ============================================================
   EPS v2 theme — appended after site.css by `build.ps1 -Variant v2`.
   Synthesis of the 2026-08-27 design-expert + ui-ux-expert specs
   (Refactoring UI / Erik Kennedy / NN/g / Butterick), palette anchored
   to the ACTUAL logo pixels: navy #306090, gold #F0A000. Every text/
   background pair verified >= 4.5:1 (accessibility-expert's math).
   ============================================================ */

:root {
  /* navy family (logo oval #306090) */
  --navy-900: #16294d;
  --navy-800: #1e3560;
  --navy-700: #1f3d73;
  --navy-600: #24417a;
  --navy-500: #306090;   /* true logo navy - structural: borders, rings */
  --navy-300: #8fa0b8;   /* decorative only - never text */
  --navy-100: #e8eef7;
  --navy-050: #f4f7fb;

  /* gold family (logo lettering #F0A000) */
  --gold-700: #9a5b00;   /* the only gold usable as text on white */
  --gold-500: #f0a000;   /* fills/bars only - black or navy-900 text */
  --gold-300: #f7c26b;   /* on dark navy only */

  /* neutrals */
  --ink-600: #55606e;
  --rule: #d6dce6;
  --rule-strong: #7e91ac;

  --link: var(--navy-600);
  --link-hover: var(--gold-700);
  --measure: 68ch;
}

/* ---------- typography scale ---------- */
h1 { font-size: clamp(2.125rem, 1.35rem + 2.1vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.625rem, 1.15rem + 1.2vw, 2rem); line-height: 1.15; }
h3, h4, h5, h6 { line-height: 1.25; }
h4, h5, h6 { font-weight: 500; letter-spacing: 0.005em; }
h5, h6 { color: var(--navy-700); }
.site-content > :first-child, .post-article > :first-child { margin-top: 0; }
p { margin: 0 0 1.15em; }

/* measure cap on prose (Butterick 45-90ch; current column runs ~125ch) */
.site-content > p, .site-content > ul, .site-content > ol,
.post-article > p, .post-article > ul, .post-article > ol {
  max-width: var(--measure);
}

/* ---------- links get a resting color (NN/g: links must differ from text) ---------- */
.site-content p a, .site-content li a { color: var(--link); }
.site-content p a:hover, .site-content li a:hover { color: var(--link-hover); }

/* ---------- header / nav ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-nav a { color: var(--navy-800); }
.site-nav a:hover { color: var(--gold-700); }
.site-nav li ul {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy-500);
  box-shadow: 0 8px 24px rgba(22, 41, 77, 0.12);
}
/* current-page marker (NN/g: "failing to indicate current location is the
   single most common menu mistake") - body classes already exist */
.page-about                   .site-nav a[href="/about/"],
.page-contract-administration .site-nav a[href="/contract-administration/"],
.page-tracs-service-bureau    .site-nav a[href="/tracs-service-bureau/"],
body[class*="page-wass"]      .site-nav a[href="/tracs-service-bureau/"],
.page-news                    .site-nav a[href="/news/"],
.post                         .site-nav a[href="/news/"],
.archive                      .site-nav a[href="/news/"],
.page-contact                 .site-nav a[href="/contact/"],
.page-resources               .site-nav a[href="/resources/"] {
  color: var(--navy-700);
  box-shadow: inset 0 -3px 0 var(--gold-500);
}

/* ---------- page-title accent bars ---------- */
.site-content > h1::after, .post-header::after {
  content: ""; display: block;
  width: 72px; height: 4px; margin-top: 0.7rem;
  background: linear-gradient(90deg, var(--navy-500) 0 58%, var(--gold-500) 58% 100%);
}
.post-header::after { margin: 1rem auto 0; }
.site-content > h1:empty { display: none; }   /* /about/ ships an empty h1 */
body:not(.home) .site-content h2.wp-block-heading:not(.has-text-align-center)::after {
  content: ""; display: block;
  width: 52px; height: 3px; margin-top: 0.55rem;
  background: var(--gold-500);
}

/* ---------- homepage: band + tile cards ---------- */
.home .site-content > .wp-block-group.alignfull {
  background: var(--navy-050);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.home .wp-block-columns { gap: 1.75rem; margin-bottom: 1.75rem; }
.home .wp-block-column {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy-500);
  border-radius: 4px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 1px 2px rgba(22, 41, 77, 0.06);
  transition: box-shadow .18s ease, transform .18s ease, border-top-color .18s ease;
  text-align: center;
}
.home .wp-block-column:hover {
  border-top-color: var(--gold-500);
  box-shadow: 0 6px 18px rgba(22, 41, 77, 0.10);
  transform: translateY(-2px);
}
.home .wp-block-column > :first-child { margin-top: 0; }
.home .wp-block-column h2 { margin-top: 0.9rem; font-size: 1.375rem; }
.home .wp-block-column h2 a { color: var(--navy-700); text-decoration: none; }
.home .wp-block-column h2 a:hover { color: var(--gold-700); text-decoration: underline; }
.home .wp-block-column p { color: var(--ink-600); font-size: 1rem; }
/* whole card is clickable (NN/g cards: larger touch zone) */
.home .wp-block-column h2 a::after { content: ""; position: absolute; inset: 0; }
/* normalise the six icons (inline widths 90-159px need !important) on tinted discs */
.home .wp-block-column figure.wp-block-image {
  width: 112px; height: 112px;
  margin: 0 auto 0.25rem;
  border-radius: 50%;
  background: var(--navy-100);
  display: grid; place-items: center;
}
.home .wp-block-column figure.wp-block-image img {
  /* both !important: the icons carry inline style="width:NNpx;height:auto" */
  width: auto !important;
  height: 58px !important;
}

/* ---------- hero ---------- */
.home-hero { background: var(--navy-900); }
.home-hero .slide-caption {
  padding: 5rem max(var(--gap-h), calc(50vw - (var(--content-size) / 2))) 2.75rem;
  background: linear-gradient(rgba(22,41,77,0) 0%, rgba(22,41,77,0.55) 40%, rgba(22,41,77,0.92) 100%);
}
/* slides fill VERTICALLY at natural aspect; navy shows through both sides */
.home-hero .news-slide > a.slide-image {
  display: flex;
  justify-content: center;
  background: var(--navy-900);
}
.home-hero .news-slide img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-hero .slide-caption h3 { max-width: 26ch; }
.home-hero .slide-caption h3 a:hover { color: var(--gold-300); }
.home-hero .slide-caption .slide-meta { font-family: var(--font-heading); letter-spacing: 0.02em; }
.home-hero .slide-caption .slide-meta strong { color: var(--gold-300); font-weight: 500; }
.carousel-arrow { background: rgba(255,255,255,0.92); color: var(--navy-700); }
.carousel-arrow:hover { background: var(--navy-700); color: #fff; }
.carousel-dots button[aria-current="true"]::before {
  background: var(--gold-500);
  outline-color: var(--gold-500);
}

/* ---------- news list + archives ---------- */
.news-item {
  position: relative;
  padding: 1.25rem var(--gap-h) 1.75rem;
  margin: 0 calc(-1 * var(--gap-h)) 0.75rem;
  border-bottom: 1px solid var(--rule);
  border-radius: 4px;
}
.news-list > .news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--navy-050); }
.news-item > a { flex: 0 0 220px; }   /* the anchor is the flex item; don't let it shrink */
.news-item img {
  width: 100%; height: 140px;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
@media (max-width: 560px) {
  .news-item > a { flex: 1 1 auto; }
  .news-item img { height: auto; }
}
.news-item h2 { font-size: 1.5rem; margin-top: 0; }
.news-item h2 a { color: var(--navy-600); text-decoration: none; }
.news-item h2 a:hover { color: var(--gold-700); text-decoration: underline; }
.news-item h2 a::after { content: ""; position: absolute; inset: 0; }  /* whole-row click */
.news-item .news-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.news-item > div > p:last-child { color: var(--ink-600); }
.archive-intro { color: var(--ink-600); }
.page-resources a:visited:not(:hover), .news-item h2 a:visited:not(:hover) { color: #5c6d94; }

/* ---------- resources: section panels, document rows, file chips ---------- */
.page-resources .site-content > .wp-block-group.is-layout-constrained {
  background: var(--navy-050);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--navy-500);
  border-radius: 4px;
  padding: 1.25rem 1.75rem 1.5rem;
  margin: 2.25rem 0;
}
.page-resources .wp-block-group > :first-child { margin-top: 0; }
.page-resources h5.wp-block-heading {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--navy-700);
  margin-bottom: 0.9rem;
}
.page-resources h5.wp-block-heading::after {
  content: ""; display: block;
  width: 44px; height: 3px; margin-top: 0.5rem;
  background: var(--gold-500);
}
.page-resources .wp-block-list { list-style: none; padding-left: 0; margin: 0; max-width: none; }
.page-resources .wp-block-list > li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.page-resources .wp-block-list > li:last-child { border-bottom: none; }
.page-resources .wp-block-list > li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em;
  width: 7px; height: 7px; background: var(--gold-500);
  transform: rotate(45deg);
}
.page-resources .wp-block-list .wp-block-list {
  margin: 0.6rem 0 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}
.page-resources .wp-block-list .wp-block-list > li { border-bottom: none; padding: 0.3rem 0 0.3rem 1.3rem; }
.page-resources .wp-block-list .wp-block-list > li::before {
  background: var(--navy-300);
  width: 5px; height: 5px; top: 1.0em;
}
.page-resources a { color: var(--navy-600); text-decoration: none; }
.page-resources a:hover { color: var(--gold-700); text-decoration: underline; }
.page-resources a[href$=".pdf"]::after, .page-resources a[href$=".doc"]::after,
.page-resources a[href$=".docx"]::after, .page-resources a[href$=".xlsx"]::after,
.page-resources a[href$=".xlsm"]::after, .page-resources a[href$=".zip"]::after {
  display: inline-block;
  margin-left: 0.45em;
  padding: 0.1em 0.4em;
  border-radius: 2px;
  background: var(--navy-100);
  color: var(--navy-700);
  font-family: var(--font-heading);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  vertical-align: 0.14em;
  text-decoration: none;
}
.page-resources a[href$=".pdf"]::after { content: "PDF"; }
.page-resources a[href$=".doc"]::after, .page-resources a[href$=".docx"]::after { content: "DOC"; }
.page-resources a[href$=".xlsx"]::after, .page-resources a[href$=".xlsm"]::after { content: "XLS"; }
.page-resources a[href$=".zip"]::after { content: "ZIP"; }
.page-resources a[href^="http"]:not([href*="epstracsservices.com"])::after {
  content: " \2197"; color: var(--navy-300); text-decoration: none;
}

/* ---------- about page: timeline, stat band, check-list ---------- */
.about-timeline {
  border-left: 3px solid var(--navy-500);
  margin: 2rem 0 2.5rem 0.5rem;
  padding-left: 1.75rem;
  max-width: var(--measure);
}
.tl-item { position: relative; padding: 0.65rem 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 3px - 5px);
  top: 1.15rem;
  width: 11px; height: 11px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.tl-year {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-700);
}
.tl-text { color: var(--ink-600); }
.tl-text strong { color: var(--navy-800); }

.stat-band {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--navy-050);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold-500);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.stat { flex: 1 1 160px; text-align: center; }
.stat-big {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--navy-700);
}
.stat-label { color: var(--ink-600); font-size: 0.95rem; }

/* brand-check bullets: .check-list anywhere, and every plain list on the
   TRACS Service Bureau page (styling only - the markup is SEO-frozen) */
.check-list,
.page-tracs-service-bureau .site-content ul.wp-block-list { list-style: none; padding-left: 0; max-width: var(--measure); }
.check-list > li,
.page-tracs-service-bureau .site-content ul.wp-block-list > li {
  position: relative;
  padding: 0.4rem 0 0.4rem 2.1rem;
}
.check-list > li::before,
.page-tracs-service-bureau .site-content ul.wp-block-list > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 22px; height: 22px;
  background: url(/assets/brand/mark-180.png) center / contain no-repeat;
  border-radius: 3px;
}

/* numbered step lists (WASS instructions): navy discs */
.step-list {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
  margin: 0.75rem 0 2rem;
  max-width: var(--measure);
}
.step-list > li {
  counter-increment: step;
  position: relative;
  padding: 0.45rem 0 0.45rem 2.7rem;
}
.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.5rem;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

/* post article bodies get the long-form lead-in treatment */
.post-article > p > strong:first-child { color: var(--navy-700); }

/* ---------- post navigation: older/newer cards with article titles ---------- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0 1rem;
}
.post-nav-card {
  display: block;
  background: var(--navy-050);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
}
a.post-nav-card:hover { box-shadow: 0 6px 18px rgba(22, 41, 77, 0.10); transform: translateY(-2px); }
.post-nav-empty { background: none; border: none; }
.post-nav-newer { text-align: right; }
.pn-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.25rem;
}
.pn-title { color: var(--navy-700); font-family: var(--font-heading); font-weight: 500; }
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-newer { text-align: left; }
  .post-nav-empty { display: none; }
}

/* ---------- related strip ---------- */
.related-strip { margin-top: 2.5rem; }
.related-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.5rem;
}
.related-heading::after { display: none !important; }
.related-all { font-size: 0.95rem; font-family: var(--font-body); color: var(--navy-600); text-decoration: none; white-space: nowrap; }
.related-all:hover { color: var(--gold-700); text-decoration: underline; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.related-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy-500);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-top-color .18s ease;
}
.related-card:hover {
  border-top-color: var(--gold-500);
  box-shadow: 0 6px 18px rgba(22, 41, 77, 0.10);
  transform: translateY(-2px);
}
.related-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.rc-title { display: block; padding: 0.8rem 1rem 0.2rem; color: var(--navy-700); font-family: var(--font-heading); font-weight: 500; line-height: 1.3; }
.rc-date { display: block; padding: 0 1rem 0.9rem; color: var(--ink-600); font-size: 0.85rem; }

/* ---------- partner cards (contract administration) ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
  max-width: var(--content-size);
}
.partner-card {
  display: block;
  background: var(--navy-050);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy-500);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-top-color .18s ease;
}
.partner-card:hover {
  border-top-color: var(--gold-500);
  box-shadow: 0 6px 18px rgba(22, 41, 77, 0.10);
  transform: translateY(-2px);
}
.partner-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy-700);
}
.partner-role { color: var(--ink-600); font-size: 0.92rem; }

/* ---------- small plainness fixes elsewhere ---------- */
/* MOTM: the *-lead lines become navy microheadings; list markers go gold */
.page-message-of-the-month .site-content > p > strong:first-child { color: var(--navy-700); }
.site-content .wp-block-list li::marker { color: var(--gold-700); }
/* TSB FAQ: questions in navy with a little weight */
.page-tracs-service-bureau h3.wp-block-heading {
  color: var(--navy-700);
  font-weight: 500;
  border-left: 3px solid var(--gold-500);
  padding-left: 0.75rem;
}

/* ---------- callout boxes (WASS page; reusable) ---------- */
.eps-callout {
  background: var(--navy-050);
  border-left: 4px solid var(--navy-500);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}
.eps-callout > p { margin: 0; }
.eps-callout-gold { border-left-color: var(--gold-500); }

/* WASS instructions: the bold lead-ins ARE the section headings */
body[class*="page-wass"] .site-content > p > strong:first-child {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--navy-700);
  margin: 2.4rem 0 0.5rem;
  padding-top: 1.1rem;
  border-top: 3px solid var(--navy-500);
}

/* ---------- long-form pages: rescue the h5 headings, microheadings ---------- */
.page-successful-tracs-reporting h5.wp-block-heading,
.page-message-of-the-month h5.wp-block-heading {
  font-size: 1.75rem;
  font-weight: 500;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 3px solid var(--navy-500);
}
.page-successful-tracs-reporting h5 u { text-decoration: none; }
.page-successful-tracs-reporting .site-content > p > strong:first-child {
  color: var(--navy-700);
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ---------- buttons + forms ---------- */
.wp-block-button__link, .pushbutton-wide, button[type=submit] {
  background: var(--navy-700);
  color: #fff;
  border-radius: 3px;
  letter-spacing: 0.01em;
}
.wp-block-button__link:hover, .pushbutton-wide:hover, button[type=submit]:hover {
  background: var(--navy-900);
  color: #fff;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline-color: var(--navy-500);
}
.eps-form { max-width: 34rem; }
.eps-form label { color: var(--navy-800); }
.eps-form input[type=text], .eps-form input[type=email], .eps-form input[type=url], .eps-form textarea {
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
}
.eps-form input:focus, .eps-form textarea:focus {
  border-color: var(--navy-500);
  outline: 3px solid rgba(48, 96, 144, 0.3);
  outline-offset: 0;
}

/* ---------- post page ---------- */
.post-meta { border-top: 1px solid var(--rule); color: var(--ink-600); }
.post-meta a { color: var(--navy-600); }
/* featured image: vertical fit, natural width, page background at the sides */
.post-featured-image {
  border-bottom: 3px solid var(--navy-500);
  display: flex;
  justify-content: center;
}
.post-featured-image img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
}
.share-btn { border: 1px solid var(--rule-strong); color: var(--navy-600); }
.share-btn:hover { background: var(--navy-050); border-color: var(--navy-500); color: var(--navy-700); }

/* ---------- contact + TSB callouts ---------- */
.page-contact .wp-block-jetpack-contact-info {
  background: var(--navy-050);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 4px 4px 0;
  padding: 1.25rem 1.5rem;
}
.page-contact .wp-block-jetpack-phone a, .page-contact .wp-block-jetpack-email a { color: var(--navy-600); }
/* the TSB CTA box ships style="border-width:1px" with no border-style - inert today */
.page-tracs-service-bureau .wp-block-group[style*="border-width"] {
  border-style: solid;
  border-color: var(--rule);
  border-left: 4px solid var(--navy-500);
  border-radius: 4px;
  background: var(--navy-050);
  padding: 1.25rem 1.5rem;
}
.wp-block-separator { border: none; border-top: 3px solid var(--gold-500); max-width: 72px; opacity: 1; }

/* ---------- footer: the navy band ---------- */
.site-footer {
  background: var(--navy-800);
  color: #fff;
  border-top: 4px solid var(--gold-500);
  padding-top: 64px;
  padding-bottom: 56px;
}
.site-footer a { color: var(--gold-500); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.site-footer :focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
