/* Shared Istanbul Press & Media palette and Forum typography. */
.fm-magazine {
  --fm-ink: var(--ep-bg, #111126);
  --fm-sheet: var(--ep-panel, #1b1a34);
  --fm-type: var(--ep-text, #f6f4ff);
  --fm-secondary: var(--ep-muted, #d0cce3);
  --fm-rule: var(--ep-line, #514572);
  --fm-link: var(--ep-accent, #bdf5ff);
  --fm-gold: var(--ep-gold, #f5d77f);
  --fm-purple: var(--ep-action, #6c39ff);
  --fm-white: var(--ep-paper, #fff);
  display: block;
  margin: 0;
  padding: 0 0 clamp(32px, 5vw, 76px);
  color: var(--fm-type);
  background: var(--fm-ink);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.55;
  isolation: isolate;
}
.fm-magazine *,
.fm-magazine *::before,
.fm-magazine *::after { box-sizing: border-box; }
.fm-magazine .fm-wrap {
  width: min(1248px, calc(100% - clamp(32px, 7vw, 112px)));
  margin-inline: auto;
}
.fm-magazine h1,
.fm-magazine h2,
.fm-magazine h3,
.fm-magazine p,
.fm-magazine figure {
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
}
.fm-magazine .fm-masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(26px, 4vw, 58px) 20px;
  border-block-end: 3px solid var(--fm-gold);
}
.fm-magazine .fm-masthead h1 {
  font-size: clamp(32px, 4.15vw, 62px);
  letter-spacing: -.055em;
  line-height: 1.02;
  font-weight: 750;
}
.fm-magazine .fm-dateline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  color: var(--fm-secondary);
  font-weight: 550;
  line-height: 1.4;
  text-align: end;
}
.fm-magazine .fm-dateline span + span {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--fm-rule);
}
.fm-magazine .fm-lead-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 56px);
  padding-block: clamp(24px, 3.3vw, 48px) 0;
  align-items: start;
}
.fm-magazine .fm-story { min-width: 0; }
.fm-magazine .fm-story--secondary {
  border-inline-start: 1px solid var(--fm-rule);
  padding-inline-start: clamp(24px, 3.6vw, 56px);
}
.fm-magazine .fm-story-copy { min-width: 0; }
.fm-magazine .fm-topic {
  margin-block-end: 9px;
  color: var(--fm-gold);
  font-weight: 680;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .045em;
}
.fm-magazine .fm-headline {
  color: var(--fm-type);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.037em;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.fm-magazine .fm-story--lead .fm-headline { font-size: clamp(35px, 3.8vw, 58px); }
.fm-magazine .fm-story--secondary .fm-headline { font-size: clamp(27px, 2.53vw, 39px); }
.fm-magazine .fm-story--press .fm-headline { font-size: clamp(23px, 2vw, 31px); }
.fm-magazine .fm-story--social .fm-headline { font-size: clamp(19px, 1.8vw, 26px); }
.fm-magazine a.fm-story-link {
  color: var(--fm-type);
  font: inherit;
  text-decoration: none;
}
.fm-magazine a.fm-story-link:hover {
  color: var(--fm-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}
.fm-magazine a:focus-visible {
  outline: 2px solid var(--fm-link) !important;
  outline-offset: 4px !important;
}
.fm-magazine .fm-deck {
  margin-block-start: 12px;
  max-width: 65ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--fm-secondary);
  overflow-wrap: break-word;
}
.fm-magazine .fm-story--lead .fm-deck { font-size: clamp(16px, 1.45vw, 21px); }
.fm-magazine .fm-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin-block-start: 13px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
  color: var(--fm-gold);
}
.fm-magazine .fm-source time {
  border-inline-start: 1px solid var(--fm-rule);
  padding-inline-start: 10px;
  color: var(--fm-secondary);
  font-weight: 500;
}
.fm-magazine .fm-photo { display: block; min-width: 0; }
.fm-magazine .fm-photo figcaption {
  padding-block-start: 7px;
  color: var(--fm-secondary);
  line-height: 1.4;
  font-size: 12px;
}
.fm-magazine .fm-image-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--fm-sheet);
}
.fm-magazine .fm-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}
.fm-magazine .fm-story--lead > .fm-photo { margin-block-start: clamp(18px, 2vw, 28px); }
.fm-magazine .fm-story--secondary > .fm-photo { margin-block-end: 19px; }
.fm-magazine .fm-story--secondary .fm-image-frame { aspect-ratio: 3 / 2; }
.fm-magazine .fm-section {
  margin-block-start: clamp(34px, 4.7vw, 72px);
  border-block-start: 1px solid var(--fm-rule);
}
.fm-magazine .fm-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: clamp(19px, 2.2vw, 32px);
}
.fm-magazine .fm-section-head h2 {
  font-weight: 700;
  font-size: clamp(24px, 2.55vw, 39px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.fm-magazine a.fm-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px 0;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fm-link);
  text-underline-offset: .3em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.fm-magazine a.fm-inline-link:hover { color: var(--fm-white); }
.fm-magazine .fm-press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.fm-magazine .fm-story--press > .fm-photo { margin-block-end: 16px; }
.fm-magazine .fm-story--press .fm-deck,
.fm-magazine .fm-story--social .fm-deck { font-size: 15px; }
.fm-magazine .fm-gallery {
  margin-block-start: clamp(34px, 4.7vw, 72px);
  background: var(--fm-sheet);
  border-block: 1px solid var(--fm-rule);
  padding-block: 5px clamp(20px, 2.8vw, 40px);
}
.fm-magazine .fm-contact-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 15px);
}
.fm-magazine .fm-contact-sheet .fm-image-frame {
  height: clamp(176px, 17vw, 245px);
  aspect-ratio: auto;
}
.fm-magazine .fm-contact-sheet:has(> :only-child) { grid-template-columns: 1fr; }
.fm-magazine .fm-contact-sheet:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.fm-magazine .fm-actions { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-block-start: 19px; }
.fm-magazine a.fm-gallery-open {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 45px;
  padding: 11px 19px;
  border-radius: 7px;
  background: var(--fm-purple);
  color: var(--fm-white);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.fm-magazine a.fm-gallery-open:hover { text-decoration: underline; text-underline-offset: .2em; }
.fm-magazine .fm-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 24px;
}
.fm-magazine .fm-story--social {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--fm-rule);
}
.fm-magazine .fm-story--social:has(> .fm-photo) { grid-template-columns: clamp(78px, 7.5vw, 112px) minmax(0, 1fr); }
.fm-magazine .fm-story--social .fm-image-frame { aspect-ratio: 1; }

