/*
Theme Name:   Peoria County Government
Theme URI:    https://peoriacounty.gov
Author:       Peoria County
Author URI:   https://peoriacounty.gov
Description:  Official companion theme for the Peoria County Government plugin. Clean, accessible, and authoritative design built for government transparency portals.
Version:      3.1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  peoria-county-theme
Tags:         government, accessibility-ready, custom-menu, featured-images, footer-widgets, custom-logo, two-columns, right-sidebar

/* ──────────────────────────────────────────────────────────────────────────
   Design Tokens
   ────────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --pct-navy:       #1a3a5c;
  --pct-navy-dark:  #0f2338;
  --pct-gold:       #c8972a;
  --pct-gold-light: #f0c84a;
  --pct-blue:       #2e6da4;
  --pct-blue-light: #5b9bd5;

  /* Neutrals */
  --pct-white:    #ffffff;
  --pct-off-white:#f7f8fa;
  --pct-gray-100: #f0f2f5;
  --pct-gray-200: #e2e6ea;
  --pct-gray-400: #b0b8c1;
  --pct-gray-600: #6c757d;
  --pct-gray-800: #343a40;
  --pct-black:    #111318;

  /* Semantic */
  --pct-success: #1a7431;
  --pct-warning: #856404;
  --pct-danger:  #b02a37;

  /* Typography */
  --pct-font-head: 'Merriweather', Georgia, 'Times New Roman', serif;
  --pct-font-body: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
  --pct-font-mono: 'Courier New', Courier, monospace;

  /* Spacing */
  --pct-gutter:  24px;
  --pct-radius:  6px;
  --pct-radius-lg: 12px;

  /* Shadows */
  --pct-shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --pct-shadow:    0 2px 10px rgba(0,0,0,.1);
  --pct-shadow-lg: 0 6px 28px rgba(0,0,0,.14);

  /* Transitions */
  --pct-ease: all .2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--pct-font-body);
  color: var(--pct-black);
  background: var(--pct-off-white);
  line-height: 1.7;
  margin: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pct-blue); transition: var(--pct-ease); }
a:hover { color: var(--pct-navy); }
p { margin: 0 0 1.2em; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--pct-font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--pct-navy);
  margin: 0 0 .6em;
}

/* ── Skip Link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999em;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 6px; top: 6px;
  width: auto; height: auto;
  padding: 8px 16px;
  background: var(--pct-gold);
  color: var(--pct-navy);
  font-weight: 700;
  z-index: 9999;
  border-radius: 4px;
  outline: 3px solid var(--pct-navy);
}

/* ── Site Header ────────────────────────────────────────────────────────── */
#site-header {
  background: var(--pct-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pct-gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.site-branding img { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.site-title {
  font-family: var(--pct-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.site-tagline {
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Government seal placeholder */
.pct-seal {
  width: 48px; height: 48px;
  background: var(--pct-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--pct-navy);
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.2);
}

/* ── Top Bar ────────────────────────────────────────────────────────────── */
#top-bar {
  background: var(--pct-navy-dark);
  font-size: .78rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px var(--pct-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,.7);
}
.top-bar-inner a { color: rgba(255,255,255,.7); text-decoration: none; }
.top-bar-inner a:hover { color: var(--pct-gold); }
.top-bar-right { display: flex; align-items: center; gap: 16px; }

/* ── Main Navigation ────────────────────────────────────────────────────── */
#primary-nav { margin-left: auto; }
#primary-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
#primary-nav ul li { position: relative; }
#primary-nav ul li a {
  display: block;
  padding: 24px 16px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--pct-ease);
  border-bottom: 3px solid transparent;
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a,
#primary-nav ul li.current-menu-ancestor > a {
  color: #fff;
  border-bottom-color: var(--pct-gold);
}

/* Dropdown */
#primary-nav ul ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  box-shadow: var(--pct-shadow-lg);
  border-radius: 0 0 var(--pct-radius) var(--pct-radius);
  min-width: 220px;
  z-index: 100;
  flex-direction: column;
  gap: 0;
}
#primary-nav ul li:hover > ul { display: flex; }
#primary-nav ul ul li a {
  color: var(--pct-navy);
  padding: 11px 18px;
  border-bottom: none;
  font-weight: 500;
}
#primary-nav ul ul li a:hover { background: var(--pct-gray-100); color: var(--pct-navy); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: auto;
}

