/* NousRoyalistes V2.11 — editorial cleanup requested after the V2.10.4 edge fix. */

/* These elements are removed from current markup; the rules also protect visitors
   who receive a temporarily mixed HTML/CSS version from an intermediary cache. */
.seo-breadcrumbs,
.nr-page-emblem,
.beta-maintenance-mark {
  display: none !important;
}

.nr-title-with-icon {
  padding-left: 0 !important;
}

.nr-maintenance-title {
  display: block !important;
  margin: 22px 0;
}

/* Editorial cards: the image fills its column, the old full-card sheen is removed,
   and both secondary stories use the same restrained image zoom as Louis XVI. */
.nr-home .nr-story {
  align-items: stretch;
}

.nr-story-image {
  display: block;
  min-height: 230px;
  overflow: hidden;
  border-radius: 18px 0 18px 0;
  background: var(--navy);
  isolation: isolate;
}

.nr-story-image img {
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  object-fit: cover;
  object-position: center;
  transition: transform .55s var(--ease, cubic-bezier(.2, .75, .25, 1));
  will-change: transform;
}

.nr-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 8px;
}

.nr-story > .nr-sheen-layer {
  display: none !important;
}

/* Content icons belong to their headings rather than to a separate line. */
.nr-universe h3,
.nr-method-list h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.12;
}

.nr-universe h3 img.nr-universe-icon,
.nr-method-list h3 img.nr-heading-icon {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 44px;
  margin: 0;
  object-fit: contain;
}

/* Social destinations read as three small editorial cards, using the existing
   local platform artwork instead of generic browser favicons. */
.nr-socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.nr-socials .nr-social-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(214, 182, 111, .24);
  border-radius: 14px 2px 14px 2px;
  background: rgba(255, 255, 255, .035);
  color: #f8f3ea;
  transition: transform .28s var(--ease, ease), border-color .28s ease, background-color .28s ease;
}

.nr-socials .nr-social-link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nr-socials .nr-social-link span {
  display: block;
  min-width: 0;
}

.nr-socials .nr-social-link strong,
.nr-socials .nr-social-link small {
  display: block;
}

.nr-socials .nr-social-link strong {
  font: 600 13px/1.15 var(--sans, Inter, sans-serif);
}

