/* Calorie calculator page styles. Loaded only for the calculator template. */
.calorie-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 520px);
    align-items: start;
    gap: clamp(24px, 4vw, 56px);
    padding-top: clamp(44px, 6vw, 84px);
    padding-bottom: clamp(34px, 4vw, 58px);
}

.calorie-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.1rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0;
}

.calorie-hero-points {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.calorie-hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nav-text);
    font-weight: 700;
}

.calorie-hero-points li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 14%, transparent);
}

.calorie-hero-actions {
    margin-top: 28px;
}

.calorie-calculator {
    position: sticky;
    top: 102px;
    display: grid;
    gap: 22px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid color-mix(in srgb, var(--accent-strong) 16%, var(--border));
    border-radius: 28px;
    background: var(--surface-strong);
    box-shadow: 0 24px 68px rgba(18, 24, 40, 0.14);
}

.calculator-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0 4px 8px;
}

.calculator-progress::before {
    content: "";
    position: absolute;
    left: calc(100% / 6);
    right: calc(100% / 6);
    top: 13px;
    height: 2px;
    background: var(--border);
}

.calculator-progress-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-height: 58px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
}

.calculator-progress-step:not(.is-complete):not(.is-active) {
    cursor: default;
}

.calculator-progress-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--muted);
    box-shadow: 0 6px 14px rgba(18, 24, 40, 0.05);
}

.calculator-progress-step strong {
    font-weight: 400;
}

.calculator-progress-step.is-active {
    color: var(--accent-strong);
}

.calculator-progress-step.is-active span {
    border-color: color-mix(in srgb, var(--accent-strong) 46%, var(--border));
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 10px 22px rgba(1, 127, 255, 0.18);
}

.calculator-progress-step.is-complete span {
    border-color: color-mix(in srgb, var(--success) 34%, var(--border));
    background: color-mix(in srgb, var(--success) 14%, var(--surface-strong));
    color: color-mix(in srgb, var(--success) 72%, var(--text));
}

.calculator-step {
    display: grid;
    gap: 18px;
    padding-bottom: 12px;
}

.calculator-step-head h2,
.calculator-result h3,
.calorie-process-card h3,
.calorie-checklist h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
}

.calculator-step-head h2 {
    font-size: 1.35rem;
}

.calculator-step-head p {
    margin: 6px 0 10px;
    color: var(--muted);
}

.calculator-segmented,
.calculator-option-list,
.calculator-goal-grid {
    margin: 0;
    padding: 0;
    border: 0;
}

.calculator-segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calculator-toggle-row .calculator-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.calculator-toggle-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.calculator-units {
    display: inline-flex;
    flex-wrap: nowrap;
    margin: 0 auto;
    padding-top: 0;
    border-top: 0;
    align-self: start;
    gap: 0;
    justify-content: center;
    justify-self: center;
    width: max-content;
    max-width: 100%;
}

.calculator-segmented legend,
.calculator-option-list legend {
    width: 100%;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.calculator-toggle-row .calculator-segmented legend {
    grid-column: 1 / -1;
}

.calculator-segmented label {
    flex: 1 1 120px;
}

.calculator-toggle-row .calculator-segmented label {
    flex: initial;
}

.calculator-units label {
    position: relative;
}

.calculator-segmented input,
.calculator-option-list input,
.calculator-goal-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calculator-segmented span,
.calculator-option-list span,
.calculator-goal-grid span {
    display: grid;
    gap: 4px;
    min-height: 44px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.calculator-segmented input:checked + span,
.calculator-option-list input:checked + span,
.calculator-goal-grid input:checked + span {
    border-color: color-mix(in srgb, var(--accent-strong) 42%, var(--border));
    background: color-mix(in srgb, var(--accent-strong) 9%, var(--surface-strong));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-strong) 20%, transparent);
}

.calculator-units span {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 0;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1;
}

.calculator-units label:first-of-type span {
    border-radius: 999px 0 0 999px;
}

.calculator-units label:last-of-type span {
    border-radius: 0 999px 999px 0;
}

.calculator-units label + label span {
    margin-left: -1px;
}

