/* UECF.NET Orthodox Study Bible — Telugu edition stylesheet.
   Inherits the shared Study Bible layout (same file the English Orthodox
   edition imports) and the Orthodox deep-blue + gold palette, then adds
   Telugu-specific typography: larger glyphs, taller line-height, and
   Noto Telugu fonts. Nothing in the English edition is modified. */
@import url("../../kjv-study-bible/css/study-bible.css");

/* ---------- Orthodox palette (identical to the English Orthodox edition) ---------- */
:root{
  --accent:#0B4F6C;
  --accent-soft:#E0B95A;
  --link:var(--accent);
  --gold:#C79A3D;
  --gold-soft:#E4C685;
  --dropcap-color:var(--accent);
  --highlight-bg:#F4EED7;

  /* Telugu typography */
  --font-te-sans:"Noto Sans Telugu","Nirmala UI","Gautami",system-ui,sans-serif;
  --font-te-serif:"Noto Serif Telugu","Noto Sans Telugu","Nirmala UI","Gautami",serif;
  --font-display:"Noto Serif Telugu","Fraunces",serif;
  --font-body:"Noto Sans Telugu","Source Sans 3","Nirmala UI",system-ui,sans-serif;
  --font-scripture:"Noto Serif Telugu","Noto Sans Telugu","Nirmala UI",serif;
  --scripture-size:1.16rem;   /* Telugu needs ~8% more than Latin for equal legibility */
  --scripture-line:2.05;      /* room for stacked vowel signs / conjuncts */
}
:root[data-theme="dark"]{
  --accent:#6FB2D3;
  --accent-soft:#C79A3D;
  --link:#9AD0F0;
  --highlight-bg:#2A2620;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --accent:#6FB2D3;
    --accent-soft:#C79A3D;
    --link:#9AD0F0;
    --highlight-bg:#2A2620;
  }
}

/* ---------- Telugu text metrics ---------- */
html[lang="te"] body{line-height:1.7; word-spacing:.04em;}
.sb-brand-text small{letter-spacing:.02em; text-transform:none; font-size:.8rem;}
.sb-side h2{text-transform:none; letter-spacing:.02em; font-size:.9rem; line-height:1.5;}
.sb-chapter-head .kicker{text-transform:none; letter-spacing:.03em; font-size:.9rem; line-height:1.6;}
.sb-chapter-head h1{font-size:2rem; line-height:1.4;}
.sb-book-list button{font-size:.95rem; line-height:1.55; padding:7px 8px;}
.sb-select,.sb-input,.sb-btn{font-size:.95rem; line-height:1.5;}
.sb-select{min-width:150px;}
.sb-notes-panel h2{font-size:1.1rem;}
.sb-note-entry{font-size:.95rem; line-height:1.85;}
.sb-notes-empty,.loading-msg{font-size:.95rem; line-height:1.8;}
.sb-modal-results li{font-size:.95rem; line-height:1.8;}
.sb-modal-results .ref{font-size:.85rem;}
.sb-modal-field input{font-size:1.1rem;}
.sb-bn-btn{font-size:.72rem;}
.sb-footer{font-size:.9rem; line-height:1.9;}
.sb-footer-other{font-size:.85rem;}
.sb-other-bibles-label{text-transform:none; letter-spacing:.02em; font-size:.82rem;}
.sb-other-bibles-drop{min-width:260px;}
.sb-other-bibles-drop a{font-size:.95rem; line-height:1.6;}
.sb-book-intro{font-size:1.02rem; line-height:1.95;}
.sb-verse{padding:2px 3px; line-height:inherit;}
.sb-verse-num{font-family:var(--font-body); font-size:.68em; vertical-align:super; margin-right:3px;}
.sb-verse + .sb-verse{margin-left:1px;}
.sb-scripture p{margin:0 0 .85em;}

