/* =========================================================
   PLATFORMA — Editorial Bakery Template (TEMPLATE-BAKERY-01, 2026-10-16)

   A food brand's editorial look: cream paper, pine green, terracotta,
   a large serif display and dark product cards.

   Scoping: every rule below is under body[data-template="editorial-bakery"].
   All five template stylesheets load on every page (see _WebsiteLayout), so
   an unscoped rule here would repaint every other tenant's website.

   Contrast: the display coral #D56E55 measures 3.20:1 on cream and is used
   ONLY for display type at 24px+/bold and for rules and hairlines, where the
   bar is 3:1. Coral as body text is #A34A32 (5.26:1) and coral as a button
   face is #B95641 (4.70:1 with white). Body greys are #4E6058 or darker.
   ========================================================= */

body[data-template="editorial-bakery"] {
    /* ─── Colour ───────────────────────────────────────── */
    --eb-paper:      #FBF8F1;
    --eb-cream:      #F7F2E9;
    --eb-cream-deep: #F0EADF;
    --eb-sage:       #E3E9DF;
    --eb-pine:       #14382E;
    --eb-pine-soft:  #214B38;
    --eb-ink:        #20352D;
    --eb-coral:      #D56E55;   /* display + rules only */
    --eb-coral-ink:  #A34A32;   /* coral as readable text */
    --eb-coral-btn:  #B95641;   /* coral as a button face */
    --eb-coral-btn-hover: #9E432F;
    --eb-body:       #4E6058;
    --eb-body-soft:  #5B665C;
    --eb-line:       #DED9CB;
    --eb-on-pine:    #F2EDE4;
    --eb-on-pine-soft: #DCE7DD;

    /* ─── Rhythm ───────────────────────────────────────── */
    /* v3's edge rhythm: the page breathes with the viewport instead of
       snapping between fixed breakpoints. */
    --eb-side:  clamp(26px, 6.15vw, 110px);
    --eb-track: 1720px;
    --eb-band:  clamp(72px, 7vw, 110px);

    /* ─── Type ─────────────────────────────────────────── */
    /* Georgia is what resolves without a font pair; the editorial pair
       replaces --chub-heading-font on <body> with self-hosted Source Serif 4
       and wins over this, which is the intended upgrade path. */
    --eb-serif: var(--chub-heading-font, Georgia, 'Times New Roman', serif);
    --eb-sans:  var(--chub-body-font, system-ui, -apple-system, 'Segoe UI', sans-serif);

    /* ─── The shared sections ──────────────────────────── */
    /* _WebsiteLayout derives --chub-bg/--chub-surface from the tenant's BRAND
       theme, not from the template, so a cream template otherwise renders its
       own hero on cream and every shared band on the theme's near-white. These
       two lines are the whole fix, and they are why this template looks like
       one page instead of two. */
    --chub-bg:      var(--eb-cream);
    --chub-surface: #FFFFFF;

    background: var(--eb-cream);
    color: var(--eb-body);
    font-family: var(--eb-sans);
}

/* ─── Shared pieces, restyled ──────────────────────────── */

body[data-template="editorial-bakery"] .chub-section {
    padding-block: var(--eb-band);
}

body[data-template="editorial-bakery"] .chub-container,
body[data-template="editorial-bakery"] .eb-track {
    max-width: var(--eb-track);
    margin-inline: auto;
    padding-inline: var(--eb-side);
}

body[data-template="editorial-bakery"] h1,
body[data-template="editorial-bakery"] h2,
body[data-template="editorial-bakery"] h3 {
    font-family: var(--eb-serif);
    color: var(--eb-pine);
    font-weight: 500;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

/* The one micro-voice. v3 used eight variations of the same 10px uppercase
   label; one is a system, eight is a template. 11px is the floor. */
body[data-template="editorial-bakery"] .eb-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 17px;
    font-family: var(--eb-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--eb-coral-ink);
}

body[data-template="editorial-bakery"] .eb-topline::before {
    content: "";
    flex: none;
    width: 22px;
    height: 1px;
    background: var(--eb-coral);
}

body[data-template="editorial-bakery"] .eb-display {
    margin: 0;
    font-family: var(--eb-serif);
    font-size: clamp(42px, 5.6vw, 89px);
    line-height: 0.99;
    letter-spacing: -0.04em;
    color: var(--eb-pine);
}

/* The identity device: an emphasised phrase inside the display line. Authors
   mark it with *asterisks* in the field; the partial converts it to <em>. */
