/* #328: weight pages /how-much-to-feed/{N}-lb-dog/ and their hub. Same palette as the product page. */
.pp-weight__container {
    max-width: 1070px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    color: #222;
    -webkit-font-smoothing: antialiased;
}

.pp-weight__crumb {
    font-size: 13px;
    margin: 0 0 12px;
}

.pp-weight__crumb a {
    color: #222;
    text-decoration: underline;
}

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

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

.pp-weight__lead {
    font-size: 16px;
    line-height: 1.5;
    color: #3d2a0f;
    margin: 0 0 24px;
    max-width: 720px;
    text-wrap: pretty;
}

.pp-weight__answer {
    background: #fff8f0;
    border: 1px solid #f0d9b5;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.5;
    color: #3d2a0f;
    font-variant-numeric: tabular-nums;
}

.pp-weight__answer p {
    margin: 0;
    text-wrap: pretty;
}

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

.pp-weight__section {
    background: #fff;
    border: 1px solid #f0d9b5;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.pp-weight__table-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.pp-weight__title {
    font-size: 18px;
    font-weight: 700;
    color: #7c3a0a;
    margin: 0 0 12px;
    text-wrap: balance;
}

.pp-weight__table-head .pp-weight__title {
    margin: 0;
}

.pp-weight__subtitle,
.pp-weight__kcal-line {
    font-size: 14px;
    color: #7a5028;
    margin: 0 0 12px;
    font-variant-numeric: tabular-nums;
    text-wrap: pretty;
}

.pp-weight__switch {
    display: inline-flex;
    padding: 4px;
    background: #fdf5ea;
    border-radius: 12px;
    gap: 4px;
}

.pp-weight__switch-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7a5028;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition-property: background-color, color, scale;
    transition-duration: 0.15s;
}

.pp-weight__switch-btn:hover {
    color: #7c3a0a;
}

.pp-weight__switch-btn:active {
    scale: 0.96;
}

.pp-weight__switch-btn[aria-pressed="true"] {
    background: #fff;
    color: #7c3a0a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.pp-weight__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pp-weight__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

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

.pp-weight__table th,
.pp-weight__table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #f5e8d0;
    white-space: nowrap;
}

.pp-weight__table th:first-child,
.pp-weight__table td:nth-child(2) {
    text-align: left;
}

.pp-weight__table tbody th {
    font-weight: 600;
    white-space: normal;
    min-width: 200px;
}

.pp-weight__table tbody th a {
    color: #0d2642;
}

.pp-weight__table tbody th a:hover,
.pp-weight__table tbody th a:focus {
    color: #e8760a;
}

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

.pp-weight__sort {
    position: relative;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.pp-weight__sort::before {
    content: "";
    position: absolute;
    inset: -12px -8px;
}

.pp-weight__sort::after {
    content: "\2195";
    margin-left: 4px;
    opacity: 0.5;
}

th[aria-sort="ascending"] .pp-weight__sort::after {
    content: "\2191";
    opacity: 1;
}

th[aria-sort="descending"] .pp-weight__sort::after {
    content: "\2193";
    opacity: 1;
}

.pp-weight__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: 1px;
}

.pp-weight__badge[hidden] {
    display: none;
}

.pp-weight__note,
.pp-weight__text {
    font-size: 13px;
    line-height: 1.5;
    color: #3d2a0f;
    margin: 12px 0 0;
    text-wrap: pretty;
}

.pp-weight__text {
    font-size: 15px;
    margin: 0 0 12px;
}

.pp-weight__note a,
.pp-weight__cheapest a,
.pp-weight__brands a,
.pp-weight__faq-a a {
    color: #92560e;
    font-weight: 600;
}

.pp-weight__cheapest {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}