/* ---------- Language switch (English | తెలుగు) ---------- */
.sb-lang-switch{
  display:inline-flex; align-items:center; border:1px solid rgba(228,198,133,.55); border-radius:999px;
  overflow:hidden; margin-left:6px; font-size:.85rem; line-height:1;
}
.sb-lang-switch a{
  color:var(--cream); padding:7px 12px; font-weight:600; border-radius:0; text-decoration:none;
}
.sb-lang-switch a:hover{background:rgba(228,198,133,.18); color:var(--gold-soft);}
.sb-lang-switch a[aria-current="page"]{background:var(--gold); color:var(--ink);}
.sb-lang-switch a[aria-current="page"]:hover{background:var(--gold-soft); color:var(--ink);}
/* Copy of the switch shown inside the mobile "more" sheet only (header carries it on desktop) */
.sb-lang-switch-inline{
  display:none; align-items:center; border:1px solid var(--border); border-radius:8px; overflow:hidden;
  font-size:.9rem; line-height:1;
}
.sb-lang-switch-inline a{color:var(--text-soft); padding:8px 12px; font-weight:600;}
.sb-lang-switch-inline a:hover{background:var(--bg-panel-alt); text-decoration:none;}
.sb-lang-switch-inline a[aria-current="page"]{background:var(--accent); color:#fff;}
.sb-mtop-lang{
  flex:0 0 auto; color:var(--cream); font-size:.8rem; font-weight:700; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(228,198,133,.5); text-decoration:none; line-height:1.3;
}
.sb-mtop-lang:hover{background:rgba(228,198,133,.18); text-decoration:none;}

/* ---------- Reader note (LXX / Hebrew numbering) & pending-text notice ---------- */
.sb-reader-note{
  background:var(--bg-panel-alt); border:1px solid var(--border); border-left:4px solid var(--gold);
  border-radius:6px; padding:12px 16px; margin:0 0 18px; font-family:var(--font-body);
  font-size:.92rem; line-height:1.85; color:var(--text-soft);
}
.sb-pending{
  background:var(--bg-panel-alt); border:1px dashed var(--accent); border-radius:8px;
  padding:22px 22px 20px; margin:6px 0 10px; font-family:var(--font-body); font-size:1rem; line-height:1.9; color:var(--text-soft);
}
.sb-pending strong{display:block; color:var(--accent); font-family:var(--font-display); font-size:1.15rem; margin-bottom:8px;}
.sb-pending a{font-weight:600;}
.sb-book-list button.pending::after{content:"◌"; color:var(--text-soft); font-size:.7em; margin-left:6px; opacity:.7;}
.sb-book-list button.active.pending::after{color:#fff;}
.sb-notes-status{
  font-size:.9rem; color:var(--text-soft); line-height:1.8; border:1px dashed var(--border); border-radius:6px;
  padding:12px 14px; margin:0;
}
.sb-en-name{display:block; font-family:"Fraunces",serif; font-size:.55em; color:var(--text-soft); font-weight:500; letter-spacing:.02em; margin-top:2px;}

/* ---------- Responsive adjustments for Telugu ---------- */
@media (max-width: 1080px){
  .sb-chapter-head h1{font-size:1.75rem;}
}
@media (max-width: 780px){
  .sb-mtop-title strong{font-size:1rem; line-height:1.4;}
  .sb-header .sb-lang-switch{display:none;}
  .sb-toolbar-inner .sb-lang-switch-inline{display:inline-flex; width:100%; justify-content:stretch;}
  /* keep drawer headings clear of the sticky top bar */
  .sb-side, .sb-notes-panel-col{padding-top:calc(66px + env(safe-area-inset-top));}
  .sb-toolbar-inner .sb-lang-switch-inline a{flex:1; text-align:center;}
  .sb-select{min-width:0;}
}
@media (max-width: 640px){
  .sb-chapter-head h1{font-size:1.55rem;}
  :root{--scripture-size:1.12rem;}
  .sb-bn-btn{font-size:.68rem;}
}
@media (max-width: 400px){
  .sb-bn-btn{font-size:.64rem; padding:6px 2px;}
  .sb-chapter-head h1{font-size:1.45rem;}
}
@media print{
  .sb-lang-switch,.sb-lang-switch-inline,.sb-mtop-lang{display:none !important;}
  .sb-scripture{font-size:12.5pt; line-height:1.9;}
}
