/*
Theme Name: CT-Theme
Theme URI: https://collegetransit.com
Author: Spartan Logic Builders
Author URI: https://spartanlogicbuilders.com
Description: CollegeTransit's badge-led identity system — the navy/gold transit seal as the site's trust mark, with the illustrated seasonal break posters used as accent art (hero, break cards) rather than woven into nav/forms/UI chrome. Standalone theme, no parent dependency.
Version: 1.6.9
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ct-theme
Requires PHP: 8.3
*/

/* ==========================================================================
   Design tokens — pulled from the CT seal badge (navy field / gold ring),
   see clients/collegetransit/ct-theme/CLAUDE.md
   ========================================================================== */
:root{
  --canvas:#F8F4E9;
  --on-dark:#F8F4E9; /* text/icons on the fixed-navy header/footer/hero-band */
  --surface:#FFFFFF;
  --ink:#1B2333;
  --muted:#5B6472;
  --navy:#10213F;
  --navy-deep:#0B1730;
  --gold:#C9A24E;
  --gold-light:#E4C579;
  --alert:#B4432E;
  --border:#E7DFC8;
  --border-strong:rgba(16,33,63,.22);
  --shadow-color:16,33,63;

  --radius-sm:6px;
  --radius-md:10px;
  --radius-lg:20px;
  --content-width:1200px;
  --content-narrow:70ch;
}
/* This is a fixed light parchment identity, not a canvas that should invert
   under OS dark mode — the approved comp assumed one light look throughout,
   and half the headings here are set in --navy for contrast against a light
   surface, so an auto dark-mode swap breaks legibility. No dark variant
   requested this round (see CLAUDE.md); revisit deliberately if ever asked. */

/* ==========================================================================
   Base
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height:1.6;
  font-size:16px;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--navy); text-decoration-color:var(--border-strong); }
a:hover{ text-decoration-color:currentColor; }
:focus-visible{ outline:3px solid var(--navy); outline-offset:2px; }

h1,h2,h3,h4{
  font-family:"Bebas Neue", "Arial Narrow", sans-serif;
  font-weight:400;
  letter-spacing:.02em;
  text-wrap:balance;
  margin:0 0 .4em;
  line-height:1;
  text-transform:uppercase;
}
h1{ font-size:clamp(2.4rem,5.4vw,4.4rem); }
h2{ font-size:clamp(1.7rem,3.6vw,2.6rem); }
h3{ font-size:1.4rem; }
p{ margin:0 0 1.1em; max-width:var(--content-narrow); }
.eyebrow{
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--navy); color:#fff;
  padding:10px 16px; border-radius:0 0 var(--radius-sm) var(--radius-sm); z-index:200;
}
.skip-link:focus{ left:16px; }

.wrap{ max-width:var(--content-width); margin-inline:auto; padding-inline:20px; }
/* WooCommerce's own single-product/shop/archive templates render their own
   #primary.content-area wrapper instead of going through page.php's `.wrap`
   — .content-area already picks up padding-block from the rule below, this
   adds the matching side margins so WC pages aren't edge-to-edge. */
#primary.content-area{ max-width:var(--content-width); margin-inline:auto; padding-inline:20px; }

/* ==========================================================================
   Site header — tall navy band, houses the seal + nav together
   ========================================================================== */
.site-header{ background:var(--navy-deep); }

.site-header .wrap.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding-block:44px 32px;
  flex-wrap:wrap;
}
.site-branding{ display:flex; align-items:center; gap:20px; text-decoration:none; }
.site-branding:hover{ text-decoration:none; }
.site-branding img{ width:120px; height:120px; border-radius:50%; flex-shrink:0; }
.site-title{
  font-family:"Bebas Neue", sans-serif;
  font-size:2.4rem;
  color:var(--on-dark);
  letter-spacing:.03em;
}

