/*
Theme Name:  Western Oregon University – Divi Child
Theme URI:   https://wou.edu
Author:      Western Oregon University Web Team
Description: Divi child theme for Western Oregon University. Supports pages built with the Divi Builder and standard WordPress templates. WCAG 2.1 AA compliant.
Version:     1.0.3
Template:    Divi
Text Domain: wou-divi
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags:        divi-child, accessibility, university
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-red: #db0a29; /* WOU Red — decorative borders, backgrounds */
  --color-red-text: #a80820; /* Darker WOU Red — text on white (5.9:1 contrast) */
  --color-dark: #1a1a1a;
  --color-gray: #58595b;
  --color-gray-light: #f2f3f3;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-black-footer: #1f1f1f;

  /* Typography */
  --font-primary: "Open Sans", Arial, sans-serif;
  --font-size-base: 1rem; /* 16px */
  --line-height-base: 1.6;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
  --sidebar-width: 300px;
  --header-height: auto;

  /* Focus ring — WCAG 2.1 SC 1.4.11 / 2.4.7 */
  --focus-outline: 3px solid #005fcc;
  --focus-offset: 2px;

  /* Transitions */
  --transition-base: 200ms ease-in-out;
}

/* ==========================================================================
   BASE RESET & DEFAULTS
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* respect user browser font-size preference */
  scroll-behavior: smooth;
}

/* Honour user motion preferences — WCAG 2.1 SC 2.3.3 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-dark);
  background-color: var(--color-white);
}

/* Global link default — SC 1.4.1: color alone isn't the only distinguisher (underline present) */
a {
  color: var(--color-red);
  text-decoration: none;
}

a:hover {
  color: var(--color-red-text);
  text-decoration: none;
}

/* Global button default */
button:not([class]),
.button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background-color: var(--color-red);
  color: var(--color-white);
  border: 2px solid var(--color-red);
  border-radius: 3px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base);
}

button:not([class]):hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background-color: var(--color-red-text);
  border-color: var(--color-red-text);
  color: var(--color-white);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: disc inside;
}

ol {
  list-style: decimal inside;
}

/* ==========================================================================
   ACCESSIBILITY — WCAG 2.1 AA
   ========================================================================== */

/* Skip link — visible on keyboard focus only (SC 2.4.1) */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Global focus visible — SC 2.4.7 / 2.4.11 */
:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Remove focus ring only for mouse users; preserve for keyboard (using :focus-visible) */
:focus:not(:focus-visible) {
  outline: none;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   LAYOUT WRAPPERS
   ========================================================================== */

#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ==========================================================================
   CAMPUS ALERT BANNER
   ========================================================================== */

.campus-alert-banner {
  background-color: #a80820;
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  text-align: center;
  font-size: 0.9rem;
}

.campus-alert-banner a {
  color: var(--color-white);
  text-decoration: underline;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

#globalHeader {
  background-color: var(--color-white);
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  width: 100%;
}

/* ── Logo + utility nav row ── */
.header-top {
  width: 100%;
  background-color: var(--color-white);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  /* max-width: var(--max-width); */
  margin-inline: auto;
  padding: 0.5rem var(--space-md);
  gap: var(--space-sm);
}

/* ── Primary / Mega Menu row ── */
.primary-nav-row {
  width: 100%;
  background-color: var(--color-white);
  border-bottom: 2px solid #888;
}
.primary-nav-row .ubermenu {
  background-color: var(--color-white);
}

.primary-nav {
  width: 100%;
}

/* UberMenu — force horizontal no-wrap and full-width fill */
.ubermenu-main {
  width: 100% !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
}

.ubermenu-main .ubermenu-item-level-0 > .ubermenu-target {
  white-space: nowrap !important;
}

/* Basic fallback menu styles — UberMenu overrides these when active */
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
}

.primary-menu > li > a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color var(--transition-base),
    background-color var(--transition-base);
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  color: var(--color-red);
}

