/* ======================================================================
   OKU v30.16.287 · GENTLE ADDITIONS
   07 — Hz. Muhammed life timeline
   11 — Kur'an ile Konuş discovery sentences
   Additive only: no reader/audio/sync selectors are touched here.
   ====================================================================== */

:root{
  --oku-ga-ink:#171714;
  --oku-ga-paper:#f1ecdd;
  --oku-ga-gold:#c99e45;
  --oku-ga-gold-soft:#ebcf66;
  --oku-ga-line:rgba(23,23,20,.18);
  --oku-ga-muted:rgba(23,23,20,.58);
  --oku-ga-font:"JetBrains Mono Local","JetBrains Mono",monospace;
}

/* ----------------------------------------------------------------------
   07 · Hz. Muhammed — thin life timeline
   ---------------------------------------------------------------------- */
#screen-muhammad .oku-life-timeline{
  width:calc(100% - 40px);
  max-width:1660px;
  margin:4px auto 28px;
  padding:18px 18px 16px;
  box-sizing:border-box;
  border:1px solid rgba(23,23,20,.12);
  border-radius:26px;
  background:rgba(255,255,255,.13);
  color:var(--oku-ga-ink);
  font-family:var(--oku-ga-font)!important;
}
#screen-muhammad .oku-life-timeline *{font-family:var(--oku-ga-font)!important;box-sizing:border-box}
.oku-life-timeline__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 2px 15px;
}
.oku-life-timeline__eyebrow{
  font:700 10px/1 var(--oku-ga-font);
  letter-spacing:.15em;
  color:rgba(23,23,20,.68);
  text-transform:uppercase;
}
.oku-life-timeline__count{
  font:600 10px/1 var(--oku-ga-font);
  letter-spacing:.09em;
  color:rgba(23,23,20,.42);
  text-transform:uppercase;
  white-space:nowrap;
}
.oku-life-timeline__track{
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:start;
  min-height:62px;
  padding-top:2px;
}
.oku-life-timeline__rail,
.oku-life-timeline__progress{
  position:absolute;
  left:8%;
  right:8%;
  top:10px;
  height:1px;
  border-radius:99px;
  pointer-events:none;
}
.oku-life-timeline__rail{background:rgba(23,23,20,.20)}
.oku-life-timeline__progress{
  right:auto;
  width:0;
  background:var(--oku-ga-gold);
  transition:width .48s cubic-bezier(.2,.75,.2,1);
}
.oku-life-timeline__milestone{
  position:relative;
  z-index:2;
  appearance:none;
  border:0;
  background:transparent;
  color:var(--oku-ga-ink);
  padding:0 8px;
  margin:0;
  min-width:0;
  text-align:center;
  cursor:pointer;
  opacity:.66;
  transition:opacity .28s ease,color .28s ease;
}
.oku-life-timeline__milestone:hover,
.oku-life-timeline__milestone:focus-visible,
.oku-life-timeline__milestone.is-active{opacity:1;outline:none}
.oku-life-timeline__dot{
  display:block;
  width:17px;
  height:17px;
  margin:1px auto 9px;
  border-radius:50%;
  border:1px solid rgba(23,23,20,.38);
  background:var(--oku-ga-paper);
  box-shadow:0 0 0 0 rgba(201,158,69,0);
  transition:background .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.oku-life-timeline__milestone.is-active .oku-life-timeline__dot,
.oku-life-timeline__milestone:hover .oku-life-timeline__dot,
.oku-life-timeline__milestone:focus-visible .oku-life-timeline__dot{
  background:var(--oku-ga-gold);
  border-color:var(--oku-ga-gold);
  box-shadow:0 0 0 5px rgba(201,158,69,.10);
}
.oku-life-timeline__label{
  display:block;
  font:700 11px/1.2 var(--oku-ga-font);
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.oku-life-timeline__year{
  display:block;
  margin-top:4px;
  font:500 9px/1 var(--oku-ga-font);
  letter-spacing:.08em;
  color:rgba(23,23,20,.48);
}
.oku-life-timeline__hint{
  margin:11px 2px 0;
  font:500 9px/1.4 var(--oku-ga-font);
  color:rgba(23,23,20,.44);
}

/* ----------------------------------------------------------------------
   11 · Kur'an ile Konuş — discovery sentences
   ---------------------------------------------------------------------- */
#screen-search .oku-discovery-prompts{
  margin:12px 0 6px;
  padding:14px 15px 15px;
  border:1px solid rgba(23,23,20,.12);
  border-radius:22px;
  background:rgba(255,255,255,.12);
  color:var(--oku-ga-ink);
  font-family:var(--oku-ga-font)!important;
}
#screen-search .oku-discovery-prompts *{font-family:var(--oku-ga-font)!important;box-sizing:border-box}
.oku-discovery-prompts__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:11px;
}
.oku-discovery-prompts__copy{min-width:0}
.oku-discovery-prompts__eyebrow{
  display:block;
  margin-bottom:5px;
  font:700 9px/1 var(--oku-ga-font);
  letter-spacing:.14em;
  color:#8d682a;
  text-transform:uppercase;
}
.oku-discovery-prompts__note{
  display:block;
  font:500 10px/1.35 var(--oku-ga-font);
  color:rgba(23,23,20,.55);
}
.oku-discovery-prompts__refresh{
  flex:0 0 auto;
  appearance:none;
  border:0;
  background:transparent;
  color:rgba(23,23,20,.56);
  padding:7px 2px;
  font:700 9px/1 var(--oku-ga-font);
  letter-spacing:.12em;
  cursor:pointer;
  text-transform:uppercase;
  transition:color .18s ease;
}
.oku-discovery-prompts__refresh:hover,
.oku-discovery-prompts__refresh:focus-visible{color:#8d682a;outline:none}
.oku-discovery-prompts__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  transition:opacity .18s ease;
}
.oku-discovery-prompts.is-changing .oku-discovery-prompts__grid{opacity:.12}
.oku-discovery-prompt{
  appearance:none;
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  border:1px solid rgba(23,23,20,.22);
  border-radius:16px;
  background:transparent;
  color:var(--oku-ga-ink);
  padding:12px 13px;
  text-align:left;
  font:600 10px/1.35 var(--oku-ga-font);
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.oku-discovery-prompt:hover,
.oku-discovery-prompt:focus-visible{
  background:var(--oku-ga-ink);
  color:var(--oku-ga-paper);
  border-color:var(--oku-ga-ink);
  outline:none;
}
.oku-discovery-prompt::after{
  content:"→";
  margin-left:auto;
  padding-left:12px;
  font-size:14px;
  line-height:1;
  opacity:.52;
}
.oku-discovery-prompt.is-picked{
  background:var(--oku-ga-gold);
  color:var(--oku-ga-ink);
  border-color:var(--oku-ga-gold);
}

/* Dark mode: keep the same OKU rhythm without inventing a new visual language. */
html[data-oku-theme="dark"] #screen-muhammad .oku-life-timeline,
html[data-oku-theme="dark"] #screen-search .oku-discovery-prompts{
  border-color:rgba(247,236,215,.12);
  background:rgba(0,0,0,.10);
  color:#f7ecd7;
}
html[data-oku-theme="dark"] .oku-life-timeline__eyebrow,
html[data-oku-theme="dark"] .oku-life-timeline__count,
html[data-oku-theme="dark"] .oku-life-timeline__year,
html[data-oku-theme="dark"] .oku-life-timeline__hint,
html[data-oku-theme="dark"] .oku-discovery-prompts__note,
html[data-oku-theme="dark"] .oku-discovery-prompts__refresh{color:rgba(247,236,215,.58)}
html[data-oku-theme="dark"] .oku-life-timeline__rail{background:rgba(247,236,215,.18)}
html[data-oku-theme="dark"] .oku-life-timeline__dot{background:#37332e;border-color:rgba(247,236,215,.38)}
html[data-oku-theme="dark"] .oku-life-timeline__milestone,
html[data-oku-theme="dark"] .oku-discovery-prompt{color:#f7ecd7}
html[data-oku-theme="dark"] .oku-discovery-prompt{border-color:rgba(247,236,215,.20)}
html[data-oku-theme="dark"] .oku-discovery-prompt:hover,
html[data-oku-theme="dark"] .oku-discovery-prompt:focus-visible{background:#f7ecd7;color:#171714;border-color:#f7ecd7}

@media (max-width:980px){
  .oku-discovery-prompts__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #screen-muhammad .oku-life-timeline{width:calc(100% - 24px);margin-bottom:20px;padding:16px 12px 14px}
  .oku-life-timeline__label{font-size:10px}
}
@media (max-width:640px){
  #screen-muhammad .oku-life-timeline{width:calc(100% - 20px);border-radius:22px;padding:14px 8px 12px;overflow:hidden}
  .oku-life-timeline__head{margin:0 6px 13px;align-items:flex-start}
  .oku-life-timeline__track{overflow-x:auto;grid-template-columns:repeat(5,112px);padding:2px 6px 7px;scrollbar-width:none}
  .oku-life-timeline__track::-webkit-scrollbar{display:none}
  .oku-life-timeline__rail,.oku-life-timeline__progress{left:62px;right:auto;width:448px}
  .oku-life-timeline__progress{width:0}
  .oku-life-timeline__label{white-space:normal;min-height:24px}
  .oku-life-timeline__hint{margin:7px 6px 0}
  #screen-search .oku-discovery-prompts{padding:13px 12px 13px;border-radius:20px}
  .oku-discovery-prompts__head{align-items:flex-start}
  .oku-discovery-prompts__grid{grid-template-columns:1fr;gap:7px}
  .oku-discovery-prompt{min-height:50px}
}

@media (prefers-reduced-motion:reduce){
  .oku-life-timeline__progress,
  .oku-life-timeline__milestone,
  .oku-life-timeline__dot,
  .oku-discovery-prompts__grid,
  .oku-discovery-prompt{transition:none!important}
}


/* ======================================================================
   OKU v30.16.288 · DARK MODE SEARCH RESULT CONTRAST
   Surgical accessibility fix: search-result verse text sits on light cards
   even in dark mode, so Arabic verse ink must remain dark.
   ====================================================================== */
html[data-oku-theme="dark"] #screen-search #searchResults [dir="rtl"],
html[data-oku-theme="dark"] #screen-search #searchResults [lang="ar"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="arabic"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="Arabic"]{
  color:#171714!important;
  text-shadow:none!important;
}

/* Some result renderers wrap the Arabic verse in a neutral verse-text node
   without lang/dir metadata. Keep only those verse-text nodes dark; labels,
   controls and dark UI surfaces are intentionally untouched. */
html[data-oku-theme="dark"] #screen-search #searchResults [class*="verse"][class*="text"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="ayah"][class*="text"]{
  color:#171714!important;
  text-shadow:none!important;
}


/* ======================================================================
   OKU v30.16.289 · VERSE CARD VISUAL ALIGNMENT
   Align reader ayetleri + Konuş içinde görünen ayet kutuları to the
   provided day/night mockups. CSS only; no reader/audio/sync logic touched.
   ====================================================================== */
:root{
  --oku-vc-paper:#f4efe3;
  --oku-vc-paper-soft:#efe6d2;
  --oku-vc-line:#b79d7f;
  --oku-vc-meta:#5f574c;
  --oku-vc-ink:#171714;
  --oku-vc-arabic:#d7895d;
  --oku-vc-tr:#171714;
  --oku-vc-note:#efe6d3;

  --oku-vc-dark-surface:#3b3733;
  --oku-vc-dark-surface-2:#27231f;
  --oku-vc-dark-line:rgba(234,223,196,.26);
  --oku-vc-dark-meta:rgba(246,238,224,.82);
  --oku-vc-dark-ink:#f4eee2;
  --oku-vc-dark-arabic:#d7895d;
  --oku-vc-dark-tr:#d4b86a;
  --oku-vc-dark-note:#2a2520;
}

/* Shared reader + search/conversation verse-card shell */
#screen-reader .verse-list .verse,
#screen-search .search-results .verse,
#screen-search .context-verses .verse,
#screen-search #searchResults article[class*="verse"],
#screen-search #searchResults article[class*="ayah"],
#screen-search #searchResults div[class*="verse-card"],
#screen-search #searchResults div[class*="ayah-card"]{
  border-radius:42px;
  border:1.5px solid var(--oku-vc-line)!important;
  background:var(--oku-vc-paper)!important;
  box-shadow:none!important;
  color:var(--oku-vc-ink)!important;
}

