/**
 * Page-specific styles for /nutrition-health/feeding-positioning-manual/
 * Page ID: 52233
 */

/* ================================
   Language Buttons - Fix pill shape
   ================================ */

/* Target the language buttons specifically - restore square/rounded rectangle shape */
.page-feeding-positioning-manual .wp-block-buttons.is-content-justification-space-between .wp-block-button__link {
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure proper spacing between language buttons */
.page-feeding-positioning-manual .wp-block-buttons.is-content-justification-space-between {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center !important;
}

.page-feeding-positioning-manual .wp-block-buttons.is-content-justification-space-between .wp-block-button {
    margin: 5px;
}


/* ================================
   Table Styling - Download Table
   ================================ */

/* Table container */
.page-feeding-positioning-manual .wp-block-table {
    margin-top: 30px;
    margin-bottom: 30px;
    overflow-x: auto;
}

/* Table base styling - cleaner single border */
.page-feeding-positioning-manual .wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    border: none;
    border-top: 2px solid var(--c-blue, #007086);
}

/* Table cells - horizontal lines only */
.page-feeding-positioning-manual .wp-block-table td {
    padding: 14px 24px;
    border: none;
    border-bottom: 1px solid var(--c-light-gray, #e8ebef);
    vertical-align: middle;
    line-height: 1.5;
}

/* First column - Download links */
.page-feeding-positioning-manual .wp-block-table td:first-child {
    width: 130px;
    min-width: 130px;
    text-align: left;
    font-weight: 600;
    padding-left: 16px;
    white-space: nowrap;
}

/* Download link styling - make it look like a link/button */
.page-feeding-positioning-manual .wp-block-table td:first-child a {
    color: var(--c-blue, #007086);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.page-feeding-positioning-manual .wp-block-table td:first-child a:hover {
    border-bottom-color: var(--c-blue, #007086);
    color: var(--c-blue, #007086);
}

/* Hide the ugly dash separators */
.page-feeding-positioning-manual .wp-block-table .has-inline-color.has-light-gray-color {
    display: none;
}

/* Style separator rows - make them a clean visual break */
.page-feeding-positioning-manual .wp-block-table tr:has(.has-light-gray-color) {
    background-color: var(--c-lighter-gray, #f7f8fa);
}

.page-feeding-positioning-manual .wp-block-table tr:has(.has-light-gray-color) td {
    padding: 6px 16px;
    height: 8px;
    border-bottom: 2px solid var(--c-light-gray, #e8ebef);
}

/* PART headers - make them prominent */
.page-feeding-positioning-manual .wp-block-table td:nth-child(2) strong:only-child {
    color: var(--c-blue, #007086);
    font-size: 1.05em;
}

/* Rows with PART headers get a subtle background */
.page-feeding-positioning-manual .wp-block-table tr:has(td:nth-child(2) > strong:first-child:contains("PART")) {
    background-color: var(--c-lighter-gray, #f7f8fa);
}

/* Chapter titles styling */
.page-feeding-positioning-manual .wp-block-table td:nth-child(2) strong:first-child {
    color: var(--c-darker-gray, #212529);
}

/* Sub-items with em dash */
.page-feeding-positioning-manual .wp-block-table td:nth-child(2):first-letter {
    /* Style for items starting with — */
}

/* Empty first cells (no download) - for chapter headings and sub-items */
.page-feeding-positioning-manual .wp-block-table td:first-child:empty {
    background: transparent;
}

/* Hover effect on rows with downloads */
.page-feeding-positioning-manual .wp-block-table tr:hover {
    background-color: rgba(0, 112, 134, 0.03);
}

/* Don't hover separator rows */
.page-feeding-positioning-manual .wp-block-table tr:has(.has-light-gray-color):hover {
    background-color: var(--c-lighter-gray, #f7f8fa);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-feeding-positioning-manual .wp-block-table td:first-child {
        width: 80px;
        font-size: 0.85rem;
    }

    .page-feeding-positioning-manual .wp-block-table td {
        padding: 10px 12px;
    }

    .page-feeding-positioning-manual .wp-block-buttons.is-content-justification-space-between .wp-block-button__link {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}
