@charset "UTF-8";
/* Google Fonts @import removed — was render-blocking; system font stacks below */

/* ==========================================================================
   Post 38 — Cassiopeia CHILD theme (user.css)
   Installs to media/templates/site/cassiopeia_legion38/css/user.css
   Does NOT edit stock Cassiopeia files. Does not replace parent grid.
   ========================================================================== */

:root {
  --legion-navy: #00305c;
  --legion-navy-2: #004078;
  --legion-gold: #c5a028;
  --legion-cream: #f6f3ec;
  --legion-ink: #1b1b1b;
  --legion-crimson: #b01018;
  --legion-card: #ffffff;
  --legion-link: #8a6a22;
  --legion-link-hover: #00305c;
  --legion-hero-image: url("/images/banners/post38-hall-header.jpg?v=20260909");
  --legion-brandmark: url("../images/TAL-brandmark-1C-white.png");

  --cassiopeia-color-primary: #00305c;
  --cassiopeia-color-link: #8a6a22;
  --cassiopeia-color-hover: #c5a028;
  --link-color: #8a6a22;
  --link-hover-color: #00305c;
  --hue: 210;
  --template-bg-light: #f6f3ec;
  --template-text-dark: #1b1b1b;
  --template-text-light: #f6f3ec;
  --template-link-color: #8a6a22;
  --template-special-color: #c5a028;
}

html { scroll-behavior: smooth; }

body.site,
body {
  margin: 0;
  background: var(--legion-cream);
  color: var(--legion-ink);
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.page-header h1,
.page-header h2,
.item-title {
  font-family: Oswald, "Trebuchet MS", "Arial Narrow", sans-serif;
  font-weight: 600;
  color: var(--legion-navy);
  line-height: 1.2;
}

a {
  color: var(--link-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover, a:focus { color: var(--link-hover-color); }

:focus-visible {
  outline: 2px solid var(--legion-gold);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* --------------------------------------------------------------------------
   Compact sticky navy header — 1px gold top, 2px gold bottom
   -------------------------------------------------------------------------- */
.container-header,
header.header {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 1rem;
  padding: 0.4rem 1.25rem;
  min-height: 3.5rem;
  background-color: var(--legion-navy) !important;
  background-image: none !important;
  border-top: 1px solid var(--legion-gold);
  border-bottom: 2px solid var(--legion-gold);
  color: var(--legion-cream);
  box-shadow: 0 4px 16px rgba(0, 48, 92, 0.28);
}

.container-header .grid-child {
  width: auto;
  max-width: none;
  min-width: 0;
  grid-area: unset !important;
}

.container-header .navbar-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.7rem;
  margin: 0;
  margin-inline-end: 0 !important;
  padding: 0.15rem 0;
  min-height: 2.75rem;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  color: var(--legion-cream);
  text-align: left;
}

/* Hide ceremony PHOTO used as navbar logo; keep alt via clip */
.container-header .navbar-brand img,
.container-header .brand-logo img,
header.header .brand-logo img {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.container-header .brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--legion-cream);
  max-width: none !important;
  overflow: visible;
}

.container-header .brand-logo::before {
  content: "";
  display: block;
  width: 10.4rem;
  height: 2.9rem;
  flex-shrink: 0;
  background: var(--legion-brandmark) no-repeat left center / contain;
}

.container-header .brand-logo::after {
  content: none;
}

.container-header .navbar-brand::after {
  content: "Post 38 · Floresville, Texas";
  flex: 0 0 auto;
  flex-basis: 100%;
  display: block;
  margin: 0.2rem 0 0 0;
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--legion-gold);
  line-height: 1.2;
  white-space: normal;
}

.container-header .navbar-brand:has(.site-description)::after,
.container-header .navbar-brand:has(.site-title)::after { content: none; }

.container-header .site-title {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--legion-cream) !important;
  margin: 0;
}

.container-header .site-description {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--legion-gold) !important;
}

