/* Nutrisavoir plugin styles */

/* Sort dropdown on "À la une" badge (latest articles section) */
.ns-sort-wrap { position: relative; display: inline-block; margin-bottom: 8px; }
.ns-sort-wrap .ns-sort-toggle {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}
.ns-sort-wrap .ns-sort-toggle:focus-visible { outline: 2px solid var(--ns-green-800, #1f6b3a); outline-offset: 2px; }
.ns-sort-wrap .ns-sort-caret { display: inline-block; transition: transform .2s ease; flex-shrink: 0; vertical-align: middle; }
.ns-sort-wrap.is-open .ns-sort-caret { transform: rotate(180deg); }

.ns-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(20, 40, 25, .12), 0 2px 6px rgba(20, 40, 25, .06);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.ns-sort-menu[hidden] { display: none; }
.ns-sort-wrap.is-open .ns-sort-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.ns-sort-item {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #2a2a2a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}
.ns-sort-item:hover,
.ns-sort-item:focus-visible { background: var(--ns-green-100, #e8f3ec); color: var(--ns-green-800, #1f6b3a); outline: none; }
.ns-sort-item.is-active { background: var(--ns-green-100, #e8f3ec); color: var(--ns-green-800, #1f6b3a); font-weight: 700; }

/* ============================================================
   CATEGORIES — VARIANT "CENTERED"
   Design premium pour les cartes de catégories de la home
   (4 cartes max, icône ronde verte centrée, layout 2×2 mobile / 4 desktop)
   --> Embarqué dans le plugin pour fonctionner indépendamment du thème
   ============================================================ */
.section-categories .cat-grid--centered {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}
.section-categories .cat-grid--centered.cat-grid--n4 { grid-template-columns: repeat(4, 1fr); }
.section-categories .cat-grid--centered.cat-grid--n3 { grid-template-columns: repeat(3, 1fr); max-width: 780px; }
.section-categories .cat-grid--centered.cat-grid--n2 { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.section-categories .cat-grid--centered.cat-grid--n1 { grid-template-columns: 1fr; max-width: 320px; }

.section-categories .cat-grid--centered .cat-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 10px;
    padding: 26px 16px 22px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #ffffff 0%, #faf6ec 100%);
    border: 1.5px solid #e8e2d4;
    border-radius: 24px;
    color: #14201a;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
    position: relative;
    overflow: hidden;
}
.section-categories .cat-grid--centered .cat-card::before {
    content: '';
    position: absolute;
    inset: auto auto -1px 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 50%;
    height: 3px;
    left: auto !important;
    right: auto !important;
    background: linear-gradient(90deg, transparent 0%, #d4a437 50%, transparent 100%);
    transition: transform .4s ease;
}
.section-categories .cat-grid--centered .cat-card:hover {
    transform: translateY(-4px);
    border-color: #dcebd8;
    box-shadow: 0 14px 36px rgba(20,40,30,.10);
    background: linear-gradient(180deg, #ffffff 0%, #eaf3e6 100%);
}
.section-categories .cat-grid--centered .cat-card:hover::before {
    transform: translateX(-50%) scaleX(1);
}
.section-categories .cat-grid--centered .cat-icon {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #266741 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 20px rgba(38,103,65,.22);
    transition: transform .3s ease, background .3s ease;
    margin: 0 auto 4px !important;
    flex-shrink: 0;
}
.section-categories .cat-grid--centered .cat-icon svg {
    width: 26px !important;
    height: 26px !important;
}
.section-categories .cat-grid--centered .cat-card:hover .cat-icon {
    transform: scale(1.06) rotate(-3deg);
    background: #d4a437 !important;
    color: #1a1a1a !important;
}
.section-categories .cat-grid--centered .cat-name {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
    color: #0f3a26;
    font-variation-settings: "opsz" 32;
    letter-spacing: -0.005em;
    text-align: center;
}
.section-categories .cat-grid--centered .cat-desc {
    color: #6b6b6b;
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0;
    max-width: 220px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}
.section-categories .cat-grid--centered .cat-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    color: #266741;
    margin: 2px auto 0;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.section-categories .cat-grid--centered .cat-card:hover .cat-arrow {
    background: #d4a437;
    color: #1a1a1a;
    transform: translateX(2px);
}

/* Mobile : 2×2 compact */
@media (max-width: 768px) {
    .section-categories .cat-grid--centered,
    .section-categories .cat-grid--centered.cat-grid--n4,
    .section-categories .cat-grid--centered.cat-grid--n3,
    .section-categories .cat-grid--centered.cat-grid--n2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .section-categories .cat-grid--centered .cat-card {
        padding: 20px 12px 18px;
        gap: 7px;
        aspect-ratio: auto;
        min-height: 168px;
    }
    .section-categories .cat-grid--centered .cat-icon {
        width: 50px !important;
        height: 50px !important;
    }
    .section-categories .cat-grid--centered .cat-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
    .section-categories .cat-grid--centered .cat-name { font-size: 16px; }
    .section-categories .cat-grid--centered .cat-desc {
        font-size: 11.5px;
        line-height: 1.4;
        padding: 0 4px;
    }
    .section-categories .cat-grid--centered .cat-arrow { width: 24px; height: 24px; }
}

/* ============================================================
   CALCULATRICE DE DERNIÈRE HEURE CAFÉINE
   Design premium aux couleurs Nutrisavoir, mobile-first
   ============================================================ */
.ns-caffcalc {
    --cc-green-900: var(--ns-green-900, #0f3a26);
    --cc-green-800: var(--ns-green-800, #1d5236);
    --cc-green-700: var(--ns-green-700, #266741);
    --cc-green-100: var(--ns-green-100, #dcebd8);
    --cc-green-50:  var(--ns-green-50,  #eaf3e6);
    --cc-gold:      var(--ns-gold,      #d4a437);
    --cc-gold-dark: var(--ns-gold-dark, #b88923);
    --cc-cream:     var(--ns-cream-2,   #faf6ec);
    --cc-border:    var(--ns-border,    #e8e2d4);
    --cc-text:      var(--ns-text,      #1a1f1c);
    --cc-muted:     var(--ns-text-muted,#6b6b6b);
    --cc-radius:    var(--ns-radius,    16px);
    --cc-radius-lg: var(--ns-radius-lg, 24px);
    --cc-radius-pill: var(--ns-radius-pill, 999px);
    --cc-shadow:    var(--ns-shadow,    0 8px 28px rgba(20,40,30,.08));
    --cc-state:     var(--cc-green-700);

    max-width: 720px;
    margin: 28px auto;
    padding: 0 14px;
    color: var(--cc-text);
    font-family: var(--ns-font-sans, system-ui, sans-serif);
}
.ns-caffcalc.is-good { --cc-state: #2d8a4e; }
.ns-caffcalc.is-warn { --cc-state: var(--cc-gold-dark); }
.ns-caffcalc.is-bad  { --cc-state: #b04a3a; }

.ns-caffcalc__inner {
    background: linear-gradient(180deg, #ffffff 0%, var(--cc-cream) 100%);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-lg);
    padding: 28px 22px;
    box-shadow: var(--cc-shadow);
    position: relative;
    overflow: hidden;
}
.ns-caffcalc__inner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--cc-green-700) 0%, var(--cc-gold) 60%, var(--cc-green-700) 100%);
    opacity: .9;
}

.ns-caffcalc__head { text-align: center; margin-bottom: 22px; }
.ns-caffcalc__eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--cc-green-100); color: var(--cc-green-800);
    padding: 6px 14px; border-radius: var(--cc-radius-pill);
    font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ns-caffcalc__eyebrow svg { color: var(--cc-gold-dark); }
.ns-caffcalc__eyebrow--alt { background: #fff; border: 1px solid var(--cc-border); color: var(--cc-green-800); }

.ns-caffcalc__title {
    font-family: var(--ns-font-serif, Georgia, serif);
    font-size: clamp(24px, 5.5vw, 32px); font-weight: 600;
    color: var(--cc-green-900); margin: 14px 0 10px; line-height: 1.18;
    letter-spacing: -0.012em; font-variation-settings: "opsz" 144;
}
.ns-caffcalc__sub {
    color: var(--cc-muted); font-size: 14.5px; line-height: 1.55;
    max-width: 560px; margin: 0 auto;
}

/* ----- Form ----- */
.ns-caffcalc__form {
    display: flex; flex-direction: column; gap: 18px;
    margin: 22px 0 24px;
}
.ns-caffcalc__field { display: flex; flex-direction: column; gap: 10px; }
.ns-caffcalc__label {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 14.5px; color: var(--cc-green-900);
}
.ns-caffcalc__num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--cc-green-700); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; flex-shrink: 0;
    font-family: var(--ns-font-serif, serif); font-variation-settings: "opsz" 32;
}

.ns-caffcalc__time,
.ns-caffcalc__select,
.ns-caffcalc__qty {
    width: 100%; padding: 13px 16px;
    background: #fff; border: 1.5px solid var(--cc-border);
    border-radius: var(--cc-radius); font-size: 15.5px; color: var(--cc-text);
    font-family: inherit; font-weight: 500;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none; appearance: none;
}
.ns-caffcalc__time { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ns-caffcalc__time:focus,
.ns-caffcalc__select:focus,
.ns-caffcalc__qty:focus {
    outline: none; border-color: var(--cc-green-700);
    box-shadow: 0 0 0 4px rgba(45,110,78,.12);
}

.ns-caffcalc__select-wrap { position: relative; }
.ns-caffcalc__select { padding-right: 44px; cursor: pointer; }
.ns-caffcalc__caret {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: var(--cc-green-700); pointer-events: none;
}

/* Stepper */
.ns-caffcalc__stepper {
    display: grid; grid-template-columns: 56px 1fr 56px;
    background: #fff; border: 1.5px solid var(--cc-border);
    border-radius: var(--cc-radius); overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ns-caffcalc__stepper:focus-within {
    border-color: var(--cc-green-700);
    box-shadow: 0 0 0 4px rgba(45,110,78,.12);
}
.ns-caffcalc__step {
    border: 0; background: transparent; cursor: pointer;
    font-size: 22px; font-weight: 600; color: var(--cc-green-700);
    line-height: 1; transition: background .15s ease, color .15s ease;
    font-family: inherit;
}
.ns-caffcalc__step:hover { background: var(--cc-green-50); color: var(--cc-green-800); }
.ns-caffcalc__step:active { background: var(--cc-green-100); }
.ns-caffcalc__qty {
    border: 0; background: transparent; text-align: center;
    font-size: 18px; font-weight: 700; padding: 13px 0;
    box-shadow: none !important;
}
.ns-caffcalc__qty:focus { outline: none; }
.ns-caffcalc__qty::-webkit-outer-spin-button,
.ns-caffcalc__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ns-caffcalc__qty[type=number] { -moz-appearance: textfield; }

/* Sensibilité — 4 niveaux segmentés */
.ns-caffcalc__sens {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.ns-caffcalc__sens-item { position: relative; cursor: pointer; }
.ns-caffcalc__sens-item input {
    position: absolute; opacity: 0; pointer-events: none;
}
.ns-caffcalc__sens-card {
    display: flex; flex-direction: column; gap: 6px;
    background: #fff; border: 1.5px solid var(--cc-border);
    border-radius: var(--cc-radius); padding: 13px 14px;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
    min-height: 92px;
}
.ns-caffcalc__sens-item:hover .ns-caffcalc__sens-card {
    border-color: var(--cc-green-100); transform: translateY(-1px);
}
.ns-caffcalc__sens-item input:checked + .ns-caffcalc__sens-card {
    border-color: var(--cc-green-700);
    background: linear-gradient(180deg, #fff 0%, var(--cc-green-50) 100%);
    box-shadow: 0 0 0 3px rgba(45,110,78,.1);
}
.ns-caffcalc__sens-item input:focus-visible + .ns-caffcalc__sens-card {
    box-shadow: 0 0 0 3px rgba(45,110,78,.18);
}
.ns-caffcalc__sens-bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.ns-caffcalc__sens-bars i {
    width: 5px; height: 5px; background: var(--cc-border); border-radius: 1px; transition: background .2s ease, height .2s ease;
}
.ns-caffcalc__sens-bars i:nth-child(2) { height: 8px; }
.ns-caffcalc__sens-bars i:nth-child(3) { height: 11px; }
.ns-caffcalc__sens-bars i:nth-child(4) { height: 14px; }
.ns-caffcalc__sens-bars i.on { background: var(--cc-gold); }
.ns-caffcalc__sens-item input:checked + .ns-caffcalc__sens-card .ns-caffcalc__sens-bars i.on { background: var(--cc-green-700); }
.ns-caffcalc__sens-name {
    font-family: var(--ns-font-serif, serif); font-weight: 600; font-size: 15.5px;
    color: var(--cc-green-900); font-variation-settings: "opsz" 32; line-height: 1.2;
}
.ns-caffcalc__sens-desc { color: var(--cc-muted); font-size: 12.5px; line-height: 1.4; }

/* ----- Résultat ----- */
.ns-caffcalc__result {
    background: #fff; border: 1.5px solid var(--cc-border);
    border-radius: var(--cc-radius-lg); padding: 22px 20px;
    margin-top: 6px; position: relative;
    transition: border-color .3s ease;
}
.ns-caffcalc.is-good .ns-caffcalc__result { border-color: rgba(45,138,78,.35); }
.ns-caffcalc.is-warn .ns-caffcalc__result { border-color: rgba(184,137,35,.45); }
.ns-caffcalc.is-bad  .ns-caffcalc__result { border-color: rgba(176,74,58,.4); }

.ns-caffcalc__result-head {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-align: center; padding-bottom: 14px;
    border-bottom: 1px dashed var(--cc-border);
}
.ns-caffcalc__result-eyebrow {
    font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--cc-muted);
}
.ns-caffcalc__result-time {
    font-family: var(--ns-font-serif, serif);
    font-size: clamp(46px, 13vw, 68px); font-weight: 600;
    color: var(--cc-state); line-height: 1;
    font-variation-settings: "opsz" 144; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    transition: color .3s ease;
    margin-top: 4px;
}
.ns-caffcalc__advice {
    font-size: 14.5px; color: var(--cc-text); margin: 14px 0 0;
    text-align: center; line-height: 1.55; font-weight: 500;
}

/* Chart */
.ns-caffcalc__chart {
    margin: 18px 0 14px; background: var(--cc-cream);
    border-radius: var(--cc-radius); padding: 12px 14px 8px;
    border: 1px solid var(--cc-border);
}
.ns-caffcalc__chart svg { display: block; width: 100%; height: 110px; }
.ns-caffcalc__chart-legend {
    display: flex; justify-content: space-between; gap: 14px;
    font-size: 12px; color: var(--cc-muted); margin-top: 4px;
    padding: 0 4px;
}
.ns-caffcalc__chart-legend strong { color: var(--cc-text); font-weight: 700; margin-right: 4px; }

/* Meta */
.ns-caffcalc__meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--cc-border);
}
.ns-caffcalc__meta > div {
    display: flex; flex-direction: column; gap: 2px;
    text-align: center; padding: 4px 2px;
}
.ns-caffcalc__meta span { font-size: 11px; color: var(--cc-muted); text-transform: uppercase; letter-spacing: .06em; }
.ns-caffcalc__meta strong {
    font-family: var(--ns-font-serif, serif); font-size: 16px; font-weight: 600;
    color: var(--cc-green-900); font-variation-settings: "opsz" 32;
}

/* Actions */
.ns-caffcalc__actions {
    display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.ns-caffcalc__btn {
    flex: 1; min-width: 120px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 18px; border-radius: var(--cc-radius-pill);
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1.5px solid transparent; font-family: inherit;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
    line-height: 1;
}
.ns-caffcalc__btn--ghost {
    background: transparent; color: var(--cc-green-800);
    border-color: var(--cc-border);
}
.ns-caffcalc__btn--ghost:hover { background: var(--cc-green-50); border-color: var(--cc-green-100); color: var(--cc-green-900); }
.ns-caffcalc__btn--gold {
    background: var(--cc-gold); color: #1a1a1a;
    border-color: var(--cc-gold);
}
.ns-caffcalc__btn--gold:hover { background: var(--cc-gold-dark); color: #fff; transform: translateY(-1px); border-color: var(--cc-gold-dark); }

/* Disclaimer */
.ns-caffcalc__disclaimer {
    display: flex; align-items: flex-start; gap: 8px;
    background: rgba(255,255,255,.6);
    color: var(--cc-muted); font-size: 12.5px; line-height: 1.5;
    padding: 10px 14px; border-radius: 12px;
    margin: 18px 0 0;
}
.ns-caffcalc__disclaimer svg { flex-shrink: 0; margin-top: 2px; }

/* ----- FAQ ----- */
.ns-caffcalc-faq {
    max-width: 720px; margin: 32px auto 40px; padding: 0 14px;
    font-family: var(--ns-font-sans, system-ui, sans-serif);
}
.ns-caffcalc-faq__inner { padding: 8px 4px; }
.ns-caffcalc__h2 {
    font-family: var(--ns-font-serif, serif);
    font-size: clamp(22px, 4vw, 28px); font-weight: 600;
    color: var(--ns-green-900, #0f3a26); margin: 12px 0 18px;
    font-variation-settings: "opsz" 144;
}
.ns-caffcalc-faq__item {
    background: #fff; border: 1px solid var(--ns-border, #e8e2d4);
    border-radius: 16px; margin-bottom: 10px; overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ns-caffcalc-faq__item[open] { border-color: var(--ns-green-100, #dcebd8); box-shadow: 0 4px 14px rgba(20,40,30,.06); }
.ns-caffcalc-faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; cursor: pointer; list-style: none;
    font-family: var(--ns-font-serif, serif); font-weight: 600;
    font-size: 16px; color: var(--ns-green-900, #0f3a26);
    line-height: 1.35; font-variation-settings: "opsz" 32;
}
.ns-caffcalc-faq__item summary::-webkit-details-marker { display: none; }
.ns-caffcalc-faq__item summary svg {
    color: var(--ns-green-700, #266741); flex-shrink: 0;
    transition: transform .25s ease;
}
.ns-caffcalc-faq__item[open] summary svg { transform: rotate(180deg); }
.ns-caffcalc-faq__a {
    padding: 0 18px 16px; color: var(--ns-text, #1a1f1c);
    font-size: 14.5px; line-height: 1.65;
}
.ns-caffcalc-faq__a p:last-child { margin-bottom: 0; }

/* ----- CTA contextuelle (fin d'article) ----- */
.ns-caffcalc-cta {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
    background: linear-gradient(135deg, var(--ns-green-800, #1d5236) 0%, var(--ns-green-700, #266741) 100%);
    color: #fff; border-radius: 16px; padding: 18px 20px;
    margin: 32px 0; box-shadow: 0 10px 30px rgba(20,60,40,.16);
    position: relative; overflow: hidden;
}
.ns-caffcalc-cta::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,164,55,.25) 0%, transparent 70%);
    pointer-events: none;
}
.ns-caffcalc-cta__icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(212,164,55,.18); color: var(--ns-gold, #d4a437);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ns-caffcalc-cta__body { min-width: 0; }
.ns-caffcalc-cta__eyebrow {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ns-gold, #d4a437); margin-bottom: 4px;
}
.ns-caffcalc-cta__title {
    font-family: var(--ns-font-serif, serif); font-size: 17px; font-weight: 600;
    margin: 0 0 4px; color: #fff; line-height: 1.25;
    font-variation-settings: "opsz" 32;
}
.ns-caffcalc-cta__desc {
    font-size: 13.5px; color: rgba(255,255,255,.86);
    margin: 0; line-height: 1.5;
}
.ns-caffcalc-cta__btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--ns-gold, #d4a437); color: #1a1a1a;
    padding: 9px 18px; border-radius: 999px;
    font-size: 13.5px; font-weight: 700; text-decoration: none;
    flex-shrink: 0; transition: background .2s ease, transform .15s ease;
    white-space: nowrap;
}
.ns-caffcalc-cta__btn:hover { background: var(--ns-gold-dark, #b88923); color: #fff; transform: translateX(2px); }

/* Footer promo */
.ns-caffcalc-footer-promo {
    background: var(--ns-cream-2, #faf6ec);
    border-top: 1px solid var(--ns-border, #e8e2d4);
    padding: 16px 0;
}
.ns-caffcalc-footer-promo__link {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--ns-text, #1a1f1c);
    transition: color .2s ease;
}
.ns-caffcalc-footer-promo__link:hover { color: var(--ns-green-700, #266741); }
.ns-caffcalc-footer-promo__icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: #fff; border: 1px solid var(--ns-border, #e8e2d4);
    color: var(--ns-green-700, #266741);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ns-caffcalc-footer-promo__text {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px;
    font-size: 13.5px; line-height: 1.4;
}
.ns-caffcalc-footer-promo__text strong {
    font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ns-gold-dark, #b88923);
}
.ns-caffcalc-footer-promo__cta {
    font-size: 13.5px; font-weight: 600;
    color: var(--ns-green-700, #266741); white-space: nowrap; flex-shrink: 0;
}

/* ----- Compact mode (insertion) ----- */
.ns-caffcalc--compact .ns-caffcalc__inner { padding: 22px 18px; }
.ns-caffcalc--compact .ns-caffcalc__title { font-size: 22px; }
.ns-caffcalc--compact .ns-caffcalc__sub { display: none; }

/* ============================================================
   RESPONSIVE — TABLET / DESKTOP
   ============================================================ */
@media (min-width: 600px) {
    .ns-caffcalc { padding: 0 22px; margin: 36px auto; }
    .ns-caffcalc__inner { padding: 36px 32px; }
    .ns-caffcalc__sens { grid-template-columns: repeat(4, 1fr); }
    .ns-caffcalc__meta { gap: 14px; }
    .ns-caffcalc__result { padding: 26px 24px; }
    .ns-caffcalc__chart svg { height: 130px; }
    .ns-caffcalc-faq { padding: 0 22px; }
    .ns-caffcalc-cta { padding: 22px 24px; }
}

@media (max-width: 460px) {
    .ns-caffcalc-cta { grid-template-columns: 1fr; text-align: left; gap: 12px; padding: 16px; }
    .ns-caffcalc-cta__btn { justify-self: start; }
    .ns-caffcalc-footer-promo__link { flex-wrap: wrap; }
    .ns-caffcalc-footer-promo__cta { width: 100%; padding-left: 50px; }
    .ns-caffcalc__meta { grid-template-columns: 1fr 1fr; }
    .ns-caffcalc__meta > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px dashed var(--cc-border); padding-top: 8px; }
    .ns-caffcalc__inner { padding: 22px 16px; }
}

