/* ===========================================================================
   AL-SAEED ECONOMIC GROUP  —  pages/p-news.css
   ---------------------------------------------------------------------------
   News. The twelfth distinct visual key:
     Home             teal filled eyebrow, expanding six-panel strip
     About            gold filled eyebrow, timeline on one rule
     Chairman         gold-on-dark eyebrow, letter on the dark ground
     Leadership       outlined eyebrow, portrait grid with no card boxes
     Sectors          rule-and-label eyebrow, alternating full-width rows
     Sector detail    dark filled eyebrow pill, one page as a tab set
     Companies        underlined eyebrow, filterable directory of crest cards
     Projects         vertical bar eyebrow, staggered grid, caption plates
     Project detail   bracketed eyebrow, long-form copy beside a sticky rail
     Global Presence  flanking rules, two-column evidence comparison
     Sustainability   diamond marker, quadrant and an empty report table
     News             a HIGHLIGHTER - a tinted band across the lower half of
                      the label, as though drawn over it with a marker, with
                      no pill and no rule - and a FRONT PAGE: one lead item
                      beside a dense hairline-separated rail, then an archive
                      band where the DATE is the largest thing in each entry
                      and the headline sits underneath it.

   Inverting date and headline is the typographic device. Everywhere else on
   this site the title is the biggest thing in a card; in a news archive the
   date is what a reader scans by, so here it leads and the headline follows.

   NO PHOTOGRAPHS. The reference design carries no news at all, so pairing the
   group's project photography with invented headlines would suggest those
   photographs document those stories. The image slot is drawn as a slot
   instead - see .slot in core.css - and the page carries its weight on type.
   =========================================================================== */

.page-news{
  --eyebrow-fg:var(--ink);
  --page-bg:var(--white);
}

/* The twelfth eyebrow treatment: a marker-pen band behind the lower half of
   the words. The gradient stop sits at 55% so the band clears the descenders
   without swallowing the x-height. */
.page-news .eyebrow{
  background:linear-gradient(to top,
    var(--gold-tint) 0, var(--gold-tint) 55%, transparent 55%);
  box-shadow:none;border:0;border-radius:0;
  padding:.125rem .25rem;
  color:var(--eyebrow-fg);
}
.page-news .eyebrow--onDark{
  background:linear-gradient(to top,
    rgba(201,169,84,.28) 0, rgba(201,169,84,.28) 55%, transparent 55%);
  color:var(--white);
}

/* ---------------------------------------------------------------------------
   THE FRONT PAGE
   --------------------------------------------------------------------------- */
.frontpage{background:var(--white)}
.frontpage__grid{
  display:grid;gap:var(--s-4) var(--gutter);
  grid-template-columns:1fr;
  margin-top:clamp(2rem,1.5rem + 2.5vw,3.5rem);
  align-items:start;
}
@media (min-width:62rem){
  .frontpage__grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
  /* the hairline that separates the lead from the rail, as a newspaper column
     rule would. Logical, so it mirrors with the direction. */
  .rail{
    border-inline-start:.0625rem solid var(--line);
    padding-inline-start:clamp(1.5rem,1rem + 2vw,2.5rem);
  }
}

/* --- the lead item ------------------------------------------------------ */
.lead-item__slot{margin:0 0 var(--s-3)}
.lead-item__meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;
  margin:0 0 var(--s-2);
}
.lead-item__kicker{
  font-size:var(--fs-xs);font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:var(--teal-dp);
}
.lead-item__title{
  margin:0;font-size:var(--fs-h2);line-height:1.1;color:var(--ink);
}
.lead-item__text{
  margin:var(--s-2) 0 0;color:var(--muted);
  font-size:var(--fs-lg);max-width:52ch;
}
.lead-item__cta{margin-top:var(--s-3)}

/* --- the rail ----------------------------------------------------------- */
.rail__title{
  margin:0 0 var(--s-2);
  font-size:var(--fs-eyebrow);font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--teal-dp);
}
.rail__list{margin:0;padding:0;list-style:none}
.rail__item{
  padding-block:var(--s-3);
  border-top:.0625rem solid var(--line);
}
.rail__item:first-child{border-top:0;padding-top:0}
.rail__date{display:inline-block;margin-bottom:.625rem}
.rail__name{
  margin:0;font-size:var(--fs-h4);line-height:1.25;color:var(--ink);
}
.rail__text{
  margin:.5rem 0 0;font-size:var(--fs-sm);color:var(--muted);
}
.rail__more{
  display:inline-flex;align-items:center;gap:.5rem;
  margin-top:.75rem;
  font-family:var(--ff-head, inherit);
  font-size:var(--fs-sm);font-weight:600;color:var(--ink);
}
.rail__more svg{
  width:1rem;height:1rem;flex:0 0 auto;
  fill:none;stroke:var(--gold-btn);stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
  transition:transform var(--dur-fast) var(--ease);
}
.rail__more:hover{color:var(--gold-dk)}
.rail__more:hover svg{transform:translateX(.1875rem)}
[dir="rtl"] .rail__more:hover svg{transform:translateX(-.1875rem)}

/* ---------------------------------------------------------------------------
   THE ARCHIVE — date first, headline second
   --------------------------------------------------------------------------- */
.archive{background:var(--cream);overflow-x:clip}
.archive__grid{
  display:grid;gap:var(--gutter);
  grid-template-columns:1fr;
  margin-top:clamp(2rem,1.5rem + 2vw,3rem);
  padding:0;list-style:none;
}
@media (min-width:36rem){ .archive__grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:62rem){ .archive__grid{grid-template-columns:repeat(3,minmax(0,1fr))} }

.entry{
  display:flex;flex-direction:column;height:100%;
  padding:clamp(1.5rem,1.25rem + 1vw,2rem);
  background:var(--white);
  border-radius:var(--r-md);
  box-shadow:var(--sh-1);
  position:relative;overflow:hidden;
  transition:transform var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease);
}
.entry:hover,
.entry:focus-within{transform:translateY(-.25rem);box-shadow:var(--sh-2)}
/* the gold edge that appears on the leading side on hover */
.entry::before{
  content:"";position:absolute;inset-block:0;inset-inline-start:0;
  width:.1875rem;background:var(--gold);
  transform:scaleY(0);transform-origin:top;
  transition:transform var(--dur) var(--ease);
}
.entry:hover::before,
.entry:focus-within::before{transform:scaleY(1)}

/* The inversion: the date is the display element and the headline is set
   beneath it at body size. While the dates are still slots this class sits on
   the same element as .slot, and wins on font-size because core.css loads
   first - so the device is visible now and stays right when real dates
   replace the slots. */
.entry__date{
  display:block;
  font-family:var(--ff-head, inherit);font-weight:700;
  font-size:clamp(1.5rem,1.2rem + 1.2vw,2rem);line-height:1;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.entry__slot{margin-bottom:var(--s-2)}
.entry__name{
  margin:var(--s-2) 0 0;
  font-size:var(--fs-body);line-height:1.35;color:var(--ink-2);
  font-weight:600;
}
.entry__text{
  margin:.5rem 0 0;font-size:var(--fs-sm);color:var(--muted);
}
.entry__foot{margin-top:auto;padding-top:var(--s-3)}

/* ---------------------------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .entry,
  .entry::before,
  .rail__more svg{transition:none}
  .entry:hover,
  .entry:focus-within{transform:none}
}
