/* ================================================================
   style.css — FitMotif
   Global styles: tokens, reset, header, footer, calculator page
================================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
    --fm-dark:      #111827;
    --fm-mid:       #374151;
    --fm-subtle:    #6B7280;
    --fm-border:    #E5E7EB;
    --fm-bg:        #FFFFFF;
    --fm-bg-soft:   #F9FAFB;
    --fm-green:     #39D353;
    --fm-blue:      #1E3A5F;
    --fm-accent:    #39D353;
    --fm-accent-dk: #22a83e;
    --fm-radius:    12px;
    --fm-radius-lg: 20px;
    --fm-shadow:    0 4px 24px rgba(0,0,0,.08);
    --fm-shadow-lg: 0 16px 48px rgba(0,0,0,.14);
    --header-h:     72px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    color: var(--fm-dark);
    background: var(--fm-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ================================================================
   HEADER
================================================================ */
.fm-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    align-items: center;
	background: #1A2E46;
	color: rgba(255,255,255,.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fm-border);
    transition: box-shadow .3s;
}
.fm-header.scrolled { box-shadow: var(--fm-shadow); }
.fm-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.fm-logo img { height: 40px; width: auto; }
.fm-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.fm-nav a {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    letter-spacing: .02em;
}
.fm-nav a:hover  { color: var(--fm-dark); background: var(--fm-bg-soft); }
.fm-nav a.active { color: var(--fm-accent-dk); font-weight: 600; }
.fm-nav__cta {
    background: var(--fm-green) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 8px !important;
}
.fm-nav__cta:hover { background: var(--fm-accent-dk) !important; }

.fm-nav__cta_hollow {
    color: #fff !important;
    padding: 7px 18px !important;
	color: rgba(255,255,255,.6);
	border: 2px solid white;
	border-color: #B8C9DD; 
    border-radius: 8px !important;
}
.fm-nav__cta_hollow:hover { 
	background: #1A2E46 !important; 
	border-color: var(--fm-accent-dk) !important; 
}

/* hamburger */
.fm-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
}
.fm-hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: .3s;
}

@media (max-width: 768px) {
    .fm-hamburger { display: flex; }
    .fm-nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        flex-direction: column;
        background: #1A2E46;
		color: #FFF;
        border-bottom: 1px solid var(--fm-border);
        padding: 16px 24px 24px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        box-shadow: var(--fm-shadow-lg);
    }
    .fm-nav.open { transform: translateY(0); }
    .fm-nav a { width: 100%; display: block; color: #FFF; }

}

/* ================================================================
   PAGE BODY
================================================================ */
.page-body { padding-top: var(--header-h); }

/* ================================================================
   HERO
================================================================ */
.hero {
    position: relative;
    height: min(460px, 65vw);
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero_training.jpg');
	background-position: center 35%;
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.hero:hover .hero__bg { transform: scale(1); }
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(17,24,39,.18) 0%,
        rgba(17,24,39,.52) 52%,
        rgba(17,24,39,.82) 100%
    );
}
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 32px 16px;
}
.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fm-green);
    margin-bottom: 10px;
}
.hero__label::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--fm-green);
    border-radius: 2px;
}
.hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.05;
    color: #1A2E46;
    text-transform: uppercase;
    letter-spacing: -.01em;
}
.hero__title em { font-style: normal; color: var(--fm-green); }
.hero__sub {
    margin-top: 10px;
    font-size: .95rem;
    color: rgba(0,0,0,.75);
    max-width: 460px;
    font-weight: 300;
    line-height: 1.65;
}


/* ================================================================
   INFO / CONTENT SECTION
================================================================ */
.info-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 88px;
}

/* section divider */
.info-divider {
    height: 3px;
    background: linear-gradient(to right, var(--fm-green), transparent);
    border-radius: 100px;
    margin-bottom: 48px;
    max-width: 120px;
}

.info-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 6px;
    color: var(--fm-dark);
}
.info-section .section-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--fm-mid);
    margin-bottom: 40px;
    max-width: 780px;
}

