/* ============================================================
   LeafCraftPRO  -  Front-end stylesheet
   Design language: natural, warm, editorial craft magazine
   ============================================================ */

/* ---------- 0. Fonts (self-hosted) ----------
   Both faces are variable, so one file covers every weight we use.
   Self-hosted rather than loaded from fonts.googleapis.com: that
   removed two third-party origins from the critical path (DNS, TLS
   and a CSS round trip before any font file is even discovered).
   Latin and latin-ext subsets only, matching Google's own split, so
   a page with no accented characters never downloads the ext file.
   Playfair Display and Inter are both SIL Open Font License 1.1. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/playfair-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/playfair-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/playfair-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/playfair-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Tokens ---------- */
:root {
    --green-900: #123326;
    --green-800: #17432F;
    --green-700: #1C5638;
    --green-600: #24703F;
    --green-500: #2E8B4C;
    --green-400: #4CA35F;
    --lime-600: #7CB342;
    --lime-500: #8FBF4A;
    --lime-400: #A8D45E;
    --lime-200: #DCEDBC;
    --lime-100: #EDF6DC;

    --cream: #FCFAF3;
    --cream-2: #F7F4E9;
    --cream-3: #F1EDDD;
    --beige: #E9E2CE;

    --ink: #1C2A21;
    --ink-soft: #33463A;
    --muted: #6E7F72;
    --muted-2: #93A096;

    --line: #E5E1D2;
    --line-2: #EFEBDE;

    --gold: #E2A33C;
    --red: #C0392B;
    --white: #FFFFFF;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(24, 46, 33, .06);
    --shadow-sm: 0 2px 10px rgba(24, 46, 33, .07);
    --shadow: 0 8px 26px rgba(24, 46, 33, .09);
    --shadow-lg: 0 18px 48px rgba(24, 46, 33, .14);

    --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --container: 1240px;
    --header-h: 74px;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* `clip` rather than `hidden`: `hidden` turns <body> into a scroll
       container, which silently breaks every `position: sticky`
       descendant (the header, the sidebar, the product gallery). */
    overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border: 0; }

a { color: var(--green-600); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--green-500); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.22;
    color: var(--green-900);
    margin: 0 0 .55em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--lime-200); color: var(--green-900); }

:focus-visible { outline: 2.5px solid var(--lime-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}
.container-narrow { max-width: 860px; }

.section { padding: 66px 0; }
.section-sm { padding: 40px 0; }
.section-tight { padding: 44px 0; }
.bg-cream-2 { background: var(--cream-2); }
.bg-lime { background: var(--lime-100); }
.bg-white { background: #fff; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--green-700); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--green-500);
    margin-bottom: 10px;
}
.eyebrow::before {
    content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px;
}
.eyebrow-plain::before { display: none; }

.lead { font-size: 1.06rem; color: var(--muted); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-green { color: var(--green-600); }
.serif { font-family: var(--font-display); }

/* ---------- 5. Section heading with leaf ornaments ---------- */
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 22px; margin-bottom: 34px; position: relative;
}
.section-head .sh-text { max-width: 640px; }
.section-head h2 { margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); font-size: .97rem; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .sh-text { max-width: 620px; }

.leaf-ornament {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 74px; height: 74px; opacity: .5; pointer-events: none;
    color: var(--lime-400);
}
.section-head.center .leaf-ornament { display: none; }
.leaf-ornament.left { right: auto; left: -18px; transform: translateY(-50%) scaleX(-1); }

.view-all {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .85rem; font-weight: 600; color: var(--green-600);
    white-space: nowrap; padding-bottom: 2px;
}
.view-all svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.view-all:hover svg { transform: translateX(4px); }

/* ---------- 6. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: var(--radius-pill);
    font-size: .9rem; font-weight: 600; letter-spacing: .01em;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform .16s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap; text-align: center; line-height: 1.2;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(28, 86, 56, .24); }
.btn-primary:hover { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px rgba(28, 86, 56, .3); }

.btn-lime { background: var(--lime-500); color: var(--green-900); box-shadow: 0 6px 18px rgba(143, 191, 74, .3); }
.btn-lime:hover { background: var(--lime-400); color: var(--green-900); }

.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--green-800); border-color: #fff; }

.btn-ghost { background: var(--white); color: var(--green-700); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-700); }

.btn-white { background: #fff; color: var(--green-800); }
.btn-white:hover { background: var(--lime-100); color: var(--green-800); }

.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: var(--green-800); color: #fff; }

.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-lg { padding: 16px 34px; font-size: .97rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: 50%; }
.btn-icon svg { width: 18px; height: 18px; }

.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- 7. Announcement bar ---------- */
.announce {
    background: var(--green-800); color: #EAF3E3;
    font-size: .82rem; text-align: center; padding: 9px 16px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.announce a { color: var(--lime-400); text-decoration: underline; }
.announce svg { width: 15px; height: 15px; }

/* ---------- 8. Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 120;
    background: rgba(252, 250, 243, .94);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line-2);
    transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex; align-items: center; gap: 18px;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: linear-gradient(145deg, var(--green-600), var(--lime-500));
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 4px 12px rgba(36, 112, 63, .28);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
    font-family: var(--font-display); font-size: 1.42rem; font-weight: 700;
    color: var(--green-800); letter-spacing: -.02em;
}
.brand-tag {
    font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted-2); font-weight: 600;
}

.main-nav { margin-left: auto; }
.main-nav ul {
    display: flex; align-items: center; gap: 4px;
    list-style: none; margin: 0; padding: 0;
}
.main-nav a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 15px; border-radius: var(--radius-pill);
    font-size: .9rem; font-weight: 500; color: var(--ink-soft);
    transition: background .18s var(--ease), color .18s var(--ease);
}
.main-nav a:hover { background: var(--lime-100); color: var(--green-700); }
.main-nav a.active { background: var(--green-700); color: #fff; }
.main-nav .has-children { position: relative; }
.main-nav .has-children > a::after {
    content: ""; width: 5px; height: 5px; border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px;
}
.sub-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s var(--ease); z-index: 20;
}
.has-children:hover .sub-menu,
.has-children:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li { width: 100%; }
.sub-menu a { display: block; width: 100%; padding: 9px 14px; border-radius: var(--radius-sm); font-size: .87rem; }

.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; color: var(--ink-soft);
    transition: background .18s var(--ease), color .18s var(--ease);
    position: relative;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--lime-100); color: var(--green-700); }
.cart-count {
    position: absolute; top: 3px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--green-600); color: #fff;
    border-radius: var(--radius-pill);
    font-size: .66rem; font-weight: 700;
    display: grid; place-items: center; line-height: 1;
    border: 2px solid var(--cream);
}
.nav-toggle { display: none; }

/* Search overlay */
.search-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(18, 51, 38, .5);
    backdrop-filter: blur(4px);
    display: grid; place-items: start center;
    padding-top: 14vh;
    opacity: 0; visibility: hidden; transition: all .22s var(--ease);
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-panel {
    width: min(620px, 92vw); background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 26px; transform: translateY(-14px);
    transition: transform .25s var(--ease);
}
.search-overlay.is-open .search-panel { transform: translateY(0); }
.search-panel form { display: flex; gap: 10px; }
.search-panel input {
    flex: 1; padding: 15px 20px; border: 1.5px solid var(--line);
    border-radius: var(--radius-pill); font-size: 1rem; background: var(--cream);
}
.search-panel input:focus { outline: none; border-color: var(--green-500); background: #fff; }
.search-hint { margin: 14px 0 0; font-size: .82rem; color: var(--muted-2); }
.search-hint a { color: var(--green-600); }

/* ---------- 9. Mobile nav ---------- */
.mobile-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    background: var(--cream); z-index: 210; transform: translateX(100%);
    transition: transform .3s var(--ease); overflow-y: auto;
    padding: 20px; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav ul { list-style: none; margin: 0 0 18px; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line-2); }
.mobile-nav a { display: block; padding: 13px 4px; font-size: .98rem; color: var(--ink); font-weight: 500; }
.mobile-nav a:hover { color: var(--green-600); }
.nav-backdrop {
    position: fixed; inset: 0; background: rgba(18,51,38,.45); z-index: 205;
    opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- 10. Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--green-900);
    min-height: 520px;
    display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14, 42, 30, .9) 0%, rgba(14, 42, 30, .72) 42%, rgba(14, 42, 30, .22) 78%, rgba(14, 42, 30, .1) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 74px 0; width: 100%; }
