/* "Organic" design system from the Nov 2026 redesign handoff, ported as-is (fonts are linked in beta.blade.php). */

:root {
  /* Palette A, "ink on paper" (Nov 2026): white, black and neutral greys. Colour comes only from the
     motif families (their icons) and the countries (COUNTRY_COLORS in beta/ui.jsx). The ramp names are
     the handoff's; accent is now ink, accent-2 a cooler grey. */
  --color-bg: #ffffff;
  --color-surface: #f4f4f4;
  --color-text: #111111;
  --color-accent: #111111;
  --color-accent-2: #6e6e6e;
  --color-divider: color-mix(in srgb, #111111 14%, transparent);

  --color-neutral-100: #f6f6f6;
  --color-neutral-200: #ebebeb;
  --color-neutral-300: #d6d6d6;
  --color-neutral-400: #bababa;
  --color-neutral-500: #9b9b9b;
  --color-neutral-600: #7b7b7b;
  --color-neutral-700: #5d5d5d;
  --color-neutral-800: #404040;
  --color-neutral-900: #262626;

  --color-accent-100: #f2f2f2;
  --color-accent-200: #e5e5e5;
  --color-accent-300: #c8c8c8;
  --color-accent-400: #a3a3a3;
  --color-accent-500: #8a8a8a;
  --color-accent-600: #6f6f6f;
  --color-accent-700: #555555; /* secondary ink: kickers, links, hover on black text */
  --color-accent-800: #2b2b2b;
  --color-accent-900: #111111;

  --color-accent-2-100: #f0f0f0;
  --color-accent-2-200: #e2e2e2;
  --color-accent-2-300: #cccccc;
  --color-accent-2-400: #adadad;
  --color-accent-2-500: #8c8c8c;
  --color-accent-2-600: #6e6e6e;
  --color-accent-2-700: #545454;
  --color-accent-2-800: #3a3a3a;
  --color-accent-2-900: #222222;

  --font-heading: "Big Shoulders Display", system-ui, sans-serif; /* Latin Extended: ș ț ă ő ű č ć đ š ž */
  --font-heading-weight: 600;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #111111 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #111111 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #111111 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.washed{filter:saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1, h2, h3, h4 { letter-spacing: 0.01em; }
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::-moz-selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-800); }
.btn-primary:active { background: var(--color-accent-900); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
/* Native selects: our own chevron with room around it (the browser's sits tiny against the rounded edge). */
select.input {
  -moz-appearance: none;
       appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
  padding: 10px 46px 10px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 12px 8px;
}
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent); color: var(--color-bg); } /* selected: solid ink */
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--color-accent-700); }
.nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* — rounded frame: everything softens, small controls go pill — */
.card, .dialog { border-radius: calc(var(--radius-lg) * 1.15); }
.btn, .tag, .seg, .input { border-radius: 999px; }
.input { padding-inline: 14px; }

/* Beta design: page layout on top of organic.css. Desktop values follow the 1440px mockups, mobile (≤900px) the 390px ones. */
:root { --gutter: 64px; --page: 1440px; }
@media (max-width: 900px) { :root { --gutter: 20px; } }

body { text-wrap: pretty; }
a { color: var(--color-accent-700); text-decoration: none; }
a:where(:not(.btn)):hover { color: var(--color-accent-900); } /* not on button links: it beat .btn-primary's white text */
p a { text-decoration: underline; } /* inline links: grey alone is too weak on white */
button { font: inherit; color: inherit; }

