/* Top Stories / articles index. Loaded after landing.css. */
:root{
  --ar-heading:#383838;
  --ar-title:#4a4b52;
  --ar-time:#9a9a9a;
  --ar-cat:#146a4c;
  --ar-surface:#ebebeb;
  --ar-reels:#c4dad2;
  --ar-rule:#d9d9d9;
}
.articles-main{padding:36px 0 80px}
.ar-wrap{width:calc(100% - 100px);max-width:1290px;margin-inline:auto}
.ar-h1{font-size:clamp(26px,3.6vw,40px);font-weight:700;line-height:1.2;color:var(--ar-heading)}
.ar-h2{font-size:clamp(22px,2.9vw,35px);font-weight:700;line-height:1.2;color:var(--ar-heading)}
.ar-grid{display:grid;grid-template-columns:minmax(0,1fr) 338px;gap:41px;align-items:start;margin-top:32px}
/* Grid items default to min-width:auto, which lets the offers rail expand
   instead of scrolling. Both columns must be allowed to shrink. */
.ar-grid > *{min-width:0}

/* ---------- Shared card bits ---------- */
.ar-meta{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:14px}
.ar-meta svg{width:13px;height:13px;flex:none;color:var(--ar-time)}
.ar-meta time{font-size:11px;line-height:1.2;color:var(--ar-time);white-space:nowrap}
.ar-meta .ar-sep{width:1px;height:14px;background:#c9c9c9;flex:none}
.ar-meta .ar-cat{font-size:11px;line-height:1.2;color:var(--ar-cat);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ar-card-title{font-size:20px;font-weight:500;line-height:1.3;letter-spacing:-.2px;color:var(--ar-title)}
a.ar-card-title:hover,.ar-card a:hover .ar-card-title{text-decoration:underline}

/* ---------- Hero ---------- */
.ar-hero{background:var(--ar-surface);border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
/* Frames are sized to the shape the source photos are actually in, and the
   images fill them. Where a photo is a different shape the overspill is
   trimmed rather than left as a gap — with the frames tuned this way the
   trim is small (see .ar-card > img below). */
.ar-hero img{width:100%;aspect-ratio:1600/993;object-fit:cover;background:var(--ar-surface);display:block}
.ar-hero-body{padding:30px 27px 24px}
.ar-hero-title{font-size:clamp(19px,2.2vw,26px);font-weight:500;line-height:1.3;letter-spacing:-.26px;color:var(--ar-title)}
.ar-hero .ar-meta{margin-top:24px;padding-top:0;gap:11px}
.ar-hero .ar-meta svg{width:20px;height:20px}
.ar-hero .ar-meta time{font-size:17px}
.ar-hero .ar-meta .ar-sep{height:24px}
.ar-hero .ar-meta .ar-cat{font-size:16px}

/* ---------- Card rows ---------- */
.ar-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:29px;margin-top:32px}
.ar-card{background:var(--ar-surface);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;min-height:100%}
/* One frame for every thumbnail, at the 16:9 most of the source photos are
   shot in, so each card's image renders at exactly the same size and fills
   it. The 16:9 sources are untouched; the few 3:2 ones lose ~16% of their
   height, which is the whole cost of a uniform grid with no gaps. */
.ar-card > img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--ar-surface);display:block}
.ar-card-body{display:flex;flex-direction:column;flex:1;padding:18px 20px 22px}

/* ---------- Author cards ---------- */
.ar-authors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;margin-top:32px}
.ar-author{background:var(--ar-surface);border-radius:6px;padding:20px 28px 19px;display:flex;flex-direction:column}
.ar-author-top{display:flex;gap:13px;align-items:flex-start}
.ar-author-text{flex:1;min-width:0}
.ar-author-name{font-size:16px;font-weight:500;line-height:1.3;letter-spacing:-.16px;text-transform:uppercase;color:var(--ar-title)}
.ar-author-title{font-size:17px;font-weight:500;line-height:1.3;letter-spacing:-.17px;color:var(--ar-title);margin-top:10px}
.ar-avatar{width:80px;height:80px;flex:none;border-radius:50%;background:var(--ar-cat);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:500;letter-spacing:.5px}
.ar-author .ar-meta{padding-top:16px}
.ar-author .ar-meta svg{width:16px;height:16px}
.ar-author .ar-meta time,.ar-author .ar-meta .ar-cat{font-size:14px}
.ar-author .ar-meta .ar-sep{height:18px}

