.irhvac-prandtl {
    direction: rtl;
    max-width: 940px;
    margin: 1rem auto;
    font-family: inherit;
    line-height: 1.75;
}

.irhvac-prandtl *,
.irhvac-prandtl *::before,
.irhvac-prandtl *::after {
    box-sizing: border-box;
}

.irhvac-prandtl__form,
.irhvac-prandtl__result,
.irhvac-prandtl__message,
.irhvac-prandtl__details {
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #fff;
}

.irhvac-prandtl__form {
    padding: 1rem;
}

.irhvac-prandtl__intro {
    margin: 0 0 1rem;
}

.irhvac-prandtl__section {
    margin: 0 0 1rem;
    padding: 0.9rem;
    border: 1px solid #e1e5e9;
    border-radius: 7px;
}

.irhvac-prandtl__section legend {
    padding: 0 0.45rem;
    font-weight: 700;
}

.irhvac-prandtl__grid,
.irhvac-prandtl__summary {
    display: grid;
    gap: 0.8rem 1rem;
}

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

.irhvac-prandtl label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.irhvac-prandtl label > span:first-child {
    font-weight: 600;
}

.irhvac-prandtl input,
.irhvac-prandtl select,
.irhvac-prandtl button {
    font: inherit;
}

.irhvac-prandtl input[type="text"],
.irhvac-prandtl select {
    width: 100%;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #bfc6cd;
    border-radius: 6px;
    background: #fff;
}

.irhvac-prandtl input[type="text"] {
    direction: ltr;
    text-align: left;
}

.irhvac-prandtl input:focus,
.irhvac-prandtl select:focus {
    outline: 2px solid rgba(30, 109, 181, 0.18);
    border-color: #1e6db5;
}

.irhvac-prandtl small,
.irhvac-prandtl__hint {
    color: #5f6872;
}

.irhvac-prandtl__hint {
    margin: 0 0 0.85rem;
}

.irhvac-prandtl__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.irhvac-prandtl__control input {
    border-radius: 0 6px 6px 0 !important;
}

.irhvac-prandtl__control select {
    min-width: 112px;
    border-radius: 6px 0 0 6px !important;
    border-right: 0 !important;
}

.irhvac-prandtl__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.irhvac-prandtl__actions button {
    min-width: 120px;
    min-height: 42px;
    padding: 0.5rem 1rem;
    border: 1px solid #1e6db5;
    border-radius: 6px;
    cursor: pointer;
}

.irhvac-prandtl__actions button[type="submit"] {
    background: #1e6db5;
    color: #fff;
}

.irhvac-prandtl__actions .irhvac-prandtl__reset {
    background: #fff;
    color: #1e6db5;
}

.irhvac-prandtl__message,
.irhvac-prandtl__result,
.irhvac-prandtl__details {
    margin-top: 1rem;
    padding: 1rem;
}

.irhvac-prandtl__message--error {
    border-color: #cf8d8d;
    background: #fff7f7;
}

.irhvac-prandtl__message--warning {
    border-color: #d7c28a;
    background: #fffaf0;
}

.irhvac-prandtl__message ul {
    margin-bottom: 0;
}

.irhvac-prandtl__result h3 {
    margin-top: 0;
}

.irhvac-prandtl__primary {
    padding: 0.9rem;
    border: 1px solid #bfcfe0;
    border-radius: 8px;
    background: #f7fafc;
    text-align: center;
}

.irhvac-prandtl__primary span,
.irhvac-prandtl__primary strong,
.irhvac-prandtl__primary small {
    display: block;
}

.irhvac-prandtl__primary strong {
    margin: 0.15rem 0;
    direction: ltr;
    font-size: 1.55rem;
}

.irhvac-prandtl__solved {
    margin: 1rem 0;
    padding: 0.65rem 0.8rem;
    border-right: 3px solid #bfcfe0;
    background: #f7fafc;
}

.irhvac-prandtl__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0;
}

.irhvac-prandtl__summary--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.irhvac-prandtl__summary div {
    padding: 0.8rem;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: #f8f9fa;
}

.irhvac-prandtl__summary span,
.irhvac-prandtl__summary strong,
.irhvac-prandtl__summary small {
    display: block;
}

.irhvac-prandtl__summary strong,
.irhvac-prandtl__summary small {
    direction: ltr;
    text-align: right;
    overflow-wrap: anywhere;
}

.irhvac-prandtl__summary strong {
    margin-top: 0.2rem;
}

.irhvac-prandtl__table-wrap {
    overflow-x: auto;
}

.irhvac-prandtl__table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.irhvac-prandtl__table th,
.irhvac-prandtl__table td {
    padding: 0.58rem;
    border: 1px solid #dfe3e7;
    text-align: right;
}

.irhvac-prandtl__table th {
    width: 43%;
    background: #f5f6f7;
}

.irhvac-prandtl__table td {
    direction: ltr;
}

.irhvac-prandtl__details {
    padding: 0;
    overflow: hidden;
}

.irhvac-prandtl__details summary {
    cursor: pointer;
    padding: 0.8rem 1rem;
    background: #f7f8f9;
    font-weight: 700;
}

.irhvac-prandtl__details-body {
    padding: 0.9rem 1rem;
}

.irhvac-prandtl__details-body > :first-child {
    margin-top: 0;
}

.irhvac-prandtl__details-body > :last-child {
    margin-bottom: 0;
}

.irhvac-prandtl__formula {
    text-align: center;
    font-weight: 700;
}

.irhvac-prandtl__author {
    margin: 0.75rem 0 0;
    color: #5f6872;
    font-size: 0.92rem;
}

.irhvac-prandtl [hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .irhvac-prandtl__grid,
    .irhvac-prandtl__summary,
    .irhvac-prandtl__summary--three {
        grid-template-columns: 1fr;
    }

    .irhvac-prandtl__form {
        padding: 0.75rem;
    }

    .irhvac-prandtl__section {
        padding: 0.75rem;
    }
}
