/* Font imports - editorial, readable, and freely hosted */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;700&display=swap');

@media screen {
/*****************************************************
PAGE SETUP & CUSTOMIZATION

👉 Want to customize your site's colors?
   See guides/customizing-colors.md for quick changes
   See guides/using-themes.md to create a complete theme
*****************************************************/

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

  :root {
  /* ===== BRAND KIT: UNM EDITORIAL ===== */
  --unm-cherry: #ba0c2f;
  --unm-turquoise: #007a86;
  --unm-silver: #a7a8aa;
  --unm-lobo-gray: #63666a;
  --unm-high-noon: #ffc600;
  --unm-sandia-sunset: #ed8b00;
  --unm-terra: #c05131;
  --unm-mesa: #d6a461;
  --unm-green-chile: #a8aa19;
  --unm-deep-dusk: #8a387c;

  --ink: #171412;
  --ink-soft: #3f3a36;
  --paper: #fbf8f1;
  --paper-warm: #f3eadb;
  --paper-cool: #e8f1f1;
  --rule: #211f1d;
  --hairline: rgba(23, 20, 18, 0.16);

  /* ===== SEMANTIC COLOR SYSTEM ===== */
  /* Backgrounds */
  --bg-page: var(--paper);
  --bg-card: #fffdf8;
  --bg-accent: var(--paper-warm);
  --bg-code: #efe7d7;
  --bg-nav: var(--unm-cherry);

  /* Text */
  --text-body: var(--ink);
  --text-on-dark: #fffaf0;
  --text-muted: var(--unm-lobo-gray);

  /* Accents & Interactive */
  --accent-primary: var(--unm-cherry);
  --accent-secondary: var(--unm-turquoise);
  --accent-pop: var(--unm-high-noon);
  --accent-warm: var(--unm-terra);
  --accent-border: var(--rule);
  --interactive-hover: var(--unm-turquoise);

  /* Status colors */
  --success: #28a745;
  --warning: #ffc107;
  --warning-bg: #fff3cd;
  --error: #dc3545;
  --info: var(--unm-turquoise);

  /* Heading colors — override these in themes to change heading hierarchy */
  --text-h1: var(--ink);
  --text-h2: var(--ink);
  --text-h3: var(--ink-soft);
  --text-h4: var(--ink);
  --text-h5: var(--unm-cherry);

  /* Utility */
  --overlay-dark: rgba(0, 0, 0, 0.8);
  --white: #ffffff;
  --border-light: var(--hairline);
  --border-on-dark: rgba(255, 255, 255, 0.2); /* Borders/dividers on dark backgrounds */
  --accent-primary-dark: #8b001c;              /* Darker accent for active/selected states */

  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(23, 20, 18, 0.18);
  --shadow-md: 0 10px 24px rgba(23, 20, 18, 0.08);
  --shadow-lg: 0 20px 50px rgba(23, 20, 18, 0.14);
  --shadow-hover: 0 16px 32px color-mix(in srgb, var(--unm-turquoise) 22%, transparent);

  /* Fonts */
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-mono: 'Fira Mono', 'Consolas', 'Menlo', monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 1s ease-in-out;

  /* Footer */
  --bg-footer: var(--ink);
  --bg-footer-bottom: #070606;
  --text-footer-link: #fffaf0;
  --text-footer-bottom: var(--unm-silver);
}


html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image:
    linear-gradient(rgba(23, 20, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 18, 0.025) 1px, transparent 1px);
  background-size: 100% 1.85rem, 4.75rem 100%;
}

.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*
  Essay layout uses normal block flow so floated figures can wrap text.
  Full-bleed components use viewport breakout rules below instead of grid lines.
*/
.page-wrap .container {
  display: block;
  width: min(48rem, calc(100% - 2 * var(--spacing-sm)));
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.page-wrap .container > * {
  max-width: 100%;
}

/* Wide layout — used by _layouts/wide.html for full-bleed pages like the directory */
.page-wrap--wide .container {
  display: block;
  width: auto;
  max-width: none;
  padding: var(--spacing-md) 2%;
}

/* Legacy container used by unm-base.html layout and site nav */
.xan-container {
  max-width: 80rem;
  margin: 0 auto;
  clear: both;
}

iframe {
  border: 0;
  width: 100%;
  height: 33vh;
}

/* Used in map-orig.html to hide a Google Sheets sheetrock div */
#sheetrock {
  display: none;
}


