/* ==========================================================================
   Homepage
   ========================================================================== */

/* ---------- Hero ---------- */
.dh-hero{position:relative;overflow:hidden;margin:12px;padding:150px var(--gutter) 200px;border-radius:28px;color:#F8F4EB;text-align:center;
	background:
		radial-gradient(ellipse 46% 42% at 50% 46%,rgba(186,222,222,.18),transparent 70%),
		linear-gradient(165deg,#072F31 0%,#0B4A4B 40%,#0A6464 80%,#007E7E 100%)}
[data-theme="dark"] .dh-hero{background:radial-gradient(ellipse 46% 42% at 50% 46%,rgba(186,222,222,.12),transparent 70%),linear-gradient(165deg,#041d1e 0%,#082f30 45%,#0a4748 100%)}
.dh-hero__center{position:relative;max-width:760px;margin:0 auto}
.dh-hero__today{margin:0;font:600 .78rem/1.3 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--glint)}
.dh-hero__date{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 14px;margin:10px 0 0;font:500 1.02rem/1.4 var(--sans);color:#F8F4EB}
.dh-hero__date span{white-space:nowrap}
.dh-hero__date i{width:5px;height:5px;border-radius:50%;background:var(--rim)}
.dh-hero__title{margin:38px auto 0;font-size:0;line-height:0}
.dh-hero__logo{width:min(600px,88%);height:auto;margin:0 auto;filter:drop-shadow(0 8px 26px rgba(0,0,0,.2))}

/* ---------- Bookstore shelf (overlaps the hero) ---------- */
.dh-shelf{position:relative;z-index:2;margin:-150px auto 0;width:min(960px,100% - 2*var(--gutter))}
.dh-shelf__card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px 40px;align-items:center;padding:28px 34px;border-radius:24px;background:var(--paper);box-shadow:var(--shadow-lg)}
[data-theme="dark"] .dh-shelf__card{background:var(--surface)}
.dh-shelf__books{position:relative;display:flex;align-items:flex-end;gap:10px;padding:0 8px 9px;border-bottom:3px solid var(--teal)}
.dh-shelf__books::after{content:"";position:absolute;left:-12px;right:-12px;bottom:-10px;height:7px;border-radius:0 0 8px 8px;background:linear-gradient(var(--paper-2),transparent)}
.dh-shelf__book{width:90px;height:auto;border-radius:3px 6px 6px 3px;box-shadow:inset 3px 0 0 rgba(255,255,255,.22),0 8px 16px rgba(7,47,49,.24);transition:transform .25s ease}
.dh-shelf__book--2{width:100px}
.dh-shelf__book--3{width:94px}
.dh-shelf__books:hover .dh-shelf__book{transform:translateY(-3px)}
.dh-shelf__title{font-size:clamp(1.5rem,2.4vw,1.85rem);line-height:1.15}
.dh-shelf__lead{margin:.5rem 0 0;color:var(--text)}
.dh-shelf .dh-actions{margin-top:1.1rem}

/* ---------- Picture sections ---------- */
.dh-pics{position:relative;padding:var(--section) 0;background:var(--paper)}
.dh-pics:first-of-type{padding-top:calc(var(--section) + 10px)}
.dh-pics--mist{background:var(--mist)}
.dh-pics__grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.6fr);gap:clamp(28px,5vw,64px);align-items:center}
.dh-pics--flip .dh-pics__grid{grid-template-columns:minmax(0,1.6fr) minmax(0,.82fr)}
.dh-pics--flip .dh-pics__intro{order:2}
.dh-pics__head{display:flex;align-items:center;gap:16px}
.dh-pics__title{margin:18px 0 12px;font-size:clamp(2.1rem,3.8vw,2.9rem);line-height:1.04;letter-spacing:-.02em}
.dh-pics__lead{max-width:40ch;margin:0;color:var(--text)}
.dh-pics__prints{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}

/* ---------- Explore our resources ---------- */
.dh-explore{padding:var(--section) 0}
.dh-explore__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px 40px;margin-bottom:32px}
.dh-explore__head .dh-section-intro{margin:0}
.dh-explore__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.dh-resource{display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:var(--surface);box-shadow:0 0 0 1px var(--line);color:inherit;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease}
.dh-resource:hover{transform:translateY(-3px);box-shadow:0 0 0 1px var(--line),0 18px 40px rgba(7,47,49,.12);color:inherit}
.dh-resource__art{display:grid;place-items:center;height:210px;background:var(--mist)}
.dh-resource__frame{position:relative;display:grid;place-items:center;width:152px;height:152px;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 3px var(--teal),0 10px 26px rgba(7,47,49,.12)}
.dh-resource__frame::after{content:"";position:absolute;width:44px;height:8px;border-radius:4px;background:var(--teal);right:-30px;bottom:8px;transform:rotate(45deg)}
.dh-resource__icon{width:66px;height:66px;stroke-width:1.15;color:var(--teal)}
.dh-resource__drawing{width:100px}
.dh-resource__frame--books{display:flex;align-items:flex-end;justify-content:center;gap:5px;padding-bottom:40px}
.dh-resource__book{width:36px;height:auto;border-radius:2px 3px 3px 2px;box-shadow:0 4px 9px rgba(7,47,49,.28)}
.dh-resource__book:nth-child(2){width:42px}
.dh-resource__body{display:flex;flex-direction:column;gap:8px;flex:1;padding:24px 26px 26px}
.dh-resource__body .dh-label{margin:0}
.dh-resource__title{font:500 1.7rem/1.1 var(--serif);color:var(--ink)}
.dh-resource__title .dh-ar{font-size:.9em;color:var(--teal-text);margin-inline-start:.25em}
.dh-resource__text{flex:1;color:var(--text)}
.dh-resource__go{margin-top:10px;font:600 .95rem/1.2 var(--sans);color:var(--teal-text);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px;text-decoration-color:rgba(0,126,126,.35)}

