
/* ══ Calculator components (loaded after base.css) ══ */
.strip--all {
    display: block !important;
}

.strip--all ol {
    max-width: 1200px;
    margin: 0 auto;
}

.calc {
    margin-bottom: 80px;
    scroll-margin-top: calc(var(--header-h) + var(--strip-h) + 16px);
}

.calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
}

@media (min-width: 900px) {
    .calc-grid {
        grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
        gap: 64px;
    }
}

.calc-form {
    display: grid;
    gap: 18px;
    align-content: start;
}

.calc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.seg--sm span {
    min-width: 52px;
    min-height: 38px;
}

.stepper {
    display: flex;
    align-items: stretch;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.stepper:focus-within {
    border-color: var(--gold);
}

.stepper button {
    flex: 0 0 54px;
    min-height: 54px;
    background: none;
    border: none;
    color: var(--gold);
    font-family: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.stepper button:hover {
    background: rgba(246, 174, 45, 0.1);
}

.stepper button:active {
    background: rgba(246, 174, 45, 0.2);
}

/* 16px+ keeps iOS Safari from zooming on focus */
.stepper input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stepper .unit-tag {
    align-self: center;
    padding-right: 2px;
    font-family: var(--label);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
}

.input-note {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
}

.input-note strong {
    color: #d5d9dd;
    font-weight: 500;
}

.input-warn {
    display: none;
    padding-top: 12px;
    border-top: 1px solid rgba(246, 174, 45, 0.4);
    font-size: 0.84rem;
    line-height: 1.5;
    color: #e9cf9a;
}

.input-warn.is-visible {
    display: block;
}

/* ── The result ── */
.score {
    min-width: 0;
}

#resultHero {
    scroll-margin-top: calc(var(--header-h) + var(--strip-h) + 16px);
}

.score-value {
    margin-top: 8px;
    font-weight: 800;
    font-size: clamp(4rem, 17vw, 6.4rem);
    line-height: 1.05;
    letter-spacing: -3px;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.score-value small {
    margin-left: 10px;
    font-size: 0.3em;
    font-weight: 600;
    letter-spacing: 0;
    color: #fff;
}

.score-sub {
    margin-top: 12px;
    color: #d5d9dd;
}

.score-sub strong {
    color: #fff;
    font-family: var(--label);
    font-weight: 600;
}

/* Two segments of one load: what you weigh and what hangs from the belt */
.loadbar {
    display: flex;
    gap: 2px;
    height: 14px;
    margin: 24px 0 9px;
}

.loadbar span {
    display: block;
    flex: 0 1 auto;
    min-width: 3px;
    transition: flex-basis 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#barBody {
    background: var(--steel);
}

#barAdded {
    background: var(--gold);
    border-radius: 0 4px 4px 0;
}

.loadbar-key {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--muted);
}

.loadbar-key span::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    background: var(--steel);
}

.loadbar-key .key-added::before {
    background: var(--gold);
}

.loadbar-key b {
    margin-left: 4px;
    color: #fff;
    font-family: var(--label);
    font-weight: 600;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

@media (min-width: 620px) {
    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat {
    padding: 14px 14px 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.stat-value {
    font-family: var(--label);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.2;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    margin-top: 3px;
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--muted);
}

/* Sub-headings inside the result use the small label style */
h2.sub-title {
    margin: 32px 0 4px;
    font-family: var(--label);
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.score .tbl-wrap {
    margin-top: 10px;
}

.score .std td:last-child,
.score .std th:last-child {
    padding-right: 0;
}

.compare {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
}

.compare-item {
    padding: 12px 0 10px;
    border-bottom: 2px solid transparent;
}

.compare-item.is-active {
    border-bottom-color: var(--gold);
}

.compare-name {
    font-family: var(--label);
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.compare-value {
    font-family: var(--label);
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
    margin-top: 20px;
}

.inline-promo {
    font-size: 0.86rem;
    color: var(--muted);
}

/* Numbered advice points */
h3.point {
    margin: 28px 0 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}

/* Phone: keeps the answer on screen while the inputs are being edited */
.live-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid rgba(246, 174, 45, 0.45);
    border-radius: 6px;
    background: rgba(11, 14, 17, 0.97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    color: var(--body);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.live-bar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.live-bar-label {
    display: block;
    font-family: var(--label);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.live-bar-value {
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--gold);
}

.live-bar-total {
    font-family: var(--label);
    font-weight: 500;
    font-size: 0.9rem;
    color: #d5d9dd;
}

@media (min-width: 900px) {
    .live-bar {
        display: none;
    }
}

@media (max-width: 599px) {
    .hide-sm {
        display: none;
    }

    .site-footer {
        padding-bottom: 96px;
    }
}
