/* Hex & Co: what published pages need for things the shared page editor can make that the old editor couldn't.
   The live site loads this after site.css (see hosts/hexco/README.md). Safe to load on pages made before it. */

/* Linked blocks: the editor gives a linked block the class hx-linked and puts an empty <a class="hx-block-link">
   stretched over it, so links inside it still work. A linked picture gets <a class="hx-img-link"> around it. */
.hx-linked { position: relative; cursor: pointer; }
/* !important so a widget's own rules for its children (a honeycomb's sizes) never move the link */
.hx-block-link { position: absolute !important; inset: 0 !important; z-index: 1; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border-radius: inherit; }
.hx-linked a:not(.hx-block-link), .hx-linked button, .hx-linked input, .hx-linked select, .hx-linked textarea { position: relative; z-index: 2; }
.hx-img-link { display: block; }
a.hx-img-link:has(> hr) { padding-block: 1rem; margin-block: 1rem; }
a.hx-img-link > hr { margin: 0; }
.hx-icon-link { color: inherit; text-decoration: none; }
.hx-icon-link:hover > .ic { filter: brightness(1.15); }
.hx-shape-link { cursor: pointer; }
.hx-shape-link > * { transition: filter .15s ease; }
.hx-shape-link:hover > * { filter: brightness(1.15); }
/* A linked block's headings and paragraphs underline on hover, unless its "On hover" menu is set to No underline
   (class hx-hover-plain). */