.ch-page { position: relative; overflow: clip; } /* clips the decorative circle at the top too; not a scroll box, so sticky still works */
.ch-page > header, .ch-page > main { max-width: var(--page); margin-left: auto; margin-right: auto; }
.ch-gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.ch-muted { color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.ch-count { opacity: 0.65; margin-left: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.9em; }
.ch-loading { display: grid; place-items: center; min-height: 40vh; }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.ch-photo { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; display: block; }
.ch-country, .ch-region, .tag-country { background: var(--country); } /* --country comes from countryStyle() in ui.jsx */
.tag-country { color: var(--color-text); }

/* — header — */
.ch-nav { position: relative; z-index: 2; padding: 22px var(--gutter); gap: 28px; }
.ch-nav .ch-brand { display: flex; flex: none; line-height: 0; }
.ch-brand img { width: 56px; height: 56px; }
.ch-links { display: flex; gap: 28px; }
.ch-links a { font-size: 15px; font-weight: 500; }
.ch-lang .seg-opt { font-weight: 600; padding: 6px 11px; }
.ch-menu-btn { display: none; width: 44px; height: 44px; place-items: center; }
.ch-mobile-menu { position: relative; z-index: 2; display: flex; flex-direction: column; margin: 0 var(--gutter) 16px; padding: 12px 24px; background: var(--color-neutral-100); border-radius: 28px; }
.ch-mobile-menu a { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; padding: 8px 0; color: var(--color-text); }
.ch-mobile-menu a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 900px) {
  .ch-nav { padding: 16px var(--gutter); gap: 8px; }
  .ch-lang .seg-opt { padding: 5px 8px; font-size: 12px; }
  .ch-brand img { width: 44px; height: 44px; }
  .ch-links { display: none; }
  .ch-menu-btn { display: grid; }
}
@media (min-width: 1081px) { .ch-mobile-menu { display: none; } }

/* — footer — */
.ch-footer {
  width: calc(100% - 64px); max-width: calc(var(--page) - 64px); margin: 0 auto 32px;
  background: var(--color-neutral-100); border-radius: 56px; padding: 48px 56px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; font-size: 14px; line-height: 1.7;
}
.ch-footer-brand { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; margin-bottom: 10px; }
.ch-footer p { margin: 0; max-width: 40ch; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.ch-footer-col { display: flex; flex-direction: column; gap: 4px; }
.ch-footer-col strong { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 900px) { .ch-footer { width: calc(100% - 24px); margin-bottom: 12px; border-radius: 36px; padding: 32px 24px; grid-template-columns: 1fr; gap: 16px; } }

/* — shared section type — */
.ch-section { padding-top: 48px; padding-bottom: 72px; }
.ch-section-first { padding-top: 32px; }
.ch-section-last { padding-bottom: 96px; }
.ch-kicker { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); margin-bottom: 16px; }
.ch-h2 { font-size: 40px; margin: 0 0 36px; }
.ch-h2-tight { margin-bottom: 0; }
.ch-h2-sm { font-size: 36px; margin-bottom: 28px; }
.ch-intro { font-size: 18px; line-height: 1.6; max-width: 56ch; margin: 16px 0 32px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.ch-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.ch-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ch-3col-cards { gap: 28px; }
.ch-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-pills .btn { font-size: 15px; }
.ch-motifs .btn { font-size: 16px; padding: 12px 22px; }
.ch-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ch-tags .tag { font-size: 12px; }
.ch-notfound h1 { font-size: 48px; }
.ch-notfound p { font-size: 18px; margin: 12px 0 28px; }
@media (max-width: 900px) {
  .ch-section { padding-top: 16px; padding-bottom: 32px; }
  .ch-section-last { padding-bottom: 40px; }
  .ch-kicker { font-size: 12px; margin-bottom: 14px; }
  .ch-h2, .ch-h2-sm { font-size: 28px; margin-bottom: 16px; }
  .ch-h2-tight { margin-bottom: 0; }
  .ch-intro { font-size: 16px; margin: 12px 0 20px; }
  .ch-3col, .ch-3col-cards { grid-template-columns: 1fr; gap: 16px; }
  .ch-pills { gap: 8px; }
  .ch-pills .btn, .ch-motifs .btn { font-size: 15px; min-height: 44px; padding: 10px 18px; }
  .ch-notfound h1 { font-size: 36px; }
}

/* — cards — */
.ch-card { padding: 0; gap: 0; overflow: hidden; background: var(--color-neutral-100); color: var(--color-text); transition: box-shadow 0.2s, transform 0.2s; }
.ch-card:hover { color: var(--color-text); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ch-card-img { height: 220px; background: var(--color-neutral-200); }
.ch-card.big .ch-card-img { height: 300px; }
.ch-card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.ch-card.big .ch-card-body { padding: 24px 28px 28px; }
.ch-card-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); }
.ch-card h3 { font-size: 21px; margin: 0; }
.ch-card.big h3 { font-size: 24px; }
.ch-card .ch-muted { font-size: 14px; }
@media (max-width: 900px) {
  .ch-card-img, .ch-card.big .ch-card-img { height: 200px; }
  .ch-card-body, .ch-card.big .ch-card-body { padding: 18px 22px 22px; gap: 6px; }
  .ch-card h3, .ch-card.big h3 { font-size: 22px; }
}

