/* Al-Samarrai Home 1.0.9 — the front page, built from the posts.
 * Colours and fonts are the site's own tokens (--c-*, --f-*), set in :root
 * by the kit. Every rule is scoped under .ahh so nothing leaks to the
 * header or footer, and form controls go through a parent (Astra styles
 * them by element-plus-attribute). */

.ahh {
	--ahh-ink: var(--c-ink, #14231c);
	--ahh-ink-2: var(--c-ink-2, #3c5147);
	--ahh-ink-3: var(--c-ink-3, #6d7f76);
	--ahh-paper: var(--c-paper, #fbf9f4);
	--ahh-cream: var(--c-cream, #f2ede1);
	--ahh-cream-2: var(--c-cream-2, #e9e1d0);
	--ahh-green: var(--c-green, #2e6e51);
	--ahh-deep: var(--c-green-deep, #1a4232);
	--ahh-tint: var(--c-green-tint, #e7eee9);
	--ahh-gold: var(--c-gold, #a98545);
	--ahh-gold-text: var(--c-gold-text, #7d5f27);
	--ahh-gold-dark: var(--c-gold-on-dark, #dcbc7e);
	--ahh-gold-tint: var(--c-gold-tint, #f1e7d3);
	--ahh-line: var(--c-line, #ded6c4);
	--ahh-line-soft: var(--c-line-soft, #ece6da);
	--ahh-studio: var(--c-studio, #23282a);
	--ahh-studio-2: var(--c-studio-2, #2f3538);
	--ahh-studio-line: var(--c-studio-line, #464e51);
	--ahh-studio-text: var(--c-studio-text, #e7e3d8);
	--ahh-studio-text-2: var(--c-studio-text-2, #a9b0ae);
	--ahh-shadow: 0 1px 2px rgba(20, 35, 28, .06), 0 8px 24px rgba(20, 35, 28, .07);
	--ahh-shadow-up: 0 2px 4px rgba(20, 35, 28, .07), 0 18px 40px rgba(20, 35, 28, .14);
	--ahh-body: var(--f-body, Tajawal), Tajawal, system-ui, sans-serif;
	--ahh-serif: var(--ahh-body); /* one face site-wide since 2026-10-23 */
	--ahh-ease: cubic-bezier(.2, .7, .2, 1);
	--ahh-r: 18px;

	width: 100%;
	color: var(--ahh-ink);
	font-family: var(--ahh-body);
	line-height: 1.7;
	overflow-x: clip;
}

.ahh *, .ahh *::before, .ahh *::after { box-sizing: border-box; }
.ahh a { color: inherit; text-decoration: none; }
.ahh ul, .ahh ol { list-style: none; margin: 0; padding: 0; }
.ahh h1, .ahh h2, .ahh h3, .ahh p, .ahh figure { margin: 0; }
.ahh img { display: block; max-width: 100%; height: auto; }
.ahh [hidden] { display: none !important; }
.ahh .ahh-i { width: 18px; height: 18px; flex: none; }
.ahh :focus-visible { outline: 2px solid var(--ahh-gold); outline-offset: 3px; border-radius: 8px; }

/* the design's container: 1160px, gutters 16 / 24 / 32 at 768 and 1025 */
.ahh-wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; position: relative; }
@media (min-width: 768px) { .ahh-wrap { padding-inline: 24px; } }
@media (min-width: 1025px) { .ahh-wrap { padding-inline: 32px; } }

.ahh-sec { position: relative; padding-block: clamp(64px, 8vw, 108px); }

/* The bands alternate light and dark: paper, a deep-green band of numbers,
   white, sage, deep green, sand, studio, gold. The tiles are one khatam
   lattice (eight-pointed stars and crosses, see pattern.py) in four inks. */
.ahh { --ahh-sage: #eef3ee;
	--ahh-tile-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231a4232' stroke-opacity='0.085' stroke-width='1.042'%3E%3Cpath d='M100.00 50.00L85.36 64.64L85.36 85.36L64.64 85.36L50.00 100.00L35.36 85.36L14.64 85.36L14.64 64.64L0.00 50.00L14.64 35.36L14.64 14.64L35.36 14.64L50.00 0.00L64.64 14.64L85.36 14.64L85.36 35.36ZM93.00 50.00L80.41 62.59L80.41 80.41L62.59 80.41L50.00 93.00L37.41 80.41L19.59 80.41L19.59 62.59L7.00 50.00L19.59 37.41L19.59 19.59L37.41 19.59L50.00 7.00L62.59 19.59L80.41 19.59L80.41 37.41ZM70.33 58.42L61.91 61.91L58.42 70.33L50.00 66.84L41.58 70.33L38.09 61.91L29.67 58.42L33.16 50.00L29.67 41.58L38.09 38.09L41.58 29.67L50.00 33.16L58.42 29.67L61.91 38.09L70.33 41.58L66.84 50.00ZM-14.64 -14.64h29.29v29.29h-29.29ZM-10.14 -10.14h20.29v20.29h-20.29ZM85.36 -14.64h29.29v29.29h-29.29ZM89.86 -10.14h20.29v20.29h-20.29ZM-14.64 85.36h29.29v29.29h-29.29ZM-10.14 89.86h20.29v20.29h-20.29ZM85.36 85.36h29.29v29.29h-29.29ZM89.86 89.86h20.29v20.29h-20.29Z'/%3E%3Ccircle cx='50' cy='50' r='9'/%3E%3C/g%3E%3Cg fill='%231a4232' fill-opacity='0.085'%3E%3Ccircle cx='50' cy='50' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='100' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='100' r='2.2'/%3E%3Ccircle cx='100' cy='100' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
	--ahh-tile-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23dcbc7e' stroke-opacity='0.1' stroke-width='0.833'%3E%3Cpath d='M100.00 50.00L85.36 64.64L85.36 85.36L64.64 85.36L50.00 100.00L35.36 85.36L14.64 85.36L14.64 64.64L0.00 50.00L14.64 35.36L14.64 14.64L35.36 14.64L50.00 0.00L64.64 14.64L85.36 14.64L85.36 35.36ZM93.00 50.00L80.41 62.59L80.41 80.41L62.59 80.41L50.00 93.00L37.41 80.41L19.59 80.41L19.59 62.59L7.00 50.00L19.59 37.41L19.59 19.59L37.41 19.59L50.00 7.00L62.59 19.59L80.41 19.59L80.41 37.41ZM70.33 58.42L61.91 61.91L58.42 70.33L50.00 66.84L41.58 70.33L38.09 61.91L29.67 58.42L33.16 50.00L29.67 41.58L38.09 38.09L41.58 29.67L50.00 33.16L58.42 29.67L61.91 38.09L70.33 41.58L66.84 50.00ZM-14.64 -14.64h29.29v29.29h-29.29ZM-10.14 -10.14h20.29v20.29h-20.29ZM85.36 -14.64h29.29v29.29h-29.29ZM89.86 -10.14h20.29v20.29h-20.29ZM-14.64 85.36h29.29v29.29h-29.29ZM-10.14 89.86h20.29v20.29h-20.29ZM85.36 85.36h29.29v29.29h-29.29ZM89.86 89.86h20.29v20.29h-20.29Z'/%3E%3Ccircle cx='50' cy='50' r='9'/%3E%3C/g%3E%3Cg fill='%23dcbc7e' fill-opacity='0.16'%3E%3Ccircle cx='50' cy='50' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='100' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='100' r='2.2'/%3E%3Ccircle cx='100' cy='100' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
	--ahh-tile-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23dcbc7e' stroke-opacity='0.09' stroke-width='1.190'%3E%3Cpath d='M100.00 50.00L85.36 64.64L85.36 85.36L64.64 85.36L50.00 100.00L35.36 85.36L14.64 85.36L14.64 64.64L0.00 50.00L14.64 35.36L14.64 14.64L35.36 14.64L50.00 0.00L64.64 14.64L85.36 14.64L85.36 35.36ZM93.00 50.00L80.41 62.59L80.41 80.41L62.59 80.41L50.00 93.00L37.41 80.41L19.59 80.41L19.59 62.59L7.00 50.00L19.59 37.41L19.59 19.59L37.41 19.59L50.00 7.00L62.59 19.59L80.41 19.59L80.41 37.41ZM70.33 58.42L61.91 61.91L58.42 70.33L50.00 66.84L41.58 70.33L38.09 61.91L29.67 58.42L33.16 50.00L29.67 41.58L38.09 38.09L41.58 29.67L50.00 33.16L58.42 29.67L61.91 38.09L70.33 41.58L66.84 50.00ZM-14.64 -14.64h29.29v29.29h-29.29ZM-10.14 -10.14h20.29v20.29h-20.29ZM85.36 -14.64h29.29v29.29h-29.29ZM89.86 -10.14h20.29v20.29h-20.29ZM-14.64 85.36h29.29v29.29h-29.29ZM-10.14 89.86h20.29v20.29h-20.29ZM85.36 85.36h29.29v29.29h-29.29ZM89.86 89.86h20.29v20.29h-20.29Z'/%3E%3Ccircle cx='50' cy='50' r='9'/%3E%3C/g%3E%3Cg fill='%23dcbc7e' fill-opacity='0.14'%3E%3Ccircle cx='50' cy='50' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='100' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='100' r='2.2'/%3E%3Ccircle cx='100' cy='100' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
	--ahh-tile-studio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='0.833'%3E%3Cpath d='M100.00 50.00L85.36 64.64L85.36 85.36L64.64 85.36L50.00 100.00L35.36 85.36L14.64 85.36L14.64 64.64L0.00 50.00L14.64 35.36L14.64 14.64L35.36 14.64L50.00 0.00L64.64 14.64L85.36 14.64L85.36 35.36ZM93.00 50.00L80.41 62.59L80.41 80.41L62.59 80.41L50.00 93.00L37.41 80.41L19.59 80.41L19.59 62.59L7.00 50.00L19.59 37.41L19.59 19.59L37.41 19.59L50.00 7.00L62.59 19.59L80.41 19.59L80.41 37.41ZM70.33 58.42L61.91 61.91L58.42 70.33L50.00 66.84L41.58 70.33L38.09 61.91L29.67 58.42L33.16 50.00L29.67 41.58L38.09 38.09L41.58 29.67L50.00 33.16L58.42 29.67L61.91 38.09L70.33 41.58L66.84 50.00ZM-14.64 -14.64h29.29v29.29h-29.29ZM-10.14 -10.14h20.29v20.29h-20.29ZM85.36 -14.64h29.29v29.29h-29.29ZM89.86 -10.14h20.29v20.29h-20.29ZM-14.64 85.36h29.29v29.29h-29.29ZM-10.14 89.86h20.29v20.29h-20.29ZM85.36 85.36h29.29v29.29h-29.29ZM89.86 89.86h20.29v20.29h-20.29Z'/%3E%3Ccircle cx='50' cy='50' r='9'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Ccircle cx='50' cy='50' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='100' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='100' r='2.2'/%3E%3Ccircle cx='100' cy='100' r='2.2'/%3E%3C/g%3E%3C/svg%3E"); }

/* the seam: a gold rule with a medallion, sitting across two bands */
.ahh-div { position: relative; z-index: 6; height: 0; display: flex; align-items: center; justify-content: center; gap: 14px; pointer-events: none; }
.ahh-div-line { width: min(22vw, 200px); height: 1px; background: linear-gradient(to left, transparent, var(--ahh-gold) 70%); transform-origin: right center; }
.ahh-div-line:first-child { background: linear-gradient(to right, transparent, var(--ahh-gold) 70%); transform-origin: left center; }
.ahh-div-medal { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ahh-deep); border: 1.5px solid var(--ahh-gold); box-shadow: 0 0 0 5px rgba(169, 133, 69, .14), 0 10px 24px -8px rgba(20, 35, 28, .45); color: var(--ahh-gold-dark); }
.ahh .ahh-div-star { width: 40px; height: 40px; }
@media (max-width: 599px) { .ahh-div-medal { width: 48px; height: 48px; } .ahh .ahh-div-star { width: 32px; height: 32px; } }

/* ---------------------------------------------------------------- shared */

.ahh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.ahh-head-text { max-width: 640px; }
.ahh-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ahh-gold-text); letter-spacing: 0; margin-bottom: 8px; }
.ahh-kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; transform-origin: right center; transition: transform .9s var(--ahh-ease) .25s; }
.ahh-js .ahh-head[data-r]:not(.is-in) .ahh-kicker::before { transform: scaleX(0); }
.ahh .ahh-title { font-family: var(--ahh-body); font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.25; color: var(--ahh-ink); }
.ahh-desc { margin-top: 10px; font-size: 16px; color: var(--ahh-ink-2); }

.ahh-more { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--ahh-line); border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ahh-green); background: var(--c-white, #fff); transition: background .3s var(--ahh-ease), color .3s, border-color .3s, gap .3s var(--ahh-ease); }
.ahh-more:hover { background: var(--ahh-green); border-color: var(--ahh-green); color: #fff; gap: 12px; }

.ahh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1.2; border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ahh-ease), box-shadow .3s, background .3s, color .3s; }
.ahh-btn:hover { transform: translateY(-2px); }
.ahh-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(120%); transition: transform .7s var(--ahh-ease); }
.ahh-btn:hover::after { transform: translateX(-120%); }
.ahh-btn.is-primary { background: var(--ahh-green); color: #fff; box-shadow: 0 8px 20px rgba(46, 110, 81, .25); }
.ahh-btn.is-primary:hover { background: var(--ahh-deep); box-shadow: 0 12px 28px rgba(26, 66, 50, .3); }
.ahh-btn.is-gold { background: var(--ahh-gold); color: #fff; box-shadow: 0 8px 20px rgba(169, 133, 69, .28); }
.ahh-btn.is-gold:hover { background: var(--ahh-gold-text); }
.ahh-btn.is-ghost { background: transparent; color: var(--ahh-ink); border-color: var(--ahh-line); }
.ahh-btn.is-ghost:hover { border-color: var(--ahh-green); color: var(--ahh-green); background: var(--c-white, #fff); }
.ahh-btn.is-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.ahh-btn.is-light:hover { background: #fff; color: var(--ahh-deep); }

.ahh-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ahh-green); transition: gap .3s var(--ahh-ease); }
.ahh-link:hover { gap: 13px; }
.ahh-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ahh-ink-3); }
.ahh-meta .ahh-i { width: 15px; height: 15px; }

.ahh-day-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--ahh-gold-tint); color: var(--ahh-gold-text); font-size: 13px; font-weight: 800; }
.ahh-day-tag .ahh-i { width: 16px; height: 16px; animation: ahh-spin 14s linear infinite; }
.ahh-date { font-size: 13px; color: var(--ahh-ink-3); }
.ahh-lead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.ahh-lead-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }

.ahh-list-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ahh-ink-2); margin-bottom: 8px; }

/* ------------------------------------------------------------------ hero */

.ahh-hero { position: relative; padding-block: clamp(44px, 8vw, 104px) clamp(48px, 7vw, 88px); background: var(--ahh-paper); isolation: isolate; }
.ahh-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.ahh-hero-bg::before { content: ""; position: absolute; top: -96px; left: -96px; right: 0; bottom: 0; background-image: var(--ahh-tile-light); background-size: 96px 96px; animation: ahh-pan 80s linear infinite; will-change: transform; }
.ahh-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(169, 133, 69, .18), transparent 65%); top: -160px; left: -120px; animation: ahh-float 14s ease-in-out infinite; }
.ahh-glow.is-2 { background: radial-gradient(circle, rgba(46, 110, 81, .14), transparent 65%); top: auto; bottom: -220px; left: auto; right: -160px; animation-delay: -7s; }

.ahh-hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .ahh-hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(48px, 5.5vw, 72px); } }

/* the name stays on one line: it is 14 em wide in Tajawal 800, so 1/14.6 of the column */
.ahh-hero-text { container-type: inline-size; min-width: 0; }
.ahh-hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--ahh-tint); color: var(--ahh-green); font-size: 14px; font-weight: 800; }
.ahh-hero-kicker .ahh-i { width: 15px; height: 15px; color: var(--ahh-gold); }
.ahh .ahh-name { margin-top: 26px; font-family: var(--ahh-body); font-size: min(50px, 6.85cqi); white-space: nowrap; font-weight: 800; line-height: 1.3; color: var(--ahh-ink);
	background: linear-gradient(90deg, var(--ahh-ink) 0%, var(--ahh-deep) 45%, var(--ahh-gold) 50%, var(--ahh-deep) 55%, var(--ahh-ink) 100%); background-size: 300% 100%; background-position: 100% 0;
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ahh-sheen 6s 1.2s var(--ahh-ease) 1 both; }
.ahh-role { margin-top: 18px; max-width: 600px; font-size: clamp(16px, 1.7vw, 18px); font-weight: 700; line-height: 1.8; color: var(--ahh-gold-text); }
.ahh-bio { margin-top: 18px; max-width: 600px; font-size: 16.5px; line-height: 2; color: var(--ahh-ink-2); }

/* search */
.ahh-search { position: relative; margin-top: 36px; max-width: 600px; z-index: 5; }
.ahh-search-box { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px; padding-inline-start: 16px; background: var(--c-white, #fff); border: 1px solid var(--ahh-line); border-radius: 999px; box-shadow: var(--ahh-shadow); transition: border-color .3s, box-shadow .3s; }
.ahh-search-box:focus-within { border-color: var(--ahh-green); box-shadow: 0 0 0 4px rgba(46, 110, 81, .12), var(--ahh-shadow); }
.ahh-search .ahh-search-i { width: 20px; height: 20px; color: var(--ahh-ink-3); }
.ahh-search .ahh-search-box .ahh-search-input { flex: 1; min-width: 0; height: 44px; padding: 0 4px; border: 0; background: transparent; box-shadow: none; font: inherit; font-size: 16px; color: var(--ahh-ink); outline: none; }
.ahh-search .ahh-search-box .ahh-search-input::-webkit-search-cancel-button { display: none; }
.ahh-search .ahh-search-box .ahh-search-go { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ahh-green); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .3s; }
.ahh-search .ahh-search-box .ahh-search-go:hover { background: var(--ahh-deep); }
.ahh-search-go .ahh-i { width: 16px; height: 16px; }
@media (max-width: 479px) { .ahh-search .ahh-search-box .ahh-search-go span { display: none; } .ahh-search .ahh-search-box .ahh-search-go { padding: 0 14px; } }

.ahh-results { text-align: start; position: absolute; inset-inline: 0; top: 100%; margin-top: 8px; z-index: 10; max-height: min(70vh, 480px); overflow: auto; overscroll-behavior: contain; background: var(--c-white, #fff); border: 1px solid var(--ahh-line); border-radius: 16px; box-shadow: var(--ahh-shadow-up); padding: 8px; animation: ahh-pop .25s var(--ahh-ease); }
.ahh-res-group + .ahh-res-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ahh-line-soft); }
.ahh-res-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; font-size: 13px; font-weight: 800; color: var(--ahh-gold-text); }
.ahh-res-head a { font-weight: 700; color: var(--ahh-green); }
.ahh-res-item { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; transition: background .2s; }
.ahh-res-item b { font-weight: 700; font-size: 15px; color: var(--ahh-ink); line-height: 1.5; }
.ahh-res-item small { font-size: 12px; color: var(--ahh-ink-3); }
.ahh-res-item mark { background: var(--ahh-gold-tint); color: inherit; border-radius: 3px; padding: 0 2px; }
.ahh-res-item:hover, .ahh-res-item.is-active { background: var(--ahh-tint); }
.ahh-res-empty, .ahh-res-wait { padding: 14px 12px; font-size: 14px; color: var(--ahh-ink-3); }
.ahh-res-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--ahh-paper); font-size: 14px; font-weight: 700; color: var(--ahh-green); }

.ahh-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ahh-cta .ahh-btn { min-width: 150px; padding-inline: 26px; }
@media (max-width: 479px) { .ahh-cta .ahh-btn { flex: 1 1 100%; } }

/* portrait, as the first design had it: a framed, rounded photograph */
.ahh-hero-photo { position: relative; justify-self: center; display: flex; justify-content: center; }
.ahh-hero-photo .ahh-portrait { display: block; width: auto; height: 470px; max-width: 100%; object-fit: cover; border: 3px solid var(--ahh-paper); border-radius: 20px; box-shadow: 0 4px 16px rgba(20, 35, 28, .16); transition: box-shadow .5s var(--ahh-ease), transform .5s var(--ahh-ease); }
.ahh-hero-photo:hover .ahh-portrait { transform: translateY(-4px); box-shadow: 0 18px 40px -12px rgba(20, 35, 28, .3); }
@media (min-width: 900px) and (max-width: 1024px) { .ahh-hero-photo .ahh-portrait { height: 420px; } }
@media (max-width: 899px) {
	.ahh-hero-grid { gap: 32px; }
	.ahh-hero-photo { order: -1; width: 100%; }
	.ahh-hero-photo .ahh-portrait { height: auto; max-height: 420px; width: auto; }
	.ahh-hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
	.ahh-role, .ahh-bio { margin-inline: auto; }
	.ahh-bio { font-size: 15.5px; line-height: 1.95; }
	.ahh-search { width: 100%; }
	.ahh-cta { justify-content: center; }
}

/* stats: a ring fills, the icon draws itself, the number counts up */
.ahh-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(40px, 5vw, 60px); background: linear-gradient(160deg, var(--ahh-deep), #12301f); border-block: 1px solid rgba(220, 188, 126, .35); }
.ahh-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--ahh-tile-band); background-size: 84px 84px; background-position: center; }
.ahh-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 0%, rgba(220, 188, 126, .16), transparent 60%); }
.ahh .ahh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .ahh .ahh-stats { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.ahh-stats li:nth-child(1) { --d: 0; } .ahh-stats li:nth-child(2) { --d: 1; } .ahh-stats li:nth-child(3) { --d: 2; } .ahh-stats li:nth-child(4) { --d: 3; }
.ahh-stats a { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; height: 100%; padding: 26px 14px 22px; overflow: hidden; background: var(--c-white, #fff); border: 1px solid var(--ahh-line-soft); border-radius: 22px; box-shadow: var(--ahh-shadow); transition: transform .45s var(--ahh-ease), box-shadow .45s, border-color .45s; }
.ahh-stats a::after { content: ""; position: absolute; inset-inline: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--ahh-gold), var(--ahh-green)); transform: scaleX(1); transition: transform 1s var(--ahh-ease); transition-delay: calc(var(--d, 0) * 150ms + 700ms); }
.ahh-stats a::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(169, 133, 69, .12), transparent 60%); opacity: 0; transition: opacity .45s; }
.ahh-stats a:hover { transform: translateY(-6px); box-shadow: var(--ahh-shadow-up); border-color: rgba(169, 133, 69, .5); }
.ahh-stats a:hover::before { opacity: 1; }
.ahh-stat-ico { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 10px; }
.ahh .ahh-ring { position: absolute; inset: 0; width: 80px; height: 80px; transform: rotate(-90deg); }
.ahh-ring circle { fill: none; stroke-width: 2.5; }
.ahh-ring-bg { stroke: var(--ahh-line-soft); }
.ahh-ring-fg { stroke: var(--ahh-gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ahh-ease), stroke .4s; transition-delay: calc(var(--d, 0) * 150ms + 150ms), 0s; }
.ahh-stat-disc { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--ahh-green), var(--ahh-deep)); box-shadow: 0 8px 18px -6px rgba(26, 66, 50, .55), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .5s var(--ahh-ease), box-shadow .5s; }
.ahh-stat-disc::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--ahh-gold); opacity: 0; }
.ahh .ahh-draw { width: 32px; height: 32px; }
.ahh-draw path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s ease; transition-delay: calc(var(--d, 0) * 150ms + 450ms); }
.ahh-stats a:hover .ahh-stat-disc { transform: scale(1.08) rotate(-6deg); box-shadow: 0 14px 26px -8px rgba(26, 66, 50, .6); }
.ahh-stats a:hover .ahh-stat-disc::after { animation: ahh-ping 1.4s var(--ahh-ease) infinite; }
.ahh-stats a:hover .ahh-ring-fg { stroke: var(--ahh-green); }
.ahh-stat-n { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.15; color: var(--ahh-ink); font-variant-numeric: tabular-nums; transition: color .4s; }
.ahh-stats a:hover .ahh-stat-n { color: var(--ahh-green); }
.ahh-stat-l { font-size: 14px; font-weight: 600; color: var(--ahh-ink-3); line-height: 1.5; }
/* on the dark band: glass cards, a gold disc, white numbers */
.ahh-band .ahh-stats a { background: rgba(255, 255, 255, .05); border-color: rgba(220, 188, 126, .22); box-shadow: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ahh-band .ahh-stats a:hover { background: rgba(255, 255, 255, .09); border-color: var(--ahh-gold-dark); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
.ahh-band .ahh-ring-bg { stroke: rgba(255, 255, 255, .12); }
.ahh-band .ahh-ring-fg { stroke: var(--ahh-gold-dark); }
.ahh-band .ahh-stats a:hover .ahh-ring-fg { stroke: #fff; }
.ahh-band .ahh-stat-disc { color: var(--ahh-deep); background: linear-gradient(145deg, #e8cf9c, var(--ahh-gold)); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
.ahh-band .ahh-stat-n { color: #fff; }
.ahh-band .ahh-stats a:hover .ahh-stat-n { color: var(--ahh-gold-dark); }
.ahh-band .ahh-stat-l { color: rgba(255, 255, 255, .72); }
.ahh-band .ahh-stats a::after { background: linear-gradient(90deg, transparent, var(--ahh-gold-dark), transparent); }
@media (max-width: 479px) { .ahh-stats a { padding: 20px 10px 18px; } .ahh-stat-ico { width: 68px; height: 68px; } .ahh .ahh-ring { width: 68px; height: 68px; } .ahh-stat-disc { width: 52px; height: 52px; } .ahh .ahh-draw { width: 27px; height: 27px; } .ahh-stat-l { font-size: 13px; } }

/* before the row is seen: the ring empty, the strokes undrawn, the bar folded.
   These are fills and strokes, not movement, so they run under reduced motion too. */
.ahh-js .ahh-stats:not(.is-in) .ahh-ring-fg, .ahh-js .ahh-stats:not(.is-in) .ahh-draw path { stroke-dashoffset: 1; }
.ahh-js .ahh-stats:not(.is-in) a::after { transform: scaleX(0); }
.ahh-js .ahh-stats.is-in .ahh-stat-disc { animation: ahh-pop-in .8s var(--ahh-ease) both; animation-delay: calc(var(--d, 0) * 150ms + 100ms); }

/* ----------------------------------------------------------------- books */

.ahh-books { background: var(--c-white, #fff); }
.ahh-tabs { position: relative; display: flex; gap: 4px; padding: 5px; margin-bottom: 28px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--ahh-paper); border: 1px solid var(--ahh-line-soft); border-radius: 999px; }
.ahh-tabs::-webkit-scrollbar { display: none; }
.ahh .ahh-tabs .ahh-tab { position: relative; z-index: 1; flex: none; padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ahh-ink-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: color .3s; }
.ahh .ahh-tabs .ahh-tab:hover { color: var(--ahh-green); background: transparent; }
.ahh .ahh-tabs .ahh-tab[aria-selected="true"] { color: #fff; }
.ahh-tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ahh-green); box-shadow: 0 4px 12px rgba(46, 110, 81, .3); transition: left .45s var(--ahh-ease), width .45s var(--ahh-ease); }
.ahh:not(.is-ready) .ahh-tab-ink { display: none; }
.ahh:not(.is-ready) .ahh-tabs .ahh-tab[aria-selected="true"] { background: var(--ahh-green); }

.ahh-shelf { position: relative; animation: ahh-fade .5s var(--ahh-ease); }
.ahh-shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 16px) / 2.3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 16px 4px 40px; margin: -16px -4px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.ahh-shelf-row::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .ahh-shelf-row { grid-auto-columns: calc((100% - 3 * 20px) / 3.4); gap: 20px; } }
@media (min-width: 900px) { .ahh-shelf-row { grid-auto-columns: calc((100% - 4 * 24px) / 5); gap: 24px; } }
@media (min-width: 1100px) { .ahh-shelf-row { grid-auto-columns: calc((100% - 5 * 24px) / 6); } }
.ahh-book { scroll-snap-align: start; }
.ahh-book a { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.ahh-cover { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--ahh-cream); box-shadow: -1px 0 0 rgba(0, 0, 0, .06), 0 10px 18px -8px rgba(20, 35, 28, .35), 0 2px 4px rgba(20, 35, 28, .1); transform-origin: right center; transform: perspective(1000px) rotateY(0deg); transition: transform .5s var(--ahh-ease), box-shadow .5s var(--ahh-ease); }
.ahh-cover::before { content: ""; position: absolute; inset-block: 0; right: 0; width: 7%; z-index: 2; background: linear-gradient(to left, rgba(0, 0, 0, .22), rgba(255, 255, 255, .18) 40%, rgba(0, 0, 0, .05)); }
.ahh-cover .ahh-cover-img { width: 100%; height: 100%; object-fit: cover; }
.ahh-cover-blank { display: grid; place-items: center; height: 100%; padding: 14px; text-align: center; font-family: var(--ahh-serif); font-size: 18px; color: var(--ahh-gold-dark); background: var(--ahh-deep); }
.ahh-cover-shine { position: absolute; inset: 0; z-index: 3; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(100%); transition: transform .9s var(--ahh-ease); }
.ahh-book a:hover .ahh-cover, .ahh-book a:focus-visible .ahh-cover { transform: perspective(1000px) rotateY(-16deg) translateY(-8px); box-shadow: -1px 0 0 rgba(0, 0, 0, .06), 18px 22px 30px -12px rgba(20, 35, 28, .45); }
.ahh-book a:hover .ahh-cover-shine { transform: translateX(-100%); }
.ahh-badge { align-self: flex-start; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ahh-badge.is-printed { background: var(--ahh-tint); color: var(--ahh-green); }
.ahh-badge.is-set { background: var(--ahh-gold-tint); color: var(--ahh-gold-text); }
.ahh-badge.is-draft { background: var(--ahh-line-soft); color: var(--ahh-ink-2); }
.ahh-book-title { font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ahh-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s; }
.ahh-book a:hover .ahh-book-title { color: var(--ahh-green); }
.ahh-book-meta { font-size: 12.5px; color: var(--ahh-ink-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.ahh .ahh-shelf .ahh-nav { position: absolute; top: calc(50% - 60px); z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ahh-line); border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ahh-ink); box-shadow: var(--ahh-shadow); cursor: pointer; transition: opacity .3s, transform .3s var(--ahh-ease), background .3s, color .3s; }
.ahh .ahh-shelf .ahh-nav:hover { background: var(--ahh-green); color: #fff; border-color: var(--ahh-green); }
.ahh .ahh-shelf .ahh-nav[disabled] { opacity: 0; pointer-events: none; transform: scale(.8); }
.ahh .ahh-shelf .ahh-nav.is-prev { right: -14px; }
.ahh .ahh-shelf .ahh-nav.is-next { left: -14px; }
@media (hover: none), (max-width: 599px) { .ahh .ahh-shelf .ahh-nav { display: none; } }

/* -------------------------------------------------------------- research */

.ahh-research { background: var(--ahh-sage); }
.ahh-mag { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 960px) { .ahh-mag { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; } .ahh-mag.is-solo { grid-template-columns: minmax(0, 1fr); } }
.ahh-mag.is-solo .ahh-lead { max-width: 820px; }
.ahh-day-tag.is-quiet { background: color-mix(in srgb, var(--tone, var(--ahh-green)) 12%, transparent); color: var(--tone, var(--ahh-green)); }
.ahh-day-tag.is-quiet .ahh-i { animation: none; }

.ahh-lead { --tone: var(--ahh-green); position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--c-white, #fff); border: 1px solid var(--ahh-line-soft); border-radius: 24px; box-shadow: var(--ahh-shadow); transition: box-shadow .4s, transform .4s var(--ahh-ease); }
.ahh-lead:hover { box-shadow: var(--ahh-shadow-up); transform: translateY(-3px); }
.ahh-lead-art { position: relative; height: clamp(140px, 18vw, 190px); overflow: hidden; background: var(--tone); background-image: radial-gradient(circle at 20% 120%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(135deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .25)); color: rgba(255, 255, 255, .9); }
.ahh-lead-star { position: absolute; width: 260px; height: 260px; left: -40px; top: -60px; opacity: .3; animation: ahh-spin 60s linear infinite; }
.ahh-lead-glyph { position: absolute; right: 28px; bottom: 22px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .5s var(--ahh-ease); }
.ahh-lead:hover .ahh-lead-glyph { transform: rotate(-8deg) scale(1.08); }
.ahh-lead-glyph .ahh-i { width: 32px; height: 32px; }
.ahh-lead-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 3vw, 32px); }
.ahh-bab { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--tone); }
.ahh-bab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ahh .ahh-lead-title { font-family: var(--ahh-serif); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.45; color: var(--ahh-ink); }
.ahh-lead-title a { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ahh-ease), color .3s; }
.ahh-lead-title a:hover { background-size: 100% 1.5px; color: var(--tone); }
.ahh-lead-dek { font-size: 16px; color: var(--ahh-ink-2); }

.ahh-list { padding: 20px; background: var(--c-white, #fff); border: 1px solid var(--ahh-line-soft); border-radius: 24px; box-shadow: var(--ahh-shadow); }
.ahh-list ol { counter-reset: none; }
.ahh-list li { --tone: var(--ahh-green); }
.ahh-list li + li { border-top: 1px dashed var(--ahh-line); }
.ahh-list li a { display: flex; gap: 14px; padding: 14px 6px; border-radius: 12px; transition: background .3s, padding .3s var(--ahh-ease); }
.ahh-list li a:hover { background: var(--ahh-paper); padding-inline-start: 12px; }
.ahh-list-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; font-size: 16px; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); transition: background .3s, color .3s; }
.ahh-list li a:hover .ahh-list-n { background: var(--tone); color: #fff; }
.ahh-list-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ahh-list-bab { font-size: 12.5px; font-weight: 800; color: var(--tone); }
.ahh-list-title { font-family: var(--ahh-serif); font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--ahh-ink); }
.ahh-list .ahh-meta { font-size: 13px; }

/* --------------------------------------------------------- filter rails */

/* One row of tabs in a pill track; a sliding pill marks the chosen one. It
   scrolls sideways when it outgrows the column, with arrows and faded ends. */
.ahh-rail { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: clamp(22px, 3vw, 30px); }
.ahh .ahh-rail-track { position: relative; display: flex; gap: 2px; min-width: 0; max-width: 100%; padding: 5px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--c-white, #fff); border: 1px solid var(--ahh-line-soft); border-radius: 999px; box-shadow: 0 1px 2px rgba(20, 35, 28, .05); }
.ahh-rail-track::-webkit-scrollbar { display: none; }
.ahh-rail.has-prev .ahh-rail-track { -webkit-mask-image: linear-gradient(to left, transparent, #000 48px); mask-image: linear-gradient(to left, transparent, #000 48px); }
.ahh-rail.has-next .ahh-rail-track { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px); mask-image: linear-gradient(to right, transparent, #000 48px); }
.ahh-rail.has-prev.has-next .ahh-rail-track { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.ahh .ahh-rail .ahh-chip { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ahh-ink-2); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap; cursor: pointer; transition: color .35s; }
.ahh .ahh-rail .ahh-chip:hover { color: var(--ahh-green); background: transparent; }
.ahh .ahh-rail .ahh-chip small { min-width: 26px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 800; text-align: center; color: var(--ahh-ink-3); background: var(--ahh-paper); transition: background .35s, color .35s; }
.ahh .ahh-rail .ahh-chip[aria-selected="true"] { color: #fff; }
.ahh .ahh-rail .ahh-chip[aria-selected="true"] small { color: #fff; background: rgba(255, 255, 255, .18); }
.ahh-rail-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ahh-green); box-shadow: 0 4px 12px rgba(46, 110, 81, .3); transition: left .5s var(--ahh-ease), width .5s var(--ahh-ease); }
.ahh:not(.is-ready) .ahh-rail-ink { display: none; }
.ahh:not(.is-ready) .ahh-rail .ahh-chip[aria-selected="true"] { background: var(--ahh-green); }
.ahh .ahh-rail .ahh-rail-nav { flex: none; display: none; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ahh-line); border-radius: 50%; background: var(--c-white, #fff); color: var(--ahh-ink); cursor: pointer; transition: opacity .3s, background .3s, color .3s, border-color .3s; }
.ahh .ahh-rail.is-over .ahh-rail-nav { display: grid; }
.ahh .ahh-rail .ahh-rail-nav:hover { background: var(--ahh-green); border-color: var(--ahh-green); color: #fff; }
.ahh .ahh-rail .ahh-rail-nav[disabled] { opacity: .35; pointer-events: none; }
.ahh .ahh-rail-nav .ahh-i { width: 16px; height: 16px; }
@media (hover: none) { .ahh .ahh-rail.is-over .ahh-rail-nav { display: none; } }

/* on the dark bands the track is glass and the pill is gold */
.ahh-fatwas .ahh-rail-track, .ahh-media .ahh-rail-track { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.ahh .ahh-fatwas .ahh-rail .ahh-chip, .ahh .ahh-media .ahh-rail .ahh-chip { color: rgba(255, 255, 255, .82); }
.ahh .ahh-fatwas .ahh-rail .ahh-chip:hover, .ahh .ahh-media .ahh-rail .ahh-chip:hover { color: var(--ahh-gold-dark); }
.ahh .ahh-fatwas .ahh-rail .ahh-chip small, .ahh .ahh-media .ahh-rail .ahh-chip small { color: var(--ahh-gold-dark); background: rgba(255, 255, 255, .08); }
.ahh .ahh-fatwas .ahh-rail .ahh-chip[aria-selected="true"], .ahh .ahh-media .ahh-rail .ahh-chip[aria-selected="true"] { color: var(--ahh-deep); }
.ahh .ahh-fatwas .ahh-rail .ahh-chip[aria-selected="true"] small, .ahh .ahh-media .ahh-rail .ahh-chip[aria-selected="true"] small { color: var(--ahh-deep); background: rgba(26, 66, 50, .14); }
.ahh-fatwas .ahh-rail-ink, .ahh-media .ahh-rail-ink { background: var(--ahh-gold-dark); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.ahh:not(.is-ready) .ahh-fatwas .ahh-rail .ahh-chip[aria-selected="true"], .ahh:not(.is-ready) .ahh-media .ahh-rail .ahh-chip[aria-selected="true"] { background: var(--ahh-gold-dark); }
.ahh .ahh-fatwas .ahh-rail .ahh-rail-nav, .ahh .ahh-media .ahh-rail .ahh-rail-nav { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
.ahh .ahh-fatwas .ahh-rail .ahh-rail-nav:hover, .ahh .ahh-media .ahh-rail .ahh-rail-nav:hover { background: var(--ahh-gold-dark); border-color: var(--ahh-gold-dark); color: var(--ahh-deep); }

/* the panes the rail switches; the box eases to each one's height */
.ahh-panes { position: relative; }
.ahh-panes.is-moving { overflow: hidden; }
.ahh-pane:focus { outline: none; }
.ahh-pane:focus-visible { outline: 2px solid var(--ahh-gold); outline-offset: 6px; border-radius: 16px; }
.ahh-pane-foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.ahh-pane-foot .ahh-link { padding: 10px 18px; border-radius: 999px; background: var(--c-white, #fff); border: 1px solid var(--ahh-line-soft); box-shadow: 0 1px 2px rgba(20, 35, 28, .05); }
.ahh-fatwas .ahh-pane-foot .ahh-link, .ahh-media .ahh-pane-foot .ahh-link { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--ahh-gold-dark); box-shadow: none; }

/* ---------------------------------------------------------------- fatwas */

.ahh-fatwas { background: var(--ahh-deep); color: #fff; isolation: isolate; overflow: hidden; }
.ahh-pattern { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 85% 0%, rgba(220, 188, 126, .16), transparent 55%); }
.ahh-pattern::before { content: ""; position: absolute; top: -120px; left: -120px; right: 0; bottom: 0; background-image: var(--ahh-tile-dark); background-size: 120px 120px; animation: ahh-pan2 110s linear infinite; will-change: transform; }
.ahh-fatwas .ahh-kicker { color: var(--ahh-gold-dark); }
.ahh-fatwas .ahh-title { color: #fff; }
.ahh-fatwas .ahh-desc { color: rgba(255, 255, 255, .72); }
.ahh-fatwas .ahh-more { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.ahh-fatwas .ahh-more:hover { background: #fff; color: var(--ahh-deep); border-color: #fff; }

.ahh-qa-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 960px) { .ahh-qa-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; } }

.ahh-fday { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 34px); overflow: hidden; color: var(--ahh-ink); background: var(--ahh-paper); border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); }
.ahh-fday::before { content: "؟"; position: absolute; left: 18px; top: -30px; font-family: var(--ahh-serif); font-size: 200px; line-height: 1; color: var(--ahh-gold); opacity: .1; pointer-events: none; }
.ahh-fday-star { position: absolute; width: 160px; height: 160px; left: -50px; bottom: -50px; color: var(--ahh-gold); opacity: .18; animation: ahh-spin 60s linear infinite; pointer-events: none; }
.ahh .ahh-fday-title { font-family: var(--ahh-serif); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.5; position: relative; }
.ahh-fday-title a:hover { color: var(--ahh-green); }
.ahh-fday-q, .ahh-fday-a { position: relative; padding: 14px 16px; border-radius: 14px; font-size: 15.5px; }
.ahh-fday-q { background: var(--ahh-cream); }
.ahh-fday-a { background: var(--ahh-tint); border-inline-start: 3px solid var(--ahh-green); }
.ahh-fday-l { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 800; color: var(--ahh-gold-text); }
.ahh-fday-a .ahh-fday-l { color: var(--ahh-green); }
.ahh-fday .ahh-lead-foot { position: relative; }

.ahh-acc .ahh-list-head { color: rgba(255, 255, 255, .8); }
.ahh-acc-item { margin-top: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; transition: background .3s, border-color .3s; }
.ahh-acc-item:hover { background: rgba(255, 255, 255, .09); }
.ahh-acc-item[open] { background: rgba(255, 255, 255, .1); border-color: rgba(220, 188, 126, .45); }
.ahh-acc-item summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.ahh-acc-item summary::-webkit-details-marker { display: none; }
.ahh-acc-no { flex: none; display: grid; place-items: center; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--ahh-deep); background: var(--ahh-gold-dark); }
.ahh-acc-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ahh-acc-bab { font-size: 12.5px; font-weight: 700; color: var(--ahh-gold-dark); }
.ahh-acc-title { font-size: 16.5px; font-weight: 700; line-height: 1.5; color: #fff; }
.ahh-acc-x { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); transition: transform .4s var(--ahh-ease), background .3s; }
.ahh-acc-x::before, .ahh-acc-x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: #fff; transform: translate(-50%, -50%); transition: transform .4s var(--ahh-ease); }
.ahh-acc-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.ahh-acc-item[open] .ahh-acc-x { transform: rotate(180deg); background: var(--ahh-gold-dark); border-color: var(--ahh-gold-dark); }
.ahh-acc-item[open] .ahh-acc-x::before, .ahh-acc-item[open] .ahh-acc-x::after { background: var(--ahh-deep); }
.ahh-acc-item[open] .ahh-acc-x::after { transform: translate(-50%, -50%) rotate(0deg); }
.ahh-acc-body { overflow: hidden; }
.ahh-acc-in { padding: 0 16px 16px; padding-inline-start: 74px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .82); }
@media (max-width: 599px) { .ahh-acc-in { padding-inline-start: 16px; } }
.ahh-acc-in b { color: var(--ahh-gold-dark); }
.ahh-acc-in .ahh-link { color: var(--ahh-gold-dark); align-self: flex-start; }


/* ------------------------------------------------------------------ news */

.ahh-news { background: var(--ahh-cream); }
.ahh-tl-wrap { position: relative; }
.ahh .ahh-tl { position: relative; display: flex; flex-direction: column; gap: 28px; padding-inline-start: 34px; }
.ahh-tl-line { position: absolute; top: 6px; bottom: 6px; right: 9px; width: 2px; border-radius: 2px; background: var(--ahh-line); overflow: hidden; }
.ahh-tl-fill { position: absolute; inset-inline: 0; top: 0; height: 100%; background: linear-gradient(var(--ahh-gold), var(--ahh-green)); transform-origin: top; transform: scaleY(var(--p, 1)); }
.ahh-js .ahh-tl-fill { transform: scaleY(var(--p, 0)); }
.ahh-tl-item { position: relative; }
.ahh-tl-item::before { content: ""; position: absolute; top: 6px; right: -31px; width: 14px; height: 14px; border-radius: 50%; background: var(--ahh-cream); border: 3px solid var(--ahh-gold); box-shadow: 0 0 0 5px var(--ahh-cream); transition: background .4s, border-color .4s, transform .4s var(--ahh-ease); }
.ahh-tl-item.is-in::before { background: var(--ahh-green); border-color: var(--ahh-green); }
.ahh-tl-item:hover::before { transform: scale(1.3); }
.ahh-tl-year { display: inline-block; margin-bottom: 10px; padding: 2px 12px; border-radius: 999px; background: var(--ahh-deep); color: var(--ahh-gold-dark); font-size: 14px; font-weight: 800; }
.ahh-tl-card { display: grid; grid-template-columns: 1fr; overflow: hidden; background: var(--c-white, #fff); border-radius: 20px; box-shadow: var(--ahh-shadow); transition: transform .4s var(--ahh-ease), box-shadow .4s; }
.ahh-tl-card:hover { transform: translateY(-4px); box-shadow: var(--ahh-shadow-up); }
@media (min-width: 640px) and (max-width: 1024px) { .ahh-tl-card { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); } .ahh-tl-media { aspect-ratio: auto; min-height: 100%; } }
.ahh-tl-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ahh-deep); }
.ahh-tl-media .ahh-tl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ahh-ease); }
.ahh-tl-card:hover .ahh-tl-img { transform: scale(1.06); }
.ahh-tl-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.ahh-tl-kicker { font-size: 13px; font-weight: 700; color: var(--ahh-gold-text); }
.ahh-tl-title { font-size: 18px; font-weight: 800; line-height: 1.5; color: var(--ahh-ink); transition: color .3s; }
.ahh-tl-card:hover .ahh-tl-title { color: var(--ahh-green); }
.ahh-tl-dek { font-size: 14.5px; color: var(--ahh-ink-2); }
.ahh-tl .ahh-meta { margin-top: 4px; font-size: 13px; }

/* two columns on a wide screen, the line down the middle */
@media (min-width: 1025px) {
	.ahh .ahh-tl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; row-gap: 40px; padding-inline-start: 0; }
	.ahh-tl-line { right: calc(50% - 1px); }
	.ahh-tl-item:nth-child(even) { margin-top: 120px; }
	.ahh-tl-item:nth-child(odd)::before { right: auto; left: -55px; }
	.ahh-tl-item:nth-child(even)::before { right: -55px; }
	.ahh-tl-item { display: flex; flex-direction: column; align-items: flex-start; }
	.ahh-tl-item .ahh-tl-card { align-self: stretch; }
	.ahh-tl-item:nth-child(odd) { align-items: flex-end; }
}

/* ----------------------------------------------------------------- media */

.ahh-media { background: var(--ahh-studio); color: var(--ahh-studio-text); isolation: isolate; }
.ahh-media::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(ellipse at 15% 0%, rgba(220, 188, 126, .1), transparent 50%), var(--ahh-tile-studio); background-size: auto, 120px 120px; }
.ahh-media .ahh-kicker { color: var(--ahh-gold-dark); }
.ahh-media .ahh-title { color: #fff; }
.ahh-media .ahh-desc { color: var(--ahh-studio-text-2); }
.ahh-media .ahh-more { background: transparent; color: #fff; border-color: var(--ahh-studio-line); }
.ahh-media .ahh-more:hover { background: var(--ahh-gold-dark); color: var(--ahh-studio); border-color: var(--ahh-gold-dark); }
.ahh-bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .ahh-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .ahh-bento { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(200px, auto)); } .ahh-show.is-wide { grid-row: span 2; } .ahh-show:last-child { grid-column: span 2; } }
.ahh-show a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; overflow: hidden; border-radius: 22px; background: var(--ahh-studio-2); border: 1px solid var(--ahh-studio-line); isolation: isolate; transition: transform .4s var(--ahh-ease), border-color .4s; }
.ahh-show a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at var(--mx, 80%) var(--my, 0%), rgba(220, 188, 126, .22), transparent 55%); opacity: 0; transition: opacity .4s; }
.ahh-show a:hover { transform: translateY(-4px); border-color: rgba(220, 188, 126, .5); }
.ahh-show a:hover::before { opacity: 1; }
.ahh-show.is-wide a { background: linear-gradient(160deg, var(--ahh-deep), #10291f); justify-content: flex-end; min-height: 300px; }
.ahh-show-n { position: absolute; left: 20px; top: 8px; font-size: 72px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .05); transition: color .4s; }
.ahh-show.is-wide .ahh-show-n { font-size: 160px; top: 0; }
.ahh-show a:hover .ahh-show-n { color: rgba(220, 188, 126, .14); }
.ahh-show-i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: auto; border-radius: 14px; background: rgba(255, 255, 255, .07); color: var(--ahh-gold-dark); }
.ahh-show-i .ahh-i { width: 24px; height: 24px; }
.ahh-show.is-wide .ahh-show-i { margin-bottom: auto; }
.ahh-show-kicker { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--ahh-gold-dark); }
.ahh-show-title { font-size: 22px; font-weight: 800; line-height: 1.35; color: #fff; }
.ahh-show.is-wide .ahh-show-title { font-size: clamp(26px, 3vw, 34px); }
.ahh-show-desc { font-size: 14.5px; color: var(--ahh-studio-text-2); }
.ahh-show-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ahh-studio-text); }
.ahh-play { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ahh-gold-dark); color: var(--ahh-studio); }
.ahh-play .ahh-i { width: 16px; height: 16px; fill: currentColor; margin-inline-end: -2px; }
.ahh-play::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ahh-gold-dark); opacity: 0; }
.ahh-show a:hover .ahh-play::after { animation: ahh-ping 1.4s var(--ahh-ease) infinite; }

