/* Additive search and homepage markup. Alto layout stays. */

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    padding: 0.6rem 1rem;
    background: var(--dark-gray-color, #1a1a1a);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-intro {
    margin: 0 auto 2.4rem;
}

.site-intro-inner {
    max-width: 42rem;
}

.site-kicker {
    margin: 0 0 0.8rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.site-intro .site-title {
    margin: 0;
    font-size: clamp(3.2rem, 5vw, 4.4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.site-intro .site-description {
    margin: 1rem 0 0;
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--secondary-text-color);
}

.topic-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.topic-chip {
    display: inline-flex;
    padding: 0.4rem 1rem;
    border: 1px solid var(--mid-gray-color, #d9d9d9);
    border-radius: 999px;
    color: var(--primary-text-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}

.topic-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.paged-kicker {
    margin: 0 auto 2.4rem;
    max-width: var(--container-width, 1200px);
    padding: 0 4vw;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--secondary-text-color);
}

.post-breadcrumbs {
    margin: 0 0 1.2rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--secondary-text-color);
}

.post-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-breadcrumbs li:not(:last-child)::after {
    padding: 0 7px 0 4px;
    font-family: serif;
    font-weight: 400;
    content: "/";
    opacity: 0.55;
}

.post-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.post-breadcrumbs a:hover {
    color: var(--primary-color);
}

.gh-content.gh-preview {
    margin-bottom: 0;
}

.post-access-label {
    display: inline-flex;
    margin-left: 0.6rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gh-foot-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    margin-top: 0.8rem;
    font-size: 1.3rem;
}

.gh-foot-extra a {
    color: var(--secondary-text-color);
}

.gh-foot-extra a:hover {
    color: var(--primary-text-color);
}

/* Footer: keep link row horizontal (Alto stacks it on small screens). */
.gh-foot {
    white-space: normal;
}

.gh-copyright {
    white-space: nowrap;
}

.gh-foot-menu .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.6rem;
    max-width: 100%;
}

.gh-foot-menu .nav li {
    flex: 0 1 auto;
    min-width: 0;
}

.gh-foot-menu .nav li + li {
    margin-top: 0;
}

.gh-foot-menu .nav li + li::before {
    display: inline-block;
    padding: 0 1.2rem;
    font-size: 0.9rem;
    line-height: 0;
    content: "•";
}

.gh-foot-center {
    gap: 1.6rem;
    max-width: 100%;
}

/* Kill mobile horizontal scroll from carousel stage + off-canvas nav. */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100%;
}

.gh-outer,
.site-content,
.featured-posts,
.post-feed {
    max-width: 100%;
}

.featured-posts,
.featured-posts .owl-stage-outer {
    overflow-x: clip;
}

@media (max-width: 767px) {
    .gh-foot-inner {
        gap: 2rem;
        max-width: 100%;
    }

    .gh-copyright,
    .gh-powered-by {
        text-align: center;
    }

    .gh-foot-menu .nav li + li::before {
        padding: 0 0.7rem;
    }

    #gh-head .gh-head-menu,
    #gh-head .gh-head-actions {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .owl .owl-prev {
        left: 10px;
    }

    .owl .owl-next {
        right: 10px;
    }

    .site-intro,
    .site-intro-inner {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Featured carousel uses source CSS; keep the crop fix available without gulp rebuild. */
.featured-posts {
    min-height: 220px;
}

.featured-posts .post-image {
    object-fit: contain;
    object-position: center top;
    background-color: var(--light-gray-color, #e6e6e6);
}

@media (max-width: 767px) {
    .site-intro .site-title {
        font-size: 2.8rem;
    }
}
