/* BrandTab: maps WordPress's own blocks and templates onto the site's look.
   Section blocks are styled by site.css; this file covers pages, posts and
   the core blocks an editor adds by hand. */

.bt-main { display: block; }
.bt-header-part, .bt-footer-part { display: contents; }
.wp-site-blocks > * + * { margin-block-start: 0; }
/* Sections sit flush against each other; pages written as prose keep their paragraph spacing */
.bt-main:not(.bt-page) > .wp-block-post-content > * + * { margin-block-start: 0; }

/* Pages and posts written with ordinary blocks */
.bt-page, .bt-article { padding-block: clamp(56px, 7vw, 104px); }
.bt-page__title, .bt-article__title { margin-bottom: .4em; }
:where(.bt-page, .bt-article) :where(h1, h2) em { font-style: normal; color: var(--em); }
.bt-article__category a, .is-style-eyebrow { font: 600 12px/1.5 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; }
.is-style-eyebrow { display: flex; align-items: center; gap: 12px; }
.is-style-eyebrow::before { content: ""; flex: none; width: 26px; height: 11px; background: var(--gold); clip-path: polygon(0 0,100% 0,100% 100%,0 100%,5px 50%); }
.is-style-lead, .bt-article__dek { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.7; color: var(--ink-2); }
.is-style-hand { font: 500 26px/1.2 var(--f-hand); color: var(--gold-ink); }
.bt-article__date { font-size: 14px; color: var(--muted); }
.bt-article__image img { border-radius: 18px; }
/* Only pages written with ordinary blocks (the page template), never the section blocks */
:where(.bt-page .wp-block-post-content) :where(p, li):not([class*="wp-block-brandtab-"] *) { color: var(--ink-2); }
:where(.bt-page .wp-block-post-content) :where(ul.wp-block-list, ol.wp-block-list) { padding-left: 1.3em; }
:where(.bt-page .wp-block-post-content) ul.wp-block-list { list-style: disc; }
:where(.bt-page .wp-block-post-content) ol.wp-block-list { list-style: decimal; }

/* Buttons */
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wp-block-button.is-style-gold .wp-block-button__link { background: var(--gold); color: var(--forest-deep); }

/* Groups */
.wp-block-group.is-style-paper { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.wp-block-group.is-style-forest { background: var(--forest); color: var(--on-forest); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.wp-block-group.is-style-forest :where(h1, h2, h3, h4) { color: var(--on-forest); }

/* Tables (comparisons, prices) */
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.wp-block-table thead th { font: 600 12px/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); border-bottom-color: var(--line-2); }

/* Cookie bar (Europe only), from the old site */
.consent { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 900; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 44px rgba(23, 35, 31, .18); font-size: 15px; line-height: 1.5; }
.consent p { flex: 1 1 260px; margin: 0; }
.consent p a { color: var(--green); font-weight: 600; }
.consent-actions { display: flex; gap: 6px; margin-left: auto; }
.consent button { padding: 9px 16px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.consent-ok { background: var(--green); color: #fff; }
.consent-no { background: transparent; color: var(--ink); }
.consent-no:hover { text-decoration: underline; }

/* Links inside text written with ordinary blocks (sections style their own) */
.bt-page .wp-block-post-content a:not(.wp-element-button) { color: var(--green); text-decoration: underline; text-underline-offset: .18em; }
.bt-page .wp-block-post-content a:not(.wp-element-button):hover { color: var(--forest); }
/* Blog listing pages */
.blog-pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; font-weight: 600; }
.blog-pages .page-numbers { display: inline-flex; align-items: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; justify-content: center; }
.blog-pages .page-numbers.current { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.blog-pages a.page-numbers:hover { border-color: var(--ink); }

/* Section blocks are full width on any template, even inside a constrained (720px) page */
.is-layout-constrained > [class*="wp-block-brandtab-"] { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.bt-page .wp-block-post-content:has(> [class*="wp-block-brandtab-"]) { padding-inline: 0; }