/* ------------------------------------------------------------------- ask */

.ahh-ask { position: relative; isolation: isolate; padding-block: clamp(64px, 8vw, 108px); background: linear-gradient(180deg, #f6efe0, var(--ahh-gold-tint)); }
.ahh-ask::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--ahh-tile-light); background-size: 96px 96px; opacity: .8; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 85%); mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 85%); }
.ahh-ask-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); overflow: hidden; border-radius: 28px; color: #fff; background: linear-gradient(120deg, var(--ahh-green), var(--ahh-deep) 70%); box-shadow: 0 30px 60px -24px rgba(26, 66, 50, .55); isolation: isolate; }
.ahh-ask-star { position: absolute; z-index: -1; width: 340px; height: 340px; left: -90px; top: -120px; color: var(--ahh-gold-dark); opacity: .3; animation: ahh-spin 70s linear infinite; }
.ahh-ask-text { max-width: 600px; }
.ahh-ask .ahh-kicker { color: var(--ahh-gold-dark); }
.ahh .ahh-ask-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.35; color: #fff; }
.ahh-ask-desc { margin-top: 8px; color: rgba(255, 255, 255, .8); }
.ahh-ask-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .ahh-ask-cta .ahh-btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------- motion */

/* Gentle motion runs for everyone, also under reduced motion: things rise a
   little and fade in, panes slide a step, the seams draw themselves. Only
   the ambient drift (panning tiles, floating glows, turning stars) stops
   there. */
