.media-page {
  margin: 0;
  background: #f4f4ea;
  color: #172c20;
  font-family: Manrope, Arial, sans-serif;
}
.media-page *, .media-page *::before, .media-page *::after { box-sizing: border-box; }
.media-page [hidden] { display: none !important; }
.media-page a { color: inherit; text-decoration: none; }
.media-page :is(a, button, input, select):focus-visible { outline: 3px solid #ae710a; outline-offset: 4px; }
.media-header, .media-heading { padding-inline: clamp(16px, 4vw, 68px); }
.media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 18px;
  background: #101e17;
  color: #f4f4ea;
}
.media-header nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 32px); }
.media-header nav a { padding-block: 8px; font-size: .9rem; font-weight: 700; }
.media-header nav a:is(:hover, [aria-current]) { color: #deefa6; }
.media-header .phone {
  padding: 11px 16px;
  border-radius: 5px;
  background: #deefa6;
  color: #101e17;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}
.media-heading {
  padding-block: clamp(34px, 5vw, 80px);
  background: linear-gradient(115deg, #172c20, #294332);
  color: #f4f4ea;
  font-size: .85rem;
}
.media-heading > a { border-bottom: 1px solid #deefa677; }
.media-heading h1 {
  margin: .5em 0 .12em;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -.067em;
}
.media-heading p { margin: .75em 0 0; color: #d9e3d2; font-size: clamp(.95rem, 1.4vw, 1.15rem); }
.media-layout {
  display: grid;
  grid-template-columns: minmax(205px, 250px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 48px);
  max-width: 1840px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 64px) clamp(16px, 4vw, 68px) 76px;
}
.media-filters { align-self: start; border-right: 1px solid #263e2c29; padding-right: 18px; }
.media-filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.media-filters fieldset + fieldset { margin-top: 22px; }
.media-filters legend, .media-mobile-select label { font-weight: 800; margin-bottom: 9px; }
.media-filters label:has(input) { display: flex; gap: 8px; align-items: center; padding: 4px 6px 4px 0; min-height: 36px; cursor: pointer; font-size: .86rem; }
.media-filters input { margin: 0; flex: 0 0 16px; height: 16px; accent-color: #356341; }
.media-filters label:has(input:checked) { color: #215b32; font-weight: 800; }
.media-filters label:has(input):hover { background: #e9ecdf; }
.media-mobile-select { display: none; }
.media-toolbar { display: flex; gap: 15px; flex-wrap: wrap; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.media-toolbar h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.35rem); letter-spacing: -.045em; }
.media-toolbar p { color: #536653; margin: 5px 0 0; font-size: .84rem; }
.media-search { display: grid; gap: 4px; width: min(100%, 250px); font-size: .8rem; font-weight: 700; }
.media-search input, .media-mobile-select select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #273d2860;
  border-radius: 5px;
  background: #fffff9;
  color: #172c20;
  font: inherit;
}
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 22px); }
.model-media-section { scroll-margin-top: 24px; }
.model-media-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.model-media-tabs button {
  min-height: 44px;
  border: 1px solid #a8b6a5;
  border-radius: 6px;
  background: #f3f4eb;
  color: #1b3627;
  padding: 7px 14px;
  font: inherit;
  cursor: pointer;
}
.model-media-tabs button:hover { background: #e7edda; }
.model-media-tabs button[aria-pressed="true"] { background: #214534; color: #fff; border-color: #214534; }
.model-media-tabs button:focus-visible { outline: 3px solid #a27624; outline-offset: 3px; }
.media-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #263e2c23;
  border-radius: 8px;
  background: #fdfdf5;
  color: #172c20;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.media-card:hover { border-color: #68906c; box-shadow: 0 8px 24px #203a2220; }
.media-card-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #203728;
  color: #deefa6;
  font-weight: 800;
}
.media-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-play-icon {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 44px;
  border-radius: 12px;
  background: #172c20ef;
  color: #deefa6;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #0005;
}
.media-card:hover .media-play-icon { background: #deefa6; color: #172c20; }
.media-doc-art { min-height: 72px; background: #e3ead7; color: #284833; font-size: .9rem; aspect-ratio: auto; }
.media-card-copy { display: grid; gap: 7px; padding: 13px 14px 16px; overflow-wrap: anywhere; }
.media-card-copy small { color: #536653; font-size: .77rem; }
.media-card-copy strong { font-weight: 750; font-size: .92rem; line-height: 1.35; }
.media-more, .media-load-video {
  padding: 10px 18px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #172c20;
  background: #deefa6;
  font: 800 .9rem Manrope, Arial, sans-serif;
  cursor: pointer;
}
.media-more { display: block; margin: 24px auto 0; background: #173a2c; color: #f4f4ea; }
.media-empty { margin: 0; padding: 24px; border-radius: 5px; background: #e9ecdf; color: #536653; }
.media-dialog {
  width: min(94vw, 1080px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid #ffffff22;
  border-radius: 9px;
  background: #101e17;
  color: #f4f4ea;
}
.media-dialog::backdrop { background: #060e0ae8; }
.media-dialog-content { padding: clamp(12px, 2vw, 24px); }
.media-dialog h2 { font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.35; margin: 0 46px 12px 0; }
.media-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 1px solid #f4f4ea60;
  color: #f4f4ea;
  background: #172c20;
  border-radius: 50%;
  font: 26px Arial, sans-serif;
  cursor: pointer;
}
#media-player :is(video, iframe, img) { display: block; width: 100%; max-height: 74vh; object-fit: contain; }
#media-player iframe { display: block; aspect-ratio: 16 / 9; border: 0; }
.media-video-permission { background: #203728; padding: clamp(18px, 4vw, 48px); }
.media-video-permission p { margin-top: 0; line-height: 1.5; }
.media-watch-on-youtube { display: inline-block; margin-top: 10px; color: #deefa6 !important; text-decoration: underline !important; }
.media-footer a { color: #f4f4ea; }
@media (min-width: 1540px) {
  .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .media-layout { grid-template-columns: 1fr; gap: 20px; }
  .media-heading { padding-block: 22px; }
  .media-heading h1 { margin-top: .32em; }
  .media-filters { border: 0; padding: 0 0 15px; border-bottom: 1px solid #263e2c29; }
  .media-filters .media-categories { display: none; }
  .media-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .media-filters label:has(input) { min-height: 42px; }
  .media-mobile-select { display: grid; margin-top: 12px; }
  .media-header nav { order: 3; width: 100%; }
  .media-header { gap: 7px; padding-block: 12px; }
  .media-header .phone { padding: 8px; font-size: .75rem; }
}
@media (max-width: 540px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-search { width: 100%; }
}
@media (max-width: 390px) {
  .media-header { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .media-card { transition: none; }
}
