/*******************
**     NOTES      **
********************
- Do these styles need to be added to the print stylesheet?
*/



/**********************
**     VARIABLES     **
**********************/
:root {
  --white-smoke-transparent-rgba: rgba(224, 224, 224, 0.35);
  /* Roughly equivalent to White Smoke #F4F4F4 when on white background */
  /* When --white-smoke-rgba is layered on itself (on a white background) it's roughly equivalent to #EFEFEF */
  --pale-smoke-rgba: rgba(217, 217, 214, 1);
  /* Equivalent to Pale Smoke #D9D9D6 */
  --faux-blue: #0072c8;
  /* This shade of True Blue is contrast accessible against White Smoke */
  --faux-blue-deux: #0060ae;
  /* This shade of True Blue is contrast accessible against Pale Smoke #D9D9D6 */
  /* At one point we had a lighter shade of True Blue (#006dc4) which worked on doubly layered white-smoke-rgba elements, but 3 shades of link colors was too much to slip by. */
}

/**********************
**   LEGACY STYLES   **
**********************/

/**********************************
**  vimeo  Might not be needed?  **
**********************************/
.forvis-vimeo-embed {
  margin: 2rem 0 4rem;
  filter: drop-shadow(0 0 0.4rem rgba(0, 0, 0, 0.425));
}


/**************************
**     Screen Reader     **
**************************/
.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}


/**********************
**    Blockquotes    **
**********************/

/* Can also be used with the 'callout' class without the semantic
  associations of blockquote */

blockquote,
.fr-view blockquote,
/* This selector is to override a Froala editor style */
.article-content .fr-view blockquote,
/* See above, needed another more specific for articles */
div.callout,
.callout {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem !important;
  /* Important is needed to override Froala styles */
  border-left: 4px solid #0072ce !important;
  /* Important is needed to override Froala styles */
  background-color: var(--white-smoke-transparent-rgba);
  line-height: 1.6;
  color: #464b4b !important;
  /* Important is needed to override Froala styles */
}

.page-content blockquote p:first-child,
div.callout p:first-child {
  margin-top: 0;
}

.page-content blockquote p:last-child,
div.callout p:last-child {
  margin-bottom: 0;
}

/* To not overwrite blockquote styles on other widgets */
.collage blockquote {
  background-color: inherit;
  border: inherit;
  color: inherit;
}

/* Setting link color to be accessible against "White Smoke" background */
blockquote a,
.article-content .fr-view blockquote a,
/* This selector is to override a Froala editor style */
div.callout a,
.callout a {
  color: var(--faux-blue);
}

/* In instances where blockquotes layer (or are embeded in an accordion), a darker link color is needed again */
blockquote blockquote a,
.callout .callout a,
.callout blockquote a,
.article-content .fr-view .callout blockquote a,
.fm-accordion .callout a,
.fm-accordion blockquote a {
  color: var(--faux-blue-deux);
}


/*********************
**    Figcaption    **
*********************/

/* This is the same style as Froala's .fr-view .fr-img-caption .fr-img-wrap>span
  for continuity between captions
*/
figcaption {
  margin: auto;
  padding: 5px 5px 10px;
  font-size: 14px;
  font-weight: initial;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-opacity: .9;
  -moz-opacity: .9;
  opacity: .9;
  width: 100%;
  text-align: center;
}

/* The page-content style was making this nto 100% wide */
.fr-img-wrap span.fr-inner {
  max-inline-size: 100%;
}

/* Anytime a link is used in an image caption froala breaks to a new line, this allows for inline links */
.fr-view .fr-img-caption .fr-img-wrap a {
  display: inline-block;
}


/*******************
**     Tables     **
*******************/

