/* ═══════════════════════════════════════════════════════════════════════
   Formats page — section-specific styles (patterns: artists-camp/formats-*)

   Exact values ported from artists-camp-3.0/src/pages/Formats.tsx inline
   styles. Composes on top of main.css (the ac-* vocabulary). Prefix: fmt-.
   Owned by the "formats-about" pattern group.

   Accordions: the ladder renders as native <details>/<summary> (core
   wp:details blocks) — no JS. [open] drives the chevron rotation.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── hero (horizon-trails backdrop) ──────────────────────────────────── */

.fmt-hero {
  position: relative;
  overflow: hidden;
}

.fmt-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.fmt-hero__wrap {
  position: relative;
  padding: clamp(56px, 9vw, 96px) clamp(16px, 4vw, 32px) clamp(48px, 7vw, 80px);
}

.fmt-hero__stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
}

.fmt-hero__stack > * {
  margin: 0;
}

.fmt-hero__title {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.02;
}

.fmt-hero__lead {
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.5;
  color: #516078;
  max-width: 560px;
  margin: 0;
  text-wrap: pretty;
}

/* ── the three phases (ink band) ─────────────────────────────────────── */

.fmt-phases__wrap {
  padding: clamp(52px, 7vw, 72px) clamp(16px, 4vw, 32px) clamp(56px, 8vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.fmt-phases__wrap > * {
  margin: 0;
}

.fmt-phases__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fmt-phases__head > * {
  margin: 0;
}

.fmt-phases__title {
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.fmt-phases__lead {
  color: #8b97aa;
  max-width: 640px;
}

.fmt-phases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.fmt-phases__grid > * {
  margin: 0;
}

.fmt-phase {
  background: #243047;
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fmt-phase > * {
  margin: 0;
}

.fmt-phase--green { border-top: 3px solid #19a974; }
.fmt-phase--amber { border-top: 3px solid #ffb000; }
.fmt-phase--coral { border-top: 3px solid #ff5a5f; }

.fmt-phase__days {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #8b97aa;
  letter-spacing: 0.08em;
}

.fmt-phase__name {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.fmt-phase__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #cdd4df;
}

/* ── the ladder (path-blocks backdrop + details/summary accordions) ──── */

.fmt-ladder {
  position: relative;
  overflow: hidden;
}

.fmt-ladder__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(180px, 24vw, 260px);
  object-fit: cover;
  opacity: 0.14;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.fmt-ladder__wrap {
  position: relative;
  padding: clamp(56px, 8vw, 88px) clamp(16px, 4vw, 32px) clamp(60px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fmt-ladder__wrap > * {
  margin: 0;
}

.fmt-ladder__head {
  max-width: 640px;
}

/* Vertical rail behind the icon nodes. */
.fmt-ladder__list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.fmt-ladder__list > * {
  margin: 0;
}

.fmt-ladder__list::before {
  content: "";
  position: absolute;
  left: clamp(21px, 3.5vw, 43px);
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: #cdd4df;
}

.fmt-row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(44px, 7.5vw, 88px) 1fr;
  padding: 14px 0;
}

.fmt-row > * {
  margin: 0;
}

.fmt-row__node {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 26px;
}

.fmt-dot {
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex: none;
}

.fmt-dot .wp-block-image {
  margin: 0;
  width: 60%;
  height: 60%;
}

.fmt-dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fmt-dot--kit       { background: #ddf7ec; border: 2px solid #19a974; }
.fmt-dot--intro     { background: #ddf5fc; border: 2px solid #33b5e5; }
.fmt-dot--intensive { background: #fff1cc; border: 2px solid #ffb000; }
.fmt-dot--mc        { background: #ffe6e7; border: 2px solid #ff5a5f; }
.fmt-dot--mm        { background: #f5f7fa; border: 2px solid #7a4db5; }

/* The accordion card (a core details block; pairs with hv-card). */
.fmt-acc {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  margin: 0;
}

/* Summary = the always-visible row (source: button.hv-row). */
.fmt-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.fmt-acc > summary::-webkit-details-marker {
  display: none;
}

.fmt-acc > summary::marker {
  content: "";
}

/* hv-row wash, replicated (the class can't sit on <summary> itself). */
.fmt-acc > summary:hover {
  background: #f5f7fa;
}

.fmt-sum-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 340px;
  min-width: 220px;
}

.fmt-sum-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.fmt-sum-headline {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: #111827;
  text-wrap: pretty;
}

.fmt-sum-blurb {
  font-size: 15px;
  font-weight: 400;
  color: #516078;
  line-height: 1.5;
  max-width: 640px;
  text-wrap: pretty;
}

.fmt-sum-side {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.fmt-sum-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fmt-sum-format {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.fmt-sum-exit {
  font-size: 13px;
  font-weight: 400;
  color: #8b97aa;
}

/* The + chevron circle (base .chev supplies inline-flex + transition). */
.fmt-sum-chev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #cdd4df;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #516078;
  font-weight: 600;
  flex-shrink: 0;
}

.fmt-acc[open] > summary .fmt-sum-chev {
  transform: rotate(45deg);
}

/* Expanded body. */
.fmt-body {
  border-top: 1px solid #e8ecf2;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 30px) clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #f5f7fa;
}

.fmt-body > * {
  margin: 0;
}

.fmt-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.fmt-chips > * {
  margin: 0;
}

.fmt-chip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 8px;
}

.fmt-chip > * {
  margin: 0;
}

.fmt-chip__k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.fmt-chip__v {
  font-size: 13.5px;
  line-height: 1.5;
  color: #243047;
}

.fmt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fmt-foot > * {
  margin: 0;
}

.fmt-note {
  font-size: 13px;
  color: #8b97aa;
}

/* Per-format accent (the source color700). */
.fmt-acc--kit .fmt-sum-eyebrow,
.fmt-acc--kit .fmt-chip__k { color: #0b7d58; }

.fmt-acc--intro .fmt-sum-eyebrow,
.fmt-acc--intro .fmt-chip__k { color: #00789e; }

.fmt-acc--intensive .fmt-sum-eyebrow,
.fmt-acc--intensive .fmt-chip__k { color: #9a6200; }

.fmt-acc--mc .fmt-sum-eyebrow,
.fmt-acc--mc .fmt-chip__k { color: #d7374f; }

.fmt-acc--mm .fmt-sum-eyebrow,
.fmt-acc--mm .fmt-chip__k { color: #7a4db5; }

/* ── editorial strip — inside the Intensive (performance-build) ──────── */

.fmt-figure__wrap {
  padding: 0 clamp(16px, 4vw, 32px) clamp(52px, 7vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fmt-figure__wrap > * {
  margin: 0;
}

.fmt-figure__img img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  display: block;
}

.fmt-figure__cap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.fmt-figure__cap > * {
  margin: 0;
}

.fmt-figure__cap .ac-eyebrow {
  flex-shrink: 0;
}

.fmt-figure__note {
  font-size: 14px;
  color: #516078;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ── the two rules (white band split) ────────────────────────────────── */

.fmt-rules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.fmt-rules__grid > * {
  margin: 0;
}

.fmt-rules__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fmt-rules__col > * {
  margin: 0;
}

.fmt-rules__col--pad {
  padding-top: 8px;
}

.fmt-rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fmt-rules-list > * {
  margin: 0;
}

.fmt-rule {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 22px;
  background: #fff1cc;
  border-radius: 8px;
}

.fmt-rule > * {
  margin: 0;
}

.fmt-rule__n {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #9a6200;
}

.fmt-rule__t {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.fmt-rules__iconrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fmt-rules__iconrow > * {
  margin: 0;
}

.fmt-rules__iconrow .wp-block-image {
  width: 40px;
  height: 40px;
  flex: none;
}

.fmt-rules__iconrow img {
  width: 40px;
  height: 40px;
  display: block;
}

.fmt-rules__h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 600;
  margin: 0;
  line-height: 1.18;
}

.fmt-rules__lead {
  text-wrap: pretty;
}

.fmt-rules__fine {
  font-size: 14px;
  line-height: 1.45;
  color: #8b97aa;
  margin: 0;
}
