/* ==========================================================================
   Newsroom — premium layer (v3)

   Loads after newsroom.css and refines it rather than replacing it. Every
   existing class keeps working; this file adds the masthead, footer, auth
   surfaces, hero layout and the shared component set.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&display=swap');

.nr-root {
  --nr-display: 'Newsreader', 'Fraunces', Georgia, 'Times New Roman', serif;

  --nr-ink-3: #8b9199;
  --nr-wash: #f7f8fa;
  --nr-wash-2: #eef0f4;
  --nr-hairline: rgba(20, 22, 26, .08);

  --nr-shadow-sm: 0 1px 2px rgba(16, 20, 30, .05);
  --nr-shadow: 0 2px 8px rgba(16, 20, 30, .06), 0 1px 2px rgba(16, 20, 30, .04);
  --nr-shadow-lg: 0 12px 32px rgba(16, 20, 30, .1), 0 2px 6px rgba(16, 20, 30, .05);

  --nr-ease: cubic-bezier(.2, .8, .25, 1);
  --nr-ease-out: cubic-bezier(.16, 1, .3, 1);

  --nr-shell-max: 1240px;

  background: #fff;
}

.nr-root.nr-dark {
  --nr-ink-3: #6b7178;
  --nr-wash: #131519;
  --nr-wash-2: #1a1d22;
  --nr-hairline: rgba(255, 255, 255, .08);
  --nr-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --nr-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  --nr-shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
  background: var(--nr-bg);
}

.nr-shell { max-width: var(--nr-shell-max); }

.nr-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.nr-logo { display: inline-flex; align-items: center; gap: 10px; }
.nr-logo-img { max-height: 40px; width: auto; }
.nr-logotext { display: flex; flex-direction: column; line-height: 1; }
.nr-logoname {
  font-family: var(--nr-display);
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: -.022em;
  text-transform: uppercase;
  color: var(--nr-ink);
}
.nr-logotag {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--nr-brand);
  margin-top: 4px;
}

/* ==========================================================================
   Masthead
   ========================================================================== */

.nr-masthead { background: #fff; border-bottom: 1px solid var(--nr-line); }
.nr-dark .nr-masthead { background: var(--nr-bg); }

/* --- utility bar --- */
.nr-utility {
  background: var(--nr-wash);
  border-bottom: 1px solid var(--nr-hairline);
  font-size: .74rem;
}
.nr-utility-in {
  max-width: var(--nr-shell-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--nr-ink-2);
}
.nr-utility-date { font-weight: 500; }
.nr-utility-sep { width: 1px; height: 12px; background: var(--nr-line); }
.nr-weather { display: inline-flex; align-items: center; gap: 6px; }
.nr-weather-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.nr-utility-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nr-utility-link {
  padding: 5px 10px; border-radius: 6px; font-weight: 600;
  transition: background .15s, color .15s;
}
.nr-utility-link:hover { background: var(--nr-wash-2); color: var(--nr-ink); }
.nr-utility-strong { color: var(--nr-brand); }

.nr-icon-btn {
  position: relative;
  border: 0; background: transparent; cursor: pointer;
  width: 28px; height: 28px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--nr-ink-2); font-size: .9rem;
  transition: background .15s, color .15s;
}
.nr-icon-btn:hover { background: var(--nr-wash-2); color: var(--nr-ink); }
.nr-icon-moon { display: none; }
.nr-dark .nr-icon-sun { display: none; }
.nr-dark .nr-icon-moon { display: inline; }
.nr-bell-dot {
  position: absolute; top: 4px; right: 4px;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--nr-hot); border: 1.5px solid var(--nr-wash);
}

/* --- user dropdown --- */
.nr-usermenu { position: relative; }
.nr-usermenu-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; cursor: pointer;
  padding: 3px 8px 3px 3px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; color: var(--nr-ink-2);
  transition: background .15s;
}
.nr-usermenu-btn:hover { background: var(--nr-wash-2); }
.nr-usermenu-btn img { border-radius: 999px; width: 22px; height: 22px; }
.nr-usermenu-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-caret { font-size: .6rem; opacity: .6; }

