/* Scoped editorial layout; the content remains ordinary editable WordPress blocks. */
.av-history-page { padding: 0; }
.av-history-page > .wp-block-post-content { margin: 0; }
.av-history {
  --history-ease: cubic-bezier(.2,.7,.2,1);
  color: var(--av-ink); padding-top: clamp(3rem, 7vw, 7rem);
  overflow: clip; /* Moving pictures never create horizontal document overflow. */
}
.av-history :is(h1,h2,p,figure) { margin-block: 0; }
.av-history :is(.av-history-hero,.av-history-nav,.av-history-timeline,.av-history-archive,.av-history-outro) {
  width: min(calc(100% - 2 * var(--av-gutter)), var(--av-wide)); margin-inline: auto;
}
.av-history .av-history-eyebrow {
  font-size: .6875rem; line-height: 1.6; font-weight: 750; letter-spacing: .14em; color: var(--av-forest);
}
.av-history .av-history-hero {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center;
  padding-bottom: clamp(3rem,7vw,7rem);
}
.av-history .av-history-title {
  font-size: clamp(3.1rem,5.8vw,5.7rem); letter-spacing: -.065em; line-height: 1.02; font-weight: 690;
  color: var(--av-forest); margin-block: 1.25rem 1.75rem; text-wrap: initial;
}
.av-history .av-history-lead { max-width: 31rem; font-size: clamp(1rem,1.3vw,1.15rem); color: var(--av-muted); line-height: 1.8; }
.av-history .av-history-discover { margin-top: 1.75rem; font-size: .875rem; font-weight: 650; }
.av-history .av-history-discover a { display: inline-flex; align-items: center; gap: 1.25rem; text-decoration: none; color: var(--av-forest); min-height: 44px; }
.av-history-discover a span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #bfcaba; border-radius: 50%; font-size: 1.25rem; }
.av-history .av-history-origin { margin-top: clamp(2rem,4vw,4rem); display: flex; align-items: center; gap: 1.25rem; }
.av-history .av-history-origin-year { font-size: clamp(3.5rem,6vw,5rem); color: #bbc9b2; font-weight: 650; letter-spacing: -.07em; line-height: 1; }
.av-history-origin > p:last-child { color: var(--av-muted); font-size: .8125rem; line-height: 1.7; padding-left: 1.25rem; border-left: 1px solid #cbd4c4; }
.av-history-hero-image { position: relative; padding: 1rem; background: #fffdf7; border: 1px solid #e3dfd3; box-shadow: 0 1.5rem 4rem #253a2014; border-radius: 1.5rem; transform: rotate(2deg); }
.av-history .av-history-cover { margin: 0; }
.av-history-cover img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: center 40%; display: block; border-radius: .75rem; filter: sepia(.1); }
.av-history .av-history-photo-note { margin-block: 1rem .125rem; color: var(--av-muted); font-size: .625rem; letter-spacing: .15em; text-align: center; font-weight: 600; }
.av-history .av-history-nav {
  display: flex; justify-content: center; gap: .35rem; padding: .5rem; border: 1px solid #dce2d6;
  background: #fafbf7; border-radius: 999px; box-shadow: 0 .5rem 2rem #203a2010;
  margin-block: .5rem clamp(2rem,5vw,5rem); max-width: 56rem;
}
.av-history-nav a { white-space: nowrap; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: .6rem 1.2rem; font-size: .8125rem; line-height: 1.3; font-weight: 600; color: var(--av-muted); border-radius: 999px; text-decoration: none; transition: background-color .2s, color .2s; }
.av-history-nav a:hover,.av-history-nav a[aria-current="location"] { background: var(--av-forest); color: #fff; }
.av-history-chapter { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: clamp(2rem,7vw,7rem); align-items: center; padding-block: clamp(3rem,7vw,7rem); border-top: 1px solid #dce1d5; scroll-margin-top: 2rem; }
.av-history-chapter > * { min-width: 0; }
.av-history-chapter:nth-child(even) { grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); }
.av-history-chapter:nth-child(even) .av-history-visual { grid-column: 2; grid-row: 1; }
.av-history-chapter:nth-child(even) .av-history-copy { grid-column: 1; grid-row: 1; }
.av-history .av-history-copy { max-width: 29rem; }
.av-history .av-history-year { font-size: clamp(3rem,5vw,4.6rem); color: #738b66; font-weight: 550; letter-spacing: -.06em; line-height: 1.1; margin-block: 1rem .75rem; }
.av-history .av-history-heading { font-size: clamp(1.9rem,3.3vw,3rem); line-height: 1.12; letter-spacing: -.05em; font-weight: 670; margin-block: 0 1.5rem; }
.av-history-copy > p:not(.av-history-eyebrow):not(.av-history-year) { color: var(--av-muted); font-size: 1rem; line-height: 1.85; margin-top: 1rem; }
.av-history .av-history-media { padding: clamp(.65rem,1.5vw,1.25rem); background: #fffdf8; border: 1px solid #e0ddd1; border-radius: 1.125rem; box-shadow: 0 1.5rem 3rem #26322112; transform: translate3d(0,var(--av-drift,0px),0); will-change: auto; }
.av-history-media a,.av-history-cover a { display: block; border-radius: .5rem; }
.av-history-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; border-radius: .35rem; background: #eeeae0; }
.av-history-media--portrait img { aspect-ratio: 4 / 4.2; background: #fffdf8; }
.av-history .av-history-caption { display: block; margin-top: 1.25rem; padding-inline: .3rem; font-size: .75rem; line-height: 1.6; color: var(--av-muted); }
.av-history-caption span { display: block; opacity: .8; font-size: .6875rem; margin-top: .2rem; }
.av-history .av-history-archive { border-top: 1px solid var(--av-line); padding-block: clamp(3rem,7vw,6rem); scroll-margin-top: 2rem; }
.av-history-archive > h2 { font-size: clamp(2rem,4vw,3.6rem); letter-spacing: -.05em; line-height: 1.1; margin-block: 1rem 1.5rem; }
.av-history .av-history-archive-intro { max-width: 40rem; color: var(--av-muted); line-height: 1.8; }
.av-history .av-history-documents { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,4rem); align-items: center; margin-block: 3rem; }
.av-history .av-history-documents .av-history-media img { aspect-ratio: 1; background: #fffdf8; }
.av-history .av-history-press { border: 1px solid var(--av-line); border-radius: 1rem; background: #fffdf7; padding: .4rem 1.5rem; }
.av-history-press summary { padding-block: 1.25rem; cursor: pointer; font-weight: 650; font-size: 1rem; }
.av-history-press summary span { color: var(--av-muted); font-weight: 400; margin-left: 1rem; font-size: .8125rem; }
.av-history .av-history-press-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; padding-block: .5rem 1.5rem; }
.av-history-archive-card figure { padding: .75rem; border: 1px solid #e1e5dc; border-radius: .75rem; background: #fff; }
.av-history-archive-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; display: block; border-radius: 0; }
.av-history .av-history-archive-card > p { font-size: .75rem; color: var(--av-muted); margin-block: .75rem .25rem; }
.av-history .av-history-outro { border-radius: 1.5rem; padding: clamp(2rem,6vw,5rem); margin-bottom: clamp(3rem,7vw,7rem); text-align: center; color: var(--av-sand); background: radial-gradient(ellipse at 50% 0%,#406c43,var(--av-forest) 65%); }
.av-history .av-history-outro .av-history-eyebrow { color: #c8d9ba; }
.av-history-outro > h2 { font-size: clamp(2.1rem,4.6vw,4.5rem); letter-spacing: -.05em; line-height: 1.1; margin-block: 1.25rem; }
.av-history-outro > p:not(.av-history-eyebrow):not(.av-history-back) { color: #e1ead9; max-width: 32rem; margin-inline: auto; line-height: 1.8; }
.av-history .av-history-back { margin-top: 2rem; }
.av-history-back a { display: inline-flex; gap: 1.5rem; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid #a8c29b; color: #fff; text-decoration: none; font-size: .875rem; }
.av-history-outro a:focus-visible { outline-color: #fff; }
/* JavaScript opts in only after the observer exists. With JS disabled everything is visible. */
@media (prefers-reduced-motion: no-preference) {
  .av-history-chapter > * { transition: opacity .8s var(--history-ease), translate .9s var(--history-ease); }
  .av-history-chapter.is-pending > .av-history-visual { opacity: 0; translate: -24px 24px; }
  .av-history-chapter.is-pending > .av-history-copy { opacity: 0; translate: 24px 24px; }
  .av-history-chapter:nth-child(even).is-pending > .av-history-visual { translate: 24px 24px; }
  .av-history-chapter:nth-child(even).is-pending > .av-history-copy { translate: -24px 24px; }
}
@media (min-width: 960px) { .av-history-nav { position: sticky; top: 1rem; z-index: 20; } }
@media (max-width: 959px) {
  .av-history .av-history-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; border-radius: 1.25rem; }
  .av-history-nav a { flex-shrink: 0; }
  .av-history .av-history-hero { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .av-history .av-history-title { font-size: clamp(2.75rem,5.8vw,4.25rem); }
  .av-history-chapter { gap: 2.5rem; }
  .av-history .av-history-heading { font-size: 2rem; }
}
@media (max-width: 699px) {
  .av-history { padding-top: 3rem; }
  .av-history .av-history-hero { grid-template-columns: minmax(0,1fr); gap: 2.5rem; }
  .av-history .av-history-title { font-size: clamp(2.8rem,10.9vw,4.2rem); }
  .av-history .av-history-origin { margin-top: 2rem; }
  .av-history-hero-image { max-width: 30rem; width: calc(100% - .5rem); justify-self: center; padding: .65rem; border-radius: 1rem; }
  .av-history-cover img { aspect-ratio: 4 / 3.6; }
  .av-history-chapter,.av-history-chapter:nth-child(even) { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
  .av-history-chapter:nth-child(even) .av-history-visual,.av-history-chapter:nth-child(even) .av-history-copy { grid-column: auto; grid-row: auto; }
  .av-history-chapter .av-history-copy { max-width: none; }
  .av-history .av-history-year { font-size: 3.1rem; }
  .av-history .av-history-heading { font-size: 2.2rem; }
  .av-history .av-history-documents { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .av-history .av-history-press { padding-inline: 1rem; }
  .av-history-press summary span { display: block; margin: .5rem 0 0 1.2rem; }
  .av-history .av-history-press-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
  .av-history-archive-card figure { padding: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .av-history *, .av-history *::before, .av-history *::after { animation: none !important; transition: none !important; translate: none !important; }
  .av-history .av-history-media { transform: none; }
}
html.av-history-modal-open { overflow: hidden; scrollbar-gutter: stable; }
.av-history-lightbox { max-width: min(94vw,72rem); max-height: 94svh; border: 1px solid #dbe1d7; border-radius: 1.25rem; padding: 3.75rem 1.25rem 1.25rem; background: #fffdf8; color: var(--av-ink); box-shadow: 0 2rem 6rem #0c1a1750; }
.av-history-lightbox::backdrop { background: #102219bf; backdrop-filter: blur(8px); }
.av-history-lightbox img { max-width: 100%; max-height: 72svh; width: auto; height: auto; display: block; margin: 0 auto; object-fit: contain; border-radius: .25rem; }
.av-history-lightbox p { margin: 1rem 0 0; font-size: .8125rem; line-height: 1.6; max-width: 54rem; }
.av-history-lightbox-close { position: absolute; right: .65rem; top: .65rem; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--av-forest); background: #f0f4eb; border: 1px solid #d2ddc9; border-radius: 50%; font-family: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
