/* AI Build wishes site: one stylesheet. Hub colours are custom properties; a hub page sets them on <body>. */
:root { color-scheme: light; }
/* Page themes: one set of values per hub, on <body class="hub-xx">. Values come from the palette register and check.mjs measures every pair.
   Variables: ground, ink, soft (small text), surface (panels), line, hover (nav hover wash), warn (a warning line on a surface), footbg and foottext (the footer band; default ink on surface). */
body { --hover: rgba(28, 21, 3, .1); --warn: #8A1414; }
body.hub-bw { --ground:#F4B321; --ink:#1C1503; --soft:#4A3A0A; --surface:#FFF4D2; --line:#C98F12; }
body.hub-gm { --ground:#BFE1F0; --ink:#0D2433; --soft:#2E4C5E; --surface:#EAF6FB; --line:#8DBED3; --hover: rgba(13, 36, 51, .1); }
body.hub-gn { --glow:rgba(255, 255, 255, .38); --ground:#14173A; --ink:#EEF0FF; --soft:#B4B9E6; --surface:#1E2250; --line:#363B78; --hover: rgba(238, 240, 255, .14); --warn:#FFB4A8; --field:#14173A; }
body.hub-aw { --ground:#EFA9B4; --ink:#2B0D15; --soft:#5A2632; --surface:#FBE3E7; --line:#D07F8D; --hover: rgba(43, 13, 21, .1); }
body.hub-gw { --ground:#BFDDC4; --ink:#0F2A18; --soft:#2E4A38; --surface:#EAF5EC; --line:#86B592; --hover: rgba(15, 42, 24, .1); }
/* Home: Berry Chocolate. Dark chocolate ground, blush ink, mid brown panel. */
body.hub-cg { --ground:#CDB8EC; --ink:#1E1033; --soft:#46325F; --surface:#F1EAFB; --line:#A28CC8; --hover: rgba(30, 16, 51, .1); }
body.hub-ty { --ground:#F2B8A0; --ink:#2E140A; --soft:#5C2E1C; --surface:#FCE6DC; --line:#D08E72; --hover: rgba(46, 20, 10, .1); }
body.hub-cd { --ground:#D7D3CC; --ink:#1F1E1B; --soft:#4A4740; --surface:#F1EFEA; --line:#A9A399; --hover: rgba(31, 30, 27, .1); }
body.hub-fw { --glow:rgba(255, 255, 255, .38); --ground:#1F4E5F; --ink:#E6F3F7; --soft:#B9D6DF; --surface:#163C4A; --line:#4F8497; --hover: rgba(230, 243, 247, .14); --warn:#FFB4A8; --field:#1F4E5F; }
body.hub-qt { --ground:#A8D8D2; --ink:#0B2A27; --soft:#2A4F4A; --surface:#E4F4F1; --line:#6FB0A8; --hover: rgba(11, 42, 39, .1); }
body.hub-oc { --glow:rgba(255, 255, 255, .38); --ground:#B23A48; --ink:#FFF1F2; --soft:#FFE4E7; --surface:#8F2B38; --line:#E08A95; --hover: rgba(255, 241, 242, .08); --warn:#FFE0B8; --field:#B23A48; }
body.hub-home { --glow:rgba(255, 255, 255, .38); --ground:#4E342E; --ink:#FFCDD2; --soft:#F3D3D6; --surface:#6D4C41; --line:#8D6E63; --hover: rgba(30, 18, 15, .45); --warn:#FFD6CC; --footbg:#2E1D1A; --foottext:#FFCDD2; --field:#4E342E; }
/* Card maker: Golden Cocoa. Dark cocoa ground, cream ink, gold for the current tab and the main button. */
body.hub-cm { --glow:rgba(255, 255, 255, .38); --ground:#0D1B2A; --ink:#F5F0E8; --soft:#C9D3DF; --surface:#1A2D42; --line:#243D57; --hover: rgba(212, 160, 23, .18); --warn:#FFC9BD; --footbg:#07111C; --foottext:#F5F0E8; --field:#E3DCCB; --fieldink:#0D1B2A; --fieldline:#D4A017; --gold:#D4A017; --ongold:#0D1B2A; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { padding-bottom: var(--consent-h, 0px); margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; padding: 12px 16px; background: var(--ink); color: var(--surface); font-weight: 800; }
[hidden] { display: none !important; }

/* Top bar */
.bar { padding: 12px 0; }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; margin-right: 10px; font-size: 20px; }
.bar a.nav { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 22px; text-decoration: none; font-weight: 700; font-size: 15px; }
.bar a.nav:hover { background: var(--hover); }
.bar a.nav[aria-current="page"], .bar .navmore summary.on { background: var(--ink); color: var(--surface); }
/* More cards drop-down: a details element, so it works without script; script only closes it on an outside click or Escape. */
/* Phone menu: the nav sits in a details that starts open (so it shows in full without script and on a wide screen); the script in the bar partial adds the class js (so the panel floats under the bar only when script runs; without script the nav stays in the page flow), closes it below 1020px (about where the links stop fitting on one line) and keeps it open above. */
.menubtn { display: none; }
@media (max-width: 1019px) {
  .bar .wrap { position: relative; flex-wrap: nowrap; justify-content: space-between; }
  .menubtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 22px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
  .menubtn::-webkit-details-marker { display: none; }
  .menubtn:hover, .menu[open] .menubtn { background: var(--hover); }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .menu nav { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; }
  .menu.js nav { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; padding: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; }
  .menu nav a.nav, .menu nav .navmore summary { display: flex; align-items: center; min-height: 44px; border-radius: 10px; }
  .navmore ul { position: static; box-shadow: none; margin: 2px 0 0; }
}
.navmore { position: relative; }
.navmore summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 22px; font-weight: 700; font-size: 15px; }
.navmore summary::-webkit-details-marker { display: none; }
.navmore summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.navmore[open] summary::after { transform: translateY(1px) rotate(225deg); }
.navmore summary:hover { background: var(--hover); }
.navmore[open] summary:not(.on) { background: var(--hover); }
.navmore ul { list-style: none; margin: 6px 0 0; padding: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
.navmore li a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; }
.navmore li a:hover { background: var(--hover); }
.navmore li a[aria-current="page"] { background: var(--ink); color: var(--surface); }
@media (min-width: 1020px) { .navmore ul { position: absolute; z-index: 20; top: 100%; right: 0; min-width: 220px; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); } }

/* Hero */
.hero { padding: 18px 0 10px; }
.crumb { font-size: 14px; color: var(--soft); margin: 0; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.crumb li { display: flex; align-items: center; min-height: 44px; }
.crumb li + li::before { content: "/"; margin: 0 6px; }
.crumb a { color: var(--soft); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
h1 { font-size: clamp(34px, 7.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 14px; max-width: 15ch; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 4px; max-width: 34em; }

/* Layout: fields left, cards right on tablet and desktop */
.layout { display: block; padding-bottom: 28px; }
@media (min-width: 768px) {
  .layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; }
  .panel { position: sticky; top: 14px; }
}
/* A panel glows all round so it stands off the page: white on every page, stronger on a light one (--glow). */
.panel { background: var(--surface); border-radius: 16px; padding: 18px 18px 16px; margin-bottom: 24px; box-shadow: 0 0 16px 1px var(--glow, rgba(255, 255, 255, .6)); }
@media (min-width: 768px) { .panel { margin-bottom: 0; } }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { font-weight: 800; font-size: 14px; }
.field > * { width: 100%; }
.hint { font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint.warn { color: var(--warn); font-weight: 700; }
.hint.note { white-space: normal; margin-top: 4px; }
select, input.box { font: inherit; font-weight: 600; min-height: 44px; padding: 6px 10px; border: 2px solid var(--fieldline, var(--ink)); border-radius: 8px; background: var(--field, #fff); color: var(--fieldink, var(--ink)); }
.name-field label { font-size: 22px; }
.name-field input { font: inherit; font-size: 22px; font-weight: 700; min-height: 48px; padding: 4px 2px; border: 0; border-bottom: 4px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0; }
.name-field input::placeholder { color: color-mix(in srgb, var(--ink) 74%, var(--ground)); font-weight: 400; opacity: 1; }
body.hub-oc .name-field input::placeholder { color: color-mix(in srgb, var(--ink) 90%, var(--ground)); }
.name-field input:focus-visible { outline: 0; border-bottom-width: 7px; }
details.more { margin-top: 6px; }
details.more > summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
details.more[open] > summary { margin-bottom: 8px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 22px; text-decoration: none; font-weight: 700; }
.chips a:hover { background: var(--surface); }

/* Sections and tiles */
.tone { margin: 0 0 34px; scroll-margin-top: 16px; }
.tone h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 28px 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { min-width: 0; scroll-margin-top: 16px; }
.pic { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(34, 32, 27, .22), 0 14px 26px -16px rgba(0, 0, 0, .5); background: #fff; }
.pic img, .pic svg { display: block; width: 100%; height: auto; }
.tag { font-size: 13px; font-weight: 800; color: var(--soft); margin: 10px 0 2px; }
.wish { margin: 0 0 10px; font-size: 15px; line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { font: inherit; font-size: 14px; font-weight: 800; min-height: 44px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.btn:hover { background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn.main { background: var(--ink); color: var(--surface); }
.btn.main:hover { opacity: .9; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.status { min-height: 1.4em; font-size: 13px; color: var(--soft); margin: 6px 0 0; }

/* Insertion slots: empty and no height until a block is put in */
.slot:empty { display: none; }

/* Siblings and footer */
.siblings { padding: 8px 0 28px; }
.siblings h2 { font-size: 22px; margin: 0 0 12px; }
.siblings ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.siblings a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 22px; text-decoration: none; font-weight: 700; }
.foot { background: var(--footbg, var(--ink)); color: var(--foottext, var(--surface)); padding: 30px 0 34px; font-size: 14px; margin-top: 20px; }
.foot a { color: var(--foottext, var(--surface)); }
.foot a:focus-visible, .foot .linkbtn:focus-visible { outline-color: var(--foottext, var(--surface)); }
.foot .wrap { display: grid; gap: 14px 40px; }
@media (min-width: 768px) { .foot .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } .footcopy { grid-column: 1 / -1; } }
.foot p { margin: 0; }
.footname { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px !important; }
.footname a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footnote { max-width: 36em; line-height: 1.5; }
.footnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footnav a, .footnav .linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 22px; font-weight: 700; text-decoration: none; }
.footnav a:hover, .footnav .linkbtn:hover { text-decoration: underline; }
.footnav .linkbtn { background: none; border: 0; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.footcopy { font-size: 13px; border-top: 1px solid currentColor; padding-top: 14px; }
.footdisc { font-size: 13px; line-height: 1.5; max-width: 60em; }
.footsites { font-size: 13px; line-height: 1.5; }
.footsites a { text-decoration: underline; }
@media (min-width: 768px) { .footdisc, .footsites { grid-column: 1 / -1; } }

/* FAQ */
.faq details { background: var(--surface); border-radius: 12px; padding: 0 16px; margin: 0 0 8px; }
.faq summary { cursor: pointer; font-weight: 800; min-height: 48px; display: flex; align-items: center; }
.faq details p { margin: 0 0 14px; max-width: 46em; }
/* The FAQ is the same 780px column as the guide above it, centred as a block (text stays left-aligned). */
.faq h2, .faq details { max-width: 780px; margin-left: auto; margin-right: auto; }
/* Air between the "People also search for" pills and the FAQ that follows them. */
.alsopills + .faq { padding-top: 28px; }

/* Hub and home: hero with the name panel on the left and the rack on the right */
.herogrid { display: block; }
@media (min-width: 900px) { .herogrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
  /* The heading shares the row with the card, so it is sized to its column: the longest word (Congratulations) must fit without breaking. */
  .herogrid h1 { font-size: clamp(34px, 5.4vw, 66px); } }
.herotext .panel { margin: 18px 0 0; max-width: 460px; position: static; }
.rack { display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 26px 0 34px; }
.rack .pic { width: min(36%, 250px); flex: none; margin-left: -7%; border-radius: 12px; }
.rack .pic:first-child { margin-left: 0; transform: rotate(-7deg) translateY(16px); }
.rack .pic:nth-child(2) { position: relative; z-index: 1; transform: translateY(-6px); }
.rack .pic:nth-child(3) { transform: rotate(7deg) translateY(16px); }

/* Hub tiles (home) */
.hubtiles { display: grid; grid-template-columns: 1fr; gap: 22px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .hubtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
@media (min-width: 900px) { .hubtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } }
.hubtile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; padding: 20px; border-radius: 16px; text-decoration: none; background: var(--g); color: var(--i); border: 2px solid var(--l); }
a.hubtile:hover { border-color: var(--i); }
.hubtile .hc { color: var(--s); }
.hubtile .hn { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hubtile .hc { font-size: 14px; margin-top: 8px; }
.hubtile .hd { font-size: 16px; line-height: 1.35; margin-top: 6px; color: var(--i); opacity: .92; }
.hubtile.soon { cursor: default; }
/* Trending now band on the home page: a tile is a hub tile with the words on the left and a real card on the right. */
.trending { margin: 0 0 34px; }
.trendtiles { grid-template-columns: 1fr; }
@media (min-width: 640px) { .trendtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .trendtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Each tile fills its place in the row, so the three stay one height when one tile's words wrap onto more lines than its neighbours'. */
.trendtiles > li { display: grid; }
.trendtile { flex-direction: row; align-items: stretch; justify-content: space-between; gap: 16px; }
.trendtile .trendtext { display: flex; flex-direction: column; min-width: 0; }
.trendtile .pic { width: min(104px, 32%); flex: none; align-self: center; border-radius: 10px; overflow: hidden; transform: rotate(4deg); }
.trendtile .pic img { display: block; width: 100%; height: auto; }
/* A festive tile swaps its plain 2px line for a drawn border (tileborders.mjs): an 18px band (the 24px drawing scaled down) repeated round the tile, laid over the padding. */
.trendtile.festive { position: relative; padding: 26px; border-color: transparent; }
.trendtile.festive::before { content: ''; position: absolute; inset: 4px; border: 18px solid transparent; border-image: var(--tb) 24 round; pointer-events: none; }
a.trendtile.festive:hover { border-color: transparent; }
.tpill { align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--i); margin-bottom: 10px; }
.tcta { margin-top: 12px; font-weight: 800; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
/* The three tool cards on the text tools page hold their words in the middle of the card. */
.texttiles .hubtile { justify-content: center; text-align: center; }

/* Card maker: the textarea matches the other fields; the result tile is a single card */
textarea { font: inherit; font-weight: 600; min-height: 110px; padding: 8px 10px; border: 2px solid var(--fieldline, var(--ink)); border-radius: 8px; background: var(--field, #fff); color: var(--fieldink, var(--ink)); resize: vertical; }
.tile.maker { max-width: 440px; }
/* The card maker's picture is drawn by its script. The box holds the card's portrait shape from the first paint, so the wish line and the buttons do not move when the card arrives. */
.tile.maker .pic { aspect-ratio: 1080 / 1350; }
.tile.maker .wish { margin-top: 14px; }
.btn.reset { width: 100%; margin-top: 16px; }

/* Cards beside the controls are shown large enough to read: one on a phone and tablet, two on a wide screen. Full-width grids (hub) are unchanged. */
.layout .grid { grid-template-columns: 1fr; max-width: 460px; }
@media (min-width: 1100px) { .layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
/* Home: the nav bar and the name box take the footer's dark brown. */
body.hub-home .bar { background: var(--footbg); color: var(--foottext); }
body.hub-home .bar a.nav:hover, body.hub-home .menubtn:hover, body.hub-home .menu[open] .menubtn { background: color-mix(in srgb, var(--ink) 16%, transparent); }
body.hub-home .menu nav a.nav:hover { background: var(--hover); }
body.hub-home .panel { background: var(--footbg); }
body.hub-home .hero { padding-top: 48px; }
body.hub-cm .bar a.nav[aria-current="page"], body.hub-cm .btn.main { background: var(--gold); color: var(--ongold); border-color: var(--gold); }
body.hub-cm .btn.main:hover { background: #E6B420; }
/* Card maker: the gold button stays bright while it waits for words; the plain ones fade */
body.hub-cm .btn.main[disabled] { opacity: .85; }
body.hub-cm .btn[disabled]:not(.main) { opacity: .6; }

/* The name hint is the confirmation of what will be on the cards, so it is a little larger and may wrap rather than be cut */
.name-field .hint { font-size: 15px; white-space: normal; }

/* Prose pages (About, legal) and the Contact form */
.prose { max-width: 46em; padding: 6px 0 36px; }
.prose h2 { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.015em; margin: 28px 0 8px; }
.prose h3 { font-size: 18px; margin: 20px 0 6px; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul { padding-left: 22px; margin: 0 0 12px; }
.prose a { text-underline-offset: 3px; }
.prose .updated { color: var(--soft); font-size: 14px; margin: 0 0 8px; }
.contactgrid { display: grid; gap: 8px 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.contactform { margin-bottom: 14px; }
.prose.side { padding-top: 0; }
.prose.side h2:first-child { margin-top: 4px; }
@media (min-width: 900px) { .contactgrid { grid-template-columns: minmax(0, 1fr) 340px; } .prose.side { position: sticky; top: 16px; } }
.contactform input.box, .contactform textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.contactform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contactform .cf-turnstile { margin: 4px 0 16px; }
.contactform .btn { width: 100%; }
.status[data-state="error"] { color: var(--warn); font-weight: 700; }

/* Cookie banner (component: Cookie banner) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 16px; background: var(--surface); color: var(--ink); border-top: 2px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.consent[hidden] { display: none; }
.consent-text { margin: 0; flex: 1 1 320px; font-size: 15px; }
.consent-text a { color: var(--ink); }
.consent-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 0 0 auto; max-width: 100%; }
/* The rest of the wording is folded behind Read full wording so the banner stays short on a phone; the Privacy policy link stays in the
   short line. Only the opened text scrolls, never the buttons, so Accept and Decline stay on screen on a short phone. */
.consent-full { margin: 0; flex: 1 1 100%; font-size: 15px; max-height: max(35vh, 6rem); max-height: max(35dvh, 6rem); overflow-y: auto; }
.consent-full[hidden] { display: none; }
.consent-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.consent-more::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.consent-more[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
/* A reopened banner (G331) has a corner close button, first in tab order; the ring is drawn inside its own box. */
.consent-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 22px; color: inherit; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.consent-x[hidden] { display: none; }
.consent-x:focus-visible { outline-offset: -3px; }
.consent[data-reopened="1"] { padding-right: 60px; }

/* Card maker layout: words and name first, then the card, then the look. On a phone the card sits right under the words. */
.makerlayout { display: flex; flex-direction: column; }
.makerlayout .sidecol { display: contents; }
.makerlayout .sidecol .panel { position: static; }
.makerlayout .sidecol .panel:first-child { order: 1; }
.makerlayout .cards { order: 2; margin-bottom: 24px; }
.makerlayout .sidecol .panel:last-child { order: 3; }
@media (min-width: 768px) {
  .makerlayout { display: grid; }
  .makerlayout .sidecol { display: block; }
  .makerlayout .sidecol .panel { margin-bottom: 14px; }
  /* The controls are taller than the screen, so the card is the part that stays in view while they scroll. */
  .makerlayout .cards { order: 0; margin-bottom: 0; position: sticky; top: 14px; align-self: start; }
  /* The card and its buttons together fit the screen height (the card is 4 wide to 5 tall), so none of it leaves view. */
  .makerlayout .tile.maker { max-width: max(300px, min(440px, calc((100vh - 300px) * 0.8))); }
}

/* Pick bar after the cards on a spoke page: who is it for, before which card. */
.pick { margin: 0 0 22px; }
.pick h2 { font-size: 22px; margin: 0 0 10px; }
.pick .picklabel { margin: 14px 0 8px; font-weight: 700; font-size: 16px; }
.pick ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pick a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 22px; text-decoration: none; font-weight: 700; }
.pick a:hover { background: var(--surface); }
.pick a.on { background: var(--ink); color: var(--surface); }

/* Card maker: air under the intro, and a gold edge on the boxes that hold the fields. */
body.hub-cm .hero { padding-bottom: 28px; }
/* Card maker, first box: the two main inputs (words, name) are labelled and hinted at the same size. */
.makerlayout .sidecol .panel:first-child .field label { font-size: 22px; }
.makerlayout .sidecol .panel:first-child .hint { font-size: 15px; white-space: normal; }
/* Card maker: dark text on a light field reads thinner than light text on dark, so the field text is a touch bolder and darker to match the button labels. */
body.hub-cm select, body.hub-cm textarea, body.hub-cm input.box { font-weight: 700; -webkit-font-smoothing: antialiased; }
body.hub-cm textarea::placeholder, body.hub-cm input.box::placeholder { color: color-mix(in srgb, var(--fieldink) 70%, var(--field)); opacity: 1; }
/* Card maker: the small labels and hints sat thin and faded on the dark panel; slightly larger, and the hints in the full text colour. */
body.hub-cm .panel .field label { font-size: 16px; font-weight: 800; }
body.hub-cm .panel .hint { font-size: 14px; font-weight: 600; color: var(--ink); }
body.hub-cm .panel .hint.warn { color: var(--warn); font-weight: 700; }
body.hub-cm .btn.reset { font-size: 16px; }

/* Home category tiles: on hover or focus a tile lifts and a light runs round its edge (the effect the old site had on its cards). The light is white and runs just outside the tile edge. Switched off for visitors who ask for less motion. */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ringspin { to { --ring: 360deg; } }
a.hubtile { position: relative; transition: transform .35s ease, box-shadow .35s ease; }
a.hubtile::after { content: ""; position: absolute; inset: -6px; border-radius: 22px; padding: 3px; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: conic-gradient(from var(--ring), transparent 0 40%, #fff 92%, #fff 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ringspin 2.4s linear infinite; }
a.hubtile:hover, a.hubtile:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 34px -4px color-mix(in srgb, var(--l) 75%, transparent), 0 0 30px 2px rgba(255, 255, 255, .22); }
a.hubtile:hover::after, a.hubtile:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { a.hubtile::after { animation: none; } a.hubtile:hover, a.hubtile:focus-visible { transform: none; } }
h1, h2 { overflow-wrap: break-word; }

/* Text tools page: the text box, then one row per style with its preview and a Copy button. */
.textlayout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
@media (min-width: 900px) { .textlayout { grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; } .textlayout .panel { position: sticky; top: 14px; } }
.trows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 2px solid var(--gold, var(--line)); border-radius: 14px; padding: 14px 16px; }
.trow .tlab { min-width: 0; }
.trow .tname { display: block; font-size: 14px; font-weight: 800; color: var(--soft); margin-bottom: 4px; }
.trow .tout { display: block; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.trow .tout.off { font-size: 16px; color: var(--soft); }
.trow .btn { min-width: 88px; }

/* Text tools: the decoration choice, a row of toggle buttons (aria-pressed). */
.flabel { display: block; font-weight: 800; margin-bottom: 6px; }
.decs { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-btn { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 4px 12px; border: 2px solid var(--fieldline, var(--ink)); border-radius: 22px; background: transparent; color: var(--ink); cursor: pointer; }
.toggle-btn:hover { background: var(--hover); }
.toggle-btn.on, .toggle-btn[aria-pressed="true"] { background: var(--gold, var(--ink)); color: var(--ongold, var(--surface)); border-color: var(--gold, var(--ink)); }

.guide { padding: 8px 0 20px; }
.guide h2 { font-size: 22px; margin: 22px 0 10px; }
.guide p { max-width: 780px; line-height: 1.6; margin: 0 0 14px; }
/* The guide is one 780px column centred as a block on every page, between the full-width cards and the centred pills; the text inside stays left-aligned. */
.guide h2, .guide p { max-width: 780px; margin-left: auto; margin-right: auto; }
.alsopills { margin: 8px auto 0; }
.pick .plainpill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px dashed var(--soft); border-radius: 22px; font-weight: 600; color: var(--soft); }
.alsopills { text-align: center; }
.alsopills ul { gap: 10px; justify-content: center; }