/* --- account hamburger trigger (replaces avatar + name) --- */
.nr-usermenu-hamburger {
  width: 28px; height: 28px; padding: 0;
  border-radius: 7px;
  justify-content: center;
}
.nr-hamburger-icon {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  width: 15px; height: 15px;
}
.nr-hamburger-icon i {
  display: block; width: 100%; height: 1.5px;
  background: var(--nr-ink-2); border-radius: 1px;
  transition: transform .18s, opacity .18s, background .15s;
}
.nr-usermenu-hamburger:hover .nr-hamburger-icon i { background: var(--nr-ink); }
.nr-usermenu-hamburger[aria-expanded="true"] .nr-hamburger-icon i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nr-usermenu-hamburger[aria-expanded="true"] .nr-hamburger-icon i:nth-child(2) { opacity: 0; }
.nr-usermenu-hamburger[aria-expanded="true"] .nr-hamburger-icon i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nr-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  min-width: 190px; padding: 6px;
  background: var(--nr-surface);
  border: 1px solid var(--nr-line);
  border-radius: 12px;
  box-shadow: var(--nr-shadow-lg);
  animation: nr-drop .16s var(--nr-ease-out);
}
.nr-dropdown a {
  display: block; padding: 8px 11px; border-radius: 8px;
  font-size: .82rem; font-weight: 500; color: var(--nr-ink);
  transition: background .12s;
}
.nr-dropdown a:hover { background: var(--nr-wash); }
.nr-dropdown-rule { display: block; height: 1px; background: var(--nr-line); margin: 5px 8px; }
@keyframes nr-drop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* --- brand bar --- */
.nr-brandbar-in {
  max-width: var(--nr-shell-max);
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.nr-hsearch {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  background: var(--nr-wash);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  height: 42px;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.nr-hsearch:focus-within {
  background: var(--nr-surface);
  border-color: var(--nr-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nr-brand) 12%, transparent);
}
.nr-hsearch-icon { color: var(--nr-ink-3); font-size: 1.05rem; }
.nr-hsearch input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: .88rem; color: inherit;
}
.nr-hsearch input::placeholder { color: var(--nr-ink-3); }

.nr-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 90;
  background: var(--nr-surface);
  border: 1px solid var(--nr-line);
  border-radius: 12px;
  box-shadow: var(--nr-shadow-lg);
  overflow: hidden;
  animation: nr-drop .16s var(--nr-ease-out);
}
.nr-suggest a {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nr-hairline);
  transition: background .12s;
}
.nr-suggest a:last-child { border-bottom: 0; }
.nr-suggest a:hover, .nr-suggest a.is-active { background: var(--nr-wash); }
.nr-suggest-kicker {
  font-size: .58rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--nr-brand); flex: none; width: 76px;
}
.nr-suggest-title { font-size: .84rem; font-weight: 500; line-height: 1.3; }
.nr-suggest-empty { padding: 14px; font-size: .84rem; color: var(--nr-ink-2); text-align: center; }

.nr-brandbar-actions { display: flex; align-items: center; gap: 10px; }

