
/* v1.6 – site-wide responsive navigation; preserves the desktop masthead. */
.ah-menu-toggle { display:none; }
.nav-links ul.ah-menu { display:flex; align-items:center; gap:inherit; margin:0; padding:0; list-style:none; }
.nav-links ul.ah-menu li { list-style:none; margin:0; padding:0; }
@media (min-width: 961px) and (max-width: 1250px) {
 .nav-container { width: min(100% - 2rem, var(--max-width, 1280px)); gap:1.25rem; }
 .nav-links { gap:clamp(.65rem,1.4vw,1.5rem); }
 .nav-links ul.ah-menu { gap:inherit; }
 .nav-links a { font-size:.71rem; letter-spacing:.08em; white-space:nowrap; }
 .logo { font-size:1.03rem; letter-spacing:.08em; flex-shrink:0; }
}
@media (max-width:960px) {
 .site-header, .poetry-header, .poem-header { position:relative; z-index:30; width:100%; }
 .site-header { background:#1C1C1C; }
 .site-header.ah-header-on-light { background:#FAF8F5; }
 .poetry-header, .poem-header { background:#0B0808; }
 .site-header .nav-container, .poetry-header .nav-container, .poem-header .nav-container,
 .site-header.ah-header-on-light .nav-container {
   width:calc(100% - 2rem); max-width:100%; padding:.95rem 0;
   display:flex; flex-direction:row; justify-content:space-between; align-items:center;
   flex-wrap:wrap; gap:.5rem; margin:0 auto;
 }
 .nav-container .logo { flex:1 1 auto; min-width:0; font-size:clamp(.93rem,3.4vw,1.17rem); letter-spacing:.075em; line-height:1.2; }
 .nav-container .logo span { font-size:.58rem; letter-spacing:.18em; margin-top:.3rem; }
 .ah-menu-toggle {
   display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
   flex:0 0 auto; padding:.65rem .2rem .65rem .7rem; min-width:48px; min-height:44px;
   background:transparent !important; border:0 !important; box-shadow:none !important;
   color:#F3EADF !important; border-radius:0 !important; cursor:pointer;
   font:700 .67rem/1 'Lato',sans-serif !important; letter-spacing:.12em; text-transform:uppercase;
   -webkit-appearance:none; appearance:none;
 }
 .site-header.ah-header-on-light .ah-menu-toggle { color:#292521 !important; }
 .ah-menu-toggle-bars { display:grid; gap:4px; width:21px; }
 .ah-menu-toggle-bars span { display:block; width:100%; height:1.5px; background:currentColor; transition:transform .2s,opacity .2s; }
 .ah-menu-open .ah-menu-toggle-bars span:first-child { transform:translateY(5.5px) rotate(45deg); }
 .ah-menu-open .ah-menu-toggle-bars span:nth-child(2) { opacity:0; }
 .ah-menu-open .ah-menu-toggle-bars span:last-child { transform:translateY(-5.5px) rotate(-45deg); }
 .nav-container > .nav-links { display:none !important; flex:0 0 100%; width:100%; min-width:0; margin:0;
    padding:1rem 0 .6rem; border-top:1px solid rgba(243,234,223,.2);
    flex-direction:column; align-items:stretch; gap:0; }
 .ah-header-on-light .nav-container > .nav-links { border-top-color:#ded2c9; }
 .ah-menu-open .nav-container > .nav-links { display:flex !important; }
 .nav-links ul.ah-menu { display:flex; flex-direction:column; align-items:stretch; gap:0; width:100%; }
 .nav-links ul.ah-menu li { width:100%; }
 .nav-container .nav-links a, .nav-container .nav-links ul.ah-menu a {
   display:block; width:100%; padding:.75rem .15rem; border:0; font-size:.76rem;
   line-height:1.5; letter-spacing:.13em; text-align:left;
 }
 .site-header:not(.ah-header-on-light) .nav-links a { color:#F3EADF; }
 .ah-menu-toggle:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
 .site-footer .footer-links, .poetry-footer .footer-links { flex-wrap:wrap; justify-content:center; }
}
@media (max-width:600px) {
 html, body { max-width:100%; overflow-x:clip; }
 .container { width:calc(100% - 2rem); max-width:100%; }
 img, video, iframe { max-width:100%; }
 .ah-paper, .ah-reading-article, .ah-article-body, .poem-body { min-width:0; overflow-wrap:anywhere; }
 .ah-paper { padding-left:1rem; padding-right:1rem; }
 .ah-article-body .alignwide { width:100%; left:auto; transform:none; }
 .ah-article-body h2 { font-size:clamp(1.5rem,7vw,2rem); }
 .ah-article-body h3 { font-size:clamp(1.25rem,6vw,1.7rem); }
 .ah-article-body pre, .wp-block-preformatted { max-width:100%; overflow-x:auto; }
 .woocommerce ul.products { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
 .woocommerce ul.products li.product { width:auto !important; float:none !important; margin:0 !important; min-width:0; }
 .woocommerce div.product div.images, .woocommerce div.product div.summary { float:none !important; width:100% !important; }
}
@media (max-width:420px) {
 .woocommerce ul.products { grid-template-columns:1fr; }
 .ah-menu-toggle-label { font-size:.62rem; }
}
/* Audio – no browser/WordPress/WooCommerce blue buttons, under any interaction state. */
.ah-poem-audio .ah-audio-toggle,
.ah-poem-audio .ah-audio-toggle:hover,
.ah-poem-audio .ah-audio-toggle:active,
.ah-poem-audio .ah-audio-toggle:focus,
.ah-poem-audio .ah-audio-toggle:focus-visible {
 -webkit-appearance:none !important; appearance:none !important;
 display:inline-grid !important; place-items:center !important; flex:0 0 2.4rem;
 width:2.4rem !important; height:2.4rem !important; padding:0 !important;
 border-radius:50% !important; border:1px solid rgba(243,234,223,.62) !important;
 color:#F3EADF !important; background:#4A1F24 !important;
 box-shadow:none !important; text-shadow:none !important; cursor:pointer;
 line-height:1 !important; font:inherit;
}
.ah-poem-audio .ah-audio-toggle:hover,
.ah-poem-audio .ah-audio-toggle:focus-visible { background:#6B3038 !important; border-color:#F3EADF !important; }
.ah-poem-audio .ah-audio-toggle:focus-visible { outline:2px solid #F3EADF !important; outline-offset:3px; }
.ah-poem-audio .ah-audio-toggle svg { display:block; width:13px; height:13px; fill:currentColor; }
.ah-poem-audio .ah-audio-toggle .ah-pause-icon { display:none; }
.ah-poem-audio.is-playing .ah-audio-toggle .ah-play-icon { display:none; }
.ah-poem-audio.is-playing .ah-audio-toggle .ah-pause-icon { display:block; }
.ah-poem-audio .ah-audio-progress { accent-color:#A65C66 !important; }
.ah-poem-audio .ah-audio-progress::-webkit-slider-thumb { background:#F3EADF !important; border:0 !important; }
.ah-poem-audio .ah-audio-progress::-moz-range-thumb { background:#F3EADF !important; border:0 !important; }
.ah-poem-audio .ah-audio-progress:focus-visible { outline:2px solid #F3EADF; outline-offset:4px; }
@media(max-width:480px) {
 .ah-poem-audio .ah-audio-controls { gap:.5rem; }
 .ah-poem-audio .ah-audio-toggle { flex-basis:2.25rem; width:2.25rem !important; height:2.25rem !important; }
}