#screen-reader .verse-list .verse .verse-top,
#screen-search .search-results .verse .verse-top,
#screen-search .context-verses .verse .verse-top,
#screen-search #searchResults article[class*="verse"] .verse-top,
#screen-search #searchResults article[class*="ayah"] .verse-top{
  color:var(--oku-vc-meta)!important;
}

#screen-reader .verse-list .verse .verse-ref,
#screen-search .search-results .verse .verse-ref,
#screen-search .context-verses .verse .verse-ref,
#screen-search #searchResults .verse-ref,
#screen-search #searchResults [class*="ref"]{
  color:var(--oku-vc-meta)!important;
}

#screen-reader .verse-list .verse .mini-action,
#screen-search .search-results .verse .mini-action,
#screen-search .context-verses .verse .mini-action,
#screen-search #searchResults .mini-action{
  color:var(--oku-vc-meta)!important;
  border-color:rgba(95,87,76,.45)!important;
  background:transparent!important;
  box-shadow:none!important;
}

#screen-reader .verse-list .verse .verse-arabic,
#screen-search .search-results .verse .verse-arabic,
#screen-search .context-verses .verse .verse-arabic,
#screen-search #searchResults [dir="rtl"][lang="ar"],
#screen-search #searchResults .verse-arabic,
#screen-search #searchResults [class*="arabic"]{
  color:var(--oku-vc-arabic)!important;
  text-shadow:none!important;
}