body[data-template="editorial-bakery"] .eb-display em,
body[data-template="editorial-bakery"] .eb-hero-title em {
    font-style: normal;
    color: var(--eb-coral-ink);
}

body[data-template="editorial-bakery"] .eb-lead {
    /* The 18-20px step v3's scale skipped: 145 → 89 → 43 → 15 reads as a jump
       from display straight to small print. */
    font-size: 19px;
    line-height: 1.6;
    max-width: 60ch;
    color: var(--eb-body);
}

/* ─── Buttons ──────────────────────────────────────────── */

body[data-template="editorial-bakery"] .eb-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 0;
    font: 650 12.5px/1 var(--eb-sans);
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body[data-template="editorial-bakery"] .eb-btn--pine { background: var(--eb-pine); color: #fff; }
body[data-template="editorial-bakery"] .eb-btn--pine:hover { background: var(--eb-pine-soft); }
body[data-template="editorial-bakery"] .eb-btn--coral { background: var(--eb-coral-btn); color: #fff; }
body[data-template="editorial-bakery"] .eb-btn--coral:hover { background: var(--eb-coral-btn-hover); }
body[data-template="editorial-bakery"] .eb-btn--line { border-color: var(--eb-pine); color: var(--eb-pine); background: rgba(250, 247, 239, 0.65); }
body[data-template="editorial-bakery"] .eb-btn--line:hover { background: #fff; }
body[data-template="editorial-bakery"] .eb-btn--onpine { background: #fff; color: var(--eb-pine); }
body[data-template="editorial-bakery"] .eb-btn--onpine:hover { background: var(--eb-on-pine-soft); }

body[data-template="editorial-bakery"] :focus-visible {
    outline: 2px solid var(--eb-pine);
    outline-offset: 3px;
}

/* ─── Hero ─────────────────────────────────────────────── */

body[data-template="editorial-bakery"] .eb-hero {
    position: relative;
    overflow: hidden;
    background: var(--eb-cream-deep);
    min-height: 680px;
}

body[data-template="editorial-bakery"] .eb-hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 48%;
}

/* A light cream wash from the left, not a dark scrim: the headline is pine on
   cream (11.6:1) instead of white on a photograph, so it stays readable
   whatever image the tenant uploads — which in a CMS it will. */
body[data-template="editorial-bakery"] .eb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(248, 243, 233, 0.93) 0%,
        rgba(248, 243, 233, 0.86) 24%,
        rgba(248, 243, 233, 0.45) 48%,
        rgba(248, 243, 233, 0.06) 72%);
}

body[data-template="editorial-bakery"] .eb-hero--nophoto::before { background: none; }

body[data-template="editorial-bakery"] .eb-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 680px;
    max-width: var(--eb-track);
    margin-inline: auto;
    padding: 93px var(--eb-side) 88px;
}

body[data-template="editorial-bakery"] .eb-hero-title {
    margin: 31px 0 23px;
    max-width: 850px;
    font-family: var(--eb-serif);
    font-size: clamp(74px, 8.3vw, 145px);
    line-height: 0.84;
    letter-spacing: -0.066em;
    font-weight: 500;
    color: var(--eb-pine);
}

body[data-template="editorial-bakery"] .eb-hero-sub {
    margin: 0 0 30px;
    max-width: 420px;
    font-size: 16px;
    line-height: 1.8;
    color: #2B4036;
}

body[data-template="editorial-bakery"] .eb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Product showcase: editorial cards ────────────────── */

body[data-template="editorial-bakery"] .eb-products { background: var(--eb-cream-deep); }

body[data-template="editorial-bakery"] .eb-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 34px;
}

body[data-template="editorial-bakery"] .eb-product {
    position: relative;
    display: block;
    min-height: 475px;
    overflow: hidden;
    background: #E4DDD0;
    text-decoration: none;
}

body[data-template="editorial-bakery"] .eb-product img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body[data-template="editorial-bakery"] .eb-product:hover img { transform: scale(1.03); }

/* A guaranteed plate, not a decorative gradient: the card's text sits on at
   least 62% ink whatever the photograph underneath happens to be. */
body[data-template="editorial-bakery"] .eb-product::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg,
        rgba(4, 22, 18, 0.88) 0%,
        rgba(4, 22, 18, 0.62) 34%,
        rgba(4, 22, 18, 0) 62%);
}

body[data-template="editorial-bakery"] .eb-product-body {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    padding: 27px 28px 26px;
    color: #fff;
}

