/* Barrier reporting guide: shares the site's colours and type scale. */
.barrier-guide-header { background: linear-gradient(to bottom, var(--brand-primary-tint-100), var(--surface-background) 90%); }
.barrier-guide-header h1 { font-size: clamp(1.7rem, calc(1.1rem + 2.14vw), 2rem); color: var(--brand-primary-500); padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-lg); font-weight: 600; }
.barrier-guide-content { max-width: 750px; padding: var(--spacing-lg) var(--spacing-xl); margin: 0 auto var(--spacing-xl); line-height: 1.8; color: var(--text-primary); overflow-wrap: anywhere; }
#barrier-guide h2 { color: var(--brand-primary-500); font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; margin: 2rem 0 1rem; scroll-margin-top: 6rem; }
#barrier-guide nav { padding-bottom: 1rem; border-bottom: 1px solid var(--brand-primary-500); }
#barrier-guide li { margin-block: .6rem; }
#barrier-guide a { text-decoration: underline; text-underline-offset: .15em; }

/* Preserve the full view by default; crop the portrait gate photo to fill its square. */
.barrier-examples { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-block: 1.5rem; }
.barrier-example { margin: 0; min-width: 0; border: 1px solid var(--brand-primary-500); border-radius: .5rem; overflow: hidden; }
.barrier-example img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface-background); }
.barrier-example figcaption { padding: 1rem; }
#barrier-guide h3 { color: var(--brand-primary-500); font-size: 1.15rem; margin-block: 1.5rem 1rem; }
#barrier-guide .barrier-example h4 { color: var(--brand-primary-500); font-size: 1.1rem; font-weight: 600; margin: 0 0 .75rem; }
.barrier-example p { margin-bottom: 0; }
@media (min-width: 640px) {
    .barrier-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Remove more sky/foliage above the gate than foreground below it. */
.barrier-example img.barrier-image-gate { object-fit: cover; object-position: center 60%; }

/* Align all guide headings with their surrounding content. */
#barrier-guide :is(h1, h2, h3, h4, h5, h6) { padding-inline: 0; margin-inline: 0; text-indent: 0; }

/* Match the App Guide intro: 1rem below the heading, then its .5rem margin. */
.barrier-guide-header { padding-bottom: 0; }
.barrier-guide-header h1 { padding-bottom: 1rem; margin-bottom: .5rem; }
.barrier-guide-content { padding-top: 0; }