/* content blocks: two-column prose + visual */
.info-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px 56px;
    margin-bottom: 48px;
}
.info-grid > .info-block { flex: 1 1 300px; min-width: 0; }
.info-grid--wide { flex-direction: column; }
.info-grid--wide > .info-block { flex: 1 1 100%; }

.info-block {}
.info-block h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fm-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-block h3 .h3-icon {
    width: 28px; height: 28px;
    background: var(--fm-green);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-block h3 .h3-icon svg {
    width: 15px; height: 15px;
    stroke: #fff; fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.info-block p {
    font-size: .93rem;
    line-height: 1.82;
    color: var(--fm-mid);
    margin-bottom: 10px;
}
.info-block ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
}
.info-block ul li {
    font-size: .9rem;
    line-height: 1.65;
    color: var(--fm-mid);
    display: flex;
    gap: 9px;
    align-items: flex-start;
}
.info-block ul li::before {
    content: '';
    min-width: 6px; height: 6px;
    background: var(--fm-green);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* formula box */
.formula-box {
    background: var(--fm-dark);
    color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 12px 0 16px;
    font-family: 'Barlow Condensed', sans-serif;
}
.formula-box__label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fm-green);
    margin-bottom: 6px;
}
.formula-box__eq {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
}
.formula-box__example {
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    margin-top: 6px;
}

/* BMI classification table */
.bmi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem;
    margin: 16px 0 24px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--fm-border);
    box-shadow: var(--fm-shadow);
}
.bmi-table thead th {
    background: var(--fm-dark);
    color: #fff;
    padding: 12px 18px;
    text-align: left;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.bmi-table tbody td {
    padding: 11px 18px;
    border-top: 1px solid var(--fm-border);
    color: var(--fm-mid);
    vertical-align: middle;
}
.bmi-table tbody tr:nth-child(even) td { background: var(--fm-bg-soft); }
.bmi-table tbody td:first-child { font-weight: 600; color: var(--fm-dark); }
.bmi-table .dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* tip cards */
.tip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0 32px;
}
.tip-card {
    background: var(--fm-bg-soft);
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    padding: 20px 20px 18px;
}
.tip-card__emoji { font-size: 1.6rem; margin-bottom: 10px; }
.tip-card__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fm-dark);
    margin-bottom: 6px;
}
.tip-card__text {
    font-size: .84rem;
    line-height: 1.65;
    color: var(--fm-subtle);
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 32px; }
.faq-item {
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: .93rem;
    color: var(--fm-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--fm-bg-soft); }
.faq-item summary .faq-icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
    color: var(--fm-subtle);
    transition: transform .25s;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); color: var(--fm-green); }
.faq-item[open] summary { background: var(--fm-bg-soft); }
.faq-body {
    padding: 0 20px 16px;
    font-size: .9rem;
    line-height: 1.75;
    color: var(--fm-mid);
    border-top: 1px solid var(--fm-border);
    padding-top: 14px;
}

/* disclaimer */
.disclaimer {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-left: 4px solid #F97316;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: .84rem;
    color: #7C2D12;
    line-height: 1.75;
    margin-top: 16px;
}