.nr-burger {
  display: none;
  width: 38px; height: 38px; border: 1px solid var(--nr-line);
  background: transparent; border-radius: 9px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nr-burger i { display: block; width: 16px; height: 1.5px; background: var(--nr-ink); transition: transform .2s, opacity .2s; }
.nr-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nr-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nr-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- section nav --- */
.nr-sectionnav {
  border-top: 1px solid var(--nr-hairline);
  background: var(--nr-surface);
  z-index: 45;
}
.nr-sectionnav.is-stuck {
  position: sticky; top: 0;
  box-shadow: 0 1px 0 var(--nr-line), var(--nr-shadow-sm);
}
.nr-sectionnav-in {
  max-width: var(--nr-shell-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex; gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nr-sectionnav-in::-webkit-scrollbar { display: none; }
.nr-navlink {
  position: relative;
  padding: 12px 12px 11px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .01em;
  color: var(--nr-ink-2);
  white-space: nowrap;
  transition: color .15s;
}
.nr-navlink::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; background: var(--nr-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--nr-ease-out);
}
.nr-navlink:hover { color: var(--nr-ink); }
.nr-navlink:hover::after, .nr-navlink.is-active::after { transform: scaleX(1); }
.nr-navlink.is-active { color: var(--nr-brand); }

/* "Home" always renders as a filled pill, distinct from the plain-text
   section links next to it. */
.nr-navlink-home {
  padding: 6px 16px;
  margin: 8px 0;
  border-radius: 999px;
  background: var(--nr-brand);
  color: #fff !important;
}
.nr-navlink-home::after { display: none; }
.nr-navlink-home:hover { background: var(--nr-brand); opacity: .92; }

.nr-mobilenav {
  border-top: 1px solid var(--nr-line);
  padding: 12px 20px 18px;
  background: var(--nr-surface);
}
.nr-mobilenav a { display: block; padding: 9px 0; font-size: .95rem; font-weight: 500; }
.nr-mobilenav-auth { display: grid; gap: 8px; padding-bottom: 12px; }

/* ==========================================================================
   Homepage hero
   ========================================================================== */

.nr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  padding: 24px 0 8px;
  align-items: start;
}

.nr-hero-story .nr-card-media {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  box-shadow: var(--nr-shadow);
}
.nr-hero-badges { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
.nr-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--nr-brand); color: #fff;
}
.nr-badge-quiet { background: var(--nr-wash-2); color: var(--nr-ink-2); }
.nr-badge-live { background: var(--nr-hot); color: #fff; }
.nr-badge-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 999px;
  background: #fff; margin-right: 6px; animation: nr-pulse 1.6s infinite;
}
@keyframes nr-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.nr-hero-title {
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.026em;
  margin-bottom: 10px;
}
.nr-hero-title a { transition: color .15s; }
.nr-hero-story:hover .nr-hero-title a { color: var(--nr-brand); }
.nr-hero-stand {
  font-size: 1.06rem;
  color: var(--nr-ink-2);
  line-height: 1.5;
  max-width: 60ch;
}
.nr-hero-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--nr-hairline);
  font-size: .78rem; color: var(--nr-ink-2);
}
.nr-hero-meta img { width: 26px; height: 26px; border-radius: 999px; }
.nr-hero-author { font-weight: 600; color: var(--nr-ink); }

/* --- rail --- */
.nr-rail { border-left: 0; padding-left: 0; }
.nr-railcard {
  background: var(--nr-wash);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.nr-railcard:last-child { margin-bottom: 0; }
.nr-railhead {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 11px; margin-bottom: 4px;
  border-bottom: 2px solid var(--nr-ink);
}
.nr-railhead h2 {
  font-family: var(--nr-text);
  font-size: .7rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.nr-railhead a { font-size: .68rem; font-weight: 700; color: var(--nr-brand); }

.nr-trendlist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--nr-hairline);
}
.nr-trendlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.nr-trendnum {
  font-family: var(--nr-display);
  font-size: 1.5rem; font-weight: 700; line-height: .9;
  color: var(--nr-brand); opacity: .32; flex: none; width: 24px;
}
.nr-trendbody { min-width: 0; flex: 1; }
.nr-trendbody a { font-size: .88rem; font-weight: 600; line-height: 1.32; }
.nr-trendbody a:hover { color: var(--nr-brand); }
.nr-trendmeta { font-size: .7rem; color: var(--nr-ink-3); margin-top: 4px; }
.nr-trendkicker { display: block; margin-bottom: 3px; }
.nr-trendthumb {
  flex: none;
  display: block;
  width: 64px; height: 56px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--nr-wash-2);
}
.nr-trendthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Section blocks
   ========================================================================== */

.nr-band { background: var(--nr-wash); padding: 4px 0 20px; margin-top: 28px; }
.nr-band .nr-strip { padding-top: 20px; }

.nr-strip-head { border-bottom-width: 2px; }
.nr-strip-title { letter-spacing: -.02em; }

.nr-card-media { box-shadow: var(--nr-shadow-sm); }
.nr-card-link:hover .nr-card-media { box-shadow: var(--nr-shadow); }
.nr-card-media, .nr-card-media img { transition: box-shadow .25s var(--nr-ease-out), transform .45s var(--nr-ease-out); }

/* ==========================================================================
   Newsletter + footer
   ========================================================================== */

.nr-newsletter {
  background: var(--nr-brand);
  color: #fff;
  margin-top: 34px;
}
.nr-newsletter-in {
  max-width: var(--nr-shell-max);
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.nr-newsletter h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -.02em; }
.nr-newsletter p { margin-top: 6px; opacity: .82; font-size: .92rem; }
.nr-newsletter-cta { flex: none; padding: 12px 26px; font-size: .84rem; }

