/* iFrawin Journal — media layout in the site's art direction:
   theme font (Muli), navy #072366 headings, grey #555 text, green #0aae70 accents, px units, flat. */
.ifj { --navy: #072366; --green: #0aae70; --green-dark: #078658; --text: #4a4a4a; --muted: #7a7a7a; --line: #e6ebe8;
  color: var(--text); background: #fff; }
.ifj h1, .ifj h2, .ifj h3 { color: var(--navy); font-weight: 800; letter-spacing: normal; }
.ifj a { text-decoration: none; }
.ifj-shell { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header: same light, flat page header as the other pages (associations, events) */
.ifj-mast { padding: 56px 0 40px; background: #f8fbfa; border-bottom: 1px solid var(--line); }
.ifj-mast__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ifj-mast h1 { margin: 0; font-size: 40px; line-height: 1.15; }
.ifj-mast p { max-width: 560px; margin: 12px 0 0; color: #555; font-size: 18px; line-height: 1.6; }
.ifj-search { display: flex; align-items: center; gap: 8px; width: 300px; max-width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); }
.ifj-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 174, 112, .15); }
.ifj-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #222; font: inherit; font-size: 15px; }
.ifj-results { margin: 0 0 20px !important; color: var(--muted) !important; font-size: 15px !important; }
.ifj-results a { color: var(--green-dark); font-weight: 700; }

/* Shared bits */
.ifj-cat { display: inline-block; color: var(--green-dark); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ifj-meta { margin: 0; color: var(--muted); font-size: 14px; }
.ifj-meta span + span::before { content: "·"; margin: 0 8px; }
.ifj-img { display: block; width: 100%; overflow: hidden; border-radius: 14px; background: #eef3f0; }
.ifj-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ifj-story:hover .ifj-img img { transform: scale(1.03); }
.ifj-story h2 a, .ifj-story h3 a { color: var(--navy); }
.ifj-story:hover h2 a, .ifj-story:hover h3 a { color: var(--green-dark); }

/* Lead story */
.ifj-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 32px 0 40px; border-bottom: 1px solid var(--line); }
.ifj-lead .ifj-img { aspect-ratio: 16 / 10; }
.ifj-lead h2 { margin: 10px 0 12px; font-size: 32px; line-height: 1.2; }
.ifj-lead p.ifj-excerpt { margin: 0 0 16px; color: var(--text); font-size: 17px; line-height: 1.65; }

/* Latest */
.ifj-block { padding: 40px 0 88px; }
.ifj-block__title { margin: 0 0 20px; font-size: 20px; }
.ifj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.ifj-grid .ifj-img { aspect-ratio: 16 / 10; margin-bottom: 14px; border-radius: 12px; }
.ifj-grid h3 { margin: 6px 0 6px; font-size: 18px; line-height: 1.35; }
.ifj-grid p.ifj-excerpt { margin: 0 0 10px; color: var(--text); font-size: 15px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ifj-empty { padding: 48px 0; text-align: center; }
.ifj-empty h2 { margin: 0 0 8px; font-size: 22px; }
.ifj-empty p { margin: 0; color: var(--muted); }
.ifj-empty a { color: var(--green-dark); font-weight: 700; }

/* Article: one reading column, like a newsletter */
.ifj-read { max-width: 720px; margin: 0 auto; padding: 36px 24px 72px; }
.ifj-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted) !important; font-size: 14px; font-weight: 700; }
.ifj-back:hover { color: var(--green-dark) !important; }
.ifj-read h1 { margin: 14px 0 14px; font-size: 38px; line-height: 1.18; }
.ifj-read .ifj-standfirst { margin: 0 0 18px; color: #333; font-size: 20px; line-height: 1.6; }
.ifj-read .ifj-meta { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ifj-cover { margin: 28px 0 32px; }
.ifj-cover .ifj-img { aspect-ratio: 16 / 9; border-radius: 16px; }
.ifj-body { color: #333; font-size: 18px; line-height: 1.8; }
.ifj-body p { margin: 0 0 1.2em; color: inherit; font-size: inherit; line-height: inherit; }
.ifj-body h2 { margin: 1.8em 0 .6em; font-size: 24px; line-height: 1.3; }
.ifj-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--green);
  color: var(--navy); font-size: 21px; font-weight: 700; line-height: 1.5; }
.ifj-body cite { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; font-style: normal; font-weight: 600; }
.ifj-body .ifj-callout { margin: 1.6em 0; padding: 20px 22px; border-radius: 14px; background: #f3f8f5; }
.ifj-body .ifj-callout strong { display: block; margin-bottom: 4px; color: var(--navy); }
.ifj-body .ifj-callout p { margin: 0; }
.ifj-body img { max-width: 100%; height: auto; border-radius: 12px; }
.ifj-body a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.ifj-body.is-plain { white-space: pre-line; }
.ifj-more { padding: 48px 0 72px; background: #f9f9f9; }
.ifj-more .ifj-block__title { margin-bottom: 22px; }

.ifj a:focus-visible, .ifj input:focus-visible { outline: 3px solid rgba(10, 174, 112, .45); outline-offset: 3px; }

@media (max-width: 900px) {
  .ifj-lead { grid-template-columns: 1fr; gap: 18px; }
  .ifj-lead h2 { font-size: 26px; }
  .ifj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ifj-mast { padding: 40px 0 28px; }
  .ifj-mast h1 { font-size: 30px; }
  .ifj-mast p { font-size: 16px; }
  .ifj-search { width: 100%; }
  .ifj-grid { grid-template-columns: 1fr; gap: 28px; }
  .ifj-read { padding-top: 20px; }
  .ifj-read h1 { font-size: 28px; }
  .ifj-read .ifj-standfirst { font-size: 18px; }
  .ifj-body { font-size: 17px; }
}

/* Article data blocks: dots, bars, lists, sources, CTA */
.ifj-list { margin: 0 0 24px; padding-left: 22px; list-style: disc outside !important; }
.ifj-list li { display: list-item !important; list-style: inherit !important; }
.ifj-sources ol { list-style: decimal outside !important; }
.ifj-sources li { display: list-item !important; }
.ifj-body strong { color: var(--navy); font-weight: 800; }
.ifj-list li { margin: 0 0 8px; line-height: 1.7; }
.ifj-list li::marker, .ifj-sources li::marker { color: var(--navy); }
.ifj-viz { margin: 36px 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb; }
.ifj-viz figcaption { margin-bottom: 18px; }
.ifj-viz figcaption strong { display: block; color: var(--navy); font-size: 17px; font-weight: 800; }
.ifj-viz figcaption span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.ifj-viz small { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; }
.ifj-viz small a { color: var(--green-dark); text-decoration: underline; }

.ifj-dots__wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ifj-dots__grid { display: grid; grid-template-columns: repeat(10, 18px); gap: 6px; }
.ifj-dots__grid i { width: 18px; height: 18px; border-radius: 50%; background: #dfe6e2; transform: scale(.4); opacity: 0;
  transition: transform .35s ease, opacity .35s ease, background .2s; }
.ifj-viz.is-in .ifj-dots__grid i { transform: scale(1); opacity: 1; }
.ifj-dots__grid i.on { background: var(--green); }
.ifj-dots__grid i:hover { background: var(--navy); }
.ifj-dots__grid i:nth-child(10n+1) { transition-delay: 0s; } .ifj-dots__grid i:nth-child(10n+2) { transition-delay: .03s; }
.ifj-dots__grid i:nth-child(10n+3) { transition-delay: .06s; } .ifj-dots__grid i:nth-child(10n+4) { transition-delay: .09s; }
.ifj-dots__grid i:nth-child(10n+5) { transition-delay: .12s; } .ifj-dots__grid i:nth-child(10n+6) { transition-delay: .15s; }
.ifj-dots__grid i:nth-child(10n+7) { transition-delay: .18s; } .ifj-dots__grid i:nth-child(10n+8) { transition-delay: .21s; }
.ifj-dots__grid i:nth-child(10n+9) { transition-delay: .24s; } .ifj-dots__grid i:nth-child(10n) { transition-delay: .27s; }
.ifj-dots__stat { flex: 1; min-width: 160px; }
.ifj-dots__stat b { color: var(--green-dark); font-size: 56px; font-weight: 800; line-height: 1; }
.ifj-dots__stat > span { color: var(--green-dark); font-size: 28px; font-weight: 800; }
.ifj-dots__stat p { margin: 8px 0 0; color: var(--text); font-size: 15px; line-height: 1.5; }

.ifj-bars__list { display: grid; gap: 10px; }
.ifj-bar { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 8px; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.ifj-bar:hover, .ifj-bar:focus-visible { background: #eef5f1; outline: none; }
.ifj-bar__label { color: var(--navy); font-size: 14px; font-weight: 700; }
.ifj-bar__track { height: 14px; border-radius: 999px; background: #e3eae6; overflow: hidden; }
.ifj-bar__fill { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--green); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.ifj-viz.is-in .ifj-bar__fill { width: var(--w); }
.ifj-bar:hover .ifj-bar__fill, .ifj-bar:focus-visible .ifj-bar__fill { background: var(--navy); }
.ifj-bar__value { color: var(--navy); font-size: 15px; font-weight: 800; white-space: nowrap; }
.ifj-bar__note { grid-column: 1 / -1; max-height: 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.5; transition: max-height .25s ease; }
.ifj-bar:hover .ifj-bar__note, .ifj-bar:focus-visible .ifj-bar__note { max-height: 80px; }
@media (max-width: 560px) { .ifj-bar { grid-template-columns: 1fr auto; } .ifj-bar__track { grid-column: 1 / -1; grid-row: 2; } }

.ifj-cta { margin: 32px 0; }
.ifj-cta a { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--green); color: #fff !important; font-weight: 800; }
.ifj-cta a:hover { background: var(--green-dark); }
.ifj-sources { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.ifj-sources h2 { font-size: 18px; }
.ifj-sources ol { padding-left: 20px; font-size: 14px; }
.ifj-sources li { margin-bottom: 6px; }
.ifj-sources a { color: var(--green-dark); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .ifj-viz *, .ifj-viz *::before { transition: none !important; } }

/* Article top bar: back link + share button */
.ifj-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ifj-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, color .2s; }
.ifj-share:hover { border-color: var(--green); color: var(--green-dark); }
.ifj-share.is-done { border-color: var(--green); color: var(--green-dark); }

/* Each article is a clearly separated card (light grey surface) */
.ifj-grid .ifj-story { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #edf1ef; border-radius: 16px;
  background: #f6f8f7; transition: background-color .2s, box-shadow .2s, transform .2s; }
.ifj-grid .ifj-story:hover { background: #fff; box-shadow: 0 12px 28px rgba(7, 35, 102, .08); transform: translateY(-3px); }
.ifj-grid .ifj-story .ifj-img { margin: 0; border-radius: 0; }
.ifj-grid .ifj-story > :not(.ifj-img) { margin-left: 18px; margin-right: 18px; }
.ifj-grid .ifj-story .ifj-cat { margin-top: 16px; }
.ifj-grid .ifj-story .ifj-meta { margin-top: auto; padding: 10px 0 18px; }
.ifj-more .ifj-grid .ifj-story { background: #fff; }

/* White cards with a very light elevation */
.ifj-grid .ifj-story, .ifj-more .ifj-grid .ifj-story { background: #fff; border-color: #eef1ef;
  box-shadow: 0 1px 2px rgba(7, 35, 102, .04), 0 4px 14px rgba(7, 35, 102, .05); }
.ifj-grid .ifj-story:hover { background: #fff; box-shadow: 0 2px 4px rgba(7, 35, 102, .05), 0 12px 26px rgba(7, 35, 102, .08); }

/* Article text justified (like Word); hyphenation avoids wide gaps */
.ifj-body p, .ifj-body li, .ifj-read .ifj-standfirst { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) { .ifj-body p, .ifj-body li, .ifj-read .ifj-standfirst { text-align: left; } }
/* no word breaking with hyphens in articles */
.ifj-body p, .ifj-body li, .ifj-read .ifj-standfirst { hyphens: manual; -webkit-hyphens: manual; }
/* Image credit under the article cover */
.ifj-credit { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: right; }
.ifj-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.ifj-credit a:hover { color: var(--green-dark); }

/* End-of-article engagement panel */
.ifj-body .ifj-engage { margin: 44px 0 8px; padding: 32px 28px 28px; border-radius: 16px; background: #f4f6fb; border: 1px solid #e3e8f2; }
.ifj-body .ifj-engage__kicker { margin: 0 0 8px; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ifj-body .ifj-engage h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; }
.ifj-body .ifj-engage__lead { margin: 0 0 22px; color: var(--text); font-size: 16px; line-height: 1.65; }
.ifj-engage__actions { display: grid; gap: 10px; }
.ifj-body a.ifj-action, .ifj-body a.ifj-action:hover { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid #e3e8f2; border-radius: 12px;
  background: #fff; color: var(--text); text-decoration: none !important; border-bottom-width: 1px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ifj-body a.ifj-action:hover, .ifj-body a.ifj-action:focus-visible { border-color: var(--navy); box-shadow: 0 6px 18px rgba(7,35,102,.08); transform: translateY(-1px); outline: none; }
.ifj-action__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eaf0fb; }
.ifj-action__icon svg, .ifj-action__arrow { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ifj-action__body { flex: 1; min-width: 0; }
.ifj-action__body strong { display: block; color: var(--navy); font-size: 16px; font-weight: 800; line-height: 1.3; }
.ifj-action__body span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ifj-action__arrow { flex: none; width: 20px; height: 20px; transition: transform .2s; }
.ifj-body a.ifj-action:hover .ifj-action__arrow { transform: translateX(4px); }
@media (max-width: 560px) { .ifj-body .ifj-engage { padding: 24px 18px 18px; } .ifj-body .ifj-engage h2 { font-size: 21px; } .ifj-action__icon { width: 38px; height: 38px; } }

/* Bars: before/after comparison (two thin stacked bars) */
.ifj-body .ifj-legend { display: flex; gap: 18px; margin: -6px 0 14px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ifj-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.ifj-legend .is-from::before { background: #b8c4dc; }
.ifj-legend .is-to::before { background: var(--green); }
.ifj-bar__track { position: relative; }
.has-compare .ifj-bar__track { height: 20px; background: none; border-radius: 0; }
.ifj-bar__from, .has-compare .ifj-bar__fill { position: absolute; left: 0; height: 8px; width: 0; border-radius: 999px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.ifj-bar__from { top: 0; background: #b8c4dc; }
.has-compare .ifj-bar__fill { bottom: 0; }
.has-compare .ifj-bar__track::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.ifj-viz.is-in .ifj-bar__from { width: var(--f); }
.ifj-bar__value em { font-style: normal; font-weight: 600; color: var(--muted); }