/* Al-Miftah collections */
.dh-family{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:22px}
.dh-family__card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:18px;align-items:center;padding:20px 22px;border-radius:20px;background:var(--paper-2);color:inherit;text-decoration:none;transition:background-color .2s ease}
.dh-family__card:hover{background:var(--mist);color:inherit}
.dh-family__art{width:92px}
.dh-family__art--icon{display:grid;place-items:center;height:92px}
.dh-family__body{display:flex;flex-direction:column;gap:4px}
.dh-family__body .dh-label{margin:0;font-size:.66rem}
.dh-family__title{font:500 1.12rem/1.3 var(--serif);color:var(--ink)}
.dh-family__go{font:600 .85rem/1.3 var(--sans);color:var(--teal-text)}

/* ---------- About and our websites ---------- */
.dh-about{padding:calc(var(--section) * .6) 0 var(--section);border-top:1px solid var(--line)}
.dh-about__grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(32px,6vw,80px);align-items:start}
.dh-about__text .dh-section-title{margin-bottom:1.3rem}
.dh-about__text p{max-width:62ch}
.dh-sites{padding-left:clamp(0px,4vw,48px);border-left:1px solid var(--line)}
.dh-sites__title{margin:0 0 18px;font-size:1.8rem}
.dh-site{display:block;padding:20px 22px;border-radius:18px;color:inherit;text-decoration:none;box-shadow:0 0 0 1px var(--line);background:var(--surface)}
.dh-site+.dh-site{margin-top:14px}
.dh-site:hover{box-shadow:0 0 0 1.5px var(--teal);color:inherit}
.dh-site__logo{display:grid;width:220px;margin-bottom:10px}
.dh-site__logo img{grid-area:1/1;width:100%;height:auto}
.dh-site__dark{visibility:hidden}
[data-theme="dark"] .dh-site__light{visibility:hidden}
[data-theme="dark"] .dh-site__dark{visibility:visible}
.dh-site__text{display:block;font-size:.95rem;color:var(--text)}