/* ================================================================
   FOOTER
================================================================ */
.fm-footer {
    background: #1A2E46;
    color: rgba(255,255,255,.75);
    margin-top: 0;
}
.fm-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 32px 0;
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}
.fm-footer__brand { flex: 0 0 240px; }
.fm-footer__tagline {
    font-size: .9rem;
    margin-top: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
}
.fm-footer__socials { display: flex; gap: 10px; margin-top: 24px; }
.fm-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    transition: background .2s, color .2s;
}
.fm-footer__social:hover { background: var(--fm-green); color: #fff; }
.fm-footer__links {
    flex: 1;
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.fm-footer__col { min-width: 120px; }
.fm-footer__heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fm-green);
    margin-bottom: 16px;
}
.fm-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fm-footer__col a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color .2s; }
.fm-footer__col a:hover { color: #fff; }
.fm-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; }
.fm-footer__bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.fm-footer__copy { font-size: .78rem; color: rgba(255,255,255,.35); }
.fm-footer__bottom-links { display: flex; gap: 20px; }
.fm-footer__bottom-links a { font-size: .78rem; color: rgba(255,255,255,.4); transition: color .2s; }
.fm-footer__bottom-links a:hover { color: rgba(255,255,255,.8); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 960px) {
    .info-grid { flex-direction: column; gap: 32px; }
    .info-grid > .info-block { flex: 1 1 100%; }
}
@media (max-width: 900px) {
    .calc-section {
        flex-direction: column;
        padding: 24px 20px 48px;
        gap: 24px;
    }
    .calc-section > .calc-left,
    .calc-section > .result-panel { flex: 1 1 100%; }
    .result-panel { position: static; }
    .info-section { padding: 0 20px 64px; }
    .fm-footer__inner { padding: 48px 20px 0; gap: 40px; }
    .fm-footer__bottom-inner { padding: 24px 20px; }
}
@media (max-width: 640px) {
    .hero__content { padding: 0 20px 28px; }
    .fm-footer__brand { flex: 0 0 100%; }
    .tip-cards { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .bio-row { grid-template-columns: 1fr; }
    .bmi-value { font-size: 3.8rem; }
}

/* ================================================================
   ADDITIONS: chart, tooltip, flag tab, label note, mobile polish
================================================================ */

/* ── calc layout: left column wrapper ── */
.calc-left { display: flex; flex-direction: column; gap: 0; }

/* ── US flag in tab ── */
.tab-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}
.unit-tab { display: flex; align-items: center; justify-content: center; }

/* ── label note ── */
.label-note {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: .72rem;
    color: var(--fm-subtle);
}

/* ── tooltip button ── */
.tooltip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fm-subtle);
    padding: 2px;
    margin-left: 4px;
    vertical-align: middle;
    border-radius: 50%;
    transition: color .2s, background .2s;
}
.tooltip-btn:hover, .tooltip-btn:focus {
    color: var(--fm-green);
    background: rgba(57,211,83,.1);
    outline: none;
}

/* ── tooltip bubble ── */
.fm-tooltip {
    position: absolute;
    z-index: 9999;
    max-width: 260px;
    background: var(--fm-dark);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: .8rem;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: var(--fm-shadow-lg);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s;
}
.fm-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.fm-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--fm-dark);
}

/* ── chart card ── */
.chart-card {}
.chart-subtitle {
    font-size: .8rem;
    color: var(--fm-subtle);
    margin-bottom: 12px;
    line-height: 1.5;
}
#bmi-chart {
    width: 100% !important;
    height: 220px !important;
    display: block;
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
}
.chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .73rem;
    font-weight: 600;
    color: var(--fm-mid);
    letter-spacing: .02em;
}
.chart-legend__item::before {
    content: '';
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 3px;
    background: var(--c);
    flex-shrink: 0;
}