.container-header .container-nav,
.container-header nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.container-header .mod-menu,
.container-header ul.nav,
.container-header .mod-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.container-header .mod-menu .nav-item,
.container-header ul.nav > li { margin: 0; list-style: none; }

.container-header .mod-menu a,
.container-header .mod-menu .nav-link,
.container-header ul.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  color: var(--legion-cream) !important;
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  background: transparent;
}

.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus-visible,
.container-header .mod-menu .active > a,
.container-header .mod-menu li.active > a,
.container-header .mod-menu .nav-item.active > a,
.container-header .mod-menu li.current > a {
  color: var(--legion-gold) !important;
  border-bottom-color: var(--legion-gold);
}

.legion-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  padding: 10px 11px;
  border: 1px solid var(--legion-gold);
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
}
.legion-nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--legion-gold);
}
.container-header.legion-nav-collapsible .legion-nav-toggle { display: inline-block; }
.container-header.legion-nav-collapsible .container-nav,
.container-header.legion-nav-collapsible nav {
  flex-basis: 100%;
  justify-content: stretch;
}
.container-header.legion-nav-collapsible .container-nav[hidden],
.container-header.legion-nav-collapsible nav[hidden] { display: none !important; }
.container-header.legion-nav-collapsible .mod-menu,
.container-header.legion-nav-collapsible ul.nav {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0.35rem 0 0.6rem;
}
.container-header.legion-nav-collapsible .mod-menu a { width: 100%; justify-content: flex-start; }

@media (max-width: 991.98px) {
  .container-header,
  header.header {
    flex-wrap: wrap;
  }
  .container-header .navbar-brand {
    flex: 1 1 auto;
    flex-wrap: wrap;
  }
  .container-header .navbar-brand::after {
    flex-basis: 100%;
    margin: 0.2rem 0 0 0;
    white-space: normal;
  }
  .container-header .container-nav:not([hidden]),
  .container-header nav:not([hidden]) { flex-basis: 100%; }
  .container-header .mod-menu,
  .container-header ul.nav { flex-wrap: wrap; justify-content: flex-start; }
}


/* Keep last-item dropdown (Texas Legion Times) on screen */
.container-header {
  overflow: visible;
}
.container-header .mod-menu > li,
.container-header .mod-menu > .nav-item {
  position: relative;
}
.container-header .mod-menu :where(.mod-menu__sub:not(.mod-menu__sub *)),
.container-header .mod-menu__sub {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 1080;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.3rem 0;
  background: var(--legion-navy) !important;
  border: 1px solid var(--legion-gold);
  box-shadow: 0 10px 24px rgba(0, 48, 92, 0.4);
}
.container-header .mod-menu__sub a,
.container-header .mod-menu .mod-menu__sub a,
.container-header .mod-menu .mod-menu__sub span {
  color: var(--legion-cream) !important;
  white-space: nowrap;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0.4rem 1rem;
}
.container-header .mod-menu__sub a:hover,
.container-header .mod-menu .mod-menu__sub a:hover {
  color: var(--legion-gold) !important;
  background: rgba(197, 160, 40, 0.12);
}

/* --------------------------------------------------------------------------
   Homepage hero — full width ~46vh
   -------------------------------------------------------------------------- */
body.view-featured .site-grid::before,
body.itemid-101 .site-grid::before {
  content: "For God and Country";
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 2.5rem 1.25rem;
  box-sizing: border-box;
  color: var(--legion-cream);
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  background-color: var(--legion-navy);
  background-image:
    linear-gradient(180deg, rgba(0, 48, 92, 0.78) 0%, rgba(0, 48, 92, 0.5) 42%, rgba(0, 48, 92, 0.84) 100%),
    var(--legion-hero-image),
    url("/images/banners/post38-hall-header.jpg?v=20260902b");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 var(--legion-gold), inset 0 -2px 0 var(--legion-gold);
}