/* Dropdown sub-menus (fallback only — UberMenu replaces this) */
.primary-menu li {
  position: relative;
}

.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background-color: var(--color-white);
  border-top: 3px solid var(--color-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  min-width: 220px;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: block;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.primary-menu .sub-menu a:hover {
  background-color: var(--color-gray-light);
  color: var(--color-red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-sm);
}

.redHeading2,
.blackHeading2 {
  text-transform: uppercase;
}

.redHeading2 {
  color: var(--color-red);
}

/* Logo */
.site-logo a {
  display: inline-block;
  line-height: 0;
}

.site-logo img {
  max-width: 280px;
  width: 100%;
}

/* Utility nav (top bar links + translate + portal + search) */
.utility-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.utility-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem var(--space-xs);
}

.utility-nav ul li a {
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.375rem;
  border-radius: 3px;
  transition: color var(--transition-base);
}

.utility-nav ul li a:hover {
  color: var(--color-red-text);
  text-decoration: underline;
}

/* Search toggle button */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  color: var(--color-dark);
  border-radius: 3px;
  display: flex;
  align-items: center;
}

.search-toggle:hover {
  color: var(--color-red-text);
}

.search-toggle img {
  width: 22px;
  height: 22px;
}

/* Search panel */
.site-search-panel {
  display: none;
  background-color: var(--color-gray-light);
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid #ddd;
}

.site-search-panel.is-open {
  display: block;
}

.site-search-panel .gcse-searchbox-only {
  max-width: 600px;
  margin-inline: auto;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-gray);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-dark);
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.icon-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-dark);
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

/* Mobile navigation drawer */
.mobile-nav {
  /*display: none;*/
  background-color: var(--color-white);
  border-top: 1px solid #ddd;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav .menu a {
  display: block;
  padding: 0.75rem var(--space-md);
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--color-gray-light);
  font-size: 1rem;
}

.mobile-nav .menu a:hover {
  background-color: var(--color-gray-light);
  color: var(--color-red-text);
}

.mobile-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav .sub-menu a {
  padding-left: calc(var(--space-md) + 1rem);
  font-size: 0.9375rem;
}

/* Google Translate widget */
#google_translate_element {
  font-size: 0.8125rem;
}

/* ==========================================================================
   INTERIOR HEADER BAR (site name banner + breadcrumb strip + mega menu)
   ========================================================================== */

/* Large gray banner — displays site name prominently */
.interior-header {
  background-color: var(--color-gray-light);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.interior-header .container {
  text-align: center;
}

.site-section-name {
  display: block;
  font-size: 50px;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.2;
  font-family: inherit;
  text-align: center;
}
.interior-header .container {
  padding: 1rem !important;
  padding-bottom: 2rem !important;
}
/* White breadcrumb strip below the gray banner */
.breadcrumb-bar {
  background-color: var(--color-white);
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
  text-align: center;
  margin-top: -1.75rem;
  margin-bottom: -0.1rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.breadcrumb-bar .container {
  text-align: center;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.5rem !important;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.breadcrumbs a {
  color: var(--color-red-text);
  text-decoration: underline;
}

.breadcrumbs a:hover {
  text-decoration: none;
}

.breadcrumbs .sep {
  margin-inline: 0.25rem;
  color: var(--color-gray);
}

.page-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--color-dark);
  line-height: 1.2;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

/*#main-content {
  padding-block: var(--space-lg);
}*/

/* Standard two-column layout (content + sidebar) */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-lg);
  align-items: start;
}

/* Full-width (no sidebar) */
.content-full-layout {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

/* Interior sidebar navigation */
.interior-sidebar {
  position: sticky;
  top: var(--space-sm);
}

.interior-sidebar .widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  border-bottom: 3px solid var(--color-red);
  padding-bottom: 0.5rem;
  margin-bottom: var(--space-sm);
}

/* Sidebar menu */
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid var(--color-gray-light);
}