@media (max-width: 760px) {
  .fm-magazine .fm-masthead { display: block; padding-block: 24px 15px; }
  .fm-magazine .fm-dateline { text-align: start; margin-top: 10px; }
  .fm-magazine .fm-lead-spread { grid-template-columns: 1fr; gap: 24px; }
  .fm-magazine .fm-story--secondary {
    border-inline-start: 0;
    border-block-start: 1px solid var(--fm-rule);
    padding-inline-start: 0;
    padding-block-start: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
  }
  .fm-magazine .fm-story--secondary:not(:has(> .fm-photo)) { grid-template-columns: 1fr; }
  .fm-magazine .fm-story--secondary > .fm-photo { margin: 0; }
  .fm-magazine .fm-press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-magazine .fm-contact-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-magazine .fm-contact-sheet .fm-image-frame { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 525px) {
  .fm-magazine .fm-story--secondary { display: flex; flex-direction: column; gap: 15px; }
  .fm-magazine .fm-story--secondary .fm-story-copy { order: -1; }
  .fm-magazine .fm-story--secondary .fm-photo { width: 100%; }
  .fm-magazine .fm-story--secondary .fm-image-frame { aspect-ratio: 2 / 1; }
  .fm-magazine .fm-press-grid { grid-template-columns: 1fr; }
  .fm-magazine .fm-story--press + .fm-story--press {
    padding-block-start: 22px;
    border-block-start: 1px solid var(--fm-rule);
  }
  .fm-magazine .fm-contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-magazine .fm-contact-sheet > .fm-photo:first-child { grid-column: 1 / -1; }
  .fm-magazine .fm-contact-sheet > .fm-photo:first-child .fm-image-frame { aspect-ratio: 16 / 8; }
  .fm-magazine .fm-contact-sheet:has(> :nth-child(2):last-child) > .fm-photo:first-child { grid-column: auto; }
  .fm-magazine .fm-actions { gap: 5px 14px; }
}
