/* ============================================================
   GLOUCESTER CITY COUNCIL — CAREERS SITE
   Design aligned with gloucester.gov.uk (gcc-website-clone.html)
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --gcc-blue:        #0054a4;
  --gcc-blue-dark:   #003d7a;
  --gcc-blue-darker: #002f5c;
  --gcc-blue-light:  #e5eef8;
  --gcc-text:        #333;
  --gcc-text-muted:  #505050;
  --gcc-bg:          #f2f2f2;
  --gcc-white:       #fff;
  --gcc-border:      #e0e0e0;
  --gcc-focus:       #ffdd00;
  --gcc-red:         #c0392b;

  --font-body: 'Open Sans', helvetica, arial, sans-serif;
  --font-logo: 'Barlow Condensed', 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
  --max-width: 1340px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gcc-text);
  background: var(--gcc-white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--gcc-blue); text-decoration: none; }
a:hover { color: var(--gcc-blue-dark); text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--gcc-focus);
  outline-offset: 2px;
  background: var(--gcc-focus);
  color: #000;
  text-decoration: none;
}

h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.25rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gcc-focus);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ============================================================
   TOP BAR (language, text size, accessibility)
   ============================================================ */
.gcc-top-bar {
  background: var(--gcc-white);
  border-bottom: 1px solid var(--gcc-border);
  padding: 5px 0;
  font-size: .78rem;
}
.gcc-top-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.gcc-text-size {
  display: flex;
  gap: 3px;
  align-items: baseline;
}
.gcc-text-size button {
  cursor: pointer;
  color: #333;
  font-weight: 600;
  padding: 2px 4px;
  background: none;
  border: none;
  font-family: var(--font-body);
  line-height: 1;
  border-radius: 2px;
}
.gcc-text-size button:nth-child(1) { font-size: .7rem; }
.gcc-text-size button:nth-child(2) { font-size: .88rem; }
.gcc-text-size button:nth-child(3) { font-size: 1.05rem; }
.gcc-text-size button:hover { color: var(--gcc-blue); }
.gcc-contrast-btns { display: flex; gap: 3px; }
.gcc-contrast-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #bbb;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  background: #fff;
  padding: 0;
  font-family: inherit;
}
.gcc-contrast-btn.inv { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--gcc-blue);
  padding: 10px 0;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  min-height: 90px;
}
.header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Header CTA button */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: .9rem;
}

/* Utility nav (in header area) */
.header-utility {
  margin-left: auto;
}
.header-utility ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}
.header-utility a {
  color: var(--gcc-white);
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.85;
}
.header-utility a:hover { opacity: 1; text-decoration: underline; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gcc-white);
  transition: transform 0.2s;
}

/* ============================================================
   SECONDARY NAV (below header)
   ============================================================ */
.gcc-secondary-nav {
  background: var(--gcc-white);
  border-bottom: 1px solid var(--gcc-border);
}
.gcc-secondary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.gcc-secondary-nav__link {
  display: block;
  padding: 13px 20px;
  font-size: .88rem;
  color: var(--gcc-text);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
  font-weight: 600;
}
.gcc-secondary-nav__link:hover,
.gcc-secondary-nav__link[aria-current="page"] {
  color: var(--gcc-blue);
  border-bottom-color: var(--gcc-blue);
  text-decoration: none;
}