/*****************************************************
SECTION BACKGROUNDS - Subtle visual rhythm
*****************************************************/

/* Alternating section backgrounds for visual hierarchy - full width */
.section-alt {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background:
    linear-gradient(90deg, var(--unm-turquoise) 0 0.55rem, transparent 0.55rem),
    var(--bg-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--spacing-xl) max(var(--spacing-sm), calc(50% - 24rem));
}

.section-alt h2:first-child {
  margin-top: 0;
}

/* Warm golden section background - for special/whimsical moments */
.section-warm {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--unm-high-noon) 20%, transparent) 0 25%, transparent 25% 100%),
    var(--bg-accent);
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--hairline);
  padding: var(--spacing-xl) max(var(--spacing-sm), calc(50% - 24rem));
}

.section-warm h2:first-child {
  margin-top: 0;
}

/* Accent border on left side - modern touch */
.section-accent {
  border-left: 6px solid var(--accent-primary);
  padding-left: var(--spacing-lg);
  margin-left: var(--spacing-md);
}

/* Two-column layout utility */
.two-columns {
  column-count: 2;
  column-gap: var(--spacing-lg);
  list-style: none;
  padding-left: 0;
  margin-top: var(--spacing-lg);
}

.two-columns li {
  break-inside: avoid;
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
  .two-columns {
    column-count: 1;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .essay-pagination {
    grid-template-columns: 1fr;
  }

  .essay-pagination__item--empty {
    display: none;
  }

  .essay-pagination__item--next {
    text-align: left;
  }

  .essay-pagination__item--next .essay-pagination__label {
    align-self: flex-start;
  }

  .directory-tools {
    justify-content: flex-start;
  }

  .essay-category-section__header {
    display: block;
  }

  .compact-essay a {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .compact-essay img {
    width: 5.5rem;
  }
}

/* Right-aligned call-out link - learn more style links */
.link-callout {
  text-align: right;
  margin-top: var(--spacing-md);
}

.link-callout a {
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link-callout a:hover {
  color: var(--interactive-hover);
  text-decoration: underline;
}


/*****************************************************
JUMBOTRON
*****************************************************/
/* 👉 To change text width or font, edit .jumbotron-content.
      Use box-align: left | right | center in the include to position text
      and control gradient direction. */
.jumbotron {
  /* Display */
  display: flex;
  align-items: center;

  /* Full viewport breakout from the essay content column */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;

  /* Visual */
  background-size: cover;
  background-repeat: no-repeat;
}

/* Text position + gradient direction — set via box-align parameter */
.jumbotron--left  { justify-content: flex-start; }
.jumbotron--right { justify-content: flex-end; }
.jumbotron--center { justify-content: center; }

/* 👉 To change text width, padding, or font for all jumbotrons, edit here. */
.jumbotron-content {
  /* Box Model */
  max-width: 42rem;
  padding: var(--spacing-lg);

  /* Typography */
  font-family: var(--font-serif);
  color: var(--text-body);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Center mode: text overlays the image directly — use shadow for legibility */
.jumbotron--center .jumbotron-content {
  text-align: center;
  color: white;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(0, 0, 0, 0.4);
}

.jumbotron-content h2 {
  /* Box Model */
  margin-top: 0;
  margin-bottom: var(--spacing-md);

  /* Typography */
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--ink);
}

.jumbotron--center .jumbotron-content h2 {
  color: white;
}

.jumbotron-text {
  /* Typography */
  font-size: 1.2rem;
  line-height: 1.6;
}

.jumbotron-text p {
  margin-bottom: var(--spacing-md);
}

/* Responsive */
@media (max-width: 768px) {
  .jumbotron {
    min-height: 50vh;
  }

  .jumbotron-content {
    max-width: 100%;
    padding: var(--spacing-md);
  }

  .jumbotron-content h2 {
    font-size: 1.5rem;
  }

  .jumbotron-text {
    font-size: 1rem;
  }
}


/*****************************************************
IMAGES
*****************************************************/

figure {
  /* Box Model */
  margin: 0;
  margin-bottom: var(--spacing-lg);
  
  /* Positioning */
  clear: none;
}

.page-wrap img {
  max-width: 100%;
  height: auto;
}

.page-wrap figure {
  position: relative;
}

.page-wrap figure img,
.card-img-top {
  border: 1px solid var(--rule);
}

.page-wrap figure.right,
.page-wrap figure.img-right {
  float: right;
  justify-self: end;
  min-width: min(26rem, 100%);
  margin: 0 0 var(--spacing-lg) var(--spacing-lg);
  text-align: left;
}

.page-wrap figure.left,
.page-wrap figure.img-left {
  float: left;
  justify-self: start;
  min-width: min(26rem, 100%);
  margin: 0 var(--spacing-lg) var(--spacing-lg) 0;
  text-align: left;
}

.page-wrap figure.center,
.page-wrap figure.img-center,
.page-wrap figure.img-middle {
  float: none;
  min-width: min(32rem, 100%);
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.page-wrap figure[style*="100%"] {
  min-width: 100%;
}

/* Float-based image alignment — used in figure.html via class="img-right" etc. */
.img-right {
  float: right;
  margin: 0 0 1em 2%;
}

.img-left {
  float: left;
  margin: 0 2% 1em 0;
}

.img-center {
  float: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.page-wrap figure.right::after,
.page-wrap figure.left::after,
.page-wrap figure.img-right::after,
.page-wrap figure.img-left::after {
  content: "";
  display: table;
  clear: both;
}

figcaption a {
  font-weight: normal;
  opacity: 0.5;
}

.page-wrap figcaption,
.page-wrap figcaption p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.32;
  color: var(--text-muted);
  text-align: left;
  margin: 0;
}

.page-wrap figcaption {
  padding-top: 0.28rem;
}

/*****************************************************
FIGURE WRAP — two-column image + text layout
*****************************************************/

.figure-wrap {
  /* Display */
  display: grid;
  grid-template-columns: var(--figure-wrap-image-width, 40%) 1fr;
  gap: var(--spacing-lg);
  align-items: start;

  /* Box Model */
  margin-bottom: var(--spacing-lg);
}

.figure-wrap--right {
  grid-template-columns: 1fr var(--figure-wrap-image-width, 40%);
}

.figure-wrap--right .figure-wrap__image {
  order: 2;
}

.figure-wrap--right .figure-wrap__text {
  order: 1;
}

.figure-wrap__image {
  margin: 0;
}

.figure-wrap__image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .figure-wrap,
  .figure-wrap--right {
    grid-template-columns: 1fr;
  }

  .figure-wrap--right .figure-wrap__image,
  .figure-wrap--right .figure-wrap__text {
    order: unset;
  }
}

/*****************************************************
IMAGE CAROUSEL
Uses Splide.js — see _includes/images/carousel.html
*****************************************************/

/* Carousel wrapper — height is set via fixedHeight in Splide options */
.xanthan-carousel {
  /* Visual */
  border-radius: 0;
  border: 1px solid var(--rule);
  overflow: hidden;
}

/* Figure fills the full slide height */
.xanthan-carousel__slide {
  /* Display */
  display: flex;
  flex-direction: column;
  height: 100%;

  /* Box Model */
  margin: 0;
}

/* Image fills the slide, cropping as needed */
.xanthan-carousel__slide img {
  /* Display */
  display: block;
  flex: 1;

  /* Box Model */
  width: 100%;
  min-height: 0;

  /* Visual */
  object-fit: cover;
}

/* Figcaption — appears below the image */
.xanthan-carousel__slide figcaption {
  /* Box Model */
  padding: var(--spacing-sm) var(--spacing-md);
  flex-shrink: 0;

  /* Visual */
  background: var(--ink);

  /* Typography */
  font-size: 0.9rem;
  line-height: 1.5;
  color: #f8efe0;
}

/*****************************************************
EDITORIAL CARDS
*****************************************************/

.v-card {
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.v-card:hover {
  transform: translateY(-4px);
  border-color: var(--unm-cherry);
  box-shadow: var(--shadow-hover);
}

.v-card > a,
.v-card > a:hover {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  border-bottom: 0;
}

.v-card .card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-width: 0 0 1px 0;
}

.v-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
}

.v-card .card-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
}

.v-card .card-title::before {
  content: "Essay";
  display: block;
  width: max-content;
  margin-bottom: 0.45rem;
  padding-top: 0.35rem;
  border-top: 4px solid var(--unm-high-noon);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: var(--unm-cherry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.v-card .card-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
}


/*****************************************************
DIRECTORY BROWSING
*****************************************************/

.directory-tools {
  display: flex;
  justify-content: flex-end;
  max-width: 82rem;
  margin: 0 auto var(--spacing-lg);
}

.directory-tools a {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--unm-cherry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--unm-high-noon);
}

.category-browser,
.essay-category-sections {
  max-width: 82rem;
  margin: 0 auto;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0 var(--spacing-xxl);
}

.category-card {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--ink);
  border: 1px solid var(--rule);
  text-decoration: none;
}

