/* ==========================================================================
   rt-theme.css -- the robodatech.com theme, for the Funded Projects pages.

   Loaded LAST on funding.html, backers.html and funding-terms.html (after
   cnc.css, shop.css and funding.css) so the Funded Projects pages look like
   the rest of robodatech.com rather than like the CNC catalogue:

   * the store's palette (ink, sage, yellow, coral, peach, blue), its fonts
     (Outfit for headings, DM Sans for text -- copied into /cnc-machines/fonts
     so these pages do not depend on the store's release files), its flat
     2px-radius components, its header, ribbon and footer;
   * LIGHT ONLY.  The owner asked for no dark theme.  <html data-theme="light">
     already switches off cnc.css's prefers-color-scheme block (it is guarded by
     :not([data-theme="light"])); the token block below is also declared for
     [data-theme="dark"], so no script can flip these pages dark either.

   The store's own class names (.header, .nav, .brand, .wrap ...) collide with
   the CNC stylesheet's, so the store chrome here is re-declared under an
   `rt-` prefix instead of loading the store's store.css.

   CSP: style-src 'self'.  No inline styles anywhere; every visual state is a
   class declared in this file.
   ========================================================================== */

@font-face {
  font-family: Outfit;
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens -- */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: light;

  /* the store's palette, verbatim */
  --rt-ink: #202725;
  --rt-muted: #616763;
  --rt-paper: #ffffff;
  --rt-sage: #e5efdd;
  --rt-sage-deep: #d6e5cb;
  --rt-yellow: #ffe66d;
  --rt-coral: #ff654f;
  --rt-coral-hover: #f15440;
  --rt-coral-deep: #b73e2d;
  --rt-link: #9c3426;
  --rt-blue: #dcedef;
  --rt-line: #dfe4dd;
  --rt-peach: #ffede7;
  --rt-cream: #f9f1ce;
  --rt-lilac: #eeeaf5;
  --rt-leaf: #f5f7f0;
  --rt-foot: #f7f8f3;
  --rt-field: #bdc7bc;
  --rt-font: "DM Sans", Arial, sans-serif;
  --rt-display: Outfit, "DM Sans", Arial, sans-serif;

  /* the CNC tokens funding.css is written against, mapped onto that palette */
  --bg: #ffffff;
  --bg-tint: var(--rt-sage);
  --surface: #ffffff;
  --surface-2: var(--rt-leaf);
  --surface-3: #e9eee4;
  --ink: var(--rt-ink);
  --ink-2: #4b554e;
  --ink-3: var(--rt-muted);
  --line: var(--rt-line);
  --line-2: #c9d2c6;
  --line-3: #a9b4aa;
  --accent: var(--rt-coral-deep);
  --accent-hover: var(--rt-link);
  --accent-ink: var(--rt-ink);
  --accent-soft: var(--rt-peach);
  --accent-line: #f6b7a8;
  --good: #2f6b3c;
  --good-soft: var(--rt-sage);
  --info: #2c5b64;
  --info-soft: var(--rt-blue);
  --warn: #7a5a00;
  --warn-soft: var(--rt-cream);
  --none: #5b6470;
  --none-soft: #eef0ec;
  --danger: #b23a28;
  --danger-soft: #ffebe4;
  --price-ink: var(--rt-ink);
  --price-sub: var(--rt-muted);
  --focus: #245d4c;
  --radius: 2px;
  --radius-lg: 2px;
  --shadow-1: none;
  --shadow-2: none;
  --shadow-3: 0 12px 40px rgba(0, 0, 0, .14);
  --font-sans: var(--rt-font);
}