/* Also support main-nav for backwards compat */
.main-nav {
  background: var(--gcc-white);
  border-bottom: 1px solid var(--gcc-border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.nav-primary {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav-primary > li {
  position: relative;
}
.nav-primary > li > a {
  display: block;
  padding: 13px 20px;
  color: var(--gcc-text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-primary > li > a:hover,
.nav-primary > li > a[aria-current="page"] {
  color: var(--gcc-blue);
  border-bottom-color: var(--gcc-blue);
  text-decoration: none;
}

/* CTA button in nav */
.nav-primary .nav-cta {
  background: var(--gcc-blue);
  color: #fff !important;
  margin: 6px 0 6px 8px;
  border-radius: 3px;
  padding: 8px 16px !important;
  border-bottom: none !important;
}
.nav-primary .nav-cta:hover {
  background: var(--gcc-blue-dark) !important;
  color: #fff !important;
}

/* Dropdown sub-nav */
.has-children .sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gcc-white);
  min-width: 200px;
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border: 1px solid var(--gcc-border);
  z-index: 50;
}
.has-children:hover .sub-nav,
.has-children:focus-within .sub-nav { display: block; }
.sub-nav li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--gcc-text);
  text-decoration: none;
  font-size: 0.875rem;
}
.sub-nav li a:hover { background: var(--gcc-bg); color: var(--gcc-blue); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  background: var(--gcc-bg);
  border-bottom: 1px solid var(--gcc-border);
  padding: 0.6rem 0;
  font-size: 0.875rem;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.breadcrumbs li::after { content: "\203A"; margin-left: 0.25rem; color: var(--gcc-text-muted); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs li:last-child { color: var(--gcc-text-muted); }
.breadcrumbs a { color: var(--gcc-blue); }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--gcc-blue);
  color: var(--gcc-white);
  padding: 3rem 0;
}
.page-hero .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-hero h1 { color: var(--gcc-white); margin-bottom: 0.5rem; }
.page-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.125rem;
  max-width: 640px;
  margin-bottom: 0;
}