.table-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.table-scrollable {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.table-scrollable::-webkit-scrollbar {
  display: none;
}

.page-content table,
.event-detail table {
  overflow: visible !important;
  min-width: 250px;
  margin-bottom: 1.25rem;
}

.page-content table th,
.page-content table td,
.event-detail table th,
.event-detail table td {
  vertical-align: top;
}

.page-content table td p:first-child,
.page-content table th p:first-child,
.event-detail table td p:first-child,
.event-detail table th p:first-child {
  margin-top: 0;
}

.page-content table td p:last-child,
.page-content table th p:last-child,
.event-detail table td p:last-child,
.event-detail table th p:last-child {
  margin-bottom: 0;
}

.page-content table tr th,
.page-content table tr td,
.event-detail table tr th,
.event-detail table tr td {
  padding: .5rem;
  border-color: #d9d9d6;
  border-width: 2px;
  line-height: 1.35;
}

.page-content table tr td:first-child,
.page-content table.table-striped tr td:first-child,
.event-detail table tr td:first-child,
.event-detail table.table-striped tr td:first-child {
  border-left-color: transparent;
}

.page-content table tr td:last-child,
.page-content table.table-striped tr td:last-child,
.event-detail table tr td:last-child,
.event-detail table.table-striped tr td:last-child {
  border-right-color: transparent;
}

.page-content table td strong,
.event-detail table td strong {
  font-weight: bold;
}

.page-content table thead th,
.event-detail table thead th {
  background-color: #171c8f;
  color: #FFFFFF;
  font-weight: 500;
  border-color: #ffffff;
  vertical-align: middle;
}

.page-content table thead th:first-child,
.page-content table.table-striped thead th:first-child,
.event-detail table thead th:first-child,
.event-detail table.table-striped thead th:first-child {
  border-left: transparent;
}

.page-content table thead th:last-child,
.page-content table.table-striped thead th:last-child,
.event-detail table thead th:last-child,
.event-detail table.table-striped thead th:last-child {
  border-right: transparent;
}

.page-content table thead tr.subhead th,
.event-detail table thead tr.subhead th {
  background-color: #727578;
  color: #ffffff;
  font-weight: 500;
  border-color: inherit;
}

.page-content table ul,
.page-content table ol,
.event-detail table ul,
.event-detail table ol {
  padding-left: 1.5rem;
}

/* Table Striped Alternative Styling */

.page-content table tr th,
.page-content table.table-striped tr td,
.event-detail table tr th,
.event-detail table.table-striped tr td {
  border-color: #ffffff;
}

.page-content table.table-striped thead th,
.event-detail table.table-striped thead th {
  background-color: #0072ce;
}

.page-content table.table-striped tr,
.event-detail table.table-striped tr {
  background-color: #d9d9d6;
}

.page-content table.table-striped tr a,
.event-detail table.table-striped tr a {
  color: var(--faux-blue-deux)
}

.page-content table.table-striped tr:nth-child(even),
.event-detail table.table-striped tr:nth-child(even) {
  background-color: #f4f4f4;
}

.page-content table.table-striped tr:nth-child(even) a,
.event-detail table.table-striped tr:nth-child(even) a {
  color: var(--faux-blue);
}

/* Darken link colors for accessibility when displayed in an accordion or callout box */
.fm-accordion table tr td a,
blockquote table tr td a,
.callout table tr td a {
  color: var(--faux-blue);
}

/* Table helper classes */

/* Remove borders from the table */
table.borderless>thead>tr>th,
table.borderless>thead>tr>td,
table.borderless>tbody>tr>th,
table.borderless>tbody>tr>td,
table.borderless>tfoot>tr>th,
table.borderless>tfoot>tr>td {
  border: none;
}


/********************
** Footnotes
********************/
/*
 * CSS specific to [Legacy] Footnotes module.
*
* Thanks to binford2k@lug.wsu.edu for this tip and drinkypoo
* for the question leading up to it. http://drupal.org/node/80538
*/

/* Add empty space before footnotes and a black line on top. */
.footnotes {
  clear: both;
  margin-top: 4rem;
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #464b4b;
}

/*
  Make the footnote a supertext^1
*/
.see-footnote {
  vertical-align: top;
  position: relative;
  top: -0.25em;
  font-size: 0.9em;
}

/* Hide the bullet of the UL list of footnotes */

ul.footnotes {
  list-style-type: none;
  /* margin-left: 0; Removed so it appears in line with article content */
  padding-left: 0;
  font-style: italic;
}

ul.footnotes li {
  margin-left: 0.5rem;
  list-style-type: none;
  background: none;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  /* Garland theme sets a bullet via background image, this must be unset! See bug 861634 */
}

/* Move the footnote number outside of the margin for footnote text (hanging indent) */
ul.footnotes {
  /* This is apparently very needed for the "position: absolute;" below to work correctly */
  position: relative;
}

.footnotes .footnote-label {
  position: absolute;
  left: 0;
  /* z-index: 2; */
}

/* Highlight the target footnote (or ref number, if a backlink was used) when user clicks a footnote. */
.see-footnote:target,
.footnotes .footnote:target {
  background-color: #eee;
}

.see-footnote:target {
  border: solid 1px #aaa;
}

/* Note: This CSS has a minor bug on all versions of IE in that the footnote numbers
are aligned with the absolute bottom of their space, thus being a couple of pixels
lower than their corresponding line of text. IE5.5 has a serious bug in that the numbers
are not shifted left at all, thus being garbled together with the start of their text. */

/*
  Make the multiple backlinks a supertext^1
*/
.footnotes .footnote-multi {
  vertical-align: top;
  position: relative;
  top: -0.1rem;
  font-size: 0.75rem;
}

/*
 * Textile Footnotes
 */
/* First footnote */
#fn1 {
  border-top: 1px solid #25282a;
  margin-top: 3em;
}