.hx-linked:not(.hx-hover-plain):hover > :is(h1, h2, h3, h4, p) { text-decoration: underline; text-decoration-color: var(--borealis); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hx-linked:is(.service, .case) { transition: transform .15s ease; }
.hx-linked:is(.service, .case):hover { transform: translateX(3px); }
.hx-linked:is(.service, .case):hover > * { text-decoration: none; }
:is(.hx-block-link, .hx-img-link, .hx-icon-link, .hx-shape-link):focus-visible { outline: 3px solid var(--accent-text-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hx-linked:is(.service, .case):hover { transform: none; } }

/* Text size: a menu for a whole paragraph, heading or list item, and a menu for highlighted words. The sizes are the
   site's own type steps. !important so a chosen size wins over a section's heading sizes. */
.hx-size-sm { font-size: var(--step--1) !important; }
.hx-size-lg { font-size: var(--step-1) !important; }
.hx-size-xl { font-size: var(--step-2) !important; }
.hx-size-2xl { font-size: var(--step-3) !important; }
.hx-size-3xl { font-size: var(--step-4) !important; }
:is(p, li, blockquote, figcaption, dt, dd):is(.hx-size-xl, .hx-size-2xl, .hx-size-3xl) { line-height: 1.15; }

/* The Align buttons */
.hx-align-left { text-align: left; }
.hx-align-center { text-align: center; }
.hx-align-right { text-align: right; }
.hx-align-justify { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* ── Widgets (brought over from the GFG editor, in the Mosaic look) ──────────────────────────────────────────
   Every widget has the class hxw. Its Colour menu adds one of the brand colours below; without one it's Moonlight.
   A colour on a set (cards, hexagons) passes down to everything in it, unless an item has its own.
   --w is the colour itself, --w-on the text on it, --w-text the colour for words and lines on the page. */
.hxw-c-1 { --w: var(--s1); --w-on: #FFFFFF; --w-text: var(--hx-text-1); }
.hxw-c-2 { --w: var(--s2); --w-on: #FFFFFF; --w-text: var(--hx-text-2); }
.hxw-c-3 { --w: var(--s3); --w-on: #FFFFFF; --w-text: var(--hx-text-3); }
.hxw-c-4 { --w: var(--s4); --w-on: #FFFFFF; --w-text: var(--hx-text-4); }
.hxw-c-5 { --w: var(--s5); --w-on: #FFFFFF; --w-text: var(--hx-text-5); }
.hxw-c-6 { --w: var(--s6); --w-on: #14131C; --w-text: var(--hx-text-6); }
.hxw-c-nighttime { --w: var(--nighttime); --w-on: var(--vellum); --w-text: var(--ink); }
.hxw-c-ink { --w: var(--ink-colour); --w-on: var(--vellum); --w-text: var(--ink); }
.hxw-c-vellum { --w: var(--vellum); --w-on: var(--ink-colour); --w-text: var(--ink); }
.hxw-c-papier { --w: var(--papier); --w-on: var(--ink-colour); --w-text: var(--ink); }
.hxw-c-gradient { --w: var(--s1); --w-fill: var(--gradient); --w-on: #FFFFFF; --w-text: var(--hx-text-1); }
.hxw { --hxw: var(--w, var(--s1)); --hxw-on: var(--w-on, #FFFFFF); --hxw-text: var(--w-text, var(--hx-text-1)); --hxw-fill: var(--w-fill, var(--hxw)); }
.hxw-head { font: 600 var(--step-1)/1.2 var(--display); color: var(--hxw-text); margin: 0 0 0.35rem; }

/* Cards: a raised panel with a band of colour along the top and the cut corner */
.hxw-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin: 0 0 1.5rem; }
@media (min-width: 641px) { .hxw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 861px) { .hxw-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hxw-card { min-width: 0; background: var(--raised); color: var(--ink); border-top: 4px solid var(--hxw); padding: 1.4rem 1.5rem 1.6rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%); }
.hxw-card h3 { font-size: var(--step-1); margin: 0 0 0.5rem; }
.hxw-card p { color: var(--ink-soft); font-size: 0.975rem; }
.hxw-card > * + p { margin-top: 0.35rem; }
:is(.hxw-card.tint, .hxw-cards.tint > .hxw-card) { background: color-mix(in srgb, var(--hxw) 26%, var(--ground)); }
:is(.hxw-card.solid, .hxw-cards.solid > .hxw-card) { background: var(--hxw-fill); color: var(--hxw-on); border-top-color: transparent; }
:is(.hxw-card.solid, .hxw-cards.solid > .hxw-card) :is(h3, p) { color: var(--hxw-on); }
:is(.hxw-card.outline, .hxw-cards.outline > .hxw-card) { background: none; box-shadow: inset 0 0 0 1px var(--line); clip-path: none; }

/* Callouts and the warning box */
.hxw-callout { border-left: 4px solid var(--hxw); background: color-mix(in srgb, var(--hxw) 12%, var(--ground)); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.hxw-callout > * + * { margin-top: 0.4rem; }
.hxw-callout.soft p { font-style: italic; }
.hxw-warning { position: relative; border: 1px solid color-mix(in srgb, var(--hxw) 55%, transparent); border-left: 6px solid var(--hxw);
  background: linear-gradient(90deg, color-mix(in srgb, var(--hxw) 22%, var(--ground)), var(--ground) 75%); padding: 1.1rem 1.4rem 1.2rem 4rem; margin: 0 0 1.75rem; }
.hxw-warning::before { content: "!"; position: absolute; left: 1.1rem; top: 1.05rem; width: 1.9rem; height: 2.2rem; display: grid; place-items: center;
  font: 700 1.1rem/1 var(--display); background: var(--hxw); color: var(--hxw-on); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hxw-warning > * + * { margin-top: 0.4rem; }

/* Contents box */
.hxw-toc { border-block: 1px solid var(--line); padding: 0.9rem 0; margin: 0 0 2rem; font-size: 0.9375rem; }
.hxw-toc::before { content: "On this page"; display: block; font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hxw-text); margin-bottom: 0.5rem; }
.hxw-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; counter-reset: toc; }
.hxw-toc li { counter-increment: toc; }
.hxw-toc li::before { content: counter(toc, decimal-leading-zero); font: 500 0.75rem var(--mono); color: var(--hxw-text); margin-right: 0.5rem; }
.hxw-toc a { color: var(--ink); text-decoration: none; }
.hxw-toc a:hover { text-decoration: underline; text-decoration-color: var(--hxw); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* A row of buttons with a label, and brand colours on any button */
.hxw-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; margin: 2rem 0 1rem; }
.hxw-buttons > .label { flex-basis: 100%; text-align: center; }
.hxw-buttons.left { justify-content: flex-start; }
.hxw-buttons.left > .label { text-align: left; }
.btn.btn-primary[class*="hxw-c-"] { background: var(--w-fill, var(--w)); color: var(--w-on); }
.btn.btn-primary[class*="hxw-c-"]:hover { filter: brightness(1.12); }
.btn.btn-ghost[class*="hxw-c-"] { text-decoration-color: var(--w); }

/* Lists: coloured bullets, hexagon bullets, links with a note, and a timeline */
ul.hxw-list { margin: 0 0 1.5rem; padding-left: 1.3rem; }
ul.hxw-list li + li { margin-top: 0.45rem; }
ul.hxw-list li::marker { color: var(--hxw-text); }
ul.hxw-kit { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 1.75rem; }
@media (min-width: 641px) { ul.hxw-kit.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
ul.hxw-kit li { position: relative; padding-left: 1.5rem; }
ul.hxw-kit li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.7em; height: 0.8em; background: var(--hxw); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
ul.hxw-links { list-style: none; margin: 0 0 1.5rem; padding: 0; }
ul.hxw-links li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
ul.hxw-links li:last-child { border-bottom: 0; }
ul.hxw-links li > a:first-child { font: 600 var(--step-1)/1.25 var(--display); color: var(--ink); text-decoration: none; }
ul.hxw-links li > a:first-child::after { content: " \2192"; color: var(--hxw-text); }
ul.hxw-links li > a:first-child:hover { color: var(--hxw-text); }
ul.hxw-links .hxw-note { display: block; font-size: 0.9375rem; color: var(--ink-soft); margin-top: 0.2rem; }
ul.hxw-timeline { list-style: none; margin: 1rem 0 1.5rem; padding: 0 0 0 0.5rem; border-left: 2px solid color-mix(in srgb, var(--hxw) 55%, transparent); }
ul.hxw-timeline li { position: relative; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 0 0 1rem 1.25rem; }
ul.hxw-timeline li::before { content: ""; position: absolute; left: calc(-0.5rem - 7px); top: 0.3em; width: 12px; height: 14px; background: var(--hxw); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
ul.hxw-timeline .hxw-year { font: 600 0.9375rem/1.6 var(--mono); color: var(--hxw-text); }
@media (max-width: 640px) { ul.hxw-timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Table */
.hxw-table { overflow-x: auto; margin: 0 0 1.5rem; }
table.hxw-tbl { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hxw-tbl th { text-align: left; font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hxw-text); padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--hxw); }
.hxw-tbl td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.hxw-tbl td:first-child { color: var(--ink); font-weight: 600; }

/* Divider */
hr.hxw-divider { border: 0; height: 4px; margin: 2rem 0; background: linear-gradient(90deg, var(--hxw), transparent); }
hr.hxw-divider.solid { background: var(--hxw); }
hr.hxw-divider.center { background: linear-gradient(90deg, transparent, var(--hxw) 50%, transparent); }
hr.hxw-divider.brand { background: var(--gradient); }
hr.hxw-divider.hexes { height: 14px; background: radial-gradient(circle, var(--hxw) 0 5px, transparent 6px) center / 28px 14px repeat-x; max-width: 84px; margin-inline: auto; }

/* Quote, and question and answer */
blockquote.hxw-quote { margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 4px solid var(--hxw); }
blockquote.hxw-quote p { font: 600 var(--step-2)/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
blockquote.hxw-quote cite { display: block; margin-top: 0.75rem; font: 400 0.8125rem/1.4 var(--mono); font-style: normal; color: var(--hxw-text); }
blockquote.hxw-quote cite::before { content: "\2014\00a0"; }
.hxw-qa { margin: 0 0 1.75rem; }
.hxw-qa-q, .hxw-qa-a { position: relative; padding-left: 2.75rem; min-height: 2rem; }
.hxw-qa-q::before, .hxw-qa-a::before { position: absolute; left: 0; top: 0; width: 1.75rem; height: 2rem; display: grid; place-items: center; font: 700 0.875rem/1 var(--display);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hxw-qa-q::before { content: "Q"; background: var(--hxw); color: var(--hxw-on); }
.hxw-qa-a::before { content: "A"; background: color-mix(in srgb, var(--hxw) 25%, var(--ground)); color: var(--hxw-text); }
.hxw-qa-q { margin-bottom: 0.75rem; font-weight: 600; }
.hxw-qa-a p { color: var(--ink-soft); }

/* Hexagons: short text in a hexagon of brand colour, in a grid or a honeycomb (hxw-n-N says how many across) */
.hxw-hexes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 0 0 1.5rem; }
@media (min-width: 640px) { .hxw-hexes { grid-template-columns: repeat(var(--hex-n, 3), minmax(0, 1fr)); } }
.hxw-n-1 { --hex-n: 1; } .hxw-n-2 { --hex-n: 2; } .hxw-n-3 { --hex-n: 3; } .hxw-n-4 { --hex-n: 4; } .hxw-n-5 { --hex-n: 5; } .hxw-n-6 { --hex-n: 6; }
@media (max-width: 639.98px) { .hxw-hexes.hxw-n-1 { --hex-n: 1; grid-template-columns: minmax(0, 1fr); } .hxw-hexes:not(.hxw-n-1) { --hex-n: 2; } }
.hxw-hexes.hxw-honeycomb { display: flex; flex-wrap: wrap; gap: 0; }
.hxw-hexes.hxw-honeycomb > * { flex: none; width: calc(100% / (var(--hex-n, 3) + .5) - .02px); max-width: none; margin: 0; padding: calc(22% / (var(--hex-n, 3) + .5)) calc(13% / (var(--hex-n, 3) + .5)); }
/* every other row moves half a hexagon across and tucks up into the row above */
.hxw-hexes.hxw-honeycomb.hxw-n-1 > :nth-child(2n+2) { margin-left: calc(50% / 1.5); }
.hxw-hexes.hxw-honeycomb.hxw-n-1 > :nth-child(n+2) { margin-top: calc(-28.8675% / 1.5); }
@media (max-width: 639.98px) {
  .hxw-hexes.hxw-honeycomb:not(.hxw-n-1) > :nth-child(4n+3) { margin-left: calc(50% / 2.5); }
  .hxw-hexes.hxw-honeycomb:not(.hxw-n-1) > :nth-child(n+3) { margin-top: calc(-28.8675% / 2.5); }
}
@media (min-width: 640px) {
  .hxw-hexes.hxw-honeycomb.hxw-n-2 > :nth-child(4n+3) { margin-left: calc(50% / 2.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-2 > :nth-child(n+3) { margin-top: calc(-28.8675% / 2.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-3 > :nth-child(6n+4) { margin-left: calc(50% / 3.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-3 > :nth-child(n+4) { margin-top: calc(-28.8675% / 3.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-4 > :nth-child(8n+5) { margin-left: calc(50% / 4.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-4 > :nth-child(n+5) { margin-top: calc(-28.8675% / 4.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-5 > :nth-child(10n+6) { margin-left: calc(50% / 5.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-5 > :nth-child(n+6) { margin-top: calc(-28.8675% / 5.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-6 > :nth-child(12n+7) { margin-left: calc(50% / 6.5); }
  .hxw-hexes.hxw-honeycomb.hxw-n-6 > :nth-child(n+7) { margin-top: calc(-28.8675% / 6.5); }
}
.hxw-hex { container-type: inline-size; position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 100%; max-width: 15rem; margin: 0 auto; aspect-ratio: 0.866; padding: 22% 13%; overflow: hidden; text-align: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--hxw-fill); color: var(--hxw-on); }
:is(.hxw-hex.tint, .hxw-hexes.tint > .hxw-hex) { background: color-mix(in srgb, var(--hxw) 22%, var(--ground)); color: var(--ink); }
:is(.hxw-hex.brand, .hxw-hexes.brand > .hxw-hex) { background: var(--gradient); color: #FFFFFF; }
/* Colour-blocked: the hexagons take the brand colours in turn (the six hex shades, then Nighttime, Vellum, Ink and
   Papier). A hexagon given its own colour keeps it. */
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+1) { --w: var(--s1); --w-on: #FFFFFF; }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+2) { --w: var(--s2); --w-on: #FFFFFF; }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+3) { --w: var(--s3); --w-on: #FFFFFF; }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+4) { --w: var(--s4); --w-on: #FFFFFF; }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+5) { --w: var(--s5); --w-on: #FFFFFF; }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+6) { --w: var(--s6); --w-on: #14131C; }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+7) { --w: var(--nighttime); --w-on: var(--vellum); }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+8) { --w: var(--vellum); --w-on: var(--ink-colour); }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+9) { --w: var(--ink-colour); --w-on: var(--vellum); }
.hxw-hexes.blocked > .hxw-hex:not([class*="hxw-c-"]):nth-child(10n+10) { --w: var(--papier); --w-on: var(--ink-colour); }
/* Gradient (pick colours): Gradient from and Gradient to choose the two ends; the words take the start colour's text colour */
:is(.hxw-hex.gradient, .hxw-hexes.gradient > .hxw-hex) { background: linear-gradient(135deg, var(--hxw-from, var(--s1)), var(--hxw-to, var(--s6))); color: var(--hxw-from-on, #FFFFFF); }
.hxw-from-1 { --hxw-from: var(--s1); --hxw-from-on: #FFFFFF; } .hxw-to-1 { --hxw-to: var(--s1); }
.hxw-from-2 { --hxw-from: var(--s2); --hxw-from-on: #FFFFFF; } .hxw-to-2 { --hxw-to: var(--s2); }
.hxw-from-3 { --hxw-from: var(--s3); --hxw-from-on: #FFFFFF; } .hxw-to-3 { --hxw-to: var(--s3); }
.hxw-from-4 { --hxw-from: var(--s4); --hxw-from-on: #FFFFFF; } .hxw-to-4 { --hxw-to: var(--s4); }
.hxw-from-5 { --hxw-from: var(--s5); --hxw-from-on: #FFFFFF; } .hxw-to-5 { --hxw-to: var(--s5); }
.hxw-from-6 { --hxw-from: var(--s6); --hxw-from-on: #14131C; } .hxw-to-6 { --hxw-to: var(--s6); }
.hxw-from-nighttime { --hxw-from: var(--nighttime); --hxw-from-on: var(--vellum); } .hxw-to-nighttime { --hxw-to: var(--nighttime); }
.hxw-from-ink { --hxw-from: var(--ink-colour); --hxw-from-on: var(--vellum); } .hxw-to-ink { --hxw-to: var(--ink-colour); }
.hxw-from-vellum { --hxw-from: var(--vellum); --hxw-from-on: var(--ink-colour); } .hxw-to-vellum { --hxw-to: var(--vellum); }
.hxw-from-papier { --hxw-from: var(--papier); --hxw-from-on: var(--ink-colour); } .hxw-to-papier { --hxw-to: var(--papier); }
.hxw-hex-in { min-width: 0; }
.hxw-hex h3 { font-size: clamp(1.05rem, 15cqi, 2rem); line-height: 1.1; margin: 0 0 0.25em; color: inherit; }
.hxw-hex p { font-size: clamp(0.7rem, 7cqi, 0.95rem); line-height: 1.35; color: inherit; }
.hxw-hex.hx-linked:hover, .hxw-hexes > .hxw-hex.hx-linked:hover { transform: none; filter: brightness(1.12); }

/* See-through table: a layout table with no lines or fill of its own, laying a page out in cells the way old hand-made
   pages did. The editor's table panel styles its cells (those styles go on #id rules, so they win over these). */
table.hx-layout-table { width: 100%; border-collapse: collapse; background: transparent; margin: 0 0 14px; }
.hx-layout-table td, .hx-layout-table th { vertical-align: top; padding: 8px; border: 0; background: transparent; text-align: left; }
@media (max-width: 640px) {
  /* cells stack on phones */
  table.hx-layout-table, .hx-layout-table tbody, .hx-layout-table tr, .hx-layout-table td, .hx-layout-table th { display: block; width: auto !important; }
}

/* ---- icon colours: the six hex shades (the same theme-aware shades as the text colours), white, and a
   reversed gradient, on an icon itself or its list bullets ---- */
.ic-c-1 { --ic-paint: var(--hx-text-1, #6C3BAA); }
.ic-c-2 { --ic-paint: var(--hx-text-2, #644FA5); }
.ic-c-3 { --ic-paint: var(--hx-text-3, #5A609F); }
.ic-c-4 { --ic-paint: var(--hx-text-4, #4C7099); }
.ic-c-5 { --ic-paint: var(--hx-text-5, #377E92); }
.ic-c-6 { --ic-paint: var(--hx-text-6, #008B8B); }
.ic-white { --ic-paint: #FFFFFF; }
.ic-gradient-rev { --ic-paint: linear-gradient(135deg, #008B8B, #6C3BAA); }
/* icons inside words given a colour from the text toolbar take that colour too. The gradient words make their
   text transparent and paint it through the letters, which would leave an icon invisible, so it gets the gradient
   itself. :where() keeps these weaker than an icon's own colour. */
:where(.hx-gradient) :where(.ic) { --ic-paint: linear-gradient(135deg, var(--title-from, var(--moonlight, #6C3BAA)), var(--title-to, var(--borealis, #008B8B))); }
:where(.hx-moonlight) :where(.ic) { --ic-paint: var(--title-from, var(--moonlight, #6C3BAA)); }
:where(.hx-borealis) :where(.ic) { --ic-paint: var(--title-to, var(--borealis, #008B8B)); }
/* "Gradient (pick colours)" on an icon or icon list: the same Gradient from / Gradient to colours as the hexagons */
.ic-pick { --ic-paint: linear-gradient(135deg, var(--hxw-from, var(--s1, #6C3BAA)), var(--hxw-to, var(--s6, #008B8B))); }

/* ---- Space above / Space below menus (spacingMenus in brand.json). The :not(#hx) lets them win over the
   layout's own margins, such as a card's number pushing the words to the bottom. ---- */
.hx-mt-0:not(#hx) { margin-top: 0; } .hx-mb-0:not(#hx) { margin-bottom: 0; }
.hx-mt-xs:not(#hx) { margin-top: 0.25rem; } .hx-mb-xs:not(#hx) { margin-bottom: 0.25rem; }
.hx-mt-sm:not(#hx) { margin-top: 0.75rem; } .hx-mb-sm:not(#hx) { margin-bottom: 0.75rem; }
.hx-mt-md:not(#hx) { margin-top: 1.5rem; } .hx-mb-md:not(#hx) { margin-bottom: 1.5rem; }
.hx-mt-lg:not(#hx) { margin-top: 2.5rem; } .hx-mb-lg:not(#hx) { margin-bottom: 2.5rem; }
.hx-mt-xl:not(#hx) { margin-top: 4rem; } .hx-mb-xl:not(#hx) { margin-bottom: 4rem; }

/* Text position on work and service cards: the words sit at the bottom by design; Top and Middle move them up, and
   the card's number or icon stops pushing them down */
/* (also Fine-tune > Alignment > Contents, on any flex or grid item: cards, columns, widgets) */
.hx-pos-top:not(#hx) { justify-content: flex-start; align-content: start; }
.hx-pos-middle:not(#hx) { justify-content: center; align-content: center; }
.hx-pos-bottom:not(#hx) { justify-content: flex-end; align-content: end; }
.hx-pos-spread:not(#hx) { justify-content: space-between; align-content: space-between; }
:is(.hx-pos-top, .hx-pos-middle, .hx-pos-spread) > .case-num { margin-bottom: 0; }