body.view-featured .container-banner,
body.itemid-101 .container-banner {
  grid-column: 1 / -1;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--legion-navy);
  background-image:
    linear-gradient(180deg, rgba(0, 48, 92, 0.78) 0%, rgba(0, 48, 92, 0.5) 42%, rgba(0, 48, 92, 0.84) 100%),
    var(--legion-hero-image),
    url("/images/banners/post38-hall-header.jpg?v=20260902b");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 var(--legion-gold), inset 0 -2px 0 var(--legion-gold);
  color: var(--legion-cream);
}

body.view-featured .site-grid:has(.container-banner)::before,
body.itemid-101 .site-grid:has(.container-banner)::before {
  content: none;
  display: none;
}

body.view-featured .container-banner::after,
body.itemid-101 .container-banner::after {
  content: "For God and Country";
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

body.view-featured .mod-breadcrumbs__wrapper { margin-bottom: 0.5rem; }

/* Featured / blog cards */
.blog-featured .blog-items,
.blog-featured .items-leading,
.blog .blog-items {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 992px) {
  .blog-featured .blog-items,
  .blog-featured .items-leading,
  .blog .blog-items.columns-2,
  .blog .blog-items.columns-3,
  .blog .blog-items {
    grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  }
}

.blog-featured .blog-item,
.blog .blog-item {
  background: var(--legion-card);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 48, 92, 0.08);
  border: 1px solid rgba(0, 48, 92, 0.06);
  border-top: 3px solid var(--legion-gold);
  padding: 1.35rem 1.5rem 1.15rem;
  overflow: hidden;
}

.blog-featured .item-title,
.blog .item-title,
.blog-featured .item-title a,
.blog .item-title a {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  color: var(--legion-navy);
  margin: 0 0 0.75rem;
}
.blog-featured .item-title a:hover,
.blog .item-title a:hover { color: var(--legion-link); }

.blog-featured .item-content > p:first-of-type strong,
.com-content-article__body > p:first-of-type strong {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--legion-crimson);
}

/* Interior: white main column, navy title + gold bar */
.grid-child.container-component,
.container-component {
  background: var(--legion-card);
  padding: 1.25rem 1.5rem 2rem;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 48, 92, 0.06);
  min-width: 0;
}
body.view-featured .container-component,
body.itemid-101 .container-component { margin-top: 1.25rem; }

.page-header h1,
.page-header h2,
h1.page-title,
.com-content-article .page-header h1 {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--legion-navy);
  border-left: 4px solid var(--legion-gold);
  padding-left: 0.8rem;
  margin: 0.35rem 0 1.1rem;
}

.article-info {
  font-size: 0.85rem;
  color: #4a4a4a;
  margin: 1.25rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(197, 160, 40, 0.45);
}
.article-info a { color: var(--legion-link); }

.item-content,
.com-content-article__body,
.com-content-article {
  overflow: visible;
}
/* Only clip category cards, never article edit chrome */
body.view-category .blog-item { overflow: hidden; }
body.view-article .blog-item,
body.view-article .item-content,
body.view-article .icons {
  overflow: visible !important;
}

.item-content::after,
.com-content-article__body::after,
.com-content-article::after {
  content: "";
  display: table;
  clear: both;
}

.item-content img,
.com-content-article img,
.com-content-article__body img,
.blog-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.item-content img[style*="float: right"],
.item-content img[style*="float:right"],
.com-content-article img[style*="float: right"],
.com-content-article img[style*="float:right"] {
  max-width: min(100%, 20rem);
  margin: 0 0 1rem 1rem;
}
.item-content img[style*="float: left"],
.item-content img[style*="float:left"],
.com-content-article img[style*="float: left"],
.com-content-article img[style*="float:left"] {
  max-width: min(100%, 20rem);
  margin: 0 1rem 1rem 0;
}

@media (max-width: 640px) {
  .item-content img[style*="float"],
  .com-content-article img[style*="float"] {
    float: none !important;
    display: block;
    margin: 0 auto 1rem !important;
    max-width: 100%;
  }
}

.mod-breadcrumbs__wrapper,
nav[aria-label="Breadcrumbs"] {
  margin: 0 0 0.85rem;
  clear: both;
}

