/* Chapter heading: no Kaaba / Madinah picture, elegant Meccan / Medinan label,
   fine inner frame. Uses only theme variables, so every theme follows. */

/* 1. remove the picture */
html body section.ws-card.rounded-3xl:has(.eyebrow[data-type])::before,
html body section.ws-card.rounded-3xl:has(.eyebrow[data-type][data-type="Medinan"])::before{
  content:none !important;display:none !important;background:none !important;width:0 !important;height:0 !important;margin:0 !important}

/* 2. card: calm spacing and a fine inner frame */
html body section.ws-card.rounded-3xl:has(.eyebrow[data-type]){
  padding-top:34px !important;padding-bottom:32px !important}
html body section.ws-card.rounded-3xl:has(.eyebrow[data-type])::after{
  content:"";position:absolute;inset:9px;border-radius:16px;pointer-events:none;
  border:1px solid color-mix(in srgb,var(--sc-mid,var(--gold)) 28%,transparent)}

/* 3. the label block */
html body section.ws-card .eyebrow[data-type].hl-on{
  display:block !important;text-align:center;font-size:0 !important;line-height:0 !important;
  margin:0 auto 6px !important;padding:0 !important;background:none !important;
  border:0 !important;border-radius:0 !important;box-shadow:none !important;
  letter-spacing:0 !important;text-transform:none !important;
  color:var(--sc,var(--gold)) !important}
html body section.ws-card .hl-wrap{
  display:flex;flex-direction:column;align-items:center;gap:10px;line-height:1}

/* Meccan / Medinan: capitals, wide spacing, gold lines and stars on both sides */
html body section.ws-card .hl-type{
  display:flex;margin:0 auto;align-items:center;justify-content:center;gap:12px;width:100%;max-width:340px}
html body section.ws-card .hl-type::before,
html body section.ws-card .hl-type::after{
  content:"";flex:1 1 0;height:1px;
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--gold) 75%,transparent))}
html body section.ws-card .hl-type::after{
  background:linear-gradient(270deg,transparent,color-mix(in srgb,var(--gold) 75%,transparent))}
html body section.ws-card .hl-word{
  font-family:Marcellus,Georgia,serif;font-size:24px;line-height:1;font-weight:400;
  letter-spacing:.24em;padding-left:.24em;text-transform:uppercase;color:var(--sc,var(--gold))}
html body section.ws-card .hl-orn{
  color:var(--gold);font-style:normal;font-size:9px;line-height:1;opacity:.9}

/* chapter number and verse count: small, quiet line */
html body section.ws-card .hl-meta{
  display:flex;align-items:center;justify-content:center;gap:10px;
  font:700 10.5px/1 Inter,-apple-system,BlinkMacSystemFont,sans-serif;
  letter-spacing:.26em;text-transform:uppercase;color:var(--muted)}
html body section.ws-card .hl-dot{
  width:4px;height:4px;transform:rotate(45deg);background:var(--gold);opacity:.85;flex:none}

/* Tamil / Hindi title under the English name: bigger and clearer */
html body section.ws-card:has(.eyebrow[data-type]) > h2 + div{
  font-size:20px !important;line-height:1.5;margin-top:6px !important;color:var(--ink);opacity:.82}

/* Arabic title gets a little more room under the label */
html body section.ws-card:has(.eyebrow[data-type]) .font-arabic{margin-top:14px}

@media (max-width:520px){
  html body section.ws-card.rounded-3xl:has(.eyebrow[data-type]){padding-top:30px !important;padding-bottom:28px !important}
  html body section.ws-card .hl-type{max-width:290px;gap:9px}
  html body section.ws-card .hl-word{font-size:18px;letter-spacing:.2em;padding-left:.2em}
  html body section.ws-card .hl-meta{font-size:9.5px;letter-spacing:.2em;gap:8px}
  html body section.ws-card:has(.eyebrow[data-type]) > h2 + div{font-size:18px !important}
  /* buttons row: wrap neatly on narrow phones instead of running past the card edge */
  html body section.ws-card:has(.eyebrow[data-type]) > div.flex.justify-center{flex-wrap:wrap;gap:8px}
  html body section.ws-card:has(.eyebrow[data-type]) > div.flex.justify-center > button{white-space:nowrap}
}