/* ================================================================
   MOBILE POLISH — everything readable at 360px, no zoom needed
================================================================ */
@media (max-width: 480px) {
    /* header */
    .fm-header__inner { padding: 0 16px; }
    .fm-logo img { height: 32px; }

    /* hero */
    .hero { height: min(320px, 80vw); min-height: 240px; }
    .hero__content { padding: 0 16px 24px; }
    .hero__title { font-size: clamp(1.9rem, 10vw, 2.6rem); }
    .hero__sub   { font-size: .85rem; }

    /* calc section */
    .calc-section { padding: 20px 12px 40px; gap: 16px; }

    /* how-to strip */
    .how-to-strip { padding: 12px 14px; }
    .how-to-strip__steps li { font-size: .8rem; }

    /* card */
    .fm-card__head { padding: 16px 16px 14px; gap: 10px; }
    .fm-card__icon { width: 36px; height: 36px; }
    .fm-card__icon svg { width: 18px; height: 18px; }
    .fm-card__title { font-size: 1rem; }
    .fm-card__body  { padding: 16px; }

    /* tabs */
    .unit-tab { font-size: .8rem; padding: 8px 4px; }
    .tab-flag { width: 16px; height: 11px; margin-right: 3px; }

    /* bio row: stack on very small screens */
    .bio-row { grid-template-columns: 1fr; gap: 12px; }

    /* inputs */
    .input-wrap input[type="number"] { height: 44px; font-size: .95rem; }
    .select-wrap select { height: 44px; font-size: .95rem; }
    .field-label { font-size: .72rem; }

    /* button */
    .btn-calc { height: 48px; font-size: 1rem; }
    .field-hint { font-size: .73rem; }

    /* result panel */
    .bmi-value  { font-size: 3.2rem; }
    .bmi-unit   { font-size: .9rem; }
    .stats-grid { gap: 8px; }
    .stat-cell  { padding: 10px 12px; }
    .stat-cell__value { font-size: 1.05rem; }
    .stat-cell__desc  { font-size: .65rem; }
    .healthy-range { padding: 12px 14px; gap: 10px; }

    /* chart */
    #bmi-chart { height: 180px !important; }
    .chart-legend { gap: 6px 10px; }
    .chart-legend__item { font-size: .67rem; }

    /* info section */
    .info-section { padding: 0 12px 56px; }
    .info-section h2 { font-size: 1.4rem; }
    .info-block h3   { font-size: 1rem; }
    .info-block p, .info-block ul li { font-size: .85rem; }
    .formula-box { padding: 14px 16px; }
    .formula-box__eq { font-size: .95rem; }

    .tip-cards { grid-template-columns: 1fr; }
    .tip-card { padding: 16px; }

    /* faq */
    .faq-item summary { font-size: .85rem; padding: 14px 16px; }
    .faq-body { font-size: .83rem; }

    /* footer */
    .fm-footer__inner { padding: 36px 16px 0; gap: 28px; flex-direction: column; }
    .fm-footer__links { gap: 24px; }
    .fm-footer__col { min-width: 0; flex: 1 1 40%; }
    .fm-footer__bottom-inner { padding: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .fm-footer__copy { font-size: .72rem; }
}

/* mid-range: 481–768 still single-column but comfortable */
@media (min-width: 481px) and (max-width: 768px) {
    .calc-section { padding: 28px 20px 48px; gap: 20px; }
    .fm-card__body { padding: 20px; }
    .hero__content { padding: 0 24px 32px; }
    .info-section { padding: 0 20px 64px; }
}

/* ================================================================
   PAGE LAYOUT — columns, main, sidebars
================================================================ */

/* three-column layout: sidebar-left | page-main | sidebar-right */
.page-columns {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    align-items: start;
}
.page-main {
    min-width: 0; /* prevent grid blowout */
    padding: 0 16px;
}

/* ── LEFT SIDEBAR ── */
.sidebar-left {
    padding: 0 0 20px;
	top: calc(var(--header-h) + 16px);
}

/* ── RIGHT SIDEBAR ── */
.sidebar-right {
    padding: 0 0 20px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

/* ── SIDEBAR WIDGET BASE (slw = sidebar-left-widget) ── */
.slw {
    background: #fff;
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow);
    overflow: hidden;
    margin-bottom: 16px;
}
.slw__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: var(--fm-bg-soft);
    border-bottom: 1px solid var(--fm-border);
    cursor: default;
}
/* TOC head retains pointer since it toggles open/close */
.slw--toc .slw__head {
    cursor: pointer;
    user-select: none;
}
.slw__icon {
    width: 28px; height: 28px;
    background: var(--fm-green);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.slw__icon svg { width: 14px; height: 14px; stroke: #fff; fill: none; }
.slw__icon--amber { background: #F59E0B; }
.slw__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--fm-dark);
}

/* ── Calc quick-nav links ── */
.slw__calc-links {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.slw-calc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--fm-mid);
    transition: background .15s, color .15s;
    text-decoration: none;
}
.slw-calc-link:hover { background: var(--fm-bg-soft); color: var(--fm-dark); }
.slw-calc-link__icon { font-size: 1rem; flex-shrink: 0; }
.slw-calc-link--all {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--fm-accent-dk);
    text-align: center;
    border-top: 1px solid var(--fm-border);
}
.slw-calc-link--all:hover { background: var(--fm-bg-soft); }