.hero-content { max-width: 620px; }
.hero h1 {
    color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.9rem);
    line-height: 1.1; margin-bottom: 18px; letter-spacing: -.02em;
}
.hero h1 em {
    font-style: italic; color: var(--lime-400);
    font-family: var(--font-display);
}
.hero p {
    color: rgba(255,255,255,.86); font-size: 1.05rem;
    max-width: 470px; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Compact hero used on inner pages */
.page-hero {
    position: relative; background: var(--green-900); overflow: hidden;
    padding: 54px 0 50px; color: #fff;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14,42,30,.92), rgba(14,42,30,.55));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin: 6px 0 10px; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.84); max-width: 640px; margin: 0; }

/* ---------- 11. Breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; }
.breadcrumbs a { color: inherit; opacity: .82; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { opacity: 1; font-weight: 600; }
.breadcrumbs.on-light { color: var(--muted); }
.breadcrumbs.on-dark { color: rgba(255,255,255,.86); }

/* ---------- 12. Cards: blog ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.post-card {
    background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--lime-200); }

.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--cream-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .card-media img { transform: scale(1.05); }

.card-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.95); color: var(--green-800);
    font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 11px; border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
}
.card-badge.lime { background: var(--lime-500); color: var(--green-900); }
.card-badge.sale { background: var(--red); color: #fff; }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.16rem; margin: 0 0 8px; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--green-600); }
.card-body p { color: var(--muted); font-size: .89rem; margin: 0 0 16px; }
.card-meta {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2);
    font-size: .78rem; color: var(--muted-2);
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 14px; height: 14px; }

/* ---------- 13. Featured tutorial split block ---------- */
.feature-split {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
    background: var(--lime-100); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--lime-200);
}
.feature-split .fs-media { position: relative; min-height: 380px; }
.feature-split .fs-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feature-split .fs-body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.feature-split .fs-body h2 { margin-bottom: 14px; }
.feature-split .fs-body p { color: var(--ink-soft); margin-bottom: 26px; }

.fs-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.fs-strip .fs-thumb {
    position: relative; border-radius: var(--radius-sm); overflow: hidden;
    aspect-ratio: 1 / 1; background: var(--white);
}
.fs-strip .fs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fs-strip .fs-num {
    position: absolute; top: 6px; left: 6px; width: 20px; height: 20px;
    background: rgba(255,255,255,.94); color: var(--green-700);
    border-radius: 50%; display: grid; place-items: center;
    font-size: .68rem; font-weight: 700;
}

/* ---------- 14. Category pills ---------- */
.cat-pills {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.cat-pill {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 18px 22px; min-width: 118px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); transition: all .2s var(--ease); text-align: center;
}
.cat-pill:hover { border-color: var(--green-500); transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--green-700); }
.cat-pill .cp-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--lime-100); color: var(--green-600);
}
.cat-pill .cp-icon svg { width: 24px; height: 24px; }
.cat-pill .cp-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.cat-pill .cp-name { font-size: .86rem; font-weight: 600; }
.cat-pill .cp-count { font-size: .7rem; color: var(--muted-2); }

/* ---------- 15. Step cards ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { text-align: center; position: relative; }
.step-card .sc-num {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--green-700); color: #fff;
    display: grid; place-items: center; font-size: .82rem; font-weight: 700;
    z-index: 2; box-shadow: 0 4px 10px rgba(28,86,56,.3);
}
.step-card .sc-media {
    border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
    background: var(--cream-3); margin-bottom: 14px; border: 1px solid var(--line-2);
}
.step-card .sc-media img { width: 100%; height: 100%; object-fit: cover; }
.step-card h4 { font-size: 1rem; margin: 0 0 5px; font-family: var(--font-body); font-weight: 700; }
.step-card p { font-size: .82rem; color: var(--muted); margin: 0; }
.step-arrow {
    display: none;
}

/* ---------- 16. Product cards ---------- */
.product-card {
    background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--lime-200); }
.product-card .card-media { aspect-ratio: 1 / 1; }
.product-card .card-body { padding: 15px 16px 17px; text-align: center; }
.product-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin: 0 0 6px; }
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--green-600); }
.product-card .p-rating { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 8px; }
.product-card .p-rating small { font-size: .72rem; color: var(--muted-2); }
.product-card .p-price { font-size: 1.02rem; font-weight: 700; color: var(--green-700); margin-bottom: 13px; }
.product-card .p-price del { color: var(--muted-2); font-weight: 400; font-size: .84rem; margin-left: 6px; }
.product-card .btn { width: 100%; }

.stars { display: inline-flex; gap: 1px; }
.stars .star { width: 14px; height: 14px; color: var(--line); }
.stars .star.on { color: var(--gold); }

/* ---------- 17. Facebook banner ---------- */
.fb-banner {
    background: linear-gradient(100deg, var(--green-700), var(--green-500));
    border-radius: var(--radius-lg); padding: 34px 40px;
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
    color: #fff; position: relative; overflow: hidden;
}
.fb-banner::after {
    content: ""; position: absolute; right: -40px; bottom: -50px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.fb-banner .fb-icon {
    width: 62px; height: 62px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; color: var(--green-700); flex: none;
}
.fb-banner .fb-icon svg { width: 34px; height: 34px; }
.fb-banner .fb-text { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.fb-banner h3 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; }
.fb-banner p { margin: 0; color: rgba(255,255,255,.85); font-size: .9rem; }
.fb-banner .btn { position: relative; z-index: 1; }

/* ---------- 18. Newsletter ---------- */
.newsletter-block {
    background: var(--cream-3); border-radius: var(--radius-lg);
    padding: 40px; text-align: center; border: 1px solid var(--line);
}
.newsletter-block h3 { margin-bottom: 8px; }
.newsletter-block p { color: var(--muted); margin-bottom: 22px; }
.newsletter-form {
    display: flex; gap: 10px; max-width: 470px; margin: 0 auto; flex-wrap: wrap;
}
.newsletter-form input {
    flex: 1; min-width: 200px; padding: 14px 20px;
    border: 1.5px solid var(--line); border-radius: var(--radius-pill);
    background: #fff; font-size: .92rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--green-500); }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.72); padding: 62px 0 0; margin-top: 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
    gap: 38px; padding-bottom: 46px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255,255,255,.5); }
.footer-brand .brand-mark { background: linear-gradient(145deg, var(--lime-500), var(--green-500)); }
.footer-brand p { margin: 18px 0 20px; font-size: .88rem; line-height: 1.75; color: rgba(255,255,255,.62); }

.footer-col h4 {
    color: #fff; font-size: .96rem; font-family: var(--font-body); font-weight: 700;
    margin: 0 0 18px; letter-spacing: .01em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,.68); font-size: .87rem; }
.footer-col a:hover { color: var(--lime-400); }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; color: var(--lime-400); flex: none; }

.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.09); display: grid; place-items: center;
    color: #fff; transition: background .2s var(--ease), transform .2s var(--ease);
}
.social-row a svg { width: 17px; height: 17px; }
.social-row a:hover { background: var(--lime-500); color: var(--green-900); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 22px 0; display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--lime-400); }
.footer-signature { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-style: italic; }
.footer-signature svg { width: 15px; height: 15px; color: var(--lime-500); }

