/* Interior page layouts follow the first Auris homepage proposal. Gutenberg also
   renders the content blocks outside the front-end template while editing. */
:is(.av-interior, .editor-styles-wrapper, .auris-not-found) {
    --ink: #303332;
    --paper: white;
    --lime: #12d523;
    --muted: #535954;
    --line: #d4d8d4;
    --display: "Auris Barlow", Manrope, system-ui, sans-serif;
    --body: Manrope, system-ui, sans-serif;
    --interior-edge: var(--av-edge, clamp(18px, 4.2vw, 80px));
    --interior-width: 1350px;
    --reading-width: 48rem;
    --interior-space: clamp(28px, 3.25vw, 52px);
}

.av-site > :is(header, main, footer, .wp-block-template-part),
.av-site .av-interior > .wp-block-post-content {
    margin-block: 0;
}

.av-site .av-interior {
    color: var(--av-text);
    background: #fff;
    min-width: 0;
}

.av-site .av-nav .current-menu-item > a,
.av-site .av-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: #157627;
    text-underline-offset: .35em;
}

:is(.av-interior, .editor-styles-wrapper) .auris-shell {
    width: min(calc(100% - 2 * var(--interior-edge)), var(--interior-width));
    margin-inline: auto;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-intro {
    margin-block: 0;
    padding-block: clamp(27px, 3.7vw, 57px) clamp(30px, 4vw, 60px);
    border: 0;
    background: #262b28;
    color: white;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-intro h1 {
    max-width: 34ch;
    margin: 0;
    font: 700 clamp(2.3rem, 4.35vw, 4.35rem)/1 var(--display);
    letter-spacing: -.025em;
    color: white;
    overflow-wrap: break-word;
    text-wrap: balance;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-intro p {
    color: #e7eae7;
    margin-block: .65rem 0;
    max-width: 65ch;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body {
    padding-block: var(--interior-space) clamp(38px, 4.5vw, 72px);
    min-width: 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body + .auris-page-body {
    padding-top: 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body > :first-child,
:is(.av-interior, .editor-styles-wrapper) .auris-prose > :first-child {
    margin-top: 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose {
    max-width: var(--reading-width);
    min-width: 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose :is(p, li) {
    font-size: clamp(.98rem, 1.05vw, 1.055rem);
    line-height: 1.69;
    overflow-wrap: anywhere;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose :is(p, ul, ol, figure, .wp-block-table) {
    margin-block: .9rem 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose :is(ul, ol) {
    padding-inline-start: 1.45rem;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose li + li {
    margin-top: .37rem;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose li::marker {
    color: #246c32;
    font-weight: 800;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body :is(h2, h3, h4, h5),
.av-site .auris-not-found h1 {
    font-family: var(--display);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.017em;
    line-height: 1.12;
    overflow-wrap: break-word;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body h2 {
    font-size: clamp(1.9rem, 2.6vw, 2.8rem);
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body :is(h3, h4, h5) {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose :is(h2, h3, h4, h5):not(:first-child) {
    margin-block: 1.12em .15em;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose a,
:is(.av-interior, .editor-styles-wrapper) .auris-text-link {
    color: #126a20;
    text-decoration-thickness: max(1px, .07em);
    text-underline-offset: .2em;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose .wp-block-table {
    width: 100%;
    overflow-x: auto;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose :is(td, th) {
    padding: .6rem .72rem;
    border-color: var(--line);
    text-align: start;
    vertical-align: top;
}

:is(.av-interior, .editor-styles-wrapper) .auris-prose .wp-block-image img {
    border-radius: 0;
    max-width: 100%;
    height: auto;
}

/* Editorial articles share a narrow reading measure and original related links. */
:is(.av-interior, .editor-styles-wrapper) .av-reading-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--reading-width)) minmax(17rem, 24rem);
    justify-content: space-between;
    align-items: start;
    gap: clamp(32px, 5vw, 88px);
}

:is(.av-interior, .editor-styles-wrapper) .av-reading-layout > * {
    margin: 0;
    width: 100%;
}

:is(.av-interior, .editor-styles-wrapper) .av-related {
    min-width: 0;
    padding: clamp(16px, 1.8vw, 26px);
    background: #f3f4f2;
    border-top: 1px solid #c5cbc5;
}

:is(.av-interior, .editor-styles-wrapper) .av-related :is(h2, h3) {
    margin: .85em 0 .25em;
    font-size: clamp(1.38rem, 1.7vw, 1.7rem);
}

:is(.av-interior, .editor-styles-wrapper) .av-related :is(p, li) {
    margin: .45rem 0;
    font-size: .91rem;
    line-height: 1.48;
}

:is(.av-interior, .editor-styles-wrapper) .av-related .wp-block-image {
    margin: 0 0 1rem;
}

:is(.av-interior, .editor-styles-wrapper) .av-related img {
    display: block;
    width: 100%;
    aspect-ratio: 1.95;
    object-fit: cover;
}

:is(.av-interior, .editor-styles-wrapper) .av-related a {
    color: #155f23;
    text-underline-offset: .17em;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body .wp-block-buttons,
.av-site .auris-not-found .wp-block-buttons {
    margin-top: 1.25rem;
    gap: .65rem;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body .wp-block-button__link,
.av-site .auris-not-found .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .68rem 1.12rem;
    border: 1px solid transparent;
    border-radius: 0;
    background: #12d523;
    color: #162218;
    font: 800 .94rem/1.3 var(--body);
    text-decoration: none;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body .is-style-outline .wp-block-button__link {
    background: #fff;
    color: var(--ink);
    border-color: #89928b;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body .wp-block-button__link:hover,
.av-site .auris-not-found .wp-block-button__link:hover {
    color: #142117;
    background: #27e63a;
}

/* Project catalogues and original reference scans retain their native links. */
:is(.av-interior, .editor-styles-wrapper) .auris-carousel {
    margin-block: 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__tools {
    margin: 0 0 14px;
    padding-block: 5px 10px;
    border-bottom: 1px solid var(--line);
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__position {
    font-size: .93rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__actions button {
    border: 1px solid #abb2ac;
    border-radius: 0;
    background: #fff;
    color: #303632;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__actions button:hover:not(:disabled) {
    background: #12d523;
    color: #152318;
    border-color: #12d523;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__track {
    --track-gap: clamp(14px, 1.55vw, 22px);
    grid-auto-columns: calc((100% - 2 * var(--track-gap)) / 3);
    gap: var(--track-gap);
    padding: 2px 2px .7rem;
    scrollbar-color: #8d978f #f0f1ef;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__card {
    gap: .43rem;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__art {
    aspect-ratio: 1.65;
    background: #eef0ec;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel--references .auris-carousel__art {
    aspect-ratio: 1.28;
    padding: 10px;
    background: #f1f3f0;
    border: 1px solid var(--line);
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__item-title {
    color: var(--ink);
    font: 700 clamp(1.43rem, 1.86vw, 1.93rem)/1.12 var(--display);
    letter-spacing: -.015em;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__summary {
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.55;
}

:is(.av-interior, .editor-styles-wrapper) .auris-carousel__item-link {
    justify-self: start;
    margin-top: .2rem;
    color: #165f22;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

:is(.av-interior, .editor-styles-wrapper) .auris-reference-paper {
    background: #f3f4f2;
    color: #404640;
}

/* Two small photographs alongside a lead image keep the construction details visible. */
:is(.av-interior, .editor-styles-wrapper) .auris-page-body:has(> .auris-project-gallery) {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(16rem, .8fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "photos story" "photos actions";
    align-items: start;
    gap: 8px clamp(28px, 3.8vw, 65px);
}

:is(.av-interior, .editor-styles-wrapper) .auris-project-gallery.wp-block-gallery {
    grid-area: photos;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(132px, 13vw, 195px);
    grid-auto-flow: dense;
    gap: clamp(7px, .7vw, 12px) !important;
    align-items: stretch;
    margin: 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-project-gallery.wp-block-gallery > figure.wp-block-image {
    /* Core applies a percentage of the whole gallery; here each cell already has a grid width. */
    width: 100% !important;
    height: 100%;
    min-height: 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #edf0ed;
}

:is(.av-interior, .editor-styles-wrapper) .auris-project-gallery :is(a, img) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:is(.av-interior, .editor-styles-wrapper) .auris-project-gallery:has(> figure:nth-child(3)) > figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

:is(.av-interior, .editor-styles-wrapper) .auris-project-gallery:is(:has(> figure:nth-child(2):last-child), :has(> figure:nth-child(4):last-child)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(165px, 17vw, 245px);
}

:is(.av-interior, .editor-styles-wrapper) .auris-project-gallery:has(> figure:nth-child(4):last-child) > figure:first-child {
    grid-row: auto;
    grid-column: auto;
}

:is(.av-interior, .editor-styles-wrapper) .auris-project-gallery > figure:only-child {
    grid-column: 1 / -1;
    grid-row: span 2;
}

:is(.av-interior, .editor-styles-wrapper) .auris-project-gallery + .auris-prose,
:is(.av-interior, .editor-styles-wrapper) .auris-page-body:has(> .auris-project-gallery) > .auris-prose {
    grid-area: story;
    width: auto;
    margin: 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body:has(> .auris-project-gallery) > .wp-block-buttons {
    grid-area: actions;
}

:is(.av-interior, .editor-styles-wrapper) .auris-google {
    margin-block: clamp(24px, 3vw, 44px) 0;
    background: #f3f4f2;
    border-top: 1px solid var(--line);
}

:is(.av-interior, .editor-styles-wrapper) .auris-google h2 {
    font: 700 clamp(1.9rem, 2.75vw, 2.85rem)/1.06 var(--display);
}

:is(.av-interior, .editor-styles-wrapper) .auris-google__rating strong {
    font-family: var(--display);
    font-weight: 700;
}

:is(.av-interior, .editor-styles-wrapper) .auris-contact-grid {
    gap: clamp(25px, 4vw, 64px);
    align-items: start;
    margin: 0 0 1.8rem;
}

:is(.av-interior, .editor-styles-wrapper) .auris-contact-card {
    padding: clamp(18px, 2.45vw, 36px);
    background: #f3f4f2;
    border-top: 1px solid var(--line);
}

:is(.av-interior, .editor-styles-wrapper) .auris-contact-inquiries > *,
:is(.av-interior, .editor-styles-wrapper) .auris-contact-card > * {
    margin-block: .8rem 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-contact-grid .wp-block-column > :first-child {
    margin-top: 0;
}

:is(.av-interior, .editor-styles-wrapper) .auris-contact-inquiries .auris-google--map {
    margin-top: 1.4rem;
}

:is(.av-interior, .editor-styles-wrapper) .auris-contact-inquiries .auris-google__map {
    min-height: clamp(220px, 28vw, 355px);
}

:is(.av-interior, .editor-styles-wrapper) .auris-page-body:has(> .estimate-form) {
    max-width: 56rem;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form {
    margin-top: 16px;
    max-width: none;
    background: #f5f6f3;
    border: 1px solid #d3d8d2;
    padding: clamp(18px, 2.8vw, 40px);
    color: var(--ink);
    accent-color: #16722a;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form > .estimate-form__hint:first-of-type {
    margin: 0 0 .9rem;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form__grid {
    gap: 1rem 1.4rem;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form__field > label,
:is(.av-interior, .editor-styles-wrapper) .estimate-form legend {
    display: block;
    margin-block: 0 .32rem;
    font-weight: 750;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form__choices {
    gap: .22rem 1.2rem;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form__wide .estimate-form__choices {
    display: grid;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form .estimate-form__choice,
:is(.av-interior, .editor-styles-wrapper) .estimate-form .estimate-form__consent {
    display: flex;
    gap: .38rem;
    align-items: start;
    padding-block: 4px;
    cursor: pointer;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form :is(textarea, input:not([type="radio"]):not([type="checkbox"])) {
    background: white;
    color: var(--ink);
    border-color: #959e95;
    border-radius: 0;
    caret-color: #196b25;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form :is(input, textarea, summary):focus-visible {
    outline: 2px solid #18732b;
    outline-offset: 2px;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form input::file-selector-button {
    border: 1px solid #aab2aa;
    border-radius: 0;
    background: #eef1ed;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form details {
    padding-block: 7px;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form summary {
    color: #165f22;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form button.estimate-form__submit {
    border: 0;
    border-radius: 0;
    min-height: 46px;
    padding: .7rem 1.45rem;
    font: 800 .96rem/1.35 var(--body);
    background: #12d523;
    color: #142217;
}

:is(.av-interior, .editor-styles-wrapper) .estimate-form button.estimate-form__submit:hover {
    background: #27e63a;
}

.av-site .auris-not-found {
    max-width: 72ch;
    margin-inline: auto;
    padding-block: clamp(42px, 8vw, 108px);
}

.av-site .auris-not-found h1 {
    font-size: clamp(2.3rem, 4.8vw, 4.25rem);
}

.av-site .av-site-areas {
    margin: 0;
    padding: 0 var(--av-pad);
    background: #f3f4f2;
    border-block: 1px solid #d4d8d4;
}

.av-site .av-site-areas summary {
    padding-block: 19px;
    color: #303332;
    cursor: pointer;
    font: 700 clamp(1.24rem, 1.9vw, 1.65rem)/1.3 var(--av-display);
}

.av-site .av-site-areas summary::marker {
    color: #18722a;
}

.av-site .av-site-areas :is(ul.av-local-list, .av-local-list ul) {
    padding: 0 0 22px;
    list-style: none;
    columns: 3;
    column-gap: 20px;
}

.av-site .av-site-areas li {
    break-inside: avoid;
    margin: 0;
    padding-block: 4px;
    font-size: .91rem;
    line-height: 1.45;
}

.av-site .av-site-areas a:hover {
    color: #126a20;
}

@media (max-width: 900px) {
    :is(.av-interior, .editor-styles-wrapper) .auris-carousel__track {
        grid-auto-columns: calc((100% - var(--track-gap)) / 2);
    }
    :is(.av-interior, .editor-styles-wrapper) .av-reading-layout {
        grid-template-columns: minmax(0, 1.8fr) minmax(14rem, 1fr);
        gap: 25px;
    }
}

@media (max-width: 781px) {
    :is(.av-interior, .editor-styles-wrapper) .av-reading-layout,
    :is(.av-interior, .editor-styles-wrapper) .auris-page-body:has(> .auris-project-gallery) {
        display: block;
    }
    :is(.av-interior, .editor-styles-wrapper) .av-related {
        margin-top: 23px;
    }
    :is(.av-interior, .editor-styles-wrapper) .auris-project-gallery.wp-block-gallery {
        margin-block: 1.1rem;
    }
    .av-site .av-site-areas :is(ul.av-local-list, .av-local-list ul) {
        columns: 2;
    }
}

@media (max-width: 620px) {
    :is(.av-interior, .editor-styles-wrapper) .auris-page-intro {
        padding-block: 24px 27px;
    }
    :is(.av-interior, .editor-styles-wrapper) .auris-page-intro h1 {
        font-size: clamp(2.08rem, 8.25vw, 2.8rem);
    }
    :is(.av-interior, .editor-styles-wrapper) .auris-carousel__track {
        grid-auto-columns: 85%;
        gap: 12px;
    }
    :is(.av-interior, .editor-styles-wrapper) .auris-project-gallery.wp-block-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(88px, 27vw, 155px);
    }
    :is(.av-interior, .editor-styles-wrapper) .auris-project-gallery:has(> figure:nth-child(3)) > figure:first-child {
        grid-column: 1 / -1;
        grid-row: span 2;
    }
    :is(.av-interior, .editor-styles-wrapper) .auris-project-gallery:has(> figure:nth-child(4):last-child) > figure:first-child {
        grid-row: auto;
        grid-column: auto;
    }
    :is(.av-interior, .editor-styles-wrapper) .estimate-form {
        padding: 15px;
    }
    .av-site .av-site-areas :is(ul.av-local-list, .av-local-list ul) {
        columns: 1;
    }
}


.av-live-home .av-home-main > .wp-block-post-content,
.av-live-home .av-home-main > .wp-block-post-content > * { margin-block: 0; }
.av .av-head .wp-block-site-logo a, .av .av-head .wp-block-site-logo img { display: block; }
.auris-carousel__art { position: relative; }
.auris-carousel__alternate { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.auris-carousel__card:focus-visible .auris-carousel__alternate { opacity: 1; }
@media (hover: hover) {
    .auris-carousel__card:hover .auris-carousel__alternate { opacity: 1; }
}
.auris-carousel__badge {
    position: absolute; inset: 10px auto auto 10px; padding: 3px 9px;
    color: #202521; background: #fff; font: 750 .78rem/1.5 Manrope, sans-serif;
}