/* ---------- Rules ---------- */
.ar-rule{border:0;border-top:1px solid var(--ar-rule);margin:44px 0 0}

/* ---------- Reels ---------- */
.ar-reels{background:var(--ar-reels);border-radius:6px;padding:34px 33px;margin-top:44px}
.ar-reels-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}
.ar-reels-nav{display:flex;gap:8px}
.ar-reels-nav[hidden]{display:none}
.ar-reels-nav button{width:39px;height:39px;border-radius:50%;border:0;background:#ffffffb8;color:#0b1410;display:grid;place-items:center;cursor:pointer;transition:background .2s}
.ar-reels-nav button:hover{background:#fff}
.ar-reels-nav button:disabled{opacity:.4;cursor:default}
.ar-reels-nav svg{width:20px;height:20px}
.ar-reels-track{display:grid;grid-auto-flow:column;grid-auto-columns:252px;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding-bottom:4px;scrollbar-width:none}
.ar-reels-track::-webkit-scrollbar{display:none}
.ar-reel{scroll-snap-align:start}
.ar-reel-media{position:relative;display:block;width:100%;aspect-ratio:3/4;border-radius:6px;overflow:hidden;background:var(--ar-cat)}
.ar-reel-media img{width:100%;height:100%;object-fit:cover}
.ar-reel-media::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.62) 100%)}
.ar-reel-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:63px;height:63px;z-index:1;color:#fff;opacity:.92;transition:opacity .2s,transform .2s}
.ar-reel-media:hover .ar-reel-play{opacity:1;transform:translate(-50%,-50%) scale(1.06)}
.ar-reel-caption{font-size:16.7px;font-weight:500;line-height:1.3;letter-spacing:-.17px;color:var(--ar-title);margin-top:19px}
.ar-reel .ar-meta{margin-top:7px;padding-top:0}

