/* Skipper Ledger · Features v2 · no-overlap layout.
   Rule: no UI card, chart, badge, caption or note ever sits on top of a photo.
   Stack: icon + heading + intro → bullets → card|photo (alternating). */
:root { --fx-gap: 32px; --fx-head-gap: 20px; --fx-photo-min: 320px; }

.fx { padding: 64px 0; border-bottom: 1px solid var(--line); }
.fx:last-child { border-bottom: 0; }

/* Intro (icon, h2, p) above bullets — nothing sits beside/above the heading */
.fx-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--fx-head-gap);
}
.fx-intro { max-width: 720px; }
.fx-head h2 { font-size: 30px; letter-spacing: -.02em; margin: 14px 0 10px; }
.fx-head p { font-size: 15.5px; color: var(--muted); line-height: 1.55; max-width: 640px; margin: 0; }

/* Bullets in a clean two-column row under the intro (single column on small screens) */
.fx-points { margin: 0; max-width: 960px; }
.fx-points ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
}
.fx-points li {
  display: flex; gap: 10px; font-size: 14.5px; padding: 8px 0;
  color: var(--ink-soft); border-bottom: 1px dashed var(--line);
}
.fx-points li:last-child { border-bottom: 1px dashed var(--line); }
/* In a 2-col grid, kill bottom border on the last row visually via :nth — keep simple dashed on all */

/* Row 2: UI card | photo — two separate cells, equal height, alternating sides */
.fx-media { display: grid; grid-template-columns: 7fr 5fr; gap: var(--fx-gap); align-items: stretch; margin-top: 36px; }
.fx--flip .fx-media { grid-template-columns: 5fr 7fr; }
.fx--flip .fx-card { order: 2; }
.fx-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fx-card .mini-card { border: 0; box-shadow: none; padding: 0; background: transparent; border-radius: 0; }
.fx-card .slot-label { margin-bottom: 12px; }
.fx-photo { display: flex; flex-direction: column; min-width: 0; }
.fx-photo__img { position: relative; flex: 1 1 auto; min-height: var(--fx-photo-min); margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--mint); aspect-ratio: auto; }
.fx-photo__img picture, .fx-photo__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); display: block; }
.fx-photo__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 12px 4px 0; min-height: 26px; }
.fx-photo__meta:empty { display: none; }
.fx-photo__cap { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--font-display); color: var(--ink-soft); }
.fx-photo__cap::before { content: ""; width: 8px; height: 10px; background: url("/assets/v3/motif/nib-tip-teal.svg?v=be47b005fe") center / contain no-repeat; }
.fx-photo__meta .margin-note { transform: rotate(-1.5deg); max-width: none; font-size: 20px; }

/* Remove the old overlap machinery (kept here as explicit resets in case shared CSS still ships it) */
.fx .photo-stack, .fx .overlay, .fx .note-pin { position: static !important; inset: auto !important; margin: 0 !important; width: auto !important; transform: none !important; }

@media (max-width: 1100px) { .fx-media, .fx--flip .fx-media { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) {
  .fx { padding: 40px 0; }
  .fx-head { gap: 16px; }
  .fx-head h2 { font-size: 24px; }
  .fx-points ul { grid-template-columns: 1fr; gap: 0; }
  .fx-media, .fx--flip .fx-media { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .fx--flip .fx-card { order: 0; } /* mobile: intro → bullets → UI card → photo */
  .fx-card { padding: 18px; }
  .fx-photo__img { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .fx-photo__meta { justify-content: flex-start; }
}

/* UI inside .fx-card: the cell is the card, so drop the inner card chrome */
.fx-card > .interactive, .fx-card > .cs, .fx-card > .bk { box-shadow: none; border-radius: 0; background: transparent; padding: 0; max-width: none; width: 100%; }
.fx-card > .cs--bar { max-width: 520px; }