.ahh-in { animation: ahh-rise .9s var(--ahh-ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }

.ahh-js .ahh [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ahh-ease), transform .8s var(--ahh-ease); }
.ahh-js .ahh [data-r].is-in { opacity: 1; transform: none; }
.ahh-js .ahh-stats[data-r] li, .ahh-js .ahh-panes[data-r] .ahh-list li, .ahh-js .ahh-panes[data-r] .ahh-acc-item, .ahh-js .ahh-panes[data-r] .asvh-list li { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ahh-ease), transform .6s var(--ahh-ease); transition-delay: calc(var(--d, 0) * 70ms + 150ms); }
.ahh-js .ahh-panes[data-r] .asvh-list li:nth-child(2) { --d: 1; } .ahh-js .ahh-panes[data-r] .asvh-list li:nth-child(3) { --d: 2; } .ahh-js .ahh-panes[data-r] .asvh-list li:nth-child(4) { --d: 3; }
.ahh-js .ahh [data-r].is-in li, .ahh-js .ahh-panes[data-r].is-in .ahh-acc-item { opacity: 1; transform: none; }
.ahh-js .ahh-shelf[data-r] .ahh-book { opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ahh-ease), transform .6s var(--ahh-ease); transition-delay: calc(var(--d, 0) * 70ms); }
.ahh-js .ahh-shelf[data-r].is-in .ahh-book { opacity: 1; transform: none; }
.ahh-js .ahh-tl-item[data-r]:nth-child(odd) { transform: translateX(36px); }
.ahh-js .ahh-tl-item[data-r]:nth-child(even) { transform: translateX(-36px); }
@media (max-width: 1024px) { .ahh-js .ahh-tl-item[data-r]:nth-child(n) { transform: translateY(28px); } }
.ahh-js .ahh-tl-item[data-r].is-in { transform: none; }