/* Home hero variant */
.home-hero {
  display: flex;
  min-height: 380px;
  background: var(--gcc-blue);
  color: var(--gcc-white);
}
.home-hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  width: 100%;
}
.home-hero h1 {
  font-size: 2.4rem;
  color: var(--gcc-white);
  margin-bottom: 0.5rem;
}
.home-hero__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.home-hero p { color: rgba(255,255,255,0.9); max-width: 540px; }
.home-hero .hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 11px 26px;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  border: 2px solid transparent;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gcc-white);
  color: var(--gcc-blue);
  border-color: var(--gcc-white);
}
.btn-primary:hover {
  background: #dce8f5;
  border-color: #dce8f5;
  color: var(--gcc-blue-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--gcc-white);
  border-color: var(--gcc-white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: var(--gcc-white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--gcc-blue);
  border-color: var(--gcc-blue);
}
.btn-outline:hover {
  background: var(--gcc-blue);
  color: var(--gcc-white);
  text-decoration: none;
}

.btn-blue {
  background: var(--gcc-blue);
  color: #fff;
  border-color: var(--gcc-blue);
}
.btn-blue:hover {
  background: var(--gcc-blue-dark);
  border-color: var(--gcc-blue-dark);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   QUICK LINKS STRIP
   ============================================================ */
.gcc-quicklinks {
  background: var(--gcc-bg);
  padding: 26px 0;
}
.gcc-quicklinks__row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.gcc-quicklinks__label {
  flex-shrink: 0;
  width: 120px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gcc-blue);
  padding-top: 10px;
}
.gcc-quicklinks__buttons {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gcc-ql {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  background: var(--gcc-blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: .81rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.gcc-ql i { font-size: .78rem; flex-shrink: 0; }
.gcc-ql:hover { background: var(--gcc-blue-dark); color: #fff; text-decoration: none; }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section {
  padding: 3rem 0;
}
.section + .section {
  border-top: 1px solid var(--gcc-border);
}
.section-alt {
  background: var(--gcc-bg);
}
.section-teal {
  background: var(--gcc-blue-light);
}

/* ============================================================
   CARDS (matches clone's gcc-card style)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--gcc-white);
  border: 1px solid #ddd;
  padding: 22px;
  height: 100%;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gcc-blue);
  margin: 0 0 10px;
}
.card p {
  font-size: .87rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}
.card__more {
  display: inline-block;
  margin-top: 12px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--gcc-blue);
}
.card__more:hover { text-decoration: underline; }

.card--value {
  border-top: 3px solid var(--gcc-blue);
}
.card--value .card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gcc-blue-light);
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 1.35rem;
  color: var(--gcc-blue);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}
.card-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-decoration: none; }
.card-link:hover .card { border-color: var(--gcc-blue); }
.card-link:focus { outline: 3px solid var(--gcc-focus); outline-offset: 2px; }
.card-link:focus .card { border-color: var(--gcc-blue); }

/* Value cards (left-border accent) */
.value-card {
  background: var(--gcc-white);
  border-left: 4px solid var(--gcc-blue);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.value-card h3 { color: var(--gcc-blue-dark); margin-bottom: 0.25rem; }

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   SIDEBAR / CALLOUT BOX
   ============================================================ */
.callout {
  background: var(--gcc-blue-light);
  border-left: 4px solid var(--gcc-blue);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.callout h3 { color: var(--gcc-blue-dark); }

.contact-box {
  background: var(--gcc-blue);
  color: var(--gcc-white);
  padding: 1.5rem;
  border-radius: 3px;
}
.contact-box h3 { color: var(--gcc-white); }
.contact-box a { color: var(--gcc-focus); }
.contact-box p { margin-bottom: 0.5rem; }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats-strip {
  background: var(--gcc-blue);
  color: var(--gcc-white);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-number { font-size: 2.5rem; font-weight: 700; display: block; }
.stat-label  { font-size: 0.9rem; opacity: 0.9; }

/* ============================================================
   NETWORK TAGS
   ============================================================ */
.network-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.network-list li {
  background: var(--gcc-blue);
  color: var(--gcc-white);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

/* ============================================================
   JOB LISTINGS — 2-column card grid
   ============================================================ */
.job-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.job-item {
  display: flex;
  flex-direction: column;
  background: var(--gcc-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border: 1px solid var(--gcc-border);
  transition: box-shadow .2s, transform .2s;
}
.job-item:hover {
  box-shadow: 0 6px 20px rgba(0,84,164,.14);
  transform: translateY(-2px);
}
.job-card-head {
  background: var(--gcc-blue);
  padding: 1rem 1.25rem 0.9rem;
}
.job-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.3;
}
.job-title a { color: inherit; text-decoration: none; }
.job-title a:hover { text-decoration: underline; }
.job-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
  margin-top: 0.5rem;
}
.job-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15em 0.6em;
  border-radius: 2px;
  background: rgba(255,255,255,.18);
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.35);
}
.job-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,.85);
}
.job-location::before { content: '\f3c5'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 0.25em; font-size: .8em; }
.job-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.job-meta {
  font-size: 0.875rem;
  color: var(--gcc-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}
.job-salary { font-weight: 600; color: var(--gcc-text); font-size: 0.9rem; }
.job-summary { font-size: 0.85rem; color: var(--gcc-text-muted); line-height: 1.55; margin: 0; flex: 1; }
.job-card-foot {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--gcc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fafafa;
}
.job-closing { font-size: 0.78rem; color: var(--gcc-text-muted); white-space: nowrap; }
.job-item .btn { white-space: nowrap; font-size: 0.85rem; padding: 0.4rem 0.9rem; }

@media (max-width: 700px) {
  .job-list { grid-template-columns: 1fr; }
}

/* Result count summary */
.jobs-summary { font-size: 0.9rem; color: var(--gcc-text-muted); margin-bottom: 0.25rem; }

/* Search/filter bar */
.jobs-filter { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.jobs-filter input {
  flex: 1 1 220px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gcc-border);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gcc-text);
  min-width: 0;
}
.jobs-filter input:focus { outline: 3px solid var(--gcc-focus); border-color: var(--gcc-blue); }
.jobs-filter select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gcc-border);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gcc-text);
  background: var(--gcc-white);
  cursor: pointer;
}
.jobs-filter select:focus { outline: 3px solid var(--gcc-focus); }

