/* Building photographs, supporting documents and project locations. */
:is(.av, .editor-styles-wrapper) {
    --detail-forest: #193625;
    --detail-leaf: #176634;
    --detail-mint: #e6f4e8;
    --detail-paper: #f4f6f3;
    --detail-rule: #d7e0d8;
}
.av a:focus-visible, .av button:focus-visible, .av summary:focus-visible {
    outline: 3px solid #188445;
    outline-offset: 4px;
}
.av :is(.av-hero,.av-reviews,.av-local,.av-footer) :focus-visible { outline-color: #94ff9e; }
.av ::selection { background: #a0f5aa; color: #152d20; }

/* The second action and the caption carry the same pictograms as the catalogue. */
:is(.av-live-home,.editor-styles-wrapper) .av-title :is(h1, h2) {
    max-width: 18ch;
    font-size: clamp(2.4rem, 3.5vw, 3.22rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.037em;
    text-transform: uppercase;
    text-wrap: pretty;
}
:is(.av-live-home,.editor-styles-wrapper) .av-title :is(h1, h2) mark { color: #78ef85; }
.ag-hero-actions .wp-block-button + .wp-block-button .wp-block-button__link::before,
.ag-hero-actions .wp-block-button:first-child .wp-block-button__link::after,
.av .av-photo figcaption::before, .av .ag-project-link a::after,
.av .av-gallerylink a::before, .av .ag-letter a::after,
.av .ag-guide-actions a::before, .av .av-nav a[href*="budowa-domow-warszawa-pytania"]::before {
    content: "";
    display: inline-block;
    flex: none;
    width: 1.1em;
    height: 1.1em;
    padding: 0;
    background: currentColor;
    mask: var(--detail-icon) center / contain no-repeat;
}
.ag-hero-actions .wp-block-button:first-child .wp-block-button__link::after {
    --detail-icon: url("icons/arrow-right.svg");
    margin-left: .55em;
}
.ag-hero-actions .wp-block-button + .wp-block-button .wp-block-button__link::before {
    --detail-icon: url("icons/house.svg");
    color: #92efa0;
    margin-right: .6em;
}
:is(.av-live-home,.editor-styles-wrapper) .av-photo figcaption {
    inset: auto var(--ag-pad) 65px auto;
    display: inline-flex;
    align-items: center;
    gap: .55em;
    border: 1px solid #d7e9db69;
    border-radius: 30px;
    padding: .46em .85em;
    background-color: #192e24d9;
}
.av .av-photo figcaption::before { --detail-icon: url("icons/hard-hat.svg"); color: #9cf3a3; }
.av .av-nav a[href*="budowa-domow-warszawa-pytania"] { display: inline-flex; align-items: center; gap: .35em; }
.av .av-nav a[href*="budowa-domow-warszawa-pytania"]::before { --detail-icon: url("icons/book-open.svg"); color: var(--detail-leaf); }

/* Company terms share a single surface with the photograph of the actual build. */
:is(.av-live-home,.editor-styles-wrapper) .ag-about-grid { gap: clamp(28px, 5vw, 82px); align-items: start; }
.ag-about-evidence { min-width: 0; }
.ag-about-evidence .ag-about-photo img { aspect-ratio: 2.9; object-position: 50% 52%; }
.ag-facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: 10px;
}
.ag-facts .ag-fact {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: clamp(15px,1.65vw,24px);
    background: var(--detail-paper);
    border-radius: 12px;
}
.ag-facts .ag-fact:nth-child(4) { background: var(--detail-mint); }
.ag-fact .wp-block-image {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 0 12px;
    background: #fff;
    border-radius: 10px;
}
.ag-fact .wp-block-image img { width: 22px; height: 22px; filter: invert(29%) sepia(45%) saturate(800%) hue-rotate(90deg); }
:is(.av-live-home,.editor-styles-wrapper) .ag-facts h3 {
    margin: 0;
    color: var(--detail-forest);
    font: 780 clamp(1.15rem,2vw,1.85rem)/1.18 var(--ag-display);
    letter-spacing: -.036em;
}
:is(.av-live-home,.editor-styles-wrapper) .ag-facts p { margin: .32em 0 0; font-size: .83rem; line-height: 1.42; }
:is(.av-live-home,.editor-styles-wrapper) .ag-about-copy h3 {
    display: flex;
    align-items: center;
    gap: .7em;
    border: 0;
    padding: .95em 1em;
    background: var(--detail-mint);
    border-radius: 12px;
    color: var(--detail-forest);
}
.ag-about-copy h3::before {
    content: ""; flex: none; width: 1.45em; height: 1.45em;
    background: var(--detail-leaf); mask: url("icons/shield-check.svg") center / contain no-repeat;
}

/* A plan, door swings and stair treads lend scale to the drawing behind the glossary. */
:is(.av-live-home,.editor-styles-wrapper) .ag-glossary {
    isolation: isolate;
    background: #1c472d;
    overflow: hidden;
}
.ag-glossary::before, .auris-page-intro::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(50%,570px);
    z-index: -1;
    pointer-events: none;
    background: url("rzut.svg") center right / auto 138% no-repeat;
    opacity: .6;
}
.ag-glossary h2 a {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: clamp(13px,2vw,26px);
    padding: clamp(19px,3vw,40px);
    text-wrap: balance;
}
.ag-glossary h2 a::before {
    content: ""; width: 1.1em; height: 1.1em; box-sizing: content-box; padding: .52em;
    border: 1px solid #9bd7a36b; border-radius: 12px;
    background: #d6ffda url("icons/book-open.svg") center / 1.1em no-repeat;
}
.ag-glossary h2 a::after {
    width: 42px; height: 42px; border-radius: 50%;
    mask: none; background: white url("icons/arrow-right.svg") center / 19px no-repeat;
}
:is(.av-live-home,.editor-styles-wrapper) .ag-scope {
    background: var(--detail-paper);
}
:is(.av-live-home,.editor-styles-wrapper) .ag-scope-intro { max-width: 84ch; }
:is(.av-live-home,.editor-styles-wrapper) .ag-scope-grid { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); }
.ag-scope-grid > div { padding: clamp(20px,2.4vw,34px); }
:is(.av-live-home,.editor-styles-wrapper) .ag-scope-works { background: var(--detail-mint); }
:is(.av-live-home,.editor-styles-wrapper) .ag-scope-grid ul { list-style: none; padding: 0; }
:is(.av-live-home,.editor-styles-wrapper) .ag-scope-grid li {
    position: relative; padding: .64rem 0 .64rem 2.2rem; line-height: 1.5;
}
.ag-scope-grid li + li { border-top: 1px solid #a5bca563; }
.ag-scope-grid li::before {
    content: ""; position: absolute; left: 0; top: .78rem; width: 19px; height: 19px;
    background: var(--detail-leaf); mask: var(--detail-icon,url("icons/check.svg")) center / contain no-repeat;
}
.ag-scope-questions li:nth-child(1) { --detail-icon: url("icons/clipboard-list.svg"); }
.ag-scope-questions li:nth-child(2) { --detail-icon: url("icons/clock-3.svg"); }
.ag-scope-questions li:nth-child(3) { --detail-icon: url("icons/hard-hat.svg"); }
.ag-scope-questions li:nth-child(4) { --detail-icon: url("icons/ruler.svg"); }

/* A two-photo project card has one destination, including in the no-script view. */
:is(.av-live-home,.editor-styles-wrapper) .ag-projects {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    padding: var(--ag-space) var(--ag-pad) clamp(36px,4vw,60px);
    background: #fff;
}
:is(.av-live-home,.editor-styles-wrapper) .ag-projects > h2 { margin: 0; font-size: clamp(2rem,3.8vw,3.6rem); line-height: 1.07; }
.ag-projects > * { min-width: 0; }
.ag-project-filters > .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; }
.ag-project-filters .wp-block-button__link {
    display: inline-flex; align-items: center; gap: .45em; padding: .65em .85em;
    border: 1px solid transparent; border-radius: 30px; background: #f0f4f0; color: #334e3c;
    font: 680 .83rem/1.35 var(--ag-body); cursor: pointer; text-decoration: none;
}
.ag-project-filters .wp-block-button__link:hover { border-color: #75a684; }
.ag-project-filters .wp-block-button__link[aria-pressed=true] { background: var(--detail-forest); color: #fff; }
.ag-project-filters button:disabled { opacity: .5; cursor: default; }
.ag-count { font-variant-numeric: tabular-nums; font-size: .77em; }
.ag-project-grid {
    grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,2vw,28px); margin: 0;
}
:is(.av,.editor-styles-wrapper) .ag-project-grid .av-project {
    position: relative; min-width: 0; margin: 0; overflow: hidden; box-shadow: none; border: 1px solid var(--detail-rule);
}
.ag-project-grid .av-project[hidden], .ag-projects .ag-project-more[hidden] { display: none !important; }
.av .ag-projects:not(.ag-filter-ready) .ag-project-more { display: none; }
:is(.av,.editor-styles-wrapper) .ag-project-grid .av-project-photos {
    position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr);
    gap: 3px; margin: 0; background-color: #fff;
}
:is(.av,.editor-styles-wrapper) .ag-project-grid .av-project-photos > figure {
    grid-area: auto; width: 100%; min-width: 0; visibility: visible; opacity: 1; margin: 0; overflow: hidden;
}
.ag-project-grid .av-project-photos img {
    display: block; width: 100%; height: clamp(155px,15.3vw,230px); object-fit: cover;
}
.ag-project-grid .av-project-photos:not(:has(> figure + figure a)) > figure:first-child,
.ag-project-grid .av-project-photos:not(:has(> figure + figure a)) > figure:first-child a { position: static; }
.ag-project-grid .av-project-photos:not(:has(> figure + figure a)) > figure:first-child a::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
}
.ag-project-grid .av-project-photos a:focus-visible::after { outline: 3px solid #1b7b43; outline-offset: -4px; }
:is(.av,.editor-styles-wrapper) .ag-project-grid .av-project .av-new {
    position: absolute; z-index: 1; top: 12px; left: 12px; margin: 0; padding: .28em .65em; border-radius: 6px;
}
:is(.av,.editor-styles-wrapper) .ag-project-grid .av-project :is(.is-style-ag-warsaw,.is-style-ag-region) {
    display: flex; align-items: center; gap: .36rem; margin: 16px 21px 0;
    color: var(--detail-leaf); font: 700 .79rem/1.4 var(--ag-body);
}
:is(.is-style-ag-warsaw,.is-style-ag-region)::before {
    content: ""; width: 15px; height: 15px; background: currentColor; mask: url("icons/map-pin.svg") center / contain no-repeat;
}
.av .ag-project-grid .av-project h3 { margin: 14px 21px 0; font-size: clamp(1.17rem,1.7vw,1.58rem); }
.av .ag-project-grid .av-project :is(.is-style-ag-warsaw,.is-style-ag-region) + h3 { margin-top: 5px; }
.av .ag-project-grid .av-project > p:not(.av-new):not(.is-style-ag-warsaw):not(.is-style-ag-region) { margin: .5rem 21px 1rem; }
.av .ag-project-grid .ag-project-link { margin: auto 21px 0; padding: 5px 0; border-top: 1px solid var(--detail-rule); }
.av .ag-project-link a::after { --detail-icon: url("icons/arrow-right.svg"); }
.ag-projects .ag-project-more { grid-column: 1/-1; justify-self: center; margin: 0; }
.ag-projects .ag-project-more a, .ag-projects .ag-project-more button {
    border: 1px solid #a0bba7; border-radius: 8px; background: #fff; color: var(--detail-forest);
    padding: .7rem 1.15rem; font: 700 .89rem/1.4 var(--ag-body); cursor: pointer;
}
.ag-projects .ag-project-more button:hover { background: var(--detail-mint); }
.av .ag-projects .av-gallerylink { grid-column: 1/-1; margin: 0; }
.av .ag-projects .av-gallerylink a {
    gap: .55em; padding: .65rem .95rem; border: 0; border-radius: 8px; color: white; background: var(--detail-forest); text-decoration: none;
}
.av .av-gallerylink a::before { --detail-icon: url("icons/layers.svg"); }
.av .ag-projects .av-gallerylink a::after { content: none; }
.ag-projects .av-album { grid-column: 1/-1; }

/* Excerpts from three signed reference letters, with links to the originals. */
:is(.av-live-home,.editor-styles-wrapper) .av-reviews { background: #192820; }
.av .av-reviews .auris-google { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.av .av-reviews .auris-google__map { min-height: 190px; height: 205px; }
.ag-letters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0 0; }
.ag-letters .ag-letter { display: flex; flex-direction: column; margin: 0; padding: clamp(18px,2vw,29px); background: #253b2e; border-radius: 12px; }
.ag-letter::before { content: ""; width: 26px; height: 26px; background: #91ef9e; mask: url("icons/quote.svg") center / contain no-repeat; }
.ag-letters .ag-letter blockquote { border: 0; padding: 0; margin: .85rem 0; color: #fff; }
.ag-letter blockquote p { margin: 0; font: 600 clamp(1rem,1.35vw,1.28rem)/1.45 var(--ag-display); }
.ag-letter cite { display: block; margin-top: .75rem; color: #d4e3d6; font: 500 .82rem/1.5 var(--ag-body); }
.ag-letter .wp-block-buttons { margin-top: auto; }
.av .ag-letter .wp-block-button a { display: inline-flex; align-items: center; gap: .4rem; min-height: 35px; padding: 0; border: 0; background: none; color: #a4f5ad; font-size: .85rem; }
.av .ag-letter a::after { --detail-icon: url("icons/arrow-up-right.svg"); }
.av .ag-letter a:hover { text-decoration: underline; }
.av .av-reviews .ag-reviews-link { margin-top: 20px; }

/* The same markings identify help, documents, and contact throughout the site. */
.ag-guide-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--detail-rule);
    border-radius: 12px;
}
.ag-guide-grid:has(.ag-guide-more[open]) { align-items: start; }
.ag-guide-item > figure.wp-block-image { width: 100%; height: clamp(110px,10vw,148px); margin: 0; }
.ag-guide-item > figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-guide-item > .ag-guide-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: clamp(16px,1.45vw,22px) clamp(17px,1.65vw,24px) 6px;
}
:is(.av-live-home,.editor-styles-wrapper) .ag-guide-copy > h3 { margin: 0; max-width: none; line-height: 1.22; }
:is(.av-live-home,.editor-styles-wrapper) .ag-guide-copy > p { margin: 9px 0 14px; }
.ag-guide-copy > .ag-guide-more { margin: auto 0 0; border-top: 1px solid var(--detail-rule); }
.ag-guide-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 2px;
    cursor: pointer;
    list-style: none;
    color: var(--ag-ink);
    font: 700 .89rem/1.4 var(--ag-display);
}
.ag-guide-more > summary::-webkit-details-marker { display: none; }
.ag-guide-more > summary::after {
    content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
    border-right: 2px solid var(--ag-green); border-bottom: 2px solid var(--ag-green);
    transform: translateY(-2px) rotate(45deg);
}
.ag-guide-more[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.ag-guide-more > summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.ag-guide-more > summary:focus-visible { outline: 2px solid var(--ag-ink); outline-offset: -2px; }
.ag-guide-more:not([open]) .ag-guide-collapse, .ag-guide-more[open] .ag-guide-expand { display: none; }
.ag-guide-more > p { margin: 0 0 14px; }
.av .av-more .av-shortcut::before {
    content: ""; display: block; width: 27px; height: 27px; margin: 0 0 14px;
    background: var(--detail-leaf); mask: var(--detail-icon) center / contain no-repeat;
}
.av-more .av-shortcut:nth-child(2) { --detail-icon: url("icons/calculator.svg"); }
.av-more .av-shortcut:nth-child(1) { --detail-icon: url("icons/layers.svg"); }
.av-more .av-shortcut:nth-child(3) { --detail-icon: url("icons/hard-hat.svg"); }
.av .av-more .av-shortcut { border: 1px solid var(--detail-rule); border-radius: 12px; }
.av .ag-guide-actions a { display: inline-flex; gap: .5em; align-items: center; }
.av .ag-guide-actions a::before { --detail-icon: url("icons/calculator.svg"); }
.av .av-local, .av .av-site-areas { background: #1d3024; color: #fff; border: 0; }
.av :is(.av-local,.av-site-areas) :is(h2,h3,summary) { color: #fff; }
.av :is(.av-local,.av-site-areas) ul { columns: 4; column-gap: 2rem; list-style: none; padding: 0; }
.av :is(.av-local,.av-site-areas) li { position: relative; padding: .28em 0 .28em .9rem; color: #63d177; }
.av :is(.av-local,.av-site-areas) li::before {
    content: ""; position: absolute; top: 1em; left: 0; width: 4px; height: 4px; background: currentColor; border-radius: 50%;
}
.av :is(.av-local,.av-site-areas) li a { color: #e2ebe3; text-decoration: none; }
.av :is(.av-local,.av-site-areas) li a:hover { color: white; text-decoration: underline; }
.av .av-footer { background: #14221b; }
.av .av-footer h3::before {
    content: ""; display: inline-block; width: .92em; height: .92em; margin-right: .4em;
    background: #92e49f; mask: url("icons/map-pin.svg") center / contain no-repeat;
}
:is(.av-interior,.editor-styles-wrapper) .auris-page-intro { background: var(--detail-forest); overflow: hidden; }
.auris-page-intro::after { opacity: .45; width: min(43%,620px); }
.auris-page-intro .auris-shell { position: relative; z-index: 1; }
.av-interior .av-related-item a:hover { text-decoration-thickness: 2px; }
.av-interior .auris-carousel__art:has(.auris-carousel__alternate) {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2px;
}
.av-interior .auris-carousel__card .auris-carousel__art .auris-carousel__alternate { position: static; inset: auto; opacity: 1; visibility: visible; }
.av-interior .auris-carousel__art:has(.auris-carousel__alternate) > img,
.av-interior .auris-carousel__art .auris-carousel__alternate img { width: 100%; height: 100%; min-width: 0; object-fit: cover; }

@media (max-width: 940px) {
    .ag-letters { gap: 10px; }
    .av :is(.av-local,.av-site-areas) ul { columns: 2; }
    :is(.av-live-home,.editor-styles-wrapper) .ag-projects { grid-template-columns: 1fr; }
    .ag-project-filters { justify-self: start; }
}
@media (max-width: 720px) {
    :is(.av-live-home,.editor-styles-wrapper) .av-title :is(h1, h2) { font-size: clamp(1.95rem,6.8vw,3.05rem); line-height: 1.1; }
    :is(.av-live-home,.editor-styles-wrapper) .av-photo figcaption { inset: 12px var(--ag-edge) auto auto; }
    :is(.av-live-home,.editor-styles-wrapper) :is(.ag-about-grid,.ag-scope-grid) { grid-template-columns: 1fr; gap: 20px; }
    .ag-about-evidence .ag-about-photo img { aspect-ratio: 2.55; }
    .ag-facts { gap: 8px; }
    .ag-project-grid,.ag-letters,.av .av-reviews .auris-google { grid-template-columns: 1fr; }
    .ag-project-grid .av-project-photos img { height: clamp(140px,34vw,220px); }
    .ag-glossary h2 a::after { width: 32px; height: 32px; background-size: 16px; }
    .ag-glossary::before,.auris-page-intro::after { opacity: .20; }
    .ag-letter blockquote p { font-size: 1.1rem; }
    .av .av-reviews .auris-google__map { height: 190px; }
}
@media (max-width: 520px) {
    .av :is(.av-local,.av-site-areas) ul { columns: 1; }
    .ag-project-filters > .wp-block-buttons { gap: 4px; }
    .ag-project-filters .wp-block-button__link { min-height: 40px; font-size: .76rem; padding: .5em .65em; }
}
