/* The Cozy Talk theme: everything theme.json cannot express. */
:root {
  /* Every colour follows the palette in Appearance → Editor → Styles, so the look is customisable
     without touching code; the values after the comma are the defaults. */
  --ct-sand: var(--wp--preset--color--sand, #F4EBDF); --ct-cream: var(--wp--preset--color--cream, #FFF8EF);
  --ct-ink: var(--wp--preset--color--ink, #241C17); --ct-ink-2: var(--wp--preset--color--ink-2, #33271F);
  --ct-muted: var(--wp--preset--color--muted, #6B5B4F); --ct-line: var(--wp--preset--color--line, #E6D8C6);
  --ct-ember: var(--wp--preset--color--ember, #B4532F); --ct-ember-soft: var(--wp--preset--color--ember-soft, #E4936A);
  --ct-peach: var(--wp--preset--color--peach, #F3D9C6); --ct-clay: var(--wp--preset--color--clay, #E9C9B4);
  --ct-sage: var(--wp--preset--color--sage, #3F5E4F); --ct-sage-soft: var(--wp--preset--color--sage-soft, #DCE5DC);
  --ct-amber: var(--wp--preset--color--amber, #F0B27A);
  /* The accent, a little deeper, for small text: readable (WCAG AA) on every light background */
  --ct-ember-text: color-mix(in srgb, var(--ct-ember) 78%, var(--ct-ink));
  --ct-serif: var(--wp--preset--font-family--serif, "Noto Serif Display", Georgia, serif);
  --ct-gutter: clamp(18px, 5vw, 96px);
  --ct-radius: 32px;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
/* Sticky footer: short pages never show a strip of background under the dark footer */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.wp-site-blocks > main, .wp-site-blocks > .ct-main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.wp-site-blocks > footer { margin-block-start: 0 !important; }
.admin-bar .wp-site-blocks { min-height: calc(100vh - 32px); }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--ct-ember); outline-offset: 3px; border-radius: 6px; }
/* Text fields get a soft ring instead of the thick outline, so focus never looks like an error */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):focus-visible { outline: none; }
.ct-comments :is(textarea, input[type="text"]):focus, .fluentform .ff-el-form-control:focus { border-color: var(--ct-sage) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-sage) 45%, transparent) !important; outline: none; }

/* Skip link: first thing a keyboard user reaches */
.ct-skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ct-ink); color: var(--ct-sand); text-decoration: none; font-size: 15px; transition: top .15s; }
.ct-skip:focus { top: 12px; }

/* Reading progress on articles and talks */
.ct-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.ct-progress span { display: block; height: 100%; background: var(--ct-ember); transform-origin: 0 50%; transform: scaleX(0); }
.admin-bar .ct-progress { top: 32px; }

/* Serif italic accent: any <em> inside a heading */
:where(h1, h2, h3, .ct-logo, .ct-footer__brand) em { font-family: var(--ct-serif); font-style: italic; font-weight: 500; letter-spacing: 0; color: var(--ct-ember); }
/* The serif accent keeps up with the bold sans next to it: fuller strokes, a touch of extra body on big titles */
:where(h1, h2) em { font-weight: 560; -webkit-text-stroke: .012em currentColor; paint-order: stroke fill; }
.ct-band--night :where(h1, h2, h3) em { color: var(--ct-amber); }

/* Paragraph styles */
.is-style-eyebrow, .ct-eyebrow { font-size: 13px !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ct-ember-text); margin-bottom: 0 !important; }
.is-style-eyebrow a { color: inherit; text-decoration: none; }
.is-style-lead { font-size: var(--wp--preset--font-size--large); font-weight: 360; line-height: 1.7; color: color-mix(in srgb, var(--ct-ink) 78%, var(--ct-muted)); max-width: 62ch; }
.ct-serif-note { font-family: var(--ct-serif); font-style: italic; font-size: 20px; line-height: 1.6; color: color-mix(in srgb, var(--ct-ink) 72%, var(--ct-muted)); }
.ct-pill { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--ct-cream); border: 1px solid var(--ct-line); font-size: 14px; line-height: 1.45; }
.ct-meta { color: var(--ct-muted); font-size: 15px; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--ct-ink); border: 1px solid color-mix(in srgb, var(--ct-line) 60%, var(--ct-muted)); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ct-cream); }
.ct-btn-amber > .wp-block-button__link { background: var(--ct-amber); color: var(--ct-ink); }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ct-sage); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }

/* Lists */
.is-style-checks { list-style: none; padding: 0; }
.is-style-checks li { position: relative; padding-left: 28px; }
.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2px solid var(--ct-sage); border-bottom: 2px solid var(--ct-sage); transform: rotate(-45deg); }
.ct-inline { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; color: color-mix(in srgb, var(--ct-ink) 72%, var(--ct-muted)); }
.ct-chips, .is-style-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 40px; }
.ct-chips a, .is-style-chips li { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ct-line); background: var(--ct-cream); color: var(--ct-ink); text-decoration: none; font-size: 15px; }
.ct-chips a[aria-current] { background: var(--ct-ink); border-color: var(--ct-ink); color: var(--ct-sand); }

/* Crisis strip */
.ct-crisis { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 10px var(--ct-gutter); background: var(--ct-ink); color: var(--ct-sand); font-size: 13.5px; text-align: center; }
.ct-crisis a { color: var(--ct-amber); font-weight: 600; text-decoration: none; }
.ct-crisis a.ct-crisis__all { color: var(--ct-sand); font-weight: 400; text-decoration: underline; }

/* Header */
.ct-header { position: sticky; top: 0; z-index: 50; padding: 16px var(--ct-gutter) 0; }
.admin-bar .ct-header { top: 32px; }
.ct-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1344px; margin: 0 auto; min-height: 72px; padding: 0 12px 0 20px; box-sizing: border-box;
  background: color-mix(in srgb, var(--ct-cream) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--ct-line); border-radius: 999px; box-shadow: 0 10px 30px rgba(36, 28, 23, 0.06); }
.ct-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ct-ink); text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.ct-logo__mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ct-peach); color: var(--ct-ember); }
.ct-nav__panel { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: space-between; }
.ct-menu { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.ct-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--ct-ink); text-decoration: none; font-size: 15px; }
.ct-menu a:hover { background: var(--ct-sand); }
.ct-menu a[aria-current] { background: var(--ct-ink); color: var(--ct-sand); }
.ct-nav__end { display: flex; align-items: center; gap: 10px; }
.ct-langs { display: flex; padding: 4px; border-radius: 999px; background: var(--ct-sand); font-size: 13px; font-weight: 600; }
.ct-langs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; color: var(--ct-muted); text-decoration: none; }
.ct-langs a[aria-current] { background: var(--ct-ink); color: var(--ct-sand); }
.ct-cta { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--ct-sage); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.ct-cta:hover { background: color-mix(in srgb, var(--ct-sage) 84%, #000); color: #fff; }
.ct-burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ct-ink); cursor: pointer; }
.ct-burger span[aria-hidden] { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ct-sand); box-shadow: 0 -6px 0 var(--ct-sand), 0 6px 0 var(--ct-sand); }
@media (max-width: 1020px) {
  .ct-nav { border-radius: 30px; flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .ct-burger { display: inline-block; }
  .ct-nav__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 4px 12px; }
  .ct-nav.is-open .ct-nav__panel { display: flex; }
  .ct-menu { flex-direction: column; margin: 0; }
  .ct-nav__end { justify-content: space-between; }
}

