/* ══════════════════════════════════════════════════════════════════════
   CANWYF — shared components for pages rebuilt against the Operating Framework
   File: public_html/assets/css/framework.css
   Uses the brand tokens defined in site.css (:root). Prefix: fw-
   ══════════════════════════════════════════════════════════════════════ */

.fw-prose { max-width: 760px; }
.fw-prose p { font-size: 1rem; line-height: 1.8; color: var(--ink-mid); margin: 0 0 16px; }
.fw-prose p:last-child { margin-bottom: 0; }
.fw-prose h3 {
  font-family: var(--ff-display); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); margin: 32px 0 10px;
}
.fw-prose ul, .fw-prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-mid); line-height: 1.75; }
.fw-prose li { margin-bottom: 6px; }
.fw-prose a { color: var(--green); font-weight: 600; }

.fw-lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.75; color: var(--ink-mid); max-width: 760px; }

/* Card grid */
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.fw-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .fw-grid.two { grid-template-columns: 1fr; } }
.fw-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit; transition: var(--t-base);
}
a.fw-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fw-card h3 { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0; }
.fw-card p { font-size: .92rem; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.fw-card .fw-more { margin-top: auto; padding-top: 6px; font-size: .82rem; font-weight: 700; color: var(--green); }
.bg-pale .fw-card { background: var(--white); }

/* Programme status badges */
.fw-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-full); font-weight: 500;
}
.fw-badge.running { background: var(--green-light); color: var(--green-deep); }
.fw-badge.design  { background: var(--gold-light);  color: #6b4e05; }
.fw-badge.neutral { background: #ecebe6; color: var(--ink-mid); }
.fw-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Tables */
.fw-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--white); }
.fw-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.fw-table th, .fw-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); line-height: 1.6; }
.fw-table th { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; background: var(--cream); }
.fw-table tr:last-child td { border-bottom: none; }
.fw-table td:first-child { font-weight: 600; color: var(--ink); }

/* Numbered steps */
.fw-steps { list-style: none; counter-reset: fw; margin: 0; padding: 0; display: grid; gap: 14px; }
.fw-steps > li {
  counter-increment: fw; position: relative; padding: 18px 20px 18px 64px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-md);
  line-height: 1.7; color: var(--ink-mid); font-size: .95rem;
}
.fw-steps > li::before {
  content: counter(fw); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--ff-mono); font-size: .85rem; display: grid; place-items: center;
}
.fw-steps > li strong { color: var(--ink); }

/* Callout */
.fw-note {
  border-left: 4px solid var(--gold-warm); background: var(--gold-light);
  padding: 18px 22px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-mid); line-height: 1.7; font-size: .95rem; max-width: 820px;
}
.fw-note.green { border-left-color: var(--green); background: var(--green-pale); }
.fw-note strong { color: var(--ink); }

/* "Does not" list */
.fw-nots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.fw-not { padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--white); }
.fw-not h4 { margin: 0 0 6px; font-family: var(--ff-display); font-size: 1.02rem; color: var(--ink); }
.fw-not p { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--ink-soft); }

/* Stat row (plain numbers, honest labels) */
.fw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.fw-stat { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 18px; }
.fw-stat b { display: block; font-family: var(--ff-display); font-size: 1.9rem; color: var(--green-deep); line-height: 1.1; }
.fw-stat span { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; display: block; margin-top: 4px; }

/* People */
.fw-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.fw-person { padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--white); }
.fw-person .n { font-family: var(--ff-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.fw-person .r { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .6px; text-transform: uppercase; color: var(--green); margin-top: 4px; }
.fw-person .d { font-size: .85rem; color: var(--ink-soft); line-height: 1.6; margin-top: 8px; }

.fw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fw-mt { margin-top: 32px; }

@media (max-width: 560px) {
  .fw-card { padding: 20px; }
  .fw-steps > li { padding: 16px 16px 16px 58px; }
  .fw-steps > li::before { left: 14px; }
}