.mod-breadcrumbs,
ol.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0.35rem 0 !important;
  list-style: none;
  background: transparent !important;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #5a5346;
}
/* Joomla adds float-start on "You are here" — kills flex row; neutralize it */
.mod-breadcrumbs__here,
.mod-breadcrumbs .float-start,
.mod-breadcrumbs .float-end {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 0.35rem 0 0 !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--legion-navy);
}
.mod-breadcrumbs__item,
.breadcrumb-item {
  float: none !important;
  display: inline-flex;
  align-items: center;
}
/* Prefer one separator; suppress Bootstrap default if both fire */
.breadcrumb-item + .breadcrumb-item::before,
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
  content: "›";
  color: var(--legion-gold);
  padding: 0 0.4rem;
  font-weight: 700;
  float: none;
}
.breadcrumb-item a,
.mod-breadcrumbs a { color: var(--legion-link); text-decoration: none; }
.breadcrumb-item.active,
.mod-breadcrumbs__item.active { color: var(--legion-navy); }

/* Perf: never clip breadcrumb / module edit chrome */
.mod-breadcrumbs__wrapper,
nav[aria-label="Breadcrumbs"],
.mod-breadcrumbs,
ol.breadcrumb {
  overflow: visible !important;
  position: relative;
  z-index: 20;
}
/* Joomla logged-in edit pencils (module + article) */
.jmodedit,
a.jmodedit,
.icons,
.icon-edit,
.content-edit,
[class*="jmodedit"] {
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 1100; /* above sticky header (1040) — sitewide edit pencils */
}
/* Do not let category card overflow rules affect chrome above the grid */
body.itemid-218 .mod-breadcrumbs__wrapper,
body.itemid-218 nav[aria-label="Breadcrumbs"] {
  overflow: visible !important;
}


/* Sidebar cards */
.container-sidebar-right,
.container-sidebar-left { min-width: 0; }

.container-sidebar-right .card,
.container-sidebar-left .card,
.sidebar-right.card,
.sidebar-left.card {
  background: var(--legion-card);
  border: 1px solid rgba(0, 48, 92, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 48, 92, 0.06);
}

.container-sidebar-right .card-header,
.container-sidebar-left .card-header,
.sidebar-right .card-header {
  background: var(--legion-navy) !important;
  color: var(--legion-cream) !important;
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--legion-gold);
  padding: 0.65rem 1rem;
  margin: 0;
  border-radius: 0;
}

.container-sidebar-right .card-body,
.sidebar-right .card-body { padding: 0.9rem 1rem 1.05rem; }

.container-sidebar-right .mod-menu a,
.container-sidebar-right .nav-item a {
  color: var(--legion-navy);
  text-decoration: none;
}
.container-sidebar-right .mod-menu .active > a,
.container-sidebar-right .nav-item.active > a {
  color: var(--legion-link);
  font-weight: 700;
}

.mod-login .form-control,
.mod-login input[type="text"],
.mod-login input[type="password"] {
  border: 1px solid rgba(0, 48, 92, 0.2);
  border-radius: 3px;
}

.mod-login .btn-primary,
.mod-login button[type="submit"],
.container-sidebar-right .btn-primary {
  background: var(--legion-gold) !important;
  border-color: var(--legion-gold) !important;
  color: var(--legion-navy) !important;
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mod-login .btn-primary:hover,
.mod-login button[type="submit"]:hover {
  background: var(--legion-navy) !important;
  border-color: var(--legion-navy) !important;
  color: var(--legion-cream) !important;
}

.btn-primary {
  background: var(--legion-navy);
  border-color: var(--legion-navy);
  color: var(--legion-cream);
}
.btn-primary:hover {
  background: var(--legion-navy-2);
  border-color: var(--legion-gold);
  color: var(--legion-cream);
}

/* Footer */
.container-footer,
footer.footer,
.grid-child.container-footer {
  grid-column: 1 / -1;
  background: var(--legion-navy);
  color: var(--legion-cream);
  border-top: 2px solid var(--legion-gold);
  padding: 1.35rem 1.25rem 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}
.container-footer::before,
footer.footer::before {
  content: "American Legion Post 38";
  display: block;
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--legion-gold);
  margin-bottom: 0.45rem;
}
.container-footer a,
footer.footer a { color: var(--legion-gold); }