/* — home — */
.ch-blob { position: absolute; right: -140px; top: -180px; width: 460px; height: 460px; border-radius: 50%; background: var(--color-neutral-200); pointer-events: none; }
.ch-hero { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.ch-display { font-size: 76px; line-height: 1.06; margin: 0; }
.ch-display span { display: block; }
.ch-accent { color: var(--color-accent); }
.ch-lead { font-size: 19px; line-height: 1.65; max-width: 52ch; margin: 36px 0 0; color: color-mix(in srgb, var(--color-text) 85%, transparent); }
.ch-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.ch-hero-img { margin: 0; height: 620px; border-radius: 56px; overflow: hidden; background: var(--color-neutral-200); }
.ch-hero-img img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.ch-country { border-radius: 48px; padding: 40px; }
.ch-country-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ch-country h3 { font-size: 30px; margin: 0; }
.ch-country-head span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ch-country .ch-pills { margin-top: 28px; }
.ch-panel-sage { background: var(--color-accent-2-100); border-radius: 56px; padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ch-panel-sage .ch-kicker { color: var(--color-accent-2-800); }
.ch-panel-sage p { font-size: 18px; line-height: 1.65; max-width: 50ch; margin: 20px 0 0; }
.ch-circles { display: grid; grid-template-columns: repeat(2, 180px); gap: 20px; justify-content: center; }
.ch-circle { width: 180px; height: 180px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; }
.ch-circle:nth-child(even) { margin-top: 40px; }
@media (max-width: 1200px) { .ch-display { font-size: 60px; } .ch-hero { gap: 48px; } }
@media (max-width: 900px) {
  .ch-blob { right: -90px; top: -90px; width: 220px; height: 220px; }
  .ch-hero { grid-template-columns: 1fr; gap: 0; padding-top: 24px; padding-bottom: 32px; }
  .ch-hero-text { display: contents; }
  .ch-hero-img { order: 1; height: 300px; border-radius: 40px; margin-top: 24px; }
  .ch-actions { order: 2; margin-top: 20px; }
  .ch-actions .btn { width: 100%; min-height: 52px; }
  .ch-display { font-size: 44px; }
  .ch-display span { display: inline; }
  .ch-lead { font-size: 16px; line-height: 1.6; margin: 18px 0 0; }
  .ch-country { border-radius: 32px; padding: 22px; }
  .ch-country h3 { font-size: 22px; }
  .ch-country .ch-pills { margin-top: 14px; }
  .ch-panel-sage { grid-template-columns: 1fr; gap: 28px; padding: 28px; border-radius: 40px; }
  .ch-panel-sage p { font-size: 16px; }
  .ch-circles { grid-template-columns: repeat(2, 130px); }
  .ch-circle { width: 130px; height: 130px; font-size: 18px; }
}

/* — catalog — */
.ch-cat-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-top: 40px; padding-bottom: 24px; }
.ch-cat-head h1 { font-size: 60px; margin: 0; }
.ch-cat-head p { font-size: 18px; margin: 12px 0 0; }
.ch-search { width: 380px; min-height: 48px; font-size: 16px; }
.ch-cat-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 24px; padding-bottom: 80px; }
.ch-cat-body > aside { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 0 8px 16px 0; scrollbar-width: thin; }
.ch-filters { display: flex; flex-direction: column; gap: 32px; }
.ch-filter-title { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.field > label.ch-filter-title { font-size: 13px; color: var(--color-text); margin-bottom: 12px; }
.field select.input { min-height: 44px; font-size: 15px; }
.ch-radios { display: flex; flex-direction: column; gap: 10px; }
.ch-radios .radio { font-size: 16px; }
.ch-taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-tag { font-size: 14px; padding: 6px 12px; border: 0; cursor: pointer; font-family: var(--font-body); }
.ch-tag .ch-count { margin-left: 6px; }
.ch-tag:disabled { opacity: 0.4; cursor: default; }
.ch-tag.tag-neutral:hover:not(:disabled) { background: var(--color-neutral-300); }
.ch-family + .ch-family { margin-top: 16px; }
.ch-family-tag { font-weight: 700; margin-bottom: 8px; }
.ch-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; font-size: 15px; }
.ch-active .tag { font-size: 14px; padding: 6px 12px; border: 0; cursor: pointer; font-family: var(--font-body); }
.ch-linkbtn { background: none; border: 0; padding: 0; margin-left: 8px; font-weight: 600; color: var(--color-accent-700); cursor: pointer; }
.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ch-empty { font-size: 18px; padding: 48px 0; }
.ch-mobile-only { display: none; }
.ch-mobile-actions { gap: 8px; margin-top: 14px; }
.ch-mobile-actions .btn { font-size: 15px; min-height: 44px; padding: 10px 18px; }
.ch-sheet-backdrop { position: fixed; inset: 0; z-index: 20; background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent); }
.ch-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 85vh; display: flex; flex-direction: column; background: var(--color-bg); border-radius: 32px 32px 0 0; box-shadow: var(--shadow-lg); }
.ch-sheet-body { overflow-y: auto; padding: 28px 20px; }
.ch-sheet-foot { padding: 12px 20px 20px; border-top: 1px solid var(--color-divider); }
.ch-sheet-foot .btn { margin: 0; min-height: 52px; }
@media (max-width: 1200px) { .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ch-cat-head { display: block; padding-top: 16px; padding-bottom: 12px; }
  .ch-cat-head h1 { font-size: 40px; }
  .ch-cat-head p { font-size: 15px; margin: 6px 0 16px; }
  .ch-search { width: 100%; min-height: 50px; }
  .ch-mobile-only { display: flex; }
  .ch-cat-body { display: block; padding-top: 12px; padding-bottom: 40px; }
  .ch-cat-body > aside { display: none; }
  .ch-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* — building — */
.ch-crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 15px; }
.ch-building { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; padding-top: 32px; padding-bottom: 64px; }
.ch-main-photo { height: 640px; border-radius: 56px; overflow: hidden; background: var(--color-neutral-200); }
.ch-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ch-thumbs button { height: 150px; padding: 0; border: 3px solid transparent; border-radius: 32px; overflow: hidden; cursor: pointer; background: var(--color-neutral-200); }
.ch-thumbs button[aria-pressed='true'] { border-color: var(--color-accent); }
.ch-tag-lg { font-size: 14px; padding: 6px 14px; font-weight: 600; }
.ch-building h1 { font-size: 64px; line-height: 1.05; margin: 20px 0 8px; }
.ch-sub { font-size: 20px; margin: 0 0 36px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.ch-facts { background: var(--color-neutral-100); border-radius: 40px; padding: 12px 28px; }
.ch-facts td { padding: 14px 4px; font-size: 16px; }
.ch-facts td:first-child { width: 40%; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.ch-facts td:last-child { font-weight: 600; }
.ch-facts tr:last-child td { border-bottom: none; }
.ch-facts .table tbody tr:hover { background: none; }
.ch-motifs-title { margin: 36px 0 12px; }
.ch-note { font-size: 15px; margin: 12px 0 0; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.ch-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ch-related a { display: flex; gap: 20px; align-items: center; padding: 12px 28px 12px 12px; border-radius: 999px; background: var(--color-neutral-100); color: var(--color-text); transition: box-shadow 0.2s; }
.ch-related a:hover { box-shadow: var(--shadow-md); color: var(--color-text); }
.ch-round { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; background: var(--color-neutral-200); }
.ch-related h3 { font-size: 20px; margin: 0 0 4px; }
.ch-related .ch-muted { font-size: 14px; }
@media (max-width: 1200px) { .ch-related { grid-template-columns: 1fr; gap: 12px; } .ch-building h1 { font-size: 52px; } }
@media (max-width: 900px) {
  .ch-crumbs { padding-top: 8px; font-size: 14px; }
  .ch-building { grid-template-columns: 1fr; gap: 20px; padding-top: 14px; padding-bottom: 40px; }
  .ch-main-photo { height: 380px; border-radius: 40px; }
  .ch-thumbs { gap: 8px; }
  .ch-thumbs button { height: 72px; border-radius: 20px; }
  .ch-building h1 { font-size: 40px; margin: 14px 0 4px; }
  .ch-sub { font-size: 17px; margin-bottom: 20px; }
  .ch-facts { border-radius: 28px; padding: 6px 20px; }
  .ch-facts td { font-size: 15px; padding: 10px 4px; }
  .ch-related a { gap: 14px; padding: 8px 20px 8px 8px; }
  .ch-round { width: 60px; height: 60px; }
  .ch-related h3 { font-size: 17px; }
}

/* — page heads shared by inner pages — */
.ch-page-head { padding-top: 40px; padding-bottom: 24px; }
.ch-page-head h1 { font-size: 60px; margin: 0; }
.ch-page-head p { font-size: 18px; line-height: 1.6; max-width: 60ch; margin: 16px 0 0; }
.ch-panel-btn { margin-top: 28px; }
.ch-building-actions { margin-top: 36px; }
@media (max-width: 900px) {
  .ch-page-head { padding-top: 16px; padding-bottom: 8px; }
  .ch-page-head h1 { font-size: 40px; }
  .ch-page-head p { font-size: 16px; }
  .ch-building-actions .btn { width: 100%; min-height: 52px; }
}

/* — map — */
.ch-map-page { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 80px; }
.ch-map { position: relative; border-radius: 40px; overflow: hidden; background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-divider); } /* aspect-ratio comes from map/shapes.js, so % positions match the SVG */
.ch-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ch-map-svg path { stroke: var(--color-bg); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ch-map-neighbour { fill: var(--color-neutral-100); }
.ch-map-rest { fill: color-mix(in srgb, var(--country) 40%, var(--color-bg)); }
.ch-map-unit { fill: var(--country); }
.ch-map-svg .ch-map-dkmt { fill: none; stroke: var(--color-text); stroke-width: 1.5; }
.ch-map-county { position: absolute; transform: translate(-50%, -50%); font-size: var(--county-fs, 12px); font-weight: 500; line-height: 1.3; white-space: pre; text-align: center; color: var(--color-neutral-700); pointer-events: none; }
.ch-map-country { position: absolute; transform: translate(-50%, -50%); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--color-neutral-700); pointer-events: none; }
.ch-map-note { position: absolute; left: 24px; top: 24px; display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--color-bg); }
.ch-map-key { width: 18px; border-top: 2px solid var(--color-text); }
/* A marker's anchor is the centre of its circle (--d = circle size, set in Map.jsx); map/labels.js picks the name's side. */
.ch-marker { position: absolute; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(calc(var(--d) / -2), -50%); }
.ch-marker-left { flex-direction: row-reverse; transform: translate(calc(-100% + var(--d) / 2), -50%); }
.ch-marker-bottom { flex-direction: column; gap: 2px; transform: translate(-50%, calc(var(--d) / -2)); }
.ch-marker-top { flex-direction: column-reverse; gap: 2px; transform: translate(-50%, calc(-100% + var(--d) / 2)); }
.ch-dot { width: var(--d); height: var(--d); flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--color-text); background: var(--color-bg); color: var(--color-text); font-size: 13px; font-weight: 700; transition: box-shadow 0.2s; }
.ch-marker-label { font-weight: 600; font-size: var(--fs, 15px); line-height: 1.3; white-space: nowrap; text-shadow: 0 0 3px var(--color-bg), 0 0 3px var(--color-bg), 0 0 6px var(--color-bg); }
.ch-marker:hover .ch-dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent) 25%, transparent); }
.ch-marker[aria-pressed='true'] .ch-dot { background: var(--color-text); color: var(--color-bg); box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-text) 22%, transparent); }
.ch-marker[aria-pressed='true'] .ch-marker-label { font-weight: 700; }
.ch-marker-nolabel:not(:hover, :focus-visible) .ch-marker-label { display: none; } /* no room for the name: it shows on hover */
.ch-map-side { display: flex; flex-direction: column; gap: 20px; }
.ch-map-side h1 { font-size: 48px; line-height: 1.08; margin: 0; }
.ch-map-intro { font-size: 17px; line-height: 1.6; margin: 0; }
.ch-map-pills { display: none; }
.ch-map-panel { background: var(--color-neutral-100); border-radius: 40px; padding: 28px; }
.ch-map-panel-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.ch-map-panel h2 { font-size: 32px; margin: 0 0 20px; }
.ch-map-list { display: flex; flex-direction: column; gap: 12px; max-height: 440px; overflow-y: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: thin; }
.ch-map-row { display: flex; gap: 14px; align-items: center; color: var(--color-text); }
.ch-map-row:hover { color: var(--color-accent-700); }
.ch-map-row-name { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; line-height: 1.2; }
.ch-map-row .ch-muted { font-size: 14px; }
.ch-round-sm { width: 56px; height: 56px; }
.ch-map-panel .btn-block { margin-top: 24px; }
@media (max-width: 1200px) { .ch-map-page { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; } }
@media (max-width: 900px) {
  .ch-map-page { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-top: 16px; padding-bottom: 40px; } /* the map has only absolute children: it needs the stretch for a width */
  .ch-map-side { display: contents; }
  .ch-map-side h1 { order: 0; font-size: 36px; }
  .ch-map-intro { order: 0; font-size: 15px; }
  .ch-map { order: 1; border-radius: 28px; }
  .ch-map-pills { order: 2; display: flex; }
  .ch-map-panel { order: 3; border-radius: 32px; padding: 22px; }
  .ch-dot { font-size: 11px; }
  .ch-map-country { font-size: 11px; }
  .ch-map-note { left: 12px; top: 12px; font-size: 11px; padding: 4px 10px; }
  .ch-map-list { max-height: none; overflow: visible; }
}