/* Main spacing */
.ct-main { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 0; }
.ct-page, .ct-article, .ct-404, .ct-archive, .ct-talk { padding-bottom: clamp(72px, 10vw, 128px); }
.ct-section { padding-block: clamp(56px, 9vw, 112px); }
.ct-section > .wp-block-heading { margin-bottom: 40px; }

/* Full-bleed bands inside the constrained main */
/* (:root raises the weight above WordPress' own "margin: auto !important" for constrained layouts) */
:root .ct-band { margin-inline: calc(50% - 50vw) !important; padding-inline: max(calc(50vw - 624px), var(--ct-gutter)); max-width: none !important; }
.ct-band--cream { background: var(--ct-cream); border-block: 1px solid var(--ct-line); }
.ct-band--night { background: var(--ct-ink); color: var(--ct-sand); }
.ct-band--night .is-style-eyebrow { color: var(--ct-amber); }
.ct-band--night .is-style-lead { color: color-mix(in srgb, var(--ct-sand) 84%, var(--ct-ink)); }

/* Hero */
.ct-hero { padding-block: clamp(24px, 5vw, 64px) clamp(56px, 9vw, 112px); }
.ct-hero--text .is-style-lead { max-width: 70ch; }
.ct-hero__chat { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 5vw, 64px) clamp(18px, 3vw, 36px) 40px; }

/* Cards and shapes */
.is-style-card, .is-style-card-dark, .is-style-card-sage, .is-style-card-peach { padding: clamp(24px, 3vw, 40px); border-radius: var(--ct-radius); }
.is-style-card { background: var(--ct-cream); border: 1px solid var(--ct-line); }
.is-style-card-dark { background: var(--ct-ink); color: var(--ct-sand); }
.is-style-card-dark a { color: var(--ct-sand); }
.is-style-card-dark .is-style-eyebrow { color: var(--ct-amber); }
.is-style-card-sage { background: var(--ct-sage-soft); }
.is-style-card-peach { background: var(--ct-peach); }
.is-style-arch { border-radius: 999px 999px 40px 40px; background: var(--ct-clay); }
.ct-photo { min-height: 380px; display: flex; align-items: center; justify-content: center; color: var(--ct-muted); font-size: 14px; }
.ct-rounded img, .ct-rounded { border-radius: 28px; }
.ct-steps { gap: 24px; }
.ct-step-no { font-family: var(--ct-serif); font-style: italic; font-size: 60px; line-height: 1; color: var(--ct-ember); margin: 0; }
.ct-about-teaser { padding: clamp(24px, 4vw, 64px); }

/* Eva's photo */
.ct-eva-photo { margin: 0; }
.ct-eva-photo img { display: block; width: 100%; height: auto; border-radius: 999px 999px 40px 40px; }
.ct-eva-photo--float { float: right; width: min(300px, 40%); margin: 0 0 24px 40px; }
@media (max-width: 640px) { .ct-eva-photo--float { float: none; width: 70%; margin: 0 auto 24px; } }
/* Text beside Eva's photo keeps a readable line length, also below the photo; the band closes around the float */
.ct-eva-photo--float ~ :is(p, h2, h3, ul, ol, blockquote) { max-width: 720px; }
.ct-eva-photo--float ~ .is-style-lead { max-width: 760px; }
.ct-section:has(> .ct-eva-photo--float)::after { content: ""; display: table; clear: both; }

