/* ==========================================================================
   WordPress-specific styles (blocks, admin bar, forms, dynamic content)
   ========================================================================== */

/* Admin bar (logged-in users) */
body.admin-bar .header { top: 32px; }
body.admin-bar .menu { padding-top: calc(var(--header-h) + 42px); }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Editor content inside .prose */
.prose h3, .prose .wp-block-heading:not(h2) { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; color: var(--gold); margin: 2.2em 0 .8em; }
.prose h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 2em 0 .8em; font-weight: 600; }
.prose ul:not(.skills), .prose ol:not(.skills) { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }
.prose a:not(.btn) { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose figure { margin: 2em 0; }
.prose img { height: auto; }
.prose figcaption, .wp-element-caption { font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-top: 10px; text-transform: uppercase; }
.prose .wp-block-quote, .prose blockquote { margin: 2em 0; padding: 0; border: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.28; font-style: italic; color: var(--ivory); }
.prose .wp-block-quote p { margin: 0; }
.prose .wp-block-pullquote { margin: 2em 0; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); font-style: italic; }
.prose .wp-block-embed iframe, .prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.prose .wp-block-separator { border: 0; height: 1px; background: var(--faint); margin: 3em 0; }
.prose p[data-lead] { font-size: clamp(19px, 1.6vw, 24px); color: var(--ivory); line-height: 1.55; }
.prose .is-style-lead { font-size: clamp(19px, 1.6vw, 24px); color: var(--ivory); }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.prose .wp-block-gallery figure { margin: 0; }
.prose .wp-block-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose--article { max-width: 680px; }
.free-lead { max-width: 760px; margin-top: 26px; }
.chapter .skills { grid-template-columns: 1fr; }
.chapter .questions { margin: 24px 0 30px; }

/* Light sections (Academy) */
.light .statement, .light .lyric .word.is-sung { color: var(--ink); }
.light .gold, .light em.gold, .light .statement em, .light .chapter__num { color: #a8692a; }
.light .chapter__num { -webkit-text-stroke-color: rgba(168, 105, 42, .8); color: transparent; }
.light .prose { color: rgba(11, 9, 10, .74); }
.light .prose strong, .light .prose em, .light .prose p[data-lead] { color: var(--ink); }
.light .prose .dropcap::first-letter { color: #a8692a; }
.light .lead, .light .free-lead { color: var(--ink); }
.light .litany { color: var(--ink); border-left-color: #a8692a; }
.light .lyric .word { color: rgba(11, 9, 10, .16); }
.light .lyric .word.is-accent.is-sung { color: #a8692a; }
.light .questions span { color: rgba(11, 9, 10, .35); }
.light .questions span.is-on { color: var(--ink); }
.light .prose li::marker { color: #a8692a; }
.light .frame .reveal-cover { background: var(--paper); }
.ac-editorial .section:first-child { padding-top: clamp(60px, 8vw, 120px); }

/* Contact form */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__ok, .form__err { display: block; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.3; margin: 0 0 20px; }
.form__ok { color: var(--gold); }
.form__err { color: #ff8a6a; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* Feedback screenshots */
.fb-card--real { position: relative; }
.fb-card--real a { display: block; border-radius: 22px; overflow: hidden; border: 1px solid rgba(244, 237, 228, .14); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.fb-card--real img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.fb-card--real a:hover img { transform: scale(1.03); }
.fb-card__cap { margin-top: 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Student videos */
.vid__video, .vid__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid__frame .vid__play { z-index: 2; }
.vid__frame.is-playing .vid__play { opacity: 0; pointer-events: none; }
.vid__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 9, 10, .55)); pointer-events: none; z-index: 1; transition: opacity .4s; }
.vid__frame.is-playing::after { opacity: 0; }

/* News pagination */
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid rgba(244, 237, 228, .2); font-size: 13px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

@media (min-width: 900px) { .vids { grid-template-columns: repeat(3, 1fr); } }
.vid__video { background: #000; }
