/* WordPress adapters and ordinary CMS content.
 * The ten preceding files preserve the supplied design unchanged. Keep extra
 * content styles inside .ilg-* or editor containers; brand pages use original
 * .hero/.article-* markup and the original header/footer components.
 */

/* WordPress menu lists inherit the original navigation's typography and gaps. */
.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 29px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .menu > li {
    margin: 0;
    padding: 0;
}

.main-nav .current-menu-item > a {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Accessibility utilities used by WordPress forms, pagination and templates. */
[hidden] {
    display: none !important;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
}

.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    margin: 0;
    left: 1rem;
    top: 1rem;
    z-index: 99999;
    padding: .8rem 1.2rem;
    background: var(--paper);
    color: var(--ink);
}

/* Standard pages, posts, archive cards and empty/search states. */
.ilg-container {
    width: min(1180px, calc(100% - 3rem));
    margin-inline: auto;
}

.ilg-page {
    max-width: 820px;
    width: calc(100% - 3rem);
    margin: 0 auto;
    padding-block: 3rem 5rem;
}

.ilg-page-heading {
    margin-bottom: 2.5rem;
}

.ilg-page-heading h1,
.ilg-empty h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin-top: 0;
}

.ilg-prose h2 {
    font-size: 2.1rem;
    margin-top: 2.5rem;
}

.ilg-prose h3 {
    margin-top: 2rem;
}

.ilg-prose .alignwide {
    width: min(1100px, calc(100vw - 3rem));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.ilg-prose .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.ilg-article-meta {
    font-size: .85rem;
    color: var(--muted);
}

.ilg-author {
    border-top: 1px solid var(--line);
    margin-top: 3rem;
    padding-top: 1rem;
}

.ilg-archive {
    padding-block: 4rem;
}

.ilg-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.ilg-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.ilg-post-grid h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.ilg-card p:last-child {
    margin-bottom: 0;
}

.ilg-empty {
    min-height: 55vh;
    padding-block: 4rem;
}

.ilg-empty .search-form,
.ilg-archive .navigation.pagination,
.ilg-page .post-navigation {
    margin-top: 2rem;
}

.ilg-eyebrow {
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 600;
    font-size: .72rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ilg-unavailable {
    display: inline-block;
    padding-block: .75rem;
    font-size: .95em;
}

/* CMS-only blocks and controls; these do not match the fixed brand templates. */
:where(.ilg-entry-content, .editor-styles-wrapper) > * {
    margin-block-start: 0;
}

:where(.ilg-page, .ilg-archive, .ilg-empty, .editor-styles-wrapper) img {
    max-width: 100%;
    height: auto;
}

:where(.ilg-entry-content, .editor-styles-wrapper) figcaption {
    color: var(--muted);
    font-size: .8rem;
}

:where(.ilg-page, .ilg-archive, .ilg-empty, .editor-styles-wrapper) :is(input, select, textarea) {
    max-width: 100%;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: .65rem;
    background: var(--white);
    color: var(--ink);
}

.ilg-button,
:where(.ilg-entry-content, .editor-styles-wrapper) :is(.wp-block-button__link, .inside-convert-link) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    padding: .8rem 1.4rem;
    border: 0;
    border-radius: .5rem;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.ilg-button:hover,
:where(.ilg-entry-content, .editor-styles-wrapper) :is(.wp-block-button__link, .inside-convert-link):hover {
    filter: brightness(.9);
}

:where(.ilg-entry-content, .editor-styles-wrapper) .wp-block-details {
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 0;
}

:where(.ilg-entry-content, .editor-styles-wrapper) .wp-block-details summary {
    font-size: 1.1rem;
    font-weight: 600;
    padding-right: 1rem;
    cursor: pointer;
}

:where(.ilg-entry-content, .editor-styles-wrapper) .wp-block-details p {
    margin-top: 1rem;
}

:where(.ilg-entry-content, .editor-styles-wrapper) .wp-block-table {
    overflow-x: auto;
}

:where(.ilg-entry-content, .editor-styles-wrapper) .wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: .95rem;
}

:where(.ilg-entry-content, .editor-styles-wrapper) .wp-block-table :is(th, td) {
    text-align: left;
    padding: 1rem;
    border: 1px solid var(--line);
}

:where(.ilg-entry-content, .editor-styles-wrapper) .wp-block-table th {
    background: var(--sage);
}

:where(.ilg-entry-content, .editor-styles-wrapper) .wp-block-column {
    min-width: 0;
}

@media (max-width: 1100px) {
    .main-nav .menu {
        gap: 17px;
    }
}

@media (max-width: 1000px) {
    .ilg-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .main-nav .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 23px;
    }

    /* Without JS, keep the links in normal document flow and hide the toggle. */
    .no-js .site-header {
        height: auto;
        position: relative;
    }

    .no-js .header-inner {
        min-height: 80px;
        flex-wrap: wrap;
        padding-block: 16px;
    }

    .no-js .menu-toggle {
        display: none;
    }

    .no-js .main-nav {
        display: flex;
        position: static;
        order: 3;
        width: 100%;
        padding: 0 0 8px;
        border: 0;
        box-shadow: none;
        font-size: 14px;
    }

    .no-js .main-nav,
    .no-js .main-nav .menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px 23px;
    }
}

@media (max-width: 640px) {
    .ilg-container,
    .ilg-page {
        width: calc(100% - 36px);
    }

    .ilg-post-grid {
        grid-template-columns: 1fr;
    }
}