/* Removed body:not(:has(footer))::after — :has() on body forced expensive
   subtree checks on every page. Rely on the real footer module instead. */

/* DPCalendar */
.com_dpcalendar .com-dpcalendar-calendar,
.com-dpcalendar-calendar { overflow: auto; }

.com_dpcalendar .fc-button,
.com_dpcalendar .fc-button-primary,
.com-dpcalendar-calendar .fc-button,
.com-dpcalendar-calendar .fc-button-primary,
.dp-button,
.dp-button-action {
  background: var(--legion-navy) !important;
  border: 1px solid var(--legion-gold) !important;
  color: var(--legion-cream) !important;
  font-family: Oswald, "Trebuchet MS", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none !important;
}
.com_dpcalendar .fc-button:hover,
.com_dpcalendar .fc-button-primary:hover,
.com_dpcalendar .fc-button-active,
.com_dpcalendar .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--legion-gold) !important;
  color: var(--legion-navy) !important;
  border-color: var(--legion-gold) !important;
}
.com_dpcalendar .fc-toolbar-title,
.com-dpcalendar-calendar .fc-toolbar-title {
  color: var(--legion-navy);
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-weight: 600;
}
.com_dpcalendar .fc-event-title,
.com_dpcalendar .fc-event-title-container,
.com-dpcalendar-calendar .fc-event {
  color: var(--legion-navy);
  font-weight: 600;
}
.com_dpcalendar .fc-col-header-cell,
.com_dpcalendar .fc-daygrid-day,
.com_dpcalendar .fc-scrollgrid,
.com-dpcalendar-calendar .fc-daygrid-day-frame,
.com_dpcalendar .fc-daygrid-day { background: var(--legion-card); }
.com_dpcalendar .fc-day-today,
.com_dpcalendar .fc-day-today .fc-daygrid-day-frame {
  background: var(--legion-cream) !important;
}
.com_dpcalendar .fc-scrollgrid,
.com_dpcalendar td,
.com_dpcalendar th { border-color: rgba(0, 48, 92, 0.12); }
.com_dpcalendar .dp-calendar__title,
.com_dpcalendar .dp-filter { color: var(--legion-navy); }

.pagenavigation .btn,
.pagination .btn {
  background: var(--legion-navy);
  color: var(--legion-cream);
  border-color: var(--legion-gold);
}
.pagenavigation .btn:hover {
  background: var(--legion-gold);
  color: var(--legion-navy);
}

@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;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 575.98px) {
  .container-header { padding: 0.35rem 0.75rem; }
  .container-header .navbar-brand::after { margin-left: 0; font-size: 0.56rem; }
  .container-header .brand-logo::before { width: 8.4rem; height: 2.35rem; }
  .grid-child.container-component,
  .container-component { padding: 1rem 0.9rem 1.5rem; }
  body.view-featured .site-grid::before,
  body.itemid-101 .site-grid::before {
    min-height: 42vh;
    letter-spacing: 0.12em;
    padding: 1.5rem 0.9rem;
  }
}

/* Hide Details — Executive Committee Members category */
body.com_content .article-info:has(.category-name a[href*="executive-committee-members"]),
body.com_content .article-info:has(.category-name a[href*="Executive-Committee-Members"]) {
  display: none !important;
}


/* === EC Members category cards (itemid-218) === */
/* Simple equal card grid — avoid absolute stretch-links / flex order (caused stacking) */
body.itemid-218 .page-header h1,
body.itemid-218 h1.page-title {
  margin-bottom: 1.25rem;
}

body.itemid-218.view-category .com-content-category-blog__items.blog-items,
body.itemid-218.view-category .blog-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  align-items: stretch !important; /* equal card heights in each row */
  grid-auto-rows: 1fr !important;
}