/* ---------- 20. Blog archive layout ---------- */
.layout-sidebar {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px; align-items: start;
}
.layout-sidebar-left { grid-template-columns: 300px minmax(0, 1fr); }

.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 18px); }
.widget {
    background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
    padding: 22px;
}
.widget-title {
    font-family: var(--font-body); font-size: .82rem; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase; color: var(--green-800);
    margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 10px; }
.widget li:last-child { margin-bottom: 0; }
.widget a { color: var(--ink-soft); font-size: .89rem; }
.widget a:hover { color: var(--green-600); }
.widget .count { float: right; color: var(--muted-2); font-size: .82rem; }

.widget-search form { display: flex; gap: 8px; }
.widget-search input {
    flex: 1; min-width: 0; padding: 11px 16px; border: 1.5px solid var(--line);
    border-radius: var(--radius-pill); font-size: .88rem; background: var(--cream);
}
.widget-search input:focus { outline: none; border-color: var(--green-500); background: #fff; }
.widget-search button { padding: 0 16px; border-radius: var(--radius-pill); background: var(--green-700); color: #fff; }
.widget-search button svg { width: 17px; height: 17px; }

.author-widget { text-align: center; }
.author-widget .aw-avatar {
    width: 82px; height: 82px; border-radius: 50%; overflow: hidden;
    margin: 0 auto 14px; border: 3px solid var(--lime-200); background: var(--cream-3);
}
.author-widget .aw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-widget h4 { font-size: 1.05rem; margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; }
.author-widget p { font-size: .83rem; color: var(--muted); margin-bottom: 16px; }

.recent-post { display: flex; gap: 12px; align-items: center; }
.recent-post .rp-thumb {
    width: 62px; height: 62px; border-radius: 10px; overflow: hidden; flex: none; background: var(--cream-3);
}
.recent-post .rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post .rp-body h5 {
    font-family: var(--font-body); font-size: .85rem; font-weight: 600;
    margin: 0 0 3px; line-height: 1.4;
}
.recent-post .rp-body h5 a { color: var(--ink); }
.recent-post .rp-body h5 a:hover { color: var(--green-600); }
.recent-post .rp-body small { font-size: .72rem; color: var(--muted-2); }

.widget-cta {
    background: linear-gradient(150deg, var(--green-700), var(--green-500));
    border: 0; color: #fff; text-align: center; padding: 28px 22px;
}
.widget-cta h4 { color: #fff; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 8px; }
.widget-cta p { color: rgba(255,255,255,.82); font-size: .85rem; margin-bottom: 18px; }
.widget-cta .newsletter-form { flex-direction: column; gap: 9px; }
.widget-cta .newsletter-form input {
    border-color: transparent; background: rgba(255,255,255,.95); text-align: center;
}
.widget-cta .btn { width: 100%; }

/* ---------- 21. Article ---------- */
.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 12px 0 16px; }
.article-header .lead { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 22px; }

.article-meta {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
    font-size: .84rem; color: var(--muted);
}
.article-meta .am-item { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; color: var(--green-500); }
.article-meta .am-author { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink-soft); }
.article-meta .am-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.share-row .sr-label { font-size: .82rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.share-btn {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: var(--cream-3); color: var(--ink-soft); transition: all .2s var(--ease);
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { transform: translateY(-3px); color: #fff; }
.share-btn.fb:hover { background: #1877F2; }
.share-btn.tw:hover { background: #111; }
.share-btn.pin:hover { background: #E60023; }
.share-btn.wa:hover { background: #25D366; }
.share-btn.mail:hover { background: var(--green-600); }
.share-btn.link:hover { background: var(--green-700); }

.article-hero {
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px;
    box-shadow: var(--shadow-sm); background: var(--cream-3);
}
.article-hero img { width: 100%; }

.article-body { font-size: 1.04rem; line-height: 1.82; color: var(--ink-soft); }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { margin-top: 2.1em; font-size: 1.72rem; scroll-margin-top: 100px; }
.article-body h3 { margin-top: 1.7em; font-size: 1.3rem; scroll-margin-top: 100px; }
.article-body h4 { margin-top: 1.4em; font-size: 1.1rem; }
.article-body p { margin-bottom: 1.3em; }
.article-body a { color: var(--green-600); text-decoration: underline; text-decoration-color: var(--lime-400); text-underline-offset: 3px; }
.article-body a:hover { color: var(--green-500); }
.article-body img { border-radius: var(--radius); margin: 1.6em 0; box-shadow: var(--shadow-xs); }
.article-body ul, .article-body ol { margin-bottom: 1.4em; padding-left: 1.4em; }
.article-body li { margin-bottom: .55em; }
.article-body li::marker { color: var(--green-500); }
.article-body blockquote {
    margin: 2em 0; padding: 22px 26px; background: var(--lime-100);
    border-left: 4px solid var(--green-500); border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display); font-size: 1.14rem; font-style: italic; color: var(--green-800);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: .82rem; color: var(--muted-2); text-align: center; margin-top: 10px; }
.article-body code {
    background: var(--cream-3); padding: 2px 7px; border-radius: 5px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; color: var(--green-700);
}
.article-body pre {
    background: var(--green-900); color: #DCEBD5; padding: 20px; border-radius: var(--radius);
    overflow-x: auto; font-size: .88rem; margin: 1.6em 0;
}
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .93rem; }
.article-body th, .article-body td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--cream-2); font-weight: 700; color: var(--green-800); }
.article-body iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); border: 0; margin: 1.6em 0; }
.article-body hr { border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Widgets embedded in an article (from the blog builder) */
.article-widget { margin: 2em 0; }
.widget-box {
    background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 26px;
}
.widget-box.lime { background: var(--lime-100); border-color: var(--lime-200); }
.widget-box.green { background: var(--green-800); border-color: var(--green-700); color: #fff; }
.widget-box.green h3, .widget-box.green h4 { color: #fff; }
.widget-box h3, .widget-box h4 { margin-top: 0; }
.widget-box .wb-icon {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: #fff; color: var(--green-600); margin-bottom: 14px;
}
.widget-box .wb-icon svg { width: 22px; height: 22px; }
.widget-box.green .wb-icon { background: rgba(255,255,255,.14); color: var(--lime-400); }

.materials-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.materials-list li { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.materials-list .ml-icon {
    width: 40px; height: 40px; border-radius: 10px; background: #fff; flex: none;
    display: grid; place-items: center; color: var(--green-600); overflow: hidden;
}
.materials-list .ml-icon svg { width: 20px; height: 20px; }
.materials-list .ml-icon img { width: 100%; height: 100%; object-fit: cover; }

.step-list { display: grid; gap: 30px; }
.step-item { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px; align-items: start; }
.step-item .si-media {
    border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
    background: var(--cream-3); position: relative; border: 1px solid var(--line-2);
}
.step-item .si-media img { width: 100%; height: 100%; object-fit: cover; }
.step-item .si-num {
    position: absolute; top: 10px; left: 10px; width: 28px; height: 28px;
    background: var(--green-700); color: #fff; border-radius: 8px;
    display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}
.step-item h3 { font-size: 1.22rem; margin: 4px 0 10px; }
.step-item p { color: var(--muted); font-size: .95rem; margin: 0; }

.tips-box {
    background: var(--lime-100); border: 1px solid var(--lime-200);
    border-radius: var(--radius); padding: 24px 26px; margin: 2em 0;
}
.tips-box h3 {
    display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 14px;
}
.tips-box h3 svg { width: 22px; height: 22px; color: var(--green-500); }
.tips-box ul { margin: 0; padding-left: 1.3em; }
.tips-box li { color: var(--ink-soft); font-size: .94rem; margin-bottom: .5em; }

.cta-banner {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 220px; display: flex; align-items: center; padding: 36px 40px;
    background: var(--green-800); margin: 2.4em 0;
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14,42,30,.92), rgba(14,42,30,.4));
}
.cta-banner .cb-body { position: relative; z-index: 2; max-width: 420px; }
.cta-banner h3 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.82); margin-bottom: 18px; font-size: .92rem; }

/* Article navigation */
.post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.post-nav a { display: flex; flex-direction: column; gap: 5px; padding: 14px 18px; border-radius: var(--radius); background: var(--cream-2); transition: background .2s var(--ease); }
.post-nav a:hover { background: var(--lime-100); }
.post-nav .pn-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); font-weight: 700; }
.post-nav .pn-title { font-size: .95rem; font-weight: 600; color: var(--ink); }
.post-nav .next { text-align: right; align-items: flex-end; }