.nr-footer {
  border-top: 3px solid var(--nr-brand);
  margin-top: 0; background: #0e1014; color: #b8bec7;
}
.nr-dark .nr-footer { background: #08090b; }
.nr-footer-in {
  max-width: var(--nr-shell-max);
  margin: 0 auto;
  padding: 0 20px;
}
.nr-footer-main { padding: 38px 0 30px; }
.nr-footer-main .nr-footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.nr-footer-brand .nr-logoname { color: #fff; }
.nr-footer-brand .nr-logotag { color: #7d93d8; }
.nr-footer-brand p { margin-top: 12px; font-size: .86rem; line-height: 1.55; max-width: 34ch; }
.nr-social { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.nr-social a {
  font-size: .72rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .15s, border-color .15s, color .15s;
}
.nr-social a:hover { background: #fff; border-color: #fff; color: #0e1014; }

/* ==========================================================================
   About page
   ========================================================================== */

.nr-about-lede { margin-top: 8px; color: var(--nr-ink-2); font-size: 1rem; }
.nr-about-copy { color: var(--nr-ink-2); font-size: .94rem; line-height: 1.65; margin: 16px 0; }
.nr-about-section { margin: 30px 0; padding-top: 22px; border-top: 1px solid var(--nr-line); }
.nr-about-h2 { font-size: 1.1rem; margin-bottom: 12px; }
.nr-about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nr-about-tag {
  padding: 7px 14px; border-radius: 999px;
  background: var(--nr-wash); border: 1px solid var(--nr-line);
  font-size: .82rem; font-weight: 600; color: var(--nr-ink-2);
  transition: background .15s, color .15s, border-color .15s;
}
.nr-about-tag:hover { background: var(--nr-brand); border-color: var(--nr-brand); color: #fff; }
.nr-social-light a { border-color: var(--nr-line); color: var(--nr-ink-2); }
.nr-social-light a:hover { background: var(--nr-brand); border-color: var(--nr-brand); color: #fff; }

.nr-footer-col h3 {
  font-family: var(--nr-text);
  font-size: .64rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: #fff; margin-bottom: 12px;
}
.nr-footer-col a {
  display: block; padding: 5px 0;
  font-size: .84rem; color: #b8bec7;
  transition: color .15s;
}
.nr-footer-col a:hover { color: #fff; }

.nr-footer-legal { border-top: 1px solid rgba(255, 255, 255, .09); }
.nr-footer-legal .nr-footer-in {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 16px;
  font-size: .76rem;
}

/* ==========================================================================
   Authentication surfaces
   ========================================================================== */

.nr-root-bare { background: var(--nr-wash); min-height: 100vh; }
.nr-authwrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.nr-authcard {
  width: 100%; max-width: 424px;
  background: var(--nr-surface);
  border: 1px solid var(--nr-line);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: var(--nr-shadow-lg);
  animation: nr-rise .35s var(--nr-ease-out);
}
@keyframes nr-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.nr-authlogo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.nr-authtitle { font-size: 1.62rem; letter-spacing: -.022em; }
.nr-authsub { font-size: .9rem; color: var(--nr-ink-2); margin-top: 6px; }

.nr-authform { margin-top: 22px; }
.nr-field { margin-bottom: 15px; }
.nr-flabel {
  display: block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em;
  color: var(--nr-ink-2);
  margin-bottom: 6px;
}
.nr-authform .nr-input { padding: 11px 13px; border-radius: 10px; }

.nr-inputwrap { position: relative; }
.nr-inputwrap .nr-input { padding-right: 42px; }
.nr-peek {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent;
  border-radius: 7px; cursor: pointer; opacity: .5; font-size: .9rem;
  transition: opacity .15s, background .15s;
}
.nr-peek:hover { opacity: 1; background: var(--nr-wash); }

.nr-authrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 4px 0 20px; flex-wrap: wrap;
}
.nr-check { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--nr-ink-2); cursor: pointer; }
.nr-check input { accent-color: var(--nr-brand); width: 15px; height: 15px; }
.nr-check + .nr-check { margin-top: 8px; }
.nr-form .nr-check { display: flex; margin-top: 10px; }
input[type="color"].nr-input { width: 100%; height: 40px; padding: 3px; cursor: pointer; }
.nr-link { color: var(--nr-brand); font-size: .82rem; font-weight: 600; }
.nr-link:hover { text-decoration: underline; text-underline-offset: 2px; }

.nr-authfoot { text-align: center; margin-top: 20px; font-size: .86rem; color: var(--nr-ink-2); }
.nr-finetext { font-size: .76rem; color: var(--nr-ink-3); margin-top: 12px; text-align: center; line-height: 1.45; }

.nr-fieldnote { display: block; font-size: .74rem; margin-top: 5px; min-height: 1em; }
.nr-fieldnote.is-bad { color: var(--nr-hot); }
.nr-fieldnote.is-good { color: #15803d; }

.nr-strength { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.nr-strength-bar {
  flex: 1; height: 3px; border-radius: 999px;
  background: var(--nr-wash-2); overflow: hidden;
}
.nr-strength-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 999px; background: var(--nr-hot);
  transition: width .3s var(--nr-ease-out), background .3s;
}
.nr-strength-text { font-size: .7rem; font-weight: 700; color: var(--nr-ink-3); min-width: 44px; }
.nr-strength[data-level="2"] i { background: #f59e0b; }
.nr-strength[data-level="3"] i { background: #16a34a; }
.nr-strength[data-level="4"] i { background: #15803d; }

/* honeypot */
.nr-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.nr-authdone { text-align: center; }
.nr-authdone-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 999px;
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #16a34a; font-size: 1.5rem; margin-bottom: 16px;
}
.nr-authdone .nr-btn { margin-top: 20px; }

/* ==========================================================================
   Shared components
   ========================================================================== */

.nr-btn {
  border-radius: 10px;
  padding: 11px 20px;
  font-size: .82rem;
  letter-spacing: .005em;
  box-shadow: var(--nr-shadow-sm);
  transition: background .16s, opacity .16s, transform .08s, box-shadow .16s;
}
.nr-btn:hover { opacity: 1; box-shadow: var(--nr-shadow); }
.nr-btn-sm { padding: 8px 15px; font-size: .76rem; border-radius: 9px; }
.nr-btn-block { width: 100%; }
.nr-btn-quiet { box-shadow: none; }
.nr-btn-quiet:hover { box-shadow: var(--nr-shadow-sm); }

/* Header "Write" CTA — accent colour, fully pill-shaped, small icon */
/* Header + footer "Write" CTA — white pill, works on both light and
   dark backgrounds; brand-coloured text keeps it legible and aesthetic
   rather than a heavy solid colour block. A defined border + soft
   shadow keep it visible even on a white/light header background. */
.nr-btn-write {
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--nr-brand);
  color: var(--nr-brand);
  box-shadow: 0 1px 3px rgba(20, 22, 26, .1);
}
.nr-btn-write:hover { background: var(--nr-brand); color: #fff; }
.nr-btn-write-icon { font-size: .95em; line-height: 1; }

.nr-btn[data-submitbtn] { position: relative; }
.nr-spinner {
  position: absolute; left: 50%; top: 50%;
  width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 999px;
  opacity: 0;
  animation: nr-spin .6s linear infinite;
}
.nr-btn.is-busy .nr-btn-label { opacity: 0; }
.nr-btn.is-busy .nr-spinner { opacity: 1; }
@keyframes nr-spin { to { transform: rotate(360deg); } }

.nr-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.45;
  margin-bottom: 16px;
}
.nr-alert ul { margin: 0; padding-left: 16px; }
.nr-alert li { list-style: disc; margin-bottom: 3px; }
.nr-alert-good { background: color-mix(in srgb, #16a34a 10%, transparent); color: #14532d; }
.nr-alert-bad { background: color-mix(in srgb, var(--nr-hot) 10%, transparent); color: #7f1d1d; }
.nr-dark .nr-alert-good { color: #86efac; }
.nr-dark .nr-alert-bad { color: #fca5a5; }

/* skeletons */
.nr-skeleton {
  background: linear-gradient(90deg, var(--nr-wash) 25%, var(--nr-wash-2) 37%, var(--nr-wash) 63%);
  background-size: 400% 100%;
  animation: nr-shimmer 1.3s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes nr-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.nr-skel-card { display: grid; gap: 8px; }
.nr-skel-card .nr-skeleton:nth-child(1) { aspect-ratio: 3/2; border-radius: 12px; }
.nr-skel-card .nr-skeleton:nth-child(2) { height: 13px; width: 92%; }
.nr-skel-card .nr-skeleton:nth-child(3) { height: 13px; width: 64%; }

/* empty + 404 */
.nr-empty, .nr-gate {
  background: var(--nr-wash);
  border: 0;
  border-radius: 16px;
  padding: 56px 24px;
}
.nr-empty h2, .nr-gate h2 { font-size: 1.45rem; letter-spacing: -.02em; }

.nr-404 { text-align: center; padding: 80px 20px; }
.nr-404-code {
  font-family: var(--nr-display);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 700;
  line-height: .9;
  color: var(--nr-brand);
  opacity: .16;
  letter-spacing: -.04em;
}
.nr-404 h1 { font-size: 1.7rem; margin-top: -12px; }
.nr-404 p { color: var(--nr-ink-2); margin: 8px 0 22px; }

/* pagination */
.nr-pagination { display: flex; gap: 5px; justify-content: center; padding: 22px 0; flex-wrap: wrap; }
.nr-pagination a, .nr-pagination span {
  min-width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 11px; border-radius: 9px;
  font-size: .82rem; font-weight: 600;
  border: 1px solid var(--nr-line);
  transition: background .15s, border-color .15s;
}
.nr-pagination a:hover { background: var(--nr-wash); }
.nr-pagination .is-current { background: var(--nr-brand); border-color: var(--nr-brand); color: #fff; }

/* article refinements */
.nr-headline { letter-spacing: -.028em; }
.nr-body { font-family: var(--nr-display); font-size: 1.15rem; line-height: 1.66; }
.nr-body p { margin-bottom: 17px; }
.nr-body h2 { letter-spacing: -.02em; }
.nr-standfirst { font-family: var(--nr-display); }

.nr-share-btn { border-radius: 9px; }
.nr-savebtn { border-radius: 9px; }

.nr-stat { box-shadow: var(--nr-shadow-sm); border-radius: 14px; }
.nr-listrow { box-shadow: var(--nr-shadow-sm); border-radius: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1060px) {
  .nr-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .nr-footer-main .nr-footer-in { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  .nr-brandbar-in {
    grid-template-columns: auto auto;
    gap: 12px;
  }
  .nr-hsearch { grid-column: 1 / -1; order: 3; }
  .nr-brandbar-actions .nr-btn { display: none; }
  .nr-burger { display: inline-flex; }
  .nr-usermenu-name { display: none; }
}

@media (max-width: 720px) {
  .nr-utility-in { height: 32px; font-size: .68rem; gap: 8px; padding: 0 12px; }
  .nr-weather, .nr-utility-sep { display: none; }
  .nr-brandbar-in { padding: 12px; }
  .nr-logoname { font-size: 1.2rem; }
  .nr-logotag { font-size: .44rem; letter-spacing: .2em; }
  .nr-hsearch { height: 38px; padding: 0 13px; }

  .nr-hero-grid { padding: 14px 0 4px; gap: 18px; }
  .nr-hero-title { font-size: 1.55rem; }
  .nr-hero-stand { font-size: .94rem; }
  .nr-railcard { padding: 14px; }

  .nr-authwrap { padding: 0; align-items: stretch; }
  .nr-authcard {
    max-width: none; min-height: 100vh;
    border: 0; border-radius: 0; box-shadow: none;
    padding: 28px 20px 40px;
    display: flex; flex-direction: column; justify-content: center;
  }

  .nr-footer-main { padding: 26px 0 20px; }
  .nr-footer-main .nr-footer-in { grid-template-columns: 1fr; gap: 20px; }
  .nr-footer-legal .nr-footer-in { flex-direction: column; align-items: flex-start; gap: 8px; }

  .nr-newsletter-in { padding: 24px 14px; text-align: center; justify-content: center; }
  .nr-newsletter-cta { width: 100%; }

  .nr-band { margin-top: 18px; }
  .nr-body { font-size: 1.08rem; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  .nr-authcard, .nr-dropdown, .nr-suggest { animation: none; }
  .nr-skeleton { animation: none; }
}
