/* The Raisina Post — moving vertical NEWSROOM masthead, 18 Nov 2026.
 * ONE editorial label belongs to the first reporting article itself.
 * It scrolls and moves with that card, with no background or decorative box.
 * The original section heading remains in the DOM for accessibility.
 */
body:has(.editorial-cover) main#main #latest.frontpage {
  --rp-newsroom-letter-width:clamp(69px,6.8vw,105px);
}
/* Preserve a single semantic H3 for navigation, but don't display a
 * stationary title above the news rail. The first card owns the visual. */
body:has(.editorial-cover) main#main #latest .home-secondary-heading {
  position:relative!important;
  z-index:auto!important;
  display:block!important;
  height:0!important;
  min-height:0!important;
  margin:var(--rp-home-inside-gap,clamp(32px,3vw,42px)) 0 0!important;
  padding:0!important;
  border:0!important;
  overflow:visible!important;
  pointer-events:none;
}
body:has(.editorial-cover) main#main #latest .home-secondary-heading > h3,
body:has(.editorial-cover) main#main #latest .home-secondary-heading > span {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap;
  border:0!important;
  background:transparent!important;
}
/* Reserve a slender column on the LEFT of the first article. This is part
 * of the actual horizontal scroll area; it scrolls off with the article. */
body:has(.editorial-cover) main#main #latest > .latest-rail.home-mini-rail {
  box-sizing:border-box!important;
  padding-left:calc(var(--rp-newsroom-letter-width) + 12px)!important;
  scroll-padding-inline-start:calc(var(--rp-newsroom-letter-width) + 12px);
  overflow-x:auto;
  overflow-y:hidden;
}
/* Overflow must be visible on the first card for its decorative masthead to
 * extend into the reserved column. Image/copy remain inside the card. */
body:has(.editorial-cover) main#main #latest > .latest-rail.home-mini-rail
  > .rail-story:first-child {
  position:relative;
  overflow:visible!important;
}
/* FULL PHOTO HEIGHT, NO BACKGROUND. Tall, light vertical editorial lettering.
 * The entire word remains OUTSIDE the photograph, separated by a 12px gutter.
 * Because it belongs to the first card, it scrolls away with that card. */
body:has(.editorial-cover) main#main #latest > .latest-rail.home-mini-rail
  > .rail-story:first-child::before {
  content:"NEWSROOM";
  position:absolute;
  z-index:9;
  box-sizing:border-box;
  inset-block:0;
  /* The lettering box's right edge ends 12px BEFORE the photograph. */
  left:calc(-1 * var(--rp-newsroom-letter-width) - 12px);
  width:var(--rp-newsroom-letter-width);
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
  border-radius:0!important;
  color:#111;
  font:600 clamp(51px,5.7vw,72px)/.98 Inter,Manrope,Arial,sans-serif;
  letter-spacing:-.062em;
  text-transform:uppercase;
  white-space:nowrap;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  transform-origin:center;
  user-select:none;
  pointer-events:none;
}
/* Match the exact height of the first article image, including responsive
 * reductions. No layout change to the other cards or sections. */
@media(max-width:760px) {
  body:has(.editorial-cover) main#main #latest.frontpage {
    --rp-newsroom-letter-width:57px;
  }
  body:has(.editorial-cover) main#main #latest > .latest-rail.home-mini-rail
    > .rail-story:first-child::before {
    left:calc(-1 * var(--rp-newsroom-letter-width) - 12px);
    width:var(--rp-newsroom-letter-width);
    font-size:clamp(46px,11vw,60px);
    letter-spacing:-.08em;
  }
}
