/*
Theme Name: Doislah
Theme URI: https://doislah.example.com/
Author: Doislah
Description: Bengali Islamic blog theme — clean text-first reading, category/tag filtering, dark mode, live search and a fully dynamic sidebar. Built to WordPress standards.
Version: 1.7.20
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doislah
Tags: blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, threaded-comments, block-styles, rtl-language-support
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root {
  --doislah-primary: #008D0B;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFCFB;
  --sunken: #FAFAFA;
  --mint-a: #E9F9F5;
  --mint-b: #FFFFFF;
  --ink: #000000;
  --ink-2: #384643;
  --muted: #858585;
  --muted-2: #AAAAAA;
  --meta: #444444;
  --line: #E9E9E9;
  --line-2: #EDEDED;
  --rule: #CACACA;
  --green: #008D0B;
  --green-hi: #24C030;
  --green-badge: #0EBA1B;
  --magenta: #C83192;
  --violet: #5D3FDD;
  --amber: #FB9130;
  --foot-bg: #071A16;
  --foot-ink: #A8C4BE;
  --shadow-sm: 0 3px 20px rgba(0, 0, 0, .1);
  --shadow-md: 0 14px 44px rgba(0, 0, 0, .28);
  --shadow-lg: 0 30px 80px rgba(7, 26, 22, .28);
  --content: 1150px;
  --radius: 10px;
  --sans: 'SolaimanLipi', 'Noto Sans Bengali', system-ui, sans-serif;
  --sans-head: 'SolaimanLipi', 'Noto Sans Bengali', system-ui, sans-serif;
  --latin: 'SolaimanLipi', 'Noto Sans Bengali', system-ui, sans-serif;
}

html[data-theme="dark"] {
  --bg: #071A16;
  --surface: #0E2621;
  --surface-2: #0E2621;
  --sunken: #0A211C;
  --mint-a: #0C2C25;
  --mint-b: #071A16;
  --ink: #EAF3F0;
  --ink-2: #B9CFC9;
  --muted: #8FA8A2;
  --muted-2: #8FA8A2;
  --meta: #C3D5D0;
  --line: #1C3B34;
  --line-2: #1C3B34;
  --rule: #234A41;
  --green: #2ED13B;
  --green-hi: #5FD86A;
  --shadow-sm: 0 3px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
}

/* ---------------------------------------------------------------
   2. Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.6;
  text-wrap: pretty;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

img, svg, iframe, video { max-width: 100%; }
img { height: auto; }

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--green-hi); }

:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--sans-head); font-weight: 600; letter-spacing: .0091em; margin: 0 0 .5em; color: var(--ink); }

button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; }
input:focus, textarea:focus { outline: none; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10000;
  background: var(--green); color: #FFF; padding: 10px 18px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; color: #FFF; }

.wrap { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }

/* ---------------------------------------------------------------
   3. Header
--------------------------------------------------------------- */
.site-top { position: relative; background: linear-gradient(180deg, var(--mint-a) 1.81%, var(--mint-b) 100%); }
.site-header { display: flex; align-items: center; gap: 34px; padding: 30px 0 26px; }

