/*
 * Home Backup Calculator v1.9
 * All calculator rules are scoped to the dedicated page and shortcode.
 */

.hbcalc-template {
    overflow: clip;
}

.hbcalc-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 78px;
    background:
        radial-gradient(circle at 82% 22%, rgba(67, 182, 138, .25), transparent 29%),
        radial-gradient(circle at 10% 110%, rgba(243, 107, 53, .18), transparent 31%),
        linear-gradient(135deg, #0b1d17 0%, #123a2e 55%, #174d3d 100%);
    color: #fff;
}

.hbcalc-hero::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -260px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    box-shadow:
        0 0 0 80px rgba(255, 255, 255, .025),
        0 0 0 160px rgba(255, 255, 255, .018);
    pointer-events: none;
}

.hbcalc-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
    gap: 68px;
    align-items: center;
}

.hbcalc-hero .breadcrumbs {
    margin-bottom: 20px;
}

.hbcalc-hero-kicker,
.hbcalc-kicker,
.hbcalc-results-kicker {
    display: block;
    margin-bottom: 11px;
    color: #d44b1b;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hbcalc-hero-kicker {
    color: #ff9b74;
}

.hbcalc-hero h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(2.85rem, 6.2vw, 5.6rem);
}

.hbcalc-hero-copy {
    max-width: 720px;
    margin-bottom: 0;
    color: #d7e8e1;
    font-size: clamp(1.08rem, 2vw, 1.24rem);
}

.hbcalc-hero-actions,
.hbcalc-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hbcalc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 13px 20px;
    border: 1px solid #f36b35;
    border-radius: 12px;
    background: #f36b35;
    color: #fff !important;
    box-shadow: 0 9px 24px rgba(243, 107, 53, .24);
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.hbcalc-button:hover {
    transform: translateY(-1px);
    border-color: #d94d1c;
    background: #d94d1c;
}

.hbcalc-button-secondary {
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
    box-shadow: none;
}

.hbcalc-button-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
}

.hbcalc-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 28px;
    color: #c9ddd5;
    font-size: .86rem;
    font-weight: 750;
}

.hbcalc-hero-trust span::before {
    content: "✓";
    margin-right: 7px;
    color: #ff9b74;
}

.hbcalc-hero-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 26px;
    background: rgba(255, 255, 255, .085);
    box-shadow: 0 30px 65px rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
}

.hbcalc-hero-card > span {
    color: #bfe8d8;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hbcalc-hero-card ul {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.hbcalc-hero-card li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 15px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.hbcalc-hero-card strong {
    color: #fff;
    font-size: .94rem;
}

.hbcalc-hero-card small {
    color: #c5d9d1;
    font-size: .79rem;
    text-align: right;
}

.hbcalc-page,
.hbcalc {
    min-width: 0;
}

.hbcalc {
    --calc-ink: #10231d;
    --calc-green: #1d624c;
    --calc-orange: #f36b35;
    --calc-orange-dark: #d94d1c;
    --calc-soft: #f6f3eb;
    --calc-mint: #e8f5ef;
    --calc-line: #d7e3dd;
    --calc-muted: #5b6d66;
    color: var(--calc-ink);
}