/* ---------- More news ---------- */
.ar-more-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-top:46px}
.ar-more-link{font-size:20px;line-height:1.36;color:#1a1a1a;white-space:nowrap}
.ar-more-link span{color:var(--color-accent-orange)}
.ar-more-link:hover{text-decoration:underline}

/* ---------- Offers sidebar ---------- */
.ar-side{position:sticky;top:16px}
.ar-side-head{display:inline-block;font-size:22px;font-weight:500;line-height:1.36;color:#1a1a1a;padding:8px 8px 10px;border-bottom:2px solid var(--color-accent-orange)}
.ar-offers{display:grid;gap:15px;margin-top:22px}
.ar-offer{background:#fff;border:1px solid #e2ded6;border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
/* display:flex above would otherwise beat the UA rule for [hidden]. */
.ar-offer[hidden]{display:none}
.ar-offer > img{width:100%;height:auto;display:block}
.ar-offer-foot{padding:12px}
.ar-offer .pill{display:flex;width:100%;min-height:42px;border-radius:6px;font-size:14px;font-weight:700}

/* Sidebar becomes a horizontal rail once it drops below the article column */
.ar-side-rail .ar-offers{grid-auto-flow:column;grid-auto-columns:minmax(260px,280px);width:100%;min-width:0;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.ar-side-rail .ar-offer{scroll-snap-align:start}

@media(max-width:1350px){
  .ar-wrap{width:calc(100% - 64px)}
  .ar-grid{grid-template-columns:minmax(0,1fr) 300px;gap:28px}
  .ar-row{gap:20px}
  .ar-card-title{font-size:18px}
  .ar-authors{gap:18px}
  .ar-author{padding:18px 20px}
}

@media(max-width:1050px){
  .ar-grid{grid-template-columns:1fr;gap:44px}
  .ar-side{position:static}
  /* Two up. The third card stays card-sized rather than spanning the row —
     a full-width banner would render its image at a different size to the
     rest, which is exactly what the uniform frame is for. */
  .ar-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ar-reels{padding:26px 22px}
}

@media(max-width:650px){
  .ar-wrap{width:calc(100% - 32px)}
  .articles-main{padding:22px 0 56px}
  .ar-grid{margin-top:20px;gap:34px}
  .ar-hero-body{padding:20px 18px 18px}
  .ar-hero .ar-meta{margin-top:16px;gap:9px}
  .ar-hero .ar-meta svg{width:16px;height:16px}
  .ar-hero .ar-meta time{font-size:14px}
  .ar-hero .ar-meta .ar-cat{font-size:13px}
  .ar-row{grid-template-columns:1fr;gap:16px;margin-top:20px}
  .ar-card-body{padding:14px 16px 16px}
  .ar-card-title{font-size:17px}
  .ar-authors{grid-template-columns:1fr;gap:14px;margin-top:20px}
  .ar-author{padding:16px}
  .ar-avatar{width:56px;height:56px;font-size:18px}
  .ar-author-title{font-size:16px}
  .ar-rule{margin-top:30px}
  .ar-reels{padding:20px 16px;margin-top:30px;border-radius:6px}
  .ar-reels-head{margin-bottom:18px}
  .ar-reels-nav{display:none}
  .ar-reels-track{grid-auto-columns:76%}
  .ar-reel-caption{font-size:15.5px;margin-top:14px}
  .ar-more-head{margin-top:30px;flex-wrap:wrap;gap:8px}
  .ar-more-link{font-size:16px}
  .ar-side-head{font-size:19px}
  .ar-offers{gap:12px;margin-top:16px}
  .ar-side-rail .ar-offers{grid-auto-columns:minmax(230px,250px)}
}

@media(max-width:1050px){.ar-more-link{display:inline-block;padding:8px 0}}

/* Same min-width:auto trap as .ar-grid, for the inner card grids. Without it
   a fixed avatar plus a nowrap category label sets a floor wider than a very
   narrow screen. */
.ar-authors > *,.ar-row > *,.ar-offers > *{min-width:0}
@media(max-width:400px){
  .ar-avatar{width:44px;height:44px;font-size:15px}
  /* A fixed width, not minmax(0,…): a 0 minimum lets every tile shrink to
     fit the screen, squashing the whole rail into thin strips. */
  .ar-side-rail .ar-offers{grid-auto-columns:88%}
}

/* Guide cards carry a standfirst instead of a timestamp/category meta row. */
.ar-card-standfirst{font-size:15px;font-weight:300;line-height:1.5;color:var(--ar-time);margin-top:10px}
.ar-hero .ar-card-standfirst{font-size:17px;margin-top:14px}
@media(max-width:650px){.ar-card-standfirst{font-size:14px}}

/* Type scale matched to the homepage (landing.css): page title 50px,
   section heading 40px, panel heading 30px, sub-heading 23px, card title
   20px, lead 20px, body 16px, buttons 18px; headings Medium (500). Fine
   print is left as is. Desktop and tablet only; phones keep their sizes. */
@media(min-width:651px){
  main h1.ar-h1{font-size:50px !important;font-weight:500 !important;line-height:1.2 !important}
  main p.ar-card-standfirst{font-size:16px !important}
  main h2.ar-side-head{font-size:23px !important}
  main h2.ar-h2{font-size:40px !important;font-weight:500 !important;line-height:1.2 !important}
}

/* Type scale matched to the homepage on phones: page title 32px, section
   heading 30px, panel heading 26px, sub-heading 20px, card title 16-18px,
   body 15-16px. Fine print is left as is. */
@media(max-width:650px){
  main h1.ar-h1{font-size:32px !important;font-weight:500 !important;line-height:1.2 !important}
  main p.ar-card-standfirst{font-size:15px !important}
  main h2.ar-side-head{font-size:20px !important}
  main h2.ar-h2{font-size:26px !important;font-weight:500 !important;line-height:1.2 !important}
}

/* Desktop gutter: from 1051px up, content keeps at least 80px either side,
   so smaller laptops (1100-1440px) get the same breathing room as wide
   screens. Each container still stops at its own max-width. */
@media(min-width:1051px){.ar-wrap{box-sizing:border-box;width:calc(100% - 160px) !important;margin-left:auto !important;margin-right:auto !important}}