.calculator-units input:checked + span {
    border-color: color-mix(in srgb, var(--accent-strong) 34%, var(--border));
    background: color-mix(in srgb, var(--accent-strong) 14%, var(--surface-strong));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-strong) 24%, transparent);
}

.calculator-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.calculator-field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.calculator-field > span:first-child {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.calculator-field-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: min(100%, 186px);
    min-height: 50px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
}

.calculator-field-control:focus-within {
    border-color: color-mix(in srgb, var(--accent-strong) 44%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-strong) 12%, transparent);
}

.calculator-field input {
    width: 6ch;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: 800 1.18rem/1.2 var(--font);
}

.calculator-field input:focus {
    outline: 0;
}

.calculator-field small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.calculator-field em {
    max-width: 28ch;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.35;
}

.calculator-select-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.calculator-select-field {
    display: grid;
    gap: 10px;
}

.calculator-select-field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.calculator-select-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-strong);
    color: var(--text);
    font: 800 0.95rem/1.2 var(--font);
}

.calculator-goal-grid small {
    color: var(--muted);
    font-weight: 400;
}

.calculator-goal-grid strong {
    font-size: 0.95rem;
}

.calculator-goal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.calculator-goal-grid span {
    min-height: 118px;
    align-content: start;
}

.calculator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.calculator-actions .button {
    flex: 1 1 130px;
}

.calorie-calculator.is-result .calculator-actions {
    margin-top: 18px;
}

.calculator-result {
    display: grid;
    gap: 22px;
    padding-bottom: 14px;
}

.calculator-result-main {
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--accent-strong) 22%, var(--border));
    border-radius: 20px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent-strong) 9%, transparent), transparent),
        var(--surface-strong);
}

.calculator-result-main h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.1;
}

.calculator-result-label {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.calculator-result-main > strong {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5vw, 4rem);
    line-height: 0.95;
}

.calculator-result-main > strong small {
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.95rem;
}

.calculator-result dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.calculator-result dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 2px 14px;
    border-top: 1px solid var(--border);
}

.calculator-result dl div:first-child {
    border-top: 0;
}

.calculator-result dt {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
}

.calculator-result dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.calculator-result dd span,
.calorie-goal-output-card strong span {
    color: var(--muted);
    font-size: 0.78em;
    font-weight: 600;
}

.calculator-result p {
    margin: 0;
    color: var(--muted);
}

.calculator-macro-link {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.calculator-macro-link a {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.calorie-process-grid,
.calorie-goal-output-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.calorie-process-card,
.calorie-goal-output-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 236px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface-strong);
    box-shadow: 0 18px 38px rgba(18, 24, 40, 0.06);
}

.calorie-goal-output-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.calorie-process-grid .calorie-process-card {
    position: relative;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 0;
    padding: 22px 18px;
    border: 1px solid rgba(14, 20, 38, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(18, 24, 40, 0.05);
}

.calorie-process-grid .feature-copy {
    display: grid;
    gap: 8px;
    align-content: center;
}

.calorie-process-grid h3 {
    margin-bottom: 2px;
    font-size: 1.18rem;
    line-height: 1.08;
}

.calorie-process-grid p {
    line-height: 1.5;
}

.calorie-formula {
    max-width: 760px;
    margin: 20px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
}

.calorie-formula summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.calorie-formula pre {
    margin: 14px 0 0;
    text-align: left;
}

.calorie-formula code {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: var(--text);
    font-family: var(--font-science-mono);
    font-size: 0.82rem;
    line-height: 1.58;
    white-space: pre-wrap;
}

.calorie-process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    width: 94px;
    height: 120px;
    border: 1px solid rgba(14, 20, 38, 0.08);
    border-radius: 20px;
    color: #4b84be;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.2)),
        linear-gradient(135deg, rgba(229, 240, 252, 0.96), rgba(238, 245, 253, 0.92));
    font-size: 2em;
    font-weight: 300;
}

.calorie-process-grid .feature-row-2 .calorie-process-number {
    color: #6a68b4;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.18)),
        linear-gradient(135deg, rgba(241, 236, 255, 0.96), rgba(244, 240, 255, 0.92));
}

.calorie-process-grid .feature-row-3 .calorie-process-number {
    color: #6d915d;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.18)),
        linear-gradient(135deg, rgba(239, 247, 234, 0.96), rgba(242, 248, 239, 0.92));
}