.sidebar-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

.sidebar-menu a:hover,
.sidebar-menu .current-menu-item > a {
  background-color: var(--color-gray-light);
  color: var(--color-red-text);
}

.sidebar-menu .current-menu-item > a {
  font-weight: 700;
  border-left: 3px solid var(--color-red);
}

.sidebar-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu .sub-menu a {
  padding-left: 1.5rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   POST / PAGE CONTENT
   ========================================================================== */

.entry-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.entry-content {
  line-height: 1.7;
}

.entry-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-lg);
}

.entry-content h3 {
  font-size: 1.25rem;
}

.entry-content a {
  color: var(--color-red); /* inherits global default */
}

.entry-content img {
  height: auto;
  border-radius: 2px;
}

/* ==========================================================================
   MODULE / CALLOUT CONTAINERS
   ========================================================================== */

.mod-container {
  border-top: 4px solid var(--color-red);
  padding: var(--space-md);
  background-color: var(--color-gray-light);
  margin-bottom: var(--space-md);
}

.mod-container h3 {
  color: var(--color-red-text);
  margin-top: 0;
}

/* ==========================================================================
   STATISTICAL CALLOUT BLOCKS
   ========================================================================== */

.wou-statistical-callout {
  text-align: center;
  padding: var(--space-md);
  background-color: var(--color-gray-light);
  border-top: 4px solid var(--color-red);
}

/* Style A: large number | label | sub-label */
.wou-statistical-callout.style-a .stat-line1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-red-text);
  line-height: 1;
}

.wou-statistical-callout.style-a .stat-line2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.wou-statistical-callout.style-a .stat-line3 {
  font-size: 0.9375rem;
  color: var(--color-gray);
}

/* Style B: label | value | note */
.wou-statistical-callout.style-b .stat-line1 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray);
}

.wou-statistical-callout.style-b .stat-line2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-red-text);
}

.wou-statistical-callout.style-b .stat-line3 {
  font-size: 0.875rem;
  font-style: italic;
}

/* Style C: large text | descriptor | note */
.wou-statistical-callout.style-c .stat-line1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-dark);
}

.wou-statistical-callout.style-c .stat-line2 {
  font-size: 1rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wou-statistical-callout.style-c .stat-line3 {
  font-size: 0.875rem;
  color: var(--color-gray);
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result-item {
  border-bottom: 1px solid var(--color-gray-light);
  padding-block: var(--space-md);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h2 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.search-result-item h2 a {
  color: var(--color-red-text);
  text-decoration: none;
}

.search-result-item h2 a:hover {
  text-decoration: underline;
}

.search-result-excerpt {
  font-size: 0.9375rem;
  color: var(--color-gray);
  margin: 0;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-gray-light);
  border-radius: 3px;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

#globalFooter {
  background-color: var(--color-black-footer); /* #1f1f1f throughout */
  color: var(--color-white);
}

/* Override global link color inside the footer — white links on dark bg */
#globalFooter a {
  color: var(--color-white);
  text-decoration: underline;
}

#globalFooter a:hover {
  color: #db0a29;
  text-decoration: none;
}

/* Upper footer */
.footer-upper {
  background-color: var(--color-black-footer);
  border-top: 4px solid var(--color-red);
}

.footer-upper-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-brand img {
  max-width: 250px;
}