#screen-reader .verse-list .verse .verse-translation,
#screen-search .search-results .verse .verse-translation,
#screen-search .context-verses .verse .verse-translation,
#screen-search #searchResults [class*="translation"],
#screen-search #searchResults [class*="meal"],
#screen-search #searchResults [class*="meaning"]{
  color:var(--oku-vc-tr)!important;
}

#screen-reader .verse-list .verse hr,
#screen-search #searchResults .verse hr,
#screen-search #searchResults [class*="verse"] hr,
#screen-search #searchResults [class*="ayah"] hr{
  border-color:rgba(95,87,76,.22)!important;
}

#screen-reader .verse-list .verse [class*="note"],
#screen-search #searchResults .verse [class*="note"],
#screen-search #searchResults [class*="verse"] [class*="note"],
#screen-search #searchResults [class*="ayah"] [class*="note"]{
  background:var(--oku-vc-note)!important;
  color:var(--oku-vc-ink)!important;
  border-color:rgba(95,87,76,.10)!important;
  box-shadow:none!important;
}

#screen-reader .verse-list .verse [class*="section-title"],
#screen-reader .verse-list .verse [class*="related"],
#screen-search #searchResults [class*="section-title"],
#screen-search #searchResults [class*="related"]{
  color:var(--oku-vc-arabic)!important;
}