/* Author box */
.author-box {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--cream-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px; margin: 34px 0;
}
.author-box .ab-avatar { width: 74px; height: 74px; border-radius: 50%; overflow: hidden; flex: none; background: var(--cream-3); }
.author-box .ab-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box h4 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
.author-box .ab-role { font-size: .78rem; color: var(--green-500); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.author-box p { font-size: .89rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- 22. Product detail ---------- */
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pg-main {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--cream-2); border: 1px solid var(--line-2); aspect-ratio: 1/1;
}
.pg-main img { width: 100%; height: 100%; object-fit: cover; }
.pg-zoom {
    position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink);
    display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.pg-zoom svg { width: 18px; height: 18px; }
.pg-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pg-thumb {
    width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden;
    border: 2px solid transparent; background: var(--cream-2); cursor: pointer;
    transition: border-color .2s var(--ease); padding: 0;
}
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg-thumb.is-active, .pg-thumb:hover { border-color: var(--green-600); }

.product-info .p-badge {
    display: inline-block; background: var(--lime-500); color: var(--green-900);
    font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.product-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 12px; }
.p-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .85rem; color: var(--muted); }
.p-rating-row .stars .star { width: 16px; height: 16px; }
.p-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.p-price-row .now { font-size: 2rem; font-weight: 700; color: var(--green-700); font-family: var(--font-display); }
.p-price-row del { font-size: 1.1rem; color: var(--muted-2); }
.p-price-row .off {
    background: var(--red); color: #fff; font-size: .72rem; font-weight: 700;
    padding: 4px 10px; border-radius: var(--radius-pill);
}
.p-short { color: var(--ink-soft); font-size: .98rem; margin-bottom: 24px; }

.p-points { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.p-point { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-soft); font-weight: 500; }
.p-point svg { width: 18px; height: 18px; color: var(--green-500); }

.p-purchase { display: flex; gap: 14px; align-items: stretch; margin-bottom: 16px; flex-wrap: wrap; }
.qty-input {
    display: inline-flex; align-items: center; border: 1.5px solid var(--line);
    border-radius: var(--radius-pill); overflow: hidden; background: #fff; height: 52px;
}
.qty-input button { width: 46px; height: 100%; display: grid; place-items: center; color: var(--ink-soft); }
.qty-input button:hover { background: var(--lime-100); color: var(--green-700); }
.qty-input button svg { width: 16px; height: 16px; }
.qty-input input {
    width: 52px; height: 100%; border: 0; text-align: center; font-weight: 700;
    background: transparent; -moz-appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.p-purchase .btn-primary { flex: 1; min-width: 190px; height: 52px; }

.p-meta-list { display: grid; gap: 8px; margin: 22px 0 0; font-size: .86rem; color: var(--muted); }
.p-meta-list .pm-row { display: flex; gap: 8px; }
.p-meta-list strong { color: var(--ink-soft); font-weight: 600; min-width: 92px; }

/* Trust strip */
.trust-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: var(--cream-2); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; margin: 44px 0 0;
}
.trust-item {
    padding: 26px 20px; text-align: center;
    border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-item .ti-icon {
    width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px;
    background: #fff; color: var(--green-600); display: grid; place-items: center;
    box-shadow: var(--shadow-xs);
}
.trust-item .ti-icon svg { width: 22px; height: 22px; }
.trust-item h4 { font-family: var(--font-body); font-size: .9rem; font-weight: 700; margin: 0 0 4px; }
.trust-item p { font-size: .78rem; color: var(--muted); margin: 0; }

/* Tabs */
.tabs { margin-top: 52px; }
.tab-nav {
    display: flex; gap: 4px; border-bottom: 1px solid var(--line);
    overflow-x: auto; scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 14px 22px; font-size: .89rem; font-weight: 600; color: var(--muted);
    border-bottom: 2.5px solid transparent; margin-bottom: -1px;
    white-space: nowrap; transition: all .2s var(--ease);
    display: inline-flex; align-items: center; gap: 8px;
}
.tab-btn svg { width: 16px; height: 16px; }
.tab-btn:hover { color: var(--green-600); }
.tab-btn.is-active { color: var(--green-700); border-bottom-color: var(--green-600); }
.tab-panel { display: none; padding: 32px 0; }
.tab-panel.is-active { display: block; animation: fadeUp .3s var(--ease); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table tr { border-bottom: 1px solid var(--line-2); }
.spec-table th {
    text-align: left; padding: 14px 0; width: 220px;
    font-weight: 600; color: var(--ink-soft); vertical-align: top;
}
.spec-table td { padding: 14px 0; color: var(--muted); }

.feature-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.feature-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.feature-checks svg { width: 18px; height: 18px; color: var(--green-500); flex: none; margin-top: 3px; }

/* Reviews */
.review-summary {
    display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 36px;
    padding: 26px; background: var(--cream-2); border-radius: var(--radius);
    border: 1px solid var(--line); margin-bottom: 30px;
}
.review-score { text-align: center; }
.review-score .rs-num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.review-score .stars { margin: 10px 0 6px; }
.review-score .stars .star { width: 18px; height: 18px; }
.review-score small { color: var(--muted); font-size: .82rem; }
.rating-bars { display: grid; gap: 8px; }
.rating-bar { display: grid; grid-template-columns: 52px minmax(0,1fr) 40px; gap: 12px; align-items: center; font-size: .82rem; color: var(--muted); }
.rating-bar .rb-track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rating-bar .rb-fill { height: 100%; background: var(--gold); border-radius: 4px; }

.review-list { display: grid; gap: 18px; }
.review-item { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); }
.review-item .ri-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex: none;
    background: var(--lime-100); color: var(--green-700);
    display: grid; place-items: center; font-weight: 700; font-size: 1rem;
}
.review-item h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin: 0 0 3px; }
.review-item .ri-date { font-size: .76rem; color: var(--muted-2); }
.review-item p { font-size: .92rem; color: var(--ink-soft); margin: 10px 0 0; }

.review-form { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 30px; }
.rating-input { display: flex; gap: 6px; margin-bottom: 16px; }
.rating-input label { cursor: pointer; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input .ri-star { width: 30px; height: 30px; color: var(--line); transition: color .15s var(--ease), transform .15s var(--ease); }
.rating-input label:hover .ri-star { transform: scale(1.12); }
.rating-input input:checked ~ .ri-star,
.rating-input label:hover .ri-star,
.rating-input label:hover ~ label .ri-star { color: var(--gold); }
.rating-input input:checked ~ .ri-star { color: var(--gold); }

/* More views gallery */
.more-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more-views a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--cream-2); display: block; }
.more-views img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.more-views a:hover img { transform: scale(1.06); }

/* ---------- 23. Shop filters ---------- */
.shop-layout { display: grid; grid-template-columns: 268px minmax(0,1fr); gap: 38px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 18px; }
.filter-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; }
.filter-card h4 {
    font-family: var(--font-body); font-size: .8rem; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase; color: var(--green-800);
    margin: 0 0 14px; padding-bottom: 11px; border-bottom: 1px solid var(--line-2);
}
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li { margin-bottom: 9px; }
.filter-list a { display: flex; justify-content: space-between; font-size: .89rem; color: var(--ink-soft); padding: 5px 0; }
.filter-list a:hover, .filter-list a.is-active { color: var(--green-600); font-weight: 600; }
.filter-list .count { color: var(--muted-2); font-size: .8rem; }