body[data-template="editorial-bakery"] .eb-product-label {
    font-size: 11px;
    font-weight: 680;
    letter-spacing: 0.21em;
    text-transform: uppercase;
    color: #F3CDB4;
}

body[data-template="editorial-bakery"] .eb-product-body h3 {
    margin: 10px 0 8px;
    font-size: 43px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
}

body[data-template="editorial-bakery"] .eb-product-body p {
    margin: 0;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.55;
    color: #F1EADC;
}

/* ─── Two-column / three-column band ───────────────────── */

body[data-template="editorial-bakery"] .eb-cols {
    display: grid;
    grid-template-columns: repeat(var(--eb-col-count, 2), 1fr);
    margin-top: 55px;
    border-top: 1px solid var(--eb-line);
    border-bottom: 1px solid var(--eb-line);
}

body[data-template="editorial-bakery"] .eb-col { padding: 35px 35px 33px 0; }
body[data-template="editorial-bakery"] .eb-col + .eb-col { padding-left: 27px; border-left: 1px solid var(--eb-line); }
body[data-template="editorial-bakery"] .eb-col h3 { margin: 0 0 8px; font-size: 22px; }
body[data-template="editorial-bakery"] .eb-col p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--eb-body); }
body[data-template="editorial-bakery"] .eb-col-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--eb-coral-ink);
}

/* ─── Fact tiles ───────────────────────────────────────── */

body[data-template="editorial-bakery"] .eb-facts {
    display: grid;
    grid-template-columns: repeat(var(--eb-fact-count, 4), 1fr);
    margin-top: 48px;
    border-top: 1px solid var(--eb-line);
}

body[data-template="editorial-bakery"] .eb-fact { padding: 32px 32px 30px 0; border-bottom: 1px solid var(--eb-line); }
body[data-template="editorial-bakery"] .eb-fact + .eb-fact { padding-left: 30px; border-left: 1px solid var(--eb-line); }
body[data-template="editorial-bakery"] .eb-fact b {
    display: block;
    margin-bottom: 10px;
    font-family: var(--eb-serif);
    font-size: 34px;
    line-height: 1;
    font-weight: 500;
    color: var(--eb-pine);
}
body[data-template="editorial-bakery"] .eb-fact span { font-size: 13px; line-height: 1.7; color: var(--eb-body); }

/* ─── CTA band ─────────────────────────────────────────── */

body[data-template="editorial-bakery"] .eb-cta {
    position: relative;
    overflow: hidden;
    background: var(--eb-pine);
    color: var(--eb-on-pine);
}

/* The ghost letter: v3's one piece of pure ornament, at 3.5% so it reads as
   paper texture rather than a watermark. */
body[data-template="editorial-bakery"] .eb-cta::after {
    content: attr(data-glyph);
    position: absolute;
    top: -22%;
    right: -1%;
    font: 400 620px/1 var(--eb-serif);
    color: rgba(238, 241, 220, 0.035);
    pointer-events: none;
}

body[data-template="editorial-bakery"] .eb-cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr;
    gap: 12%;
    align-items: center;
    min-height: 445px;
    max-width: var(--eb-track);
    margin-inline: auto;
    padding: var(--eb-band) var(--eb-side);
}

body[data-template="editorial-bakery"] .eb-cta h2 {
    margin: 0;
    font-size: clamp(48px, 5.7vw, 90px);
    line-height: 0.97;
    letter-spacing: -0.045em;
    color: #fff;
}

