.ai-section {padding-block:1.25rem}
.ai-filter,.ai-county-list,.ai-results {display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));margin-block:1rem 2rem}
.ai-filter {align-items:end;padding:1.25rem;background:#f6f2e8;border-radius:.4rem;color:#201e1b}
.ai-filter label {display:grid;gap:.3rem;font-weight:600}
.ai-filter input,.ai-filter select {width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:.45rem .6rem;border:1px solid #918878;border-radius:.25rem;background:white;color:#201e1b;font:inherit}
.ai-filter button {min-height:44px;cursor:pointer}
.ai-county-list a,.ai-results article {border:1px solid #dcd5c8;border-radius:.45rem;overflow:hidden;background:#fff;color:#24211d}
.ai-county-list a {padding:1rem;display:grid;gap:.35rem}
.home .ai-county-list {width:var(--af-width);margin-inline:auto}
.ai-results article {padding:.75rem;overflow-wrap:anywhere}
.ai-results img {width:100%;height:12rem;object-fit:contain;background:#f3f1ed}
.ai-results strong {display:block;margin-top:.5rem}
.ai-results article p {margin:.4rem 0}
.ai-pager {display:flex;flex-wrap:wrap;gap:1rem;margin:1.5rem 0}
/* The primary search stays within reach on small screens. */
.ai-filter {grid-template-columns:repeat(2,minmax(0,1fr));padding:clamp(.9rem,2vw,1.5rem);border:1px solid #dcd5c8;border-top:3px solid #b47914;background:#faf8f3;gap:.75rem 1rem}
.ai-filter label {font:600 .94rem/1.4 system-ui,sans-serif}
.ai-filter label input,.ai-filter label select {background:#fff;color:#191919;border:1px solid #827b71}
.ai-advanced {grid-column:1/-1}
.ai-advanced summary {cursor:pointer;padding:.55rem 0;font-weight:650;text-decoration:underline;text-underline-offset:.18em}
.ai-advanced-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.8rem;padding:.5rem 0}
.ai-search-actions,.ai-pager {display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap}
.ai-search-actions {grid-column:1/-1}
.ai-search-actions button {border:1px solid #a7700a;border-radius:.25rem;font-size:1.08rem;letter-spacing:.02em}
.ai-pager a,.ai-search-actions a {display:inline-flex;align-items:center;min-height:44px;text-underline-offset:.18em}
.ai-section h2,.ai-results strong,.ai-county-list strong {font-family:"Barlow Condensed",system-ui,sans-serif;font-weight:700}
.ai-section h2 {text-transform:uppercase;margin:0 0 .5rem;font-size:2rem}
.ai-county-list a {border-top:3px solid #b47914;text-decoration:none}
.ai-county-list strong,.ai-results strong {font-size:1.35rem;line-height:1.15}
.ai-county-list a:hover strong,.ai-results a:hover strong {text-decoration:underline}
.ai-results {align-items:stretch;grid-template-columns:repeat(4,minmax(0,1fr))}
.ai-results article {padding:0 0 .75rem}
.ai-results article p,.ai-results article strong {margin:.5rem .85rem}
.ai-results article p {font-size:.95rem;line-height:1.45}
.ai-results article a {display:block;color:#211f1c;text-decoration:none}
.ai-results img {display:block;height:clamp(10rem,16vw,15rem)}
.ai-result-count {font-weight:600}
.ai-filter :focus-visible,.ai-results a:focus-visible,.ai-county-list a:focus-visible,.ai-pager a:focus-visible {outline:3px solid #845600;outline-offset:2px}
@media(max-width:900px){.ai-results{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.ai-results{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-results img{height:9rem}.ai-results article strong{font-size:1.18rem}}
@media(max-width:390px){.ai-filter{gap:.65rem}.ai-search-actions{gap:.65rem}.ai-results{gap:.6rem}}
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
.wp-site-blocks > main {
    flex: 1 0 auto;
}

.ai-update-list, .ai-record-layout, .ai-record-source {
    --paper: #faf7ef;
    --rule: #d8cfc0;
    --gold: #efb548;
    box-sizing: border-box;
    width: 100%;
    max-width: 100% !important;
    overflow-wrap: anywhere;
}
.ai-update-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.15fr 1fr;
}
.ai-update-list article {
    position: relative;
    display: grid;
    align-content: center;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid var(--rule);
    border-radius: .55rem;
    background: var(--paper);
}
.ai-update-list article:first-child {
    grid-row: span 2;
    background: #211e19;
    color: #fffaf1;
    border-top: .35rem solid var(--gold);
}
.ai-update-list time, .ai-record-photo figcaption {
    font: 600 .86rem/1.5 system-ui, sans-serif;
}
.ai-update-list article:first-child time {color: #f6c772}
.ai-update-list h2, .ai-record-facts h2, .ai-record-source h2 {
    font: 700 1.75rem/1.1 "Barlow Condensed", sans-serif;
    margin: .65rem 0;
}
.ai-update-list article:first-child h2 {font-size: clamp(2.4rem, 5vw, 4.25rem)}
.ai-update-list h2 a {color: inherit; text-decoration: none}
.ai-update-list h2 a::after {content: ""; position: absolute; inset: 0}
.ai-update-list article:focus-within {outline: 3px solid #92600b; outline-offset: 3px}
.ai-update-list article:hover h2 a {text-decoration: underline; text-decoration-thickness: .06em}
.ai-update-list p {margin: 0; max-width: 42ch; line-height: 1.5}
.ai-record-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 2.25rem);
}
.ai-record-photo {
    margin: 0;
    border: 1px solid var(--rule);
    border-radius: .5rem;
    overflow: hidden;
    background: var(--paper);
}
.ai-record-photo img {width: 100%; display: block; object-fit: contain; max-height: 22rem}
.ai-record-photo figcaption {padding: .55rem .85rem; color: #554b3c}
.ai-record-facts {min-width: 0}
.ai-record-facts > :first-child {margin-top: 0; font-weight: 650}
.ai-record-facts h2 {border-top: 2px solid #bf882c; padding-top: .85rem; margin-top: 1.25rem}
.ai-record-facts ul {background: var(--paper); border-radius: .35rem; padding: .4rem 1.25rem .4rem 2.1rem}
.ai-record-facts li {padding: .45rem 0}
.ai-record-facts li + li {border-top: 1px solid var(--rule)}
.ai-record-source {margin-top: 2rem; padding: 1rem clamp(1rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: .5rem}
.ai-record-source p {margin: .5rem 0}
.ai-record-source .ai-pager {margin: .6rem 0 0}
@media (min-width: 701px) {
    .ai-record-layout:has(.ai-record-photo) {grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr)}
}
@media (max-width: 700px) {
    .ai-update-list {grid-template-columns: 1fr}
    .ai-update-list article:first-child {grid-row: auto}
    .ai-record-photo {width: min(100%, 12rem)}
}

.ai-booking-heading {border-inline-start:.55rem solid #f3b123;padding-inline-start:clamp(.8rem,2vw,1.6rem);max-width:none!important}
.ai-booking-heading p {color:#ffe2a2;font-weight:650;margin:.45rem 0 0}
.ai-record-layout:has(.ai-record-photo) {align-items:start}
.ai-record-photo figcaption {background:#23211d;color:#fff;font:700 1.35rem/1.2 "Barlow Condensed",sans-serif;text-transform:uppercase}
.ai-record-facts {border:1px solid #d8cfc0;border-radius:.55rem;overflow:hidden}
.ai-record-facts > :not(.ai-panel-title) {margin-inline:clamp(1rem,2vw,1.5rem)}
.ai-record-facts > .ai-panel-title {margin:0;padding:.65rem 1.25rem;border:0;background:#f7bf48;color:#191713;font:700 1.8rem/1.15 "Barlow Condensed",sans-serif;text-transform:uppercase}
.ai-record-source {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:1rem;background:#f7f5f0}
.ai-record-source h2 {font-size:1.35rem}
.ai-record-actions,.ai-related {width:100%;max-width:100%!important}
.ai-record-actions a {box-sizing:border-box;justify-content:center;padding:.45rem 1rem;font-weight:650;border:1px solid #28241e;border-radius:.35rem;text-decoration:none}
.ai-record-actions a:first-child {background:#f7bf48;border-color:#f7bf48;color:#1a1813}
.ai-record-actions a:hover,.ai-related a:hover strong {text-decoration:underline}
.ai-related {border-top:2px solid #d49a30;padding-top:1rem}
.ai-related h2 {font:700 clamp(1.5rem,3vw,2.2rem)/1.1 "Barlow Condensed",sans-serif}
.ai-related > div {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.8rem}
.ai-related a {display:block;max-width:15rem;color:inherit;border:1px solid #d8cfc0;border-radius:.4rem;overflow:hidden;text-decoration:none}
.ai-related img {display:block;width:100%;height:9rem;object-fit:contain;background:#f4f1ea}
.ai-related strong,.ai-related small {display:block;margin:.5rem .65rem;overflow-wrap:anywhere}
.ai-related strong {font:700 1.12rem/1.18 "Barlow Condensed",sans-serif}
@media(max-width:700px){.ai-record-actions a{width:100%}.ai-record-source{grid-template-columns:1fr}.ai-record-source > div+div{border-top:1px solid #d8cfc0}}

/* Carry the booking heading and photo treatment through both card grids. */
.af-homepage .af-hero-copy {
    border-inline-start: .5rem solid #f7bf48;
    padding-inline-start: clamp(1rem, 3vw, 2rem);
}
.af-homepage .ai-button {border-radius: .35rem; background: #f7bf48; color: #191713}
.af-homepage :is(.ai-section, .ai-recent, .ai-guides) > h2 {
    border-inline-start: .28rem solid #e3a323;
    padding-inline-start: .65rem;
}
.ai-recent .af-record-card, .ai-results article {
    overflow: hidden;
    border: 1px solid #d8cfc0;
    border-radius: .5rem;
    background: #fff;
}
.ai-recent .af-record-image, .ai-results article img {background: #f4f1ea}
.ai-recent .af-record-image img {object-fit: cover; object-position: center 32%}
.ai-recent .af-record-body {padding: 0 0 .8rem}
.ai-recent .af-record-body > p {margin-inline: .85rem}
.ai-recent .af-record-body h3, .ai-results article strong {
    box-sizing: border-box;
    display: block;
    margin: 0;
    padding: .65rem .85rem;
    border-top: 3px solid #f7bf48;
    background: #211e19;
    color: #fffaf1;
    font: 700 1.3rem/1.12 "Barlow Condensed", sans-serif;
    overflow-wrap: anywhere;
}
.ai-recent .af-record-body h3 a {color: inherit}
.ai-results article:focus-within, .ai-recent .af-record-card:focus-within {
    outline: 3px solid #8d5e0b;
    outline-offset: 2px;
}

.af-homepage .af-hero {background:#10100f;padding-block:clamp(1.75rem,3.5vw,3.4rem)}
.af-homepage .af-hero-copy h1 {text-transform:uppercase;font-size:clamp(3.4rem,6.5vw,6rem)}
.af-homepage .af-hero-text {max-width:38ch}
.af-homepage .ai-section-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem;margin-bottom:.85rem}
.af-homepage .ai-section-head h2 {border-left:.28rem solid #e3a323;padding-left:.65rem;margin:0}
.ai-section-head > a {display:inline-flex;align-items:center;min-height:44px;font:700 1.05rem/1.2 "Barlow Condensed",sans-serif;text-transform:uppercase;text-underline-offset:.25em;color:#211e19}
.af-homepage .ai-filter {
    border: 1px solid #b5822a;
    background: #fbfaf7;
    margin-bottom: 0;
    padding: .85rem clamp(.85rem, 2vw, 1.4rem);
    gap: .65rem 1rem;
}
.af-homepage .ai-filter label {gap: .2rem}
.af-homepage .ai-filter button {width: 100%; min-height: 44px}
.af-homepage .ai-recent .af-record-grid {gap:.8rem}
.ai-recent .af-record-card {padding:.35rem;display:flex;flex-direction:column}
.ai-recent .af-record-body {display:flex;flex-direction:column;flex:1;padding-bottom:0}
.ai-recent .af-record-body > p {margin:.45rem .45rem 0;line-height:1.35}
.ai-recent .af-record-body h3 {width:100%;border-radius:.15rem;padding:.45rem .5rem;font-size:1.18rem}
.ai-recent .af-record-body h3 + p {font-weight:700}
.ai-recent .af-record-body .af-record-link {margin-top:auto;padding-top:.65rem}
.af-homepage .ai-guides {padding-block:1.6rem}
.af-homepage .ai-guide-grid {gap:1rem}
.af-homepage .ai-guides:last-of-type .ai-guide-grid article {border:1px solid #d8cfc0;border-radius:.35rem;padding:1rem}
.af-homepage .ai-section:has(+ .ai-county-preview) {padding-bottom:0}
@media(min-width:701px){
    .af-homepage .ai-filter {grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(10rem,.7fr)}
    .af-homepage .ai-search-actions {grid-column:auto}
}
@media(max-width:700px){.af-homepage .ai-filter{grid-template-columns:1fr}.af-homepage .ai-filter button{width:100%}}

/* County directory and county booking archives. */
.ai-county-page .af-page-hero {background: #141311}
.ai-county-page .af-page-hero h1 {
    border-inline-start: .45rem solid #f7bf48;
    padding-inline-start: clamp(.8rem, 2vw, 1.4rem);
    color: #fffaf1;
}
.ai-county-page .ai-county-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.ai-county-page .ai-county-list a {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d8cfc0;
    background: #faf7ef;
}
.ai-county-page .ai-county-list strong {
    padding: .85rem 1rem;
    background: #211e19;
    color: #fffaf1;
    border-bottom: 3px solid #f7bf48;
}
.ai-county-page .ai-county-list span {padding: .7rem 1rem}
.ai-directory-cards .ai-card-button {margin-top: auto}
.ai-county-page .ai-filter {background: #fbfaf7; border: 1px solid #b5822a}
.ai-county-page .ai-search-actions button {background: #f7bf48; color: #191713}
.ai-county-page .ai-result-count {padding-inline-start: .7rem; border-inline-start: .25rem solid #e3a323}
.ai-county-page .entry-content > p:first-child a {color: #211e19; text-decoration-color: #916610; text-underline-offset: .2em}
@media (max-width: 900px) {
    .ai-county-page .ai-county-list {grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 520px) {
    .ai-county-page .ai-county-list, .ai-county-page .ai-filter {grid-template-columns: 1fr}
}

/* Keep WordPress shortcode line breaks out of the homepage grid and section spacing. */
.af-homepage > .ai-section:has(.ai-filter) + br,
.af-homepage .ai-filter > br,
.af-homepage .ai-filter > p:empty {display:none}
.af-homepage > .ai-recent {padding-block-start:0}
.af-homepage .ai-recent .ai-section-head {align-items:flex-start}
.af-homepage .ai-recent .ai-section-head > p {margin:0}

/* Share content rows across neighboring cards so wrapped names stay readable. */
@supports (grid-template-rows: subgrid) {
    .ai-recent .af-record-card {
        display: grid;
        grid-row: span 6;
        grid-template-rows: subgrid;
        row-gap: 0;
        height: auto;
    }
    .ai-recent .af-record-body {
        display: grid;
        grid-row: 2 / span 5;
        grid-template-rows: subgrid;
        row-gap: var(--af-card-stack-gap);
        align-items: stretch;
    }
    .ai-recent .af-record-body h3 {
        display: flex;
        align-items: center;
    }
    .ai-recent .af-record-body > .af-record-link {grid-row: 5; align-self: end}
}

/* Share the photo, name, county/date and charge tracks within each results row. */
@supports (grid-template-rows: subgrid) {
    .ai-results article {
        display: grid;
        grid-row: span 5;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
    .ai-results article > a {
        display: grid;
        grid-row: 1 / span 5;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
    .ai-results article strong {
        grid-row: 2;
        display: flex;
        align-items: center;
    }
    .ai-results article .ai-card-button {grid-row: 5}
}

@supports not (grid-template-rows: subgrid) {
    .ai-results article > a {display: flex; flex-direction: column}
    .ai-results .ai-card-button {margin-top: auto}
}

.af-page-shell:has(.ai-story-layout) .wp-block-post-title {
    border-inline-start: .45rem solid #f7bf48;
    padding-inline-start: clamp(.85rem, 2vw, 1.5rem);
}
.entry-content > .ai-story-layout {
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: start;
}
.ai-story-copy {max-width: 62ch; font-size: 1.125rem; line-height: 1.7}
.ai-story-copy time {font: 700 1.05rem/1.4 "Barlow Condensed", sans-serif; text-transform: uppercase; color: #674a1e}
.ai-story-copy p {margin: .8rem 0 1rem}
.ai-story-copy a {text-decoration-color: #996816; text-underline-offset: .18em}
.ai-story-more {overflow: hidden; border: 1px solid #d8cfc0; border-radius: .5rem; background: #faf7ef}
.ai-story-more h2 {margin: 0; padding: .8rem 1.15rem; border-bottom: 3px solid #f7bf48; background: #211e19; color: #fffaf1; font: 700 1.55rem/1.15 "Barlow Condensed", sans-serif}
.ai-story-more a {display: grid; gap: .3rem; padding: 1rem 1.15rem; color: #211e19; text-decoration: none}
.ai-story-more a + a {border-top: 1px solid #d8cfc0}
.ai-story-more strong {font: 700 1.35rem/1.2 "Barlow Condensed", sans-serif}
.ai-story-more span {font-size: .95rem; line-height: 1.45}
.ai-story-more a:is(:hover,:focus-visible) strong {text-decoration: underline}
.ai-story-more a:focus-visible {outline-offset: -3px}
@media (min-width: 800px) {
    .entry-content > .ai-story-layout:has(.ai-story-more) {grid-template-columns: minmax(0, 1.8fr) minmax(15rem, 1fr)}
}

.af-page-shell:has(.ai-reader-guide) .wp-block-post-title {
    border-inline-start: .45rem solid #f7bf48;
    padding-inline-start: clamp(.85rem, 2vw, 1.5rem);
}
.entry-content > .ai-reader-guide {max-width: 100%; overflow-wrap: anywhere}
.ai-guide-intro {font-size: 1.15rem; line-height: 1.55; max-width: 65ch}
.ai-guide-jumps {display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1rem}
.ai-guide-jumps a {padding: .6rem 1rem; border-radius: .35rem; background: #f7bf48; color: #211e19; font-weight: 650}
.ai-guide-panels {display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr))}
.ai-guide-panel {background: #faf7ef; border: 1px solid #d8cfc0; border-radius: .5rem; overflow: hidden}
.ai-reader-guide > .ai-guide-panel {margin-block: 1rem}
.ai-guide-panel h2 {margin: 0; padding: .65rem 1.2rem; color: #fffaf1; background: #211e19; border-bottom: 3px solid #f7bf48; font: 700 1.65rem/1.15 "Barlow Condensed",sans-serif; scroll-margin-top: 2rem}
.ai-guide-panel p,.ai-guide-panel ul {margin: 1rem 1.2rem}
.ai-guide-panel ul {padding-inline-start: 1.2rem}
.ai-guide-panel a {color: #372911; text-underline-offset: .15em}
@media (max-width: 700px) {.ai-guide-panels {grid-template-columns: 1fr}}

/* Six homepage cards fit evenly in one, two, three or six columns. */
.af-homepage .ai-recent {container: homepage-cards / inline-size}
.af-homepage .ai-recent > .af-record-grid {grid-template-columns: minmax(0, 1fr)}
@container homepage-cards (min-width: 19rem) {
    .af-homepage .ai-recent > .af-record-grid {grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@container homepage-cards (min-width: 32rem) {
    .af-homepage .ai-recent > .af-record-grid {grid-template-columns: repeat(3, minmax(0, 1fr))}
}
@container homepage-cards (min-width: 62rem) {
    .af-homepage .ai-recent > .af-record-grid {grid-template-columns: repeat(6, minmax(0, 1fr))}
}
.ai-county-preview .af-record-card {position: relative}
.ai-county-preview h3 a::after {content: ""; position: absolute; inset: 0}
.ai-county-preview .ai-card-button {position: relative}
@supports (grid-template-rows: subgrid) {
    .ai-county-preview .af-record-card {grid-row: span 4}
    .ai-county-preview .af-record-body {grid-row: 2 / span 3}
    .ai-county-preview .af-record-body > .af-record-link {grid-row: 3}
}
main .ai-button.ai-card-button {
    width: 100%;
    background: #f7bf48;
    border-radius: .35rem;
    color: #191713;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid #a7700a;
    font: 700 1.08rem/normal "Barlow Condensed", sans-serif;
    letter-spacing: .02em;
    text-decoration: none;
}
.af-homepage .af-record-link .ai-card-button::after {content: none}
.af-homepage .af-record-link .ai-card-button {margin-bottom: .4rem}
.ai-recent .af-record-body > .af-record-link {margin-inline: 0}
.ai-related a {display: flex; flex-direction: column}
.ai-related .ai-card-button {margin-top: auto}
.ai-results article {padding-bottom: 0}
.ai-results article > a {height: 100%}
.ai-results article .ai-card-button {align-self: end}
.ai-directory-cards img {display: block; width: 100%; height: clamp(6rem, 12vw, 9rem)}
.ai-results img, .ai-related img, .ai-directory-cards img, .ai-record-photo img {
    object-fit: cover;
    object-position: center 32%;
}
.ai-record-photo img {aspect-ratio: 4 / 5; height: auto !important}
.ai-record-photo .ai-photo-open, .ai-photo-dialog button {
    display: block; min-height: 44px; padding: .5rem 1rem; cursor: pointer;
    background: #f7bf48; color: #191713; border: 1px solid #a7700a; border-radius: .35rem;
    font: 700 1.1rem/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase;
}
.ai-record-photo .ai-photo-open {width: 100%; margin-top: .5rem}
.ai-record-photo .ai-photo-trigger {display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in}
.ai-photo-trigger:focus-visible {outline: 3px solid #f7bf48; outline-offset: -4px}
.ai-photo-dialog {box-sizing: border-box; max-width: 94vw; max-height: 94dvh; padding: .75rem; border: 0; border-radius: .5rem; background: #171717}
.ai-photo-dialog::backdrop {background: rgb(0 0 0 / 82%)}
.ai-photo-dialog button {margin: 0 0 .5rem auto}
.ai-photo-dialog img {display: block; width: min(75vh, 80vw); height: min(74vh, 74dvh); object-fit: contain}
.ai-record-actions a {flex: 1 1 15rem}
.af-homepage .ai-card-button:focus-visible {outline: 3px solid #845600; outline-offset: 2px}

@media (min-width: 901px) {
    .af-header-row {
        justify-content: flex-start;
        column-gap: clamp(2rem, 5vw, 4rem);
    }
    .af-header-row .ai-links {gap: 1.25rem}
    .af-header-row .ai-links a {font-size: 1rem; letter-spacing: .03em}
}

.af-page-shell:has(.ai-review-intro) .wp-block-post-title {
    border-inline-start: .45rem solid #f7bf48;
    padding-inline-start: clamp(.85rem, 2vw, 1.5rem);
}
.af-page-body {--af-content-width: 100%}
.entry-content:has(.ai-review-intro) > :is(.ai-review-intro,.texarrest-rr-form) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
.ai-review-intro {background: #faf7ef; border: 1px solid #d8cfc0; border-inline-start: .35rem solid #f7bf48; border-radius: .45rem; padding: 1rem clamp(1rem, 3vw, 1.75rem)}
.ai-review-intro h2 {margin: 0; font: 700 1.65rem/1.2 "Barlow Condensed", sans-serif}
.ai-review-intro p {margin: .6rem 0 0; max-width: 65ch}
.ai-review-intro a {color: #372911; text-underline-offset: .15em}
.entry-content > .ai-review-intro {margin-block-end: clamp(2rem, 4vw, 3rem)}
.entry-content:has(.ai-review-intro) .texarrest-rr-form > h3 {
    background: #211e19;
    color: #fffaf1;
    border-bottom: 3px solid #f7bf48;
    border-radius: .35rem .35rem 0 0;
    padding: .65rem 1rem;
    margin: 1.75rem 0 .8rem;
    font: 700 1.5rem/1.2 "Barlow Condensed", sans-serif;
}
.entry-content:has(.ai-review-intro) .texarrest-rr-form > h3 + hr {display: none}
.entry-content:has(.ai-review-intro) .texarrest-rr-submit {background: #f7bf48; color: #211e19; border: 1px solid #956912; border-radius: .35rem; min-height: 44px}

/* Inherited archive and error templates use the same outer gutters as the footer. */
body.archive main.wp-block-group,
body.error404 main > .wp-block-group {
    width: var(--af-width);
    box-sizing: border-box;
    padding-inline: 0;
    margin-inline: auto;
    --wp--style--global--content-size: 100%;
    --wp--style--global--wide-size: 100%;
    --wp--style--root--padding-left: 0px;
    --wp--style--root--padding-right: 0px;
}
.af-page-body > .af-records-query {max-width:100%}
body.error404 main.wp-block-group {padding-inline: 0 !important}

.ai-info-page .af-page-hero h1 {
    border-inline-start: .45rem solid #f7bf48;
    padding-inline-start: clamp(.85rem, 2vw, 1.5rem);
}
.ai-info-page .af-page-body > .entry-content {
    box-sizing: border-box;
    background: #faf7ef;
    border: 1px solid #d8cfc0;
    border-top: 3px solid #f7bf48;
    border-radius: .5rem;
    padding: 0;
    overflow-wrap: anywhere;
}
.ai-info-page .entry-content > h2 {
    background: #211e19;
    color: #fffaf1;
    border-bottom: 3px solid #f7bf48;
    margin-block: 1.3rem .75rem;
    padding: .7rem clamp(1rem, 2.5vw, 1.65rem);
    font: 700 1.6rem/1.2 "Barlow Condensed", sans-serif;
}
.ai-info-page .entry-content > h2:first-child {margin-top: 0; border-radius: .4rem .4rem 0 0}
.ai-info-page .entry-content > p {
    box-sizing: border-box;
    max-width: 80ch;
    padding-inline: clamp(1rem, 2.5vw, 1.65rem);
    margin-block: 1rem;
    line-height: 1.65;
}
.ai-info-page .entry-content a {color: #503909; text-underline-offset: .18em}
.ai-info-page .entry-content a:focus-visible {outline: 2px solid #92600b; outline-offset: 2px}
.ai-info-page .af-page-body > .entry-content:has(> .ai-review-faq) {background: #fff; border: 0}
.ai-review-faq .ai-guide-panel {background: #fff}
.ai-review-faq > p:last-child {margin: 1rem 1.2rem}
.ai-info-page .ai-review-faq a.ai-button,
.entry-content .ai-review-intro a.ai-button {width: auto; color: #191713}

/* Show the browser's file selection and retain the upload label for screen readers. */
.texarrest-rr-form .texarrest-file-upload input[type="file"] {
    position: static;
    width: 100%;
    height: auto;
    min-width: 0;
    box-sizing: border-box;
    clip-path: none;
    color: #211e19;
}
.texarrest-rr-form .texarrest-file-upload .texarrest-file-button {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}
.texarrest-rr-form input[type="file"]::file-selector-button {
    background: #f7bf48;
    color: #211e19;
    border: 1px solid #956912;
    border-radius: .35rem;
    min-height: 44px;
    padding-inline: .85rem;
    margin-inline-end: .65rem;
    cursor: pointer;
}
.texarrest-rr-form input[type="file"]:focus-visible {outline: 2px solid #805508; outline-offset: 2px}

/* Empty paragraphs can occupy a booking card subgrid track after block rendering. */
.ai-recent .af-record-body > p:empty {display: none}