/* Kill sitewide blog auto-fit on this page */
/* Avoid :has() here — explicit 3-col already set above */

body.itemid-218.view-category .com-content-category-blog__item.blog-item,
body.itemid-218.view-category .blog-item {
  display: flex !important;
  flex-direction: column !important;
  position: static !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--legion-card, #fff);
  border: 1px solid rgba(0, 48, 92, 0.12);
  border-top: 3px solid var(--legion-gold, #c4a35a);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 48, 92, 0.08);
  overflow: hidden !important;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

body.itemid-218.view-category .blog-item .item-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 0.9rem 0.9rem 1rem;
  overflow: hidden !important;
  position: static !important;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

/* Hide non-card chrome — do NOT force-hide lightboxes (breaks photo zoom :target) */
body.itemid-218.view-category .blog-item .item-content > style,
body.itemid-218.view-category .blog-item .wilco-shadowbox,
body.itemid-218.view-category .blog-item .article-info,
body.itemid-218.view-category .blog-item .icons,
body.itemid-218.view-category .blog-item .readmore,
body.itemid-218.view-category .blog-item .wilco-spotlight__aside,
body.itemid-218.view-category .blog-item .wilco-spotlight__gallery,
body.itemid-218.view-category .blog-item .wilco-spotlight__clear,
body.itemid-218.view-category .blog-item span#wilco-sp-lb-close {
  display: none !important;
}

/* Lightboxes: hidden until targeted; then full-screen above cards */
body.itemid-218.view-category .blog-item .wilco-sp-lb {
  display: none;
}
body.itemid-218.view-category .blog-item .wilco-sp-lb:target {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
}

/* Title */
body.itemid-218.view-category .blog-item .page-header {
  margin: 0.65rem 0 0.25rem;
  padding: 0;
  flex: 0 0 auto;
  min-height: 2.6em; /* room for two-line names */
}
body.itemid-218.view-category .blog-item .page-header h2,
body.itemid-218.view-category .blog-item .page-header h2 a {
  margin: 0;
  border: 0 !important;
  padding: 0 !important;
  font-family: Oswald, "Trebuchet MS", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  line-height: 1.3 !important;
  color: var(--legion-navy, #00305c) !important;
  text-decoration: none;
}
body.itemid-218.view-category .blog-item .page-header h2 a:hover {
  color: var(--legion-link, #8a6a2f) !important;
}

/* Photo */
body.itemid-218.view-category .blog-item .wilco-spotlight {
  max-width: none !important;
  margin: 0 !important;
  position: static !important;
  flex: 0 0 auto;
  width: 100%;
}
body.itemid-218.view-category .blog-item .wilco-spotlight__lead {
  margin: 0 !important;
  display: block !important;
}
body.itemid-218.view-category .blog-item .wilco-spotlight__lead::after {
  display: none !important;
}
body.itemid-218.view-category .blog-item .wilco-spotlight__lead > .wilco-sp-thumb {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  position: static !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}
body.itemid-218.view-category .blog-item .wilco-spotlight__lead > .wilco-sp-thumb img,
body.itemid-218.view-category .blog-item .wilco-sp-thumb img {
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  transform: none !important;
  max-width: 100% !important;
}
body.itemid-218.view-category .blog-item .wilco-sp-thumb:hover img {
  transform: none !important;
  box-shadow: none !important;
}

/* Position line only; hide duplicate name + bio paragraphs */
body.itemid-218.view-category .blog-item .wilco-spotlight__lead > h2,
body.itemid-218.view-category .blog-item .wilco-spotlight__lead > p:not(.wilco-spotlight__meta),
body.itemid-218.view-category .blog-item .wilco-spotlight > p {
  display: none !important;
}
body.itemid-218.view-category .blog-item .wilco-spotlight__meta {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: 2.6em; /* equalize 1–2 line metas */
  margin: 0.35rem 0 0 !important;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: #8a6a2f !important;
  line-height: 1.35 !important;
}

body.itemid-218.view-category .blog-item .item-content > a.ec-card-bio,
body.itemid-218.view-category .blog-item .ec-card-bio {
  display: inline-block;
  margin-top: auto !important; /* pin bio link to bottom */
  font-family: Oswald, "Trebuchet MS", sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--legion-link, #8a6a2f);
  font-weight: 600 !important;
  text-decoration: none;
}

/* Hide leftover shadow-box headings / paragraphs that TinyMCE may leave visible on cards */
body.itemid-218.view-category .blog-item .wilco-shadowbox,
body.itemid-218.view-category .blog-item .wilco-shadowbox *,
body.itemid-218.view-category .blog-item h3,
body.itemid-218.view-category .blog-item .item-content > h3 {
  display: none !important;
}

@media (max-width: 991px) {
  body.itemid-218.view-category .com-content-category-blog__items.blog-items,
  body.itemid-218.view-category .blog-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  body.itemid-218.view-category .com-content-category-blog__items.blog-items,
  body.itemid-218.view-category .blog-items {
    grid-template-columns: 1fr !important;
  }
}

/* === Shared EC spotlight + shadow box (single copy; do not inline in articles) === */
.wilco-spotlight, .wilco-spotlight__lead, .wilco-shadowbox, .com-content-article__body {
  overflow: visible;
}
.wilco-spotlight {
  max-width: 860px;
  margin: 0 auto;
  color: #1b1b1b;
  line-height: 1.65;
  position: relative;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wilco-spotlight__lead {
  display: block;
  margin: 0 0 1.25rem 0;
}
.wilco-spotlight__lead::after {
  content: "";
  display: table;
  clear: both;
}
.wilco-spotlight__lead > .wilco-sp-thumb {
  float: left;
  width: min(280px, 42%);
  margin: 0 12pt 12pt 0;
}
.wilco-spotlight h2 {
  margin: 0 0 0.35rem 0;
  color: #0b1f33;
  font-family: Oswald, "Trebuchet MS", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.55rem;
}
.wilco-spotlight__meta {
  margin: 0 0 0.85rem 0;
  color: #8a6a2f;
  font-weight: 600;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wilco-spotlight p { margin: 0 0 1rem 0; }

.wilco-spotlight__aside {
  display: block;
  margin: 0 0 1.25rem 0;
}
.wilco-spotlight__aside::after {
  content: "";
  display: table;
  clear: both;
}
.wilco-spotlight__aside figure {
  float: left;
  width: min(240px, 40%);
  margin: 0 12pt 12pt 0;
}
.wilco-spotlight__aside--flip figure {
  float: right;
  margin: 0 0 12pt 12pt;
}
.wilco-spotlight__aside .wilco-sp-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.wilco-spotlight__aside figcaption {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #4a4a4a;
}
.wilco-spotlight__gallery {
  display: block;
  clear: both;
  margin: 1.25rem 0 1.5rem;
}
.wilco-spotlight__gallery::after {
  content: "";
  display: table;
  clear: both;
}
.wilco-spotlight__gallery figure {
  float: left;
  width: min(320px, 48%);
  margin: 0 12pt 12pt 0;
}
.wilco-spotlight__gallery figcaption {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #4a4a4a;
}
.wilco-spotlight__gallery .wilco-sp-thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.wilco-spotlight__clear {
  clear: both;
  height: 0;
}
.wilco-sp-lb-close-target,
span#wilco-sp-lb-close {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}


.wilco-sp-thumb {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  z-index: 1;
  text-decoration: none;
  overflow: visible;
}
.wilco-sp-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 2px solid #c4a35a;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: center center;
  background: #0b1f33;
}
.wilco-sp-thumb:hover { z-index: 20; }
.wilco-sp-thumb:hover img {
  transform: scale(1.55);
  box-shadow: 0 16px 40px rgba(11,31,51,0.45);
  border-color: #c4a35a;
}

.wilco-sp-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.wilco-sp-lb:target { display: flex; }
.wilco-sp-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,31,51,.78);
  cursor: zoom-out;
  border: 0;
  text-indent: -9999px;
  overflow: hidden;
}
.wilco-sp-lb__panel {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 960px);
  max-height: 92vh;
  margin: 0 auto;
}
.wilco-sp-lb__panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid #c4a35a;
  box-shadow: 0 16px 48px rgba(11,31,51,.55);
  background: #0b1f33;
}
.wilco-sp-lb__close {
  position: absolute;
  top: -0.65rem;
  right: -0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #0b1f33;
  color: #fff !important;
  border: 2px solid #c4a35a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  font-weight: 700;
  z-index: 2;
}
.wilco-sp-lb__close:hover,
.wilco-sp-lb__close:focus {
  background: #12263a;
  color: #c4a35a !important;
}