/* ── Hero / Page Banner ─────────────────────────────────────────────────── */
.pct-page-hero {
  background: linear-gradient(135deg, var(--pct-navy) 0%, var(--pct-blue) 100%);
  color: #fff;
  padding: 56px var(--pct-gutter);
  position: relative;
  overflow: hidden;
}
.pct-page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
  transform: translate(30%, 30%);
}
.pct-page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.pct-page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 10px;
}
.pct-page-hero .pct-breadcrumb {
  font-size: .83rem;
  color: rgba(255,255,255,.65);
}
.pct-page-hero .pct-breadcrumb a { color: var(--pct-gold-light); text-decoration: none; }
.pct-page-hero .pct-breadcrumb a:hover { text-decoration: underline; }

/* ── Main Content Layout ────────────────────────────────────────────────── */
.pct-site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px var(--pct-gutter);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.pct-site-main.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 900px;
}
.pct-content-area { min-width: 0; }

/* ── Entry / Post ───────────────────────────────────────────────────────── */
.entry-content { background: #fff; border-radius: var(--pct-radius); padding: 32px; box-shadow: var(--pct-shadow-sm); }
.entry-content h2 { font-size: 1.4rem; border-bottom: 2px solid var(--pct-gray-200); padding-bottom: 8px; margin-bottom: 16px; }
.entry-content h3 { font-size: 1.15rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.entry-content table th { background: var(--pct-navy); color: #fff; padding: 10px; text-align: left; }
.entry-content table td { padding: 9px 10px; border-bottom: 1px solid var(--pct-gray-200); }
.entry-content table tr:nth-child(even) td { background: var(--pct-gray-100); }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
#sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.widget {
  background: #fff;
  border: 1px solid var(--pct-gray-200);
  border-radius: var(--pct-radius);
  padding: 22px;
  box-shadow: var(--pct-shadow-sm);
}
.widget-title {
  font-family: var(--pct-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pct-navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pct-gold);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--pct-gray-100); font-size: .9rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--pct-blue); text-decoration: none; }