.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
    padding-bottom: 18px; border-bottom: 1px solid var(--line-2);
}
.shop-toolbar .st-count { font-size: .87rem; color: var(--muted); }
.shop-toolbar select {
    padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
    background: #fff; font-size: .86rem; cursor: pointer;
}
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input {
    width: 100%; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font-size: .86rem; background: var(--cream);
}
.price-inputs span { color: var(--muted-2); }

/* ---------- 24. Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
    font-size: .88rem; font-weight: 600; transition: all .2s var(--ease);
}
.pagination a:hover { border-color: var(--green-600); color: var(--green-700); }
.pagination .is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------- 25. Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 36px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
    text-align: left; padding: 0 0 14px; font-size: .76rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.cart-table tbody tr { border-bottom: 1px solid var(--line-2); }
.cart-table td { padding: 20px 0; vertical-align: middle; }
.cart-product { display: flex; gap: 16px; align-items: center; }
.cart-product .cp-img { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; flex: none; background: var(--cream-2); }
.cart-product .cp-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 0 0 4px; }
.cart-product small { color: var(--muted-2); font-size: .78rem; }
.cart-remove { color: var(--muted-2); display: inline-flex; }
.cart-remove:hover { color: var(--red); }
.cart-remove svg { width: 18px; height: 18px; }

.summary-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; position: sticky; top: calc(var(--header-h) + 18px);
}
.summary-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; font-size: .92rem; color: var(--ink-soft); }
.summary-row.total {
    border-top: 1.5px solid var(--line); margin-top: 10px; padding-top: 18px;
    font-size: 1.15rem; font-weight: 700; color: var(--green-800);
}
.summary-row.total span:last-child { font-family: var(--font-display); font-size: 1.4rem; }
.summary-note { font-size: .8rem; color: var(--muted-2); margin-top: 14px; }

.free-ship-bar { background: var(--lime-100); border-radius: var(--radius-sm); padding: 13px 16px; font-size: .83rem; color: var(--green-800); margin-bottom: 16px; }
.free-ship-bar .fsb-track { height: 6px; background: rgba(36,112,63,.15); border-radius: 3px; margin-top: 9px; overflow: hidden; }
.free-ship-bar .fsb-fill { height: 100%; background: var(--green-500); border-radius: 3px; transition: width .4s var(--ease); }

.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 40px; align-items: start; }

/* ---------- 26. Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; font-size: .93rem;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green-500);
    box-shadow: 0 0 0 3.5px rgba(143, 191, 74, .18);
}
.field .hint { font-size: .78rem; color: var(--muted-2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field .error { font-size: .78rem; color: var(--red); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: .87rem; color: var(--ink-soft); margin-bottom: 14px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-600); flex: none; }

.radio-card {
    display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    cursor: pointer; margin-bottom: 11px; transition: all .18s var(--ease); background: #fff;
}
.radio-card:hover { border-color: var(--lime-400); }
.radio-card input { margin-top: 4px; accent-color: var(--green-600); }
.radio-card.is-selected { border-color: var(--green-600); background: var(--lime-100); }
.radio-card .rc-body { flex: 1; }
.radio-card strong { display: block; font-size: .91rem; }
.radio-card small { color: var(--muted); font-size: .8rem; }
.radio-card .rc-price { font-weight: 700; color: var(--green-700); font-size: .93rem; }

/* ---------- 27. Alerts & flash ---------- */
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 15px 18px; border-radius: var(--radius-sm);
    font-size: .89rem; margin-bottom: 20px; border: 1px solid transparent;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.alert-success { background: #EAF6E4; border-color: #C9E5BA; color: #24603A; }
.alert-error { background: #FCEDEB; border-color: #F3CBC5; color: #A3291B; }
.alert-info { background: var(--lime-100); border-color: var(--lime-200); color: var(--green-800); }
.alert-warning { background: #FEF6E7; border-color: #F6E2B6; color: #8A6116; }

.flash-wrap { position: fixed; top: 88px; right: 22px; z-index: 300; width: min(380px, 90vw); }
.flash-wrap .alert { box-shadow: var(--shadow); background: #fff; animation: slideIn .3s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- 28. Empty state ---------- */
.empty-state { text-align: center; padding: 70px 24px; }
.empty-state .es-icon {
    width: 88px; height: 88px; border-radius: 50%; background: var(--lime-100);
    color: var(--green-500); display: grid; place-items: center; margin: 0 auto 22px;
}
.empty-state .es-icon svg { width: 40px; height: 40px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 26px; }

/* ---------- 29. Steps / tracking timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
    content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
    width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: -34px; top: 4px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #fff; border: 2.5px solid var(--line);
}
.timeline-item.is-done::before { border-color: var(--green-500); background: var(--green-500); }
.timeline-item.is-done::after {
    content: ""; position: absolute; left: -28px; top: 10px;
    width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}
.timeline-item h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin: 0 0 3px; }
.timeline-item p { font-size: .84rem; color: var(--muted); margin: 0; }

.order-status-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 13px; border-radius: var(--radius-pill);
    font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.status-pending { background: #FEF6E7; color: #8A6116; }
.status-processing { background: #E7F1FB; color: #1E5A8A; }
.status-shipped { background: var(--lime-100); color: var(--green-700); }
.status-delivered { background: #EAF6E4; color: #24603A; }
.status-cancelled { background: #FCEDEB; color: #A3291B; }

/* ---------- 30. Page content (CMS pages) ---------- */
.page-content { max-width: 820px; }
.page-content h2 { margin-top: 1.8em; }
.page-content h3 { margin-top: 1.5em; }
.page-content ul, .page-content ol { margin-bottom: 1.4em; }
.page-content li { margin-bottom: .5em; }

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
    padding: 20px 24px; font-weight: 600; font-size: .98rem; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    list-style: none; color: var(--green-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; width: 9px; height: 9px; flex: none;
    border-right: 2px solid var(--green-500); border-bottom: 2px solid var(--green-500);
    transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-2); }
.faq-item .faq-answer { padding: 20px 24px; color: var(--muted); font-size: .93rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px; text-align: center;
}
.contact-card .cc-icon {
    width: 52px; height: 52px; border-radius: 50%; background: var(--lime-100);
    color: var(--green-600); display: grid; place-items: center; margin: 0 auto 15px;
}
.contact-card .cc-icon svg { width: 24px; height: 24px; }
.contact-card h4 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; margin: 0 0 6px; }
.contact-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.contact-card a { color: var(--green-600); }

/* ---------- 31. Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.hidden { display: none !important; }

/* ---------- 32. Responsive ---------- */
@media (max-width: 1080px) {
    .layout-sidebar, .layout-sidebar-left { grid-template-columns: minmax(0,1fr) 290px; gap: 32px; }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
    .footer-grid .footer-col:nth-child(4) { grid-column: 2; }
    .footer-grid .footer-col:nth-child(5) { grid-column: 3; }
    .shop-layout { grid-template-columns: 240px minmax(0,1fr); gap: 28px; }
}

@media (max-width: 980px) {
    .main-nav { display: none; }
    .nav-toggle { display: grid; }
    .product-top { grid-template-columns: 1fr; gap: 32px; }
    .product-gallery { position: static; }
    .feature-split { grid-template-columns: 1fr; }
    .feature-split .fs-media { min-height: 300px; }
    .feature-split .fs-body { padding: 32px 28px; }
    .layout-sidebar, .layout-sidebar-left { grid-template-columns: minmax(0,1fr); }
    .sidebar { position: static; }
    .cart-layout, .checkout-layout { grid-template-columns: minmax(0,1fr); }
    .summary-card { position: static; }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: 0; }
    .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .review-summary { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .section { padding: 46px 0; }
    .hero { min-height: 440px; }
    .hero-inner { padding: 54px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .leaf-ornament { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid .footer-col:nth-child(4),
    .footer-grid .footer-col:nth-child(5) { grid-column: auto; }
    .footer-brand { grid-column: 1 / -1; }
    .shop-layout { grid-template-columns: minmax(0,1fr); }
    .filter-panel { position: static; }
    .step-item { grid-template-columns: 1fr; gap: 16px; }
    .more-views { grid-template-columns: repeat(2, 1fr); }
    .post-nav { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; }
    .fb-banner { flex-direction: column; text-align: center; padding: 30px 24px; }
    .fb-banner .fb-text { text-align: center; }
    .article-body { font-size: 1rem; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { padding: 18px 0; }
    .cart-table td { padding: 6px 0; border: 0; }
    .flash-wrap { top: auto; bottom: 20px; right: 12px; left: 12px; width: auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .trust-strip { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .trust-item:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .brand-name { font-size: 1.2rem; }
    .brand-tag { font-size: .56rem; letter-spacing: .16em; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn { padding: 12px 20px; font-size: .86rem; }
    .p-price-row .now { font-size: 1.6rem; }
    .pg-thumb { width: 66px; height: 66px; }
}

/* ---------- 34. Facebook embeds ---------- */
.fb-page-wrap {
    display: flex;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}
.fb-page-wrap .fb-page,
.fb-page-wrap .fb-page > span,
.fb-page-wrap .fb-page iframe[style] {
    width: 100% !important;
    max-width: 500px;
}
.fb-customerchat { z-index: 150; }

/* ---------- 35. Print ---------- */
@media print {
    .site-header, .site-footer, .announce, .share-row, .flash-wrap, .btn { display: none !important; }
    body { background: #fff; font-size: 12pt; }
    a { color: #000; text-decoration: underline; }
}

/* ---------- 36. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   LeafCraftPRO 2.0 — component upgrade
   Everything below extends the design system above with the
   components the Node build adds: article blocks, table of
   contents, reading progress, topic heroes and the premium
   polish layer.
   ============================================================ */

/* ---------- 37. Star ratings (SVG) ---------- */
.stars { display: inline-flex; align-items: center; gap: 1.5px; color: var(--gold); }
.stars svg { display: block; }
.stars svg.off { color: var(--line); }
.stars svg.on { color: var(--gold); }
.p-rating-row .stars svg { width: 17px; height: 17px; }
.review-score .stars svg { width: 19px; height: 19px; }

/* ---------- 38. Reading progress bar ---------- */
.reading-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--green-600), var(--lime-500));
    z-index: 400; transition: width .12s linear;
    box-shadow: 0 0 8px rgba(143, 191, 74, .5);
}

/* ---------- 39. Hero refinements ---------- */
.hero-trust {
    display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px;
    padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-trust span {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .82rem; color: rgba(255, 255, 255, .8); font-weight: 500;
}
.hero-trust svg { width: 17px; height: 17px; color: var(--lime-400); }
.hero-stats {
    display: grid; grid-template-columns: repeat(3, auto); gap: 34px;
    margin-top: 30px; justify-content: start;
}
.hero-stats .hs-num {
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
    color: var(--lime-400); line-height: 1;
}
.hero-stats .hs-label {
    font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
    color: rgba(255, 255, 255, .62); margin-top: 5px; display: block;
}

/* ---------- 40. Topic / collection hero ---------- */
.topic-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--green-900), var(--green-700) 70%, var(--green-600));
    color: #fff; padding: 58px 0 54px;
}
.topic-hero::after {
    content: ""; position: absolute; right: -110px; top: -110px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 191, 74, .22), transparent 68%);
}
.topic-hero .container { position: relative; z-index: 2; }
.topic-hero .th-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255, 255, 255, .12); color: var(--lime-400);
    display: grid; place-items: center; margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
}
.topic-hero h1 { color: #fff; margin: 6px 0 12px; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.topic-hero p { color: rgba(255, 255, 255, .8); max-width: 680px; margin: 0; }
.topic-hero .th-meta {
    display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px;
    font-size: .82rem; color: rgba(255, 255, 255, .68);
}
.topic-hero .th-meta span { display: inline-flex; align-items: center; gap: 7px; }
.topic-hero .th-meta svg { width: 15px; height: 15px; color: var(--lime-400); }

/* ---------- 41. Article lead ---------- */
.article-lead {
    font-size: 1.12rem; line-height: 1.78; color: var(--ink-soft);
    padding-left: 20px; border-left: 3px solid var(--lime-400);
    margin-bottom: 2em;
}
.article-lead p:last-child { margin-bottom: 0; }

/* ---------- 42. Block: paragraph ---------- */
.block-paragraph > p:last-child { margin-bottom: 0; }

/* ---------- 43. Block: figure ---------- */
.block-figure { margin: 2.2em 0; }
.block-figure img {
    width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    aspect-ratio: 3 / 2; object-fit: cover;
}
.block-figure figcaption {
    font-size: .82rem; color: var(--muted-2); text-align: center;
    margin-top: 11px; font-style: italic;
}

/* ---------- 44. Block: materials ---------- */
.block-materials {
    background: var(--cream-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px 28px; margin: 2.2em 0;
}
.block-materials .bm-title {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-size: .8rem; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase; color: var(--green-800);
    margin: 0 0 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line);
}
.block-materials .bm-title svg { width: 18px; height: 18px; color: var(--green-500); }
.block-materials .bm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.block-materials .bm-list li {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: .94rem; color: var(--ink-soft); margin: 0;
}
.block-materials .bm-list li::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--lime-500); flex: none; margin-top: 9px;
}