.hbcalc-router,
.hbcalc-content-section,
.hbcalc-safety,
.hbcalc-sources {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.hbcalc-router {
    padding: 78px 0 82px;
}

.hbcalc-section-head {
    max-width: 850px;
}

.hbcalc-section-head h2,
.hbcalc-tool-heading h2 {
    margin-bottom: 15px;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.hbcalc-section-head > p,
.hbcalc-tool-heading > p {
    margin-bottom: 0;
    color: var(--calc-muted);
    font-size: 1.05rem;
}

.hbcalc-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-top: 34px;
}

.hbcalc-preset {
    position: relative;
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 2px 14px;
    min-height: 128px;
    padding: 21px;
    overflow: hidden;
    border: 1px solid var(--calc-line);
    border-radius: 18px;
    background: #fff;
    color: var(--calc-ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hbcalc-preset:hover,
.hbcalc-preset.is-active {
    transform: translateY(-2px);
    border-color: #85bba5;
    box-shadow: 0 16px 36px rgba(16, 35, 29, .1);
}

.hbcalc-preset.is-active {
    background: linear-gradient(135deg, #f4fbf7, #fff);
}

.hbcalc-preset.is-active::after {
    content: "Selected";
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 99px;
    background: var(--calc-green);
    color: #fff;
    font-size: .66rem;
    font-weight: 850;
}

.hbcalc-preset > span {
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #fff0e9;
    color: var(--calc-orange-dark);
    font-size: .78rem;
    font-weight: 900;
}

.hbcalc-preset strong {
    align-self: end;
    padding-right: 48px;
    font-size: 1rem;
}

.hbcalc-preset small {
    color: var(--calc-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.hbcalc-tool {
    padding: 80px 0 88px;
    background:
        radial-gradient(circle at 0 0, rgba(29, 98, 76, .08), transparent 25%),
        var(--calc-soft);
}

.hbcalc-tool-heading,
.hbcalc-layout {
    width: min(calc(100% - 40px), 1380px);
    margin-inline: auto;
}

.hbcalc-tool-heading {
    max-width: 1380px;
    padding-right: 400px;
}

.hbcalc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
    gap: 26px;
    align-items: start;
    margin-top: 34px;
}

.hbcalc-form {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.hbcalc-panel {
    min-width: 0;
    margin: 0;
    padding: 25px;
    border: 1px solid var(--calc-line);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(16, 35, 29, .045);
}

.hbcalc-panel > legend {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 9px;
    color: var(--calc-ink);
    font-size: 1.13rem;
    font-weight: 900;
}

.hbcalc-panel > legend span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--calc-orange);
    color: #fff;
    font-size: .8rem;
}

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

.hbcalc-field,
.hbcalc-check-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbe5e0;
    border-radius: 13px;
    background: #fbfcfb;
}

.hbcalc-field > span:first-child,
.hbcalc-check-field strong {
    color: #213b32;
    font-size: .86rem;
    font-weight: 850;
}

.hbcalc-field small,
.hbcalc-check-field small {
    display: block;
    color: #667870;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.4;
}

.hbcalc-field input,
.hbcalc-field select,
.hbcalc-load input,
.hbcalc-load select {
    min-width: 0;
    min-height: 42px;
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #b9ccc3;
    border-radius: 9px;
    background: #fff;
    color: var(--calc-ink);
    font: inherit;
    font-size: .87rem;
    line-height: 1.2;
}

.hbcalc-field input:focus,
.hbcalc-field select:focus,
.hbcalc-load input:focus,
.hbcalc-load select:focus,
.hbcalc-preset:focus-visible,
.hbcalc-text-button:focus-visible,
.hbcalc-result-tools button:focus-visible,
.hbcalc-remove-custom:focus-visible,
.hbcalc-button:focus-visible,
.hbcalc-mobile-summary a:focus-visible {
    outline: 3px solid rgba(243, 107, 53, .27);
    outline-offset: 2px;
    border-color: var(--calc-orange);
}

.hbcalc-field input:invalid,
.hbcalc-load input:invalid {
    border-color: #b6422b;
}

.hbcalc-input-suffix,
.hbcalc-unit {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #52645d;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.hbcalc-input-suffix input,
.hbcalc-unit input {
    flex: 1;
}

.hbcalc-check-field {
    grid-template-columns: 22px 1fr;
    align-items: start;
}

.hbcalc-check-field input {
    width: 19px;
    height: 19px;
    margin-top: 3px;
    accent-color: var(--calc-orange);
}

.hbcalc-load-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin: 4px 0 20px;
}

.hbcalc-load-toolbar p {
    margin: 0;
}

.hbcalc-load-toolbar p strong,
.hbcalc-load-toolbar p span {
    display: block;
}

.hbcalc-load-toolbar p span {
    margin-top: 2px;
    color: var(--calc-muted);
    font-size: .79rem;
}

.hbcalc-load-toolbar > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.hbcalc-text-button,
.hbcalc-result-tools button,
.hbcalc-remove-custom {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #cbd9d2;
    border-radius: 9px;
    background: #fff;
    color: var(--calc-green);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 850;
}

.hbcalc-text-button:hover,
.hbcalc-result-tools button:hover,
.hbcalc-remove-custom:hover {
    border-color: var(--calc-green);
    background: var(--calc-mint);
}

.hbcalc-column-head,
.hbcalc-load {
    display: grid;
    grid-template-columns: minmax(190px, 2.1fr) minmax(56px, .52fr) minmax(78px, .78fr) minmax(78px, .78fr) minmax(78px, .78fr) minmax(72px, .66fr) minmax(104px, 1fr);
    gap: 9px;
    align-items: center;
}

.hbcalc-column-head {
    padding: 0 12px 8px;
    color: #6b7b75;
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hbcalc-load-group {
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid var(--calc-line);
    border-radius: 15px;
    background: #fbfcfb;
}

.hbcalc-load-group > summary {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 17px;
    color: var(--calc-ink);
    cursor: pointer;
    font-size: .92rem;
    font-weight: 900;
    list-style-position: inside;
}

.hbcalc-load-group > summary small {
    color: #697b73;
    font-size: .72rem;
    font-weight: 650;
}

.hbcalc-load-list {
    display: grid;
    gap: 7px;
    padding: 0 8px 8px;
}

.hbcalc-load {
    position: relative;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: #fff;
    opacity: .7;
    transition: border-color .16s ease, background .16s ease, opacity .16s ease;
}

.hbcalc-load.is-selected {
    border-color: #9bc9b7;
    background: #f5fbf8;
    box-shadow: 0 5px 16px rgba(16, 35, 29, .055);
    opacity: 1;
}

.hbcalc-load-name {
    display: grid;
    grid-template-columns: 21px 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.hbcalc-load-name > input[type="checkbox"] {
    width: 19px;
    height: 19px;
    min-height: 0;
    margin-top: 4px;
    padding: 0;
    accent-color: var(--calc-orange);
}

.hbcalc-load-name label {
    min-width: 0;
    cursor: pointer;
}

.hbcalc-load-name strong,
.hbcalc-load-name small {
    display: block;
}

.hbcalc-load-name strong {
    font-size: .84rem;
    line-height: 1.3;
}

.hbcalc-load-name small {
    margin-top: 3px;
    color: #6a7a74;
    font-size: .67rem;
    line-height: 1.35;
}

.hbcalc-load > label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hbcalc-load > label > span:first-child {
    display: none;
    color: #64756e;
    font-size: .67rem;
    font-weight: 800;
}

.hbcalc-load input:disabled,
.hbcalc-load select:disabled {
    cursor: not-allowed;
    opacity: .56;
}

.hbcalc-custom-loads {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.hbcalc-custom-load {
    border-color: #e6b49f;
    background: #fffaf7;
}

.hbcalc-custom-name {
    min-height: 38px !important;
    margin-top: 5px;
    padding: 6px 8px !important;
    font-weight: 850;
}

.hbcalc-remove-custom {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 34px;
    color: #9e3b1d;
}

.hbcalc-recharge-choice {
    margin-bottom: 14px;
}

.hbcalc-recharge-panel {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #cfe0d8;
    border-radius: 15px;
    background: #f6fbf8;
}

.hbcalc-recharge-panel[hidden] {
    display: none;
}

.hbcalc-recharge-panel h3 {
    margin: 0 0 13px;
    font-size: 1.02rem;
}

.hbcalc-noscript {
    margin: 18px 0 0;
    padding: 15px;
    border-left: 4px solid var(--calc-orange);
    background: #fff2e8;
    color: #743a25;
}

.hbcalc-form-submit {
    min-height: 50px;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--calc-orange);
    color: #fff;
    box-shadow: 0 9px 24px rgba(243, 107, 53, .2);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.hbcalc-form-submit:hover {
    background: var(--calc-orange-dark);
}

.hbcalc-form-submit:focus-visible {
    outline: 3px solid rgba(243, 107, 53, .28);
    outline-offset: 3px;
}

.hbcalc-results {
    position: sticky;
    top: 98px;
    padding: 27px;
    border-radius: 23px;
    background:
        radial-gradient(circle at 100% 0, rgba(67, 182, 138, .18), transparent 28%),
        linear-gradient(145deg, #10231d, #163a2f);
    color: #fff;
    box-shadow: 0 25px 55px rgba(16, 35, 29, .21);
}

.hbcalc-results-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: start;
}

.hbcalc-results-kicker {
    margin: 0;
    color: #bfe8d8;
}

.hbcalc-confidence {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 99px;
    color: #d0e5dd;
    font-size: .63rem;
    font-weight: 800;
    white-space: nowrap;
}

.hbcalc-results-title {
    margin: 19px 0 8px;
    color: #fff;
    font-size: 1.55rem;
}

.hbcalc-results-intro {
    color: #c8dad3;
    font-size: .86rem;
    line-height: 1.55;
}

.hbcalc-primary-result {
    margin: 21px 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    background: rgba(255, 255, 255, .075);
}

.hbcalc-primary-result > span,
.hbcalc-primary-result > small {
    display: block;
    color: #c7dad2;
    font-size: .72rem;
}

.hbcalc-primary-result strong {
    display: block;
    margin: 5px 0;
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.hbcalc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 0;
}

.hbcalc-result-grid > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
}

.hbcalc-result-grid dt,
.hbcalc-result-grid dd,
.hbcalc-result-grid small {
    display: block;
}

.hbcalc-result-grid dt {
    color: #bcd1c9;
    font-size: .68rem;
}

.hbcalc-result-grid dd {
    margin: 3px 0;
    color: #fff;
    font-size: .94rem;
    font-weight: 900;
}

.hbcalc-result-grid small {
    color: #9fb9af;
    font-size: .61rem;
}

.hbcalc-balance {
    margin-top: 19px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.hbcalc-balance > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #d2e3dc;
    font-size: .75rem;
}

.hbcalc-balance-track {
    height: 8px;
    margin: 9px 0;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
}

.hbcalc-balance-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #43b68a, #9ce4c8);
    transition: width .25s ease;
}

.hbcalc-balance p {
    margin: 0;
    color: #aac1b8;
    font-size: .68rem;
    line-height: 1.45;
}

.hbcalc-route {
    margin-top: 20px;
    padding: 19px;
    border-radius: 16px;
    background: #fff;
    color: var(--calc-ink);
}

.hbcalc-route > span {
    color: var(--calc-orange-dark);
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hbcalc-route h3 {
    margin: 5px 0 7px;
    font-size: 1.11rem;
}

.hbcalc-route p {
    margin: 0;
    color: #566961;
    font-size: .77rem;
    line-height: 1.5;
}

.hbcalc-route .hbcalc-result-actions {
    display: grid;
    margin-top: 15px;
}

.hbcalc-route .hbcalc-button {
    min-height: 43px;
    padding: 10px 13px;
    font-size: .76rem;
}

.hbcalc-route .hbcalc-button-secondary {
    border-color: #c7d7d0;
    color: var(--calc-green) !important;
}

.hbcalc-route .hbcalc-button-secondary:hover {
    background: var(--calc-mint);
}

.hbcalc-flags {
    margin-top: 20px;
}

.hbcalc-flags h3 {
    margin-bottom: 9px;
    color: #fff;
    font-size: .94rem;
}

.hbcalc-flags ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hbcalc-flags li {
    position: relative;
    margin: 8px 0;
    padding-left: 18px;
    color: #c7d9d2;
    font-size: .7rem;
    line-height: 1.45;
}

.hbcalc-flags li::before {
    content: "";
    position: absolute;
    top: .48em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff956c;
}

.hbcalc-result-tools {
    display: flex;
    gap: 8px;
    margin-top: 19px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.hbcalc-result-tools button {
    border-color: rgba(255, 255, 255, .2);
    background: transparent;
    color: #d6e5df;
}

.hbcalc-result-tools button:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .08);
}

.hbcalc-disclaimer {
    margin: 16px 0 0;
    color: #91aaa0;
    font-size: .63rem;
    line-height: 1.45;
}

.hbcalc-content-section {
    padding: 84px 0;
}

.hbcalc-content-section + .hbcalc-content-section {
    border-top: 1px solid var(--calc-line);
}

.hbcalc-explain-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hbcalc-explain-grid article,
.hbcalc-method-grid article {
    padding: 22px;
    border: 1px solid var(--calc-line);
    border-radius: 17px;
    background: #fff;
}

.hbcalc-explain-grid article > span {
    color: var(--calc-orange-dark);
    font-size: .72rem;
    font-weight: 900;
}

.hbcalc-explain-grid h3 {
    margin: 8px 0;
    font-size: 1.04rem;
}

.hbcalc-explain-grid p,
.hbcalc-method-grid p {
    margin-bottom: 0;
    color: var(--calc-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.hbcalc-safety {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 22px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 31px;
    border: 1px solid #efc6b5;
    border-radius: 21px;
    background: #fff3ed;
}

.hbcalc-safety-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: var(--calc-orange);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
}

.hbcalc-safety h2 {
    max-width: 900px;
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.hbcalc-safety p {
    max-width: 950px;
    color: #594d48;
    font-size: .9rem;
}

.hbcalc-safety p:last-child {
    margin-bottom: 0;
    font-weight: 800;
}

.hbcalc-method {
    width: 100%;
    max-width: none;
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    background: var(--calc-soft);
}

.hbcalc-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-top: 32px;
}

.hbcalc-method-grid h3 {
    margin-bottom: 10px;
    font-size: 1.16rem;
}

.hbcalc-method-grid p + p {
    margin-top: 10px;
}

.hbcalc-next-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 31px;
}

.hbcalc-next-grid a {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 23px;
    border: 1px solid var(--calc-line);
    border-radius: 17px;
    background: #fff;
    color: var(--calc-ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hbcalc-next-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(16, 35, 29, .09);
}

.hbcalc-next-grid span {
    color: var(--calc-orange-dark);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hbcalc-next-grid strong {
    margin: 8px 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.hbcalc-next-grid small {
    margin-top: auto;
    color: var(--calc-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.hbcalc-faq {
    padding-top: 70px;
}

.hbcalc-faq details {
    margin: 11px 0;
    border: 1px solid var(--calc-line);
    border-radius: 14px;
    background: #fff;
}

.hbcalc-faq summary {
    padding: 17px 20px;
    cursor: pointer;
    font-weight: 850;
}

.hbcalc-faq details p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--calc-muted);
    font-size: .91rem;
}

.hbcalc-sources {
    margin-bottom: 80px;
    padding: 25px;
    border-top: 1px solid var(--calc-line);
    color: var(--calc-muted);
    font-size: .8rem;
}

.hbcalc-sources h2 {
    font-size: 1.2rem;
}

.hbcalc-sources ul {
    columns: 2;
    margin: 12px 0;
    padding-left: 20px;
}

.hbcalc-sources li {
    break-inside: avoid;
    margin: 6px 0;
}

.hbcalc-sources p {
    margin-bottom: 0;
}

.hbcalc-mobile-summary {
    display: none;
}

@media (max-width: 1180px) {
    .hbcalc-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .hbcalc-column-head {
        display: none;
    }

    .hbcalc-load {
        grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(78px, .7fr));
    }

    .hbcalc-load > label > span:first-child {
        display: block;
    }

    .hbcalc-load > label:nth-of-type(n+4) {
        grid-column: auto;
    }

    .hbcalc-explain-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hbcalc-hero-grid,
    .hbcalc-layout {
        grid-template-columns: 1fr;
    }

    .hbcalc-hero-card {
        max-width: 680px;
    }

    .hbcalc-tool-heading {
        padding-right: 0;
    }

    .hbcalc-results {
        position: static;
        max-width: none;
    }

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

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

    .hbcalc.has-results {
        padding-bottom: 82px;
    }

    .hbcalc-mobile-summary:not([hidden]) {
        position: fixed;
        z-index: 49;
        right: 14px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 14px;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        align-items: center;
        max-width: 560px;
        margin: auto;
        padding: 11px 12px 11px 17px;
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 15px;
        background: rgba(16, 35, 29, .97);
        color: #fff;
        box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
        backdrop-filter: blur(12px);
    }

    .hbcalc-mobile-summary span,
    .hbcalc-mobile-summary small,
    .hbcalc-mobile-summary strong {
        display: block;
    }

    .hbcalc-mobile-summary small {
        color: #bcd2c9;
        font-size: .64rem;
    }

    .hbcalc-mobile-summary strong {
        font-size: .96rem;
    }

    .hbcalc-mobile-summary a {
        padding: 9px 13px;
        border-radius: 9px;
        background: var(--calc-orange);
        color: #fff;
        font-size: .76rem;
        font-weight: 850;
        text-decoration: none;
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .hbcalc-hero {
        padding: 58px 0 55px;
    }

    .hbcalc-hero-grid {
        gap: 38px;
    }

    .hbcalc-hero h1 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .hbcalc-hero-actions {
        display: grid;
    }

    .hbcalc-hero-card {
        padding: 21px;
    }

    .hbcalc-hero-card li {
        display: block;
    }

    .hbcalc-hero-card small {
        display: block;
        margin-top: 2px;
        text-align: left;
    }

    .hbcalc-router,
    .hbcalc-content-section,
    .hbcalc-safety,
    .hbcalc-sources,
    .hbcalc-tool-heading,
    .hbcalc-layout {
        width: min(calc(100% - 28px), 1180px);
    }

    .hbcalc-router,
    .hbcalc-content-section {
        padding: 62px 0;
    }

    .hbcalc-tool {
        padding: 62px 0 70px;
    }

    .hbcalc-presets,
    .hbcalc-field-grid,
    .hbcalc-method-grid,
    .hbcalc-next-grid,
    .hbcalc-explain-grid {
        grid-template-columns: 1fr;
    }

    .hbcalc-preset {
        min-height: 111px;
    }

    .hbcalc-panel {
        padding: 17px;
        border-radius: 17px;
    }

    .hbcalc-load-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .hbcalc-load-toolbar > div {
        justify-content: flex-start;
    }

    .hbcalc-load {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        padding: 13px;
    }

    .hbcalc-load-name {
        grid-column: 1 / -1;
    }

    .hbcalc-load > label {
        grid-column: auto !important;
    }

    .hbcalc-load > label:last-of-type {
        grid-column: 1 / -1 !important;
    }

    .hbcalc-remove-custom {
        grid-column: 1 / -1;
    }

    .hbcalc-results {
        padding: 21px;
    }

    .hbcalc-result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hbcalc-safety {
        grid-template-columns: 1fr;
        padding: 23px;
    }

    .hbcalc-method {
        width: 100%;
        padding-right: 14px;
        padding-left: 14px;
    }

    .hbcalc-next-grid a {
        min-height: 190px;
    }

    .hbcalc-sources {
        margin-bottom: 62px;
    }

    .hbcalc-sources ul {
        columns: 1;
    }
}

@media (max-width: 430px) {
    .hbcalc-result-grid {
        grid-template-columns: 1fr;
    }

    .hbcalc-load {
        grid-template-columns: 1fr;
    }

    .hbcalc-load-name,
    .hbcalc-load > label,
    .hbcalc-load > label:last-of-type {
        grid-column: 1 !important;
    }

    .hbcalc-results-top {
        align-items: start;
        flex-direction: column;
        gap: 7px;
    }

    .hbcalc-result-tools {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hbcalc *,
    .hbcalc *::before,
    .hbcalc *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .hbcalc-hero-actions,
    .hbcalc-router,
    .hbcalc-form,
    .hbcalc-mobile-summary,
    .hbcalc-result-tools,
    .hbcalc-content-section,
    .hbcalc-safety,
    .hbcalc-sources {
        display: none !important;
    }

    .hbcalc-hero {
        padding: 24px 0;
        background: #fff !important;
        color: #000;
    }

    .hbcalc-hero h1,
    .hbcalc-hero-copy {
        color: #000;
    }

    .hbcalc-hero-card {
        display: none;
    }

    .hbcalc-tool {
        padding: 20px 0;
        background: #fff;
    }

    .hbcalc-tool-heading {
        padding: 0;
    }

    .hbcalc-layout {
        display: block;
        width: 100%;
    }

    .hbcalc-results {
        position: static;
        color: #000;
        background: #fff;
        box-shadow: none;
        border: 1px solid #999;
    }

    .hbcalc-results *,
    .hbcalc-route *,
    .hbcalc-flags * {
        color: #000 !important;
    }
}