.widget ul li a:hover { color: var(--pct-navy); text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--pct-navy-dark);
  color: rgba(255,255,255,.75);
  margin-top: 60px;
}
.footer-widgets {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px var(--pct-gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-widget-area .widget { background: transparent; border: none; padding: 0; box-shadow: none; }
.footer-widget-area .widget-title { color: var(--pct-gold); border-bottom-color: rgba(255,255,255,.1); }
.footer-widget-area .widget ul li a { color: rgba(255,255,255,.7); }
.footer-widget-area .widget ul li a:hover { color: var(--pct-gold); }
.footer-widget-area .widget ul li { border-bottom-color: rgba(255,255,255,.06); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px var(--pct-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--pct-gold); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Accessibility Notice Bar ───────────────────────────────────────────── */
.pct-a11y-bar {
  background: var(--pct-gold);
  color: var(--pct-navy);
  text-align: center;
  padding: 8px var(--pct-gutter);
  font-size: .82rem;
  font-weight: 600;
}
.pct-a11y-bar a { color: var(--pct-navy); }

/* ── Buttons (theme) ────────────────────────────────────────────────────── */
.pct-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--pct-gold);
  color: var(--pct-navy) !important;
  font-family: var(--pct-font-body);
  font-weight: 700;
  font-size: .92rem;
  border: none;
  border-radius: var(--pct-radius);
  text-decoration: none;
  cursor: pointer;
  transition: var(--pct-ease);
  letter-spacing: .02em;
}
.pct-btn:hover { background: var(--pct-gold-light); transform: translateY(-1px); box-shadow: var(--pct-shadow); }
.pct-btn-outline {
  background: transparent;
  border: 2px solid var(--pct-gold);
  color: var(--pct-gold) !important;
}
.pct-btn-outline:hover { background: var(--pct-gold); color: var(--pct-navy) !important; }

/* ── Homepage Feature Sections ──────────────────────────────────────────── */
.pct-home-hero {
  background: linear-gradient(160deg, var(--pct-navy-dark) 0%, var(--pct-navy) 50%, #1e4f7a 100%);
  color: #fff;
  padding: 80px var(--pct-gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pct-home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pct-home-hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.pct-home-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; margin-bottom: 16px; }
.pct-home-hero p  { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 32px; }
.pct-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.pct-features {
  max-width: 1280px;
  margin: -40px auto 0;
  padding: 0 var(--pct-gutter) 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--pct-gutter);
  position: relative;
  z-index: 2;
}
.pct-feature-card {
  background: #fff;
  border-radius: var(--pct-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--pct-shadow-lg);
  border-top: 4px solid var(--pct-gold);
  transition: var(--pct-ease);
}
.pct-feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(0,0,0,.16); }
.pct-feature-icon {
  width: 52px; height: 52px;
  background: var(--pct-navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.pct-feature-icon .dashicons { color: var(--pct-gold); font-size: 24px; width: 24px; height: 24px; }
.pct-feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pct-feature-card p  { font-size: .88rem; color: var(--pct-gray-600); margin-bottom: 16px; }
.pct-feature-card a  { font-size: .85rem; font-weight: 700; color: var(--pct-blue); text-decoration: none; }
.pct-feature-card a:hover { color: var(--pct-navy); }

/* ── Alert / Notice blocks ─────────────────────────────────────────────── */
.pct-notice {
  padding: 16px 20px;
  border-radius: var(--pct-radius);
  border-left: 4px solid;
  margin: 20px 0;
  font-size: .9rem;
}
.pct-notice-info    { background: #e8f0fb; border-color: var(--pct-blue); }
.pct-notice-warning { background: #fff3cd; border-color: #c8902a; }
.pct-notice-success { background: #d4edda; border-color: var(--pct-success); }
.pct-notice-danger  { background: #f8d7da; border-color: var(--pct-danger); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pct-site-main { grid-template-columns: 1fr; }
  #sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #primary-nav { display: none; width: 100%; order: 10; }
  #primary-nav.is-open { display: block; }
  #primary-nav ul { flex-direction: column; gap: 0; background: rgba(0,0,0,.2); }
  #primary-nav ul li a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  #primary-nav ul ul { display: none !important; }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  #sidebar { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .pct-home-hero { padding: 56px 16px; }
  .pct-site-main { padding: 24px 16px; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */
@media print {
  #site-header, #site-footer, #sidebar, .menu-toggle, .pct-a11y-bar, #top-bar { display: none !important; }
  .pct-site-main { display: block; padding: 0; }
  body { color: #000; background: #fff; }
}

/* ── Accessibility Controls ──────────────────────────────────────────────── */
.pcg-a11y-controls {
  background: var(--pct-navy, #1a3a5c);
  color: #fff;
  border-radius: var(--pct-radius, 6px);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.pcg-a11y-controls h2 { color: #fff; margin-bottom: 8px; }
.pcg-a11y-controls > p { color: rgba(255,255,255,.75); margin-bottom: 20px; font-size: .9rem; }
.pcg-a11y-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.pcg-a11y-group h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pct-gold, #c8972a);
  margin: 0 0 10px;
  font-family: var(--pct-font-body, sans-serif);
}
.pcg-a11y-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pcg-a11y-btn {
  padding: 8px 16px;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 4px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.pcg-a11y-btn:hover  { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.pcg-a11y-btn:focus  { outline: 3px solid var(--pct-gold, #c8972a); outline-offset: 2px; }
.pcg-a11y-btn--reset { background: var(--pct-gold, #c8972a); border-color: var(--pct-gold, #c8972a); color: var(--pct-navy, #1a3a5c); }
.pcg-a11y-btn--reset:hover { background: #d4a535; }

/* Accessibility mode classes applied to <html> */
.pcg-high-contrast body         { filter: contrast(1.5); }
.pcg-high-contrast a            { text-decoration: underline !important; }
.pcg-high-contrast .pcg-table   { border: 2px solid #000; }
.pcg-high-contrast .pcg-table th { background: #000 !important; color: #fff !important; }

.pcg-highlight-links a {
  background: #ffff00 !important;
  color: #000 !important;
  text-decoration: underline !important;
  padding: 0 2px;
  border-radius: 2px;
}
.pcg-highlight-links #site-header a,
.pcg-highlight-links #site-footer  a { background: transparent !important; color: inherit !important; }

.pcg-reduce-motion *, .pcg-reduce-motion *::before, .pcg-reduce-motion *::after {
  animation-duration:   0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

.pcg-dyslexic-font body,
.pcg-dyslexic-font p,
.pcg-dyslexic-font li,
.pcg-dyslexic-font td {
  font-family: 'Comic Sans MS', 'OpenDyslexic', Arial, sans-serif !important;
  letter-spacing: .05em;
  word-spacing: .15em;
  line-height: 1.9 !important;
}

/* ── Legal Pages ─────────────────────────────────────────────────────────── */
.pct-legal-content { max-width: 820px; }
.pcg-legal-page { font-size: .95rem; line-height: 1.75; }
.pcg-legal-meta {
  display: flex;
  gap: 20px;
  font-size: .82rem;
  color: var(--pct-gray-600, #6c757d);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pct-gray-200, #e2e6ea);
}
.pcg-legal-intro {
  background: var(--pct-gray-100, #f0f2f5);
  border-left: 4px solid var(--pct-navy, #1a3a5c);
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 28px;
  font-size: 1rem;
}
.pcg-legal-intro p { margin: 0; }
.pcg-legal-section { margin-bottom: 32px; }
.pcg-legal-section h2 {
  font-size: 1.15rem;
  color: var(--pct-navy, #1a3a5c);
  border-bottom: 2px solid var(--pct-gold, #c8972a);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.pcg-legal-section h3 { font-size: 1rem; color: var(--pct-navy, #1a3a5c); margin: 16px 0 8px; }
.pcg-legal-section ul { padding-left: 1.4em; }
.pcg-legal-section li { margin-bottom: 6px; }

/* ── Footer Portal CTA + Modal ───────────────────────────────────────────── */
.pct-portal-cta-btn {
  background: none;
  border: none;
  color: var(--pct-gold, #c8972a);
  font-family: inherit;
  font-size: .88rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.pct-portal-cta-btn:hover { color: var(--pct-gold-light, #f0c84a); }

/* Modal overlay */
#pct-portal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#pct-portal-modal-overlay.pct-modal-open { display: flex; }

#pct-portal-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
  animation: pctModalIn .2s ease;
}
@keyframes pctModalIn {
  from { opacity: 0; transform: translateY(-20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);   }
}
.pct-modal-header {
  background: var(--pct-navy, #1a3a5c);
  color: #fff;
  padding: 22px 28px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pct-modal-header h2 { margin: 0; font-size: 1.15rem; color: #fff; line-height: 1.3; }
.pct-modal-header p  { margin: 6px 0 0; color: rgba(255,255,255,.75); font-size: .88rem; }
.pct-modal-close {
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pct-modal-close:hover { background: rgba(255,255,255,.15); }
.pct-modal-close:focus { outline: 3px solid var(--pct-gold, #c8972a); }

.pct-modal-body { padding: 24px 28px 28px; }
.pct-modal-body .pcg-form-row { margin-bottom: 14px; }
.pct-modal-body .pcg-field label { color: var(--pct-navy, #1a3a5c); }
.pct-modal-body .pcg-field input,
.pct-modal-body .pcg-field select,
.pct-modal-body .pcg-field textarea {
  border: 1px solid #d0d7de;
  border-radius: 4px;
  padding: 9px 12px;
  width: 100%;
  font-family: inherit;
  font-size: .9rem;
}
.pct-modal-submit-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.pct-modal-spinner { font-size: .85rem; color: #888; display: none; }

/* Success state */
.pct-modal-success {
  text-align: center;
  padding: 20px 0;
}
.pct-modal-success .pct-success-icon { font-size: 3.5rem; margin-bottom: 12px; }
.pct-modal-success h3 { color: var(--pct-navy, #1a3a5c); margin-bottom: 10px; }
.pct-modal-success p  { color: #555; font-size: .9rem; }

/* ── Accessibility Tab in Top Bar ───────────────────────────────────────── */
.pct-a11y-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pct-a11y-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(200,151,42,.18);
  border: 1px solid rgba(200,151,42,.4);
  border-radius: 3px;
  color: rgba(255,255,255,.9);
  font-size: .76rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
  font-family: inherit;
  letter-spacing: .02em;
}
.pct-a11y-tab-btn:hover {
  background: rgba(200,151,42,.32);
  border-color: rgba(200,151,42,.7);
  color: #fff;
}
.pct-a11y-tab-btn:focus {
  outline: 2px solid var(--pct-gold, #c8972a);
  outline-offset: 2px;
}
.pct-a11y-chevron {
  transition: transform .2s;
}
.pct-a11y-tab-btn[aria-expanded="true"] .pct-a11y-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.pct-a11y-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--pct-navy-dark, #0f2338);
  border: 1px solid rgba(200,151,42,.35);
  border-radius: 6px;
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  z-index: 9000;
  animation: pctA11yIn .15s ease;
}
.pct-a11y-dropdown[hidden] { display: none; }

@keyframes pctA11yIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pct-a11y-dropdown-inner {
  padding: 14px 16px 12px;
}
.pct-a11y-dropdown-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pct-gold, #c8972a);
  margin: 0 0 12px;
}

.pct-a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}
.pct-a11y-row-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  min-width: 60px;
}
.pct-a11y-row-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Control buttons inside dropdown */
.pct-a11y-ctrl-btn {
  padding: 4px 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  font-family: inherit;
  white-space: nowrap;
}
.pct-a11y-ctrl-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.pct-a11y-ctrl-btn:focus {
  outline: 2px solid var(--pct-gold, #c8972a);
  outline-offset: 1px;
}
/* Active/pressed state for toggles */
.pct-a11y-ctrl-btn--toggle[aria-pressed="true"] {
  background: var(--pct-gold, #c8972a);
  border-color: var(--pct-gold, #c8972a);
  color: var(--pct-navy, #1a3a5c);
}
/* Reset button */
.pct-a11y-ctrl-btn--danger {
  background: rgba(182,53,51,.2);
  border-color: rgba(182,53,51,.4);
  color: #f88;
}
.pct-a11y-ctrl-btn--danger:hover {
  background: rgba(182,53,51,.4);
  border-color: #f88;
  color: #fff;
}

/* Link to full page */
.pct-a11y-full-link {
  display: block;
  text-align: right;
  font-size: .72rem;
  color: rgba(200,151,42,.7);
  text-decoration: none;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.pct-a11y-full-link:hover { color: var(--pct-gold, #c8972a); }

/* Responsive — hide label text on very small screens */
@media (max-width: 480px) {
  .pct-a11y-tab-btn span.pct-a11y-label { display: none; }
  .pct-a11y-dropdown { right: -10px; min-width: 230px; }
}