/* the seam: the rules draw out from the medallion as it turns into place */
.ahh-js .ahh .ahh-div[data-r] { opacity: 1; transform: none; }
.ahh-div-line { transition: transform 1.1s var(--ahh-ease) .2s; }
.ahh-div-medal { transition: transform 1s var(--ahh-ease), opacity .6s; }
.ahh-js .ahh-div[data-r]:not(.is-in) .ahh-div-line { transform: scaleX(0); }
.ahh-js .ahh-div[data-r]:not(.is-in) .ahh-div-medal { opacity: 0; transform: scale(.5) rotate(-90deg); }
.ahh-div-medal:hover .ahh-div-star { transform: rotate(45deg); }
.ahh-div-star { transition: transform .8s var(--ahh-ease); }

@keyframes ahh-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ahh-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ahh-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ahh-spin { to { transform: rotate(360deg); } }
@keyframes ahh-pan { to { transform: translate3d(96px, 96px, 0); } }
@keyframes ahh-pan2 { to { transform: translate3d(120px, 120px, 0); } }
@keyframes ahh-float { 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes ahh-bob { 50% { transform: translateY(-10px); } }
@keyframes ahh-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes ahh-pop-in { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ahh-ping { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.ahh-hero-bg::before, .ahh-pattern::before, .ahh-glow, .ahh-lead-star, .ahh-fday-star, .ahh-ask-star, .ahh-day-tag .ahh-i,
	.ahh-stats a:hover .ahh-stat-disc::after, .ahh-show a:hover .ahh-play::after { animation: none !important; }
}
