/* BRAHM_ACHARYA_READING_SIZE_V1
   Accessibility only.
   Normal mode adds NO font-size override.
*/

/* Settings UI */
.brahm-reading-size-section{
  margin-top:5px;
  padding:8px 8px 7px;
  border-top:1px solid var(--line);
}

.brahm-reading-size-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 2px 6px;
}

.brahm-reading-size-title{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:10px;
  font-weight:650;
}

.brahm-reading-size-title strong{
  color:var(--text);
  font-size:12px;
  font-weight:650;
}

.brahm-reading-size-track{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:3px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg);
}

.brahm-reading-size-choice{
  position:relative;
  min-width:0;
  height:34px;
  display:grid;
  place-items:center;
  padding:0 8px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  font-weight:650;
  line-height:1;
  transition:
    background .14s ease,
    color .14s ease,
    border-color .14s ease,
    transform .12s ease;
}

.brahm-reading-size-choice[data-size="normal"]{
  font-size:12px;
}

.brahm-reading-size-choice[data-size="large"]{
  font-size:15px;
}

.brahm-reading-size-choice[data-size="xlarge"]{
  font-size:18px;
}

.brahm-reading-size-choice:hover,
.brahm-reading-size-choice:focus-visible{
  background:var(--hover);
  color:var(--text);
  outline:none;
}

.brahm-reading-size-choice:active{
  transform:scale(.97);
}

.brahm-reading-size-choice.active{
  color:var(--brand);
  background:var(--brand-soft);
  border-color:var(--brand);
}

/*
  IMPORTANT:
  normal = no rule here.
  Therefore all existing Light/Dark/Granth typography stays untouched.
*/

/* Light / Dark larger reading sizes */
html[data-acharya-reading-size="large"]
#chatLog .message.assistant .bubble{
  font-size:18px !important;
}

html[data-acharya-reading-size="xlarge"]
#chatLog .message.assistant .bubble{
  font-size:20px !important;
}

/*
  Granth currently has its own 110% reading size.
  Preserve that at Normal.
  Only explicit A+ / A++ selections override it.
*/
html[data-acharya-theme="granth"]
[data-acharya-reading-size="large"]
#chatLog .message.assistant .bubble{
  font-size:122% !important;
}

html[data-acharya-theme="granth"]
[data-acharya-reading-size="xlarge"]
#chatLog .message.assistant .bubble{
  font-size:136% !important;
}

@media(max-width:760px){
  .brahm-reading-size-choice{
    height:38px;
  }
}
