/* #353: dog food switch calculator /tools/switch-dog-food/. Same palette as the weight pages. */
.pp-sw__container {
    max-width: 1070px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    color: #222;
    -webkit-font-smoothing: antialiased;
}

.pp-sw__h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0d2642;
    margin: 0 0 16px;
    text-wrap: balance;
}

.pp-sw-form__foods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.pp-sw-form__food {
    flex: 1 1 280px;
    min-width: 0;
}

.pp-sw-form__days {
    flex: 0 0 auto;
}

.pp-sw-form__select {
    width: 100%;
}

.pp-sw-form__hint {
    margin: -4px 0 16px;
    font-size: 13px;
    color: #7a5028;
}

.pp-sw-schedule {
    background: #fff;
    border: 1px solid #f0d9b5;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    color: #3d2a0f;
}

.pp-sw-schedule__summary {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    text-wrap: pretty;
}

.pp-sw-schedule__summary strong {
    color: #7c3a0a;
}

.pp-sw-schedule a {
    color: #0d2642;
    text-decoration: underline;
}

.pp-sw-schedule a:hover,
.pp-sw-schedule a:focus {
    color: #e8760a;
}

.pp-sw-schedule__notes {
    margin: 0 0 16px;
    padding: 12px 16px 12px 32px;
    background: #fff8f0;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.pp-sw-schedule__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.pp-sw-schedule__table caption {
    caption-side: bottom;
    padding: 10px 0 0;
    font-size: 13px;
    color: #7a5028;
    text-align: left;
}

.pp-sw-schedule__table th,
.pp-sw-schedule__table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #f5e8d0;
    vertical-align: top;
}

.pp-sw-schedule__table th:first-child {
    text-align: left;
}

.pp-sw-schedule__table thead th {
    font-size: 12px;
    font-weight: 600;
    color: #92560e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #fff8f0;
}

.pp-sw-schedule__grams {
    display: block;
    font-size: 13px;
    color: #7a5028;
}

.pp-sw-schedule__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 20px;
}

.pp-sw-schedule__print {
    min-height: 40px;
    padding: 8px 20px;
    border: 0;
    border-radius: 8px;
    background: #e8760a;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition-property: scale, background-color;
    transition-duration: 150ms;
}

.pp-sw-schedule__print:hover,
.pp-sw-schedule__print:focus {
    background: #c9620a;
}

.pp-sw-schedule__print:active {
    scale: 0.96;
}

@media (max-width: 575px) {
    .pp-sw__h1 {
        font-size: 26px;
    }

    .pp-sw-schedule {
        padding: 16px 12px;
    }

    .pp-sw-schedule__table {
        font-size: 14px;
    }

    .pp-sw-schedule__table th,
    .pp-sw-schedule__table td {
        padding: 8px 6px;
    }

    .pp-sw-schedule__table thead th {
        font-size: 11px;
        letter-spacing: 0;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    .pp-sw-schedule,
    .pp-sw-schedule * {
        visibility: visible;
    }

    .pp-sw-schedule {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        border: 0;
    }

    .pp-sw-schedule__actions {
        display: none;
    }
}
