/* =========================================================
   DinnTro – blocks for pages built in the website admin (custom pages).
   Loaded after site.css by cms/templates/layout.php. Blocks reuse the site's own classes
   (page-hero, block, wrap, prose, split, app-band, faq, stores); this file only adds the
   spacing and the few pieces site.css has no class for.
   ========================================================= */

/* Hero without an image: no tall empty banner. */
.cms-hero.is-compact { min-height: 0; padding: 140px 0 72px; }
.cms-hero.is-compact h1, .cms-hero.is-compact h2 { max-width: 22ch; }
main > .cms-hero:not(:first-child) { min-height: 0; padding-top: 72px; }

/* A run of blocks shares one section; the blocks inside are spaced evenly. */
.cms-flow > .wrap > * + * { margin-top: 2rem; }
.cms-flow > .wrap > .cms-heading + * { margin-top: 1rem; }
.cms-flow > .wrap > * + .cms-heading { margin-top: 3rem; }
.cms-flow > .wrap > .cms-split,
.cms-flow > .wrap > .cms-cta,
.cms-flow > .wrap > .cms-figure,
.cms-flow > .wrap > * + .cms-split,
.cms-flow > .wrap > * + .cms-cta,
.cms-flow > .wrap > * + .cms-figure { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.cms-flow > .wrap > :first-child { margin-top: 0; }

h2.cms-heading { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 26ch; }
h3.cms-heading { font-size: 1.3rem; font-weight: 700; }

/* Rich text: site.css .prose, plus quotes and headings an editor may use. */
.cms-rich > :last-child { margin-bottom: 0; }
.cms-rich h4 { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.25rem 0 0.4rem; }
.cms-rich blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--primary); color: var(--ink); }
.prose.cms-rich { overflow-wrap: anywhere; }

/* Image */
.cms-figure { margin-left: 0; margin-right: 0; max-width: 960px; }
.cms-figure img { width: 100%; height: auto; border-radius: 8px; background: var(--bg-soft); }
.cms-figure figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }

/* Image and text: the .prose column sits beside .split-media. */
.cms-split .prose { max-width: none; }

/* Call to action: site .app-band with one column. */
.cms-cta.app-band { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(2rem, 4vw, 3rem); }
.cms-cta.app-band > div:first-child { padding-bottom: 0; }
.cms-cta h2 { max-width: 24ch; }
.cms-cta .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.cms-cta .store { color: #fff; padding: 0.6rem 1rem; }
.cms-cta .store:hover { border-color: #fff; }

/* FAQ: site .faq; answers keep line breaks. */
.cms-faq .faq details p { color: var(--ink-soft); }

/* Quote */
.cms-quote { margin: 0; max-width: 760px; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--primary); }
.cms-quote blockquote { margin: 0; }
.cms-quote blockquote p { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.35; color: var(--ink); }
.cms-quote figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; }
.cms-quote figcaption strong { color: var(--ink); }

@media (max-width: 860px) {
  .cms-hero.is-compact { padding: 110px 0 48px; }
  main > .cms-hero:not(:first-child) { padding-top: 48px; }
}
@media (max-width: 480px) {
  .cms-cta .actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .cms-quote { padding-left: 1rem; }
}