.category-card:hover {
  color: var(--text-on-dark);
  border-color: var(--unm-cherry);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.category-card:hover img {
  filter: brightness(0.68) saturate(1);
  transform: scale(1.03);
}

.category-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.category-card__count {
  width: max-content;
  padding-top: 0.35rem;
  border-top: 4px solid var(--unm-high-noon);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fffaf0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.essay-category-section {
  scroll-margin-top: var(--spacing-xl);
  margin: 0 0 var(--spacing-xxl);
}

.essay-category-section__header {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  align-items: end;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--rule);
}

.essay-category-section__header h2 {
  margin-top: 0;
}

.essay-category-section__header span {
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--unm-cherry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.essay-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--spacing-md);
}

.compact-essay-list {
  max-width: 82rem;
  margin: var(--spacing-lg) auto var(--spacing-xxl);
  border-top: 1px solid var(--rule);
}

.compact-essay {
  border-bottom: 1px solid var(--hairline);
}

.compact-essay a {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: var(--spacing-md);
  align-items: center;
  padding: 0.75rem 0;
  color: var(--ink);
  border-bottom: 0;
}

.compact-essay a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--unm-high-noon) 8%, transparent);
}

.compact-essay img {
  width: 8rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.compact-essay__body {
  display: grid;
  gap: 0.25rem;
}

.compact-essay__meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--unm-cherry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compact-essay__title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.12;
}