/* ---------- 45. Block: steps ---------- */
.block-steps { margin: 2.4em 0; }
.block-steps .bs-title { margin-bottom: 20px; }
.block-steps .bs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: none; }
.block-steps .bs-item {
    display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px;
    padding: 20px 22px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line-2);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    margin: 0;
}
.block-steps .bs-item:hover { border-color: var(--lime-200); box-shadow: var(--shadow-xs); }
.block-steps .bs-num {
    width: 46px; height: 46px; border-radius: 14px; flex: none;
    background: linear-gradient(145deg, var(--green-700), var(--green-500));
    color: #fff; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 1.12rem; font-weight: 700;
    box-shadow: 0 4px 12px rgba(28, 86, 56, .2);
}
.block-steps .bs-body h4 {
    font-family: var(--font-body); font-size: 1.02rem; font-weight: 700;
    margin: 0 0 6px; color: var(--green-800); line-height: 1.4;
}
.block-steps .bs-body p { margin: 0; font-size: .94rem; color: var(--muted); line-height: 1.7; }

/* ---------- 46. Block: tips ---------- */
.block-tips {
    background: linear-gradient(140deg, var(--lime-100), var(--cream-2));
    border: 1px solid var(--lime-200); border-radius: var(--radius);
    padding: 26px 28px; margin: 2.2em 0;
}
.block-tips .bt-title {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-size: .8rem; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase; color: var(--green-800);
    margin: 0 0 16px;
}
.block-tips .bt-title svg { width: 18px; height: 18px; color: var(--green-500); }
.block-tips .bt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.block-tips .bt-list li {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: .94rem; color: var(--ink-soft); margin: 0;
}
.block-tips .bt-list svg { width: 16px; height: 16px; color: var(--green-500); flex: none; margin-top: 4px; }