/* ---------- Figures ---------- */
.dh-figures{background:var(--deep);color:#F8F4EB}
.dh-figures__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-block:0;padding:0}
.dh-figures__item{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:8px;padding:38px 28px;border-left:1px solid rgba(186,222,222,.18)}
.dh-figures__item:first-child{border-left:0;padding-left:0}
.dh-figures__value{margin:0;font:500 clamp(2.6rem,5vw,3.8rem)/1 var(--serif);letter-spacing:-.02em;color:#FFFFFF}
.dh-figures__label{font:500 .95rem/1.35 var(--sans);color:var(--glint)}

/* ---------- Stay connected: a heading over one row of channels ---------- */
.dh-connect{margin:var(--section) 12px 0;padding:clamp(40px,5vw,60px) 0;border-radius:28px;background:linear-gradient(170deg,#0B4A4B,#072F31);color:var(--glint)}
.dh-connect__title{margin:0 0 30px;font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.1;color:#F8F4EB}
.dh-channels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none}
.dh-channel{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:2px 28px;border-left:1px solid rgba(186,222,222,.16)}
.dh-channel:first-child{padding-left:0;border-left:0}
.dh-channel__title{flex:1;margin:0;font-size:1.15rem;line-height:1.3;color:#F8F4EB}

/* ---------- Tablet and phone ---------- */
@media (max-width:1024px){
	.dh-channels{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:32px}
	.dh-channel:nth-child(odd){padding-left:0;border-left:0}
	.dh-figures__list{grid-template-columns:repeat(2,minmax(0,1fr))}
	.dh-figures__item:nth-child(3){border-left:0;padding-left:0}
	.dh-figures__item:nth-child(n+3){border-top:1px solid rgba(186,222,222,.18)}
	.dh-family{grid-template-columns:1fr}
}
@media (max-width:860px){
	.dh-explore__cards{grid-template-columns:1fr}
	.dh-about__grid{grid-template-columns:1fr}
	.dh-sites{padding-left:0;border-left:0}
}
@media (max-width:760px){
	.dh-hero{margin:8px;padding:116px 16px 170px;border-radius:22px}
	.dh-hero__date{font-size:.86rem;gap:4px 8px}
	.dh-hero__date i{width:4px;height:4px}
	.dh-hero__title{margin-top:30px}
	.dh-hero__logo{width:96%}
	.dh-shelf{margin-top:-130px}
	.dh-shelf__card{grid-template-columns:1fr;justify-items:center;text-align:center;padding:24px 18px}
	.dh-shelf__book{width:72px}
	.dh-shelf__book--2{width:80px}
	.dh-shelf__book--3{width:74px}
	.dh-shelf__book--4{display:none}
	.dh-shelf .dh-actions{justify-content:center}
	.dh-pics__grid,.dh-pics--flip .dh-pics__grid{grid-template-columns:1fr}
	.dh-pics--flip .dh-pics__intro{order:0}
	.dh-pics__prints{grid-template-columns:1fr;gap:18px}
	.dh-pics--posters .dh-pics__prints{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
	.dh-pics--posters .dh-poster__type{display:none}
	.dh-resource__art{height:180px}
	.dh-family__card{grid-template-columns:72px minmax(0,1fr)}
	.dh-family__art{width:72px}
	.dh-family__art--icon{height:72px}
	.dh-figures__item{padding:26px 16px}
	.dh-figures__item:nth-child(odd){padding-left:0}
	.dh-connect{margin:var(--section) 8px 0;border-radius:22px}
	.dh-channels{grid-template-columns:1fr}
	.dh-channel,.dh-channel:first-child{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 0;border-left:0;border-top:1px solid rgba(186,222,222,.16)}
	.dh-channel:first-child{border-top:0;padding-top:0}
	.dh-channel .dh-lensring{width:48px;height:48px}
	.dh-channel__title{font-size:1.05rem}
}
