/* Magazine: native WordPress content, controlled through the Customizer. */
.alandier-magazine { --am-gap: 1.25rem; }
.am-heading { margin-bottom: 2.5rem; max-width: 80ch; }
.am-heading h1 { margin: 0 0 1rem; }
.am-heading p { margin: 0; }
.am-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--am-gap); margin-bottom: 2.5rem; }
.am-top-count-1 { grid-template-columns: 1fr; }
.am-top-count-2 { grid-template-columns: 2fr 1fr; }
.am-top-column { min-width: 0; display: flex; flex-direction: column; }
.am-section-title { border-inline-start: 3px solid var(--alandier-red); padding-inline-start: .75rem; margin: 0 0 1rem; font-family: var(--alandier-font-body); font-size: 1.15rem; font-weight: 650; }
.am-stack { display: grid; gap: .75rem; flex: 1; }
.am-card { min-width: 0; margin: 0; border: 1px solid var(--alandier-or); }
.am-card > a { display: block; height: 100%; text-decoration: none; color: inherit; }
.am-card > a:focus-visible { outline-offset: 4px; }
.am-photo { aspect-ratio: 16/10; overflow: hidden; }
.am-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.am-card-copy { padding: 1rem; }
.am-card h3 { font-family: var(--alandier-font-body); font-size: 1.05rem; font-weight: 650; margin: .5rem 0 .75rem; line-height: 1.35; }
.am-card a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.am-tag { font-size: .7rem; font-weight: 650; text-transform: uppercase; padding: .15rem .4rem; background: var(--alandier-vert-sapin); color: var(--alandier-creme-alpine); }
.am-meta { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .75rem; }
.am-cover { position: relative; border: 0; background: var(--alandier-vert-sapin); color: #fff; min-height: 210px; }
.am-cover > a { min-height: inherit; display: flex; align-items: flex-end; position: relative; isolation: isolate; }
.am-cover .am-photo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; aspect-ratio: auto; }
.am-cover > a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 15%,rgba(0,0,0,.88)); }
.am-cover .am-card-copy { width: 100%; padding: 1.25rem; }
.am-cover h3 { color: #fff; }
.am-hero { min-height: 432px; }
.am-hero h3 { font-size: clamp(1.4rem,2.3vw,2rem); }
.am-lower { display: grid; gap: 2rem; }
.am-with-sidebar { grid-template-columns: minmax(0,1fr) 270px; }
.am-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--am-gap); }
.am-with-sidebar .am-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.am-row { margin-bottom: 2.5rem; }
.am-sidebar { min-width: 0; }
.am-sidebar .widget { border-top: 1px solid var(--alandier-or); margin-bottom: 2rem; padding-top: 1rem; }
.am-sidebar .widget-title { font-size: 1.25rem; }
.am-admin-note { padding: 1.25rem; border: 1px solid var(--alandier-or); }
@media(max-width:1000px) { .am-top { grid-template-columns: 1fr 1fr; } .am-lead { grid-column: 1/-1; } .am-top-count-1 { grid-template-columns: 1fr; } .am-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .am-with-sidebar { grid-template-columns: 1fr; } .am-with-sidebar .am-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .am-top,.am-top-count-2 { grid-template-columns: 1fr; } .am-hero { min-height: 320px; } .am-stack { grid-template-columns: 1fr; } .am-grid,.am-with-sidebar .am-grid { grid-template-columns: 1fr; } }

/* The largest slot is the explicitly selected main category. */
.alandier-magazine .am-section-title { font-family: var(--alandier-font-body); font-size: 1.15rem; font-weight: 650; }
.am-section-title a { color: inherit; text-decoration: none; }
.am-section-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.am-carousel { min-width: 0; flex: 1; }
.am-slides { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: auto; scrollbar-width: thin; }
.am-slide { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; }
.am-slide .am-cover { min-height: 432px; height: 100%; }
.am-carousel-controls { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding-top: .75rem; }
.am-carousel-controls[hidden] { display: none; }
.am-carousel-controls button { min-width: 44px; min-height: 44px; padding: .4rem .8rem; }
.am-slide-status { min-width: 3rem; text-align: center; font-size: .85rem; }
.am-play { font-size: .8rem; }
.am-price { margin-top: .75rem; font-weight: 650; }
.am-price del { font-weight: 400; }
.am-page-content { padding-block: 1.5rem; margin-block: 1.5rem; border-top: 1px solid var(--alandier-or); }
@media(max-width:600px) { .am-slide .am-cover { min-height: 320px; } }
@media(prefers-reduced-motion:reduce) { .am-slides { scroll-behavior: auto; } }