/* ---------- 47. Block: notice ---------- */
.block-notice {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 22px; border-radius: var(--radius);
    margin: 2em 0; border: 1px solid transparent; font-size: .94rem;
}
.block-notice svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.block-notice p { margin: 0; }
.notice-info { background: var(--lime-100); border-color: var(--lime-200); color: var(--green-800); }
.notice-info svg { color: var(--green-600); }
.notice-warning { background: #FEF6E7; border-color: #F6E2B6; color: #8A6116; }
.notice-warning svg { color: #B7791F; }
.notice-success { background: #EAF6E4; border-color: #C9E5BA; color: #24603A; }
.notice-success svg { color: #2E8B4C; }

/* ---------- 48. Block: quote ---------- */
.block-quote {
    margin: 2.4em 0; padding: 26px 30px 26px 62px;
    background: var(--cream-2); border-radius: var(--radius);
    position: relative; border-left: 4px solid var(--green-500);
}
.block-quote::before {
    content: "\201C"; position: absolute; left: 20px; top: 10px;
    font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
    color: var(--lime-400);
}
.block-quote p {
    font-family: var(--font-display); font-size: 1.14rem; font-style: italic;
    color: var(--green-800); margin: 0;
}
.block-quote cite {
    display: block; margin-top: 12px; font-size: .82rem; font-style: normal;
    font-weight: 600; color: var(--muted); letter-spacing: .04em;
}
.block-quote cite::before { content: "— "; }

/* ---------- 49. Block: table ---------- */
.block-table-wrap {
    overflow-x: auto; margin: 2.2em 0; border-radius: var(--radius);
    border: 1px solid var(--line); background: #fff;
    -webkit-overflow-scrolling: touch;
}
.block-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0; min-width: 480px; }
.block-table thead th {
    background: var(--cream-2); text-align: left; padding: 14px 18px;
    font-weight: 700; color: var(--green-800); font-size: .82rem;
    letter-spacing: .06em; text-transform: uppercase;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.block-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink-soft); vertical-align: top; }
.block-table tbody tr:last-child td { border-bottom: 0; }
.block-table tbody tr:hover { background: var(--cream); }

/* ---------- 50. Block: CTA ---------- */
.block-cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap; margin: 2.6em 0;
    padding: 32px 36px; border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--green-800), var(--green-600));
    color: #fff; position: relative; overflow: hidden;
}
.block-cta::after {
    content: ""; position: absolute; right: -60px; bottom: -70px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.block-cta .bc-text { position: relative; z-index: 1; flex: 1; min-width: 240px; }
.block-cta h3 { color: #fff; font-size: 1.4rem; margin: 0 0 6px; }
.block-cta p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .92rem; }
.block-cta .btn { position: relative; z-index: 1; }

/* ---------- 51. Table of contents ---------- */
.toc {
    background: var(--cream-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 28px; margin: 0 0 2.4em;
}
.toc h2 {
    font-family: var(--font-body); font-size: .78rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--green-800);
    margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 9px;
}
.toc h2 svg { width: 16px; height: 16px; color: var(--green-500); }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; display: grid; gap: 9px; }
.toc li { counter-increment: toc; margin: 0; }
.toc a {
    display: flex; gap: 11px; align-items: baseline;
    font-size: .9rem; color: var(--ink-soft); padding: 3px 0;
    transition: color .18s var(--ease);
}
.toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-display); font-size: .78rem; font-weight: 700;
    color: var(--lime-600); flex: none; min-width: 22px;
}
.toc a:hover { color: var(--green-600); }

/* ---------- 52. Quick answer box (featured snippet bait) ---------- */
.quick-answer {
    background: linear-gradient(140deg, var(--lime-100), #fff);
    border: 1px solid var(--lime-200); border-left: 4px solid var(--green-500);
    border-radius: var(--radius); padding: 24px 28px; margin: 0 0 2.2em;
}
.quick-answer h2 {
    font-family: var(--font-body); font-size: .78rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
    margin: 0 0 10px;
}
.quick-answer p { margin: 0; font-size: 1rem; color: var(--ink-soft); line-height: 1.72; }
.quick-answer p:last-child { margin-bottom: 0; }

/* ---------- 53. Author avatar (initials) ---------- */
.author-initials {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--green-600), var(--lime-500));
    color: #fff; font-family: var(--font-display); font-weight: 700;
    font-size: 1.5rem; letter-spacing: .02em;
}
/* A real portrait, where the author has one. The parent supplies the circle
   and the border, so this only has to fill it without distorting the face. */
.author-photo {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: center 22%;
}
.author-box .ab-avatar .author-photo,
.article-meta .am-author .am-avatar .author-photo {
    object-position: center 25%;
}
/* Founder card, used on the About page. */
.founder-card {
    display: grid; grid-template-columns: 220px 1fr; gap: 30px;
    align-items: center; margin: 40px 0;
    padding: 28px; border-radius: var(--radius-lg);
    background: var(--cream-2); border: 1px solid var(--line);
}
.founder-card .fc-portrait {
    width: 220px; height: 220px; border-radius: var(--radius-lg);
    overflow: hidden; background: var(--cream-3); flex: none;
    display: grid; place-items: center;
}
.founder-card .fc-portrait img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: center 20%;
}
.founder-card .fc-body h3 {
    font-family: var(--font-display); font-size: 1.5rem; margin: 4px 0 8px;
}
.founder-card .fc-body p { margin: 0 0 14px; color: var(--ink-soft); }
@media (max-width: 700px) {
    .founder-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .founder-card .fc-portrait { width: 160px; height: 160px; }
}
.author-box .ab-avatar,
.article-meta .am-author .am-avatar {
    width: 74px; height: 74px; border-radius: 50%; overflow: hidden;
    flex: none; background: var(--cream-3);
}
.article-meta .am-author .am-avatar { width: 34px; height: 34px; }
.article-meta .am-author .am-avatar .author-initials { font-size: .82rem; }

/* ---------- 54. Post meta chips ---------- */
.meta-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; }
.meta-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: var(--radius-pill);
    background: #fff; border: 1px solid var(--line);
    font-size: .78rem; font-weight: 600; color: var(--ink-soft);
}
.meta-chip svg { width: 14px; height: 14px; color: var(--green-500); }
.meta-chip.difficulty-beginner { background: #EAF6E4; border-color: #C9E5BA; color: #24603A; }
.meta-chip.difficulty-intermediate { background: #FEF6E7; border-color: #F6E2B6; color: #8A6116; }
.meta-chip.difficulty-advanced { background: #FCEDEB; border-color: #F3CBC5; color: #A3291B; }

/* ---------- 55. Tag pills ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: var(--radius-pill);
    background: #fff; border: 1px solid var(--line);
    font-size: .82rem; color: var(--ink-soft); font-weight: 500;
    transition: all .18s var(--ease);
}
.tag-pill:hover { border-color: var(--green-500); color: var(--green-700); background: var(--lime-100); }
.tag-pill .count { color: var(--muted-2); font-size: .74rem; }

/* ---------- 56. Search results ---------- */
.search-result {
    display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px;
    padding: 22px 0; border-bottom: 1px solid var(--line-2);
}
.search-result:last-child { border-bottom: 0; }
.search-result .sr-thumb {
    border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2;
    background: var(--cream-3);
}
.search-result .sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result h3 { font-size: 1.15rem; margin: 0 0 7px; }
.search-result h3 a { color: inherit; }
.search-result h3 a:hover { color: var(--green-600); }
.search-result p { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.search-result mark { background: var(--lime-200); color: var(--green-900); padding: 0 3px; border-radius: 3px; }
.search-result .sr-kind {
    display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--green-500); margin-bottom: 5px;
}

/* ---------- 57. Product grid toolbar extras ---------- */
.result-count { font-size: .87rem; color: var(--muted); }
.result-count strong { color: var(--green-700); }

/* ---------- 58. Premium polish ---------- */
.section-head h2 { letter-spacing: -.015em; }
.btn { font-weight: 600; }
.btn-primary { background: linear-gradient(145deg, var(--green-700), var(--green-600)); }
.btn-primary:hover { background: linear-gradient(145deg, var(--green-600), var(--green-500)); }

.post-card, .product-card { will-change: transform; }
.post-card .card-media::after,
.product-card .card-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(18, 51, 38, .12), transparent 46%);
    opacity: 0; transition: opacity .28s var(--ease); pointer-events: none;
}
.post-card:hover .card-media::after,
.product-card:hover .card-media::after { opacity: 1; }

.card-media img { background-size: cover; background-position: center; }

/* Card reveal on scroll — falls back to visible without JS */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 59. Feature strip / value props ---------- */
.value-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    margin: 0;
}
.value-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 22px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line-2);
}
.value-item .vi-icon {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    background: var(--lime-100); color: var(--green-600);
    display: grid; place-items: center;
}
.value-item .vi-icon svg { width: 21px; height: 21px; }
.value-item h4 { font-family: var(--font-body); font-size: .93rem; font-weight: 700; margin: 0 0 4px; }
.value-item p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- 60. Newsletter band (dark) ---------- */
.newsletter-band {
    background: linear-gradient(120deg, var(--green-900), var(--green-700));
    border-radius: var(--radius-lg); padding: 46px 48px; color: #fff;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
    position: relative; overflow: hidden;
}
.newsletter-band::after {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 191, 74, .2), transparent 70%);
}
.newsletter-band h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 10px; }
.newsletter-band p { color: rgba(255, 255, 255, .78); margin: 0; font-size: .94rem; }
.newsletter-band form { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-band input {
    flex: 1; min-width: 200px; padding: 15px 22px; border-radius: var(--radius-pill);
    border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1);
    color: #fff; font-size: .93rem;
}
.newsletter-band input::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter-band input:focus { outline: none; border-color: var(--lime-400); background: rgba(255, 255, 255, .16); }
.newsletter-band .btn-lime { flex: none; }