.footnote {
  font-size: 0.9em;
}

/* Additions specifically for this instance of Kentico */
.article-content ul.footnotes {
  padding-left: 1rem;
}



/*****************************
/*       Accordions          *
/****************************/

/* .hidden {
    display:none;
  } */

.fm-accordion {
  max-width: 62.5rem;
  margin: auto;
}

.fm-accordion .fm-accordion-header {
  margin-top: 1rem !important;
  margin-bottom: 1rem;
}

.fm-accordion .fm-accordion-header button {
  width: 100%;
  justify-content: space-between;
  border-radius: 0;
  background-color: var(--white-smoke-transparent-rgba);
  color: #464b4b;
  border: none;
  font-size: clamp(23px, 1.03vw + 19.13px, 34px);
  font-weight: 300;
  line-height: clamp(37px, 1.5vw + 31.37px, 53px);
  padding: 15px 25px;
  text-align: left;
  transition: background-color .2s ease-in-out, box-shadow .2s ease-in-out;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.fm-accordion .fm-accordion-header button:hover {
  background-color: var(--pale-smoke-rgba);
  box-shadow: inset 0 -3px #171c8f;
}

.fm-accordion .fm-accordion-header button[aria-expanded="true"] {
  background-color: var(--pale-smoke-rgba);
  /* box-shadow: none; */
}

.accordion-panel {
  background-color: var(--white-smoke-transparent-rgba);
  padding: 25px;
  margin-bottom: 1rem;
  margin-top: -1rem;
  /* border-bottom: 3px solid #0072ce; */
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
  color: #464b4b;
  max-height: 500px;
  transition: all 0.25s ease-in-out;
  overflow: hidden;
  visibility: visible;
  /* box-shadow: inset 0 6px 5px -5px rgba(0, 0, 0, 0.6); */
}

.accordion-panel *:first-child {
  margin-top: 0px !important;
}

.accordion-panel *:last-child {
  margin-bottom: 0px !important;
}

.accordion-panel.hidden {
  max-height: 0px;
  padding: 0px 25px;
  border-bottom: 0;
  visibility: hidden;
}


.fm-accordion .fm-accordion-header button::after {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-bottom: 3px solid #171c8f;
  border-right: 3px solid #171c8f;
  rotate: 45deg;
  transition: all 0.25s ease-in-out;
  position: relative;
  top: -3px;
}

.fm-accordion .fm-accordion-header button[aria-expanded="true"]::after {
  rotate: 225deg;
  top: 3px;
}

/* Slighly darker link color against White Smoke background color for accessibility */
.fm-accordion a {
  color: var(--faux-blue);
}


/**********************************
/*    .fmal = FORVIS Arrow Link    *
/*********************************/

.fmal {
  position: relative;
  font-weight: 500;
  color: #171c8f;
  transition: .1s ease-in-out;
}

.fmal::after {
  content: "";
  border-right: 2px solid #171c8f;
  border-bottom: 2px solid #171c8f;
  display: block;
  height: 0.9375rem;
  width: 0.9375rem;
  position: absolute;
  right: -1.5rem;
  bottom: 0.25rem;
  transform: rotate(-45deg);
  transition: ease-in-out 0.175s;
}

.fmal:hover {
  color: var(--faux-blue-deux);
  text-decoration-thickness: 2px;
}

.fmal:hover::after {
  border-color: var(--faux-blue-deux);
  right: -2rem;
}


/*****************************
/*        Utilities          *
/****************************/

@media screen and (min-width: 992px) {
  .two-col-list {
    column-count: 2;
    column-gap: 3rem;
  }
}

/* Froala removes this style when inserted inline */
.w-fit-content {
  width: fit-content !important;
}

.skew {
  transform: skew(340deg);
}

.unskew {
  transform: skew(-340deg);
}

.faux-blue {
  color: var(--faux-blue) !important;
}

.faux-blue-deux {
  color: var(--faux-blue-deux) !important;
}


/*****************************
/*       SVG Helpers         *
/****************************/

.svg-icon-white {
  filter: brightness(0) saturate(100%) invert(100%) sepia(99%) saturate(0%) hue-rotate(133deg);
}


/* ═══════════════════════════════════════════════════════════════
   1. SHARED: Reduced-Motion Preferences
   ───────────────────────────────────────────────────────────────
   Respects OS-level motion settings (e.g., "Reduce motion" on
   macOS/iOS, "Show animations" off on Windows).
   All scroll-triggered animations are disabled instantly.
   Add selectors here as new animated modules are introduced.
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

  /* ITL staggered fade-in */
  .itl--animate-ready .itl__row {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

    /* Stats section */
  .stats--animate-ready .stat-number,
  .stats--animate-ready .stat-label {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Standalone count-up elements */
  [data-count-to] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   2. COMPONENT: .itl — Icon Table Layout (v2)
   ───────────────────────────────────────────────────────────────
   A vertical list of icon + text rows with a left border accent.

   Supports two icon approaches:
     LEGACY  → <img class="itl__icon" src="...svg" aria-hidden="true" alt="">
     NEW     → <i class="fa-sharp fa-thin fa-icon-name" aria-hidden="true"></i>

   Both can coexist during migration. No inline styles needed
   for the new version — all theming via custom properties.

   HTML structure:
   <ul class="itl">
     <li class="itl__row">
       <div class="itl__icon-wrap">
         <i class="fa-sharp fa-thin fa-icon-name" aria-hidden="true"></i>
       </div>
       <div class="itl__text">
         <div class="w-100">
           <strong>Bold lead-in:</strong> Supporting text.
         </div>
       </div>
     </li>
   </ul>
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
.itl {
  --itl-border-color: #5d93cd;
  --itl-border-width: 7px;
  --itl-icon-color: #464b4b;
  --itl-icon-size: 2rem;
  --itl-divider-color: #b1b3b3;

  /* Animation tuning */
  --itl-stagger: 100ms;
  --itl-duration: 0.5s;
  --itl-ease: ease;
  --itl-translate-y: 20px;

  width: 100%;
  padding-left: 0 !important;
}

/* ── Row ── */
.itl__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding: 5px 0;
  list-style-type: none;
  border-bottom: 1px solid var(--itl-divider-color);
}

.itl__row:last-child {
  border-bottom: 0;
}

/* ── Icon Container ── */
.itl__icon-wrap {
  width: 60px;
  min-height: 55px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0 !important;
}

/* ── Legacy: SVG / IMG Icons ── */
.itl__icon {
  max-height: 40px;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── New: FontAwesome Icons ── */
.itl__icon-wrap > i {
  font-size: var(--itl-icon-size);
  color: var(--itl-icon-color);
  line-height: 1;
}

/* ── Text Block ── */
.itl__text {
  width: calc(100% - 87px);
  padding-left: 20px;
  border-left: var(--itl-border-width) solid var(--itl-border-color);
  margin: 10px 0 !important;
  min-height: 45px;
  display: flex;
  align-items: center;
}

/* ── Desktop (≥ 768px) ── */
@media (min-width: 768px) {
  .itl {
    --itl-icon-size: 2.25rem;
  }

  .itl__icon-wrap {
    min-height: 65px;
    width: 100px;
    justify-content: center;
  }

  .itl__icon,
  .itl img.itl__icon {
    max-height: 45px;
  }

  .itl__text {
    width: calc(100% - 127px);
  }
}

/* ── Animation: Staggered Fade-In-Up (per row) ──────────────────────────
   Gated by .itl--animate-ready (added by JS).
   If JS fails, content is fully visible — progressive enhancement.
   Stagger delay per row is driven by --itl-index (set by JS
   dynamically at trigger time, not at init).
   ──────────────────────────────────────────────────────────── */

.itl--animate-ready .itl__row {
  opacity: 0;
  transform: translateY(var(--itl-translate-y));
  transition:
    opacity var(--itl-duration) var(--itl-ease),
    transform var(--itl-duration) var(--itl-ease);
  transition-delay: calc(var(--itl-index, 0) * var(--itl-stagger));
}

.itl--animate-ready .itl__row.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   3. COMPONENT: .stats-section — Stats Grid with Count-Up
   ───────────────────────────────────────────────────────────────
   A responsive grid of stat cards, each with a large animated
   number and a descriptive label that fades in after the number.

   Progressive enhancement:
   - HTML contains the final display value (e.g., "33%")
   - JS replaces with "0%" and animates up on scroll
   - If JS fails, user sees the correct static value

   HTML structure:
   <section class="stats-section">
     <div class="stats-grid">
       <div class="stat">
         <div class="stat-number"
              data-count-to="33"
              data-count-suffix="%">33%</div>
         <p class="stat-label">Description text here</p>
       </div>
     </div>
   </section>

   Optional data attributes on .stat-number:
     data-count-to="150"          (required for animation) Target number
     data-count-duration="1200"   (optional) Animation duration in ms
     data-count-prefix="$"        (optional) Prepended to display
     data-count-suffix="%"        (optional) Appended to display
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
.stats-section {
  --stats-columns: 3;
  --stats-number-size: 3.5rem;
  --stats-number-weight: 500;
  --stats-number-color: inherit;
  --stats-number-duration: 400ms;
  --stats-label-duration: 500ms;
}

/* ── Grid Layout ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(var(--stats-columns), 1fr);
  }
}

/* ── Number ── */
.stat-number {
  font-size: var(--stats-number-size);
  font-weight: var(--stats-number-weight);
  color: var(--stats-number-color);
}

/* ── Label ── */
p.stat-label {
  line-height: 1.5;
}

/* ── Animation: Number Fade-In ───────────────────────────────
   Gated by .stats--animate-ready (added by JS).
   If JS fails, content is fully visible — progressive enhancement.
   The .is-visible class is added by JS with coordinated timing
   (stagger on desktop, per-item on mobile).
   ──────────────────────────────────────────────────────────── */

.stats--animate-ready .stat-number {
  opacity: 0;
  transition: opacity var(--stats-number-duration) ease;
}

.stats--animate-ready .stat-number.is-visible {
  opacity: 1;
}

/* ── Animation: Label Slide-Up ── */

.stats--animate-ready .stat-label {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--stats-label-duration) ease,
    transform var(--stats-label-duration) ease;
}

.stats--animate-ready .stat-label.is-visible {
  opacity: 1;
  transform: translateY(0);
}
