/*
Theme Name: West Side 202
Theme URI: https://westside202.org/
Author: West Side School District 202
Description: A lightweight, accessible WordPress theme for West Side School District 202. Designed for WordPress.com and standard WordPress installations without page-builder dependencies.
Version: 1.2.0
Requires at least: 6.4
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: west-side-202
Tags: education, accessibility-ready, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --ws-maroon: #6e101a;
  --ws-maroon-dark: #4f0911;
  --ws-maroon-soft: #f5edef;
  --ws-gold: #c99a32;
  --ws-gold-light: #f2dfaf;
  --ws-ink: #22252a;
  --ws-muted: #667085;
  --ws-border: #d8dde5;
  --ws-bg: #f6f7f9;
  --ws-white: #ffffff;
  --ws-max: 1180px;
  --ws-reading: 780px;
  --ws-shadow: 0 12px 32px rgba(29, 33, 40, .08);
  --ws-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ws-ink);
  background: var(--ws-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ws-maroon); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--ws-maroon-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; clip: auto !important; overflow: visible;
  top: 8px; left: 8px; z-index: 100000; padding: .7rem 1rem;
  background: #fff; color: #111; border: 2px solid var(--ws-maroon);
}
:focus-visible { outline: 3px solid var(--ws-gold); outline-offset: 3px; }

.ws-wrap { width: min(calc(100% - 2rem), var(--ws-max)); margin-inline: auto; }
.ws-reading { width: min(100%, var(--ws-reading)); }

/* Utility strip */
.ws-utility { background: var(--ws-maroon-dark); color: #fff; font-size: .84rem; }
.ws-utility__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ws-utility a { color: #fff; text-decoration: none; }
.ws-utility a:hover { text-decoration: underline; }
.ws-utility__links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }

/* Header */
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--ws-border); }
.ws-brand-row { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; margin-right: 1rem; }
.custom-logo { width: auto; max-height: 64px; }
.ws-wordmark { min-width: 0; }
.site-title { margin: 0; font-size: clamp(1.28rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.site-title a { color: var(--ws-maroon); text-decoration: none; }
.site-description { margin: .38rem 0 0; color: var(--ws-muted); font-size: .88rem; line-height: 1.35; max-width: 670px; }

.ws-mobile-toggle {
  display: none; align-items: center; gap: .5rem; border: 1px solid var(--ws-border);
  background: #fff; color: var(--ws-ink); padding: .58rem .72rem; border-radius: 9px;
}
.ws-mobile-toggle svg { width: 22px; height: 22px; }

/* Navigation */
.ws-nav-shell { background: var(--ws-maroon); }
.primary-navigation ul { margin: 0; padding: 0; list-style: none; }
.primary-navigation > div > ul { display: flex; align-items: stretch; }
.primary-navigation li { position: relative; }
.primary-navigation > div > ul > li > a {
  display: flex; align-items: center; min-height: 50px; padding: 0 1rem;
  color: #fff; text-decoration: none; font-size: .95rem; font-weight: 700;
}
.primary-navigation > div > ul > li > a:hover,
.primary-navigation > div > ul > li.current-menu-item > a,
.primary-navigation > div > ul > li.current-menu-ancestor > a { background: rgba(255,255,255,.11); }
.primary-navigation .menu-item-has-children > a::after { content: "▾"; margin-left: .45rem; font-size: .72em; }
.primary-navigation .sub-menu {
  position: absolute; left: 0; top: 100%; width: 250px; padding: .5rem;
  background: #fff; border: 1px solid var(--ws-border); border-top: 3px solid var(--ws-gold);
  border-radius: 0 0 10px 10px; box-shadow: 0 14px 34px rgba(29,33,40,.16); visibility: hidden;
  transform: translateY(-4px); transition: transform .12s ease, visibility 0s linear .12s; z-index: 100;
}
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { visibility: visible; transform: translateY(0); transition-delay: 0s; }
.primary-navigation .sub-menu a { display: block; padding: .65rem .72rem; border-radius: 6px; color: var(--ws-ink); text-decoration: none; line-height: 1.25; }
.primary-navigation .sub-menu a:hover { background: var(--ws-maroon-soft); color: var(--ws-maroon); }
.primary-navigation .sub-menu .sub-menu { left: 100%; top: -.5rem; }

/* Hero */
.ws-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--ws-maroon-dark), var(--ws-maroon));
  color: #fff;
}
.ws-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: linear-gradient(135deg, transparent 0 47%, rgba(255,255,255,.5) 48% 49%, transparent 50% 100%);
  background-size: 34px 34px;
}
.ws-hero__inner { position: relative; z-index: 1; padding: clamp(2.75rem, 5vw, 4.25rem) 0; }
.ws-kicker { display: inline-block; margin-bottom: .8rem; color: var(--ws-gold-light); font-size: .84rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ws-hero h1 { margin: 0; max-width: 850px; color: #fff; font-size: clamp(2rem, 4.2vw, 3.45rem); line-height: 1.02; letter-spacing: -.04em; }
.ws-hero p { max-width: 800px; margin: 1.25rem 0 0; color: rgba(255,255,255,.9); font-size: clamp(1rem, 2vw, 1.22rem); }
.ws-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }

.ws-button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 8px; padding: .74rem 1rem; background: var(--ws-maroon); color: #fff;
  font-weight: 750; text-decoration: none; line-height: 1.2;
}
.ws-button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--ws-maroon-dark); color: #fff; }
.ws-button--gold { background: var(--ws-gold); color: #201805; }
.ws-button--gold:hover { background: #ddb85f; color: #201805; }
.ws-button--ghost { border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; }
.ws-button--ghost:hover { background: rgba(255,255,255,.10); color: #fff; }

/* Home quick access */
.ws-quick { position: relative; z-index: 5; margin-top: -28px; }
.ws-quick__panel {
  position: relative; overflow: hidden; padding: 1.1rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, #fff 0%, #fdfbf8 100%);
  border: 1px solid var(--ws-border); border-top: 4px solid var(--ws-gold);
  border-radius: var(--ws-radius); box-shadow: var(--ws-shadow);
}
.ws-quick__label {
  display: flex; align-items: center; gap: .55rem; margin: 0 0 .8rem .1rem;
  color: var(--ws-maroon); font-size: .76rem; font-weight: 850;
  letter-spacing: .1em; text-transform: uppercase;
}
.ws-quick__label::before {
  content: ""; width: 22px; height: 3px; flex: 0 0 auto;
  border-radius: 999px; background: var(--ws-gold);
}
.ws-quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; }
.ws-quick__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .8rem;
  min-height: 78px; padding: .9rem 1rem;
  border: 1px solid #e4e0dc; border-radius: 10px; background: #fff;
  box-shadow: 0 3px 10px rgba(29,33,40,.035);
  color: var(--ws-ink); font-weight: 780; text-align: left; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.ws-quick__item::after {
  content: "→"; color: var(--ws-gold); font-size: 1.2rem; font-weight: 800; line-height: 1;
  transition: transform .15s ease;
}
.ws-quick__item:hover {
  transform: translateY(-2px); border-color: #d5c29b; background: var(--ws-maroon-soft);
  box-shadow: 0 8px 18px rgba(29,33,40,.07); color: var(--ws-maroon);
}
.ws-quick__item:hover::after { transform: translateX(3px); }
.ws-quick__item:focus-visible { color: var(--ws-maroon); }

/* Optional per-link Quick Access colors, selected on the menu item. */
.ws-quick__item--maroon,
.ws-quick__item--blue,
.ws-quick__item--green,
.ws-quick__item--teal,
.ws-quick__item--purple,
.ws-quick__item--orange,
.ws-quick__item--navy {
  color: #fff; border-color: transparent;
}
.ws-quick__item--gold { color: #211a0a; border-color: transparent; }
.ws-quick__item--maroon { background: #6e101a; }
.ws-quick__item--gold   { background: #c99a32; }
.ws-quick__item--blue   { background: #1f6496; }
.ws-quick__item--green  { background: #477648; }
.ws-quick__item--teal   { background: #177775; }
.ws-quick__item--purple { background: #6b527f; }
.ws-quick__item--orange { background: #a65325; }
.ws-quick__item--navy   { background: #344d68; }

.ws-quick__item--maroon::after,
.ws-quick__item--blue::after,
.ws-quick__item--green::after,
.ws-quick__item--teal::after,
.ws-quick__item--purple::after,
.ws-quick__item--orange::after,
.ws-quick__item--navy::after,
.ws-quick__item--gold::after { color: currentColor; opacity: .9; }

.ws-quick__item--maroon:hover,
.ws-quick__item--blue:hover,
.ws-quick__item--green:hover,
.ws-quick__item--teal:hover,
.ws-quick__item--purple:hover,
.ws-quick__item--orange:hover,
.ws-quick__item--navy:hover {
  color: #fff; border-color: transparent; background: var(--ws-quick-hover, currentColor);
  box-shadow: 0 10px 22px rgba(29,33,40,.18);
}
.ws-quick__item--gold:hover {
  color: #211a0a; border-color: transparent; background: #b88928;
  box-shadow: 0 10px 22px rgba(29,33,40,.16);
}
.ws-quick__item--maroon:hover { background: #5d0d16; }
.ws-quick__item--blue:hover   { background: #19547f; }
.ws-quick__item--green:hover  { background: #3b653d; }
.ws-quick__item--teal:hover   { background: #126663; }
.ws-quick__item--purple:hover { background: #5b456c; }
.ws-quick__item--orange:hover { background: #8e451f; }
.ws-quick__item--navy:hover   { background: #2b4057; }

.ws-quick__item--maroon:focus-visible,
.ws-quick__item--blue:focus-visible,
.ws-quick__item--green:focus-visible,
.ws-quick__item--teal:focus-visible,
.ws-quick__item--purple:focus-visible,
.ws-quick__item--orange:focus-visible,
.ws-quick__item--navy:focus-visible { color: #fff; }
.ws-quick__item--gold:focus-visible { color: #211a0a; }

/* Content */
.site-main { min-height: 50vh; }
.ws-section { padding: clamp(2.2rem, 5vw, 3.75rem) 0; }
.ws-section--soft { background: var(--ws-bg); }
.ws-section__heading { margin: 0 0 1.4rem; font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; }

.ws-section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.ws-section-heading-row .ws-section__heading { margin-bottom: 0; }
.ws-section-kicker { display: block; margin-bottom: .35rem; color: var(--ws-maroon); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ws-text-link { flex: 0 0 auto; margin-bottom: .15rem; color: var(--ws-maroon); font-weight: 750; text-decoration: none; }
.ws-text-link:hover { text-decoration: underline; }
.ws-empty-news { padding: 2rem; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); background: var(--ws-bg); }
.ws-empty-news h3 { margin: 0 0 .4rem; color: var(--ws-maroon); }
.ws-empty-news p { margin: 0; color: var(--ws-muted); }
.ws-page-meta { margin: .7rem 0 0; color: var(--ws-muted); font-size: .92rem; }

.ws-page-header { background: var(--ws-bg); border-bottom: 1px solid var(--ws-border); }
.ws-page-header__inner { padding: clamp(1.35rem, 3vw, 1.8rem) 0; }
.ws-breadcrumbs { margin: 0 0 .5rem; color: var(--ws-muted); font-size: .85rem; }
.ws-breadcrumbs a { color: var(--ws-muted); }
.ws-page-title { margin: 0; color: var(--ws-maroon); font-size: clamp(1.85rem, 3.2vw, 2.55rem); line-height: 1.06; letter-spacing: -.032em; }

.entry-content { overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.55em; margin-bottom: .5em; line-height: 1.2; letter-spacing: -.018em; }
.entry-content h2 { font-size: 1.7rem; color: var(--ws-maroon); }
.entry-content h3 { font-size: 1.35rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: 0; margin-bottom: 1.05rem; }
.entry-content hr { border: 0; border-top: 1px solid var(--ws-border); margin: 1.55rem 0; }
.entry-content blockquote { margin: 1.35rem 0; padding: 1rem 1.25rem; border-left: 5px solid var(--ws-gold); background: var(--ws-bg); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .62rem .75rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--ws-maroon); color: #fff; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-file { padding: .8rem 1rem; border: 1px solid var(--ws-border); border-radius: 8px; background: var(--ws-bg); }
.entry-content .wp-block-file__button { background: var(--ws-maroon); color: #fff; }

/* Generic interior-page layout: readable prose, wide functional content. */
.ws-page-content { width: 100%; max-width: none; }
.ws-page-content > :where(p, ul, ol, blockquote, h2, h3, h4, h5, h6, address) { max-width: 900px; }
.ws-page-content > :where(.wp-block-table, table, .wp-block-columns, .wp-block-gallery, .wp-block-cover, .wp-block-media-text, .wp-block-embed, iframe) { width: 100%; max-width: 100%; }

/* Gutenberg/legacy action groups stay compact and wrap naturally. */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.1rem 0 1.6rem; }
.entry-content .wp-block-buttons > .wp-block-button { margin: 0; }
.entry-content .wp-block-button__link { min-height: 46px; padding: .72rem 1rem; }

/* Core Table blocks: provide layout only; WordPress owns authored border styles. */
.entry-content .wp-block-table { margin: 1.25rem 0; overflow-x: auto; border-radius: 9px; background: #fff; }
.entry-content .wp-block-table table { margin: 0; }

/* Native contact/address markup gets a quiet visual treatment everywhere. */
.entry-content address { margin: 1.25rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--ws-gold); background: var(--ws-bg); font-style: normal; }

.alignwide { width: min(var(--ws-max), calc(100vw - 2rem)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

/* Posts/search */
.ws-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.ws-card { overflow: hidden; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); background: #fff; box-shadow: 0 4px 15px rgba(29,33,40,.04); }
.ws-card__image img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ws-card__body { padding: 1.2rem; }
.ws-card__title { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.ws-card__title a { color: var(--ws-ink); text-decoration: none; }
.ws-card__title a:hover { color: var(--ws-maroon); }
.ws-card__meta { margin: .45rem 0 .8rem; color: var(--ws-muted); font-size: .82rem; }
.ws-pagination { margin-top: 2rem; }

.ws-home-news { padding-top: clamp(2.8rem, 6vw, 4.75rem); }
/* Homepage posts are complete announcements rather than teaser cards. */
.ws-home-news__feed { width: 100%; }
.ws-home-post { padding: 0 0 clamp(2rem, 4vw, 3.25rem); }
.ws-home-post + .ws-home-post { padding-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--ws-border); }
.ws-home-post__header { margin-bottom: 1.15rem; }
.ws-home-post__meta { margin: 0 0 .35rem; color: var(--ws-muted); font-size: .88rem; }
.ws-home-post__title { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.02em; }
.ws-home-post__title a { color: var(--ws-ink); text-decoration: none; }
.ws-home-post__title a:hover { color: var(--ws-maroon); text-decoration: underline; }
.ws-home-post__content { max-width: 1050px; color: var(--ws-ink); font-size: 1.05rem; }
.ws-home-post__content a { color: var(--ws-maroon); font-weight: 650; text-decoration: underline; text-underline-offset: .13em; }
.ws-home-post__content a:hover { text-decoration-thickness: 2px; }
.ws-home-post__image { display: block; max-width: 1050px; margin: 0 0 1.5rem; }
.ws-home-post__image img { display: block; width: 100%; height: auto; border-radius: var(--ws-radius); }
.ws-card { display: flex; flex-direction: column; }
.ws-card__body { display: flex; flex: 1; flex-direction: column; }
.ws-card__badge { align-self: flex-start; margin-bottom: .65rem; padding: .22rem .5rem; border-radius: 999px; background: var(--ws-gold-light); color: #5f4307; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ws-card__meta { order: 0; margin: 0 0 .45rem; }
.ws-card__title { order: 1; }
.ws-card__excerpt { order: 2; margin-top: .75rem; color: var(--ws-muted); }
.ws-card__excerpt p { margin: 0; }
.ws-card__more { order: 3; margin-top: auto; padding-top: 1rem; color: var(--ws-maroon); font-weight: 750; text-decoration: none; }
.ws-card__more:hover { text-decoration: underline; }
.ws-single-featured-image img { display: block; width: 100%; height: auto; border-radius: var(--ws-radius); }

/* Search form */
.search-form { display: flex; max-width: 600px; gap: .5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 44px; border: 1px solid var(--ws-border); border-radius: 7px; padding: .55rem .7rem; }
.search-submit { min-height: 44px; border: 0; border-radius: 7px; padding: .55rem 1rem; background: var(--ws-maroon); color: #fff; font-weight: 700; }

/* Sponsor logo strip */
.ws-sponsors {
  border-top: 1px solid var(--ws-border);
  background: #fff;
}
.ws-sponsors__inner { padding: clamp(1.8rem, 4vw, 2.75rem) 0; }
.ws-sponsors__heading {
  margin: 0 0 1.25rem;
  color: var(--ws-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}
.ws-sponsor-gallery .widget { margin: 0; }
.ws-sponsor-gallery .widget > :first-child { margin-top: 0; }
.ws-sponsor-gallery .widget > :last-child { margin-bottom: 0; }
.ws-sponsor-gallery .wp-block-gallery,
.ws-sponsor-gallery .gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem) !important;
  align-items: center;
  margin: 0 !important;
}
.ws-sponsor-gallery .wp-block-gallery > figure,
.ws-sponsor-gallery .gallery-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  margin: 0 !important;
  padding: .35rem;
}
.ws-sponsor-gallery .wp-block-gallery img,
.ws-sponsor-gallery .wp-block-gallery.has-nested-images figure.wp-block-image img,
.ws-sponsor-gallery .gallery img {
  display: block;
  width: 100% !important;
  max-width: 180px !important;
  height: 76px !important;
  max-height: 76px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0;
}
.ws-sponsor-gallery a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Footer */
.site-footer { margin-top: 0; background: #20242a; color: rgba(255,255,255,.8); }
.site-footer a { color: #fff; }
.ws-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 3.2rem 0; }
.ws-footer-title { margin: 0 0 .7rem; color: #fff; font-size: 1.1rem; }
.ws-footer-grid p { margin: 0 0 .55rem; }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-navigation li { margin-bottom: .42rem; break-inside: avoid; }
.footer-navigation a { text-decoration: none; }
.footer-navigation a:hover { text-decoration: underline; }
.ws-footer-bottom { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.13); font-size: .82rem; }

/* Comments */
.comments-area { margin-top: 3rem; }
.comment-list { padding-left: 1.2rem; }
.comment-body { margin-bottom: 1.5rem; }

/* Legacy-content helpers */
.entry-content a:has(img) { text-decoration: none; }
.entry-content img { border-radius: 6px; }
.entry-content .gallery { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 980px) {
  .ws-mobile-toggle { display: inline-flex; }
  .ws-nav-shell { display: none; background: #fff; border-top: 1px solid var(--ws-border); }
  .ws-nav-shell.is-open { display: block; }
  .primary-navigation > div > ul { display: block; padding: .55rem 0; }
  .primary-navigation > div > ul > li > a { min-height: 44px; color: var(--ws-ink); border-radius: 6px; }
  .primary-navigation > div > ul > li > a:hover,
  .primary-navigation > div > ul > li.current-menu-item > a,
  .primary-navigation > div > ul > li.current-menu-ancestor > a { background: var(--ws-maroon-soft); color: var(--ws-maroon); }
  .primary-navigation .sub-menu { position: static; width: auto; margin: 0 0 .35rem 1rem; padding: 0 0 0 .6rem; border: 0; border-left: 2px solid var(--ws-gold); border-radius: 0; box-shadow: none; visibility: visible; transform: none; transition: none; }
  .primary-navigation .sub-menu .sub-menu { margin-left: .7rem; }
  .ws-quick__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ws-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ws-footer-grid { grid-template-columns: 1fr 1fr; }
  .ws-footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .ws-section-heading-row { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .ws-text-link { margin-bottom: 0; }
  body { font-size: 16px; }
  .ws-utility__inner { min-height: 32px; }
  .ws-utility__links span:first-child { display: none; }
  .ws-brand-row { min-height: 76px; gap: .8rem; }
  .custom-logo { max-height: 48px; }
  .site-description { display: none; }
  .ws-mobile-toggle span { display: none; }
  .ws-hero__inner { padding: 2.5rem 0 3rem; }
  .ws-page-header__inner { padding: 1.15rem 0 1.3rem; }
  .ws-quick { margin-top: -18px; }
  .ws-quick__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ws-card-grid { grid-template-columns: 1fr; }
  .ws-footer-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .ws-footer-grid > :first-child { grid-column: auto; }
  .footer-navigation ul { columns: 1; }
  .entry-content table { display: block; overflow-x: auto; }
}

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