/* ============================================================
   FOOTER (blue, matching gloucester.gov.uk)
   ============================================================ */
.site-footer {
  background: var(--gcc-blue);
  color: rgba(255,255,255,.88);
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}
.footer-col--info { display: flex; flex-direction: column; gap: 0; }
.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-note {
  font-size: 0.84rem;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.footer-email {
  font-size: .84rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
}
.footer-email:hover { color: #fff; text-decoration: underline; }

/* Footer link groups - stacked vertically in one column */
.footer-col--links { display: flex; flex-direction: column; gap: 0; }
.footer-link-group { margin-bottom: 1rem; }
.footer-link-group:last-child { margin-bottom: 0; }
.footer-link-group h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.footer-link-group ul { list-style: none; padding: 0; margin: 0; }
.footer-link-group ul li { margin-bottom: 0.3rem; }
.footer-link-group ul a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .84rem;
}
.footer-link-group ul a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  background: var(--gcc-blue-darker);
  color: rgba(255,255,255,.82);
  padding: 11px 0;
  font-size: .77rem;
}
.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom nav { display: flex; gap: 1rem; }
.footer-bottom nav a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom nav a:hover { color: #fff; }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

.gcc-social { display: flex; gap: 7px; margin-top: 12px; }
.gcc-social__link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  text-decoration: none;
  transition: background .15s;
}
.gcc-social__link:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .gcc-quicklinks__row { flex-direction: column; }
  .gcc-quicklinks__label { width: auto; }
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mobile-menu-toggle { display: flex; }
  .header-utility { display: none; }

  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-primary { flex-direction: column; }
  .nav-primary > li > a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gcc-border);
  }
  .has-children .sub-nav {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--gcc-bg);
  }

  .gcc-secondary-nav__list {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .gcc-secondary-nav__link {
    padding: 9px 12px;
    font-size: .8rem;
  }

  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  h1 { font-size: 1.625rem; }
  .home-hero h1 { font-size: 2rem; }
  .home-hero .hero-ctas { flex-direction: column; }

  .header-logo__name { font-size: 1.25rem; }
  .header-logo__name em { font-size: .9rem; }
}

@media (max-width: 400px) {
  .header-cta { font-size: .8rem; padding: 8px 14px; }
}

/* ============================================================
   LOADING & ERROR STATES
   ============================================================ */
.loading-state { padding: 6rem 0; text-align: center; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--gcc-border);
  border-top-color: var(--gcc-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { padding: 4rem 0; text-align: center; color: var(--gcc-text-muted); }
.error-state h2 { color: var(--gcc-red); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HIGH CONTRAST MODE
   Toggled via .high-contrast on <html> by accessibility toolbar.
   Uses invert + hue-rotate so brand colours remain recognisable;
   images are double-inverted to stay natural.
   ============================================================ */
html.high-contrast { filter: invert(1) hue-rotate(180deg); }
html.high-contrast img,
html.high-contrast video,
html.high-contrast svg { filter: invert(1) hue-rotate(180deg); }

/* Active-state ring on whichever text-size or contrast button is pressed */
.gcc-text-size button[aria-pressed="true"],
.gcc-contrast-btn[aria-pressed="true"] {
  outline: 2px solid var(--gcc-blue);
  outline-offset: 1px;
}

/* ============================================================
   UTILITY CLASSES (replaces inline style= attributes for CSP)
   ============================================================ */
.is-hidden { display: none; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.text-lg { font-size: 1.2rem; }
.btn--spaced { margin-top: 0.5rem; display: inline-block; }
.btn--ml-sm { margin-left: 0.5rem; }
.jobs-section-divider { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gcc-border); }
.job-meta-icon { font-size: .8em; margin-right: .3em; }
.job-meta-icon--after { margin-left: .3em; font-size: .85em; }