.header-right{ display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.header-actions{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.header-cart{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--on-dark);
  font-weight:600;
  font-size:.9rem;
  text-decoration:none;
}
.header-cart:hover{ color:var(--gold-light); text-decoration:none; }
.header-cart-count{
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:11px;
  background:var(--gold);
  color:var(--navy);
  font-size:.75rem;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.header-motto{
  font-family:Georgia,"Times New Roman",serif;
  font-style:italic;
  font-size:.85rem;
  letter-spacing:.02em;
  color:var(--gold);
  text-align:right;
  max-width:280px;
}

/* Menu/sub-menu items live inside the same navy banner as a second row */
.primary-nav.wrap{
  padding-block:20px 32px;
  border-top:1px solid rgba(255,255,255,.08);
}
.primary-nav > ul{ list-style:none; display:flex; gap:30px; margin:0; padding:0; flex-wrap:wrap; }
.primary-nav li{ position:relative; }
.primary-nav a{
  color:#A9B2C4;
  text-decoration:none;
  font-weight:500;
  font-size:.95rem;
  padding:8px 2px;
  display:inline-block;
}
.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .current-menu-item > a{ color:var(--gold-light); }
.primary-nav .menu-item-has-children > a::after{ content:"\25BE"; margin-left:6px; font-size:.7em; vertical-align:1px; }

.primary-nav .sub-menu{
  list-style:none;
  margin:0;
  padding:10px 0;
  position:absolute;
  top:100%;
  left:0;
  min-width:230px;
  background:var(--navy);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius-sm);
  box-shadow:0 18px 36px -14px rgba(0,0,0,.55);
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease;
  z-index:40;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.primary-nav .sub-menu a{ display:block; padding:9px 18px; font-size:.88rem; white-space:nowrap; }
.primary-nav .sub-menu a:hover{ background:rgba(255,255,255,.06); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:"IBM Plex Sans",sans-serif;
  font-weight:700;
  font-size:.92rem;
  border:none;
  border-radius:var(--radius-md);
  padding:14px 28px;
  cursor:pointer;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary{
  background:var(--gold);
  color:var(--navy);
}
.btn-primary:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
  color:var(--navy);
}
.btn-secondary{
  background:var(--navy);
  color:var(--on-dark);
}
.btn-secondary:hover{ filter:brightness(1.15); color:var(--on-dark); }

/* ==========================================================================
   Hero (front page) — poster pinned like a real notice-board poster
   ========================================================================== */
.hero{ background:var(--canvas); padding-block:72px; }
.hero .wrap{ display:flex; align-items:center; gap:56px; flex-wrap:wrap; }
.hero-copy{ flex:1 1 380px; display:flex; flex-direction:column; gap:20px; }
.hero-kicker{ display:flex; align-items:center; gap:10px; }
.hero-kicker .rule{ width:28px; height:2px; background:var(--gold); }
.hero h1{ color:var(--navy); max-width:14ch; }
.hero .lede{ color:#3C4658; max-width:46ch; font-size:1.06rem; }
.hero .actions{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:6px; }
.hero .motto{ font-family:Georgia,"Times New Roman",serif; font-style:italic; font-size:.9rem; color:var(--muted); }

.hero-poster{ flex:1 1 320px; display:flex; justify-content:center; }
.poster-frame{
  position:relative;
  transform:rotate(2deg);
  background:#fff;
  padding:14px;
  border-radius:4px;
  box-shadow:0 24px 48px -14px rgba(var(--shadow-color),.4);
  border:1px solid var(--border);
}
.poster-frame img{ width:380px; max-width:100%; border-radius:2px; }
.poster-frame-placeholder{ width:380px; max-width:100%; aspect-ratio:6/5; border-radius:2px; background:linear-gradient(135deg, var(--border), var(--canvas)); }
.thumbtack{ position:absolute; width:26px; height:32px; }
.thumbtack.tl{ top:-13px; left:-10px; transform:rotate(-18deg); }
.thumbtack.tr{ top:-13px; right:-10px; transform:rotate(16deg); }
.thumbtack.bl{ bottom:-13px; left:-10px; transform:rotate(-165deg); }
.thumbtack.br{ bottom:-13px; right:-10px; transform:rotate(165deg); }

/* ==========================================================================
   Text-exchange section — the "why we exist" phone mockup
   ========================================================================== */
.text-exchange{ background:var(--surface); padding-block:72px; }
.text-exchange .wrap{ display:flex; flex-direction:column; align-items:center; gap:36px; }
.text-exchange .section-head{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; }
.text-exchange .eyebrow{ color:var(--gold); }
.text-exchange h2{ color:var(--navy); text-align:center; }
.exchange-row{ display:flex; justify-content:center; align-items:stretch; gap:40px; flex-wrap:wrap; width:100%; }
.phone-frame{
  width:100%;
  max-width:340px;
  background:var(--navy-deep);
  border-radius:30px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 40px -16px rgba(var(--shadow-color),.45);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.phone-frame .phone-bar{ background:rgba(255,255,255,.06); padding:16px 20px; text-align:center; border-bottom:1px solid rgba(255,255,255,.12); font-size:.82rem; font-weight:700; color:var(--on-dark); }
.phone-frame .messages{ padding:22px 18px; display:flex; flex-direction:column; gap:16px; flex:1 1 auto; }
.message{ display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.message.from-student{ align-items:flex-end; }
.message .who{ font-size:.68rem; font-weight:600; color:#9AA4BC; }
.bubble{ border-radius:18px; padding:12px 16px; font-size:.88rem; line-height:1.5; max-width:270px; }
.bubble.parent{ background:#E7E7EC; color:var(--ink); }
.bubble.student{ background:#2FB88F; color:#fff; }
.text-exchange .closing{ font-size:1.2rem; line-height:1.5; color:var(--muted); max-width:480px; text-align:center; }
.text-exchange .closing .motto{ font-style:italic; font-family:Georgia,"Times New Roman",serif; color:var(--gold); }

/* Live-tracking mockup — a route line between HOME, JMU and VT with a traveling dot */
.route-mock{ padding:32px 34px 36px 20px; display:flex; flex-direction:column; align-items:center; gap:18px; flex:1 1 auto; }
.route-eta{ font-size:.95rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:#A9B2C4; }
.route-track{ position:relative; flex:1 1 auto; min-height:220px; margin:2px 0; }
.route-line{ position:absolute; left:50%; top:8%; bottom:4%; width:4px; transform:translateX(-50%); background:rgba(255,255,255,.25); border-radius:2px; }
.route-point{ position:absolute; left:50%; }
.route-point .stop-dot{
  position:absolute; left:0; top:0; transform:translate(-50%,-50%);
  width:14px; height:14px; border-radius:50%; background:var(--navy-deep); border:3px solid var(--gold);
}
.route-point .stop-label{
  position:absolute; left:14px; top:0; transform:translateY(-50%);
  font-family:"Bebas Neue",sans-serif; font-size:1.1rem; letter-spacing:.03em; color:var(--on-dark); white-space:nowrap;
}
/* HOME sits near the top; JMU/VT sit past the halfway mark, so the gap
   between HOME and JMU visually reads as the real distance home vs.
   the short JMU<->VT hop */
.route-point.home{ top:8%; }
.route-point.jmu{ top:64%; }
.route-point.vt{ top:96%; }
.route-dot{
  position:absolute; left:50%; top:96%; transform:translate(-50%,-50%);
  width:14px; height:14px; border-radius:50%; background:var(--gold);
  box-shadow:0 0 0 5px rgba(201,162,78,.35);
}
@media (prefers-reduced-motion: no-preference){
  .route-dot{ animation:ct-route-travel 6s ease-in-out infinite; }
}
@keyframes ct-route-travel{
  0%, 100%{ top:96%; }    /* VT */
  25%, 75%{ top:64%; }    /* JMU */
  50%{ top:8%; }          /* HOME */
}

/* ==========================================================================
   Trust band — stats strip
   ========================================================================== */
.trust-band{ background:var(--navy); padding-block:36px; }
.trust-band .wrap{ display:flex; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.trust-item{ flex:1 1 200px; display:flex; flex-direction:column; gap:8px; }
.trust-item .rule{ width:24px; height:2px; background:var(--gold); }
.trust-item .label{ font-family:"Bebas Neue",sans-serif; font-size:1.25rem; letter-spacing:.02em; color:var(--on-dark); }
.trust-item p{ font-size:.88rem; color:#A9B2C4; margin:0; }

/* ==========================================================================
   Route maps — Northeast / Mid-Atlantic stop maps, images chosen from the
   Media Library (see campus cards below for the same pattern). Images are
   NOT forced to a fixed aspect ratio like campus-card photos — these are
   illustrated route maps that may be uploaded portrait or landscape, and
   forcing a crop here would recreate the exact JMU/VT WooCommerce
   aspect-ratio cropping bug fixed earlier (see ct-theme/CHANGELOG.md).
   ========================================================================== */
.route-maps{ padding-block:80px; }
.route-maps .section-head{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:32px; }
.route-maps h2{ color:var(--navy); }
.route-map-row{ grid-template-columns:repeat(2, minmax(0,1fr)); }
.route-map-card{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.route-map-card img{ width:100%; height:auto; display:block; }
.route-map-placeholder{ width:100%; aspect-ratio:4/3; background:linear-gradient(135deg, var(--border), var(--canvas)); }
.route-map-card .card-body{ padding:22px; display:flex; flex-direction:column; gap:8px; }
.route-map-card .card-title{ font-family:"Bebas Neue",sans-serif; font-size:1.5rem; color:var(--navy); letter-spacing:.02em; }
.route-map-card .card-route{ font-size:.88rem; color:var(--muted); }
.route-map-card .card-link{ margin-top:10px; font-size:.88rem; font-weight:700; color:var(--navy); text-decoration:none; border-bottom:2px solid var(--gold); align-self:flex-start; }

/* ==========================================================================
   Break cards — where the seasonal poster art surfaces as content
   ========================================================================== */
.break-cards{ padding-block:80px; }
.break-cards .section-head{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:32px; }
.break-cards h2{ color:var(--navy); }
.card-row{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:28px; }
.campus-card-row{ grid-template-columns:repeat(2, minmax(0,1fr)); max-width:720px; margin-inline:auto; }
.break-card{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.break-card-image-link{ display:block; }
.break-card img{ width:100%; aspect-ratio:1/1; height:auto; object-fit:cover; display:block; }
.break-card-image-placeholder{ width:100%; aspect-ratio:1/1; background:linear-gradient(135deg, var(--border), var(--canvas)); }
.break-card .card-body{ padding:22px; display:flex; flex-direction:column; gap:8px; }
.break-card .card-title{ font-family:"Bebas Neue",sans-serif; font-size:1.5rem; color:var(--navy); letter-spacing:.02em; }
.break-card .card-route{ font-size:.88rem; color:var(--muted); }
.break-card .card-link{ margin-top:10px; font-size:.88rem; font-weight:700; color:var(--navy); text-decoration:none; border-bottom:2px solid var(--gold); align-self:flex-start; }

/* ==========================================================================
   Content cards — blog/archive/search results
   ========================================================================== */
.content-area{ padding-block:56px; }
.card-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:22px; }
.post-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:22px;
  box-shadow:0 10px 26px -14px rgba(var(--shadow-color),.25);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.post-card .eyebrow{ margin-bottom:2px; }
.post-card h3{ margin:0; font-size:1.15rem; text-transform:none; font-family:"IBM Plex Sans",sans-serif; font-weight:700; }
.post-card h3 a{ color:var(--ink); text-decoration:none; }
.post-card h3 a:hover{ color:var(--navy); }
.post-card p{ color:var(--muted); font-size:.92rem; margin:0; }
.post-card .read-more{ margin-top:6px; font-size:.85rem; font-weight:600; }

/* ==========================================================================
   WooCommerce — no template overrides exist, so these are WC's own default
   markup/classes styled in place (single-product, cart, checkout, My Account).
   ========================================================================== */
table.variations{ margin-bottom:20px; }
table.variations td,
table.variations th{ padding:8px 0; }
table.variations td.label{ padding-right:16px; font-weight:700; color:var(--navy); }
.variations select{
  font-size:1rem;
  padding:10px 36px 10px 14px;
  border:1.5px solid var(--border-strong);
  border-radius:var(--radius-sm);
  background:var(--surface);
  color:var(--ink);
  font-family:"IBM Plex Sans",sans-serif;
}
.variations select:focus-visible{ outline:3px solid var(--navy); outline-offset:1px; }

.single_add_to_cart_button.button{
  background:var(--gold);
  color:var(--navy);
  font-family:"IBM Plex Sans",sans-serif;
  font-weight:700;
  border:none;
  border-radius:var(--radius-md);
  padding:14px 28px;
}
.single_add_to_cart_button.button:hover{ filter:brightness(1.05); color:var(--navy); }
.single_add_to_cart_button.button.disabled{ background:var(--border-strong); color:var(--muted); }

/* WooCommerce Blocks add-to-cart buttons (JMU/VT use the older "Products by
   Category" grid, All Trips uses the newer "Product Collection" block — two
   different WC block variants with two different wrapper classes,
   .wc-block-grid__product-add-to-cart vs .wc-block-components-product-button,
   found live via a real reliant bug report: the first fix only scoped to the
   older grid's wrapper and missed All Trips entirely). None of these render
   inside a .woocommerce ancestor, so they fall through to WP core's default
   dark-gray block-button fill instead of any rule above. Targeting the class
   combo both variants share (.wp-block-button__link.add_to_cart_button)
   instead of either variant's specific wrapper, so a future WC block variant
   with this same combo is covered without another one-off fix. */
.wp-block-button__link.add_to_cart_button{
  background:var(--gold);
  color:var(--navy);
  font-family:"IBM Plex Sans",sans-serif;
  font-weight:700;
}
.wp-block-button__link.add_to_cart_button:hover{ filter:brightness(1.05); color:var(--navy); }

/* Primary WC conversion buttons — Proceed to Checkout, Place Order — get the
   same gold treatment as Register (WC marks both with the "alt" class). */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order{
  background:var(--gold);
  color:var(--navy);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover{ filter:brightness(1.05); background:var(--gold); color:var(--navy); }

/* Everything else — Return to shop, Continue Shopping, Update cart, Apply
   coupon — gets the secondary navy treatment. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  background:var(--navy);
  color:var(--on-dark);
  font-family:"IBM Plex Sans",sans-serif;
  font-weight:700;
  border:none;
  border-radius:var(--radius-md);
  padding:12px 24px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover{ filter:brightness(1.15); background:var(--navy); color:var(--on-dark); }
.woocommerce .button.disabled,
.woocommerce .button:disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt.disabled:hover,
.woocommerce button.button.alt:disabled:hover{ background:var(--border-strong); color:var(--muted); cursor:not-allowed; filter:none; }

/* Cart table: thumbnails are filtered out in functions.php; drop the empty column too */
.woocommerce-cart-form .product-thumbnail{ display:none; }

/* Footer mini-cart (WC Cart widget) buttons */
.woocommerce-mini-cart__buttons{ display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 0; }
.site-footer .woocommerce-mini-cart__buttons a.button{
  background:var(--gold);
  color:var(--navy);
  font-family:"IBM Plex Sans",sans-serif;
  font-weight:700;
  font-size:.85rem;
  border:none;
  border-radius:var(--radius-md);
  padding:10px 18px;
}
.site-footer .woocommerce-mini-cart__buttons a.button:not(.checkout){ background:transparent; color:var(--on-dark); box-shadow:inset 0 0 0 1.5px var(--gold); }
.site-footer .woocommerce-mini-cart__buttons a.button:hover{ filter:brightness(1.05); color:var(--navy); background:var(--gold-light); }

/* Notice/message boxes — cart/checkout/account validation and status text */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews{
  list-style:none;
  margin:0 0 1.4em;
  padding:14px 22px;
  border-left:4px solid var(--gold);
  background:var(--canvas);
  color:var(--ink);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
.woocommerce-error{ border-left-color:var(--alert); }
.woocommerce-message .button,
.woocommerce-info .button{ margin-left:12px; }

/* Cart / checkout / My Account tables share the shop_table class */
.woocommerce table.shop_table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1.6em;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td{ border:1px solid var(--border); padding:12px 14px; text-align:left; }
.woocommerce table.shop_table th{ background:var(--navy); color:var(--on-dark); font-family:"Bebas Neue",sans-serif; font-weight:400; letter-spacing:.02em; }
.woocommerce .quantity .qty{
  width:64px;
  border:1.5px solid var(--border-strong);
  border-radius:var(--radius-sm);
  padding:8px 10px;
  font-family:"IBM Plex Sans",sans-serif;
  background:var(--surface);
  color:var(--ink);
}

/* Checkout form fields + My Account (shares .form-row / input styling) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-MyAccount-content input,
.woocommerce-MyAccount-content textarea,
.woocommerce-MyAccount-content select{
  border:1.5px solid var(--border-strong);
  border-radius:var(--radius-sm);
  padding:10px 14px;
  font-family:"IBM Plex Sans",sans-serif;
  background:var(--surface);
  color:var(--ink);
}
.woocommerce form .form-row label{ font-weight:600; color:var(--navy); }
.woocommerce #payment div.payment_box{ background:var(--canvas); border-radius:var(--radius-sm); }

/* My Account nav (Orders/Downloads/Addresses/Account details/Logout) */
.woocommerce-MyAccount-navigation ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.woocommerce-MyAccount-navigation a{ display:block; padding:10px 14px; border-radius:var(--radius-sm); color:var(--ink); text-decoration:none; }
.woocommerce-MyAccount-navigation li.is-active a{ background:var(--navy); color:var(--on-dark); font-weight:700; }
.woocommerce-MyAccount-navigation a:hover{ background:var(--canvas); }

.entry-content{ max-width:var(--content-narrow); }
.entry-content > *:last-child{ margin-bottom:0; }
.entry-header{ margin-bottom:28px; }
.entry-header h1{ text-transform:none; font-family:"IBM Plex Sans",sans-serif; font-weight:700; }
.entry-meta{ font-size:.82rem; color:var(--muted); }

/* Legacy Page content (campus/info/policy pages) — covers both bare-HTML
   tables and the Gutenberg core-table-block, plus WP core's preset text-color
   classes, which is where most of the clashing color on these pages comes from. */
.entry-content blockquote,
.entry-content .wp-block-quote{
  margin:0 0 1.4em;
  padding:14px 22px;
  border-left:4px solid var(--gold);
  background:var(--canvas);
  /* !important: some legacy quotes (e.g. the JMU page) carry a raw
     style="color:#..." attribute on the <blockquote> itself, which beats
     any external selector regardless of specificity — only !important wins. */
  color:var(--ink) !important;
}
.entry-content blockquote p,
.entry-content .wp-block-quote p{ font-style:italic; margin:0 0 .6em; max-width:none; }
.entry-content blockquote cite,
.entry-content .wp-block-quote cite{ display:block; font-style:normal; font-weight:600; font-size:.85rem; color:var(--muted); }

.entry-content table{ width:100%; border-collapse:collapse; margin:0 0 1.6em; }
.entry-content th,
.entry-content td{ border:1px solid var(--border); padding:10px 14px; text-align:left; }
.entry-content th{ background:var(--navy); color:var(--on-dark); font-family:"Bebas Neue",sans-serif; font-weight:400; letter-spacing:.02em; }
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd){ background:var(--canvas); }
/* Some legacy tables use a bolded <td> row instead of a real <th> for their
   header — style the first row the same way regardless of tag. */
.entry-content .wp-block-table tr:first-child td{ background:var(--navy); color:var(--on-dark); font-family:"Bebas Neue",sans-serif; font-weight:400; letter-spacing:.02em; }

.entry-content a{ color:var(--navy); font-weight:600; }
.entry-content a:hover{ color:var(--gold); }

.entry-content ul,
.entry-content ol{ padding-left:1.4em; margin:0 0 1.2em; max-width:none; }
.entry-content li{ margin-bottom:.4em; }

.entry-content .has-vivid-red-color,
.entry-content .has-vivid-cyan-blue-color,
.entry-content .has-luminous-vivid-orange-color,
.entry-content .has-vivid-green-cyan-color,
.entry-content .has-vivid-purple-color{ color:var(--navy) !important; }

/* FAQ accordion — details/summary needs zero JS and respects
   prefers-reduced-motion by default (no transition is used). */
.ct-faq-accordion h2{ color:var(--navy); margin-top:1.6em; }
.ct-faq-accordion h2:first-child{ margin-top:0; }
.ct-faq-accordion details{
  border-bottom:1px solid var(--border);
  padding:14px 0;
}
.ct-faq-accordion summary{
  cursor:pointer;
  font-weight:700;
  color:var(--navy);
  list-style:none;
  padding-right:28px;
  position:relative;
}
.ct-faq-accordion summary::-webkit-details-marker{ display:none; }
.ct-faq-accordion summary::after{
  content:"+";
  position:absolute;
  right:0;
  top:0;
  color:var(--gold);
  font-size:1.2rem;
  font-weight:700;
}
.ct-faq-accordion details[open] summary::after{ content:"\2212"; }
.ct-faq-accordion details p{ margin:.8em 0 0; max-width:none; }

/* Customer quotes / testimonials */
.testimonials{ background:var(--surface); padding-block:72px; }
.testimonials .section-head{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:32px; }
.testimonials .eyebrow{ color:var(--gold); }
.testimonials h2{ color:var(--navy); }
.testimonial-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:28px; }
.testimonial-card{
  margin:0;
  background:var(--canvas);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.testimonial-card blockquote{ margin:0; padding:0; border:none; background:none; font-style:italic; color:var(--ink); font-size:1.02rem; line-height:1.6; }
.testimonial-card figcaption{ font-size:.85rem; font-weight:600; color:var(--muted); }

/* reCAPTCHA v3 badge — hidden per client request; disclosure text shown
   site-wide in the footer per Google's ToS requirement when the badge is
   hidden (see ct-theme/NEXT-STEPS.md). */
.grecaptcha-badge{ visibility:hidden; }
.recaptcha-disclosure{ font-size:.72rem; color:#6E7893; max-width:420px; margin:0; }
.recaptcha-disclosure a{ color:#8D97B4; }
.recaptcha-disclosure a:hover{ color:var(--gold-light); }

/* ==========================================================================
   Search form
   ========================================================================== */
.search-form{ display:flex; gap:10px; max-width:480px; }
.search-form input[type="search"]{
  flex:1;
  border:1.5px solid var(--border-strong);
  border-radius:var(--radius-sm);
  padding:11px 14px;
  font-family:"IBM Plex Sans",sans-serif;
  font-size:.95rem;
  background:var(--surface);
  color:var(--ink);
}
.search-form input[type="search"]:focus-visible{ outline:3px solid var(--navy); outline-offset:1px; }

/* ==========================================================================
   404
   ========================================================================== */
.wrong-stop{ text-align:left; padding-block:70px; }
.wrong-stop h1{ margin-top:10px; text-transform:none; font-family:"IBM Plex Sans",sans-serif; font-weight:700; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area{ margin-top:44px; border-top:1px solid var(--border); padding-top:28px; }
.comment-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.comment-body{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px 18px; }
.comment-meta{ font-size:.8rem; color:var(--muted); margin-bottom:6px; }
.comment-form input, .comment-form textarea{
  width:100%; border:1.5px solid var(--border-strong); border-radius:var(--radius-sm);
  padding:10px 12px; font-family:"IBM Plex Sans",sans-serif; margin-bottom:10px; background:var(--surface); color:var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background:var(--navy-deep); color:#C7CFE6; margin-top:auto; }
.site-footer .wrap{ padding-block:56px 28px; display:flex; flex-direction:column; gap:36px; }
.footer-top{ display:flex; justify-content:space-between; gap:48px; flex-wrap:wrap; }
.footer-brand{ display:flex; flex-direction:column; gap:14px; max-width:300px; }
.footer-brand img{ width:64px; height:64px; border-radius:50%; }
.footer-brand .motto{ font-family:Georgia,"Times New Roman",serif; font-style:italic; font-size:.82rem; letter-spacing:.03em; color:var(--gold); }
.footer-widgets{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-widgets .widget-title{ font-family:"Bebas Neue",sans-serif; font-size:.95rem; letter-spacing:.08em; color:var(--on-dark); margin:0 0 12px; }
.footer-widgets ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.site-footer a{ color:#A9B2C4; text-decoration:none; font-size:.88rem; }
.site-footer a:hover{ color:var(--gold-light); }
.colophon{ font-size:.78rem; color:#6E7893; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid #21304F; padding-top:20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:900px){
  .card-row{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .site-header .wrap.header-top{ flex-direction:column; align-items:flex-start; gap:20px; }
  .site-branding{ flex-direction:column; align-items:flex-start; gap:12px; }
  .header-right{ align-items:flex-start; }
  .header-motto{ text-align:left; }
  .primary-nav ul{ gap:16px; }
  .hero{ padding-block:48px; }
  .exchange-row{ flex-direction:column; align-items:center; }
}
