 #query{font-size:18px}
.section-heading-actions{display:flex;align-items:center;gap:14px}
.section-top{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--teal);text-decoration:none;font-size:20px}
.section-top:hover{border-color:var(--teal);background:#edf5f1}
.section-top:focus-visible{outline:3px solid #d8ae64;outline-offset:3px}
.mobile-menu-toggle{display:none}
@media(min-width:651px) and (max-width:1100px){
  .languages-section{margin:24px 0}
  .language-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  .language-tile{padding:10px;min-height:74px;border-radius:8px}
  .language-symbol{width:26px;height:24px;margin-bottom:4px;font-size:15px}
  .language-tile strong{font-size:10px}
  .language-tile small{font-size:8px;margin-top:3px}
  .tile-arrow{right:8px;top:10px;font-size:12px}
}
@media(max-width:650px){
  header{position:relative;height:auto;min-height:72px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}
  .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);font-size:11px;font-weight:600}
  .mobile-menu-toggle:focus-visible{outline:3px solid #d8ae64;outline-offset:3px}
  header nav{display:none;position:absolute;top:calc(100% + 6px);left:12px;right:12px;z-index:20;width:auto;height:auto;padding:6px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 28px #263b461a;grid-template-columns:minmax(0,1fr);gap:0;font-size:12px}
  header.menu-open nav{display:grid}
  nav>a,nav>button{width:100%;height:44px;justify-content:flex-start;padding:0 12px}
  nav>a:not(:last-child),nav>button{border-bottom:1px solid var(--line)}
  nav>a:last-child{display:flex}
  .section-heading-actions .muted{display:none}
  .search-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:"icon query clear" "button button button";gap:8px;padding:10px}
  .search-icon{grid-area:icon}
  #query{grid-area:query;width:100%;min-width:0;font-size:18px}
  #clear{grid-area:clear}
  .search-row kbd{display:none}
  .search-row .primary{grid-area:button;width:100%;justify-content:center}
}
@media(max-width:380px){
  header{padding:8px 12px}
  .brand{font-size:14px;gap:6px}
  .brand-icon{width:26px;height:30px;font-size:20px}
  .brand-light{font-size:10px}
  .mobile-menu-toggle{height:34px;padding:0 9px}
  .language-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;grid-template-areas:"from swap" "to swap";gap:8px 12px;align-items:end}
  .language-row label[for="from"]{grid-area:from}
  .language-row label[for="to"]{grid-area:to}
  #swap{grid-area:swap;width:34px;height:34px;margin:0;align-self:center;transform:rotate(90deg)}
}.back-to-top{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:20;display:flex;align-items:center;gap:6px;padding:10px 16px;border-radius:999px;background:var(--teal);color:#fff;font-size:13px;font-weight:600;text-decoration:none;box-shadow:0 8px 24px #263b4626}
.back-to-top:hover{background:#136459}
.back-to-top:focus-visible{outline:3px solid #d8ae64;outline-offset:3px}
@media(max-width:650px){.back-to-top{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));padding:9px 14px;font-size:12px}}
/* Keep the menu visible while scrolling. */
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:var(--bg)}
/* One header height on every page (phones use their own compact header below 651px). */
@media(min-width:651px){header{height:72px}}
@media(min-width:1371px){header{box-shadow:0 0 0 100vmax var(--bg);clip-path:inset(0 -100vmax)}}
html{scroll-padding-top:84px}
@media(max-width:1100px){html{scroll-padding-top:84px}}
.footer-links{display:flex;align-items:center;gap:20px}
.footer-links a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.footer-links a:hover{color:var(--teal)}
@media(max-width:950px){.footer-links>span{display:none}}
@media(max-width:650px){.footer-links{margin-top:10px}}
.account-menu{display:flex;align-items:center;gap:10px;font-size:12px;white-space:nowrap}
.account-menu a{color:var(--ink)}
.account-menu a:hover{color:var(--teal)}
.account-menu a:last-child{color:var(--teal);font-weight:600}
.account-menu span{color:#c5d0d3}
.account-menu .account-name{max-width:160px;overflow:hidden;text-overflow:ellipsis}
nav>.nav-account{display:none}
@media(max-width:650px){
  .account-menu{display:none}
  nav>.nav-account{display:flex}
}
nav>a{white-space:nowrap}
@media(min-width:651px) and (max-width:950px){
  header{gap:16px;padding:0 20px}
  nav{gap:16px;font-size:11px}
  .account-menu{gap:6px;font-size:11px}
}
.search-allowance{margin:-6px 0 16px;padding:10px 14px;border:1px solid #d2e5dc;border-radius:8px;background:#f1f7f4;font-size:12px;line-height:1.6;color:var(--ink)}
.search-allowance strong{font-weight:600;color:var(--teal)}
.search-allowance .allowance-link{color:var(--teal);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.has-results .search-allowance{margin-bottom:12px}
/* While results are showing, everything tightens so the heading, verse, search box, and the first card fit on one screen. */
.has-results .hero{padding:30px 0 30px}
.has-results .hero .eyebrow,.has-results .hero-decoration,.has-results .below-search{display:none}
.has-results .hero h1{font-size:40px;letter-spacing:-1px;margin:0 0 10px}
.has-results .daily-verse{margin-top:0}
.has-results .daily-verse blockquote{font-size:14px;line-height:1.45;margin:4px 0 2px}
.has-results .search-panel{padding-top:16px;padding-bottom:12px}
.has-results .search-row{margin-top:12px}
.has-results .popular{margin-top:8px}
.has-results #results-section{margin-top:10px}
.has-results #results-section .section-heading h2{margin:0 0 6px}
.has-results #result-eyebrow{display:none}
.has-results .limit-card{padding:18px 24px}
.has-results .limit-card h3{margin:0 0 6px}
.has-results .limit-card p{margin-bottom:14px}
/* The free-access banner says the same as the sign-in / not-found card, so it steps aside while one is shown. */
.has-results.has-limit-card .search-allowance{display:none}
@media(max-width:650px){.has-results .hero h1{font-size:30px}}
@media(max-width:650px){.search-allowance{margin-top:-10px;font-size:11px}}
.brand-logo{display:block;width:36px;height:36px;border-radius:9px;flex:none}
@media(max-width:650px){.brand-logo{width:32px;height:32px;border-radius:8px}}
@media(max-width:380px){.brand-logo{width:28px;height:28px;border-radius:7px}}

/* Phones: no Quick switch row; the language dropdowns and the swap button do the same. */
@media(max-width:650px){.popular{display:none}}
