/* NovaPharm Markets: owner-approved Apple-inspired photographic editorial.
 * Scoped to the Markets route. No icon library, mock flags or fabricated claims.
 * Physical photography rather than synthetic composites for regional cards.
 */
main.markets-editorial {
  --markets-ink: #121318;
  --markets-muted: #555963;
  display: block;
  width: 100%;
  overflow: clip;
  background: #fff;
  color: var(--markets-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.markets-editorial *,
.markets-editorial *::before,
.markets-editorial *::after { box-sizing: border-box; }
.markets-editorial .markets-shell {
  width: min(100% - 76px, 1336px);
  margin-inline: auto;
}
.markets-editorial h1,
.markets-editorial h2,
.markets-editorial h3,
.markets-editorial p { margin-top: 0; }
.markets-editorial h1,
.markets-editorial h2,
.markets-editorial h3 {
  font-family: inherit;
  letter-spacing: 0;
  text-wrap: balance;
}
.markets-editorial .markets-overline {
  margin-bottom: 21px;
  font-size: 12px;
  font-weight: 640;
  line-height: 1.3;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #f3f4f9;
}
.markets-editorial .markets-overline-dark { color: #60636a; }
.markets-editorial .markets-hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  min-height: clamp(590px, 58vw, 780px);
  background: #080f1d;
  color: #fff;
}
.markets-editorial .markets-hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Preserve NASA's native detail and avoid dimming an already dark ISS frame. */
  object-position: center 46%;
  filter: saturate(1.04) contrast(1.07) brightness(1.10);
}
.markets-editorial .markets-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(4,11,22,.97) 0%,
    rgba(4,11,22,.89) 22%,
    rgba(4,11,22,.69) 40%,
    rgba(4,11,22,.21) 70%,
    rgba(4,11,22,.08) 100%);
  pointer-events: none;
}
.markets-editorial .markets-hero-content {
  padding-block: clamp(90px, 11vw, 158px) clamp(75px, 9vw, 126px);
  position: relative;
}
.markets-editorial .markets-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.3rem, 6.9vw, 6.55rem);
  font-weight: 640;
  line-height: .995;
  letter-spacing: 0;
}
.markets-editorial .markets-hero-intro {
  max-width: 515px;
  margin: 31px 0 0;
  color: rgba(255,255,255,.91);
  font-size: clamp(1.11rem, 1.58vw, 1.42rem);
  line-height: 1.56;
  letter-spacing: 0;
}
.markets-editorial .markets-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 36px;
}
.markets-editorial a.markets-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 630;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.markets-editorial a.markets-button:hover { transform: translateY(-1px); }
.markets-editorial a.markets-button:focus-visible,
.markets-editorial a.markets-detail-link:focus-visible,
.markets-editorial .markets-photo-credits a:focus-visible {
  outline: 3px solid #77b8ff;
  outline-offset: 4px;
}
.markets-editorial a.markets-button-light { color: #17171a; background: #fff; }
.markets-editorial a.markets-button-light:hover { background: #ececec; }
.markets-editorial a.markets-button-outline { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(8,13,24,.15); }
.markets-editorial a.markets-button-outline:hover { background: rgba(255,255,255,.15); }
.markets-editorial a.markets-button-dark { background: #171719; color: #fff; }
.markets-editorial a.markets-button-dark:hover { background: #3c3d42; }
.markets-editorial .markets-regions {
  padding-block: clamp(90px, 9.1vw, 146px) clamp(68px, 8vw, 122px);
  background: #fff;
}
.markets-editorial .markets-regions-heading { text-align: center; margin: 0 auto clamp(46px, 5vw, 75px); }
.markets-editorial .markets-regions-heading h2 {
  max-width: 1130px;
  margin: 0 auto 18px;
  font-size: clamp(2.8rem, 5.7vw, 5.4rem);
  font-weight: 640;
  line-height: 1.07;
  color: #0d0d10;
}
.markets-editorial .markets-regions-heading > p:last-child {
  margin: 0;
  font-size: clamp(1.18rem, 1.82vw, 1.5rem);
  line-height: 1.5;
  color: #6a6c73;
}
.markets-editorial .markets-photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 18px;
}
.markets-editorial .markets-card {
  grid-column: span 2;
  position: relative;
  isolation: isolate;
  height: clamp(380px, 35vw, 455px);
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #232c37;
  color: #fff;
}
.markets-editorial .markets-card:nth-child(n+4) {
  grid-column: span 3;
  height: clamp(380px, 35vw, 455px);
}
.markets-editorial .markets-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.markets-editorial .markets-card--eu img { object-position: 55% center; }
.markets-editorial .markets-card--ca img { object-position: center 50%; }
.markets-editorial .markets-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg,transparent 8%,rgba(4,8,14,.17) 40%,rgba(4,9,16,.92) 100%);
  pointer-events: none;
}
.markets-editorial .markets-card-copy {
  position: absolute;
  z-index: 1;
  left: clamp(24px,3.2vw,38px);
  right: clamp(24px,3.2vw,38px);
  bottom: clamp(24px,3.1vw,38px);
}
.markets-editorial .markets-card-region {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgba(255,255,255,.93);
}
.markets-editorial .markets-card h3 {
  margin: 0 0 11px;
  color: #fff;
  font-size: clamp(1.45rem,2.15vw,2.2rem);
  font-weight: 620;
  line-height: 1.16;
  letter-spacing: 0;
}
.markets-editorial .markets-card p {
  max-width: 460px;
  margin: 0;
  color: rgba(255,255,255,.93);
  font-size: clamp(.91rem,1.12vw,1.04rem);
  line-height: 1.5;
}
.markets-editorial .markets-region-boundary {
  max-width: 1060px;
  margin: 31px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #666972;
}
.markets-editorial .markets-principle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f2f3f5;
}
.markets-editorial .markets-principle-photo { min-height: 510px; }
.markets-editorial .markets-principle-photo img { display: block; width: 100%; height: 100%; max-height: 730px; min-height: 510px; object-fit: cover; }
.markets-editorial .markets-principle-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px,7.5vw,117px) clamp(34px,7.4vw,113px);
}
.markets-editorial .markets-principle h2 {
  max-width: 610px;
  margin: 0 0 25px;
  font-size: clamp(2.95rem,4.9vw,5.1rem);
  font-weight: 630;
  line-height: 1.08;
  letter-spacing: 0;
}
.markets-editorial .markets-principle-copy > p:not(.markets-overline) {
  max-width: 640px;
  font-size: clamp(1.02rem,1.35vw,1.22rem);
  line-height: 1.6;
  color: #444a54;
}
.markets-editorial .markets-principle-copy .markets-principle-boundary {
  margin: 23px 0 0;
  padding-top: 19px;
  border-top: 1px solid #d4d7dc;
  font-size: 14px !important;
  line-height: 1.6;
}
.markets-editorial .markets-detail-link {
  align-self: flex-start;
  display: inline-block;
  margin-top: 18px;
  color: #245f98;
  font-size: 15px;
  font-weight: 630;
  text-decoration: underline;
  text-underline-offset: .3em;
}
.markets-editorial .markets-final {
  padding: clamp(90px,11vw,160px) 0 clamp(90px,10vw,140px);
  text-align: center;
  background: #fff;
}
.markets-editorial .markets-final h2 {
  margin: 0 auto 21px;
  max-width: 1120px;
  font-size: clamp(2.8rem,5.7vw,5.6rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 640;
}
.markets-editorial .markets-final > .markets-shell > p {
  margin: 0 auto 29px;
  color: #60646d;
  font-size: clamp(1.08rem,1.75vw,1.43rem);
  line-height: 1.56;
}
.markets-editorial .markets-final .markets-final-note {
  margin: 28px auto 0;
  max-width: 680px;
  font-size: 13px !important;
  line-height: 1.5;
}
.markets-editorial .markets-photo-credits {
  padding: 20px 0 38px;
  background: #fff;
  color: #686a71;
  font-size: 12px;
  line-height: 1.5;
}
.markets-editorial .markets-photo-credits summary::marker { content: ""; }
.markets-editorial .markets-photo-credits summary::-webkit-details-marker { display: none; }
.markets-editorial .markets-photo-credits details {
  max-width: 940px;
  margin: 0 auto;
}
.markets-editorial .markets-photo-credits summary {
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.markets-editorial .markets-photo-credits details[open] > p { margin: 12px 0 0; }
.markets-editorial .markets-photo-credits a { color: #4a505b; }
@media (hover: hover) {
  .markets-editorial .markets-card:hover img { transform: scale(1.025); }
}
@media (max-width: 1040px) {
  .markets-editorial .markets-shell { width: min(100% - 52px, 1336px); }
  .markets-editorial .markets-card { grid-column: span 3; height: 420px; }
  .markets-editorial .markets-card:nth-child(n+4) { grid-column: span 3; height: 420px; }
  .markets-editorial .markets-card:last-child { grid-column: 2 / span 4; }
  .markets-editorial .markets-hero { min-height: 610px; }
  .markets-editorial .markets-principle-copy { padding: 64px 42px; }
}
@media (max-width: 680px) {
  .markets-editorial .markets-shell { width: min(100% - 36px, 1336px); }
  .markets-editorial .markets-hero { min-height: 660px; align-items: flex-end; }
  .markets-editorial .markets-hero-photo { object-position: 60% center; }
  .markets-editorial .markets-hero-shade {
    background: linear-gradient(180deg,rgba(4,11,22,.14),rgba(4,11,22,.65) 25%,rgba(4,11,22,.96) 78%,#040b16);
  }
  .markets-editorial .markets-hero-content { padding-block: 95px 65px; }
  .markets-editorial .markets-hero h1 { font-size: clamp(2.95rem,11.4vw,4.7rem); }
  .markets-editorial .markets-hero-intro { margin-top: 24px; font-size: 1.06rem; line-height: 1.5; }
  .markets-editorial .markets-actions { gap: 11px; margin-top: 28px; }
  .markets-editorial a.markets-button { min-height: 45px; padding: 12px 19px; font-size: 13px; }
  .markets-editorial .markets-regions { padding-block: 74px 78px; }
  .markets-editorial .markets-regions-heading { margin-bottom: 36px; }
  .markets-editorial .markets-regions-heading h2 { font-size: clamp(2.55rem,9vw,3.5rem); }
  .markets-editorial .markets-regions-heading > p:last-child { font-size: 1.09rem; }
  .markets-editorial .markets-photo-grid { display: block; }
  .markets-editorial .markets-card,
  .markets-editorial .markets-card:nth-child(n+4),
  .markets-editorial .markets-card:last-child {
    height: clamp(385px,105vw,540px);
    margin-bottom: 14px;
    border-radius: 16px;
  }
  .markets-editorial .markets-card-copy { left: 24px; right: 24px; bottom: 27px; }
  .markets-editorial .markets-card h3 { font-size: 1.85rem; }
  .markets-editorial .markets-card p { font-size: .96rem; }
  .markets-editorial .markets-region-boundary { margin-top: 24px; font-size: 13px; }
  .markets-editorial .markets-principle { grid-template-columns: 1fr; }
  .markets-editorial .markets-principle-photo,
  .markets-editorial .markets-principle-photo img { min-height: 0; height: min(75vw,460px); }
  .markets-editorial .markets-principle-copy { padding: 70px 24px 78px; }
  .markets-editorial .markets-principle h2 { font-size: clamp(2.8rem,10vw,4rem); }
  .markets-editorial .markets-final { padding-block: 88px 78px; }
  .markets-editorial .markets-final h2 { font-size: clamp(2.75rem,10vw,4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .markets-editorial *, .markets-editorial *::before, .markets-editorial *::after {
    transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