.calorie-process-card > span:not(.calorie-process-number),
.calorie-checklist article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent-strong) 11%, var(--surface-strong));
    color: var(--accent-strong);
    font-weight: 500;
}

.calorie-process-card p,
.calorie-goal-output-card p,
.calorie-checklist p {
    margin: 0;
    color: var(--muted);
}

.calorie-goal-band {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 82%, var(--surface-strong)), var(--bg-2));
}

.calorie-paper-stack {
    position: relative;
    width: min(880px, 100%);
    margin: 0 auto;
    z-index: 0;
}

.calorie-paper-stack::before,
.calorie-paper-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(18, 24, 40, 0.10);
    border-radius: 0;
    background: #fff;
    pointer-events: none;
}

.calorie-paper-stack::before {
    z-index: -2;
    transform-origin: top left;
    top: -9px;
    right: 12px;
    bottom: 12px;
    left: -14px;
    transform: rotate(-1.15deg);
    box-shadow: 0 16px 40px rgba(18, 24, 40, 0.08);
}

.calorie-paper-frame {
    position: relative;
    z-index: 0;
}

.calorie-paper-frame::before {
    z-index: -1;
    transform-origin: top left;
    top: 10px;
    right: -14px;
    bottom: -12px;
    left: 12px;
    transform: rotate(0.95deg);
    box-shadow: 0 22px 52px rgba(18, 24, 40, 0.10);
}

.calorie-paper {
    position: relative;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(18, 24, 40, 0.10);
    border-radius: 0;
    background: #fff;
    color: #171923;
    box-shadow: 0 28px 70px rgba(18, 24, 40, 0.14);
    overflow: visible;
    z-index: 1;
}

.calorie-paper-flask {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 92px;
    height: 92px;
    color: rgba(52, 58, 73, 0.075);
    pointer-events: none;
}

.calorie-paper-flask svg {
    width: 100%;
    height: 100%;
}

