/* masjidonline.id/apps/desktop-quran/: the product page and its docs, on top of site.css. */

/* Header: the product's own, with the language switch and a way back to Masjid Online. */
.dq-header { position: sticky; top: 0; z-index: 5; background: rgba(246, 248, 244, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.dq-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.dq-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.dq-brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.dq-brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.dq-nav { display: flex; gap: 20px; margin-inline-start: auto; }
.dq-nav a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500; white-space: nowrap; }
.dq-nav a:hover { color: var(--teal-700); }
.dq-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }
.dq-lang { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--teal-600); color: var(--teal-700); text-decoration: none; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.dq-lang:hover { background: var(--green-100); }
.dq-home { color: var(--muted); text-decoration: none; font-size: .85rem; white-space: nowrap; }
.dq-home:hover { color: var(--teal-700); }
@media (max-width: 980px) { .dq-nav { display: none; } .dq-tools { margin-inline-start: auto; } }
@media (max-width: 520px) { .dq-home { display: none; } .dq-brand small { display: none; } .dq-brand { font-size: 1rem; } }

/* Hero and the figures under it */
.dq-hero { padding-bottom: 72px; }
.dq-hero .lead { max-width: 34em; }
.dq-stats { list-style: none; margin: -36px 0 0; padding: 18px 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.dq-stats li { display: grid; justify-items: center; text-align: center; padding: 8px 6px; }
.dq-stats b { font-size: 1.9rem; line-height: 1; color: var(--teal-700); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dq-stats span { margin-top: 6px; font-size: .86rem; color: var(--muted); }
@media (max-width: 700px) { .dq-stats { grid-template-columns: repeat(2, 1fr); margin-top: -28px; } }

/* Downloads: the file name under each card */
.dl-file { margin: 10px 0 0; font-size: .78rem; color: var(--muted); word-break: break-all; }
.dl-file code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; }
.dq-notes p { margin-top: 10px; }
.dq-notes .dl-note-v h3 { font-family: var(--font); font-size: 1.1rem; }
.dq-notes .dl-note-v h3 span { color: var(--muted); font-weight: 400; font-size: .95rem; }
.dq-center { text-align: center; margin-top: 30px; }

/* Docs cards (on the product page and the docs index) */
.dq-doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dq-doc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.dq-doc-card { display: block; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 48, 43, .04); transition: border-color .15s, box-shadow .15s; }
.dq-doc-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow); color: var(--ink); }
.dq-doc-card h3 { font-family: var(--font); font-size: 1.05rem; margin-bottom: 6px; color: var(--teal-800); }
.dq-doc-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
@media (max-width: 900px) { .dq-doc-grid, .dq-doc-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dq-doc-grid, .dq-doc-grid-2 { grid-template-columns: 1fr; } }

/* Docs layout: a sidebar and the article */
.dq-docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 40px 0 72px; align-items: start; }
.dq-side { position: sticky; top: 84px; }
.dq-side-h { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.dq-side-list { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.dq-side-list a { display: block; padding: 7px 14px; color: var(--ink-soft); text-decoration: none; font-size: .93rem; border-inline-start: 2px solid transparent; margin-inline-start: -2px; }
.dq-side-list a:hover { color: var(--teal-700); }
.dq-side-list .current a { color: var(--teal-800); font-weight: 600; border-inline-start-color: var(--teal-600); }
.dq-article { max-width: 46rem; }
.dq-article h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: .35em; }
.dq-article .lead { font-size: 1.1rem; margin-bottom: 1.4em; }
.dq-article h2 { font-size: 1.4rem; margin: 1.8em 0 .5em; padding-top: .2em; }
.dq-article h3 { font-size: 1.1rem; font-family: var(--font); margin: 1.4em 0 .4em; }
.dq-article p, .dq-article li { color: var(--ink); }
.dq-article ul, .dq-article ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.dq-article li { margin: .35em 0; }
.dq-article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em; white-space: nowrap; }
.dq-figure { margin: 1.2em 0 1.6em; }
.dq-figure a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.dq-figure img { width: 100%; height: auto; }
.dq-figure figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.dq-note { padding: 14px 18px; border-radius: var(--radius); background: var(--gold-soft); border-inline-start: 4px solid var(--gold); color: var(--ink); }
.dq-table { overflow-x: auto; margin: 0 0 1.2em; }
.dq-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.dq-table th, .dq-table td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dq-table th { color: var(--teal-900); font-weight: 600; background: var(--bg-tint); }
.dq-table td code { white-space: normal; }
.dq-crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.dq-crumbs a { color: var(--muted); text-decoration: none; }
.dq-crumbs a:hover { color: var(--teal-700); }
.dq-toc { margin: 0 0 1.6em; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.dq-toc p { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.dq-toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.dq-toc li { margin: 3px 0; break-inside: avoid; }
.dq-toc a { text-decoration: none; color: var(--ink-soft); font-size: .93rem; }
.dq-toc a:hover { color: var(--teal-700); }
.dq-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.dq-pager a { display: block; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--teal-800); font-weight: 600; }
.dq-pager a:hover { border-color: var(--teal-500); }
.dq-pager a small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-bottom: 2px; }
.dq-pager .next { text-align: end; }
@media (max-width: 860px) {
  .dq-docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .dq-side { position: static; }
  .dq-side-list { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .dq-side-list a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; margin: 0; background: var(--surface); }
  .dq-side-list .current a { border-color: var(--teal-600); background: var(--green-100); }
  .dq-toc ul { columns: 1; }
}

/* Footer links */
.dq-footer p { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.dq-foot-links a { color: var(--ink-soft); }
