/* MOH Sehha — homepage only (loaded on the front page, after theme.css). The page-level parts of the approved
   homepage, copied as they are from review/home.html <style>: numbers, data links, news timeline, reports.
   Section 0 holds the few rules where the approved homepage differs from the inner pages (inner.css). */

/* ---------- 0. Where the homepage differs from the inner pages ---------- */
/* the homepage keeps a 16px side margin at every width (inner pages: 28px from 700px, 40px from 960px); left/right
   here are the screen's edges (notches: safe-area-inset-left/right), not the reading direction */
.pv.pv--home{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
/* display settings panel: the segmented controls span the panel on the homepage */
.pv--home .pv-a11y-group .sh-seg{align-self:auto}
/* the footer sits 16px further down (review/home.html: <footer style="margin-top:16px">) */
.pv--home .sh-footer{margin-top:16px}
.pv--home .pv-fold summary::after{transition:transform var(--dur-2,260ms) ease}
.pv--home .sh-footer .pv-store{transition:background-color var(--dur-2,260ms) ease}
.pv--home .sh-footer .pv-store:hover{background:rgba(255,255,255,.18);transform:none}
/* «تسطير الروابط» leaves the homepage's cards and tiles alone (inner.css underlines every link but buttons) */
.pv--home.pv-links .pv-tl-card,.pv--home.pv-links .sh-rb-link,.pv--home.pv-links .pv-data-link,.pv--home.pv-links .sh-hotline,.pv--home.pv-links .pv-row,.pv--home.pv-links .sh-slide-cta{text-decoration:none!important}
/* the reports block's rows are the homepage's (inner.css styles the library's rows differently) */
.pv--home .pv-rep .pv-row-text{gap:0}
/* reports filter: the first row of the chosen type has no line above it; «إصدارات» keeps its place while there is no
   page it could lead to («الكل» without a page of the whole library), so nothing moves when it comes back */
.pv-rep .pv-row.is-first{border-top:0}
.pv-rep-more.is-off{visibility:hidden}
/* sections that slide in on scroll stay visible until the script runs (and without it) */
html:not(.sh-js) .sh-reveal{opacity:1;transform:none}
/* news timeline: the approved page loads with the track snapped to its first card, i.e. scrolled past its 2px start
   padding. Starting there without the padding looks the same and needs no snap: a snap while loading counts as a
   scroll, and Chrome then stops measuring the page's largest paint (Lighthouse reported «NO_LCP») */
.pv-tl-track{padding-inline-start:0!important}
/* the timeline fades out at its end: the left edge in Arabic, the right edge on a left-to-right page */
[dir="ltr"] .pv-tl-track{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 28px);mask-image:linear-gradient(to right,transparent 0,#000 28px)}
.pv-main{display:contents}

/* ---------- 1. As review/home.html ---------- */
.pv-sec{margin-top:16px}
.pv-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pv-head-links{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.pv-links a:not(.sh-btn):not(.sh-chip):not(.pv-tl-card):not(.sh-rb-link):not(.pv-data-link):not(.sh-hotline):not(.pv-row):not(.sh-slide-cta){text-decoration:underline!important;text-underline-offset:3px}
.pv-links .pv-tl-title,.pv-links .pv-row-title,.pv-links .sh-rb-link b,.pv-links .pv-data-link b,.pv-links .sh-hotline b{text-decoration:underline;text-underline-offset:3px}
.pv-hc .sh-slide-scrim{background:rgba(3,34,22,.92)!important}

/* Numbers */
.pv-stat-src{margin-top:var(--space-3);font-size:0.8125rem;line-height:1.375rem}
.pv-stat-date{font-size:0.8125rem;line-height:1.25rem;color:var(--ink-muted)}
.pv-stat-val{font:600 2.125rem/2.75rem var(--font-display);color:var(--ink);margin-top:var(--space-2)}
.pv-cum{display:flex;flex-direction:column;gap:10px;padding:18px 20px;color:var(--ink)}
.pv-cum .sh-rb-library-top{display:flex;justify-content:space-between;align-items:center;font-size:0.8125rem;color:var(--ink-muted)}
.pv-cum .sh-go{width:36px;height:36px;border-radius:var(--radius-pill);display:grid;place-items:center;background:var(--primary-soft);color:var(--primary-text)}
.pv-cum-main{font:600 1rem/1.625rem var(--font-display);color:var(--ink);text-decoration:none;margin-top:auto}
.pv-cum-main:hover{color:var(--primary-text);text-decoration:underline;text-underline-offset:4px}
.pv-cum-en{font-size:0.8125rem;line-height:1.25rem;color:var(--ink-muted);text-align:left}
/* Phones: the numbers sit two to a row so the section stays short */
@media (max-width:699px){
  .pv-num .sh-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .pv-num .sh-grid-4>:nth-child(3),.pv-num .sh-grid-4>.pv-cum{grid-column:1/-1}
  .pv-num .sh-stat{padding:16px}
  .pv-num .sh-stat-value,.pv-num .pv-stat-val{font-size:1.625rem;line-height:2.125rem}
  .pv-num .pv-stat-src{font-size:0.75rem;line-height:1.25rem}
  .pv-data-link{padding:10px;padding-inline-end:16px}
  .pv-data-link .sh-rb-ico{width:48px;height:48px}
  .pv-data-link b{font-size:1.0625rem;line-height:1.625rem}
}
/* The two data links, given the weight of a tile row */
.pv-data-links{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4);margin-top:var(--space-4)}
.pv-data-link{display:flex;align-items:center;gap:var(--space-4);padding:14px;padding-inline-end:var(--space-5);border-radius:var(--radius-pill);color:var(--ink);text-decoration:none;transition:box-shadow var(--dur-2,260ms) ease,transform var(--dur-2,260ms) var(--ease-out,ease)}
.pv-data-link:hover{box-shadow:var(--shadow-lift);transform:translateY(-2px)}
.pv-data-link .sh-rb-ico{width:56px;height:56px;border-radius:var(--radius-pill);background:var(--primary);color:var(--on-primary)}
.pv-data-link .sh-rb-ico .sh-icon{width:24px;height:24px}
.pv-data-link b{display:block;font:600 1.1875rem/1.875rem var(--font-display)}
.pv-data-link small{display:block;font-size:0.875rem;line-height:1.375rem;color:var(--ink-muted)}
.pv-data-link > .sh-icon{margin-inline-start:auto;width:22px;height:22px;color:var(--primary-text);flex:none}

/* Reports (approved layout): featured report beside the list */
.pv-rep{display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden}
.pv-feat{display:flex;flex-direction:column;gap:12px;padding:var(--space-5)}
.pv-feat .sh-rb-feature{min-height:196px;padding:var(--space-5);border-radius:var(--radius-lg);grid-row:auto}
.pv-feat .sh-rb-year{font-size:5.25rem;text-align:end}
.pv-feat-kind{font-size:0.8125rem;line-height:1.375rem;font-weight:600;color:#cfe6da}
.pv-feat h3{font:500 1.1875rem/1.875rem var(--font-display);margin:0;color:var(--ink)}
.pv-feat h3 a{color:inherit;text-decoration:none}
.pv-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:auto}
.pv-list{display:flex;flex-direction:column;border-block-start:1px solid var(--hairline)}
.pv-row{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-4) var(--space-5);color:var(--ink);text-decoration:none;flex:1;transition:background-color var(--dur-1,150ms) ease}
.pv-row+.pv-row{border-top:1px solid var(--hairline)}
.pv-row:hover{background:var(--primary-soft)}
.pv-row-text{flex:1;min-width:0;display:flex;flex-direction:column}
.pv-row-title{font:500 1rem/1.75rem var(--font-display);color:var(--ink)}
.pv-row:hover .sh-rb-dl{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.pv-tabs{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.sh-chip[aria-current="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
a.sh-chip{display:inline-flex;align-items:center;text-decoration:none}

/* News: a timeline of photo cards with frosted-glass captions, newest first, scrolled sideways */
.pv-tl{position:relative}
.pv-tl-track{list-style:none;margin:0;padding:4px 2px 18px;-webkit-mask-image:linear-gradient(to left,transparent 0,#000 28px);mask-image:linear-gradient(to left,transparent 0,#000 28px);display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:var(--hairline) transparent}
.pv-tl-item{flex:0 0 272px;scroll-snap-align:start;display:flex;flex-direction:column;gap:12px}
.pv-tl-when{position:relative;display:flex;align-items:center;gap:10px;height:24px;font:600 0.8125rem/1.25rem var(--font-display);color:var(--ink-muted);font-variant-numeric:tabular-nums}
.pv-tl-when::before{content:"";position:absolute;inset-inline:0 -16px;top:50%;height:2px;margin-top:-1px;background:var(--hairline);z-index:-1}
.pv-tl-dot{flex:none;width:14px;height:14px;border-radius:var(--radius-pill);background:var(--surface-solid);border:3px solid var(--brand-300)}
.pv-tl-when time{padding-inline-end:10px;background:var(--bg);border-radius:var(--radius-pill)}
.pv-tl-item.is-first .pv-tl-dot{border-color:var(--primary);box-shadow:0 0 0 5px var(--primary-soft)}
.pv-tl-item.is-first .pv-tl-when{color:var(--primary-text)}
.pv-tl-card{display:flex;flex-direction:column;color:var(--ink);text-decoration:none}
.pv-tl-photo{position:relative;display:block;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-glass)}
.pv-tl-photo .sh-media{display:block;aspect-ratio:4/3}
.pv-tl-photo .sh-media-img{transition:transform .6s var(--ease-out,ease)}
.pv-tl-card:hover .pv-tl-photo .sh-media-img{transform:scale(1.05)}
.pv-tl-badge{position:absolute;z-index:2;inset-block-start:10px;inset-inline-start:10px;padding:2px 10px;border-radius:var(--radius-pill);font-size:0.7812rem;line-height:1.25rem;font-weight:600;color:var(--on-photo);background:var(--photo-glass);-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}
.pv-tl-body{position:relative;z-index:1;display:flex;flex-direction:column;gap:6px;margin:-34px 10px 0;padding:12px 14px 12px;border-radius:calc(var(--radius-lg) - 4px)}
.pv-tl-title{font:500 0.9375rem/1.625rem var(--font-display);color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:78px}
.pv-tl-more{font-size:0.8125rem;line-height:1.25rem}
.pv-tl-card:hover .pv-tl-body{box-shadow:var(--shadow-lift)}
.pv-tl-card:hover .pv-tl-title{color:var(--primary-text)}
.pv-tl-card:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px;border-radius:var(--radius-lg)}
.pv-tl-nav{display:flex;gap:var(--space-2)}
@media (max-width:699px){.pv-tl-item{flex-basis:78vw}.pv-tl-nav{display:none}}
@media (min-width:700px){
  .pv-data-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:960px){
  .pv-rep{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
  .pv-list{border-block-start:0;border-inline-start:1px solid var(--hairline)}
  .sh-rb-links.pv-rep-links{grid-template-columns:repeat(2,minmax(0,1fr))}
