/* AVAKOD site header — the approved two-row design (2026-10-24),
   plus the verse panel, sign-in state, and reader text-size control.
   Loaded after each page's own styles on every page of the site. */

:root { --fs-scale: 1; }

.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.h-row1 {
  background: var(--blue); color: #fff; min-height: 52px; padding: 6px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative;
}
.h-logo { font-weight: 700; font-size: 19px; letter-spacing: 0.08em; color: #fff; text-decoration: none; white-space: nowrap; }
.h-mid {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: 'Source Serif 4', serif; font-style: italic; font-size: 17px; color: #fff; white-space: nowrap;
}
.h-lang { display: flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; }
.h-lang a { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 500; padding: 4px 8px; border-radius: 10px; }
.h-lang a.on { background: #fff; color: var(--blue); font-weight: 700; }
.h-row2 {
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; padding: 8px 24px; flex-wrap: wrap;
}
.h-tool {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500;
  color: var(--text2); text-decoration: none; border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 16px; background: #fff; cursor: pointer; white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.h-tool:hover { color: var(--blue); border-color: var(--blue); }
.h-search { flex: 1 1 180px; display: flex; }
.h-search input {
  flex: 1; border: 1px solid var(--border); border-radius: 16px; padding: 7px 14px;
  font-size: 13.5px; font-family: 'Inter', sans-serif; min-width: 120px; width: 100%;
}
.h-search input:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }
.h-fs { display: inline-flex; gap: 4px; }
.fs-btn { font-weight: 700; padding: 6px 9px; }
.h-auth { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.h-auth .who { font-size: 13px; color: var(--text2); }
.h-signin { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.h-signin:hover { color: #fff; opacity: 0.9; }
.h-signout { display: inline-flex; margin: 0; }
.verse-panel {
  display: none; background: var(--gold-bg); border-bottom: 1px solid var(--gold);
  padding: 10px 24px; font-size: 14px;
}
.verse-panel.open { display: block; }
.verse-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.verse-panel input { flex: 1 1 200px; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; font-size: 14px; font-family: 'Inter', sans-serif; }
.verse-panel button { background: var(--gold); color: #fff; border: none; font-weight: 600; padding: 8px 14px; border-radius: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }
.verse-result { margin-top: 10px; background: #fff; border: 1px solid var(--gold); border-radius: 8px; padding: 12px 16px; }
.verse-result h4 { font-family: 'Source Serif 4', serif; font-size: 17px; margin-bottom: 2px; }
.verse-result .edition { font-size: 12px; color: var(--text3); margin-bottom: 8px; }
.verse-result p { font-size: 14.5px; margin: 5px 0; font-family: 'Source Serif 4', serif; line-height: 1.6; }
.verse-result sup { color: var(--gold); font-weight: 600; margin-right: 2px; }
.verse-result .err { color: var(--red); font-family: 'Inter', sans-serif; font-size: 13.5px; }
.verse-result .more { font-size: 13px; margin-top: 8px; }
.verse-result .more a { color: var(--blue); text-decoration: none; font-weight: 500; }
@media (max-width: 700px) {
  .h-mid { display: none; }
  .h-row1, .h-row2, .verse-panel { padding-left: 14px; padding-right: 14px; }
  .h-auth { margin-left: 0; }
}

/* Reader text-size control: header.js sets --fs-scale (remembered in
   localStorage). Rules are body-scoped so they win over page styles. */
body { font-size: calc(15px * var(--fs-scale)); }
body .sec-body p, body .sec-body li { font-size: calc(14.5px * var(--fs-scale)); }
body .sec-body blockquote, body .sec-body blockquote p { font-size: calc(15.5px * var(--fs-scale)); }
body .info-box p { font-size: calc(14.5px * var(--fs-scale)); }
body .frame-note { font-size: calc(14.5px * var(--fs-scale)); }
body .card-title { font-size: calc(17px * var(--fs-scale)); }
body .hero p { font-size: calc(15px * var(--fs-scale)); }
body .note-text { font-size: calc(14.5px * var(--fs-scale)); }
body .note-title { font-size: calc(17px * var(--fs-scale)); }
body .verse-block blockquote p { font-size: calc(15.5px * var(--fs-scale)); }
