/* شهاب — tag: صفحة الوسم (#غزة).

   على الأبيض بترتيب واحد: رأس فاتح (المسار، الوسم كبير، الوصف، والوسوم
   القريبة جنبه؛ وتحتهم تبويبات نوع المادة)، الافتتاحية (المادة الأهم
   وعنوانها ظاهر دائمًا على صورتها، جنب أحدث ثلاث مواد — العمودان ينتهيان
   معًا)، ثم «كل مواد الوسم» شبكة 3×2 بعناوين ظاهرة والترقيم. لا أعداد
   متخيَّلة، لا شريط كحلي، لا سهم لكل صف، لا سطر ختام. */
a{transition:color .16s ease,background .16s ease,border-color .16s ease,gap .16s ease}

/* ================================================================== head */
.sh-tg-head{padding-top:24px}
.sh-tg-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px;font-family:var(--sh-font);font-size:14px;color:var(--sh-mute)}
.sh-tg-crumbs a{color:var(--sh-mute)}
.sh-tg-crumbs a::after{content:"/";margin-inline-start:9px;color:var(--color-text-faint)}
@media (hover:hover){.sh-tg-crumbs a:hover{color:var(--sh-blue)}}
.sh-tg-crumbs span{color:var(--sh-navy);font-weight:700}
.sh-tg-head__row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 48px;margin-top:12px}
.sh-tg-head__lead{flex:1 1 480px;min-width:0}
.sh-tg-title{margin:0;font-family:var(--sh-font);font-size:clamp(44px,5vw,68px);font-weight:800;line-height:1.05;color:var(--sh-navy)}
.sh-tg-dek{margin:12px 0 0;font-family:var(--sh-font);font-size:18px;line-height:1.8;color:var(--sh-ink-2);max-width:70ch;text-wrap:pretty}
/* the nearby tags: the tag's neighbours, in blue, on the soft tint */
.sh-tg-near{display:flex;flex-wrap:wrap;gap:6px 20px;padding:14px 20px;background:var(--color-surface-soft);max-width:520px}
.sh-tg-near a{font-family:var(--sh-font);font-size:16px;font-weight:700;color:var(--sh-blue);white-space:nowrap}
@media (hover:hover){.sh-tg-near a:hover{color:var(--sh-navy)}}
.sh-tg-tabs{display:flex;flex-wrap:wrap;gap:0 30px;margin-top:22px;border-bottom:1px solid var(--color-border-soft)}
.sh-tg-tabs a{display:inline-flex;align-items:center;min-height:48px;margin-bottom:-1px;border-bottom:2px solid transparent;font-family:var(--sh-font);font-size:17px;font-weight:700;color:var(--sh-ink-2);white-space:nowrap}
@media (hover:hover){.sh-tg-tabs a:hover{color:var(--sh-blue)}}
.sh-tg-tabs a[aria-current]{color:var(--sh-navy);border-bottom-color:var(--sh-blue)}
.sh-tg-tabs a:focus-visible{outline:2px solid var(--sh-blue);outline-offset:2px}

.sh-tg-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-family:var(--sh-font);font-size:14px;color:var(--sh-mute)}
.sh-tg-meta b{font-weight:700;color:var(--sh-blue)}

