/* Lines & Volumes Roof Pitch Calculator */
.lv-rpc {
    --lv-gold: #BF964A;
    --lv-purple: #302D55;
    --lv-purple-soft: #f3f1f8;
    --lv-border: #d9d9e3;
    --lv-muted: #686978;
    --lv-text: #302D55;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--lv-text);
}

.lv-rpc *, .lv-rpc *::before, .lv-rpc *::after {
    box-sizing: border-box;
}

.lv-rpc__grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
    gap: 0;
    border: 1px solid var(--lv-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.lv-rpc__form-panel {
    padding: 32px;
    background: #fff;
}

.lv-rpc__visual-panel {
    min-width: 0;
    padding: 32px;
    background: #fbfafc;
    border-left: 1px solid var(--lv-border);
    display: flex;
    flex-direction: column;
}

.lv-rpc__heading {
    margin-bottom: 28px;
}

.lv-rpc__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--lv-gold);
    margin-bottom: 8px;
}

.lv-rpc h2, .lv-rpc h3, .lv-rpc p {
    margin-top: 0;
}

.lv-rpc h2 {
    margin-bottom: 8px;
    color: var(--lv-purple);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.lv-rpc__heading p {
    margin-bottom: 0;
    color: var(--lv-muted);
    font-size: 14px;
    line-height: 1.55;
}

.lv-rpc__field,
.lv-rpc__result-field {
    margin-bottom: 19px;
}

.lv-rpc label {
    display: block;
    margin-bottom: 8px;
    color: var(--lv-purple);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
}

.lv-rpc__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    border: 1px solid #c7c7d2;
    border-radius: 50%;
    color: #77798a;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    vertical-align: -2px;
}

.lv-rpc__input-row {
    display: flex;
    min-width: 0;
}

.lv-rpc__input,
.lv-rpc__output,
.lv-rpc__unit {
    height: 50px;
    border: 1px solid #d7d8e2;
    background: #fff;
    color: var(--lv-purple);
    font: inherit;
}

.lv-rpc__input,
.lv-rpc__output {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    font-size: 16px;
    outline: none;
}

.lv-rpc__input {
    border-radius: 10px 0 0 10px;
}

.lv-rpc__output {
    background: #f8f8fb;
    border-radius: 10px 0 0 10px;
    font-weight: 650;
}

.lv-rpc__input:focus {
    border-color: var(--lv-gold);
    box-shadow: 0 0 0 3px rgba(191, 150, 74, 0.15);
}

.lv-rpc__unit {
    flex: 0 0 118px;
    padding: 0 30px 0 10px;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    cursor: pointer;
    appearance: auto;
}

.lv-rpc__input-row:focus-within .lv-rpc__unit {
    border-color: var(--lv-gold);
}

.lv-rpc__suffix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    background: #f1f1f5;
    color: var(--lv-purple);
    border: 1px solid #d7d8e2;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    font-weight: 650;
}

.lv-rpc__results {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #e7e6ec;
}

.lv-rpc__result-field {
    margin-bottom: 16px;
}

.lv-rpc__formula {
    min-height: 48px;
    margin-top: 22px;
    padding: 12px 14px;
    border-left: 3px solid var(--lv-gold);
    border-radius: 6px;
    background: var(--lv-purple-soft);
    color: #55566a;
    font-size: 12px;
    line-height: 1.5;
}

.lv-rpc__visual-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lv-rpc__visual-head h3 {
    margin-bottom: 0;
    color: var(--lv-purple);
    font-size: 21px;
    line-height: 1.2;
}

.lv-rpc__angle-pill {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--lv-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.lv-rpc__svg-wrap {
    width: 100%;
    margin-top: 18px;
    border: 1px solid #e2e0e7;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.lv-rpc__svg {
    display: block;
    width: 100%;
    height: auto;
}

.lv-rpc__ground {
    stroke: #bbb9c2;
    stroke-width: 2;
}

.lv-rpc__wall {
    stroke: #302D55;
    stroke-width: 5;
    stroke-linecap: round;
}

.lv-rpc__roof {
    stroke: #BF964A;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.lv-rpc__guide {
    stroke: #302D55;
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
    opacity: 0.8;
}

.lv-rpc__angle-arc {
    fill: none;
    stroke: #BF964A;
    stroke-width: 2.5;
}

.lv-rpc__ridge-dot {
    fill: #BF964A;
}

.lv-rpc__labels text {
    fill: #302D55;
    font-size: 13px;
    font-weight: 700;
}

.lv-rpc__labels [data-role$="-value"] {
    fill: #6d6a78;
    font-size: 11px;
    font-weight: 600;
}

.lv-rpc__visual-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    color: var(--lv-muted);
    font-size: 12px;
    line-height: 1.5;
}

.lv-rpc__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--lv-gold);
}

@media (max-width: 850px) {
    .lv-rpc__grid {
        grid-template-columns: 1fr;
    }

    .lv-rpc__visual-panel {
        border-left: 0;
        border-top: 1px solid var(--lv-border);
    }
}

@media (max-width: 520px) {
    .lv-rpc__form-panel,
    .lv-rpc__visual-panel {
        padding: 22px 16px;
    }

    .lv-rpc__unit {
        flex-basis: 108px;
        font-size: 12px;
    }

    .lv-rpc__input,
    .lv-rpc__output,
    .lv-rpc__unit {
        height: 48px;
    }

    .lv-rpc__visual-head {
        align-items: center;
    }

    .lv-rpc__visual-head h3 {
        font-size: 18px;
    }
}