/* ── Did You Know tip ── */
.slw__body { padding: 14px 16px; }
.slw__tip-text { font-size: .83rem; line-height: 1.65; color: var(--fm-mid); }

/* ── TOC ── */
.slw--toc .slw__toc { padding: 10px 12px; display: none; }
.slw--toc.toc-open .slw__toc { display: block; }
.slw__toc-loading { font-size: .82rem; color: var(--fm-subtle); }
.toc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-item--h3 { padding-left: 14px; }
.toc-link {
    display: block;
    padding: 6px 8px;
    font-size: .82rem;
    color: var(--fm-mid);
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s, color .15s;
    line-height: 1.4;
}
.toc-link:hover { background: var(--fm-bg-soft); color: var(--fm-dark); }
.toc-link--active { background: #F0FDF4; color: var(--fm-accent-dk); font-weight: 600; }

/* ── RIGHT SIDEBAR WIDGET (srw) ── */
.srw {
    background: #fff;
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow);
    overflow: hidden;
    margin-bottom: 16px;
}
.srw__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: var(--fm-bg-soft);
    border-bottom: 1px solid var(--fm-border);
}
.srw__icon {
    width: 28px; height: 28px;
    background: var(--fm-green);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.srw__icon svg { width: 14px; height: 14px; stroke: #fff; fill: none; }
.srw__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--fm-dark);
}
.srw__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.srw__desc { font-size: .82rem; color: var(--fm-mid); line-height: 1.6; }
.srw__guest-msg { font-size: .82rem; color: var(--fm-mid); line-height: 1.6; }
.srw__guest-msg a { color: var(--fm-accent-dk); font-weight: 600; }
.srw__link { font-size: .8rem; color: var(--fm-accent-dk); font-weight: 600; text-decoration: none; }
.srw__link:hover { text-decoration: underline; }
.srw__divider { border: none; border-top: 1px solid var(--fm-border); margin: 2px 0; }

/* save button */
.srw-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 10px 14px;
    background: var(--fm-green); color: #fff;
    border: none; border-radius: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .95rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.srw-btn:hover { background: var(--fm-accent-dk); transform: translateY(-1px); }