.footer-social {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social img {
  width: 30px;
  height: 30px;
}

.footer-address {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: #cccccc;
  line-height: 1.5;
}

.footer-links-col h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-col ul li {
  margin-bottom: 0.375rem;
}

/* Lower footer — same background, separated by a subtle border */
.footer-lower {
  background-color: var(--color-black-footer);
  border-top: 1px solid #3a3a3a;
  color: #cccccc;
}

.footer-lower-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.footer-land-ack {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cccccc;
}

.footer-land-ack strong {
  color: var(--color-white);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-lower-links {
  font-size: 0.875rem;
  color: #cccccc;
  line-height: 1.6;
}

.footer-lower-links ul {
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--space-sm);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404 {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--color-red);
  margin-bottom: 0;
  line-height: 1;
}

.error-404 h2 {
  font-size: 1.75rem;
  margin-top: 0;
}

/* ==========================================================================
   DIVI BUILDER INTEGRATION
   ========================================================================== */

/*
 * Divi's parent stylesheet sets .et_pb_button { color: #2ea3f2 } (Divi blue),
 * which is more specific than our global `a` rule. Override the default here.
 * Buttons with custom colors set in the Divi builder use inline styles, which
 * always win over these rules — so builder-customised buttons are unaffected.
 */
.et_pb_button,
a.et_pb_button {
  color: var(--color-red);
  border-color: var(--color-red);
}

.et_pb_button:hover,
a.et_pb_button:hover {
  color: var(--color-white);
  background-color: var(--color-red);
  border-color: var(--color-red);
}

/*
 * Divi builder pages use .divi-page-content as their only wrapper.
 * Strip all box constraints so Divi sections can be full-width/full-screen.
 */
.divi-page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  /* padding: 1rem; */
}

/* Divi full-width page body class — belt-and-suspenders reset */
body.et_full_width_page #main-content {
  padding: 0;
  margin: 0;
}

/*
 * Divi's et_block_row is missing the :last-child gutter reset that its
 * standard et_pb_row counterpart has. Without it, the trailing margin on
 * the final column pushes the row off-centre. Only the last child is reset
 * so the inter-column gutter (5.5%) is preserved between columns.
 */
.et_pb_gutters3 .et_block_row .et_pb_column:last-child,
.et_pb_gutters3.et_block_row.et_pb_row > .et_pb_column:last-child {
  margin-right: 0;
}

/* Divi's own section/row padding should not be overridden */
.divi-page-content .et_pb_section,
.divi-page-content .et_pb_row {
  max-width: none;
}

/* Ensure our #wrapper flex doesn't cap Divi full-screen sections */
body.et_full_width_page #wrapper {
  display: block;
}
/* Divi draws a vertical sidebar-divider line via #main-content .container::before
   at the 79.125% mark. Our custom page.php uses its own sidebar layout
   (.content-sidebar-layout, not #left-area/#sidebar), so the divider appears
   orphaned — hide it. */
#main-content .container::before {
  display: none;
}

/* Google Custom Search overrides (WCAG focus on search button) */
.gsc-search-button,
.gsc-search-button-v2 {
  margin: 0 !important;
  padding: 6px 27px !important;
}

.gsc-search-button-v2,
.gsc-search-button-v2:hover,
.gsc-search-button-v2:focus {
  border-color: #000000 !important;
  background-color: #333333 !important;
  background-image: none !important;
}

.gsc-search-button-v2:focus-visible {
  outline: var(--focus-outline) !important;
  outline-offset: var(--focus-offset) !important;
}

table.gsc-search-box {
  border: solid 1.5px !important;
}

table.gsc-search-box tr,
table.gsc-search-box th,
table.gsc-search-box td {
  padding: 0 !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .content-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .interior-sidebar {
    position: static;
    order: -1; /* sidebar above content on mobile */
  }

  .footer-upper-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-lower-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .utility-nav,
  .primary-nav-row {
    display: none;
  }

  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    border: none;
    color: var(--color-red-text);
  }
  .icon-bar {
    background-color: var(--color-red);
  }
  .site-section-name {
    font-size: 1.5rem;
  }

  .page-header-title {
    font-size: 1.375rem;
  }

  .entry-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-social a img {
    width: 26px;
    height: 26px;
  }

  .error-404 h1 {
    font-size: 4rem;
  }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .skip-link,
  .mobile-menu-toggle,
  .utility-nav,
  .mobile-nav,
  .site-search-panel,
  #globalFooter .footer-social {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
}