/* — motifs — */
.ch-motif-family { padding-top: 32px; padding-bottom: 16px; }
.ch-motif-family-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.ch-motif-family-head h2 { font-size: 32px; margin: 0; }
.ch-motif-family-head h2 a { color: var(--color-text); }
.ch-motif-family-head h2 a:hover { color: var(--color-accent-700); }
.ch-motif-family-head span { font-size: 14px; font-weight: 600; color: var(--color-accent-700); }
.ch-motif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 20px; }
.ch-motif { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--color-text); }
.ch-motif:hover { color: var(--color-accent-700); }
.ch-motif-img { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--color-neutral-100); transition: box-shadow 0.2s, transform 0.2s; }
.ch-motif-icon { background: none; }
.ch-motif-icon .ch-icon { width: 100%; height: 100%; }
.ch-icon { flex: none; -o-object-fit: contain; object-fit: contain; }
.ch-family-icon { width: 96px; height: 96px; }
.tag .ch-icon { width: 20px; height: 20px; margin: -2px 6px -2px -4px; }
.ch-motif:hover .ch-motif-img { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ch-motif-name { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; line-height: 1.2; }
.ch-motif .ch-muted { font-size: 13px; margin-top: -6px; }
.ch-compare { background: var(--color-accent-2-100); border-radius: 56px; padding: 48px; }
.ch-compare .ch-kicker { color: var(--color-accent-2-800); }
.ch-compare-head { margin-bottom: 32px; }
.ch-compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.ch-compare-side select.input { min-height: 48px; font-size: 15px; margin-bottom: 16px; background-color: var(--color-bg); }
.ch-compare-photo { display: block; height: 460px; border-radius: 44px; overflow: hidden; background: var(--color-neutral-200); }
.ch-compare-side h3 { font-size: 26px; margin: 20px 0 4px; }
.ch-compare-side h3 a { color: var(--color-text); }
.ch-compare-side .ch-muted { font-size: 16px; }
.ch-compare-mid { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding-top: 60px; }
.ch-compare-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px; }
.ch-compare-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ch-compare-tags .btn { font-size: 16px; }
@media (max-width: 1100px) { .ch-compare-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ch-compare-mid { grid-column: 1 / -1; grid-row: 2; padding-top: 0; } }
@media (max-width: 900px) {
  .ch-motif-family { padding-top: 16px; padding-bottom: 8px; }
  .ch-motif-family-head h2 { font-size: 26px; }
  .ch-motif-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 18px 12px; }
  .ch-motif-img { width: 88px; height: 88px; }
  .ch-family-icon { width: 60px; height: 60px; }
  .ch-motif-name { font-size: 15px; }
  .ch-compare { padding: 24px 20px; border-radius: 36px; }
  .ch-compare-head { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
  .ch-compare-grid { grid-template-columns: 1fr; gap: 24px; }
  .ch-compare-mid { grid-row: auto; } /* between the two buildings */
  .ch-compare-photo { height: 300px; border-radius: 32px; }
  .ch-compare-side h3 { font-size: 22px; }
}