.nr-socials .nr-social-link small {
  margin-top: 4px;
  overflow: hidden;
  color: #aebdc7;
  font-size: 9px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nr-socials .nr-social-link b {
  color: var(--gold-2, #d4b66f);
  font-size: 15px;
  font-weight: 400;
  transition: transform .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nr-story:hover .nr-story-image img {
    transform: scale(1.055);
  }

  .nr-socials .nr-social-link:hover {
    border-color: rgba(214, 182, 111, .58);
    background: rgba(214, 182, 111, .075);
    color: #fff;
    transform: translateY(-3px);
  }

  .nr-socials .nr-social-link:hover b {
    transform: translate(2px, -2px);
  }
}

@media (max-width: 850px) {
  .nr-story-image {
    height: 210px;
    min-height: 0;
    margin-bottom: 20px;
  }

  .nr-story-copy {
    padding: 0 0 20px;
  }

  .nr-socials {
    grid-template-columns: 1fr;
    max-width: 430px;
  }
}

@media (max-width: 600px) {
  .nr-story-image {
    height: 190px;
    margin: 0;
  }

  .nr-story-copy {
    padding: 0;
  }

  .nr-universe h3,
  .nr-method-list h3 {
    gap: 9px;
  }

  .nr-universe h3 img.nr-universe-icon,
  .nr-method-list h3 img.nr-heading-icon {
    width: 35px;
    height: 38px;
  }
}

@media (max-width: 370px) {
  .nr-story-image {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nr-story-image img,
  .nr-socials .nr-social-link,
  .nr-socials .nr-social-link b {
    transition: none;
  }
}

/* V2.11.1 — explicit editorial publication notice. It lives in the document
   flow and scrolls away, so it cannot be confused with a rendering artefact. */
.nr-publication-banner {
  position: relative;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 7px max(18px, env(safe-area-inset-right, 0px)) 7px max(18px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(214, 182, 111, .28);
  background:
    linear-gradient(90deg, rgba(214, 182, 111, .055), transparent 26%, transparent 74%, rgba(214, 182, 111, .055)),
    #021320;
  color: #d8d4cb;
  font: 500 10px/1.35 var(--sans, Inter, Arial, sans-serif);
  letter-spacing: .025em;
  text-align: center;
}

.nr-publication-banner i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4b66f;
  box-shadow: 0 0 0 4px rgba(214, 182, 111, .10);
}

.nr-publication-banner strong {
  color: #f1d89f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nr-publication-banner .nr-publication-detail {
  color: #aebbc3;
}

/* The floating header starts below the notice, then returns to its normal
   compact position as soon as the notice has scrolled out of view. */
body > .nr-publication-banner ~ .site-header {
  top: 56px;
}

body > .nr-publication-banner ~ .site-header.scrolled {
  top: 12px;
}

/* Maintenance screens remain exactly one dynamic viewport high. */
body.beta-maintenance-body > .nr-publication-banner {
  position: absolute;
  inset: 0 0 auto;
}

@media (max-width: 600px) {
  .nr-publication-banner {
    min-height: 32px;
    padding-block: 7px;
  }

  .nr-publication-banner .nr-publication-detail {
    display: none;
  }

  body > .nr-publication-banner ~ .site-header {
    top: 48px;
  }

  body > .nr-publication-banner ~ .site-header.scrolled {
    top: 8px;
  }
}

/* Article reading rhythm: a calmer measure, clearer section breaks and a
   restrained emphasis for the few sentences that carry each argument. */
.reader-copy {
  width: min(100%, 690px);
}

.reader-copy > p:not(.nr-reader-note) {
  margin-bottom: 28px;
  line-height: 1.9;
}

main :where(p, li, blockquote) {
  text-wrap: pretty;
}

.reader-copy > h2 {
  margin-top: 66px;
  margin-bottom: 22px;
  text-wrap: balance;
}

.reader-copy > h2:first-child,
.reader-copy > .nr-takeaways:first-child + h2 {
  margin-top: 46px;
}

.reader-copy .article-key {
  color: var(--ink);
  font-weight: 700;
}

html[data-theme="night"] .reader-copy .article-key {
  color: #fff7e8;
}

.reader-copy .article-closing-quote p {
  text-wrap: balance;
}

.reader-copy .article-closing-quote .article-quote-text,
.reader-copy .article-closing-quote cite {
  display: block;
}

.reader-copy .article-closing-quote cite {
  margin-top: 12px;
  color: var(--text-muted);
  font: 600 14px/1.5 var(--sans);
  font-style: normal;
  white-space: nowrap;
}

html[data-theme="night"] .reader-copy .article-closing-quote cite {
  color: #c8c1b5;
}

@media (max-width: 760px) {
  .reader-copy > p:not(.nr-reader-note) {
    margin-bottom: 24px;
    line-height: 1.84;
  }

  .reader-copy > h2 {
    margin-top: 52px;
    margin-bottom: 18px;
  }

  .reader-copy > h2:first-child,
  .reader-copy > .nr-takeaways:first-child + h2 {
    margin-top: 38px;
  }
}

/* Keep the two mobile navigation columns inside the iPhone content area.
   The illustrated icons already create enough separation, so avoid stacking
   an image margin on top of the flex gap. */
@media (max-width: 430px) {
  .mobile-nav-explore {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-nav-explore a {
    min-width: 0;
    padding-inline: 12px !important;
    gap: 8px;
    font-size: 16px !important;
  }

  .mobile-nav-explore img.nr-art-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 38px;
    margin-right: 0;
  }
}

@media (max-width: 360px) {
  .mobile-nav-explore {
    grid-template-columns: 1fr !important;
  }
}
