:root
{
  --site-max-width: 1180px;
  --content-max-width: 940px;
  --accent: #c43a1a;
  --accent-dark: #5b1111;
  --text: #1f1a17;
  --muted: #6b625c;
  --bg: #f7f3ed;
  --card: #ffffff;
  --border: #d9cfc2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*
{
  box-sizing: border-box;
}

html
{
  scroll-behavior: smooth;
}

body
{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(to bottom, #fcfaf7 0%, var(--bg) 100%);
}

a
{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
}

a:hover
{
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

a:visited
{
  color: #6b2a6b;
}

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

table
{
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

td
{
  vertical-align: top;
}

.site-container
{
  width: min(var(--site-max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header
{
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}

.header-band
{
  background: linear-gradient(#c43a1a,#a82e17);
  border-radius: 14px 14px 0 0;
}

.header-inner
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 10px;
  flex-wrap: wrap;
}

.site-brand
{
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-brand img
{
  width: 88px;
  height: auto;
  border-radius: 8px;
}

.site-title
{
  margin: 0;
  font-size: clamp(1.35rem, 1.3rem + 1vw, 2rem);
  line-height: 1.15;
  color: #fff8f0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.14);
}

.site-subtitle
{
  margin: 4px 0 0;
  color: #fff3e6;
  font-size: 0.95rem;
}

.site-meta
{
  margin: 4px 0 0;
  color: #fff3e6;
}

.site-brand-copy p
{
  color: #fff3e6;
}

.site-meta-small
{
  font-size: 0.92rem;
}

.site-nav
{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-nav a
{
  display: inline-block;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #fff8f0;
  font-weight: 700;
  font-size: 0.98rem;
}

.site-nav a:visited
{
  color: #fff8f0;
}

.site-nav a:hover
{
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
  text-decoration: none;
}

.page-content
{
  width: min(var(--content-max-width), 100%);
  margin: 0 auto;
  padding: 28px 0 42px;
}

.page-content h1
{
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.page-content h2
{
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.85rem);
  line-height: 1.2;
  margin: 34px 0 14px;
}

.page-content h3
{
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 26px 0 12px;
}

.page-content h4
{
  font-size: 1.08rem;
  margin: 22px 0 10px;
}

.page-content h1[id], .page-content h2[id], .page-content h3[id]
{
  scroll-margin-top: 18px;
}

.toc-card
{
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 18px 20px;
  margin: 0 0 24px;
}

.toc-card h2, .toc-card h3
{
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.toc-card ul
{
  margin: 0;
  padding-left: 1.2rem;
}

.toc-card li + li
{
  margin-top: 6px;
}

.page-content p, .page-content li
{
  font-size: 1rem;
}

.page-content ul, .page-content ol
{
  padding-left: 1.3rem;
}

figure
{
  margin: 26px auto;
  text-align: center;
}

figcaption
{
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero
{
  display: grid;
  grid-template-columns: minmax(145px, 175px) 1fr;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.hero-media
{
  width: 100%;
}

.hero-media img
{
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
}

.hero-copy h1
{
  margin-bottom: 12px;
}

.hero-copy p.lead
{
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 0;
}

.home-columns
{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-top: 28px;
}

.home-columns-featured
{
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  align-items: start;
}

.latest-updates
{
  min-width: 0;
}

.quick-links-sidebar
{
  max-width: 320px;
  justify-self: end;
}

.latest-updates-layout
{
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  align-items: start;
}

.latest-updates-image
{
  width: 100%;
  max-width: 150px;
}

.card
{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.book-feature
{
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.book-feature img
{
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  margin: 0 auto;
}

.quick-links ul
{
  margin: 0;
}

.quick-links li + li
{
  margin-top: 10px;
}

.contact-panel-layout
{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
}

.contact-panel img
{
  width: 100%;
  max-width: 140px;
  display: block;
  margin: 0 auto;
}

.image-gallery
{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.image-gallery img
{
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: 165px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: rgba(255,255,255,0.75);
}

.page-content > img:not(.bamboo-separator), .page-content figure img, .page-content table img:not(.bamboo-separator)
{
  max-width: min(100%, 720px);
}

.bamboo-separator
{
  width: 100%;
  max-width: none;
  height: 15px;
  object-fit: fill;
  display: block;
}

.site-header .bamboo-separator
{
  margin: 0;
  border-radius: 0 0 14px 14px;
}

.site-footer .bamboo-separator
{
  margin: 18px 0 24px;
}

.site-header .header-separator
{
  width: 100%;
  height: 15px;
  object-fit: fill;
}

.page-content .bamboo-separator
{
  margin: 18px 0 24px;
}

.site-footer
{
  padding: 10px 0 36px;
}

.footer-copy
{
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  margin: 0;
}

@media (max-width: 900px)
{
  .hero,     .home-columns,     .book-feature,     .contact-panel-layout
  {
    grid-template-columns: 1fr;
  }

  .header-inner
  {
    justify-content: center;
  }

  .site-brand,     .site-nav
  {
    justify-content: center;
    text-align: center;
  }

  .site-nav
  {
    width: 100%;
  }

}

@media (max-width: 640px)
{
  .site-container
  {
    width: min(var(--site-max-width), calc(100% - 20px));
  }

  .page-content
  {
    padding-top: 22px;
  }

  .header-inner
  {
    gap: 14px;
    padding: 12px 0 8px;
  }

  .site-brand
  {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .site-brand img
  {
    width: 112px;
  }

  .site-title
  {
    font-size: 1.45rem;
  }

  .site-subtitle
  {
    font-size: 0.92rem;
  }

  .site-nav
  {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .site-nav a
  {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .card,     .hero
  {
    padding: 18px;
    border-radius: 16px;
  }

  .image-gallery img
  {
    height: 135px;
  }

  .toc-card
  {
    padding: 16px 18px;
  }

}

.contact-panel-layout img
{
  display: block;
  margin: 0 auto;
}

.region-heading
{
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  color: #000;
  margin: 32px 0 16px;
}

.region-heading-visayan
{
  background: #dceffd;
}

.region-heading-luzon
{
  background: #dff2df;
}

.zoomable-image
{
  cursor: zoom-in;
}

.image-modal
{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 9999;
}

.image-modal.is-open
{
  display: flex;
}

.image-modal-dialog
{
  position: relative;
  max-width: 98vw;
  max-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal img
{
  width: min(94vw, 1400px);
  max-width: 94vw;
  max-height: 94vh;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
  background: #fff;
  object-fit: contain;
}

.image-modal-close
{
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.image-modal-close:hover
{
  background: #f0f0f0;
}

@media (max-width: 640px)
{
  .image-modal
  {
    padding: 14px;
  }

  .image-modal-close
  {
    top: -8px;
    right: -4px;
  }

}

main.site-container
{
  padding-bottom: 28px;
}

.site-brand-copy
{
  min-width: 0;
}

.site-logo img
{
  display: block;
}

.site-meta
{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-meta-small
{
  font-size: 0.9rem;
}

.header-separator
{
  display: block;
  width: 100%;
  height: 15px;
  object-fit: fill;
  margin: 0;
}

.page-header-card
{
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 0 0 26px;
}

.page-header-card h1
{
  margin: 0 0 10px;
}

.page-header-card p:last-child
{
  margin-bottom: 0;
}

.page-header-card .lead
{
  font-size: 1.08rem;
  color: var(--muted);
}

.header-link-list
{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.header-link-list a
{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5ede4;
  border: 1px solid #e5d7c6;
  text-decoration: none;
  font-weight: 700;
}

.header-link-list a:hover
{
  background: #efe4d8;
}

.split-card, .feature-grid, .info-grid, .link-grid, .stat-grid, .gallery-section
{
  display: grid;
  gap: 18px;
}

.split-card
{
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: start;
}

.feature-grid
{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 22px 0 20px;
}

.info-grid
{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.link-grid
{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-grid
{
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 20px;
}

.mini-card
{
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.mini-card h2, .mini-card h3, .mini-card h4
{
  margin-top: 0;
}

.mini-card p:last-child, .mini-card ul:last-child
{
  margin-bottom: 0;
}

.callout-card
{
  background: #f8f2ea;
  border-left: 4px solid var(--accent);
}

.section-card
{
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  padding: 24px;
  margin: 24px 0;
}

.section-card > :first-child
{
  margin-top: 0;
}

.responsive-table
{
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  margin: 18px 0 28px;
}

.programs-intro-card .feature-grid
{
  margin-bottom: 0;
}

.program-data-card
{
  padding: 20px;
}

.program-data-card h3
{
  margin-top: 0;
}

.section-intro
{
  color: var(--muted);
  margin-top: -4px;
}

#sessions, #locs
{
  margin-top: 14px;
}

#dlocs, #dclss
{
  margin: 12px 0;
}

#dlocs input, #dclss input
{
  margin-right: 6px;
}

#divmap
{
  margin: 16px 0 0 !important;
  border-radius: 14px;
  overflow: hidden;
}

.responsive-table td, .responsive-table th
{
  padding: 12px 14px;
  border-top: 1px solid #eee3d7;
}

.responsive-table tr:first-child > td, .responsive-table tr:first-child > th
{
  border-top: 0;
}

.image-gallery
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.image-gallery figure
{
  margin: 0;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.image-gallery img
{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.anchor-links
{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.anchor-links a
{
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e3d7c7;
  background: rgba(255,255,255,0.9);
}

.inline-media
{
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 18px;
  align-items: start;
}

.inline-media img
{
  width: 100%;
  border-radius: 14px;
}

@media (max-width: 900px)
{
  .split-card,     .inline-media
  {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px)
{
  .quick-links-sidebar
  {
    max-width: none;
    justify-self: stretch;
  }

}

@media (max-width: 640px)
{
  .page-header-card,     .section-card
  {
    padding: 20px;
    border-radius: 18px;
  }

  .responsive-table,     .responsive-table tbody,     .responsive-table tr,     .responsive-table td,     .responsive-table th
  {
    display: block;
    width: 100%;
  }

  .responsive-table tr
  {
    border-top: 1px solid #eee3d7;
  }

  .responsive-table tr:first-child
  {
    border-top: 0;
  }

  .responsive-table td,     .responsive-table th
  {
    border-top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .image-gallery
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.home-columns + .card
{
  margin-top: 28px;
}

.gallery-showcase
{
  padding: 24px;
}

.gallery-section-header
{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.gallery-section-header h2
{
  margin: 0;
}

.carousel-controls
{
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.gallery-modal
{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 12, 8, 0.86);
  z-index: 1000;
}

.gallery-modal.is-open
{
  display: flex;
}

.gallery-modal-close
{
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.gallery-modal-close:hover
{
  background: rgba(0,0,0,0.8);
}

.carousel-arrow, .gallery-modal-nav
{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #dfd2c3;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.carousel-arrow:hover, .gallery-modal-nav:hover
{
  background: #fff;
}

.media-carousel
{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 22%);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #d4c4b2 rgba(0,0,0,0.05);
}

.media-carousel::-webkit-scrollbar
{
  height: 10px;
}

.media-carousel::-webkit-scrollbar-track
{
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
}

.media-carousel::-webkit-scrollbar-thumb
{
  background: #d4c4b2;
  border-radius: 999px;
}

.media-carousel-card
{
  margin: 0;
  scroll-snap-align: start;
}

.media-carousel-button
{
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.media-carousel-button img
{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-carousel-button:hover img
{
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

.media-carousel-caption
{
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.gallery-help
{
  margin: 18px 0 0;
}

body.modal-open
{
  overflow: hidden;
}

.gallery-modal-dialog
{
  width: min(96vw, 1320px);
  max-width: 96vw;
  max-height: 94vh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.gallery-modal-stage
{
  min-width: 0;
  text-align: center;
}

.gallery-modal-stage img
{
  width: min(88vw, 1100px);
  max-width: 100%;
  max-height: calc(90vh - 90px);
  object-fit: contain;
}

.gallery-modal-caption
{
  margin: 14px auto 0;
  max-width: 900px;
  color: #fff3e6;
  font-size: 1rem;
}

.gallery-modal-prev, .gallery-modal-next
{
  position: static;
}

@media (max-width: 900px)
{
  .gallery-section-header
  {
    align-items: start;
    flex-direction: column;
  }

  .media-carousel
  {
    grid-auto-columns: minmax(240px, 45%);
  }

}

@media (max-width: 640px)
{
  .media-carousel
  {
    grid-auto-columns: 82%;
    gap: 12px;
    padding-bottom: 10px;
  }

  .media-carousel-button img
  {
    height: 220px;
  }

  .gallery-showcase
  {
    padding: 20px;
  }

  .gallery-modal-dialog
  {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-modal-nav
  {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
  }

  .gallery-modal-prev
  {
    left: 8px;
  }

  .gallery-modal-next
  {
    right: 8px;
  }

  .gallery-modal-stage img
  {
    width: 100%;
    max-height: calc(90vh - 120px);
  }

  .gallery-modal-caption
  {
    font-size: 0.95rem;
  }

}

.resource-gallery-header p, .practice-gallery-wrap .section-intro
{
  margin: 6px 0 0;
}

.practice-gallery-wrap
{
  margin-top: 24px;
}

.resource-carousel
{
  grid-auto-columns: minmax(220px, 30%);
}

.fee-grid, .supply-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 18px 0 0;
}

.compact-table
{
  width: 100%;
  border-collapse: collapse;
}

.compact-table th, .compact-table td
{
  padding: 8px 0;
  border-top: 1px solid #eee3d7;
  text-align: left;
}

.compact-table tr:first-child th, .compact-table tr:first-child td
{
  border-top: 0;
}

.link-list-card
{
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}

.two-column-list ul
{
  columns: 2 240px;
  column-gap: 28px;
  margin: 0;
}

.two-column-list li
{
  break-inside: avoid;
  margin-bottom: 8px;
}

.thumb-gallery
{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.thumb-button
{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
}

.thumb-button img
{
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb-button:hover img
{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}

.links-card-layout
{
  grid-template-columns: 1fr minmax(160px, 220px);
  align-items: center;
}

.links-side-image
{
  text-align: center;
}

.links-side-image img
{
  width: min(180px, 100%);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

@media (max-width: 900px)
{
  .resource-carousel
  {
    grid-auto-columns: minmax(240px, 48%);
  }

  .links-card-layout
  {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px)
{
  .resource-carousel
  {
    grid-auto-columns: 82%;
  }

  .thumb-button img
  {
    width: 76px;
    height: 76px;
  }

  .two-column-list ul
  {
    columns: 1;
  }

}

#practice-track .media-carousel-button.is-static
{
  cursor: default;
}

#practice-track .media-carousel-button.is-static img
{
  height: 170px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

#practice-track .media-carousel-button.is-static:hover img
{
  transform: none;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

#practice-track .media-carousel-caption
{
  font-size: 0.92rem;
}

@media (max-width: 640px)
{
  #practice-track .media-carousel-button.is-static img
  {
    height: 150px;
  }

}

.header-link-list
{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.header-link-list a
{
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
  color: var(--text);
  font-weight: 700;
}

.info-grid, .nested-card-grid
{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-card
{
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  padding: 18px;
}

.nested-card h3, .mini-card h3
{
  margin-top: 0;
}

.muted-note
{
  color: var(--muted);
}

.carousel-shell
{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.media-carousel-arrow
{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.media-carousel-arrow:hover
{
  background: #fff;
}

.instructor-carousel .media-carousel-button img
{
  height: 180px;
  object-fit: cover;
}

.instructor-card .media-carousel-caption strong, .certificate-card .media-carousel-caption strong
{
  display: block;
}

.instructor-card .media-carousel-caption span
{
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.certificate-carousel .media-carousel-button img
{
  height: 130px;
  object-fit: contain;
  background: #fff;
}

.about-modal
{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.86);
  z-index: 10000;
}

.about-modal.is-open
{
  display: flex;
}

.about-modal-dialog
{
  position: relative;
  width: min(1100px, 100%);
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.about-modal-body
{
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  align-items: start;
}

.about-modal-main img
{
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 14px;
  background: #f7f3ed;
}

.style-group-list
{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.style-region-group
{
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(250,247,242,0.7);
}

.style-region-group > h3
{
  margin: 0 0 14px;
}

.style-subcard-grid
{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-modal-kicker
{
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.about-modal-copy h3
{
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.about-modal-copy ul
{
  margin: 12px 0 0;
}

.about-modal-strip
{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.about-modal-thumb
{
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.about-modal-thumb.is-active
{
  border-color: var(--accent);
}

.about-modal-thumb img
{
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
}

.about-modal-thumb span
{
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--muted);
  white-space: normal;
}

.about-page .card + .card
{
  margin-top: 28px;
}

@media (max-width: 900px)
{
  .info-grid,     .nested-card-grid,     .about-modal-body
  {
    grid-template-columns: 1fr;
  }

  .carousel-shell
  {
    grid-template-columns: 1fr;
  }

  .media-carousel-arrow
  {
    display: none;
  }

  .about-modal-dialog
  {
    grid-template-columns: 1fr;
    max-height: min(92vh, 900px);
    overflow: auto;
  }

  .about-modal-body
  {
    padding: 20px;
  }

}

@media (max-width: 640px)
{
  .gallery-modal-close
  {
    top: 10px;
    right: 10px;
  }

  .header-link-list
  {
    gap: 8px;
  }

  .header-link-list a
  {
    font-size: 0.92rem;
  }

  .about-modal
  {
    padding: 10px;
  }

  .about-modal-main img
  {
    max-height: 260px;
  }

  .certificate-carousel .media-carousel-button img,     .instructor-carousel .media-carousel-button img
  {
    height: 150px;
  }

}

.text-link-button
{
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.text-link-button:hover
{
  text-decoration: underline;
}

.style-preview-card
{
  display: flex;
  flex-direction: column;
}

.form-card-grid
{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-detail-card table, .detail-modal-article table
{
  width: 100%;
  border-collapse: separate;
}

.form-detail-card img, .detail-modal-article img
{
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.form-detail-card ul, .detail-modal-article ul
{
  padding-left: 1.2rem;
}

.detail-modal-dialog
{
  max-height: min(92vh, 980px);
}

.detail-modal-body
{
  max-height: min(82vh, 900px);
}

.detail-modal-copy
{
  max-height: calc(82vh - 56px);
  overflow: auto;
  padding-right: 8px;
}

.detail-modal-article > :first-child
{
  margin-top: 0;
}

.detail-modal-article
{
  margin-top: 14px;
}

.detail-modal-article h2, .detail-modal-article h3
{
  margin-top: 0;
}

.detail-modal-article hr
{
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.lineage-block
{
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf7f2;
}

.lineage-block h4
{
  margin: 0 0 10px;
  font-size: 1rem;
}

.lineage-list
{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lineage-path
{
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
}

@media (max-width: 900px)
{
  .form-card-grid, .style-subcard-grid
  {
    grid-template-columns: 1fr;
  }

  .detail-modal-copy
  {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .detail-modal-body
  {
    max-height: none;
  }

}

.style-region-summary
{
  margin: 0 0 14px;
  color: var(--muted);
}

.form-columns
{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-columns.is-multi
{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-detail-card li
{
  margin-bottom: 6px;
}

.about-modal-main
{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-modal-main
{
  position: sticky;
  top: 0;
  align-self: start;
}

.about-modal-strip
{
  margin-top: 14px;
  padding-top: 14px;
}

.about-modal-thumb
{
  flex: 0 0 132px;
}

.about-modal-thumb img
{
  height: 88px;
  object-fit: cover;
}

@media (max-width: 900px)
{
  .detail-modal-main
  {
    position: static;
  }

  .form-columns.is-multi
  {
    grid-template-columns: 1fr;
  }

}

/* about page mobile and popup refinements */
.about-modal-dialog
{
  width: min(980px, calc(100vw - 40px));
}

.detail-modal-copy
{
  min-width: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.detail-modal-article, .detail-modal-article *
{
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
}

.detail-modal-article .content-link
{
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 900px)
{
  .about-modal
  {
    padding: 8px;
  }

  .about-modal-dialog
  {
    width: calc(100vw - 24px);
    max-height: min(94vh, 980px);
    border-radius: 16px;
  }

  .about-modal-body
  {
    padding: 16px;
    gap: 16px;
    overflow-x: hidden;
  }

  .detail-modal-copy
  {
    width: 100%;
    max-width: 100%;
  }

  .detail-modal-article table,   .detail-modal-article tbody,   .detail-modal-article tr,   .detail-modal-article td
  {
    display: block;
    width: 100% !important;
  }

  .detail-modal-article td
  {
    padding: 0 0 12px 0;
  }

  .detail-modal-article img
  {
    display: block;
    margin: 0 auto 10px;
  }

  .gallery-modal-close
  {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10020;
    width: 42px;
    height: 42px;
    font-size: 1.75rem;
    background: rgba(0,0,0,0.72);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
  }

}

/* v43 about modal refinements */
.detail-modal-main
{
  min-width: 0;
}

.about-modal-body, .detail-modal-copy, .detail-modal-article, .detail-modal-article ul, .detail-modal-article li, .detail-modal-article p, .detail-modal-article td
{
  min-width: 0;
}

.detail-modal-article table
{
  table-layout: fixed;
}

.detail-modal-article td
{
  overflow-wrap: anywhere;
}

@media (max-width: 900px)
{
  .about-modal
  {
    align-items: flex-start;
    padding: 12px;
  }

  .about-modal-dialog
  {
    width: min(100%, 680px);
    margin: 28px auto;
  }

  .about-modal-body
  {
    grid-template-columns: 1fr !important;
  }

  .about-modal-main img
  {
    width: 100%;
    max-width: 100%;
  }

}

/* v46 about popup fixes */
.detail-modal-article table
{
  table-layout: auto;
}

.detail-modal-article td, .detail-modal-article th
{
  width: auto !important;
  vertical-align: top;
}

.detail-modal-article td:empty, .detail-modal-article th:empty
{
  display: none;
}

@media (min-width: 901px)
{
  .about-modal-dialog
  {
    width: min(1120px, calc(100vw - 40px));
  }

  .about-modal-body
  {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 28px;
  }

  .detail-modal-copy
  {
    max-height: calc(86vh - 56px);
  }

}

/* resources video modal fix */
.resource-video-modal
{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 12, 8, 0.86);
  z-index: 1000;
}

.resource-video-modal.is-open
{
  display: flex;
}

.video-modal-dialog
{
  width: min(960px, calc(100vw - 28px));
  max-width: 96vw;
  max-height: 94vh;
  display: block;
  background: #111;
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  position: relative;
}

.video-modal-head
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-right: 40px;
}

.video-modal-controls
{
  display: flex;
  gap: 10px;
}

.video-modal-player-wrap
{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 12px;
}

.video-modal-player-wrap iframe
{
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-dialog .gallery-modal-close
{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.video-modal-dialog .gallery-modal-caption
{
  margin: 14px 0 0;
  max-width: none;
  color: #fff3e6;
}

.video-thumb-wrap
{
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}

.video-thumb-wrap img
{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-play-badge
{
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

@media (max-width: 768px)
{
  .video-modal-head
  {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }

  .video-play-badge
  {
    width: 38px;
    height: 38px;
    right: 10px;
    bottom: 10px;
  }

}

@media (max-width: 640px)
{
  .resource-video-modal
  {
    padding: 12px;
  }

  .video-modal-dialog
  {
    width: 100%;
    padding: 18px 14px;
  }

}


/* programs schedule cards */
#dlocs,
#dclss {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.filter-chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-chip input:checked + span {
  background: #f5ede4;
  border-color: #d7b690;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.filter-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.schedule-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 0;
}

.schedule-card {
  flex: 1 1 290px;
  min-width: min(100%, 290px);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.schedule-card-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.schedule-card-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.schedule-card-time {
  margin: 0 0 14px;
}

.schedule-card-location {
  padding-top: 14px;
  border-top: 1px solid #eee3d7;
}

.schedule-card-location p {
  margin: 0 0 6px;
}

.schedule-card-location p:last-child {
  margin-bottom: 0;
}

.schedule-card-location-name {
  font-weight: 700;
}

@media (max-width: 640px) {
  .schedule-card {
    flex-basis: 100%;
  }

  #dlocs b,
  #dclss b {
    width: 100%;
    display: block;
    margin-bottom: 4px;
  }
}