/* =============================================================== opening */
.sh-tg-open{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:24px 40px;margin-top:32px;align-items:stretch}
/* the lead keeps its words on the picture: the veil climbs from the foot; on a pointer the picture eases in and the title lifts */
.sh-tg-lead{--tg-ease:cubic-bezier(.22,1,.36,1);position:relative;display:block;min-width:0;overflow:hidden;isolation:isolate;background:var(--sh-navy-2);color:#fff}
@media (hover:hover){.sh-tg-lead:hover{color:#fff}}   /* base.css a:hover would repaint the white words blue */
.sh-tg-lead:focus-visible{outline:2px solid var(--sh-blue);outline-offset:3px}
.sh-tg-lead__pic{position:relative;display:block;aspect-ratio:16/9;height:100%;overflow:hidden}
.sh-tg-lead__pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s var(--tg-ease)}
.sh-tg-lead__body{position:absolute;inset:auto 0 0 0;z-index:2;display:flex;flex-direction:column;gap:8px;padding:120px 32px 30px;background:linear-gradient(to top,rgba(10,26,51,.95) 0%,rgba(10,26,51,.72) 36%,rgba(10,26,51,.2) 72%,rgba(10,26,51,0) 100%);pointer-events:none}
.sh-tg-lead__meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-family:var(--sh-font);font-size:15px;color:var(--sh-on-dark-80)}
.sh-tg-lead__meta b{color:var(--sh-sky);font-weight:700}
.sh-tg-lead__t{font-family:var(--sh-font);font-size:clamp(28px,2.6vw,40px);font-weight:800;line-height:1.3;color:#fff;max-width:30ch;text-wrap:balance;transition:transform .5s var(--tg-ease)}
@media (hover:hover) and (pointer:fine){
  .sh-tg-lead:hover .sh-tg-lead__pic img,.sh-tg-lead:focus-visible .sh-tg-lead__pic img{transform:scale(1.05)}
  .sh-tg-lead:hover .sh-tg-lead__t,.sh-tg-lead:focus-visible .sh-tg-lead__t{transform:translateY(-4px)}
}

/* the three latest beside it: rows stretch so the column ends with the lead */
.sh-tg-side{display:flex;flex-direction:column;min-width:0}
.sh-tg-side__item{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:0 16px;align-items:center;padding:14px 0;border-top:1px solid var(--color-border-soft);color:var(--sh-ink)}
.sh-tg-side__item:first-child{border-top:0;padding-top:0}
.sh-tg-side__item:last-child{padding-bottom:0}
@media (hover:hover){.sh-tg-side__item:hover{color:var(--sh-ink)}}
.sh-tg-side__item:focus-visible{outline:2px solid var(--sh-blue);outline-offset:2px}
.sh-tg-side__body{display:flex;flex-direction:column;gap:6px;min-width:0}
.sh-tg-side__t{font-family:var(--sh-font);font-size:17px;font-weight:800;line-height:1.5;color:var(--sh-navy);text-wrap:pretty;transition:color .2s ease}
@media (hover:hover){.sh-tg-side__item:hover .sh-tg-side__t{color:var(--sh-blue)}}
.sh-tg-side__pic{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--sh-navy-2)}
.sh-tg-side__pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* =============================================================== listing */
.sh-tg-list{margin:64px 0}
.sh-tg-list .sh-section__head{align-items:baseline;gap:18px}
.sh-tg-list .sh-section__title{font-size:clamp(24px,2.2vw,30px);font-weight:800;gap:12px}
.sh-tg-list__note{font-family:var(--sh-font);font-size:14px;color:var(--sh-mute)}
.sh-tg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px;margin-top:22px}
.sh-tg-card{--tg-ease:cubic-bezier(.22,1,.36,1);display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--sh-ink)}
@media (hover:hover){.sh-tg-card:hover{color:var(--sh-ink)}}
.sh-tg-card:focus-visible{outline:2px solid var(--sh-blue);outline-offset:3px}
.sh-tg-card__pic{position:relative;display:block;aspect-ratio:16/10;margin-bottom:8px;overflow:hidden;background:var(--sh-navy-2)}
.sh-tg-card__pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--tg-ease)}
@media (hover:hover){.sh-tg-card:hover .sh-tg-card__pic img{transform:scale(1.05)}}
.sh-tg-card__play{position:absolute;inset:0;z-index:2;margin:auto;width:48px;height:48px;border-radius:50%;background:var(--sh-blue);color:#fff;display:grid;place-items:center;font-size:15px;box-shadow:0 6px 18px rgba(10,26,51,.45)}
.sh-tg-card__play .sh-i{translate:1px 0}
.sh-tg-card__t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-family:var(--sh-font);font-size:20px;font-weight:800;line-height:1.45;color:var(--sh-navy);text-wrap:pretty;transition:color .2s ease}
@media (hover:hover){.sh-tg-card:hover .sh-tg-card__t{color:var(--sh-blue)}}

