/* ui-roles.css — the page rhythm as roles (tools/ui-layout.py writes data-ui per section from ui/roles.json).
   Link it after site.css and before ui.css; ui.css sets the tokens and overrides what the brand needs. Each role bleeds
   its ground to the browser edge with the proto.css trick, so a band is a band at any width. The vocabulary (SWell Lab,
   2026-10-16/17, Shawn's rulings): white, soft (a gradient that fades to white: a change of air, not a box), solid (a
   flat light grey: a divider the client asked for), accent (the page's one colour moment), cta (the closing band).
   Never two softs touching (the second merges into the first). A white section after a band that fades to white keeps
   one padding, not two. */
:root {
  --ui-ground-soft: linear-gradient(194deg, #F1F1F1 1%, #FFFFFF 32%);   /* the soft band: set from the UI spec */
  --ui-ground-soft-floor: #F5F5F5;                                       /* what the soft band ends on when a divider is wanted */
  --ui-ground-solid: #F2F1F1;
  --ui-accent: #00BAC6;              /* the accent band (Secondary on most sites) */
  --ui-accent-ink: #212121;          /* text on the accent band */
  --ui-accent-em: #FFFFFF;           /* the emphasised word in an accent-band heading */
  --ui-cta: linear-gradient(135deg, #00679F 0%, #00BAC6 150%);
  --ui-cta-ink: #FFFFFF;
}
[data-ui] { position: relative; isolation: isolate; }
[data-ui]::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; }
[data-ui].bg-light, [data-ui].bg-dark { background: none; }   /* the role decides the ground, not the plan's class */
[data-ui="white"]::before { background: #fff; }
[data-ui="soft"]::before, [data-ui="feature"]::before, [data-ui="table"]::before, [data-ui="cards"]::before { background: var(--ui-ground-soft); }
[data-ui="solid"]::before { background: var(--ui-ground-solid); }
[data-ui="accent"]::before { background: var(--ui-accent); }
[data-ui="accent"] { color: var(--ui-accent-ink); }
[data-ui="accent"] h2, [data-ui="accent"] h3, [data-ui="accent"] .label { color: var(--ui-accent-ink); }
[data-ui="accent"] h2 em { font-style: normal; color: var(--ui-accent-em); }
[data-ui="cta"]::before { background: var(--ui-cta); }
[data-ui="cta"] { color: var(--ui-cta-ink); }
[data-ui="cta"] h2, [data-ui="cta"] p { color: var(--ui-cta-ink); }
/* adjacency */
[data-ui="soft"] + [data-ui="soft"]::before { background: none; }
[data-ui="soft"] + [data-ui="soft"] { padding-top: 0; }
[data-ui="soft"] + [data-ui="white"], [data-ui="feature"] + [data-ui="white"], [data-ui="table"] + [data-ui="white"] { padding-top: 0; }
/* shapes */
[data-ui="feature"] .intro { background: #fff; border-top: 4px solid var(--ui-accent); box-shadow: 0 22px 48px rgba(0, 0, 0, .10); padding: 48px 56px; max-width: var(--container); width: 100%; }
[data-ui="form"] .contact-block { flex-direction: column; align-items: stretch; gap: 40px; max-width: 980px; }
[data-ui="form"] .contact-block__form { width: 100%; max-width: none; flex: 0 0 auto; }
[data-ui="table"] .table { background: #fff; border: 1px solid var(--c-mid); border-top: 4px solid var(--ui-accent); padding: 8px 24px 16px; }
@media (max-width: 1024px) {
  html body [data-ui="feature"] .intro { padding: 32px 28px; }
}