.calorie-paper h2 {
    margin: 0;
    font-family: var(--font-science-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.calorie-paper-abstract {
    margin: 18px 0 34px;
    color: #2f3440;
    font-family: var(--font-science-serif);
    font-size: 1.12rem;
}

.calorie-paper-section {
    padding-top: 10px;
}

.calorie-paper-section + .calorie-paper-section {
    margin-top: 18px;
}

.calorie-paper h3 {
    margin: 0 0 12px;
    font-family: var(--font-science-serif);
    font-size: 1.45rem;
}

.calorie-paper-section p {
    margin: 0 0 12px;
    color: #202633;
    font-family: var(--font-science-serif);
    font-size: 1.03rem;
    line-height: 1.65;
}

.calorie-paper strong {
    font-weight: 700;
}

.calorie-paper a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.calorie-paper sup {
    margin-left: 0.08em;
    color: #2f3542;
    font-size: 0.72em;
    vertical-align: super;
}

.calorie-references {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(18, 24, 40, 0.12);
}

.calorie-references ol {
    margin: 0;
    padding-left: 20px;
    color: #4f5667;
    font-size: 0.8rem;
}

.calorie-references a {
    color: #5f6675;
}

.calorie-goal-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calorie-goal-shell {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.calorie-goal-shell .section-heading {
    max-width: 940px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.calorie-goal-shell .section-heading h2 {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.calorie-goal-shell .section-heading p {
    max-width: 62ch;
    margin-right: auto;
    margin-left: auto;
}

.calorie-cta {
    margin-top: clamp(34px, 5vw, 74px);
}

.calorie-goal-output-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.62rem;
    font-weight: 100;
    line-height: 1;
    letter-spacing: -0.04em;
}

.calorie-goal-estimate {
    margin-top: auto;
    display: grid;
    gap: 8px;
    padding-top: 14px;
    align-self: stretch;
}

.calorie-goal-estimate small {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.calorie-goal-output-card strong {
    display: block;
    color: var(--accent-strong);
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 400;
}

.calorie-goal-output-card strong.is-placeholder {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
}

.calorie-goal-output-card .calorie-range-separator {
    color: var(--nav-text);
    font-weight: 400;
}

.calorie-guidance {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: end;
}

.calorie-guidance-copy {
    display: grid;
    gap: 20px;
    max-width: 620px;
}

.calorie-guidance-copy h2,
.calorie-guidance-copy p {
    margin: 0;
}

.calorie-guidance-copy .lede {
    color: var(--nav-text);
    font-size: 1.08rem;
    line-height: 1.65;
}

.calorie-guidance-reasons {
    display: grid;
    gap: 10px;
}

.calorie-guidance-reasons p {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
    color: var(--muted);
    line-height: 1.55;
    box-shadow: 0 10px 24px rgba(18, 24, 40, 0.06);
}

.calorie-guidance-reasons strong {
    display: block;
    margin: 0 0 10px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.62rem;
    font-weight: 100;
    line-height: 1;
    letter-spacing: -0.04em;
}

.calorie-adjustment-card {
    display: grid;
    gap: 24px;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
    box-shadow: 0 16px 38px rgba(18, 24, 40, 0.06);
}

.calorie-adjustment-head {
    display: grid;
    gap: 8px;
}

.calorie-adjustment-head h2,
.calorie-adjustment-head p {
    margin: 0;
}

.calorie-adjustment-head h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--accent-strong);
}

.calorie-adjustment-head p {
    color: var(--muted);
    line-height: 1.5;
}

.calorie-adjustment-steps {
    display: grid;
}

.calorie-adjustment-steps article {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
    padding: 0 0 22px;
}

.calorie-adjustment-steps article:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 36px;
    bottom: 0;
    left: 17px;
    width: 2px;
    background: color-mix(in srgb, var(--accent-strong) 28%, var(--border));
}

.calorie-adjustment-steps article + article {
    padding-top: 4px;
}

.calorie-adjustment-steps article:last-child {
    padding-bottom: 0;
}

.calorie-adjustment-steps span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(1, 127, 255, 0.18);
}

.calorie-adjustment-steps h3 {
    margin: 0 0 6px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
}

.calorie-adjustment-steps p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

html[data-theme="dark"] .calorie-paper {
    background: #f7f8fb;
    color: #171923;
}

html[data-theme="dark"] .calorie-paper-stack::before,
html[data-theme="dark"] .calorie-paper-frame::before {
    border-color: rgba(18, 24, 40, 0.12);
    background: #f7f8fb;
}

html[data-theme="dark"] .calorie-process-grid .calorie-process-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: #1c2433;
}

html[data-theme="dark"] .calorie-process-number {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(49, 82, 119, 0.22), rgba(34, 48, 66, 0.68));
}

html[data-theme="dark"] .calorie-process-grid .feature-row-2 .calorie-process-number {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(98, 87, 156, 0.22), rgba(36, 48, 73, 0.68));
}

html[data-theme="dark"] .calorie-process-grid .feature-row-3 .calorie-process-number {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(82, 114, 78, 0.22), rgba(34, 48, 66, 0.68));
}

html[data-theme="dark"] .calorie-paper code {
    background: rgba(18, 24, 40, 0.07);
    color: #171923;
}

@media (max-width: 860px) {
    .calorie-hero,
    .calorie-guidance {
        grid-template-columns: 1fr;
    }

    .calorie-guidance-copy {
        max-width: none;
    }

    .calorie-calculator {
        position: static;
    }

    .calorie-process-grid,
    .calorie-checklist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .calorie-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.2rem);
    }

    .calculator-result dl,
    .calculator-goal-grid,
    .calculator-select-grid,
    .calorie-process-grid,
    .calorie-goal-output-grid {
        grid-template-columns: 1fr;
    }

    .calculator-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-toggle-row {
        grid-template-columns: 1fr;
    }

    .calculator-field-control {
        width: 100%;
        padding-inline: 10px;
    }

    .calorie-process-grid .calorie-process-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 16px;
        padding: 22px;
    }

    .calorie-process-number {
        width: 78px;
        height: 100px;
        border-radius: 18px;
    }

    .calculator-progress-step {
        font-size: 0.68rem;
    }

    .calculator-select-field select {
        min-height: 46px;
    }

    .calorie-reality-copy {
        padding: 24px;
    }
}