.compact-essay__description {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink-soft);
}


/*****************************************************
ESSAY PAGINATION
*****************************************************/

.essay-pagination {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-xxl) 0 var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--rule);
}

.essay-pagination__item {
  display: flex;
  min-height: 8rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.essay-pagination__item:hover {
  color: var(--ink);
  border-color: var(--unm-cherry);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.essay-pagination__item--next {
  text-align: right;
}

.essay-pagination__item--empty {
  visibility: hidden;
}

.essay-pagination__label {
  width: max-content;
  padding-top: 0.35rem;
  border-top: 4px solid var(--unm-high-noon);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  color: var(--unm-cherry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.essay-pagination__item--next .essay-pagination__label {
  align-self: flex-end;
}

.essay-pagination__title {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.18;
}


/*****************************************************
FOOTER
Project credit footer adapted from Silk Road.
*****************************************************/

footer.site-footer {
  margin-top: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  color: var(--text-on-dark);
  background:
    linear-gradient(90deg, var(--unm-cherry) 0 0.7rem, transparent 0.7rem),
    var(--bg-footer);
  border-top: 1px solid rgba(255, 250, 240, 0.22);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(12rem, 0.35fr) minmax(18rem, 0.65fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  max-width: 82rem;
  margin: 0 auto;
}

.site-footer__brand {
  display: block;
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-bottom: 0;
}

.site-footer__brand:visited,
.site-footer__brand:hover {
  color: var(--text-on-dark);
  border-bottom: 0;
}

.site-footer__credit {
  max-width: 52rem;
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.3vw, 1.06rem);
  line-height: 1.55;
  text-align: left;
}

.site-footer__credit a {
  color: var(--text-on-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 0;
  transition: color var(--transition-fast);
}

.site-footer__credit a:hover {
  color: var(--unm-high-noon);
  border-bottom: 0;
}

.site-footer__credit .site-footer__amaranth {
  color: var(--unm-high-noon);
}

.site-footer__credit .site-footer__amaranth:hover {
  color: var(--unm-turquoise);
}



/*****************************************************
BUTTONS
*****************************************************/

/* Shared styles — applied to both primary and secondary variants */
.btn-primary,
.btn-secondary {
  /* Display */
  display: inline-block;

  /* Typography */
  font-family: var(--font-body);
  color: var(--white);
  text-decoration: none;

  /* Visual */
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-md);

  /* Interactivity */
  transition: background-color var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal);
}

/*
  Override a:visited from typography.css.
  :visited raises specificity enough to beat a:visited.
*/
.btn-primary:visited,
.btn-secondary:visited {
  color: var(--white);
  text-decoration: none;
  border: none;
}

.btn-primary:hover,
.btn-primary:visited:hover,
.btn-secondary:hover,
.btn-secondary:visited:hover {
  color: var(--white);
  background: var(--interactive-hover);
}

/* Primary — larger, full emphasis */
.btn-primary {
  padding: 1em 2em;
  font-size: 1.2em;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:visited:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Secondary — smaller, lower emphasis */
.btn-secondary {
  padding: 0.6em 1.2em;
  font-size: 0.95em;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:visited:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Size modifiers — stack with any button variant */
.btn-lg {
  font-size: 1.75rem;
  padding: 1rem 3rem;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.4em 1em;
}


/*****************************************************
HERO SECTION (Homepage)
*****************************************************/

.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 0;
}

.hero-tagline {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 1rem auto 1.5rem;
  max-width: 700px;
}

.hero-cta {
  text-align: center;
  margin: 0 0 2.5rem;
}


/*****************************************************
BOOTSTRAP CAROUSEL CAPTION
Override Bootstrap's centered caption with a full-width
dark bar at the bottom.
*****************************************************/

.carousel-caption {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0 1rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.carousel-caption h5 {
  font-size: 1rem;
  margin: 0;
  padding-top: 0.5rem;
  color: #fff;
}


/*****************************************************
DIRECTORY CARDS
*****************************************************/

.card {
  opacity: 1;
  border: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  background: var(--bg-card);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--unm-cherry) !important;
  box-shadow: var(--shadow-hover);
}

.card-img-top {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-width: 0 0 1px 0 !important;
  border-style: solid !important;
  border-color: var(--rule) !important;
  border-radius: 0 !important;
  transition: box-shadow 0.2s ease;
}

.card:hover .card-img-top {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 1rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.55rem 0;
  line-height: 1.18;
}

.card-text {
  font-size: 1rem;
  line-height: 1.45;
}

.card a,
.card a:hover {
  color: var(--ink);
  text-decoration: none;
  border-bottom: none;
}


} /* end media screen */



/*****************************************************************************/
/*
/* SMALL SCREEN
/*
/*****************************************************************************/

@media (max-width: 768px) {

  /* Remove container padding on mobile so images can be full width */
  .page-wrap .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Add padding back to text elements */
  .page-wrap .container p,
  .page-wrap .container h1,
  .page-wrap .container h2,
  .page-wrap .container h3,
  .page-wrap .container h4,
  .page-wrap .container h5,
  .page-wrap .container h6,
  .page-wrap .container ul,
  .page-wrap .container ol,
  .page-wrap .container blockquote,
  .page-wrap .container .pullquote,
  .page-wrap .container .alert {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  /* On small screens, figures fill the full content column width */
  .page-wrap figure,
  .page-wrap figure.right,
  .page-wrap figure.left,
  .page-wrap figure.img-right,
  .page-wrap figure.img-left,
  .page-wrap figure.img-center,
  .page-wrap figure.img-middle {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    margin: 0 0 var(--spacing-md) 0 !important;
  }

}