/* — about — */
.ch-blob-about { right: -120px; top: 60px; width: 380px; height: 380px; background: var(--color-accent-100); }
.ch-about-intro { position: relative; max-width: 1044px; padding-top: 56px; padding-bottom: 32px; }
.ch-about-intro h1 { font-size: 64px; line-height: 1.06; margin: 0; }
.ch-about-lead { font-size: 22px; line-height: 1.6; margin: 32px 0 0; }
.ch-about-body { font-size: 18px; line-height: 1.65; margin: 20px 0 0; max-width: 70ch; color: color-mix(in srgb, var(--color-text) 85%, transparent); }
.ch-region { border-radius: 44px; padding: 36px; }
.ch-region h3 { font-size: 28px; margin: 0 0 16px; }
.ch-tag-bg { background: var(--color-bg); cursor: default; }
.ch-timeline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ch-timeline-item { display: flex; gap: 28px; align-items: flex-start; }
.ch-timeline-item h3 { font-size: 26px; margin: 8px 0 10px; }
.ch-timeline-item h3 a { color: var(--color-text); }
.ch-timeline-item h3 a:hover { color: var(--color-accent-700); }
.ch-timeline-item p { font-size: 17px; line-height: 1.6; margin: 0; }
.ch-year { width: 120px; height: 120px; flex: none; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 28px; }
.ch-year-past { background: var(--color-accent-2-200); color: var(--color-accent-2-900); }
.ch-year-now { background: var(--color-accent); color: var(--color-bg); font-size: 26px; }
.ch-taglist .ch-tag:not(button) { cursor: default; }
@media (max-width: 900px) {
  .ch-blob-about { right: -90px; top: 40px; width: 200px; height: 200px; }
  .ch-about-intro { padding-top: 24px; padding-bottom: 16px; }
  .ch-about-intro h1 { font-size: 36px; }
  .ch-about-lead { font-size: 18px; margin-top: 20px; }
  .ch-about-body { font-size: 16px; }
  .ch-region { border-radius: 32px; padding: 22px; }
  .ch-region h3 { font-size: 22px; }
  .ch-timeline { grid-template-columns: 1fr; gap: 24px; }
  .ch-timeline-item { gap: 16px; }
  .ch-year { width: 76px; height: 76px; font-size: 20px; }
  .ch-year-now { font-size: 18px; }
  .ch-timeline-item h3 { font-size: 21px; margin-top: 4px; }
  .ch-timeline-item p { font-size: 15px; }
}