@media (max-width: 700px) {
  .wilco-spotlight__lead > .wilco-sp-thumb,
  .wilco-spotlight__aside figure,
  .wilco-spotlight__aside--flip figure,
  .wilco-spotlight__gallery figure {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 0 0 12pt 0;
  }
  .wilco-sp-thumb:hover img { transform: scale(1.08); }
}
@media (hover: none) {
  .wilco-sp-thumb:hover img { transform: none; box-shadow: none; }
}

.wilco-shadowbox {
  clear: both;
  margin: 1.75rem 0 0.5rem 0;
  position: relative;
  z-index: 1;
}
.wilco-shadowbox__frame {
  background: linear-gradient(145deg, #3a2a18 0%, #1a120a 40%, #2c1e10 100%);
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(11,31,51,0.35), inset 0 0 0 1px rgba(196,163,90,0.35);
}
.wilco-shadowbox__inner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,163,90,0.12), transparent 55%),
    linear-gradient(180deg, #0f2438 0%, #0b1f33 55%, #071522 100%);
  border: 2px solid #c4a35a;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.45);
  padding: 1.15rem 1.25rem 1rem;
  color: #f6f3ec;
  text-align: center;
}
.wilco-shadowbox__header {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 20px;
  color: #c4a35a;
  margin: 0 0 0.85rem 0;
}
.wilco-shadowbox__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
  text-align: center;
}
.wilco-shadowbox__col {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(196,163,90,0.45);
  border-radius: 3px;
  padding: 0.85rem 0.9rem 0.95rem;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.25);
  min-width: 0;
}
.wilco-shadowbox__col--rank { text-align: center; }
.wilco-shadowbox__col--awards {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wilco-shadowbox__rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.wilco-shadowbox__chevrons {
  display: block;
  width: 110px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.wilco-shadowbox__grade {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6f3ec;
  margin-top: 0.15rem;
}
.wilco-shadowbox__pay {
  color: #c4a35a;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.wilco-shadowbox__divider {
  height: 1px;
  margin: 0.75rem 0;
  background: linear-gradient(90deg, transparent, #c4a35a, transparent);
}
.wilco-shadowbox__mos-codes {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: #c4a35a;
  margin: 0 0 0.2rem 0;
}
.wilco-shadowbox__mos-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: #f6f3ec;
  margin: 0 0 0.55rem 0;
}
.wilco-shadowbox__mos-note {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #d7d2c6;
  text-align: left;
}
.wilco-shadowbox__mos-note strong { color: #e6c97a; }
.wilco-shadowbox__awards-title {
  font-family: Oswald, "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #c4a35a;
  margin: 0 0 0.65rem 0;
}
.wilco-shadowbox__footer {
  margin-top: 0.95rem;
  font-family: Oswald, "Trebuchet MS", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #c4a35a;
}
.wilco-shadowbox__rack {
  margin: 0.55rem 0 0.7rem;
  max-width: none;
}
.wilco-shadowbox__rack img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
@media (max-width: 700px) {
  .wilco-shadowbox__cols { grid-template-columns: 1fr; }
}

/* EC placeholder cards */
body.itemid-218.view-category .blog-item .wilco-spotlight--placeholder .wilco-sp-thumb img {
  filter: saturate(0.85);
  object-fit: cover;
}