body[data-template="editorial-bakery"] .eb-cta h2 em { font-style: normal; color: #F3B59C; }
body[data-template="editorial-bakery"] .eb-cta .eb-topline { color: #F0C3AC; }
body[data-template="editorial-bakery"] .eb-cta .eb-topline::before { background: #E6B8A1; }
body[data-template="editorial-bakery"] .eb-cta p { margin: 0 0 29px; max-width: 430px; font-size: 16px; line-height: 1.85; color: var(--eb-on-pine-soft); }
body[data-template="editorial-bakery"] .eb-cta-note { margin-top: 32px; font-size: 11px; letter-spacing: 0.1em; color: #C2D3C5; }

/* ─── Store locator ────────────────────────────────────── */

body[data-template="editorial-bakery"] .eb-retail { background: var(--eb-cream-deep); }

body[data-template="editorial-bakery"] .eb-retail-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 40px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

body[data-template="editorial-bakery"] .eb-retail-list li {
    padding: 18px 0;
    border-top: 1px solid var(--eb-line);
    font-size: 14px;
    color: var(--eb-body);
}

body[data-template="editorial-bakery"] .eb-retail-list b {
    display: block;
    margin-bottom: 3px;
    font-family: var(--eb-serif);
    font-size: 21px;
    font-weight: 500;
    color: var(--eb-pine);
}

body[data-template="editorial-bakery"] .eb-retail-list a { color: var(--eb-pine); }

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 1200px) {
    body[data-template="editorial-bakery"] .eb-hero,
    body[data-template="editorial-bakery"] .eb-hero-inner { min-height: 620px; }
    body[data-template="editorial-bakery"] .eb-product { min-height: 395px; }
    body[data-template="editorial-bakery"] .eb-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 890px) {
    body[data-template="editorial-bakery"] .eb-hero::before {
        background: linear-gradient(90deg, rgba(247, 242, 232, 0.96) 0%, rgba(247, 242, 232, 0.9) 42%, rgba(247, 242, 232, 0.2) 85%);
    }
    body[data-template="editorial-bakery"] .eb-product-grid { grid-template-columns: repeat(2, 1fr); }
    body[data-template="editorial-bakery"] .eb-cta-inner { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
    body[data-template="editorial-bakery"] .eb-retail-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    body[data-template="editorial-bakery"] { --eb-side: 23px; }
    body[data-template="editorial-bakery"] .eb-hero,
    body[data-template="editorial-bakery"] .eb-hero-inner { min-height: 0; }
    body[data-template="editorial-bakery"] .eb-hero-inner { justify-content: flex-start; padding-top: 65px; padding-bottom: 72px; }
    /* Vertical wash on a phone: a horizontal one leaves the headline over the
       middle of the photograph, where nothing guarantees contrast. */
    body[data-template="editorial-bakery"] .eb-hero::before {
        background: linear-gradient(180deg, #F4EDE2 0%, rgba(246, 239, 227, 0.97) 28%, rgba(246, 239, 227, 0.86) 47%, rgba(246, 239, 227, 0.1) 80%);
    }
    body[data-template="editorial-bakery"] .eb-hero-title { font-size: clamp(56px, 15vw, 88px); margin: 24px 0 15px; }
    body[data-template="editorial-bakery"] .eb-product-grid,
    body[data-template="editorial-bakery"] .eb-cols,
    body[data-template="editorial-bakery"] .eb-facts,
    body[data-template="editorial-bakery"] .eb-retail-list { grid-template-columns: 1fr; }
    body[data-template="editorial-bakery"] .eb-col,
    body[data-template="editorial-bakery"] .eb-col + .eb-col { padding: 18px 0; border-left: 0; }
    body[data-template="editorial-bakery"] .eb-col + .eb-col { border-top: 1px solid var(--eb-line); }
    body[data-template="editorial-bakery"] .eb-fact,
    body[data-template="editorial-bakery"] .eb-fact + .eb-fact { padding: 26px 0; border-left: 0; }
    body[data-template="editorial-bakery"] .eb-cta h2 { font-size: clamp(40px, 11vw, 65px); }
    body[data-template="editorial-bakery"] .eb-cta::after { font-size: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    body[data-template="editorial-bakery"] .eb-product img { transition: none; }
    body[data-template="editorial-bakery"] .eb-product:hover img { transform: none; }
}

/* ─── TEMPLATE-BAKERY-02 — premium pass ─────────────────── */

/* One grid for the whole page. The shared header and footer use the
   platform's 1100px container while the template's bands use a 1720px track
   with viewport-relative gutters, so on a wide screen the logo sat 200px in
   from the content's left edge. Everything now hangs off the same lines. */
body[data-template="editorial-bakery"] .platforma-site-header-inner,
body[data-template="editorial-bakery"] .platforma-site-footer-grid,
body[data-template="editorial-bakery"] .platforma-site-footer-bottom {
    max-width: var(--eb-track);
    margin-inline: auto;
    padding-inline: var(--eb-side);
    box-sizing: border-box;
}

/* Bands are the page's own surfaces, not cards laid on it. */
body[data-template="editorial-bakery"] .chub-section { border-radius: 0; }

/* ─── Header: the brand, not the platform ─────────────── */

/* Solid paper, deliberately no backdrop-filter. A filter on the header makes it
   the containing block for its position:fixed children, and the phone menu
   drawer is one: measured at 375px it shrank from the full 812px viewport to
   the header's 78px and pushed the page 319px wide. */
body[data-template="editorial-bakery"] .platforma-site-header {
    background: var(--eb-paper);
    box-shadow: none;
    border-bottom: 1px solid var(--eb-line);
}

body[data-template="editorial-bakery"] .platforma-site-header-inner { min-height: 78px; }

/* The fallback monogram takes the template's pine, not the brand theme's
   accent — a red app tile beside a pine-and-cream page reads as a platform
   badge. An uploaded logo replaces the tile and is left untouched. */
body[data-template="editorial-bakery"] .platforma-site-brand-logo {
    background: var(--eb-pine);
    color: var(--eb-on-pine);
    border-radius: 0;
}

body[data-template="editorial-bakery"] .platforma-site-brand-name {
    font-family: var(--eb-serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--eb-pine);
}

body[data-template="editorial-bakery"] .platforma-site-nav-link {
    position: relative;
    padding: 8px 2px;
    background: none;
    border-radius: 0;
    font: 600 14px/1.2 var(--eb-sans);
    letter-spacing: 0.01em;
    color: var(--eb-ink);
}

body[data-template="editorial-bakery"] .platforma-site-nav-link::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: 2px;
    background: var(--eb-coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

body[data-template="editorial-bakery"] .platforma-site-nav-link:hover,
body[data-template="editorial-bakery"] .platforma-site-nav-link-active {
    background: none;
    color: var(--eb-pine);
}

body[data-template="editorial-bakery"] .platforma-site-nav-link:hover::after,
body[data-template="editorial-bakery"] .platforma-site-nav-link-active::after { transform: scaleX(1); }

/* ─── Hero: a split, not a wash ───────────────────────── */
/* The photograph gets its own half of the hero instead of sitting under the
   headline. A CMS tenant uploads whatever they have — usually a centred
   product shot — and a wash only works for an image composed with an empty
   left third. In a split, every photograph works and the headline sits on
   cream at 11.6:1 whatever was uploaded. */

body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: min(88vh, 860px);
    background: var(--eb-cream);
}

body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto)::before { display: none; }

body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto) .eb-hero-photo {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    min-height: 100%;
}

body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto) .eb-hero-inner {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 112px clamp(40px, 5vw, 104px) 104px max(var(--eb-side), calc((100vw - var(--eb-track)) / 2 + var(--eb-side)));
}

body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto) .eb-hero-title {
    font-size: clamp(60px, 6.4vw, 128px);
    line-height: 0.88;
}

body[data-template="editorial-bakery"] .eb-hero-sub {
    max-width: 30em;
    font-size: 18.5px;
    line-height: 1.7;
    color: var(--eb-ink);
}

/* ─── Type: one display moment ────────────────────────── */
/* Every section heading was 89px, the same voice as the hero. When all six
   bands shout, none of them is the headline. Section titles now step down to
   a confident editorial size and carry the topline's coral rule above them. */

body[data-template="editorial-bakery"] .eb-display {
    font-size: clamp(38px, 3.7vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

body[data-template="editorial-bakery"] .chub-section .eb-display::before {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin-bottom: 30px;
    background: var(--eb-coral);
}

body[data-template="editorial-bakery"] .eb-lead {
    margin-top: 22px;
    font-size: 19px;
    color: var(--eb-ink);
}

/* Body copy at reading size. 13-14px light grey on cream is a caption, not
   a paragraph — and these are the paragraphs that sell the bread. */
body[data-template="editorial-bakery"] .eb-col { padding: 40px 44px 38px 0; }
body[data-template="editorial-bakery"] .eb-col + .eb-col { padding-left: 36px; }
body[data-template="editorial-bakery"] .eb-col h3 { margin: 0 0 12px; font-size: 26px; line-height: 1.15; }
body[data-template="editorial-bakery"] .eb-col p { font-size: 16.5px; line-height: 1.75; color: #3D5048; }
body[data-template="editorial-bakery"] .eb-fact span { font-size: 15.5px; color: #3D5048; }
body[data-template="editorial-bakery"] .eb-retail-list li { font-size: 15.5px; }
body[data-template="editorial-bakery"] .eb-cta p { font-size: 17.5px; }

/* ─── Buttons: a size you can hit ─────────────────────── */

body[data-template="editorial-bakery"] .eb-btn {
    min-height: 54px;
    padding: 0 30px;
    font: 600 14.5px/1 var(--eb-sans);
    letter-spacing: 0.01em;
}

body[data-template="editorial-bakery"] .eb-btn--pine::after {
    content: "→";
    font-weight: 400;
    transition: transform 0.25s ease;
}

body[data-template="editorial-bakery"] .eb-btn--pine:hover::after { transform: translateX(4px); }

/* ─── Product cards: any count, no holes ──────────────── */
/* Five products in a three-column grid left an empty cell that read as a
   broken page. Two and three, four as a square, five as two large over three. */

body[data-template="editorial-bakery"] .eb-product-grid { gap: 16px; margin-top: 52px; }

body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(6, 1fr);
}

body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child) > .eb-product { grid-column: span 2; }

body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child) > .eb-product:nth-child(-n+2) {
    grid-column: span 3;
    min-height: 560px;
}

body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

body[data-template="editorial-bakery"] .eb-product-body { padding: 30px 32px 30px; }
body[data-template="editorial-bakery"] .eb-product-body h3 { font-size: clamp(30px, 2.5vw, 42px); }
body[data-template="editorial-bakery"] .eb-product-body p { max-width: 34ch; font-size: 15px; line-height: 1.6; }

/* ─── Footer: the page ends in the brand's colour ─────── */

body[data-template="editorial-bakery"] .platforma-site-footer {
    background: var(--eb-pine);
    color: var(--eb-on-pine-soft);
    border-top: 0;
    padding-top: 72px;
}

body[data-template="editorial-bakery"] .platforma-site-footer a { color: var(--eb-on-pine); }
body[data-template="editorial-bakery"] .platforma-site-footer a:hover { color: #fff; }

body[data-template="editorial-bakery"] .platforma-site-footer-brand-name {
    font-family: var(--eb-serif);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
}

body[data-template="editorial-bakery"] .platforma-site-footer-brand-logo {
    background: var(--eb-on-pine);
    color: var(--eb-pine);
    border-radius: 0;
}

body[data-template="editorial-bakery"] .platforma-site-footer h2,
body[data-template="editorial-bakery"] .platforma-site-footer h3,
body[data-template="editorial-bakery"] .platforma-site-footer h4 {
    font-family: var(--eb-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #F0C3AC;
}

body[data-template="editorial-bakery"] .platforma-site-footer-bottom {
    margin-top: 56px;
    padding-block: 26px 30px;
    border-top: 1px solid rgba(242, 237, 228, 0.16);
    color: #C2D3C5;
}

/* The pages column lists whatever the tenant has placed in the footer. Until
   they place something it is a heading over nothing, which reads as a broken
   footer, so a column with no link or text in it is not drawn. */
body[data-template="editorial-bakery"] .platforma-site-footer-col:not(.platforma-site-footer-brand):not(:has(li, p, a)) {
    display: none;
}

/* ─── Narrow screens ──────────────────────────────────── */

@media (max-width: 890px) {
    body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto) { grid-template-columns: 1fr; min-height: 0; }
    body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto) .eb-hero-photo { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 4 / 3; }
    body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto) .eb-hero-inner { grid-column: 1; grid-row: 2; padding: 48px var(--eb-side) 64px; }
    body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(2, 1fr); }
    /* :nth-child(n) matches every card but carries the same weight as the
       desktop :nth-child(-n+2) rule, so it actually overrides it. A bare
       .eb-product lost to it: card two kept "span 3" in a two-column grid, the
       grid grew implicit columns and the page ran off the side of a phone. */
    body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child) > .eb-product:nth-child(n) { grid-column: span 1; min-height: 395px; }
    body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child) > .eb-product:first-child { grid-column: span 2; }
}

@media (max-width: 620px) {
    body[data-template="editorial-bakery"] .eb-hero:not(.eb-hero--nophoto) .eb-hero-title { font-size: clamp(52px, 14vw, 88px); }
    body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child),
    body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(4):last-child),
    body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
    body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child) > .eb-product:nth-child(n),
    body[data-template="editorial-bakery"] .eb-product-grid:has(> :nth-child(5):last-child) > .eb-product:first-child { grid-column: auto; min-height: 395px; }
    body[data-template="editorial-bakery"] .eb-col,
    body[data-template="editorial-bakery"] .eb-col + .eb-col { padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
    body[data-template="editorial-bakery"] .platforma-site-nav-link::after,
    body[data-template="editorial-bakery"] .eb-btn--pine::after { transition: none; }
    body[data-template="editorial-bakery"] .eb-btn--pine:hover::after { transform: none; }
}