/* — four cities — */
.ch-fc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; padding-top: 56px; padding-bottom: 48px; }
.ch-fc-head h1 { font-size: 76px; line-height: 1.04; margin: 20px 0 0; }
.ch-fc-head p { font-size: 19px; line-height: 1.65; margin: 0; }
.ch-fc-cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 24px; padding-bottom: 64px; }
.ch-fc-city { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.ch-fc-city:nth-child(even) { margin-top: 40px; }
.ch-fc-circle { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
a:hover > .ch-fc-circle { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ch-fc-city h3 { font-size: 28px; margin: 0; }
.ch-dash { display: block; width: 32px; height: 4px; border-radius: 2px; }
.ch-fc-city .ch-dash { margin: 0 auto 12px; }
.ch-fc-city .ch-muted { font-size: 15px; }
.ch-fc-found { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding: 56px 64px; border-radius: 56px; background: var(--color-accent-100); }
.ch-fc-found .ch-kicker { color: var(--color-accent-800); margin-bottom: 14px; }
.ch-fc-found p { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 32px; line-height: 1.3; margin: 0; max-width: 34ch; }
@media (max-width: 1200px) { .ch-fc-head h1 { font-size: 60px; } }
@media (max-width: 900px) {
  .ch-fc-head { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
  .ch-fc-head h1 { font-size: 40px; margin-top: 14px; }
  .ch-fc-head p { font-size: 16px; }
  .ch-fc-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-top: 8px; padding-bottom: 32px; }
  .ch-fc-city:nth-child(even) { margin-top: 28px; }
  .ch-fc-city h3 { font-size: 21px; }
  .ch-fc-found { grid-template-columns: 1fr; gap: 20px; padding: 28px; border-radius: 36px; }
  .ch-fc-found p { font-size: 22px; }
  .ch-fc-found .btn { width: 100%; min-height: 52px; }
}

/* — header: six links need more room than the phone breakpoint gives — */
@media (max-width: 1080px) {
  .ch-links { display: none; }
  .ch-menu-btn { display: grid; }
}

/* — partners — */
.ch-partners { display: flex; flex-direction: column; gap: 48px; padding-top: 24px; }
.ch-partners .ch-filter-title { margin-bottom: 16px; }
.ch-partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ch-partner { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 40px; background: var(--color-neutral-100); }
.ch-partner-logo { height: 96px; display: grid; place-items: center; padding: 12px 20px; border-radius: 24px; background: var(--color-bg); }
.ch-partner-logo img { max-height: 72px; max-width: 100%; -o-object-fit: contain; object-fit: contain; }
.ch-partner-text { margin-top: auto; }
.ch-partner-name { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 19px; line-height: 1.25; }
.ch-partner .ch-muted { font-size: 14px; margin-top: 4px; }
.ch-partners .ch-actions { margin-top: 0; }
@media (max-width: 1100px) { .ch-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ch-partners { gap: 32px; padding-top: 8px; }
  .ch-partner-grid { grid-template-columns: 1fr; gap: 12px; }
  .ch-partner { padding: 22px; border-radius: 32px; }
  .ch-partner-name { font-size: 18px; }
}

/* — contact — */
.ch-contact { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.ch-contact > :not(.ch-blob) { position: relative; } /* above the decorative circle */
.ch-blob-contact { top: auto; right: auto; left: -120px; bottom: 40px; width: 340px; height: 340px; background: var(--color-accent-2-200); }
.ch-contact h1 { font-size: 64px; line-height: 1.06; margin: 0; }
.ch-contact-intro { font-size: 19px; line-height: 1.6; margin: 24px 0 40px; max-width: 40ch; }
.ch-contact-info { display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: 44px; background: var(--color-accent-100); font-size: 17px; line-height: 1.55; }
.ch-contact-info .ch-filter-title { margin-bottom: 4px; }
.ch-contact-form { display: flex; flex-direction: column; gap: 22px; padding: 48px; border-radius: 56px; background: var(--color-neutral-100); }
.ch-contact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ch-contact-form .field > label, .ch-label { display: block; font-size: 14px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.ch-contact-form .input { min-height: 50px; font-size: 16px; background: var(--color-bg); }
.ch-contact-form textarea.input { min-height: 180px; border-radius: 28px; padding: 16px; }
.ch-topic { flex-wrap: wrap; }
.ch-topic .seg-opt { font-size: 15px; padding: 10px 18px; }
.ch-field-error { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--color-accent-800); }
.ch-send { align-self: flex-start; padding: 14px 28px; }
.ch-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ch-contact-sent h2 { font-size: 40px; margin: 0; }
.ch-contact-sent p { font-size: 18px; margin: 0; }
.ch-contact-sent .btn { align-self: flex-start; }
@media (max-width: 1100px) { .ch-contact { gap: 40px; } .ch-contact-row { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .ch-contact { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; padding-bottom: 40px; }
  .ch-blob-contact { left: -90px; bottom: auto; top: 140px; width: 200px; height: 200px; }
  .ch-contact h1 { font-size: 40px; }
  .ch-contact-intro { font-size: 16px; margin: 14px 0 20px; }
  .ch-contact-info { padding: 22px; border-radius: 32px; font-size: 15px; }
  .ch-contact-form { padding: 24px 20px; border-radius: 36px; gap: 18px; }
  .ch-topic { display: flex; flex-direction: column; border-radius: 24px; }
  .ch-topic .seg-opt { justify-content: center; min-height: 44px; }
  .ch-topic .seg-opt + .seg-opt { border-left: 0; border-top: 1px solid var(--color-divider); }
  .ch-send, .ch-contact-sent .btn { align-self: stretch; min-height: 52px; }
}

/* Chapter texts (chapters.jsx): the catalog's intro when one motif is selected, the family intros on Motifs. */
.ch-chapter { background: var(--color-neutral-100); border-radius: 40px; padding: 28px 32px; margin-bottom: 28px; }
.ch-chapter-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ch-chapter-head h2 { font-size: 32px; margin: 0; }
.ch-chapter-text { max-width: 72ch; }
.ch-chapter-text p { font-size: 17px; line-height: 1.6; margin: 0 0 12px; white-space: pre-line; }
.ch-readmore { background: none; border: 0; padding: 0; font: inherit; font-size: 16px; font-weight: 600; color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ch-family-intro { margin: -8px 0 28px; }
@media (max-width: 900px) {
  .ch-chapter { border-radius: 28px; padding: 20px; }
  .ch-chapter-head h2 { font-size: 26px; }
  .ch-chapter-text p { font-size: 16px; }
}