/* Chat bubbles */
.is-style-bubble-reader, .is-style-bubble-eva, .is-style-bubble-quote { max-width: min(640px, 88%); padding: 16px 20px; line-height: 1.6; margin-block: 6px !important; }
.is-style-bubble-reader { margin-right: auto !important; border-radius: 26px 26px 26px 8px; background: var(--ct-paper, #fff); border: 1px solid var(--ct-line); }
.is-style-bubble-eva { margin-left: auto !important; border-radius: 26px 26px 8px 26px; background: var(--ct-peach); }
.is-style-bubble-quote { margin-left: auto !important; padding: 22px 28px; border-radius: 30px 30px 8px 30px; background: var(--ct-ink); color: var(--ct-sand); font-family: var(--ct-serif); font-style: italic; font-size: 24px; line-height: 1.35; }
.is-style-bubble-eva + .is-style-bubble-reader, .is-style-bubble-quote + .is-style-bubble-reader,
.is-style-bubble-reader + .is-style-bubble-eva, .is-style-bubble-reader + .is-style-bubble-quote { margin-top: 28px !important; }
.is-style-thread { padding: clamp(18px, 4vw, 44px); border-radius: 40px; background: var(--ct-cream); border: 1px solid var(--ct-line); }
.is-style-thread .wp-block-post-content > * + * { margin-top: 0; }

/* Talk and post cards */
.ct-talk-grid .wp-block-post-template, .ct-post-grid .wp-block-post-template { gap: 24px; }
.ct-talk-card { height: 100%; box-sizing: border-box; padding: 32px; border-radius: 30px; background: var(--ct-paper, #fff); border: 1px solid var(--ct-line); display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.ct-talk-card:hover { border-color: color-mix(in srgb, var(--ct-line) 60%, var(--ct-muted)); }
.ct-talk-grid:not(.ct-search-grid) .wp-block-post:first-child .ct-talk-card { background: var(--ct-ink-2); color: var(--ct-sand); border-color: var(--ct-ink-2); }
.ct-talk-grid:not(.ct-search-grid) .wp-block-post:first-child .ct-talk-card a { color: var(--ct-sand); }
.ct-talk-grid:not(.ct-search-grid) .wp-block-post:first-child .is-style-eyebrow a { color: var(--ct-amber); }
.ct-talk-grid:not(.ct-search-grid) .wp-block-post:first-child .ct-card-meta { color: color-mix(in srgb, var(--ct-sand) 80%, var(--ct-ink)); }
.ct-talk-card .wp-block-post-title, .ct-post-card .wp-block-post-title { font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ct-talk-card .wp-block-post-title a, .ct-post-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.ct-talk-card .wp-block-post-title a::after, .ct-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ct-talk-card, .ct-post-card { position: relative; }
.ct-talk-card .is-style-eyebrow a, .ct-post-card .is-style-eyebrow a { position: relative; z-index: 1; }
.ct-talk-card .wp-block-post-excerpt, .ct-post-card .wp-block-post-excerpt { font-size: 16px; margin: 0; }
.ct-talk-card .wp-block-post-excerpt { opacity: .85; }
.ct-talk-card .wp-block-post-excerpt__excerpt, .ct-post-card .wp-block-post-excerpt__excerpt { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ct-talk-card .wp-block-post-excerpt__more-text, .ct-post-card .wp-block-post-excerpt__more-text { display: none; }
.ct-post-card { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 26px; border-radius: 30px; background: var(--ct-paper, #fff); border: 1px solid var(--ct-line); transition: border-color .2s; }
.ct-post-card:hover { border-color: color-mix(in srgb, var(--ct-line) 60%, var(--ct-muted)); }
.ct-post-card > :not(.wp-block-post-featured-image) { margin-inline: 14px; }
.ct-post-card:not(:has(.wp-block-post-featured-image)) { padding-top: 32px; }
.ct-post-card .wp-block-post-featured-image { margin: 0 0 6px; }
.ct-post-card .wp-block-post-featured-image img { border-radius: 20px; }
.ct-post-card .wp-block-post-excerpt { color: color-mix(in srgb, var(--ct-ink) 72%, var(--ct-muted)); }
.ct-card-meta { margin-top: auto !important; padding-top: 4px; font-size: 13.5px; color: var(--ct-muted); }
.ct-readtime::before, .ct-reads::before { content: " · "; }

/* The newest article opens every journal page as a wide card */
@media (min-width: 782px) {
  .ct-feature .wp-block-post:first-child { grid-column: 1 / -1; }
  .ct-feature .wp-block-post:first-child .ct-post-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 14px; align-content: center; padding: 16px 40px 16px 16px; }
  .ct-feature .wp-block-post:first-child .ct-post-card > * { grid-column: 2; margin-inline: 0; }
  .ct-feature .wp-block-post:first-child .ct-post-card > .wp-block-post-featured-image { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
  .ct-feature .wp-block-post:first-child .ct-post-card:not(:has(.wp-block-post-featured-image)) { grid-template-columns: minmax(0, 1fr); padding: 48px; background: var(--ct-sage-soft); border-color: var(--ct-sage-soft); }
  .ct-feature .wp-block-post:first-child .ct-post-card:not(:has(.wp-block-post-featured-image)) > * { grid-column: 1; }
  .ct-feature .wp-block-post:first-child .wp-block-post-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; display: block; -webkit-line-clamp: unset; overflow: visible; }
  .ct-feature .wp-block-post:first-child .wp-block-post-excerpt { font-size: 18px; }
  .ct-feature .wp-block-post:first-child .ct-card-meta { margin-top: 6px !important; }
}

/* Archive tools: chips with counts and a search box */
.ct-archive .wp-block-query-title { margin-bottom: 8px; }
.ct-archive .wp-block-term-description p { margin: 0; }
.ct-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin: clamp(24px, 3vw, 36px) 0 40px; }
.ct-tools .ct-chips { flex: 1 1 520px; margin: 0; }
.ct-chips__n { margin-left: 8px; font-size: 12px; font-weight: 600; opacity: .8; }
.ct-search { display: flex; align-items: center; flex: 0 1 340px; height: 48px; box-sizing: border-box; padding: 0 5px 0 20px; border: 1px solid var(--ct-line); border-radius: 999px; background: var(--ct-paper, #fff); }
.ct-search:focus-within { border-color: var(--ct-ember); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-ember) 45%, transparent); }
.ct-search input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ct-ink); font: inherit; font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.ct-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.ct-search button { padding: 0; min-height: 0; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--ct-ink); color: var(--ct-sand); cursor: pointer; }
.ct-search-title { overflow-wrap: anywhere; margin-bottom: 4px; }
@media (max-width: 640px) {
  .ct-tools { margin-bottom: 28px; }
  .ct-tools .ct-chips { flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--ct-gutter)); padding-inline: var(--ct-gutter); }
  .ct-tools .ct-chips::-webkit-scrollbar { display: none; }
  .ct-tools .ct-chips a { white-space: nowrap; }
  .ct-search { flex-basis: 100%; }
}

/* Numbered pagination */
.wp-block-query-pagination { margin-top: 56px !important; gap: 8px; font-size: 15px; }
.wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; box-sizing: border-box; padding: 0 16px; border: 1px solid var(--ct-line); border-radius: 999px; background: var(--ct-cream); color: var(--ct-ink); text-decoration: none; }
.wp-block-query-pagination a:hover { border-color: color-mix(in srgb, var(--ct-line) 60%, var(--ct-muted)); background: var(--ct-paper, #fff); }
.wp-block-query-pagination .page-numbers.current { background: var(--ct-ink); border-color: var(--ct-ink); color: var(--ct-sand); }
.wp-block-query-pagination .page-numbers.dots { min-width: 0; padding: 0 4px; border: 0; background: transparent; }

/* Related articles under an article */
.ct-related { margin-top: clamp(56px, 8vw, 88px) !important; padding-top: 40px; border-top: 1px solid var(--ct-line); }
.ct-related > h2 { margin: 0 0 24px; font-size: 28px; }
.ct-related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-related__card { display: flex; flex-direction: column; gap: 10px; height: 100%; box-sizing: border-box; padding: 26px; border-radius: 26px; background: var(--ct-paper, #fff); border: 1px solid var(--ct-line); color: var(--ct-ink); text-decoration: none; }
.ct-related__card:hover { border-color: color-mix(in srgb, var(--ct-line) 60%, var(--ct-muted)); }
.ct-related__card strong { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.ct-related__card .ct-meta { margin-top: auto; font-size: 13.5px; }
@media (max-width: 781px) { .ct-related__list { grid-template-columns: 1fr; } }
.ct-article > .ct-meta .ct-readtime { color: var(--ct-muted); }

/* Article text */
.ct-prose { font-size: 19px; line-height: 1.75; }
.ct-prose > * + * { margin-top: 1.1em; }
.ct-prose :is(h2, h3) { margin-top: 1.8em; margin-bottom: .2em; }
.ct-prose h2 { font-size: clamp(26px, 3vw, 34px); }
.ct-prose h3 { font-size: 23px; }
.ct-prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ct-prose :is(ul, ol) { padding-left: 1.3em; }
.ct-prose li + li { margin-top: .4em; }
.ct-prose img { border-radius: 22px; }
.ct-prose > .wp-block-quote { margin-block: 1.8em; padding-left: 24px; border-left: 3px solid var(--ct-ember); }
.ct-article .wp-block-post-title { margin-block: 10px 14px; }
.ct-article > .wp-block-post-featured-image { margin-block: 28px 8px; }

/* Talk page */
.ct-talk__cols { gap: clamp(24px, 4vw, 56px); }
.ct-talk__aside { display: flex; flex-direction: column; gap: 22px; padding-top: clamp(0px, 10vw, 180px); }
.ct-talk .wp-block-post-title { margin-block: 8px 12px; font-size: clamp(40px, 6vw, 76px); }
.ct-talk .wp-block-post-date.ct-meta { margin: 0 0 28px; }
.ct-comments { margin-top: 48px; }
.ct-comment { max-width: 600px; padding: 16px 20px; border-radius: 26px 26px 26px 8px; background: var(--ct-paper, #fff); border: 1px solid var(--ct-line); margin-bottom: 12px; }
.ct-comment .wp-block-comment-author-name { font-weight: 600; font-size: 15px; }
.ct-comments textarea, .ct-comments input[type="text"] { width: 100%; box-sizing: border-box; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--ct-line) 78%, var(--ct-muted)); border-radius: 20px; background: color-mix(in srgb, var(--ct-cream) 50%, var(--ct-paper, #fff)); font: inherit; transition: border-color .15s, box-shadow .15s; }
.ct-comments textarea { min-height: 150px; border-radius: 24px 24px 24px 8px; resize: vertical; }
.ct-comments .comment-reply-title { margin: 40px 0 6px; font-size: 26px; }
.ct-comments .comment-notes, .ct-comments .logged-in-as { margin: 0 0 18px; font-size: 14.5px; color: var(--ct-muted); }
.ct-comments .comment-form label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.ct-comments .comment-form p { margin: 0 0 18px; }
.ct-comments .form-submit input[type="submit"] { min-height: 52px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--ct-sage); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.ct-comments .form-submit input[type="submit"]:hover { background: color-mix(in srgb, var(--ct-sage) 84%, #000); }
.ct-comments .comment-form-email, .ct-comments .comment-form-url, .ct-comments .comment-form-cookies-consent { display: none; }

/* Sharing */
.ct-share { margin-top: 36px !important; padding-top: 24px; border-top: 1px solid var(--ct-line); }
.ct-share__label { margin: 0 0 12px; font-size: 15px; color: var(--ct-muted); }
.ct-share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-share__link, .ct-share__native { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--ct-line); border-radius: 999px; background: var(--ct-paper, #fff); color: var(--ct-ink); font: inherit; font-size: 14.5px; text-decoration: none; cursor: pointer; }
.ct-share__link:hover { border-color: color-mix(in srgb, var(--ct-line) 60%, var(--ct-muted)); }
.ct-share__native { background: var(--ct-ink); border-color: var(--ct-ink); color: var(--ct-sand); }
.ct-share__native[hidden] { display: none; }

/* Help */
.ct-help-card h3 { font-size: 24px; }
.ct-phone-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.ct-phone-list a { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 18px; border-radius: 16px; background: var(--ct-ink-2); color: var(--ct-sand); text-decoration: none; font-size: 15px; }
.ct-phone-list strong { color: var(--ct-amber); white-space: nowrap; }
/* The emergency card: the call to act gets the room it needs, the two numbers sit beside it as equal tiles;
   on narrower screens the words take the whole first row and the numbers share the second */
:root .ct-emergency-card > .wp-block-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: clamp(14px, 2vw, 24px); margin: 0; }
:root .ct-emergency-card > .wp-block-columns > .wp-block-column { margin: 0; min-width: 0; flex: none; width: auto; }
.ct-emergency-card > .wp-block-columns > .wp-block-column:first-child { align-self: center; }
.ct-emergency-card h2 { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.08; margin: 0; }
.ct-emergency { display: flex; flex-direction: column; justify-content: center; }
.ct-emergency p:not(.ct-line__no) { margin: 8px 0 0; }
@media (max-width: 1080px) {
  :root .ct-emergency-card > .wp-block-columns { grid-template-columns: 1fr 1fr; }
  .ct-emergency-card > .wp-block-columns > .wp-block-column:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { :root .ct-emergency-card > .wp-block-columns { grid-template-columns: 1fr; } }
.ct-emergency { padding: 24px 28px; border-radius: 28px; background: var(--ct-amber); color: var(--ct-ink); }
.ct-emergency--dim { background: var(--ct-ink-2); color: var(--ct-sand); }
.ct-line__no { margin: 0; font-size: clamp(40px, 5vw, 58px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.ct-line__no a { color: inherit; text-decoration: none; }
.ct-line .ct-line__no a { color: var(--ct-ember); }
.ct-line__no--long { font-size: clamp(32px, 3.6vw, 44px); white-space: nowrap; }
.ct-line__no--text { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; }
.ct-lines { gap: 20px; margin-bottom: 20px; }
.ct-lines__place { margin: 36px 0 14px !important; }
.ct-tips { display: grid; gap: 14px; padding-left: 1.2em; font-size: 17px; }

/* FAQ */
.ct-faq { padding: 22px 28px; border-radius: 26px; background: var(--ct-cream); border: 1px solid var(--ct-line); margin-block: 12px; }
.ct-faq summary { cursor: pointer; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ct-faq p { margin-top: 12px; color: color-mix(in srgb, var(--ct-ink) 72%, var(--ct-muted)); }

/* Radio art (home band) */
.ct-radio-art { position: relative; height: clamp(220px, 30vw, 360px); border-radius: 32px; overflow: hidden; background: color-mix(in srgb, var(--ct-ink-2) 85%, var(--ct-sand)); }
.ct-radio-art__sun { position: absolute; left: 10%; top: 14%; width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--ct-amber); }
.ct-radio-art__arch { position: absolute; left: 34%; top: 34%; width: 44%; height: 70%; border-radius: 999px 999px 0 0; background: color-mix(in srgb, var(--ct-cream) 12%, transparent); }
.ct-radio-art__eq { position: absolute; right: 8%; bottom: 12%; display: flex; align-items: flex-end; gap: 7px; height: 90px; }
.ct-radio-art__eq i { width: 10px; border-radius: 5px; background: var(--ct-amber); height: 40%; animation: ct-eq 1.2s ease-in-out infinite; }
.ct-radio-art__eq i:nth-child(2) { animation-delay: -.3s; } .ct-radio-art__eq i:nth-child(3) { animation-delay: -.6s; }
.ct-radio-art__eq i:nth-child(4) { animation-delay: -.9s; } .ct-radio-art__eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes ct-eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* Breathing exercise */
.ct-breathe-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ct-breathe { display: flex; justify-content: center; width: 100%; margin-bottom: 8px; }
.ct-breathe > .ct-breathe__ring { width: 210px; height: 210px; background: color-mix(in srgb, var(--ct-sage) 14%, transparent); }
.ct-breathe__ring { display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.ct-breathe__ring .ct-breathe__ring { width: 70%; height: 70%; background: color-mix(in srgb, var(--ct-sage) 22%, transparent); }
.ct-breathe__core { display: flex; align-items: center; justify-content: center; width: 60%; height: 60%; border-radius: 50%; background: var(--ct-sage); color: #fff; font-family: var(--ct-serif); font-style: italic; font-size: 17px; transition: transform 4s ease-in-out; }
.ct-breathe.is-in .ct-breathe__core, .ct-breathe.is-hold .ct-breathe__core { transform: scale(1.55); }
.ct-breathe.is-out .ct-breathe__core { transition-duration: 6s; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .ct-breathe__core { transition: none !important; transform: none !important; } .ct-radio-art__eq i { animation: none; height: 70%; } }

/* Quote in the thought card */
.ct-thought .wp-block-quote { border: 0; padding: 0; margin: 0; }
.ct-thought .wp-block-quote cite { display: block; margin-top: 16px; font-family: inherit; font-style: normal; font-size: 15px; color: var(--ct-muted); }
.ct-thought .wp-block-quote cite::before { content: "— "; }

/* Fluent Forms: match the theme */
.fluentform .ff-el-input--label label { font-weight: 600; }
.fluentform .ff-el-form-control { border: 1px solid color-mix(in srgb, var(--ct-line) 78%, var(--ct-muted)) !important; border-radius: 20px !important; background: color-mix(in srgb, var(--ct-cream) 50%, var(--ct-paper, #fff)) !important; padding: 14px 18px !important; font: inherit !important; }
.fluentform textarea.ff-el-form-control { border-radius: 26px 26px 26px 8px !important; min-height: 280px; }
.fluentform .ff-btn-submit { border-radius: 999px !important; background: var(--ct-sage) !important; padding: 16px 32px !important; font: inherit !important; font-weight: 500 !important; }
.ff-message-success { border-radius: 26px 26px 8px 26px; background: var(--ct-peach); border: 0 !important; padding: 20px 24px !important; }

/* Footer */
.ct-footer { background: var(--ct-ink); color: var(--ct-sand); padding: clamp(48px, 7vw, 72px) var(--ct-gutter) 36px; margin-top: 0; }
.ct-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; max-width: 1248px; margin: 0 auto; }
.ct-footer p { margin: 0 0 14px; color: color-mix(in srgb, var(--ct-sand) 84%, var(--ct-ink)); font-size: 15px; }
.ct-footer .ct-footer__brand { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--ct-sand); }
.ct-footer .ct-footer__brand em { color: var(--ct-amber); }
.ct-footer .ct-footer__small { font-size: 13px; color: color-mix(in srgb, var(--ct-sand) 66%, var(--ct-ink)); }
.ct-footer .ct-footer__title { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ct-amber); }
.ct-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ct-footer a { color: var(--ct-sand); text-decoration: none; font-size: 15px; }
.ct-footer a:hover { text-decoration: underline; }
.ct-footer .ct-footer__accent { color: var(--ct-amber); }
.ct-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; max-width: 1248px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--ct-ink) 80%, var(--ct-sand)); font-size: 13px; color: color-mix(in srgb, var(--ct-sand) 66%, var(--ct-ink)); }
.ct-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ct-footer .ct-footer__bottom a { font-size: 13px; color: color-mix(in srgb, var(--ct-sand) 84%, var(--ct-ink)); }
.ct-credit { letter-spacing: .02em; color: color-mix(in srgb, var(--ct-sand) 84%, var(--ct-ink)); font-size: 13.5px; }
.ct-credit strong { color: var(--ct-amber); font-weight: 700; letter-spacing: .06em; }
/* The floating radio bar sits over the page end: the dark footer makes room for it */
.ctr-has-bar .ct-footer { padding-bottom: 96px; }
@media (max-width: 640px) { .ctr-has-bar .ct-footer { padding-bottom: 84px; } }
@media (max-width: 900px) { .ct-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ct-footer__grid { grid-template-columns: 1fr; } }

/* Small screens */
@media (max-width: 781px) {
  .ct-hero__chat { margin-top: 24px; }
  .ct-talk__aside { padding-top: 0; }
  .ct-talk-grid .wp-block-post-template, .ct-post-grid .wp-block-post-template { grid-template-columns: 1fr !important; }
}

/* ALTCHA check inside the talk form and the warm-words form */
/* The check runs by itself in the background; the box appears only if it needs the visitor (an error to retry) */
altcha-widget { display: none; margin: 4px 0 18px; }
altcha-widget[data-state="error"], altcha-widget[data-state="code"] { display: block; }
altcha-widget .altcha { --altcha-border-radius: 18px; --altcha-color-base: color-mix(in srgb, var(--ct-cream) 50%, #fff); --altcha-color-border: color-mix(in srgb, var(--ct-line) 78%, var(--ct-muted)); --altcha-color-text: var(--ct-ink); --altcha-color-border-focus: var(--ct-ember); --altcha-color-active: var(--ct-sage); --altcha-color-error-text: #9B2C1F; --altcha-max-width: 340px; font-family: inherit !important; font-size: 15px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── 1.5 ───────────────────────────────────────────────────────────────── */

/* Time-of-day greeting in the hero pill */
[data-ct-greeting]:not(:empty) { font-weight: 600; color: var(--ct-ember-text); }
[data-ct-greeting]:not(:empty)::after { content: " · "; color: var(--ct-muted); font-weight: 400; }

/* The cup steams gently */
.ct-logo__mark svg path:nth-child(3), .ct-logo__mark svg path:nth-child(4) { animation: ct-steam 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.ct-logo__mark svg path:nth-child(4) { animation-delay: -1.6s; }
@keyframes ct-steam { 0%, 100% { opacity: .35; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-1.5px); } }

/* Sections rise softly into view (only when the script runs and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .ct-js .ct-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .ct-js .ct-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ct-logo__mark svg path { animation: none !important; } }

/* Live: nav link with a breathing dot while the open talk is on */
.ct-live-link { gap: 8px; }
.ct-live-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: #D9534F; box-shadow: 0 0 0 0 rgba(217, 83, 79, .5); animation: ct-pulse 1.8s ease-out infinite; }
.ct-live-link.is-live .ct-live-dot { display: inline-block; }
@keyframes ct-pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 83, 79, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(217, 83, 79, 0); } }

/* Open talk page */
.ct-live { display: grid; gap: 18px; }
.ct-live__badge { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin: 0; padding: 8px 16px; border-radius: 999px; background: #FCE8E6; color: #9B2C1F; font-weight: 600; font-size: 15px; }
.ct-live__badge span { width: 9px; height: 9px; border-radius: 50%; background: #D9534F; animation: ct-pulse 1.8s ease-out infinite; }
.ct-live__badge.is-closed { background: var(--ct-cream); color: var(--ct-muted); border: 1px solid var(--ct-line); }
.ct-live__badge.is-closed span { background: var(--ct-muted); animation: none; }
.ct-live__when { margin: 0; font-size: 20px; }
.ct-live__next { display: grid; gap: 4px; padding: 26px 28px; border-radius: 28px; background: var(--ct-ink); color: var(--ct-sand); }
.ct-live__next span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ct-amber); }
.ct-live__next strong { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; font-weight: 600; }
.ct-live__next .ct-live__countdown { text-transform: none; letter-spacing: 0; font-size: 16px; color: color-mix(in srgb, var(--ct-sand) 84%, var(--ct-ink)); }
.ct-live__cal { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ct-line); background: var(--ct-paper, #fff); color: var(--ct-ink); text-decoration: none; }
.ct-live__chat { border-radius: 28px; overflow: hidden; border: 1px solid var(--ct-line); background: var(--ct-paper, #fff); }
.ct-live__rules { padding: 20px 24px; border-radius: 24px; background: var(--ct-cream); border: 1px solid var(--ct-line); }
.ct-live__rules summary { cursor: pointer; font-weight: 600; }
.ct-live__rules li + li { margin-top: 6px; }
.ct-live__crisis { margin: 12px 0 0; font-size: 15px; color: #9B2C1F; }

/* Thought of the day */
.ct-thought__quote { border: 0; padding: 0; margin: 12px 0 0; }
.ct-thought__quote p { font-family: var(--ct-serif); font-style: italic; font-size: 24px; line-height: 1.4; margin: 0; transition: opacity .4s; }
.ct-thought__quote cite { display: block; margin-top: 18px; font-family: inherit; font-style: normal; font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--ct-ember-text); }
.ct-thought__quote cite::before { content: "— "; }

/* Weather card */
.ct-weather-card { display: flex; flex-direction: column; }
.ct-weather-card h3 { margin-bottom: 4px; }
.ct-weather { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ct-weather__card { display: flex; align-items: center; gap: 16px; margin-top: 8px; transition: opacity .4s; }
.ct-weather__icon { flex: 0 0 64px; height: 64px; border-radius: 20px; background: var(--ct-sand); display: flex; align-items: center; justify-content: center; color: var(--ct-ember); }
.ct-weather__icon svg { width: 38px; height: 38px; }
.ct-weather__place { margin: 0; font-size: 15px; color: var(--ct-muted); }
.ct-weather__temp { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.ct-weather__temp small { font-size: 15px; font-weight: 400; color: var(--ct-muted); letter-spacing: 0; }
.ct-weather__line { margin: 0; font-family: var(--ct-serif); font-style: italic; font-size: 19px; line-height: 1.45; color: color-mix(in srgb, var(--ct-ink) 72%, var(--ct-muted)); min-height: 2.9em; }
.ct-weather__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ct-weather__btn { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ct-sage); color: #fff; font: inherit; font-size: 14.5px; cursor: pointer; }
.ct-weather__btn--ghost { background: transparent; color: var(--ct-ink); border: 1px solid var(--ct-line); }
.ct-weather__note { margin: 0; font-size: 12.5px; color: var(--ct-muted); }
.ct-weather.is-fading .ct-weather__card, .ct-weather.is-fading .ct-weather__line { opacity: .15; }

/* Footer social icons */
.ct-footer .ct-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ct-footer .ct-socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ct-ink-2); color: var(--ct-sand); transition: background .2s, color .2s, transform .2s; }
.ct-footer .ct-socials a:hover { background: var(--ct-amber); color: var(--ct-ink); text-decoration: none; transform: translateY(-2px); }

/* Honest note under starter talks */
.ct-composite-note { margin: 18px 0 0 !important; padding: 12px 16px; border-radius: 16px; background: var(--ct-cream); border: 1px dashed color-mix(in srgb, var(--ct-line) 78%, var(--ct-muted)); font-size: 14px; color: var(--ct-muted); }
@media (max-width: 640px) { .ct-pill { border-radius: 18px; } }

/* Placeholders readable, not faint */
.fluentform ::placeholder, .ct-comments ::placeholder, .ct-search ::placeholder { color: var(--ct-muted); opacity: .9; }

/* Fluent Forms checkboxes: soft rounded boxes, close to their text, no big gaps */
.fluentform .ff-el-group { margin-bottom: 22px; }
.fluentform .ff-el-input--label { margin-bottom: 8px; }
.fluentform .ff-el-form-check { margin: 0 0 6px; }
.fluentform .ff-el-form-check label.ff-el-form-check-label, .fluentform .ff_gdpr_field label, .fluentform .ff-el-tc label {
  display: flex !important; align-items: flex-start; gap: 12px !important; margin: 0 !important; padding: 0 !important; cursor: pointer; font-size: 16px; line-height: 1.55; font-weight: 400; }
.fluentform .ff-el-form-check-label > span, .fluentform .ff_gdpr_field label > span { margin: 0 !important; padding: 0 !important; }
/* Some Fluent Forms styles draw their own box on the text: one box is enough */
.fluentform .ff-el-form-check-label > span::before, .fluentform .ff-el-form-check-label > span::after { display: none !important; }
.fluentform input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0 !important; padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--ct-line) 55%, var(--ct-muted)); border-radius: 7px; background: var(--ct-paper, #fff);
  display: grid; place-content: center; cursor: pointer; transition: background .15s, border-color .15s; }
.fluentform input[type="checkbox"]::after { content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s; }
.fluentform input[type="checkbox"]:checked { background: var(--ct-sage); border-color: var(--ct-sage); }
.fluentform input[type="checkbox"]:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.fluentform input[type="checkbox"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--ct-sage) 35%, transparent); outline-offset: 2px; }

/* ── Most read, reads and the automatic-translation note (1.7) ───────── */
.ct-popular { margin: clamp(40px, 6vw, 64px) 0 0; }
.ct-popular > h2 { margin: 6px 0 22px; font-size: clamp(26px, 3vw, 32px); }
.ct-popular__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; counter-reset: none; }
.ct-popular__item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: 22px; background: var(--ct-paper, #fff); border: 1px solid var(--ct-line); color: var(--ct-ink); text-decoration: none; height: 100%; box-sizing: border-box; }
.ct-popular__item:hover { border-color: color-mix(in srgb, var(--ct-line) 60%, var(--ct-muted)); }
.ct-popular__no { flex: 0 0 auto; font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--ct-ember-text); min-width: 26px; }
.ct-popular__body { display: flex; flex-direction: column; gap: 6px; }
.ct-popular__body .is-style-eyebrow { margin: 0; }
.ct-popular__body strong { font-size: 18.5px; line-height: 1.25; letter-spacing: -0.015em; }
@media (max-width: 781px) { .ct-popular__list { grid-template-columns: 1fr; } }
.ct-autonote { font-size: 14px; color: var(--ct-muted); background: var(--ct-cream); border: 1px solid var(--ct-line); border-radius: 14px; padding: 10px 16px; margin: 0 0 28px !important; }
.ct-autonote a { color: var(--ct-ember-text); }
.ct-live__preview { margin-top: 12px; padding-top: 22px; border-top: 1px dashed var(--ct-line); display: grid; gap: 14px; }
.ct-live__preview-note { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--ct-cream); border: 1px solid var(--ct-line); font-size: 14.5px; color: var(--ct-muted); }

/* ── The open talk: Wise Chat dressed in the site's colours (1.7) ─────── */
/* The room is wider than the text column; the rules sit beside it on large screens */
/* Chat room sits exactly in the page's text column; rules first, then the chat */
.ct-live__room { box-sizing: border-box; width: 100%; max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; display: flex; flex-direction: column; gap: 20px; }
.ct-live__room .ct-live__chat { box-sizing: border-box; width: 100%; min-width: 0; border: 0; border-radius: 0; overflow: visible; background: none; }
.ct-live__side { order: -1; }
.ct-live__side .ct-live__rules { margin: 0; }


/* ── The thought of the day fills its card: quote, a small drawing, two quiet actions ── */
.ct-thought { display: flex !important; flex-direction: column; }
.ct-thought__body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.ct-thought__quote { position: relative; margin-top: 14px !important; }
.ct-thought__quote::before { content: "“"; display: block; height: 40px; margin: 0 0 2px -4px; font-family: var(--ct-serif); font-size: 84px; line-height: 1; color: color-mix(in srgb, var(--ct-ember) 30%, transparent); pointer-events: none; }
.ct-thought__quote p { position: relative; }
.ct-thought__art { margin: auto 0 0; padding-top: 26px; color: color-mix(in srgb, var(--ct-ember-text) 62%, transparent); }
.ct-thought__art svg { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.ct-thought__art .ct-steam { animation: ct-steam 3.2s ease-in-out infinite; transform-origin: bottom; }
.ct-thought__art .ct-steam:nth-child(5) { animation-delay: .5s; } .ct-thought__art .ct-steam:nth-child(6) { animation-delay: 1s; }
@keyframes ct-steam { 0%, 100% { opacity: .25; transform: translateY(2px); } 50% { opacity: .9; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ct-thought__art .ct-steam { animation: none; } }
.ct-thought__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed color-mix(in srgb, var(--ct-ember) 28%, transparent); }
.ct-thought__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--ct-ember) 22%, transparent); background: color-mix(in srgb, var(--ct-paper, #fff) 70%, transparent); color: var(--ct-ink); box-shadow: 0 6px 16px -12px rgba(36, 28, 23, .45);
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; }
.ct-thought__btn svg { flex: 0 0 auto; color: var(--ct-ember); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.ct-thought__btn:hover { background: var(--ct-paper, #fff); border-color: color-mix(in srgb, var(--ct-ember) 45%, transparent); box-shadow: 0 10px 22px -12px rgba(180, 83, 47, .45); transform: translateY(-1px); }
.ct-thought__btn:active { transform: scale(.97); }
.ct-thought__btn[data-ct-thought-next]:hover svg { transform: rotate(-200deg); }
.ct-thought__btn.is-share { background: var(--ct-ember); border-color: var(--ct-ember); color: #fff; }
.ct-thought__btn.is-share svg { color: #fff; }
.ct-thought__btn.is-share:hover { background: color-mix(in srgb, var(--ct-ember) 88%, var(--ct-ink)); border-color: transparent; }
.ct-thought__btn.is-share:hover svg { transform: translateY(-2px); }
.ct-thought__btn.is-done { background: var(--ct-sage); border-color: var(--ct-sage); }
.ct-thought__btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--ct-ember) 40%, transparent); outline-offset: 2px; }
@media (max-width: 380px) { .ct-thought__actions { grid-template-columns: 1fr; } }

/* ── Visits in the footer: small, quiet, alive ── */
.ct-visits { display: inline-flex; align-items: center; gap: 8px; margin-left: 16px; padding-left: 16px; border-left: 1px solid color-mix(in srgb, var(--ct-ink) 70%, var(--ct-sand)); }
.ct-visits__dot { width: 7px; height: 7px; border-radius: 50%; background: #7FB08F; box-shadow: 0 0 0 0 rgba(127, 176, 143, .5); animation: ct-pulse-green 2.4s ease-out infinite; }
@keyframes ct-pulse-green { 0% { box-shadow: 0 0 0 0 rgba(127, 176, 143, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(127, 176, 143, 0); } }
@media (max-width: 781px) { .ct-visits { display: flex; margin: 8px 0 0; padding: 0; border: 0; } }

/* ── Advanced search ─────────────────────────────────────────────────── */
.ct-tools__search { display: flex; align-items: center; gap: 8px; }
.ct-filters-toggle { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ct-line); background: var(--ct-paper, #fff); color: var(--ct-ink); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
/* Icons inside these buttons keep their size (a flex item with max-width: 100% would shrink to nothing) */
.ct-filters-toggle svg, .ct-search button svg { flex: 0 0 auto; max-width: none; }
.ct-filters-toggle:hover { border-color: color-mix(in srgb, var(--ct-line) 50%, var(--ct-muted)); }
.ct-filters-toggle[aria-expanded="true"] { background: var(--ct-ink); border-color: var(--ct-ink); color: var(--ct-sand); }
.ct-filters-toggle__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ct-ember); color: #fff; font-size: 12px; font-weight: 600; }
.ct-filters { margin: 18px 0 8px; padding: 26px; border-radius: 26px; background: var(--ct-paper, #fff); border: 1px solid var(--ct-line); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--ct-ink) 30%, transparent); }
.ct-filters[hidden] { display: none; }
.ct-filters.is-open { animation: ct-fade .2s ease-out; }
@keyframes ct-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ct-filters__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ct-field--wide { grid-column: span 2; }
.ct-field > span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ct-ember-text); }
.ct-field input, .ct-field select { height: 46px; box-sizing: border-box; width: 100%; padding: 0 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ct-line) 78%, var(--ct-muted)); background: color-mix(in srgb, var(--ct-cream) 50%, var(--ct-paper, #fff)); color: var(--ct-ink); font: inherit; font-size: 15px; }
.ct-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B5B4F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.ct-field input:focus, .ct-field select:focus { outline: none; border-color: var(--ct-sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-sage) 45%, transparent); background-color: var(--ct-paper, #fff); }
/* Drop-downs in the site's colours (cozytalk.js turns the filters' <select>s into these on mouse devices) */
.ct-select { position: relative; }
.ct-select__native { display: none !important; }
.ct-select__btn { display: flex; align-items: center; width: 100%; height: 46px; box-sizing: border-box; padding: 0 40px 0 16px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ct-line) 78%, var(--ct-muted)); background: color-mix(in srgb, var(--ct-cream) 50%, var(--ct-paper, #fff)); color: var(--ct-ink);
  font: inherit; font-size: 15px; text-align: left; cursor: pointer; min-height: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A8878' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.ct-select__btn:hover { border-color: color-mix(in srgb, var(--ct-line) 45%, var(--ct-muted)); }
.ct-select__btn:focus-visible, .ct-select.is-open .ct-select__btn { outline: none; border-color: var(--ct-sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-sage) 45%, transparent); }
.ct-select__value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ct-select__list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  border-radius: 16px; border: 1px solid var(--ct-line); background: var(--ct-paper, #fff); box-shadow: 0 24px 50px -20px rgba(36, 28, 23, .45);
  scrollbar-width: thin; }
.ct-select.is-up .ct-select__list { top: auto; bottom: calc(100% + 6px); }
.ct-select__list li { padding: 9px 12px; border-radius: 10px; font-size: 15px; line-height: 1.35; color: var(--ct-ink); cursor: pointer; }
.ct-select__list li.is-active { background: color-mix(in srgb, var(--ct-sage) 14%, transparent); }
.ct-select__list li[aria-selected="true"] { font-weight: 600; color: var(--ct-ember-text); }
.ct-select__list li[aria-selected="true"]::after { content: " ✓"; }
.ct-select__list li[hidden] { display: none; }
.ct-select__list li.ct-select__group { padding: 12px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ct-muted); cursor: default; }
.ct-select__list li.ct-select__group:first-child { padding-top: 6px; }
.ct-select__list li.is-in-group { padding-left: 20px; }
@media (prefers-reduced-motion: no-preference) { .ct-select.is-open .ct-select__list { animation: ct-fade .15s ease-out; } }
.ct-segs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 16px; background: color-mix(in srgb, var(--ct-cream) 60%, var(--ct-paper, #fff)); border: 1px solid var(--ct-line); }
.ct-seg { position: relative; flex: 1 1 auto; }
.ct-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-seg span { display: block; text-align: center; padding: 9px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ct-muted); transition: background .15s, color .15s; }
.ct-seg input:checked + span { background: var(--ct-ink); color: var(--ct-sand); }
.ct-seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--ct-sage) 40%, transparent); }
.ct-filters__actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.ct-btn-primary { height: 46px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--ct-sage); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ct-btn-primary:hover { background: color-mix(in srgb, var(--ct-sage) 85%, var(--ct-ink)); }
.ct-btn-quiet { color: var(--ct-muted); font-size: 14.5px; text-underline-offset: 3px; }
.ct-fchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.ct-fchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--ct-ink); color: var(--ct-sand); font-size: 13.5px; text-decoration: none; }
.ct-fchip span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(244, 235, 223, .15); font-size: 14px; line-height: 1; }
.ct-fchip:hover span { background: rgba(244, 235, 223, .3); }
@media (max-width: 900px) { .ct-filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ct-filters__grid { grid-template-columns: 1fr; } .ct-field--wide { grid-column: auto; } .ct-tools__search { width: 100%; } .ct-tools__search .ct-search { flex: 1 1 auto; min-width: 0; } .ct-tools__search .ct-search input { min-width: 0; width: 100%; } .ct-filters-toggle { flex: 0 0 auto; padding: 0 14px; } .ct-filters { padding: 18px; } }

/* ── Letter code (after sending) and "Where is my letter?" ─────────────── */
.ct-lettercode { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: var(--ct-cream); border: 1px dashed color-mix(in srgb, var(--ct-ember) 45%, var(--ct-line)); text-align: left; }
.ct-lettercode p { margin: 0 0 10px; }
.ct-lettercode p:last-child { margin-bottom: 0; }
.ct-lettercode__lead { font-weight: 500; }
.ct-lettercode__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ct-lettercode__code { font: 600 clamp(20px, 4.4vw, 26px)/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; padding: 8px 14px; border-radius: 12px; background: var(--ct-paper, #fff); border: 1px solid var(--ct-line); color: var(--ct-ink); user-select: all; }
.ct-lettercode__copy { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ct-line); background: var(--ct-paper, #fff); color: var(--ct-ink); font: inherit; font-size: 14px; cursor: pointer; }
.ct-lettercode__copy:hover, .ct-lettercode__copy.is-done { background: var(--ct-sage-soft); border-color: var(--ct-sage); }
.ct-lettercode__note { font-size: 14px; color: var(--ct-muted); }
.ct-lettercode__note a { color: var(--ct-ember-text); }

.ct-letter, .ct-news { max-width: 640px; }
.ct-letter__form label, .ct-news__form label { display: block; margin-bottom: 8px; font-weight: 500; }
.ct-letter__row, .ct-news__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ct-letter__row input, .ct-news__row input { flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ct-line) 70%, var(--ct-muted)); background: var(--ct-paper, #fff); font: inherit; font-size: 17px; color: var(--ct-ink); }
.ct-letter__row input { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .04em; }
.ct-letter__row input:focus, .ct-news__row input:focus { border-color: var(--ct-sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-sage) 45%, transparent); outline: none; }
.ct-letter__row .wp-element-button, .ct-news__row .wp-element-button { height: 52px; padding: 0 26px; border-radius: 999px; }
/* Phones: field and button of the same calm size, one above the other (as in the "keep in touch" card) */
@media (max-width: 560px) {
  .ct-letter__row, .ct-news__row { flex-direction: column; flex-wrap: nowrap; }
  .ct-letter__row input, .ct-news__row input { flex: none; box-sizing: border-box; width: 100%; height: 54px; text-align: center; }
  .ct-letter__row .wp-element-button, .ct-news__row .wp-element-button { width: 100%; height: 54px; justify-content: center; font-size: 16px; font-weight: 600; }
}
.ct-letter__result, .ct-news__result { margin: 0 0 24px; padding: 20px 22px; border-radius: 22px; background: var(--ct-sage-soft); border: 1px solid color-mix(in srgb, var(--ct-sage) 30%, transparent); }
.ct-letter__result.is-error, .ct-news__result.is-error { background: color-mix(in srgb, var(--ct-peach) 55%, var(--ct-paper, #fff)); border-color: color-mix(in srgb, var(--ct-ember) 30%, transparent); }
.ct-letter__result.is-answered { background: color-mix(in srgb, var(--ct-amber) 22%, var(--ct-paper, #fff)); border-color: color-mix(in srgb, var(--ct-amber) 60%, transparent); }
.ct-letter__result p, .ct-news__result p { margin: 0 0 10px; }
.ct-letter__result p:last-child, .ct-news__result p:last-child { margin-bottom: 0; }
.ct-letter__state { font-size: 1.15em; font-weight: 500; }
.ct-letter__when { font-size: 14px; color: var(--ct-muted); }
.ct-letter__intro, .ct-news__lead { color: var(--ct-ink-2); }
.ct-news__small { margin-top: 12px; font-size: 14px; color: var(--ct-muted); }
.ct-news__small a { color: var(--ct-ember-text); }
.ct-news__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ct-letter altcha-widget, .ct-news altcha-widget { margin: 0 0 10px; }

/* Full-bleed bands use 100vw, which includes the scrollbar: never let that become a sideways scroll */
html { overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }

/* ── Email updates: the invitation above the footer ──────────────────── */
.ct-sub { padding: clamp(40px, 6vw, 72px) var(--ct-gutter); }
.ct-sub__card { box-sizing: border-box; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(160px, 240px) 1fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px); border-radius: var(--ct-radius); background: var(--ct-cream); border: 1px solid var(--ct-line); box-shadow: 0 30px 70px -40px rgba(36, 28, 23, .35); }
.ct-sub__art { display: grid; place-items: center; }
.ct-sub__svg { width: 100%; max-width: 240px; height: auto; overflow: visible; }
.ct-sub__sun { fill: var(--ct-peach); }
.ct-sub__steam path { stroke: var(--ct-ember-soft); }
.ct-sub__note rect { fill: var(--ct-paper, #fff); stroke: var(--ct-line); stroke-width: 2; }
.ct-sub__note path { stroke: var(--ct-clay); }
.ct-sub__env path:first-child { fill: var(--ct-cream); }
.ct-sub__env path { stroke: var(--ct-ember); }
.ct-sub__heart { fill: var(--ct-ember); }
.ct-sub__spark path { stroke: var(--ct-amber); }
.ct-sub__eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ct-ember-text); }
.ct-sub__title { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.02em; }
.ct-sub__lead { margin: 0 0 20px; max-width: 52ch; color: color-mix(in srgb, var(--ct-ink) 72%, var(--ct-muted)); font-size: 17px; line-height: 1.6; }
.ct-sub__form { margin: 0; }
.ct-sub__row { display: flex; gap: 8px; max-width: 520px; padding: 6px; border-radius: 999px; background: var(--ct-paper, #fff); border: 1px solid color-mix(in srgb, var(--ct-line) 70%, var(--ct-muted)); transition: border-color .15s, box-shadow .15s; }
.ct-sub__row:focus-within { border-color: var(--ct-sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-sage) 45%, transparent); }
.ct-sub__row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ct-ink); }
.ct-sub__row input:focus-visible { outline: none; }
.ct-sub__btn { flex: 0 0 auto; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ct-sage); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; }
.ct-sub__btn:hover { background: color-mix(in srgb, var(--ct-sage) 85%, var(--ct-ink)); }
.ct-sub__btn:active { transform: scale(.97); }
.ct-sub__form altcha-widget { margin: 10px 0 0; }
.ct-sub__small { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; color: var(--ct-muted); }
.ct-sub__small a { color: var(--ct-ember-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ct-sub__rss { display: inline-flex; align-items: center; gap: 6px; }
.ct-sub__rss svg { color: var(--ct-ember); }
@media (prefers-reduced-motion: no-preference) {
  .ct-sub__note { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
  .ct-sub__card:hover .ct-sub__note, .ct-sub__card:focus-within .ct-sub__note { transform: translateY(-8px); }
  .ct-sub__steam path { animation: ct-sub-steam 3.6s ease-in-out infinite; }
  .ct-sub__steam path:nth-child(2) { animation-delay: .6s; }
  .ct-sub__steam path:nth-child(3) { animation-delay: 1.2s; }
  .ct-sub__spark path { transform-box: fill-box; transform-origin: center; animation: ct-sub-twinkle 2.8s ease-in-out infinite; }
  .ct-sub__spark path:nth-child(3), .ct-sub__spark path:nth-child(4) { animation-delay: .9s; }
  .ct-sub__spark path:nth-child(5), .ct-sub__spark path:nth-child(6) { animation-delay: 1.8s; }
}
@keyframes ct-sub-steam { 0%, 100% { opacity: .25; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes ct-sub-twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@media (max-width: 720px) {
  .ct-sub__card { grid-template-columns: 1fr; text-align: center; }
  .ct-sub__svg { max-width: 170px; }
  .ct-sub__lead { margin-inline: auto; }
  .ct-sub__row { margin-inline: auto; }
  .ct-sub__small { justify-content: center; }
}
/* Phones: the field and the button are two calm pills of the same size, one above the other, instead of a field
   squeezed into a box around the button */
@media (max-width: 560px) {
  .ct-sub__row { flex-direction: column; gap: 10px; max-width: 420px; padding: 0; border: 0; border-radius: 0; background: none; }
  .ct-sub__row:focus-within { box-shadow: none; }
  .ct-sub__row input { flex: none; box-sizing: border-box; width: 100%; height: 54px; padding: 0 22px; border: 1.5px solid color-mix(in srgb, var(--ct-line) 55%, var(--ct-muted)); border-radius: 999px;
    background: var(--ct-paper, #fff); text-align: center; font-size: 17px; transition: border-color .15s, box-shadow .15s; }
  .ct-sub__row input::placeholder { color: color-mix(in srgb, var(--ct-muted) 85%, transparent); }
  .ct-sub__row input:focus { border-color: var(--ct-sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-sage) 45%, transparent); }
  .ct-sub__btn { width: 100%; height: 54px; font-size: 16px; }
}
@media (max-width: 420px) {
  .ct-sub__small > span[aria-hidden] { display: none; }
  .ct-sub__small { flex-direction: column; gap: 6px; }
}

/* Titles never push the page sideways: a word too long for the line breaks (cozytalk.js first shrinks such a title so
   the word fits; .ct-fitting is its measuring state) */
:is(h1, h2, h3, .wp-block-post-title, .wp-block-query-title) { overflow-wrap: break-word; }
main .ct-fitting { overflow-wrap: normal !important; overflow: visible !important; }
/* Long addresses or words pasted into posts, talks, replies and comments wrap instead of widening the page */
:where(main, .ct-footer) :where(p, li, dd, dt, td, th, blockquote, figcaption, a) { overflow-wrap: break-word; }
/* Buttons written by the theme's own shortcodes (404, notices) get the same row as editor buttons: side by side,
   wrapping onto a new line with space between, never stacked on top of each other */
.wp-block-buttons:not([class*="is-layout-"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* WordPress loads the button block's own CSS only on pages that contain a button block; shortcode buttons need
   the basics on every page */
.wp-block-button__link { display: inline-block; box-sizing: border-box; text-align: center; word-break: normal; }
