/**
 * Other Spirit
 * Standard page layout
 */


/* ---------------------------------------------------------
   Page
--------------------------------------------------------- */

.os-standard-page {
    background: var(--os-bg);
}

.os-page-content {
    padding-block: var(--os-section-space);
}


/* ---------------------------------------------------------
   Common page hero
--------------------------------------------------------- */

.os-page-hero {
    position: relative;

    min-height: clamp(420px, 58vh, 720px);

    display: flex;
    align-items: flex-end;

    margin-bottom: var(--os-section-space);

    overflow: hidden;
}

.os-page-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.os-page-hero__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.os-page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to top,
            rgba(7, 8, 9, 0.96) 0%,
            rgba(7, 8, 9, 0.35) 55%,
            rgba(7, 8, 9, 0.10) 100%
        );
}

.os-page-hero__content {
    position: relative;
    z-index: 2;

    padding: clamp(35px, 5vw, 70px);
}

.os-page-hero__title {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 5.5rem);
}


/* ---------------------------------------------------------
   Standard content
--------------------------------------------------------- */

.os-content-section {
    margin-block: var(--os-section-space);
}

.os-content-section:first-child {
    margin-top: 0;
}

.os-content-section:last-child {
    margin-bottom: 0;
}

.os-content-section h2 {
    margin-bottom: 1.4rem;
}

.os-content-text {
    max-width: 800px;
}

.os-content-text--wide {
    max-width: 1050px;
}


/* ---------------------------------------------------------
   Two columns
--------------------------------------------------------- */

.os-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}


/* ---------------------------------------------------------
   Generic image
--------------------------------------------------------- */

.os-page-image {
    overflow: hidden;
    border: 1px solid var(--os-border);
}

.os-page-image img {
    width: 100%;
}


/* ---------------------------------------------------------
   Generic quote
--------------------------------------------------------- */

.os-page-quote {
    max-width: 900px;

    margin: clamp(80px, 10vw, 150px) auto;

    color: var(--os-accent);

    font-family: var(--os-font-quote);
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-style: italic;

    line-height: 1.3;
    text-align: center;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 768px) {

    .os-two-columns {
        grid-template-columns: 1fr;
    }

    .os-page-hero {
        min-height: 500px;
    }

    .os-page-hero__content {
        padding-inline: 24px;
    }
}
/* Plain editor content needs no layout markup or page builder. */
.os-page-heading {
    max-width: 1050px;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.os-page-heading h1,
.os-page-copy h1 {
    margin-bottom: 0.6em;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    overflow-wrap: anywhere;
}

.os-page-copy {
    display: flow-root;
    min-width: 0;
    overflow-wrap: anywhere;
}

.os-page-copy > :where(p, ul, ol, dl, h2, h3, h4, h5, h6, blockquote) {
    max-width: 800px;
}

.os-page-copy :where(h2, h3, h4, h5, h6) {
    margin-block: 1.8em 0.65em;
}

.os-page-copy > :first-child,
.os-page-copy .os-content-section > :first-child {
    margin-top: 0;
}

.os-page-copy > :last-child {
    margin-bottom: 0;
}

.os-page-copy a:not(.os-cta):not(.os-button):not(.wp-element-button) {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-color: var(--os-muted);
}

.os-page-copy :where(ul, ol) {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.os-page-copy li + li { margin-top: 0.4em; }
.os-page-copy li > :where(ul, ol) { margin-top: 0.4em; }
.os-page-copy dt { font-weight: 600; }
.os-page-copy dd { margin: 0 0 1em 1.5em; }

.os-page-copy blockquote:not(.os-page-quote) {
    margin: 2em 0;
    padding: 0.2em 0 0.2em 24px;
    border-left: 1px solid var(--os-border);
    font-family: var(--os-font-quote);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-style: italic;
}

.os-page-copy blockquote > :last-child { margin-bottom: 0; }
.os-page-copy figure { max-width: 100%; margin: 2em 0; }
.os-page-copy .aligncenter { margin-inline: auto; }
.os-page-copy .alignleft { float: left; margin: 0 24px 24px 0; }
.os-page-copy .alignright { float: right; margin: 0 0 24px 24px; }
.os-page-copy :where(.alignwide, .alignfull) { max-width: 100%; width: 100%; margin-inline: 0; }
.os-page-copy :where(figcaption, .wp-caption-text) { color: var(--os-muted); font-size: 0.85rem; margin-top: 12px; }
.os-page-copy :where(video, iframe, embed, object) { max-width: 100%; }
.os-page-copy :where(audio, video) { width: 100%; }
.os-page-copy .wp-block-embed__wrapper { max-width: 100%; }
.os-page-copy .wp-has-aspect-ratio iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.os-page-copy hr { border: 0; border-top: 1px solid var(--os-border); margin-block: 2.5rem; }

.os-page-copy table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    margin-block: 2em;
    border-collapse: collapse;
    font-size: 0.9rem;
    overflow-wrap: normal;
}

.os-page-copy :where(th, td) {
    min-width: 8rem;
    padding: 12px 16px;
    border: 1px solid var(--os-border);
    text-align: left;
}

.os-page-copy th { white-space: nowrap; }

.os-page-copy pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px;
    background: rgba(217, 199, 163, 0.04);
    border: 1px solid var(--os-border);
    font-size: 0.85rem;
}

.os-page-copy :where(.os-button, .wp-element-button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 24px;
    border: 1px solid var(--os-border);
    border-radius: 0;
    background: transparent;
    color: var(--os-accent);
    font: 500 0.78rem var(--os-font-body);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.os-page-copy :where(.os-button, .wp-element-button):hover {
    background: rgba(217, 199, 163, 0.08);
}

.os-two-columns > * { min-width: 0; }

.os-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.os-page-links > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--os-border);
}

@media (max-width: 600px) {
    .os-page-copy .alignleft,
    .os-page-copy .alignright { float: none; margin: 24px 0; }
    .os-page-hero { min-height: 360px; }
}