.site-brand { display: flex; align-items: center; flex: none; }
.site-brand img, .custom-logo { display: block; width: auto; height: 69px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--sans); font-size: 28.5px; font-weight: 700; color: var(--ink); }
.brand-text b span { font-weight: 300; }
.brand-text small { font-size: 16px; font-weight: 700; color: #08483B; }
html[data-theme="dark"] .brand-text small { color: var(--green-hi); }

.nav-primary { flex: 1 1 auto; }
.nav-primary ul { display: flex; align-items: center; gap: 35px; margin: 0; padding: 0; list-style: none; }
.nav-primary li { position: relative; }
.nav-primary > ul > li > a {
  display: flex; align-items: center; gap: 11px;
  font-weight: 400;
  font-size: 24px; line-height: 28px; letter-spacing: .0091em; color: var(--ink-2); white-space: nowrap;
}
.nav-primary > ul > li > a:hover,
.nav-primary > ul > li.current-menu-item > a,
.nav-primary > ul > li.current-menu-parent > a,
.nav-primary > ul > li.current-menu-ancestor > a { color: var(--green); }

.nav-primary .menu-item-has-children > a::after {
  content: ""; width: 0; height: 0; margin-top: -4px; flex: none;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid currentColor; transition: transform .2s ease;
}
.nav-primary li:hover > a::after, .nav-primary li:focus-within > a::after { transform: rotate(180deg); }

.nav-primary .sub-menu {
  position: absolute; left: 0; top: 100%; z-index: 80;
  display: block; min-width: 254px; max-width: 320px;
  margin: 0; padding: 18px 0; list-style: none;
  background: #000000; border-radius: 15px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-primary li:hover > .sub-menu, .nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(18px); }
.nav-primary > ul > li:last-child .sub-menu { left: auto; right: 0; }
.nav-primary .sub-menu a {
  display: block; margin: 0 12px; padding: 9px 14px; border-radius: 6px;
  font-weight: 400;
  font-size: 22px; line-height: 30px; color: #FFFFFF; transition: background .15s ease;
}
.nav-primary .sub-menu a:hover { background: #4A4A4A; color: #FFFFFF; }

.header-tools { display: flex; align-items: center; gap: 15px; flex: none; }
.icon-btn {
  width: 45px; height: 45px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--violet); box-shadow: var(--shadow-sm); color: #FFFFFF;
  transition: transform .18s ease;
}
.icon-btn:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------
   4. Page banner (archives)
--------------------------------------------------------------- */
.page-banner {
  position: relative; overflow: hidden;
  margin: 12px 0 0; padding: 45px 60px;
  min-height: 170px; display: flex; flex-direction: column; justify-content: center;
  background: rgba(14, 186, 27, .1); border-radius: 15px;
}
html[data-theme="dark"] .page-banner { background: rgba(14, 186, 27, .12); }
.page-banner h1 { margin: 0; font-size: clamp(30px, 4.5vw, 50px); line-height: 1.2; }
.page-banner .crumbs { display: flex; gap: 11px; font-size: 16px; line-height: 18px; color: var(--ink-2); }
.page-banner .crumbs a { color: var(--ink-2); }
.page-banner .crumbs a:hover { color: var(--green); }
.page-banner .banner-art { position: absolute; right: 30px; bottom: 0; width: 274px; max-width: 34%; opacity: .95; pointer-events: none; }
.page-banner .term-desc { margin: 10px 0 0; max-width: 620px; font-size: 18px; color: var(--ink-2); }

/* ---------------------------------------------------------------
   5. Layout
--------------------------------------------------------------- */
.layout { display: flex; align-items: flex-start; gap: 83px; padding: 60px 0 0; }
.content-col { flex: 1 1 auto; min-width: 0; }
.sidebar-col { flex: none; width: 256px; display: flex; flex-direction: column; gap: 60px; }

/* ---------------------------------------------------------------
   6. Post cards (grid archives)
--------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 40px; }
.post-card { display: flex; flex-direction: column; gap: 20px; color: inherit; }
.post-card .thumb { position: relative; display: block; aspect-ratio: 385 / 205; border-radius: 5px; overflow: hidden; background: var(--sunken); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card h2 { margin: 0; font-size: 25px; line-height: 35px; }
.post-card h2 a { color: var(--ink); }
.post-card:hover h2 a { color: var(--green); }
.post-card p { margin: 0; font-size: 16px; line-height: 22px; color: var(--ink); opacity: .6; }

/* Text-only list (Q&A style archives) */
.qa-list { display: flex; flex-direction: column; }
.qa-item {
  display: flex; flex-direction: column; gap: 15px;
  padding: 40px 121px 40px 0; border-bottom: 1px solid var(--line);
  background: var(--surface); color: inherit;
}
.qa-item h2 { margin: 0; max-width: 514px; font-size: 28px; line-height: 35px; }
.qa-item h2 a { color: var(--ink); }
.qa-item:hover h2 a { color: var(--green); }
.qa-item p { margin: 0; max-width: 629px; font-size: 20px; line-height: 25px; color: var(--muted); }

.entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.entry-meta time { font-family: var(--latin); font-size: 15px; line-height: 25px; color: var(--muted-2); white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; height: 23px; padding: 0 12px;
  border-radius: 2.7px; background: var(--green-badge); color: #FFFFFF;
  font-size: 16px; line-height: 9px; white-space: nowrap;
}
.badge:hover { color: #FFFFFF; opacity: .88; }
.badge--alt { background: var(--magenta); }
.badge--violet { background: var(--violet); }
.badge--amber { background: var(--amber); }

/* ---------------------------------------------------------------
   7. Pagination
--------------------------------------------------------------- */
.doislah-pagination { margin-top: 60px; }
.doislah-pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.doislah-pagination .page-numbers {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--latin); font-size: 16px; font-weight: 600; color: var(--meta);
}
.doislah-pagination .page-numbers:hover { background: rgba(36, 192, 48, .12); color: var(--green); }
.doislah-pagination .page-numbers.current { background: var(--green-hi); color: #FFFFFF; }

/* ---------------------------------------------------------------
   8. Sidebar widgets
--------------------------------------------------------------- */
.side-box { width: 100%; }
.side-head { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.side-head h2 { margin: 0; font-size: 30px; line-height: 35px; white-space: nowrap; }
.side-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule); }

.filter-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding-bottom: 19px; }
.filter-card__top { display: flex; align-items: center; justify-content: space-between; padding: 22px 25px 18px; }
.filter-card__top h2 { margin: 0; font-size: 25px; line-height: 35px; }
.filter-card__top a { font-family: var(--latin); font-size: 14px; font-weight: 600; }
.filter-group { border-top: 1px solid var(--line); }
.filter-group__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 15px 11px 25px; background: none; border: 0; cursor: pointer;
  font-size: 16px; line-height: 21px; font-weight: 600; color: var(--meta); text-align: left;
}
.filter-group__btn:hover { color: var(--green); }
.filter-group__btn svg { flex: none; transition: transform .25s ease; }
.filter-group[open] > .filter-group__btn { color: var(--green); }
.filter-group[open] > .filter-group__btn svg { transform: rotate(90deg); }
.filter-group__list { display: flex; flex-direction: column; padding-bottom: 8px; }
.filter-check { display: flex; align-items: center; gap: 12px; padding: 7px 25px; font-size: 16px; line-height: 21px; font-weight: 600; color: var(--meta); }
.filter-check:hover { color: var(--green); }
.filter-check .box {
  width: 18px; height: 18px; flex: none; border-radius: 3px;
  border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.filter-check.is-on { color: var(--green); }
.filter-check.is-on .box { background: var(--green-badge); border-color: var(--green-badge); }
.filter-check .box svg { opacity: 0; }
.filter-check.is-on .box svg { opacity: 1; }

.mini-list { display: flex; flex-direction: column; gap: 29px; }
.mini-post { display: flex; align-items: flex-start; gap: 17px; color: inherit; }
.mini-post img { width: 70px; height: 42px; flex: none; border-radius: 3px; object-fit: cover; }
.mini-post .ph { width: 70px; height: 42px; flex: none; border-radius: 3px; background: var(--sunken); border: 1px solid var(--line); }
.mini-post span { font-family: var(--sans-head); font-size: 18px; line-height: 23px; font-weight: 600; color: var(--ink); }
.mini-post:hover span { color: var(--green); }

.author-search { position: relative; margin-bottom: 16px; }
.author-search input {
  width: 100%; height: 46px; padding: 0 42px 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
  color: var(--meta); font-size: 16px;
}
.author-search svg { position: absolute; right: 14px; top: 15px; color: var(--muted); }
.author-list { display: flex; flex-direction: column; gap: 11px; }
.author-row {
  display: flex; align-items: center; gap: 13px; padding: 10px 8px 10px 13px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--meta);
  font-size: 14px; line-height: 19px; font-weight: 600;
}
.author-row img { width: 26px; height: 26px; border-radius: 3px; flex: none; }
.author-row .avatar-letter { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--violet); color: #FFFFFF; font-size: 13px; font-weight: 700; }
.author-row:hover, .author-row.is-on { color: var(--green); border-color: var(--green-badge); background: rgba(14, 186, 27, .06); }
.author-more { display: inline-block; margin-top: 21px; font-family: var(--latin); font-size: 15px; color: #165312; }
html[data-theme="dark"] .author-more { color: var(--green-hi); }

.widget { margin: 0; }
.widget + .widget { margin-top: 40px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.widget ul a { color: var(--meta); font-size: 17px; }
.widget ul a:hover { color: var(--green); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 20px;
  background: rgba(14, 186, 27, .1); color: var(--green); font-size: 16px; line-height: 20px;
}
.tag-cloud a:hover { background: var(--green-badge); color: #FFFFFF; }
.tag-cloud a.is-on { background: var(--green-badge); color: #FFFFFF; }

/* Tags nested inside the সূচিপত্র groups — same look as the category rows */
.filter-tags { display: contents; }

/* Content-type toggle removed in 1.7.14 */

/* Active filter chips */
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.active-filters .lab { font-size: 16px; color: var(--muted); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 20px;
  background: rgba(14, 186, 27, .1); color: var(--green); font-size: 16px;
}
.filter-chip:hover { background: rgba(14, 186, 27, .2); color: var(--green); }

/* ---------------------------------------------------------------
   9. Single post
--------------------------------------------------------------- */
.single-hero { padding: 26px 0 0; }
.single-hero.wrap { width: min(753px, calc(100% - 48px)); }
.single-hero .crumbs { display: flex; flex-wrap: wrap; gap: 11px; font-size: 16px; line-height: 18px; color: var(--ink-2); }
.single-hero .crumbs a { color: var(--ink-2); }
.single-hero .crumbs a:hover { color: var(--green); }
.single-hero .hero-img { margin-top: 22px; border-radius: 3px; overflow: hidden; }
.single-hero .hero-img img { width: 100%; display: block; }
.single-hero .hero-video { margin-top: 22px; border-radius: 3px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.single-hero .hero-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.doislah-source { margin: 33px 0; }
.entry-content .gb-acc-block .gb-acc, .entry-content > .gb-acc { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.entry-content .gb-quote-wrap { max-width: 100% !important; }
.doislah-source .src-u { color: #656565; word-break: break-all; text-decoration: none; }
.doislah-source .src-u:hover { color: var(--green); }
html[data-theme="dark"] .doislah-source { background: rgba(122, 92, 255, 0.12) !important; border-color: rgba(215, 205, 241, 0.25) !important; }
html[data-theme="dark"] .doislah-source .src-t, html[data-theme="dark"] .doislah-source .src-pub { color: var(--ink) !important; }
html[data-theme="dark"] .doislah-source .src-b { color: var(--ink-2) !important; }
html[data-theme="dark"] .doislah-source .src-u { color: var(--ink-2); }
.entry-content .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 3px; }
.single-hero .meta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.entry-title-single { margin: 16px 0 0; font-size: clamp(27px, 3.4vw, 40px); line-height: 1.2; }

.single-layout { padding-top: 46px; }
.entry-wrap { width: min(753px, 100%); margin-inline: auto; }

.entry-lead { font-family: var(--sans-head); font-size: 40px; line-height: 1.25; font-weight: 600; color: var(--ink); opacity: .85; }
.entry-content { font-size: 25px; line-height: 1.6; color: var(--ink); }
.entry-content > * { opacity: .92; }
.entry-content p { margin: 0 0 30px; }
.entry-content h2 { margin: 56px 0 24px; font-size: 40px; line-height: 1.25; opacity: 1; }
.entry-content h3 { margin: 40px 0 18px; font-size: 30px; line-height: 1.3; opacity: 1; }
.entry-content ul, .entry-content ol { margin: 0 0 30px; padding-left: 26px; }
.entry-content li { margin-bottom: 14px; }
.entry-content img { border-radius: 6px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 40px 0; padding: 30px; border-radius: 10px; background: var(--sunken);
  display: flex; flex-direction: column; gap: 18px;
}
.entry-content blockquote::before {
  content: ""; width: 49px; height: 49px; flex: none; border-radius: 10px; background: var(--green-badge);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 12'><path d='M0 12V6.6C0 2.95 2.1.6 5.5 0l.8 2.2C4.4 2.8 3.4 4 3.4 5.6h2.9V12H0zm10.6 0V6.6c0-3.65 2.1-6 5.5-6.6l.8 2.2c-1.9.6-2.9 1.8-2.9 3.4h2.9V12h-6.3z'/></svg>") center / 19px 12px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.entry-content blockquote p { font-family: var(--sans-head); font-size: 25px; font-weight: 600; margin: 0; }
.entry-content blockquote cite { font-size: 18px; font-style: normal; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 20px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content hr { border: 0; height: 1px; background: #C9C9C9; margin: 33px 0; opacity: 1; }
html[data-theme="dark"] .entry-content hr { background: var(--line-2); }

.source-note { margin-top: 67px; padding: 40px; border: 1px solid var(--line); border-radius: 10px; background: rgba(59, 4, 219, .06); }
html[data-theme="dark"] .source-note { background: rgba(93, 63, 221, .12); }
.source-note h2 { margin: 0 0 12px; font-size: 22px; line-height: 30px; }
.source-note p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted); }

.reactions { margin-top: 70px; }
.reactions h2 { font-family: var(--latin); font-size: 15px; font-weight: 600; letter-spacing: .5px; margin-bottom: 18px; }
.reaction-row { display: flex; flex-wrap: wrap; gap: 14px; }
.reaction {
  flex: 1 1 120px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--latin); font-size: 16px; color: var(--meta); transition: transform .18s ease, border-color .2s ease;
}
.reaction:hover { transform: translateY(-3px); }
.reaction.is-on { border-color: var(--green-badge); background: rgba(14, 186, 27, .07); color: var(--green); }
.reaction .emoji { font-size: 26px; line-height: 1; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 46px; }
.post-tags .lab { font-size: 18px; color: var(--muted); }

.post-nav { display: flex; margin-top: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav a { flex: 1 1 50%; padding: 33px 40px; display: flex; flex-direction: column; gap: 9px; color: inherit; }
.post-nav a:first-child { align-items: flex-end; text-align: right; padding-left: 0; border-right: 1px solid var(--line); }
.post-nav a:last-child { padding-right: 0; }
.post-nav small { font-size: 18px; color: #919191; }
.post-nav span { font-family: var(--sans-head); font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink); }
.post-nav a:hover span { color: var(--green); }

.related { margin-top: 70px; }
.related .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.related .post-card h2 { font-size: 20px; line-height: 27px; }

/* Table of contents — collapsible sticky popup pinned to the left edge */
.toc-tab {
  position: fixed; left: 0; top: 42vh; z-index: 940;
  padding: 18px 10px; border: 1px solid var(--line-2); border-left: 0;
  border-radius: 0 10px 10px 0; background: var(--surface); cursor: pointer;
  box-shadow: 6px 0 24px rgba(0, 0, 0, .08); color: var(--ink);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: .02em;
  transition: color .2s ease, box-shadow .2s ease;
}
.toc-tab:hover { color: var(--green); box-shadow: 6px 0 28px rgba(0, 0, 0, .14); }
.toc-tab[hidden] { display: none; }
.toc-rail {
  position: fixed; left: 16px; top: 110px; z-index: 950;
  width: min(300px, calc(100vw - 40px));
}
.toc-rail[hidden] { display: none; }
.toc-x {
  width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none;
}
.toc-x:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
html[data-theme="dark"] .toc-x:hover { background: rgba(255, 255, 255, .08); }
.single-layout { display: block; }
.toc-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .06); }
.toc-card__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--sunken); border-bottom: 1px solid var(--line-2); }
.toc-card__head h2 { margin: 0; font-size: 20px; line-height: 16px; }
.toc-card ol { list-style: none; margin: 0; padding: 14px 0; counter-reset: toc; max-height: min(58vh, 520px); overflow-y: auto; }
.toc-card li { counter-increment: toc; }
.toc-card a { display: flex; gap: 10px; padding: 9px 20px; font-size: 18px; line-height: 24px; color: var(--meta); }
.toc-card a::before { content: counter(toc) "."; color: var(--muted); flex: none; }
.toc-card a:hover, .toc-card a.is-active { color: var(--green); background: rgba(14, 186, 27, .06); }
.entry-content [id] { scroll-margin-top: 100px; }

/* Mobile scroll-up topbar (single posts) */
.post-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9400;
  display: none; background: var(--surface); border-bottom: 1px solid var(--line-2);
  transform: translateY(-100%); transition: transform .28s ease, box-shadow .28s ease;
}
.post-topbar.is-on { transform: translateY(0); box-shadow: 0 10px 30px rgba(7, 26, 22, .08); }
.post-topbar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 74px; padding: 12px 76px 12px 16px;
}
.post-topbar .site-brand img, .post-topbar .custom-logo { height: 45px !important; }
.post-topbar .brand-text b { font-size: 22px; }
.post-topbar .brand-text small { font-size: 13px; }
.topbar-toc {
  flex: none; padding: 12px 20px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-family: var(--sans);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.topbar-toc[aria-expanded="true"] { background: var(--green-badge); border-color: var(--green-badge); color: #FFFFFF; }
body:has(.post-topbar.is-on) #doislah-burger { background: transparent; border-color: transparent; box-shadow: none; }
@keyframes doislah-toc-in { from { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 900px) {
  .post-topbar { display: block; }
  .toc-tab { display: none; }
  .toc-rail { position: fixed; left: 12px; right: 12px; top: 86px; width: auto; z-index: 9390; }
  .toc-rail:not([hidden]) .toc-card { animation: doislah-toc-in .22s ease; }
  .toc-card { border-radius: 14px; box-shadow: 0 24px 64px rgba(7, 26, 22, .2); }
  .toc-card ol { max-height: min(58vh, 440px); }
}

.read-progress { position: fixed; right: 38px; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; z-index: 60; }
.read-progress .dial { width: 60px; height: 60px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.read-progress svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.read-progress .pct { font-family: var(--latin); font-size: 13px; font-weight: 600; color: var(--meta); }

/* ---------------------------------------------------------------
   10. Comments & forms
--------------------------------------------------------------- */
.comments-area { margin-top: 70px; }
.comments-area h2 { font-size: 30px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; margin: 0 0 0 34px; padding: 0; }
.comment-meta { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--muted); }
.comment-meta img { border-radius: 50%; }
.comment-content { font-size: 20px; }
.comment-form label { display: block; font-size: 17px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
}
.btn, .comment-form input[type="submit"], .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 28px; border: 0; border-radius: 23px; cursor: pointer;
  background: var(--green-hi); color: #FFFFFF; font-family: var(--sans); font-size: 18px; font-weight: 700;
  transition: filter .2s ease;
}
.btn:hover, .comment-form input[type="submit"]:hover { filter: brightness(1.08); color: #FFFFFF; }

/* ---------------------------------------------------------------
   11. Footer
--------------------------------------------------------------- */
.site-footer { margin-top: 73px; background: var(--foot-bg); color: var(--foot-ink); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 48px 60px; padding: 100px 0 76px; }
.foot-col { flex: 1 1 210px; min-width: 190px; }
.foot-col h2 { font-size: 20px; line-height: 27px; color: #FFFFFF; margin-bottom: 18px; }
.foot-col p, .foot-col li { font-size: 20px; line-height: 25px; color: var(--foot-ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { color: var(--foot-ink); }
.foot-col a:hover { color: var(--green-hi); }
.foot-brand img { height: 53px; width: auto; }
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF; transition: transform .18s ease, filter .2s ease;
}
.social-icons a:hover { transform: translateY(-3px); color: #FFFFFF; filter: brightness(1.12); }
.social-icons .sc-fb { background: #3C5999; }
.social-icons .sc-tw { background: #111111; }
.social-icons .sc-yt { background: #F32301; }
.social-icons .sc-ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.social-icons .sc-tg { background: #29A9EB; }
.social-icons .sc-wa { background: #25D366; }
.social-icons .sc-web { background: #008D0B; }
.social-list { display: flex; flex-direction: column; gap: 12px; }
.social-list a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 3px; color: #FFFFFF; font-family: var(--latin); font-size: 15px; font-weight: 600; }
.social-list a:hover { color: #FFFFFF; filter: brightness(1.12); }
.social-fb { background: #3C5999; } .social-tw { background: #55ACEE; } .social-yt { background: #F32301; }
.newsletter input[type="email"] { width: 100%; max-width: 270px; height: 40px; padding: 0 14px; border: 0; border-radius: 3px; background: #FFFFFF; color: #444; }
.newsletter .btn { margin-top: 14px; }
.site-copy { border-top: 1px solid rgba(255, 255, 255, .08); padding: 34px 0 40px; text-align: center; font-family: var(--latin); font-size: 16px; color: var(--foot-ink); }

/* ---------------------------------------------------------------
   12. Search results / 404 / no results
--------------------------------------------------------------- */
.page-intro { padding: 46px 0 0; }
.page-intro h1 { font-size: 40px; line-height: 1.2; margin-bottom: 8px; }
.page-intro p { color: var(--muted); font-size: 20px; margin: 0; }
.no-results { padding: 60px 0; text-align: center; }
.no-results h2 { font-size: 25px; }
.no-results p { color: var(--ink); opacity: .6; font-size: 16px; }
.error-404 { padding: 90px 0; text-align: center; }
.error-404 .code { font-family: var(--latin); font-size: 90px; font-weight: 700; color: var(--green-hi); line-height: 1; }

/* ---------------------------------------------------------------
   13. Front page sections
--------------------------------------------------------------- */
.home-banner { margin-top: 30px; border-radius: var(--radius); overflow: hidden; }
.home-banner img { width: 100%; display: block; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; padding: 30px 0 0; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 423px; display: flex; align-items: flex-end; background: #10352B; }
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-copy { position: relative; padding: 40px; color: #FFFFFF; }
.hero-copy h2 { color: #FFFFFF; font-size: 34px; line-height: 1.25; margin: 12px 0; }
.hero-copy h2 a { color: #FFFFFF; }
.hero-side { display: flex; flex-direction: column; gap: 22px; }
.side-post { display: flex; align-items: flex-start; gap: 16px; color: inherit; }
.side-post img, .side-post .ph { width: 140px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 5px; flex: none; }
.side-post .ph { background: var(--sunken); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: block; }
.side-post .tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.side-post .tt { font-family: var(--sans-head); font-size: 20px; line-height: 27px; font-weight: 600; color: var(--ink); }
.side-post:hover .tt { color: var(--green); }
.side-post time { font-family: var(--latin); font-size: 14px; color: var(--muted-2); }

.cat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 60px; }
.cat-tile { padding: 26px 22px 30px; border-radius: var(--radius); color: var(--ink); background: rgba(93, 63, 221, .1); }
.cat-tile .tile-icon { display: block; width: 53px; height: 53px; }
.cat-tile .tile-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-tile .dot { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-weight: 700; background: var(--violet); }
.cat-tile h3 { margin: 18px 0 6px; font-size: 24px; }
.cat-tile span { font-size: 16px; color: var(--ink); opacity: .6; }
.cat-tile:nth-child(2) { background: rgba(27, 121, 255, .1); } .cat-tile:nth-child(2) .dot { background: #1B79FF; }
.cat-tile:nth-child(3) { background: rgba(14, 186, 27, .1); } .cat-tile:nth-child(3) .dot { background: var(--green-badge); }
.cat-tile:nth-child(4) { background: rgba(40, 45, 181, .1); } .cat-tile:nth-child(4) .dot { background: #282DB5; }
.cat-tile:hover { color: var(--green); }

.section-head { display: flex; align-items: center; gap: 16px; margin: 70px 0 30px; }
.section-head h2 { margin: 0; font-size: 34px; line-height: 1.2; white-space: nowrap; }
.section-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule); }
.section-head a { font-size: 17px; white-space: nowrap; }

/* Front-page sections (Doislah home design) */
.home-section { margin-top: var(--section-gap, 70px); }
.home-section .section-head { margin: 0 0 34px; justify-content: space-between; gap: 24px; }
.home-section .section-head::after { display: none; }
.home-section .section-head h2 { font-size: 40px; letter-spacing: .4px; white-space: normal; }
.pill-link {
  display: inline-flex; align-items: center; height: 46px; padding: 0 26px;
  border-radius: 23px; background: rgba(14, 186, 27, .12); color: var(--green);
  font-size: 18px; font-weight: 600; white-space: nowrap;
}
.pill-link:hover { background: var(--green-hi); color: #FFFFFF; }

.recent-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr; gap: 44px; align-items: start; }
.recent-grid .thumb { display: block; border-radius: 5px; overflow: hidden; background: var(--sunken); }
.recent-grid .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.recent-grid a:hover .thumb img { transform: scale(1.04); }
.recent-grid time { font-size: 15px; color: var(--muted-2); }
.recent-main, .recent-mid { display: flex; flex-direction: column; gap: 14px; color: inherit; }
.recent-main .thumb { aspect-ratio: 472 / 284; }
.recent-main .tt { font-family: var(--sans-head); font-size: 30px; line-height: 40px; font-weight: 600; color: var(--ink); }
.recent-mid .thumb { aspect-ratio: 385 / 205; }
.recent-mid .badge { align-self: flex-start; }
.recent-mid .tt { font-family: var(--sans-head); font-size: 24px; line-height: 32px; font-weight: 600; color: var(--ink); }
.recent-main:hover .tt, .recent-mid:hover .tt, .recent-mini a:hover .tt, .cat-card:hover .tt { color: var(--green); }
.recent-mini { display: flex; flex-direction: column; gap: 28px; }
.recent-mini a { display: flex; align-items: flex-start; gap: 15px; color: inherit; }
.recent-mini .thumb { width: 108px; aspect-ratio: 108 / 66; flex: none; }
.recent-mini .tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.recent-mini .tt { font-family: var(--sans-head); font-size: 19px; line-height: 26px; font-weight: 600; color: var(--ink); }

.cat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; align-items: start; }
.cat-card {
  display: flex; flex-direction: column; gap: 22px; padding: 29px;
  background: var(--surface); border-radius: 10px; color: inherit;
  box-shadow: 0 10px 60px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .25s ease;
}
.cat-cards .cat-card:nth-child(even) { margin-top: 30px; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 60px rgba(0, 0, 0, .16); }
html[data-theme="dark"] .cat-card { box-shadow: 0 10px 60px rgba(0, 0, 0, .45); }
.cat-card .badge { align-self: flex-start; }
.cat-card .tt { font-family: var(--sans-head); font-size: 20px; line-height: 26px; font-weight: 600; color: var(--ink); }
.cat-card .thumb { margin-top: auto; display: block; aspect-ratio: 226 / 137; border-radius: 3px; overflow: hidden; background: var(--sunken); }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------
   14. Responsive
--------------------------------------------------------------- */
@media (max-width: 1250px) {
  .layout { gap: 46px; }
  .qa-item { padding-right: 40px; }
}

@media (max-width: 1024px) {
  .site-header { gap: 12px; padding: 16px 0; }
  .nav-primary, .header-tools { display: none; }
  .layout { flex-direction: column; gap: 46px; }
  .sidebar-col, .content-col { width: 100%; }
  .read-progress { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-grid { grid-template-columns: 1fr 1fr; }
  .recent-grid .recent-mini { grid-column: 1 / -1; }
  .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-item { padding-right: 0; }
}

@media (max-width: 760px) {
  body { font-size: 18px; }
  .wrap { width: calc(100% - 36px); }
  .single-hero.wrap { width: calc(100% - 36px); }
  .page-banner { padding: 28px 24px; min-height: 130px; }
  .page-banner h1 { font-size: clamp(24px, 6.5vw, 34px); }
  .page-banner .banner-art { display: none; }
  .card-grid, .related .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .post-card { gap: 10px; }
  .post-card .thumb { border-radius: 8px; }
  .post-card h2 {
    font-size: 16px; line-height: 1.45; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .post-card p, .post-card .entry-meta { display: none; }
  .cat-tiles { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr; gap: 34px; }
  .cat-cards { grid-template-columns: 1fr; }
  .section-head a.pill-link { height: 40px; padding: 0 18px; font-size: 16px; }
  .entry-title-single { font-size: 27px; line-height: 34px; }
  .entry-lead { font-size: 30px; }
  .entry-content { font-size: 22px; }
  .entry-content h2 { font-size: 30px; }
  .entry-content h3 { font-size: 24px; }
  .qa-item { padding: 28px 0; }
  .qa-item h2 { font-size: 24px; line-height: 31px; }
  .qa-item p { font-size: 18px; }
  .post-nav { flex-direction: column; }
  .post-nav a, .post-nav a:first-child { align-items: flex-start; text-align: left; padding: 22px 0; border-right: 0; }
  .post-nav a:first-child { border-bottom: 1px solid var(--line); }
  .source-note { padding: 24px; }
  .footer-inner { flex-direction: column; padding: 60px 0 46px; }
  .social-list { flex-direction: row; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .sidebar-col, .toc-rail, .toc-tab, .post-topbar, .read-progress, .reactions, .post-nav, #doislah-burger { display: none !important; }
  body { background: #FFF; color: #000; }
}

/* ---------------------------------------------------------------
   15. Theme switch, search overlay, mobile drawer
--------------------------------------------------------------- */
theme-switch { display: inline-block; width: 45px; height: 45px; }

#doislah-burger {
  display: none; position: fixed; top: 14px; right: 16px; z-index: 9500;
  width: 46px; height: 46px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); border: 1px solid #E4EDEA; border-radius: 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(7, 26, 22, .12);
}
#doislah-burger span {
  position: absolute; display: block; width: 20px; height: 2px; border-radius: 2px;
  background: #0B1F1A; transition: transform .3s cubic-bezier(.3, 1.2, .4, 1), opacity .2s ease;
}
#doislah-burger span:nth-child(1) { transform: translateY(-6px); }
#doislah-burger span:nth-child(3) { transform: translateY(6px); }
#doislah-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
#doislah-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#doislah-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
html[data-theme="dark"] #doislah-burger { background: rgba(14, 38, 33, .92); border-color: var(--line); }
html[data-theme="dark"] #doislah-burger span { background: var(--ink); }

@media (max-width: 1024px) { #doislah-burger { display: flex; } }

/* Mobile drawer */
#doislah-menu { position: fixed; inset: 0; z-index: 9600; }
#doislah-menu[hidden] { display: none; }
#doislah-menu .dm-bd {
  position: absolute; inset: 0; background: rgba(7, 26, 22, .45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
#doislah-menu.is-shown .dm-bd { opacity: 1; }
#doislah-menu .dm-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(370px, 88vw);
  display: flex; flex-direction: column; background: var(--surface);
  box-shadow: -24px 0 70px rgba(7, 26, 22, .28);
  transform: translateX(100%); transition: transform .36s cubic-bezier(.22, .9, .28, 1);
}
#doislah-menu.is-shown .dm-panel { transform: translateX(0); }
#doislah-menu .dm-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; flex: none; }
#doislah-menu .dm-top img { height: 46px; width: auto; }
#doislah-menu .dm-brand { font-size: 24px; font-weight: 700; color: var(--ink); }
#doislah-menu .dm-x {
  width: 38px; height: 38px; border: 0; border-radius: 12px; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
#doislah-menu .dm-x:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
#doislah-menu .dm-scroll { flex: 1; overflow-y: auto; padding: 0 20px 28px; }
#doislah-menu .dm-search,
#doislah-menu .dm-theme {
  display: flex; align-items: center; width: 100%; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
}
#doislah-menu .dm-search { gap: 10px; margin: 2px 0 14px; cursor: pointer; color: var(--muted); font-size: 19px; text-align: left; }
#doislah-menu .dm-search svg { color: var(--green); flex: none; }
#doislah-menu .dm-theme { justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 12px 16px; }
#doislah-menu .dm-theme span { font-size: 19px; color: var(--ink); }
#doislah-menu .dm-list { display: flex; flex-direction: column; }
#doislah-menu .dm-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px 6px; cursor: pointer; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 21px; line-height: 28px; color: var(--ink);
}
#doislah-menu .dm-item:hover { color: var(--green); }
#doislah-menu .dm-car { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: transform .3s ease, color .25s ease; }
#doislah-menu .dm-row.is-open .dm-car { transform: rotate(180deg); color: var(--green); }
#doislah-menu .dm-row.is-open > .dm-item { color: var(--green); }
#doislah-menu .dm-sub { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .34s cubic-bezier(.3, .8, .3, 1), opacity .28s ease; }
#doislah-menu .dm-row.is-open .dm-sub { opacity: 1; }
#doislah-menu .dm-sub a { display: block; padding: 11px 18px 11px 6px; font-size: 18px; line-height: 24px; color: var(--meta); border-bottom: 1px solid var(--line-2); }
#doislah-menu .dm-sub a:last-child { border-bottom: 0; }

/* Search overlay */
#doislah-search { position: fixed; inset: 0; z-index: 9999; font-family: var(--sans); }
#doislah-search[hidden] { display: none; }
#doislah-search .ds-bd {
  position: absolute; inset: 0; background: rgba(7, 26, 22, .42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ds-fade .2s ease;
}
#doislah-search .ds-panel {
  position: absolute; left: 50%; top: 11vh; transform: translateX(-50%);
  width: min(660px, calc(100vw - 32px)); max-height: 74vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); animation: ds-up .26s cubic-bezier(.2, .9, .3, 1);
}
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-up { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
#doislah-search .ds-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none; }
#doislah-search .ds-field > svg { flex: none; color: var(--green); }
#doislah-search .ds-in { flex: 1; min-width: 0; border: 0; background: none; font-size: 22px; line-height: 30px; color: var(--ink); }
#doislah-search .ds-kbd { flex: none; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--sunken); font-family: var(--latin); font-size: 12px; color: var(--muted); }
#doislah-search .ds-body { overflow-y: auto; padding: 8px 0 12px; }
#doislah-search .ds-lab { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 6px; font-size: 15px; color: var(--muted); }
#doislah-search .ds-lab button { border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 14px; color: var(--green); }
#doislah-search .ds-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: inherit; cursor: pointer; }
#doislah-search .ds-row:hover, #doislah-search .ds-row[aria-selected="true"] { background: rgba(14, 186, 27, .07); }
#doislah-search .ds-dot { width: 34px; height: 34px; flex: none; border-radius: 9px; background: rgba(14, 186, 27, .12); color: var(--green); display: flex; align-items: center; justify-content: center; }
#doislah-search .ds-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#doislah-search .ds-tt { font-size: 20px; line-height: 26px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#doislah-search .ds-mt { font-family: var(--latin); font-size: 14px; line-height: 20px; color: var(--muted); }
#doislah-search .ds-chip { flex: none; padding: 3px 10px; border-radius: 20px; background: rgba(14, 186, 27, .12); color: var(--green); font-size: 13px; }
#doislah-search .ds-rm { border: 0; background: none; cursor: pointer; padding: 4px; color: var(--muted); }
#doislah-search .ds-rm:hover { color: var(--ink); }
#doislah-search .ds-empty { padding: 34px 20px 40px; text-align: center; color: var(--muted); font-size: 19px; }
#doislah-search mark { background: rgba(36, 192, 48, .22); color: inherit; border-radius: 3px; }

@media (max-width: 600px) {
  #doislah-search .ds-panel { top: 0; left: 0; width: 100vw; height: 100%; max-height: 100vh; border-radius: 0; transform: none; animation: none; }
  #doislah-search .ds-in { font-size: 19px; }
  #doislah-search .ds-tt { font-size: 18px; }
}

/* Author list toggle */
.author-more { border: 0; background: none; cursor: pointer; font-family: inherit; padding: 0; }

/* ---------------------------------------------------------------
   16. Doislah blocks
--------------------------------------------------------------- */
.doislah-accordion { border-bottom: 1px solid var(--line); }
.doislah-accordion .acc-head {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 4px; cursor: pointer;
}
.doislah-accordion summary::-webkit-details-marker, .doislah-accordion summary::marker { display: none; content: ""; }
.doislah-accordion .acc-t {
  font-family: var(--sans-head); font-size: 26px; line-height: 1.35; font-weight: 600;
  color: var(--ink); margin: 0; min-width: 0;
}
.doislah-accordion .acc-car { flex: none; color: var(--muted); transition: transform .3s ease, color .25s ease; display: flex; }
.doislah-accordion[open] .acc-car { transform: rotate(180deg); color: var(--green); }
.doislah-accordion[open] .acc-head .acc-t { color: var(--green); }
.doislah-accordion .acc-head:hover .acc-t { color: var(--green); }
.doislah-accordion .acc-body { padding: 0 4px 28px; }
.doislah-accordion .acc-b { font-size: 22px; line-height: 1.65; color: var(--ink); opacity: .85; }
.doislah-accordion .acc-b p { margin: 0 0 18px; }
.doislah-accordion .acc-b p:last-child { margin-bottom: 0; }
.doislah-accordion.is-editing .acc-head { cursor: text; }

.doislah-ayah {
  margin: 40px 0; padding: 30px; border-radius: 10px; background: var(--sunken);
  display: flex; flex-direction: column; gap: 18px;
}
.doislah-ayah .ayah-mark {
  width: 49px; height: 49px; flex: none; border-radius: 10px; background: var(--green-badge);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 12'><path d='M0 12V6.6C0 2.95 2.1.6 5.5 0l.8 2.2C4.4 2.8 3.4 4 3.4 5.6h2.9V12H0zm10.6 0V6.6c0-3.65 2.1-6 5.5-6.6l.8 2.2c-1.9.6-2.9 1.8-2.9 3.4h2.9V12h-6.3z'/></svg>") center / 19px 12px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.doislah-ayah .ayah-text {
  font-family: var(--sans-head); font-size: 25px; line-height: 1.55; font-weight: 600;
  color: var(--ink); margin: 0;
}
.doislah-ayah .ayah-tafsir { font-size: 20px; line-height: 1.65; color: var(--muted); margin: 0; }
.doislah-ayah .ayah-ref { font-size: 18px; font-style: normal; color: var(--green); }
.entry-content .doislah-accordion + .doislah-accordion { margin-top: 0; }

@media (max-width: 760px) {
  .doislah-accordion .acc-t { font-size: 22px; }
  .doislah-accordion .acc-b { font-size: 19px; }
  .doislah-ayah { padding: 24px; }
  .doislah-ayah .ayah-text { font-size: 21px; }
}