.srw-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.srw-btn--save svg { stroke: #fff; fill: none; }
.srw-btn--article { background: var(--fm-bg-soft); color: var(--fm-mid); border: 1px solid var(--fm-border); }
.srw-btn--article:hover { background: #F0FDF4; color: var(--fm-accent-dk); border-color: var(--fm-green); }
.srw-btn--saved { background: #DCFCE7; color: var(--fm-accent-dk); border: 1px solid #BBF7D0; }

/* status message */
.srw-status { font-size: .78rem; line-height: 1.5; padding: 6px 10px; border-radius: 6px; }
.srw-status--ok  { background: #F0FDF4; color: #166534; }
.srw-status--err { background: #FEF2F2; color: #991B1B; }

/* share buttons */
.srw-share-btns { display: flex; flex-direction: column; gap: 8px; }
.srw-share {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 8px;
    font-size: .82rem; font-weight: 600;
    text-decoration: none; transition: opacity .2s;
}
.srw-share:hover { opacity: .85; }
.srw-share--fb { background: #1877F2; color: #fff; }
.srw-share--tw { background: #000; color: #fff; }

/* ================================================================
   RESPONSIVE — sidebar layout
================================================================ */
@media (max-width: 1100px) {
    .page-columns { grid-template-columns: 220px 1fr 220px; }
}
@media (max-width: 900px) {
    .page-columns {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }
    .sidebar-left, .sidebar-right {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 8px 0 0;
    }
    .sidebar-left  { order: 2; }
    .page-main     { order: 1; padding: 0; }
    .sidebar-right { order: 3; }
}


/* ================================================================
   sidebar_r_additions.css — FitMotif
   Append these rules to your existing style.css file.
   Covers: .srw--newsletter and .srw--follow widgets.
================================================================ */

/* ── NEWSLETTER widget ────────────────────────────────────────── */
.srw--newsletter .srw__head { background: linear-gradient(135deg, #1A2E46 0%, #0f1f30 100%); }
.srw--newsletter .srw__head .srw__icon svg { stroke: var(--fm-green); }
.srw--newsletter .srw__head .srw__title    { color: #fff; }

.srw-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Honeypot — visually hidden but NOT display:none / type:hidden so bots see it */
.srw-newsletter-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tabindex: -1;
}

.srw-newsletter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.srw-newsletter-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--fm-subtle);
}

.srw-newsletter-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--fm-border);
    border-radius: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: .88rem;
    color: var(--fm-dark);
    background: var(--fm-bg);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none;
}
.srw-newsletter-input::placeholder { color: #9CA3AF; }
.srw-newsletter-input:focus {
    border-color: var(--fm-green);
    box-shadow: 0 0 0 3px rgba(57, 211, 83, .15);
}
.srw-newsletter-input:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

/* Newsletter-specific submit button */
.srw-btn--newsletter {
    background: var(--fm-green);
    color: #fff;
}
.srw-btn--newsletter:hover:not(:disabled) {
    background: var(--fm-accent-dk);
    transform: translateY(-1px);
}
.srw-btn--newsletter svg { stroke: #fff; }

/* Privacy note under form */
.srw-newsletter-privacy {
    font-size: .7rem;
    color: var(--fm-subtle);
    line-height: 1.5;
    text-align: center;
}
.srw-newsletter-privacy a {
    color: var(--fm-green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.srw-newsletter-privacy a:hover { color: var(--fm-accent-dk); }

/* Success state — replaces the form on successful subscribe */
.srw-newsletter-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0 4px;
    text-align: center;
}
.srw-newsletter-success__icon {
    font-size: 2rem;
    line-height: 1;
}
.srw-newsletter-success__msg {
    font-size: .85rem;
    color: var(--fm-mid);
    line-height: 1.6;
}
.srw-newsletter-success__msg strong { color: var(--fm-accent-dk); }


/* ── FOLLOW US widget ─────────────────────────────────────────── */
.srw--follow .srw__head { background: linear-gradient(135deg, #1A2E46 0%, #0f1f30 100%); }
.srw--follow .srw__head .srw__icon svg { stroke: var(--fm-green); }
.srw--follow .srw__head .srw__title    { color: #fff; }

/* 2-column grid of social buttons */
.srw-follow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.srw-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
    overflow: hidden;
}
.srw-follow-btn:hover {
    opacity: .88;
    transform: translateY(-2px);
    color: #fff;
}
.srw-follow-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.srw-follow-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Per-network brand colours */
.srw-follow-btn--instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}
.srw-follow-btn--facebook  { background: #1877F2; }
.srw-follow-btn--pinterest { background: #E60023; }
.srw-follow-btn--tiktok    { background: #010101; }
.srw-follow-btn--twitter   { background: #000; }
.srw-follow-btn--youtube   { background: #FF0000; }

/* YouTube uses a stroked icon — make it white */
.srw-follow-btn--youtube svg { stroke: #fff; fill: none; }
/* Instagram icon is also stroked */
.srw-follow-btn--instagram svg { stroke: #fff; fill: none; }


/* ── Responsive adjustments ───────────────────────────────────── */
@media (max-width: 900px) {
    /* On mobile the sidebar stacks below main content.
       Allow the follow grid to use more columns when there's space. */
    .srw-follow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .srw-follow-grid {
        grid-template-columns: 1fr 1fr;
    }
}