html[data-oku-theme="dark"] #screen-reader .verse-list .verse,
html[data-oku-theme="dark"] #screen-search .search-results .verse,
html[data-oku-theme="dark"] #screen-search .context-verses .verse,
html[data-oku-theme="dark"] #screen-search #searchResults article[class*="verse"],
html[data-oku-theme="dark"] #screen-search #searchResults article[class*="ayah"],
html[data-oku-theme="dark"] #screen-search #searchResults div[class*="verse-card"],
html[data-oku-theme="dark"] #screen-search #searchResults div[class*="ayah-card"]{
  background:var(--oku-vc-dark-surface)!important;
  border-color:var(--oku-vc-dark-line)!important;
  color:var(--oku-vc-dark-ink)!important;
}

html[data-oku-theme="dark"] #screen-reader .verse-list .verse .verse-top,
html[data-oku-theme="dark"] #screen-search #searchResults .verse .verse-top,
html[data-oku-theme="dark"] #screen-search #searchResults [class*="verse"] .verse-top,
html[data-oku-theme="dark"] #screen-search #searchResults [class*="ayah"] .verse-top,
html[data-oku-theme="dark"] #screen-reader .verse-list .verse .verse-ref,
html[data-oku-theme="dark"] #screen-search #searchResults .verse-ref,
html[data-oku-theme="dark"] #screen-search #searchResults [class*="ref"]{
  color:var(--oku-vc-dark-meta)!important;
}