/* ------------------------------------------------------------------ base -- */
html { background: var(--rt-paper); }
body.rt {
  background: var(--rt-paper);
  color: var(--rt-ink);
  font: 15px/1.55 var(--rt-font);
}
body.rt h1, body.rt h2, body.rt h3, body.rt h4 {
  font-family: var(--rt-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--rt-ink);
}
body.rt h1 { font-size: clamp(38px, 5.2vw, 64px); }
body.rt h2 { font-size: clamp(26px, 2.6vw, 38px); }
body.rt h3 { font-size: 21px; letter-spacing: -.015em; }
body.rt a { color: inherit; }
body.rt .prose a,
body.rt .lede a,
body.rt .honesty a,
body.rt .rt-link { color: var(--rt-link); text-decoration: underline; text-underline-offset: 3px; }
body.rt :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* The store's .wrap: 1280px, 40px gutters, 24px under 1050, 18px under 760. */
body.rt .shell,
.rt-wrap {
  width: min(1280px, calc(100% - 80px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
@media (max-width: 1050px) {
  body.rt .shell, .rt-wrap { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
  body.rt .shell, .rt-wrap { width: calc(100% - 36px); }
}

body.rt .lede { max-width: 68ch; font-size: 17px; color: #4b554e; }
body.rt .honesty {
  max-width: 76ch;
  padding: 14px 16px;
  margin: 18px 0 0;
  background: var(--rt-paper);
  border-left: 3px solid #557b49;
  font-size: 14px;
}
body.rt .skip-link { background: var(--rt-paper); color: var(--rt-ink); }

/* --------------------------------------------------------------- chrome -- */
.rt-announce { background: var(--rt-sage); font-size: 12px; padding: 8px 0; }
.rt-announce .rt-wrap { display: flex; justify-content: space-between; gap: 16px; }

.rt-header { background: var(--rt-paper); border-bottom: 1px solid var(--rt-line); }
.rt-head-inner { display: flex; align-items: center; gap: 36px; min-height: 88px; }
.rt-brand {
  font-family: var(--rt-display);
  font-size: 32px;
  letter-spacing: -1.6px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--rt-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.rt-brand b { color: var(--rt-coral); font-weight: 600; }
.rt-brand-mark { width: 28px; height: 28px; margin-right: 8px; }
.rt-nav { display: flex; gap: 27px; margin-left: auto; font-size: 13px; }
.rt-nav a { padding: 12px 0; white-space: nowrap; color: var(--rt-ink); text-decoration: none; }
.rt-nav a:hover,
.rt-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--rt-coral); }
.rt-tools { display: flex; align-items: center; gap: 16px; margin-left: 14px; }
.rt-icon {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  color: var(--rt-ink);
  cursor: pointer;
}
.rt-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.rt-toggle { display: none; font-size: 20px; }

.rt-ribbon { background: var(--rt-yellow); font-size: 12px; padding: 10px 0; }
.rt-ribbon .rt-wrap { display: flex; justify-content: space-between; gap: 20px; }
.rt-ribbon a { text-decoration: underline; text-underline-offset: 3px; }
.rt-dot::before { content: "\25CF"; font-size: 10px; margin-right: 9px; }

.rt-footer { padding: 48px 0 20px; background: var(--rt-foot); margin-top: 56px; }
.rt-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.rt-footer-intro p { margin: 16px 0; font-size: 16px; max-width: 260px; }
.rt-footer h3 { font: 12px var(--rt-font); letter-spacing: 0; margin: 6px 0 19px; }
.rt-footer ul { padding: 0; margin: 0; list-style: none; }
.rt-footer li { font-size: 12px; margin: 0 0 10px; color: #515a53; }
.rt-footer a { text-decoration: none; }
.rt-footer a:hover { text-decoration: underline; }
.rt-footer-bottom {
  border-top: 1px solid var(--rt-line);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--rt-muted);
}

@media (max-width: 1050px) {
  .rt-head-inner { gap: 20px; }
  .rt-nav { gap: 16px; }
  .rt-brand { font-size: 28px; }
  .rt-tools { gap: 5px; }
  .rt-footer-grid { gap: 25px; }
}
@media (max-width: 760px) {
  .rt-announce { text-align: center; }
  .rt-announce .rt-wrap { justify-content: center; }
  .rt-announce .rt-wrap span:last-child { display: none; }
  .rt-head-inner { min-height: 72px; gap: 6px; flex-wrap: wrap; }
  .rt-brand { font-size: 22px; letter-spacing: -1px; }
  .rt-brand-mark { width: 22px; height: 22px; margin-right: 6px; }
  .rt-tools { margin-left: auto; gap: 1px; }
  .rt-tools .rt-icon { min-width: 32px; padding: 6px; }
  .rt-tools .rt-icon svg { width: 19px; height: 19px; }
  .rt-tools .rt-search { display: none; }
  .rt-toggle { display: inline-flex; }
  .rt-nav { display: none; order: 4; width: 100%; margin: 0; padding: 10px 0 20px;
            flex-wrap: wrap; gap: 15px 24px; }
  .rt-nav.is-open { display: flex; }
  .rt-ribbon { font-size: 10px; }
  .rt-ribbon .rt-wrap span:last-child { display: none; }
  .rt-footer-grid { grid-template-columns: 1fr 1fr; }
  .rt-footer-intro { grid-column: 1 / -1; }
  .rt-footer-bottom { flex-direction: column; }
}

/* --------------------------------------------------------- page banner -- */
.rt-banner { background: var(--rt-sage); padding: 44px 0 40px; }
.rt-banner .crumbs, .rt-crumbs { font-size: 11px; color: var(--rt-muted); padding: 0; margin: 0 0 14px; }
.rt-banner .crumbs a, .rt-crumbs a { color: var(--rt-muted); }
.rt-eyebrow {
  display: block;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.rt-banner h1 { margin: 0 0 14px; }
.rt-banner__row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end;
                  justify-content: space-between; }

/* ------------------------------------------------------------- buttons -- */
body.rt .btn {
  gap: 14px;
  padding: 14px 22px;
  min-height: 48px;
  border: 1px solid #a9b4aa;
  border-radius: 2px;
  background: transparent;
  color: var(--rt-ink);
  font-size: 14px;
  font-weight: 500;
}
body.rt .btn:hover { background: var(--rt-paper); }
body.rt .btn--primary { background: var(--rt-coral); border-color: transparent; color: var(--rt-ink); }
body.rt .btn--primary:hover { background: var(--rt-coral-hover); border-color: transparent;
                              color: var(--rt-ink); }
body.rt .tag {
  border-radius: 2px;
  border: 0;
  background: var(--rt-paper);
  color: var(--rt-ink);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 5px 9px;
}
body.rt .tag--kit { background: var(--rt-yellow); }
body.rt .tag--featured { background: var(--rt-ink); color: #fff; }

/* ------------------------------------------------------- funding: index -- */
body.rt .fund-grid { gap: 34px 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
body.rt .fund-card { padding: 0; border: 0; background: transparent; box-shadow: none; gap: 10px; }
body.rt .fund-card--featured { box-shadow: none; }
body.rt .fund-card__title { font-size: 22px; margin-top: 4px; }
body.rt .fund-card__link { color: var(--rt-ink); border-bottom: 1px solid; align-self: start;
                           padding-bottom: 3px; font-weight: 500; }
.fund-card__cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.3;
  padding: 18px;
  background: #f0f3e9;
  overflow: hidden;
}
.fund-card:nth-child(4n+2) .fund-card__cover { background: var(--rt-peach); }
.fund-card:nth-child(4n+3) .fund-card__cover { background: var(--rt-cream); }
.fund-card:nth-child(4n) .fund-card__cover { background: var(--rt-lilac); }
.fund-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* the WHOLE image, never a crop */
  mix-blend-mode: multiply;
  transition: transform .25s;
}
.fund-card:hover .fund-card__cover img { transform: scale(1.03); }
.fund-card__cover--none { font: 22px/1.2 var(--rt-display); color: var(--rt-muted); text-align: center; }

body.rt .fund-totals { border: 0; background: var(--rt-leaf); padding: 20px 22px; margin-top: 28px; }
body.rt .fund-totals__list dd { font: 28px var(--rt-display); }
body.rt .fund-totals__link { color: var(--rt-ink); border-bottom: 1px solid; font-weight: 500; }
body.rt .fund-chip {
  border-radius: 2px;
  border: 1px solid var(--rt-line);
  background: #fff;
  padding: 11px 18px;
  font-size: 13px;
  color: var(--rt-ink);
}
body.rt .fund-chip[aria-pressed="true"] { background: var(--rt-ink); border-color: var(--rt-ink);
                                          color: #fff; font-weight: 500; }
body.rt .fund-stages { margin-top: 26px; gap: 9px; }

body.rt .fund-honour-how__list > li,
body.rt .fund-how__list > li { border: 0; border-radius: 0; background: var(--rt-peach); }
body.rt .fund-honour-how__list > li:nth-child(2) { background: var(--rt-blue); }
body.rt .fund-honour-how__list > li:nth-child(3) { background: var(--rt-lilac); }
body.rt .fund-honour-how__list > li:nth-child(4) { background: var(--rt-sage); }
body.rt .fund-how__list > li { background: var(--rt-leaf); }
body.rt .fund-how__list > li::before { background: var(--rt-coral); color: var(--rt-ink); }
body.rt .fund-honour-how, body.rt .fund-how { margin-top: 58px; }

/* ------------------------------------------------------ funding: detail -- */
body.rt .fund-hero { background: var(--rt-sage); border: 0; padding: 36px 0 44px; }
body.rt .fund-raise { border: 0; box-shadow: none; border-radius: 0; background: #fff; padding: 24px; }
body.rt .fund-raise__amount { font: 40px/1.05 var(--rt-display); letter-spacing: -.02em; }
body.rt .fund-h2 { font-size: clamp(26px, 2.6vw, 38px); margin: 58px 0 20px; }
body.rt .fund-h3 { font-size: 21px; }
body.rt .fund-bar { background: #e9eee4; border-radius: 0; height: 8px; }
body.rt .fund-bar__fill { background: var(--rt-coral); }
body.rt .fund-sections { background: #fff; }
body.rt .fund-sections__link { color: var(--rt-ink); font-weight: 500; font-size: 13px; }
body.rt .fund-sections__link:hover { border-bottom-color: var(--rt-coral); }
body.rt .fund-tier { border: 0; border-radius: 0; background: var(--rt-leaf); box-shadow: none; }
body.rt .fund-tier--on { outline: 2px solid var(--rt-ink); }
body.rt .fund-tier__price { font: 30px var(--rt-display); }
body.rt .fund-form__block { border: 0; background: var(--rt-leaf); border-radius: 0; }
body.rt .fund-form input[type="text"],
body.rt .fund-form input[type="email"],
body.rt .fund-form input[type="tel"],
body.rt .fund-form input[type="number"],
body.rt .fund-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--rt-field);
  border-radius: 2px;
  background: #fff;
  color: var(--rt-ink);
}
body.rt .fund-update, body.rt .fund-funders__col, body.rt .honour-project { border: 0;
  border-radius: 0; background: var(--rt-leaf); }
body.rt .prose--risks { background: var(--rt-cream); border-left-color: var(--rt-coral-deep); }
body.rt .honour-roll__no { color: var(--rt-coral-deep); }

/* Stage pills + the track, in the store palette. */
body.rt .stage-pill { border-radius: 2px; border: 0; font-size: 10px; padding: 5px 9px;
                      background: var(--rt-leaf); color: var(--rt-ink); }
body.rt .stage-pill--prototype, body.rt .stage-pill--testing { background: var(--rt-cream); }
body.rt .stage-pill--production, body.rt .stage-pill--launched { background: var(--rt-sage-deep); }
body.rt .stage-track__step--done .stage-track__dot { border-color: var(--rt-ink); background: var(--rt-ink); }
body.rt .stage-track__step--done::before,
body.rt .stage-track__step--now::before { background: var(--rt-ink); }
body.rt .stage-track__step--now .stage-track__dot { border-color: var(--rt-coral-deep);
  box-shadow: 0 0 0 4px var(--rt-peach); }
body.rt .stage-track__step--now .stage-track__dot::after { background: var(--rt-coral); }
body.rt .stage-log { border-left-color: var(--rt-line); }
body.rt .stage-log__entry::before { border-color: var(--rt-coral-deep); }

/* ---------------------------------------------------------- the gallery -- */
/* Every image shown COMPLETE (contain, never cover); a click opens it large. */
body.rt .fund-gallery { gap: 22px; }
body.rt .fund-shot { background: #f0f3e9; padding: 14px; }
body.rt .fund-shot__img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
  border: 0;
  border-radius: 0;
}
body.rt .fund-shot__cap { font-size: 12px; color: var(--rt-muted); margin-top: 10px; }
.rt-zoom-hint { display: block; font-size: 11px; color: var(--rt-muted); margin-top: 4px; }

.rt-lightbox {
  width: min(1400px, 96vw);
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: var(--shadow-3);
}
.rt-lightbox::backdrop { background: rgba(32, 39, 37, .72); }
.rt-lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px;
                    padding: 12px 16px; background: var(--rt-sage); }
.rt-lightbox__title { font: 16px var(--rt-display); margin: 0; }
.rt-lightbox__close { border: 0; background: var(--rt-ink); color: #fff; padding: 8px 14px;
                      font: 13px var(--rt-font); cursor: pointer; }
.rt-lightbox__body { padding: 14px; overflow: auto; max-height: calc(94vh - 60px); }
.rt-lightbox__img { display: block; width: 100%; height: auto; max-width: none; }

/* --------------------------------------------------- explanation + flow -- */
.rt-explain { padding: 58px 0 10px; }
.rt-explain__grid {
  display: grid;
  gap: 40px 56px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
}
@media (max-width: 900px) { .rt-explain__grid { grid-template-columns: minmax(0, 1fr); } }
.rt-explain__copy p { font-size: 16px; color: #4b554e; max-width: 62ch; }
.rt-explain__copy h2 { margin-bottom: 20px; }
.rt-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.rt-facts li { padding: 12px 14px; background: var(--rt-leaf); font-size: 14px; }
.rt-facts strong { font-weight: 600; }

/* The flow chart: one column of steps, a decision, two outcomes. */
.rt-flow { margin: 0; padding: 26px 24px 30px; background: var(--rt-sage); }
.rt-flow__title { font: 20px var(--rt-display); letter-spacing: -.01em; margin: 0 0 20px; text-align: center; }
.rt-flow__steps { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; }
.rt-flow__step {
  position: relative;
  width: min(430px, 100%);
  padding: 13px 16px 13px 58px;
  background: #fff;
  border: 1px solid var(--rt-ink);
  margin-bottom: 30px;          /* room for the arrow below */
}
.rt-flow__step::after {         /* the connector + arrow head to the next box */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 2px;
  height: 22px;
  background: var(--rt-ink);
  transform: translateX(-50%);
}
.rt-flow__step::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  border: 6px solid transparent;
  border-top: 8px solid var(--rt-ink);
  border-bottom: 0;
  transform: translateX(-50%);
}
.rt-flow__no {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--rt-coral);
  font: 600 14px var(--rt-display);
}
.rt-flow__step h4 { margin: 0 0 3px; font: 500 17px/1.2 var(--rt-display); letter-spacing: -.01em; }
.rt-flow__step p { margin: 0; font-size: 13px; color: #4b554e; }
.rt-flow__decision {
  position: relative;
  width: min(300px, 90%);
  aspect-ratio: 2.2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 44px;
  background: var(--rt-yellow);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  font: 500 14px/1.25 var(--rt-display);
}
.rt-flow__decision-wrap { display: grid; justify-items: center; position: relative; }
.rt-flow__decision-wrap::after {  /* stem down to the branch rail */
  content: "";
  width: 2px;
  height: 18px;
  background: var(--rt-ink);
}
.rt-flow__branches {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 20px;
}
.rt-flow__branches::before {      /* the rail between the two outcomes */
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--rt-ink);
}
.rt-flow__branch {
  position: relative;
  padding: 26px 14px 14px;
  background: #fff;
  border: 1px solid var(--rt-ink);
}
.rt-flow__branch::before {        /* drop from the rail into each outcome */
  content: "";
  position: absolute;
  left: 50%;
  top: -21px;
  width: 2px;
  height: 20px;
  background: var(--rt-ink);
  transform: translateX(-50%);
}
.rt-flow__label {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  font: 600 11px var(--rt-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--rt-ink);
  color: #fff;
}
.rt-flow__branch--no .rt-flow__label { background: var(--rt-coral-deep); }
.rt-flow__branch h4 { margin: 0 0 4px; font: 500 16px/1.2 var(--rt-display); letter-spacing: -.01em; }
.rt-flow__branch p { margin: 0; font-size: 13px; color: #4b554e; }
.rt-flow__note { margin: 16px 0 0; font-size: 12px; color: var(--rt-muted); text-align: center; }
@media (max-width: 520px) {
  .rt-flow { padding: 20px 14px 24px; }
  .rt-flow__branches { grid-template-columns: 1fr; gap: 26px; }
  .rt-flow__branches::before { display: none; }
}

/* ---------------------------------------------------------- share bar -- */
.rt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.rt-share__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
                   margin-right: 4px; }
.rt-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--rt-line);
  background: #fff;
  color: var(--rt-ink);
  font: 500 12px var(--rt-font);
  text-decoration: none;
  cursor: pointer;
}
.rt-share__btn:hover { border-color: var(--rt-ink); }
.rt-share__btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7;
                     stroke-linecap: round; stroke-linejoin: round; }
.rt-share__btn--whatsapp:hover { background: #e7f6ec; }
.rt-share__btn--facebook:hover { background: #e8eefb; }
.rt-share__btn--x:hover { background: #eef0ec; }
.rt-share__btn--linkedin:hover { background: #e6f0f7; }
.rt-share__btn--telegram:hover { background: #e6f3fa; }
.rt-share__btn--email:hover { background: var(--rt-peach); }

/* --------------------------------------------------------- protection -- */
/* The owner asked for no selecting, dragging, copying or saving on these
   pages.  Form fields stay fully usable: a backer must be able to type,
   select and correct their own name and address. */
body.rt-protect {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.rt-protect input,
body.rt-protect textarea,
body.rt-protect select,
body.rt-protect [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
body.rt-protect img,
body.rt-protect video,
body.rt-protect canvas { -webkit-user-drag: none; }

@media print {
  body.rt-protect > * { display: none !important; }
  body.rt-protect::before {
    content: "Printing and saving are disabled on this page. Share its link instead.";
    display: block;
    padding: 40px;
    font: 16px var(--rt-font);
  }
}

/* ------------------------------------------------ the project's detail -- */
.fund-hero .rt-crumbs { margin-bottom: 18px; }
body.rt .prose { max-width: 78ch; font-size: 16px; }
body.rt .prose h3, body.rt .prose h4 { margin: 28px 0 10px; }
body.rt .md-table th { background: var(--rt-sage); font-weight: 600; }
body.rt .md-table td, body.rt .md-table th { border-bottom-color: var(--rt-line); }
body.rt blockquote { background: var(--rt-cream); border-left-color: var(--rt-coral-deep); color: var(--rt-ink); }

/* Technical specifications: grouped two-column tables. */
.rt-spec { display: grid; gap: 22px 32px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.rt-spec__group { background: var(--rt-leaf); padding: 18px 20px 8px; }
.rt-spec__title { font: 500 17px var(--rt-display); letter-spacing: -.01em; margin: 0 0 10px; }
.rt-spec__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rt-spec__table th, .rt-spec__table td { text-align: left; vertical-align: top; padding: 9px 0;
                                         border-top: 1px solid var(--rt-line); }
.rt-spec__table th { width: 38%; padding-right: 14px; font-weight: 500; color: var(--rt-muted); }
.rt-spec__table tr:first-child th, .rt-spec__table tr:first-child td { border-top: 0; }
@media (max-width: 520px) { .rt-spec { grid-template-columns: minmax(0, 1fr); } }

/* Where the money goes: one bar per line. */
.rt-funduse__lede { color: var(--rt-muted); margin: -6px 0 18px; }
.rt-funduse { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 900px; }
.rt-funduse__row { background: var(--rt-leaf); padding: 16px 18px; }
.rt-funduse__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px;
                    align-items: baseline; }
.rt-funduse__item { font-weight: 500; }
.rt-funduse__amount { font: 500 20px var(--rt-display); white-space: nowrap; }
.rt-funduse__note { margin: 8px 0 0; font-size: 13px; color: var(--rt-muted); }

/* Timeline: a spine with a dot per milestone. */
.rt-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; max-width: 880px; }
.rt-timeline__row { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px;
                    padding-bottom: 22px; }
.rt-timeline__row::before { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0;
                            width: 2px; background: var(--rt-line); }
.rt-timeline__row:last-child::before { display: none; }
.rt-timeline__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rt-ink);
                    background: #fff; position: relative; z-index: 1; }
.rt-timeline__row--done .rt-timeline__dot { background: var(--rt-ink); }
.rt-timeline__row--now .rt-timeline__dot { background: var(--rt-coral); border-color: var(--rt-coral-deep); }
.rt-timeline__row--next .rt-timeline__dot { background: var(--rt-yellow); }
.rt-timeline__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; font-size: 11px; }
.rt-timeline__status { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.rt-timeline__target { color: var(--rt-muted); }
.rt-timeline__title { font: 500 18px/1.25 var(--rt-display); letter-spacing: -.01em; margin: 0; }
.rt-timeline__note { margin: 6px 0 0; font-size: 14px; color: #4b554e; }

/* FAQ: native disclosure, no script. */
.rt-faq { display: grid; gap: 10px; max-width: 900px; }
.rt-faq__item { background: var(--rt-leaf); padding: 0 18px; }
.rt-faq__q { cursor: pointer; padding: 16px 0; font: 500 17px var(--rt-display); letter-spacing: -.01em;
             list-style-position: inside; }
.rt-faq__a { padding: 0 0 14px; font-size: 15px; }

/* "How backing works" on the project page: the flow chart, centred. */
.rt-backing .rt-flow { max-width: 760px; }


/* A project title is a sentence, not a two-word banner: keep it to ~3 lines. */
body.rt .fund-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }


/* ---------------------------------------------------------------------------
   011: backer perks, the follow form, and the subscription page
   --------------------------------------------------------------------------- */
.fund-perks__lede, .fund-follow__lede { max-width: 760px; color: var(--rt-muted); }
.fund-perks__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px;
                    max-width: 900px; }
.fund-perks__item { background: var(--rt-leaf); padding: 14px 18px; font-size: 15px; }
.fund-perks__title { font-weight: 600; }
/* 013: the store-wide backer price */
.fund-perks__item--store { border-left: 3px solid var(--rt-coral); }
.fund-perks__you { display: block; margin-top: 6px; font-weight: 600; }
.fund-perks__link { display: inline-block; margin-left: 4px; font-weight: 600; color: var(--rt-link); }
.fund-follow__form { display: grid; gap: 12px; max-width: 560px; margin-top: 12px; }
.fund-follow__form .field { display: grid; gap: 4px; }
.fund-follow__form .field--check { display: flex; align-items: flex-start; gap: 8px; }
.fund-follow__form .field--check > label { font-weight: 400; font-size: .9rem; }
.fund-follow__form .btn { justify-self: start; }
.fund-follow__say { margin: 4px 0 0; font-size: 14px; }
/* A honeypot: out of sight and out of the tab order, for people; bots fill it. */
.field--hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px;
             overflow: hidden; }
.sub-page { max-width: 760px; }
.sub-card { background: var(--rt-leaf); padding: 26px 28px; margin: 16px 0; }
.sub-title { font: 500 30px/1.15 var(--rt-display); letter-spacing: -.01em; margin: 0 0 12px; }
.sub-line { margin: 0 0 10px; }
.sub-actions { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
.sub-note { font-size: 13px; color: var(--rt-muted); }
.sub-page .fund-loading { margin: 18px 0; color: var(--rt-muted); }

/* 012: the stage explained, planned rewards, GST said on the card */
.fund-reality { background: var(--rt-leaf); padding: 14px 18px; margin: 14px 0; max-width: 900px;
                font-size: 15px; }
.fund-reality__row { margin: 0 0 6px; }
.fund-reality__row:last-child { margin: 0; }
.fund-tier--planned { opacity: .92; border-style: dashed; }
.fund-tier__planned { display: inline-block; margin: 0 0 8px; padding: 4px 10px; font-size: 12px;
                      font-weight: 600; background: var(--rt-yellow); }
.fund-tier__gst { margin: 2px 0 8px; font-size: 13px; color: var(--rt-muted); }

/* ---------------------------------------------------------------------------
   014: the referral programme page
   --------------------------------------------------------------------------- */
.aff-page { max-width: 980px; }
.aff-hero { margin: 8px 0 18px; }
.aff-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
               font-weight: 700; color: var(--rt-coral-deep); margin: 0 0 6px; }
.aff-title { font-family: var(--rt-display); font-size: clamp(30px, 4.4vw, 46px);
             line-height: 1.08; margin: 0 0 12px; }
.aff-lede { font-size: 18px; max-width: 760px; color: var(--rt-ink); }
.aff-card { background: var(--rt-leaf); padding: 26px 28px; margin: 18px 0 30px; }
.aff-card__title { font-family: var(--rt-display); font-size: 26px; margin: 0 0 10px; }
.aff-check { display: flex; gap: 8px; align-items: flex-start; }
.aff-linkrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.aff-link { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace;
            font-size: 14px; }
.aff-inline-label { font-weight: 600; }
.aff-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
             gap: 10px; margin: 20px 0 8px; }
.aff-stat { background: var(--rt-paper); padding: 12px 14px; margin: 0; }
.aff-stat dt { font-size: 12px; color: var(--rt-muted); }
.aff-stat dd { margin: 3px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.aff-h3 { font-family: var(--rt-display); font-size: 20px; margin: 26px 0 8px; }
.aff-tablewrap { overflow-x: auto; }
.aff-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--rt-paper); }
.aff-table th, .aff-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rt-line);
                               vertical-align: top; }
.aff-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aff-mono { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.aff-form { display: grid; grid-template-columns: max-content minmax(0, 360px); gap: 10px 14px;
            align-items: center; }
.aff-form .btn { grid-column: 2; justify-self: start; }
.aff-note { color: var(--rt-muted); font-size: 14px; }
.aff-say { min-height: 1.4em; margin: 8px 0 0; font-weight: 600; }
.aff-say--ok { color: #1f6f3a; }
.aff-say--err { color: var(--rt-coral-deep); }
.aff-leave-row { margin-top: 26px; }
.aff-steps { padding-left: 22px; max-width: 760px; }
.aff-steps li { margin: 0 0 8px; }
.aff-rules { max-width: 820px; padding-left: 20px; }
.aff-rules li { margin: 0 0 8px; }
@media (max-width: 640px) {
  .aff-card { padding: 20px 16px; }
  .aff-form { grid-template-columns: 1fr; }
  .aff-form .btn { grid-column: 1; }
}