/* ---------- 61. Social follow grid ---------- */
.social-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.social-tile {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 22px 14px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line-2);
    color: var(--ink-soft); text-align: center;
    transition: all .22s var(--ease);
}
.social-tile svg { width: 24px; height: 24px; color: var(--green-600); transition: transform .22s var(--ease); }
.social-tile span { font-size: .82rem; font-weight: 600; }
.social-tile small { font-size: .72rem; color: var(--muted-2); }
.social-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--lime-200); }
.social-tile:hover svg { transform: scale(1.12); }
.social-tile.facebook:hover { border-color: #1877F2; }
.social-tile.facebook:hover svg { color: #1877F2; }
.social-tile.instagram:hover { border-color: #E1306C; }
.social-tile.instagram:hover svg { color: #E1306C; }
.social-tile.pinterest:hover { border-color: #E60023; }
.social-tile.pinterest:hover svg { color: #E60023; }
.social-tile.youtube:hover { border-color: #FF0000; }
.social-tile.youtube:hover svg { color: #FF0000; }
.social-tile.twitter:hover { border-color: #111; }
.social-tile.twitter:hover svg { color: #111; }

/* ---------- 62. Breadcrumb bar (light) ---------- */
.breadcrumb-bar {
    padding: 16px 0; border-bottom: 1px solid var(--line-2);
    background: var(--cream-2);
}

/* ---------- 63. FAQ page ---------- */
.faq-section { margin-bottom: 44px; }
.faq-section > h2 {
    font-size: 1.35rem; margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

/* ---------- 64. 404 ---------- */
.error-page { text-align: center; padding: 90px 20px; }
.error-page .ep-code {
    font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 700; line-height: 1; color: var(--lime-200); margin-bottom: 10px;
}
.error-page h1 { margin-bottom: 14px; }
.error-page p { color: var(--muted); max-width: 460px; margin: 0 auto 30px; }
.error-page .ep-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 65. Sitemap page ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.sitemap-col h2 {
    font-family: var(--font-body); font-size: .8rem; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase; color: var(--green-800);
    margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.sitemap-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.sitemap-col a { font-size: .88rem; color: var(--ink-soft); }
.sitemap-col a:hover { color: var(--green-600); }

/* ---------- 66. Back to top ---------- */
.to-top {
    position: fixed; right: 20px; bottom: 22px; z-index: 180;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--green-700); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 8px 22px rgba(28, 86, 56, .3);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease), visibility .25s;
}
.to-top svg { width: 20px; height: 20px; transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-600); }

/* ---------- 67. Brand mark ---------- */
/* The tile that holds the woven-leaf mark. Layered inset highlight +
   hairline ring + soft drop shadow reads as a physical enamel badge
   rather than a flat coloured square. */
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    background: linear-gradient(150deg, #33935A 0%, #1C5638 50%, #6BA83E 100%);
    display: grid; place-items: center; color: #fff;
    position: relative; overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .30),
        inset 0 -1px 0 rgba(0, 0, 0, .10),
        0 0 0 1px rgba(28, 86, 56, .10),
        0 5px 14px rgba(28, 86, 56, .26);
}
.brand-mark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 92% at 26% 12%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 62%);
}
.brand-mark svg { width: 24px; height: 24px; position: relative; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 13px; }

.brand-name { letter-spacing: -.025em; }

/* The footer sits on dark green, so the tile needs its own lift. */
.footer-brand .brand-mark {
    background: linear-gradient(150deg, #9ACB55 0%, #33935A 50%, #17432F 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .34),
        0 0 0 1px rgba(255, 255, 255, .10),
        0 6px 18px rgba(0, 0, 0, .28);
}

/* ---------- 68. Overflow guard ---------- */
/* The off-canvas menu sits at translateX(100%) while closed. A fixed
   element still contributes to the document's scrollable overflow, so
   without this the whole page can be swiped sideways on mobile even
   though the panel is invisible. Clipping at <html> stops it without
   creating a scroll container. */
html { overflow-x: clip; }

/* ---------- 69. Responsive additions ---------- */
@media (max-width: 1080px) {
    .value-strip { grid-template-columns: repeat(2, 1fr); }
    .newsletter-band { grid-template-columns: 1fr; gap: 26px; }
    .social-grid { grid-template-columns: repeat(3, 1fr); }
    .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .hero-stats { gap: 26px; }
    .search-result { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 760px) {
    .value-strip { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .sitemap-grid { grid-template-columns: 1fr; }
    .block-steps .bs-item { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 17px 18px; }
    .block-steps .bs-num { width: 38px; height: 38px; border-radius: 11px; font-size: .95rem; }
    .block-cta { padding: 26px 24px; }
    .block-cta .btn { width: 100%; }
    .search-result { grid-template-columns: 1fr; gap: 14px; }
    .search-result .sr-thumb { max-width: 100%; }
    .article-lead { padding-left: 15px; font-size: 1.04rem; }
    .block-quote { padding: 22px 22px 22px 48px; }
    .block-quote::before { font-size: 2.6rem; left: 14px; }
    .toc { padding: 20px 22px; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
    .hero-stats .hs-num { font-size: 1.5rem; }
    .hero-stats .hs-label { font-size: .62rem; letter-spacing: .08em; }
}

@media (max-width: 520px) {
    .block-steps .bs-item { grid-template-columns: 1fr; gap: 12px; }
    .block-steps .bs-num { width: 34px; height: 34px; }
    .meta-chips { gap: 7px; }
    .meta-chip { padding: 5px 11px; font-size: .74rem; }
    .block-cta h3 { font-size: 1.2rem; }

    /* Keep the header on one line: drop the social shortcut and
       tighten the icon buttons so the brand still has room. */
    .header-social { display: none; }
    .icon-btn { width: 38px; height: 38px; }
    .icon-btn svg { width: 19px; height: 19px; }
    .brand { gap: 9px; }
    .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
    .header-inner { gap: 10px; }
}

@media (max-width: 400px) {
    .brand-tag { display: none; }
    .header-actions { gap: 0; }
    .icon-btn { width: 36px; height: 36px; }
}