html[data-oku-theme="dark"] #screen-reader .verse-list .verse .mini-action,
html[data-oku-theme="dark"] #screen-search #searchResults .mini-action{
  color:var(--oku-vc-dark-meta)!important;
  border-color:rgba(234,223,196,.22)!important;
  background:transparent!important;
}

html[data-oku-theme="dark"] #screen-reader .verse-list .verse .verse-arabic,
html[data-oku-theme="dark"] #screen-search .search-results .verse .verse-arabic,
html[data-oku-theme="dark"] #screen-search .context-verses .verse .verse-arabic,
html[data-oku-theme="dark"] #screen-search #searchResults [dir="rtl"][lang="ar"],
html[data-oku-theme="dark"] #screen-search #searchResults .verse-arabic,
html[data-oku-theme="dark"] #screen-search #searchResults [class*="arabic"]{
  color:var(--oku-vc-dark-arabic)!important;
}

html[data-oku-theme="dark"] #screen-reader .verse-list .verse .verse-translation,
html[data-oku-theme="dark"] #screen-search .search-results .verse .verse-translation,
html[data-oku-theme="dark"] #screen-search .context-verses .verse .verse-translation,
html[data-oku-theme="dark"] #screen-search #searchResults [class*="translation"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="meal"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="meaning"]{
  color:var(--oku-vc-dark-tr)!important;
}

html[data-oku-theme="dark"] #screen-reader .verse-list .verse hr,
html[data-oku-theme="dark"] #screen-search #searchResults .verse hr,
html[data-oku-theme="dark"] #screen-search #searchResults [class*="verse"] hr,
html[data-oku-theme="dark"] #screen-search #searchResults [class*="ayah"] hr{
  border-color:rgba(234,223,196,.18)!important;
}

html[data-oku-theme="dark"] #screen-reader .verse-list .verse [class*="note"],
html[data-oku-theme="dark"] #screen-search #searchResults .verse [class*="note"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="verse"] [class*="note"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="ayah"] [class*="note"]{
  background:var(--oku-vc-dark-note)!important;
  color:var(--oku-vc-dark-tr)!important;
  border-color:rgba(234,223,196,.08)!important;
}

html[data-oku-theme="dark"] #screen-reader .verse-list .verse [class*="section-title"],
html[data-oku-theme="dark"] #screen-reader .verse-list .verse [class*="related"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="section-title"],
html[data-oku-theme="dark"] #screen-search #searchResults [class*="related"]{
  color:var(--oku-vc-dark-arabic)!important;
}