.sh-tg-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:44px}
.sh-tg-pager__of{font-family:var(--sh-font);font-size:15px;color:var(--sh-mute)}
.sh-tg-pager__btns{display:flex;align-items:center;gap:8px;font-family:var(--sh-font);font-size:16px;font-weight:700}
.sh-tg-pager .sh-pager__btn{width:44px;height:44px}
.sh-tg-pager__cur,.sh-tg-pager__cur:hover{color:#fff}   /* base.css a:hover would paint the label blue on blue */
.sh-tg-pager__cur{width:44px;height:44px;display:grid;place-items:center;background:var(--sh-blue);font-variant-numeric:tabular-nums}
.sh-tg-pager__next{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;color:var(--sh-blue)}
@media (hover:hover){.sh-tg-pager__next:hover{gap:11px}}

/* ============================================================ breakpoints */
@media (max-width:1023px){
  .sh-tg-open{grid-template-columns:minmax(0,1fr)}
  .sh-tg-side__item{flex:none}
  .sh-tg-side__item:first-child{border-top:1px solid var(--color-border-soft);padding-top:14px}
  .sh-tg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .sh-tg-title{font-size:42px}
  .sh-tg-dek{font-size:16px}
  .sh-tg-near{padding:12px 14px;gap:6px 16px;max-width:none}
  .sh-tg-near a{font-size:15px}
  .sh-tg-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:0 22px;margin-inline:calc(var(--sh-gutter,16px) * -1);padding-inline:var(--sh-gutter,16px)}
  .sh-tg-tabs::-webkit-scrollbar{display:none}
  .sh-tg-tabs a{font-size:16px;flex:none}
  .sh-tg-open{margin-top:22px;gap:10px}
  /* the lead: picture edge to edge, words beneath it */
  .sh-tg-lead{overflow:visible;background:none;color:var(--sh-ink)}
  .sh-tg-lead__pic{height:auto;margin-inline:calc(var(--sh-gutter,16px) * -1);width:calc(100% + var(--sh-gutter,16px) * 2);max-width:none}
  .sh-tg-lead__body{position:static;padding:14px 0 0;background:none}
  .sh-tg-lead__meta{color:var(--sh-mute)}
  .sh-tg-lead__meta b{color:var(--sh-blue)}
  .sh-tg-lead__t{font-size:25px;color:var(--sh-navy)}
  .sh-tg-side__t{font-size:16px}
  .sh-tg-list{margin:48px 0}
  .sh-tg-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  /* cards become rows: the picture small beside the title */
  .sh-tg-card{display:grid;grid-template-columns:136px minmax(0,1fr);grid-template-rows:auto 1fr;gap:4px 14px;align-content:start}
  .sh-tg-card__pic{grid-row:1/span 2;aspect-ratio:4/3;margin:0}
  .sh-tg-card__play{width:32px;height:32px;font-size:11px}
  .sh-tg-card__t{font-size:16.5px;line-height:1.5}
}
@media (max-width:640px){
  .sh-tg-head{padding-top:18px}
  .sh-tg-crumbs{font-size:13px}
  .sh-tg-pager{justify-content:center}
  .sh-tg-pager__btns{gap:4px}
}
@media (prefers-reduced-motion:reduce){
  .sh-tg-lead__pic img,.sh-tg-card__pic img,.sh-tg-lead__t{transition:none}
  .sh-tg-lead:hover .sh-tg-lead__pic img,.sh-tg-lead:hover .sh-tg-lead__t,.sh-tg-card:hover .sh-tg-card__pic img{transform:none}
}

/* A press has to answer on a touch screen, where :hover never fires: the ground
   steps to navy for as long as the control is held. No transform and no radius —
   the timing is the colour transition the control already carries. */
body[data-sh-page="tag"] :where(.sh-more,.sh-pager__btn,.sh-chip,.sh-tag,.sh-btn):active{
  background:var(--sh-navy);color:#fff;border-color:var(--sh-navy);
}

/* the burger and its chevron live in the shared css/responsive.css, which feeds
   the four locked pages, so their guard is written here, per page */
@media (prefers-reduced-motion:reduce){
  body[data-sh-page="tag"] .sh-nav-toggle span,
  body[data-sh-page="tag"] header nav .sh-menu > a > span:last-child{transition:none}
}
