/* ============================================================
   Ashaar (اشعار) module — premium editorial couplet UI.
   Matches the Naat Academy design language (emerald/gold, glass,
   soft shadows, Nastaliq + Barlow). Scoped to .naat-ash-*.
   ============================================================ */

.naat-ash-main { width: 100%; padding-top: 7rem; padding-bottom: 4rem; }
.naat-ash-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1rem; }

/* ---------- Hero ---------- */
.naat-ash-hero { text-align: center; padding: 1rem 0 2rem; }
.naat-ash-kicker {
	display: inline-block; font-family: var(--naat-font-ui, "Bricolage Grotesque", sans-serif);
	font-size: 11px; font-weight: 800; text-transform: uppercase;
	color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0;
	padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.naat-ash-h1 { font-size: clamp(46px, 9vw, 92px); line-height: 1.1; color: #0f2a22; margin: 0; }
.naat-ash-h1-en { font-size: clamp(20px, 3vw, 30px); color: #b45309; font-style: italic; margin: 2px 0 10px; }
.naat-ash-sub { font-size: 15px; color: #64748b; max-width: 560px; margin: 0 auto 22px; }

.naat-ash-searchbar {
	display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 0 auto;
	background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
	border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 6px 6px 18px;
	box-shadow: 0 12px 34px -16px rgba(15,23,42,.22);
}
.naat-ash-searchbar > i { color: #10b981; font-size: 16px; }
.naat-ash-searchbar input { flex: 1 1 auto; border: 0; outline: 0; background: transparent; font-size: 15px; padding: 10px 4px; color: #0f172a; }
.naat-ash-shuffle, .naat-ash-randombtn {
	flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; border: 1px solid #e2e8f0;
	background: #fff; color: #047857; cursor: pointer; transition: all .15s; font-size: 15px;
}
.naat-ash-shuffle:hover, .naat-ash-randombtn:hover { background: #ecfdf5; border-color: #34d399; transform: translateY(-1px); }

/* ---------- Toolbar ---------- */
/* ---------- Minimal one-line heading ---------- */
.naat-ash-minihead { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 18px; }
.naat-ash-minihead-title { font-family: var(--naat-font-ui, "Bricolage Grotesque", sans-serif); font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; color: #0f172a; margin: 0; line-height: 1.1; }
.naat-ash-minihead-count { font-family: var(--naat-font-ui, "Bricolage Grotesque", sans-serif); font-size: 13px; font-weight: 700; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 2px 10px; border-radius: 999px; line-height: 1.6; }

/* ---------- Compact, non-sticky toolbar ---------- */
.naat-ash-toolbar { position: static; z-index: 5; margin: 0 0 14px; }
.naat-ash-fbtn {
	display: none; align-items: center; gap: 8px; width: 100%;
	padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
	font-family: var(--naat-font-ui, sans-serif); font-size: 13px; font-weight: 700; color: #334155; cursor: pointer; margin-bottom: 8px;
	box-shadow: 0 4px 14px -10px rgba(15,23,42,.2); transition: border-color .15s;
}
.naat-ash-fbtn span { flex: 1; text-align: left; }
.naat-ash-fbtn-caret { transition: transform .25s ease; color: #94a3b8; }
.naat-ash-fbtn.is-open .naat-ash-fbtn-caret { transform: rotate(180deg); }
.naat-ash-tbar {
	display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
	background: #fff; border: 1px solid #eef1f5; border-radius: 14px; padding: 7px 8px;
	box-shadow: 0 4px 16px -12px rgba(15,23,42,.14);
}
.naat-ash-fs {
	appearance: none; -webkit-appearance: none; flex: 0 0 auto;
	padding: 6px 26px 6px 12px; border: 1px solid #e2e8f0; border-radius: 999px;
	font-size: 12px; font-weight: 600; color: #475569; background: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; transition: border-color .15s, color .15s;
}
.naat-ash-fs:hover { border-color: #34d399; color: #047857; }
#naat-ash-sort { font-weight: 700; color: #047857; border-color: #a7f3d0; background-color: #ecfdf5; }
.naat-ash-flags { display: inline-flex; gap: 4px; }
.naat-ash-flag {
	padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff;
	font-size: 11.5px; font-weight: 700; color: #64748b; cursor: pointer; transition: all .15s;
}
.naat-ash-flag.is-active { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.naat-ash-clear { width: 32px; height: 32px; border-radius: 999px; border: 1px solid #fecaca; background: #fef2f2; color: #ef4444; cursor: pointer; transition: background .15s; }
.naat-ash-clear:hover { background: #fee2e2; }

@media (max-width: 768px) {
	.naat-ash-fbtn { display: flex; }
	.naat-ash-tbar { display: none; flex-direction: column; align-items: stretch; animation: naatAshPanel .25s ease; }
	.naat-ash-tbar.is-open { display: flex; }
	.naat-ash-fs, .naat-ash-flags, .naat-ash-flag { width: 100%; }
	.naat-ash-flags { display: flex; }
	.naat-ash-flags .naat-ash-flag { flex: 1; text-align: center; }
	.naat-ash-clear { width: 100%; height: 36px; }
}
@keyframes naatAshPanel { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Searchable alphabet dropdown (Urdu + English), replaces old alpha tabs. */
.naat-ash-alphawrap { display: flex; align-items: center; gap: 10px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.naat-ash-alphalabel { font-size: 12px; font-weight: 700; color: #64748b; display: inline-flex; align-items: center; gap: 6px; }
.naat-ash-alpha-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.naat-ash-combo { position: relative; min-width: 220px; }
.naat-ash-combo-input {
	width: 100%; padding: 7px 34px 7px 14px; border: 1px solid #e2e8f0; border-radius: 999px;
	font-size: 12.5px; font-weight: 600; color: #475569; background: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; cursor: text; transition: border-color .15s, box-shadow .15s;
}
.naat-ash-combo-input:focus { outline: none; border-color: #34d399; box-shadow: 0 0 0 3px rgba(16,185,129,.12); color: #047857; }
.naat-ash-combo-panel {
	display: none; position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
	max-height: 260px; overflow-y: auto; padding: 6px; background: rgba(255,255,255,.98);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 20px 40px -18px rgba(15,23,42,.28);
}
.naat-ash-combo.is-open .naat-ash-combo-panel { display: block; animation: naatAshPanel .18s ease; }
.naat-ash-combo-group { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; padding: 8px 10px 4px; }
.naat-ash-combo-item {
	display: block; width: 100%; text-align: left; padding: 7px 12px; border: 0; background: none;
	border-radius: 10px; font-size: 14px; color: #334155; cursor: pointer; transition: background .12s, color .12s;
}
.naat-ash-combo-item[dir="rtl"] { text-align: right; font-family: var(--naat-font-urdu-tax, 'Lateef', serif); font-size: 17px; }
.naat-ash-combo-item:hover, .naat-ash-combo-item.is-sel { background: #ecfdf5; color: #047857; }
.naat-ash-combo-none { padding: 12px; text-align: center; font-size: 12px; color: #94a3b8; }
@media (max-width: 768px) { .naat-ash-alphawrap { flex-direction: column; align-items: stretch; } .naat-ash-combo { min-width: 0; width: 100%; } }

.naat-ash-countstrip { display: flex; justify-content: flex-end; font-size: 12px; color: #94a3b8; margin-bottom: 12px; }
.naat-ash-countstrip strong { color: #047857; font-size: 14px; }

/* ---------- Grid + Card ---------- */
/* Match the Front Page Latest Kalam grid exactly (2 mobile → 4 desktop). */
.naat-ash-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: stretch;
}
@media (min-width: 640px) { .naat-ash-grid { gap: 1.5rem; } }
@media (min-width: 1024px) { .naat-ash-grid { grid-template-columns: repeat(4, 1fr); } }

.naat-ash-card {
	position: relative; border-radius: 22px; overflow: hidden;
	background: #ffffff;
	border: 1px solid #f2f2f2;
	box-shadow: 0 10px 30px -20px rgba(15,23,42,.22);
	transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, border-color .28s ease;
}
.naat-ash-card::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 22px;
	background: linear-gradient(180deg, var(--ash-soft, rgba(16,185,129,.07)) 0%, rgba(255,255,255,0) 38%);
}
.naat-ash-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
	background: var(--ash-accent, #10b981); opacity: .85;
}
.naat-ash-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px var(--ash-glow, rgba(16,185,129,.28)); border-color: color-mix(in srgb, var(--ash-accent, #10b981) 35%, #f2f2f2); }
.naat-ash-card-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 22px 20px; height: 100%; }

.naat-ash-badge {
	font-family: var(--naat-font-urdu, "NaatFont", serif); font-size: 14px; line-height: 1;
	color: #fff; background: var(--ash-accent, #10b981); padding: 5px 14px 4px; border-radius: 999px;
	box-shadow: 0 4px 12px -4px var(--ash-glow);
}
.naat-ash-badge.is-maqta { background: #b45309; }

.naat-ash-couplet { display: flex; flex-direction: column; gap: 0.45rem; width: 100%; }
/* Urdu couplet uses NaatFont only (matches homepage Latest Kalam). */
.naat-ash-misra { font-family: "NaatFont" !important; font-size: clamp(19px, 2.3vw, 24px); line-height: 2; color: #0f2a22; margin: 0; white-space: normal; overflow-wrap: break-word; }
.naat-ash-roman { display: flex; flex-direction: column; gap: 1px; }
.naat-ash-roman span { font-family: var(--naat-font-ui, "Bricolage Grotesque", sans-serif); font-size: 12.5px; color: #64748b; line-height: 1.5; direction: ltr; }

/* Divider + centered category badge (Latest-Kalam style). */
.naat-ash-divider { height: 1px; width: 100%; position: relative; margin: 0.5rem 0; background: var(--ash-border, #e2e8f0); }
.naat-ash-catbadge {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	font-family: var(--naat-font-ui, sans-serif); padding: 2px 12px; border-radius: 999px;
	font-size: 10px; font-weight: 700; letter-spacing: 0; color: #fff; background: var(--ash-accent, #10b981);
	box-shadow: 0 4px 12px -4px var(--ash-glow); white-space: nowrap; text-transform: uppercase;
}

/* Writer-icon avatar + Lateef name row. */
.naat-ash-meta { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; margin-top: auto; width: 100%; padding: 0 4px; }
.naat-ash-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--ash-soft, rgba(16,185,129,.08)); border: 1px solid var(--ash-border, rgba(16,185,129,.2)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 6px -2px rgba(0,0,0,.08); }
.naat-ash-avatar img { width: 22px; height: 22px; object-fit: contain; display: block; }
.naat-ash-metatxt { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; text-align: right; }
.naat-ash-meta .naat-ash-writer { font-family: "Lateef", serif; font-size: 16px; line-height: 1.3; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.naat-ash-meta .naat-ash-book { font-family: "Lateef", serif; font-size: 12px; line-height: 1.3; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.naat-ash-cta {
	display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
	font-family: var(--naat-font-ui, "Bricolage Grotesque", sans-serif);
	font-size: 11px; font-weight: 800; text-transform: uppercase;
	color: var(--ash-accent, #047857); text-decoration: none; padding: 7px 16px;
	border-radius: 999px; border: 1px solid var(--ash-border); background: rgba(255,255,255,.6);
	transition: all .18s;
}
.naat-ash-cta:hover { background: var(--ash-accent, #047857); color: #fff; border-color: transparent; }
.naat-ash-cta i { font-size: 14px; }

/* ---------- Skeleton / states ---------- */
.naat-ash-skelwrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.naat-ash-skel { border-radius: 22px; border: 1px solid #eef1f5; background: #fff; padding: 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.naat-ash-skel-l { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #f1f5f9 25%, #e9eef4 37%, #f1f5f9 63%); background-size: 400% 100%; animation: naatAshShimmer 1.4s ease infinite; }
.naat-ash-skel-l.sm { height: 11px; }
.naat-ash-skel-l.w80 { width: 80%; } .naat-ash-skel-l.w60 { width: 60%; } .naat-ash-skel-l.w50 { width: 50%; } .naat-ash-skel-l.w40 { width: 40%; }
@keyframes naatAshShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.naat-ash-empty { text-align: center; color: #94a3b8; font-size: 15px; padding: 40px 0; }
.naat-ash-sentinel { height: 1px; }
.naat-ash-loadmore {
	display: block; margin: 26px auto 0; padding: 12px 30px; border-radius: 999px;
	border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; font-weight: 700;
	font-size: 14px; cursor: pointer; transition: all .15s;
}
.naat-ash-loadmore:hover { background: #047857; color: #fff; border-color: #047857; }
.naat-ash-grid.is-loading { opacity: .55; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	.naat-ash-card, .naat-ash-cta, .naat-ash-loadmore { transition: none; }
	.naat-ash-skel-l { animation: none; }
}

/* ---------- Breadcrumb ---------- */
.naat-ash-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #94a3b8; margin: 0 0 18px; flex-wrap: wrap; }
.naat-ash-breadcrumb a { color: #64748b; text-decoration: none; transition: color .15s; }
.naat-ash-breadcrumb a:hover { color: #047857; }
.naat-ash-breadcrumb i { font-size: 10px; color: #cbd5e1; }
.naat-ash-crumb-current { color: #0f2a22; font-weight: 600; }

/* ---------- Single stage ---------- */
.naat-ash-single-wrap { max-width: 920px; }
.naat-ash-stage {
	position: relative; text-align: center; border-radius: 30px; overflow: hidden;
	padding: 48px 28px 26px;
	background:
		radial-gradient(120% 120% at 50% 0%, var(--ash-soft, rgba(16,185,129,.12)), transparent 60%),
		rgba(255,255,255,.78);
	backdrop-filter: blur(12px);
	border: 1px solid var(--ash-border, rgba(16,185,129,.2));
	box-shadow: 0 26px 60px -30px rgba(15,23,42,.34);
}
.naat-ash-stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--ash-accent, #10b981); }
.naat-ash-stage-badge {
	display: inline-block; font-family: var(--naat-font-urdu, "NaatFont", serif); font-size: 15px;
	color: #fff; background: var(--ash-accent, #10b981); padding: 6px 18px 5px; border-radius: 999px; margin-bottom: 22px;
}
.naat-ash-stage-badge.is-maqta { background: #b45309; }
.naat-ash-stage-couplet { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 16px; }
.naat-ash-stage-couplet p { font-size: clamp(28px, 5vw, 46px); line-height: 1.8; color: #0f2a22; margin: 0; }
.naat-ash-stage-roman { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.naat-ash-stage-roman span { font-size: clamp(15px, 2vw, 19px); color: #64748b; font-style: italic; }

/* ---------- Actions ---------- */
.naat-ash-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.naat-ash-act {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 12px;
	border: 1px solid var(--ash-border, #e2e8f0); background: rgba(255,255,255,.7); color: #475569;
	font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.naat-ash-act:hover { background: var(--ash-accent, #047857); color: #fff; border-color: transparent; transform: translateY(-1px); }
.naat-ash-act.is-on { background: var(--ash-accent, #047857); color: #fff; border-color: transparent; }
.naat-ash-act i { font-size: 14px; }
@media (max-width: 520px) { .naat-ash-act span { display: none; } .naat-ash-act { padding: 10px; } }

/* ---------- Meta panel ---------- */
.naat-ash-metapanel { margin-top: 22px; background: rgba(255,255,255,.85); border: 1px solid #eef1f5; border-radius: 22px; padding: 22px; box-shadow: 0 8px 26px -16px rgba(15,23,42,.12); }
.naat-ash-metagrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.naat-ash-metacell { display: flex; flex-direction: column; gap: 4px; }
.naat-ash-metalabel { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #94a3b8; }
.naat-ash-metaval { font-size: 15px; color: #0f2a22; text-decoration: none; }
a.naat-ash-metaval:hover { color: #047857; }
.naat-ash-chiprow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #eef1f5; }
.naat-ash-chiprow-label { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #94a3b8; margin-right: 4px; }
.naat-ash-chip { font-size: 12.5px; color: #475569; background: #f8fafc; border: 1px solid #eef1f5; padding: 5px 12px; border-radius: 999px; text-decoration: none; transition: all .15s; }
.naat-ash-chip:hover { background: #047857; color: #fff; border-color: #047857; }

/* ---------- Prev / Next ---------- */
.naat-ash-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.naat-ash-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.85); border: 1px solid #eef1f5; color: #475569; text-decoration: none; font-size: 13px; transition: all .15s; max-width: 38%; }
.naat-ash-nav a:hover { border-color: #34d399; color: #047857; }
.naat-ash-nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.naat-ash-nav-kalam { background: #ecfdf5 !important; border-color: #a7f3d0 !important; color: #047857 !important; font-weight: 700; }
@media (max-width: 640px) { .naat-ash-nav a { max-width: 100%; flex: 1 1 100%; justify-content: center; } }

/* ---------- Related ---------- */
.naat-ash-related { margin-top: 38px; }
.naat-ash-related-title { font-size: 22px; color: #0f2a22; font-style: italic; margin-bottom: 16px; }

/* ---------- 404 ---------- */
.naat-ash-404 { text-align: center; padding: 80px 0; }
.naat-ash-404 i { font-size: 56px; color: #cbd5e1; }
.naat-ash-404 h1 { font-size: 30px; color: #0f2a22; margin: 14px 0 22px; }

/* ---------- Search block (global search results) ---------- */
.naat-ash-search-block { margin: 0 0 32px; }
.naat-ash-search-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.naat-ash-search-title { font-size: 22px; color: #0f2a22; font-style: italic; }
.naat-ash-search-all { font-size: 13px; color: #047857; text-decoration: none; font-weight: 600; }
.naat-ash-search-all:hover { text-decoration: underline; }

/* ---------- Reading mode ---------- */
body.naat-ash-reading .naat-ash-metapanel,
body.naat-ash-reading .naat-ash-nav,
body.naat-ash-reading .naat-ash-related,
body.naat-ash-reading .naat-ash-breadcrumb,
body.naat-ash-reading .site-header,
body.naat-ash-reading header.fixed { display: none !important; }
body.naat-ash-reading .naat-ash-stage { box-shadow: none; border: none; background: transparent; }

@media print {
	body * { visibility: hidden !important; }
	.naat-ash-stage, .naat-ash-stage * { visibility: visible !important; }
	.naat-ash-actions { display: none !important; }
	.naat-ash-stage { box-shadow: none; border: none; position: absolute; top: 0; left: 0; right: 0; }
}

/* ============================================================
   #6 Ashaar LANDING redesign — compact hero, 4:5 cards (Naat
   Font), dynamic sections, ranked lists, browse + explore.
   ============================================================ */
.naat-ash-landing .naat-ash-wrap { max-width: 1240px; }

/* Compact hero */
.naat-ash-hero.is-compact { padding: 0.25rem 0 1.25rem; }
.naat-ash-hero.is-compact .naat-ash-h1 { font-size: clamp(40px, 6vw, 64px); }
.naat-ash-hero.is-compact .naat-ash-h1-en { font-size: clamp(18px, 2.4vw, 24px); margin: 0 0 6px; }
.naat-ash-hero.is-compact .naat-ash-sub { margin-bottom: 16px; }

/* Section scaffolding */
.naat-ash-section { margin: 30px 0; }
.naat-ash-sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.naat-ash-sectitle { font-size: clamp(19px, 2.6vw, 26px); color: #0f2a22; font-style: italic; display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.naat-ash-sectitle i { color: #10b981; font-style: normal; }
.naat-ash-sectitle .font-urdu { font-style: normal; color: #047857; }
.naat-ash-secsub { font-size: 13px; color: #94a3b8; margin: 2px 0 0; }

/* Adaptive-height premium cards + Naat Font (no cropping, no overflow) */
.naat-ash-card { aspect-ratio: auto; height: 100%; }
.naat-ash-card-inner { justify-content: flex-start; gap: 16px; }
.naat-ash-couplet { gap: 0.5rem; width: 100%; }
.naat-ash-couplet.font-urdu .naat-ash-misra,
.naat-ash-misra {
	font-family: "NaatFont", var(--naat-font-urdu, "Noto Nastaliq Urdu"), serif !important;
	font-size: clamp(20px, 2.4vw, 26px); line-height: 2.05;
	overflow: visible; text-overflow: clip; white-space: normal;
	-webkit-line-clamp: none; word-break: normal; overflow-wrap: break-word;
	padding-bottom: 2px;
}
.naat-ash-rank-ur,
.naat-ash-stage-couplet.font-urdu p {
	font-family: "NaatFont", var(--naat-font-urdu, "Noto Nastaliq Urdu"), serif !important;
}
.naat-ash-card .naat-ash-cta { margin-top: 4px; }
.naat-ash-grid.is-feature { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .naat-ash-grid.is-feature { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .naat-ash-grid.is-feature { grid-template-columns: repeat(6, 1fr); } }
.naat-ash-grid.is-random { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 560px) { .naat-ash-grid.is-random { grid-template-columns: repeat(2, 1fr); } }

/* Two-column layout for ranked sections */
.naat-ash-twocol { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 30px 0; }
@media (min-width: 920px) { .naat-ash-twocol { grid-template-columns: 1fr 1fr; } }

/* Ranked list cards */
.naat-ash-rankcard, .naat-ash-randomcard {
	background: #fff; border: 1px solid #eef2f1; border-radius: 22px;
	padding: 20px; box-shadow: 0 10px 30px -20px rgba(15,42,34,.25);
}
.naat-ash-ranklist { display: flex; flex-direction: column; gap: 4px; }
.naat-ash-rank {
	display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 14px;
	text-decoration: none; transition: background .15s; border: 1px solid transparent;
}
.naat-ash-rank:hover { background: color-mix(in srgb, var(--ash-accent, #10b981) 7%, #fff); border-color: color-mix(in srgb, var(--ash-accent, #10b981) 18%, #eef2f1); }
.naat-ash-rank-num {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
	font-family: var(--naat-font-ui, "Bricolage Grotesque", sans-serif); font-weight: 800; font-size: 14px; color: #fff;
	background: linear-gradient(135deg, var(--ash-accent, #10b981), color-mix(in srgb, var(--ash-accent, #10b981) 60%, #0b1f17));
}
.naat-ash-rank-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.naat-ash-rank-ur {
	font-family: "NaatFont", var(--naat-font-urdu, "Noto Nastaliq Urdu"), serif;
	font-size: 19px; line-height: 1.7; color: #0f2a22;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.naat-ash-rank-writer { font-size: 13px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.naat-ash-rank-views { flex: 0 0 auto; font-size: 11px; color: #94a3b8; display: inline-flex; align-items: center; gap: 4px; }

/* Random refresh button */
.naat-ash-refresh {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
	border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.naat-ash-refresh:hover { background: #047857; color: #fff; border-color: #047857; }
.naat-ash-refresh.is-spin i { animation: naatAshSpin .6s linear; }
@keyframes naatAshSpin { to { transform: rotate(360deg); } }

/* Browse cards */
.naat-ash-browsegrid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .naat-ash-browsegrid { grid-template-columns: repeat(3, 1fr); } }
.naat-ash-browsecard { background: #fff; border: 1px solid #eef2f1; border-radius: 22px; padding: 20px; box-shadow: 0 10px 30px -22px rgba(15,42,34,.22); }
.naat-ash-browsetitle { font-size: 15px; font-weight: 800; color: #0f2a22; margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; }
.naat-ash-browsetitle i { color: #10b981; }
.naat-ash-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.naat-ash-pill {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
	background: #f8fafc; border: 1px solid #eef2f1; color: #334155; text-decoration: none; font-size: 13.5px; transition: all .15s;
}
.naat-ash-pill:hover { background: #047857; color: #fff; border-color: #047857; }
.naat-ash-pill em { font-style: normal; font-size: 11px; color: #94a3b8; }
.naat-ash-pill:hover em { color: rgba(255,255,255,.8); }
.naat-ash-poets { display: flex; flex-direction: column; gap: 6px; }
.naat-ash-poetchip {
	display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px;
	background: #f8fafc; border: 1px solid #eef2f1; text-decoration: none; transition: all .15s;
}
.naat-ash-poetchip:hover { background: color-mix(in srgb, var(--ash-accent, #10b981) 9%, #fff); border-color: var(--ash-accent, #10b981); }
.naat-ash-poetdot { width: 10px; height: 10px; border-radius: 999px; background: var(--ash-accent, #10b981); flex: 0 0 auto; }
.naat-ash-poetname { flex: 1 1 auto; min-width: 0; font-size: 16px; color: #1f3b32; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.naat-ash-poetchip em { font-style: normal; font-size: 12px; font-weight: 700; color: #64748b; }

/* Explore more */
.naat-ash-explore { text-align: center; }
.naat-ash-explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .naat-ash-explore-grid { grid-template-columns: repeat(4, 1fr); } }
.naat-ash-explore-link {
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; border-radius: 18px;
	background: linear-gradient(160deg, #ecfdf5, #fff); border: 1px solid #d1fae5; color: #065f46; text-decoration: none;
	font-weight: 700; font-size: 14px; transition: all .2s;
}
.naat-ash-explore-link i { font-size: 24px; color: #10b981; }
.naat-ash-explore-link:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(4,120,87,.4); border-color: #6ee7b7; }

@media (prefers-reduced-motion: reduce) {
	.naat-ash-rank, .naat-ash-pill, .naat-ash-poetchip, .naat-ash-explore-link, .naat-ash-refresh { transition: none; }
	.naat-ash-refresh.is-spin i { animation: none; }
}

/* Ashaar single: optional sticky contextual sidebar (desktop 2-col; stacks on mobile). */
@media (min-width: 1024px) {
	.naat-ash-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
	.naat-ash-single-grid .naat-ash-single-aside { align-self: start; }
}
.naat-ash-single-aside { width: 100%; margin-top: 24px; }
@media (min-width: 1024px) { .naat-ash-single-aside { margin-top: 0; } }

/* Ashaar archive: optional sticky contextual sidebar (desktop only). */
.naat-ash-layout { display: block; }
.naat-ash-primary { min-width: 0; }
@media (min-width: 1024px) {
	.naat-ash-layout.has-ctx { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2rem; align-items: start; }
	.naat-ash-layout.has-ctx .naat-ash-aside { align-self: start; }
}
.naat-ash-aside { width: 100%; margin-top: 28px; }
@media (min-width: 1024px) { .naat-ash-aside { margin-top: 0; } }