.pp-weight__brands {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.pp-weight__faq {
    display: grid;
    gap: 16px;
}

.pp-weight__faq-q {
    font-size: 16px;
    font-weight: 700;
    color: #0d2642;
    margin: 0 0 6px;
    text-wrap: balance;
}

.pp-weight__faq-a {
    font-size: 15px;
    line-height: 1.6;
    color: #3d2a0f;
    margin: 0;
    text-wrap: pretty;
}

.pp-weight__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pp-weight__nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #f0d9b5;
    border-radius: 12px;
    background: #fef9f3;
    color: #7c3a0a;
    font-weight: 600;
    text-decoration: none;
    transition-property: background-color, border-color;
    transition-duration: 0.15s;
}

.pp-weight__nav-link:hover,
.pp-weight__nav-link:focus {
    background: #faeddf;
    border-color: #e7c98c;
    color: #7c3a0a;
    text-decoration: none;
}

.pp-weight__nav-link--primary {
    background: #e8760a;
    border-color: #e8760a;
    color: #fff;
}

.pp-weight__nav-link--primary:hover,
.pp-weight__nav-link--primary:focus {
    background: #c96305;
    border-color: #c96305;
    color: #fff;
}

.pp-weight__hub-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
}

/* #370: the way to the weight loss calculator */
.pp-weight__loss-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 18px;
    background: #fef9f3;
    border: 1px solid #f0d9b5;
    border-radius: 12px;
    color: #92560e;
    font-weight: 700;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition-property: background-color, border-color;
    transition-duration: 0.15s;
}

.pp-weight__loss-link::after {
    content: "\2192";
    margin-left: 8px;
}

.pp-weight__loss-link:hover,
.pp-weight__loss-link:focus {
    background: #faeddf;
    border-color: #e7c98c;
    color: #7c3a0a;
    text-decoration: none;
}

.pp-weight__hub-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 44px;
    padding: 12px 16px;
    background: #fef9f3;
    border: 1px solid #f0d9b5;
    border-radius: 12px;
    color: #0d2642;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition-property: background-color, border-color;
    transition-duration: 0.15s;
}

.pp-weight__hub-link:hover,
.pp-weight__hub-link:focus {
    background: #faeddf;
    border-color: #e7c98c;
    color: #0d2642;
    text-decoration: none;
}

.pp-weight__hub-weight {
    font-weight: 700;
}

.pp-weight__hub-kcal {
    font-size: 13px;
    color: #7a5028;
}

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

    .pp-weight__section {
        padding: 16px;
    }

    .pp-weight__switch {
        width: 100%;
    }

    .pp-weight__switch-btn {
        flex: 1;
        padding: 0 8px;
    }
}

/* #336: the five size silhouettes above the bands, bottom-aligned and drawn to relative scale */
.pp-sizes {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
}

.pp-sizes__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.pp-sizes__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 4px;
    border-radius: 12px;
    color: #0d2642;
    text-decoration: none;
}

a.pp-sizes__link:hover,
a.pp-sizes__link:focus {
    background: #fef9f3;
    color: #0d2642;
    text-decoration: none;
}

.pp-sizes__figure {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 120px;
    width: 100%;
}

.pp-sizes__img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.pp-sizes__item--toy .pp-sizes__img {
    height: 40%;
}

.pp-sizes__item--small .pp-sizes__img {
    height: 55%;
}

.pp-sizes__item--medium .pp-sizes__img {
    height: 70%;
}

.pp-sizes__item--large .pp-sizes__img {
    height: 85%;
}

.pp-sizes__caption {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-wrap: balance;
}

.pp-sizes__examples {
    font-size: 13px;
    color: #7a5028;
    text-wrap: balance;
}

.pp-sizes__examples a {
    color: #92560e;
}

@media (max-width: 575px) {
    .pp-sizes {
        gap: 4px;
    }

    .pp-sizes__figure {
        height: 64px;
    }

    .pp-sizes__caption {
        font-size: 12px;
    }

    .pp-sizes__examples {
        display: none;
    }
}
