/* Course portal. Rules apply only to the shortcode or to its offline equivalent. */
@font-face {
  font-family: "EPD Study Inter";
  src: url("art/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.epd-web {
  --epd-ink: #172e3b;
  --epd-muted: #486272;
  --epd-teal: #09685e;
  --epd-blue: #234f78;
  --epd-edge: #d6e2e6;
  --epd-pale: #eef5f5;
  --epd-body-font: "EPD Study Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
  container-name: epd-portal;
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.2vw, 30px) clamp(35px, 6vw, 75px);
  color: var(--epd-ink);
  font: 400 16px/1.56 var(--epd-body-font);
  text-align: left;
}
.epd-web *, .epd-web *::before, .epd-web *::after { box-sizing: border-box; }
.epd-web [hidden] { display: none !important; }
/* The article expands inside Flatsome; the document handles all study-view scrolling. */
.epd-web[data-epd-web], .epd-web [data-epd-content] {
  height: auto; max-height: none; overflow: visible;
}
.epd-web [data-epd-content] { display: block; min-width: 0; scroll-margin-top: 5.5rem; }
.epd-web [data-epd-content]:focus:not(:focus-visible) { outline: none; }
.epd-web :where(a, button, input, select, summary, textarea):focus-visible {
  outline: 3px solid #027bab; outline-offset: 3px;
}
.epd-web [data-epd-resume]:empty { display: none; }
/* Small, in-flow site navigation; doesn't interfere with the store's own menu. */
.epd-web .epd-study-nav {
  position: static; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0 12px; width: 100%; margin: 0; padding: 0;
  min-height: 56px; border: 0; border-bottom: 1px solid var(--epd-edge); background: transparent;
  float: none; box-shadow: none;
}
.epd-web [data-epd-nav] { display: flex; align-items: stretch; flex-wrap: wrap; gap: 1px clamp(11px, 2.3vw, 30px); min-width: 0; }
.epd-web .epd-study-nav :where(a,button) {
  display: inline-flex; align-items: center; gap: 6px; height: auto; min-height: 49px;
  margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
  text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer;
  color: #45616b; font: 570 .95rem/1.35 var(--epd-body-font);
}
.epd-web .epd-study-nav [data-epd-nav] :where(a,button) {
  position: relative; border-bottom: 2px solid transparent; padding: 6px 0 4px;
}
.epd-web .epd-study-nav [data-epd-nav] :is([aria-current="page"],.active) {
  border-bottom-color: var(--epd-teal); color: var(--epd-ink); font-weight: 725;
}
.epd-web .epd-study-nav :where(a,button):hover { color: var(--epd-teal); }
.epd-web .epd-study-nav :where(a,button):hover .nav-icon { color: inherit; }
.epd-web .epd-study-nav :where(.nav-icon,svg) { display: none; }
.epd-web .epd-study-nav [data-action="goals"] {
  margin-left: auto; font-size: .86rem; color: #425968;
}
.epd-web [data-epd-berries] { font-variant-numeric: tabular-nums; color: var(--epd-teal); font-weight: 760; }
.epd-web .epd-study-nav [data-action="goals"] img { width: 17px; height: 17px; margin: 0; }
.epd-web [data-epd-offline-status] { font: 500 .76rem/1.4 var(--epd-body-font); color: #316957; }

.epd-web .epd-home { color: var(--epd-ink); }
.epd-web .epd-home :is(h1,h2,h3,p,article,section) {
  display: block; float: none; clear: none; position: static;
  min-width: 0; max-width: none; margin: 0; padding: 0;
  color: inherit; font-family: var(--epd-body-font); text-align: start;
  text-transform: none; border: none; letter-spacing: normal;
}
.epd-web .epd-home :is(h1,h2,h3)::before,
.epd-web .epd-home :is(h1,h2,h3)::after { display: none; }
.epd-web .epd-cover {
  display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4.8vw, 84px); padding: clamp(24px, 3.7vw, 53px) 0;
}
.epd-web .epd-cover-copy { min-width: 0; }
.epd-web .epd-cover .epd-byline {
  color: var(--epd-teal); font-size: .76rem; line-height: 1.5; font-weight: 728; letter-spacing: .1em;
  text-transform: uppercase; margin: 0 0 clamp(9px, 1.2vw, 19px);
}
.epd-web .epd-home [data-epd-home-heading] {
  max-width: 100%; margin: 0; color: var(--epd-ink);
  font-size: clamp(2.65rem, 5.15vw, 4.65rem); font-weight: 725;
  line-height: 1.04; letter-spacing: -.063em; text-wrap: balance;
}
.epd-web .epd-cover .epd-deck {
  max-width: 39ch; margin: clamp(14px, 1.7vw, 23px) 0 0; color: #415869;
  font-size: clamp(1.04rem, 1.38vw, 1.26rem); line-height: 1.58; letter-spacing: -.014em;
}
.epd-web .epd-deck strong { font-weight: 665; color: var(--epd-ink); }
.epd-web .epd-cover-links {
  display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap;
  margin-top: clamp(20px, 2.5vw, 33px);
}
.epd-web .epd-home .epd-primary-link {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; padding: 12px 18px; min-height: 47px; border: 1px solid var(--epd-teal);
  border-radius: 6px; color: white; background: var(--epd-teal);
  text-decoration: none; font: 660 .97rem/1.3 var(--epd-body-font); letter-spacing: -.01em;
}
.epd-web .epd-home .epd-primary-link:hover { background: #07534b; border-color: #07534b; color: white; }
.epd-web .epd-cover .epd-inline-link {
  display: inline-flex; align-items: center; min-height: 42px; padding: 6px 0; color: var(--epd-ink);
  text-decoration: underline; text-underline-offset: .23em; text-decoration-thickness: 1px;
  font: 605 .95rem/1.4 var(--epd-body-font);
}
.epd-web .epd-cover .epd-inline-link:hover { color: var(--epd-teal); }
/* Keep DJI's full press photograph in its original proportions at every breakpoint. */
.epd-web figure.epd-cover-art {
  display: block; width: 100%; min-width: 0; height: auto; margin: 0; padding: 0;
}
.epd-web .epd-cover-art img {
  display: block; width: 100%; height: auto; max-width: 100%; max-height: none;
  object-fit: contain; margin: 0;
}
.epd-web .epd-cover-art figcaption {
  display: block; margin: .45rem 0 0; padding: 0; color: #49606b; text-align: left;
  position: static; background: none; font: 460 .82rem/1.5 var(--epd-body-font);
}
.epd-web .epd-cover-art figcaption a { color: #12635c; text-decoration: underline; text-underline-offset: .15em; }

.epd-web .epd-home .epd-home-section {
  margin: 0; padding: clamp(23px, 3vw, 39px) 0 0;
  border-top: 1px solid var(--epd-edge); scroll-margin-top: 6.5rem;
}
.epd-web .epd-home .epd-section-title {
  color: var(--epd-ink); font-size: clamp(1.52rem, 2.6vw, 2.16rem); font-weight: 710;
  line-height: 1.2; letter-spacing: -.045em; margin: 0 0 clamp(15px, 2vw, 26px);
}
.epd-web .epd-courses {
  width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.8vw,24px);
}
.epd-web .epd-courses .epd-course {
  --epd-accent: #087466; --epd-wash: #f1f7f4; --epd-border: #cadbd5;
  display: flex; flex-direction: column; margin: 0; padding: clamp(16px,1.9vw,27px);
  border: 1px solid var(--epd-border); border-top: 3px solid var(--epd-accent);
  border-radius: 6px; background: var(--epd-wash); scroll-margin-top: 6.5rem;
}
.epd-web .epd-courses .epd-course-a2 { --epd-accent: #235793; --epd-wash: #f0f5fa; --epd-border: #cfdae6; }
.epd-web .epd-courses .epd-course-sts { --epd-accent: #8a551e; --epd-wash: #faf5ec; --epd-border: #e6dac7; }
.epd-web .epd-course .epd-course-meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px;
  color: var(--epd-accent); font-size: .80rem; font-weight: 685; line-height: 1.45; margin: 0;
}
.epd-web .epd-course-meta span:last-child { color: #52636a; font-weight: 550; }
.epd-web .epd-course h3 {
  margin: clamp(13px,1.75vw,23px) 0 8px;
  color: var(--epd-ink); font-size: clamp(1.85rem,2.7vw,2.65rem); font-weight: 705; line-height: 1; letter-spacing: -.045em;
}
.epd-web .epd-course h3 + p { margin: 0 0 14px; font-size: 1rem; color: #3f5261; line-height: 1.5; max-width: 34ch; }
.epd-web .epd-course a, .epd-web .epd-tools a {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 660; color: var(--epd-accent,var(--epd-teal)); text-decoration: none; line-height: 1.4;
}
.epd-web .epd-course a { align-self: flex-start; min-height: 35px; margin-top: auto; font-size: .94rem; }
.epd-web .epd-tools a { min-height: 44px; }
.epd-web .epd-course a:hover, .epd-web .epd-tools a:hover { text-decoration: underline; text-underline-offset: .22em; }
.epd-web .epd-home .epd-more { margin-top: clamp(27px,4.1vw,54px); }
.epd-web .epd-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.8vw,24px); }
.epd-web .epd-tools article { border-left: 2px solid #c5d9d9; padding-left: clamp(13px,1.4vw,20px); }
.epd-web .epd-tools h3 { font-size: 1.04rem; line-height: 1.45; letter-spacing: -.017em; margin-bottom: 5px; }
.epd-web .epd-tools p { color: var(--epd-muted); line-height: 1.52; font-size: .97rem; }

@container epd-portal (max-width: 660px) {
  .epd-web .epd-cover { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .epd-web .epd-cover .epd-deck { max-width: 55ch; }
  .epd-web .epd-courses, .epd-web .epd-tools { grid-template-columns: 1fr; }
  .epd-web .epd-courses .epd-course { display: grid; grid-template-columns: minmax(90px,.29fr) minmax(0,1fr); gap: 8px 18px; padding: 16px 18px; }
  .epd-web .epd-course h3 { grid-column: 1; grid-row: 1 / span 2; align-self: center; margin: 0; }
  .epd-web .epd-course .epd-course-meta, .epd-web .epd-course h3 + p, .epd-web .epd-course a { grid-column: 2; margin: 0; }
  .epd-web .epd-course a { min-height: 30px; }
  .epd-web .epd-tools article + article { margin-top: 4px; }
}
@container epd-portal (max-width: 440px) {
  .epd-web .epd-study-nav { align-items: flex-start; gap: 0 10px; }
  .epd-web [data-epd-nav] { gap: 0 13px; }
  .epd-web .epd-study-nav :where(a,button) { min-height: 41px; font-size: .88rem; }
  .epd-web .epd-study-nav [data-action="goals"] { min-height: 38px; margin: 0; }
  .epd-web .epd-home [data-epd-home-heading] { font-size: clamp(2.28rem,9vw,2.8rem); }
  .epd-web .epd-cover .epd-byline { margin-bottom: 8px; }
  .epd-web .epd-cover-links { gap: 2px 14px; margin-top: 16px; }
  .epd-web .epd-cover .epd-inline-link { min-height: 35px; }
  .epd-web .epd-courses .epd-course { display: flex; gap: 0; }
  .epd-web .epd-course h3 { align-self: stretch; margin: 11px 0 6px; }
  .epd-web .epd-course a { margin-top: 5px; min-height: 37px; }
}
@media (max-width: 540px) {
  .epd-web { padding-inline: clamp(8px,2.8vw,16px); }
}
@supports not (container-type: inline-size) {
  @media (max-width: 700px) {
    .epd-web .epd-cover, .epd-web .epd-courses, .epd-web .epd-tools { grid-template-columns: 1fr; }
  }
}

/* Link to the photo challenge in the home introduction. */
.epd-web .epd-home .epd-risk-invite {
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px);
  margin: 18px 0 0; padding: 12px 14px 12px 12px; border: 1px solid #a1cbbb;
  border-radius: 12px; background: #eef7ec; color: #173c35; text-decoration: none;
}
.epd-web .epd-risk-invite .epd-risk-thumb {
  flex: 0 0 auto; width: clamp(68px, 7vw, 100px); height: clamp(82px, 8vw, 108px);
  object-fit: cover; border-radius: 7px; margin: 0;
}
.epd-web .epd-risk-invite-copy { display: grid; gap: 4px; min-width: 0; }
.epd-web .epd-risk-invite-copy strong {
  color: #133d34; font: 760 clamp(1.12rem,1.7vw,1.5rem)/1.15 var(--epd-body-font); letter-spacing: -.035em;
}
.epd-web .epd-risk-invite-copy > span { font: 490 .97rem/1.4 var(--epd-body-font); }
.epd-web .epd-risk-invite-copy .epd-risk-invite-link {
  color: #0b5e4b; font-weight: 700; text-decoration: underline; text-underline-offset: .2em;
}
.epd-web .epd-risk-invite:hover { background: #e3f2e3; border-color: #44896d; }

.epd-web .epd-home .epd-prep-links {
  position: static; float: none; display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr));
  gap: 10px; margin: 16px 0 0; padding: 0; border: 0; box-shadow: none;
}
.epd-web .epd-prep-links a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 5px;
  min-width: 0; padding: 12px 14px; margin: 0; border: 1px solid #a9c8df;
  border-radius: 12px; color: #173649; background: #edf6fd; text-decoration: none; text-transform: none;
}
.epd-web .epd-prep-links a + a { border-color: #e3cb9c; background: #fcf5e6; color: #523b24; }
.epd-web .epd-prep-links a:hover { border-color: currentColor; }
.epd-web .epd-prep-links strong { font: 730 1.08rem/1.22 var(--epd-body-font); letter-spacing: -.025em; }
.epd-web .epd-prep-links a span { font: 490 .95rem/1.4 var(--epd-body-font); }
.epd-web .epd-prep-links b { font-weight: 700; white-space: nowrap; }

.epd-web .epd-release-label {
  display: block; margin: 16px 0 4px; padding: 12px 0 0; border-top: 1px solid var(--epd-edge);
  color: #455f6d; font: 550 .9rem/1.5 var(--epd-body-font); text-align: left;
}
