/* ==========================================================================
   ALGHAF MARINE — EDITORIAL BROADSHEET & DASHBOARD THEME
   Inspired by Financial Times Broadsheet Editorial Typography & Palette
   ========================================================================== */

:root {
  --np-paper: #fff1e5;
  --np-paper-light: #fff8f2;
  --np-paper-card: #fbf0e4;
  --np-paper-tint: #f3e2d3;
  --np-paper-dark: #e8d3c1;
  --np-ink: #111111;
  --np-ink-soft: #242424;
  --np-ink-muted: #4e4a46;
  --np-ink-faint: #7a746e;
  --np-rule: #111111;
  --np-rule-subtle: rgba(17, 17, 17, 0.2);
  --np-rule-faint: rgba(17, 17, 17, 0.1);
  --np-claret: #990f3d;
  --np-claret-dark: #7a0c30;
  --np-navy: #0a2540;
  --np-navy-dark: #06192c;
  --np-teal: #006666;
  --np-amber: #995500;
  --np-green: #0a6640;
}

body.home,
body.sheet {
  background-color: var(--np-paper) !important;
  color: var(--np-ink) !important;
  font-family: var(--font-sans) !important;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Container for broadsheet */
.np-sheet {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 48px;
  background-color: var(--np-paper);
}

/* ==========================================================================
   TOP MASTHEAD & PUBLICATION STRIP
   ========================================================================== */

.np-topstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--np-rule);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-ink-muted);
}

.np-topstrip__meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.np-topstrip__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--np-claret);
}

.np-topstrip__live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--np-claret);
  border-radius: 50%;
  animation: npPulse 2s infinite;
}

@keyframes npPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.np-masthead {
  text-align: center;
  padding: 24px 0 16px;
  border-bottom: 3px double var(--np-rule);
  position: relative;
}

.np-masthead__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  color: var(--np-ink);
}

.np-masthead__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.np-masthead__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
  color: var(--np-ink);
  text-transform: uppercase;
}

.np-masthead__subtitle {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--np-ink-muted);
}

/* ==========================================================================
   NAVIGATION BAR (Broadsheet Style)
   ========================================================================== */

.np-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--np-rule);
  font-size: 13px;
  font-weight: 700;
}

.np-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-nav-links a {
  text-decoration: none;
  color: var(--np-ink);
  padding: 2px 0;
  position: relative;
  transition: color 0.15s ease;
}

.np-nav-links a:hover {
  color: var(--np-claret);
}

.np-nav-links a.active {
  border-bottom: 2px solid var(--np-claret);
}

.np-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.np-lang-switch {
  display: flex;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--np-rule-subtle);
  background: var(--np-paper-card);
}

.np-lang-switch a {
  text-decoration: none;
  color: var(--np-ink-muted);
  font-weight: 600;
}

.np-lang-switch a.is-active {
  color: var(--np-ink);
  font-weight: 800;
  text-decoration: underline;
}

.np-btn-waitlist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--np-claret);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--np-claret-dark);
  transition: background-color 0.15s ease;
}

.np-btn-waitlist:hover {
  background-color: var(--np-claret-dark);
}

/* ==========================================================================
   FRONT-PAGE EDITORIAL TEASERS / RIBBONS
   ========================================================================== */

.np-ribbons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media (max-width: 768px) {
  .np-ribbons {
    grid-template-columns: 1fr;
  }
}

.np-ribbon {
  padding: 14px 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-ribbon--claret {
  background-color: var(--np-claret);
}

.np-ribbon--navy {
  background-color: var(--np-navy);
}

.np-ribbon__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

.np-ribbon__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

.np-ribbon__text {
  font-size: 13px;
  line-height: 1.4;
  margin: 2px 0 0;
  opacity: 0.95;
}

/* ==========================================================================
   FRONT-PAGE LEAD ARTICLE & BRIEFING GRID
   ========================================================================== */

.np-lead-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  padding: 20px 0 28px;
  border-bottom: 2px solid var(--np-rule);
}

@media (max-width: 900px) {
  .np-lead-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.np-lead-story {
  border-right: 1px solid var(--np-rule-subtle);
  padding-right: 28px;
}

@media (max-width: 900px) {
  .np-lead-story {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--np-rule-subtle);
    padding-bottom: 24px;
  }
}

.np-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--np-claret);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.np-kicker::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background-color: var(--np-claret);
}

.np-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--np-ink);
  letter-spacing: -0.01em;
}

.np-subheadline {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--np-ink-soft);
  margin: 0 0 16px;
  font-style: italic;
  border-bottom: 1px solid var(--np-rule-faint);
  padding-bottom: 14px;
}

.np-dateline {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--np-ink-muted);
  margin-bottom: 14px;
}

/* Multi-column editorial text */
.np-story-columns {
  columns: 3 210px;
  column-gap: 22px;
  column-rule: 1px solid var(--np-rule-faint);
  font-size: 14px;
  line-height: 1.6;
  color: var(--np-ink-soft);
}

.np-story-columns p {
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
}

.np-story-columns p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.85;
  float: left;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--np-ink);
}

.np-quote-box {
  margin: 14px 0;
  padding: 10px 14px;
  background: var(--np-paper-card);
  border-left: 3px solid var(--np-claret);
  font-size: 13px;
  font-style: italic;
  break-inside: avoid;
}

/* ==========================================================================
   FT BRIEFING SIDEBAR
   ========================================================================== */

.np-briefing {
  display: flex;
  flex-direction: column;
}

.np-briefing__box {
  border: 1px solid var(--np-rule);
  padding: 16px 18px;
  background-color: var(--np-paper-card);
}

.np-briefing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--np-claret);
}

.np-briefing__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--np-claret);
}

.np-briefing__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--np-claret);
  color: #ffffff;
  padding: 2px 6px;
}

.np-briefing__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.np-briefing__item {
  font-size: 13px;
  line-height: 1.45;
  color: var(--np-ink-soft);
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--np-rule-subtle);
  position: relative;
  padding-left: 14px;
}

.np-briefing__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.np-briefing__item::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--np-claret);
  font-weight: bold;
}

.np-briefing__item strong {
  color: var(--np-ink);
  font-weight: 700;
}

.np-briefing__link {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--np-claret);
  text-decoration: none;
}

.np-briefing__link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   DASHBOARD SECTION & TILES ("Плитка с ценами, продуктами, операциями")
   ========================================================================== */

.np-dashboard-header {
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--np-rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.np-dashboard-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.np-dashboard-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-ink-muted);
}

.np-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .np-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Single Tile Container */
.np-tile {
  background: var(--np-paper-light);
  border: 1px solid var(--np-rule);
  box-shadow: 2px 2px 0 var(--np-rule);
  display: flex;
  flex-direction: column;
}

.np-tile--full {
  grid-column: 1 / -1;
}

.np-tile__head {
  padding: 12px 18px;
  background: var(--np-paper-tint);
  border-bottom: 1px solid var(--np-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.np-tile__title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.np-tile__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--np-ink);
}

.np-tile__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--np-ink);
  color: #ffffff;
}

.np-tile__badge--claret {
  background: var(--np-claret);
}

.np-tile__badge--amber {
  background: var(--np-amber);
}

.np-tile__badge--teal {
  background: var(--np-teal);
}

.np-tile__meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--np-ink-muted);
  letter-spacing: 0.04em;
}

.np-tile__body {
  padding: 16px 18px;
  flex: 1;
}

.np-tile__foot {
  padding: 10px 18px;
  background: var(--np-paper-card);
  border-top: 1px solid var(--np-rule-subtle);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.np-tile__link {
  font-weight: 700;
  color: var(--np-claret);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.np-tile__link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   TILE 1: PRICES & BENCHMARK TABLES
   ========================================================================== */

.np-prices-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .np-prices-split {
    grid-template-columns: 1fr;
  }
}

.np-table-box {
  border: 1px solid var(--np-rule-subtle);
  background: #ffffff;
}

.np-table-box__head {
  padding: 6px 10px;
  background: var(--np-paper-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--np-rule-subtle);
  display: flex;
  justify-content: space-between;
}

.np-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.home .mib-table thead th,
.np-table th {
  background: var(--np-paper-dark) !important;
  color: var(--np-ink) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--np-rule-subtle) !important;
  padding: 6px 10px !important;
}

body.home .mib-table tbody th,
body.home .mib-table tbody td,
.np-table td {
  background: #ffffff !important;
  padding: 6px 10px !important;
  text-align: left;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08) !important;
  color: var(--np-ink-soft) !important;
}

body.home .mib-table tbody tr:hover th,
body.home .mib-table tbody tr:hover td,
.np-table tbody tr:hover {
  background: var(--np-paper-card) !important;
}

.np-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.np-table a.mib-product {
  color: var(--np-ink);
  text-decoration: none;
  font-weight: 600;
}

.np-table a.mib-product:hover {
  color: var(--np-claret);
  text-decoration: underline;
}

.np-table td.mib-mid {
  font-weight: 700;
  white-space: nowrap;
}

.np-table td.mib-dir--up {
  color: #0b7348;
}

.np-table td.mib-dir--down {
  color: #b01b2a;
}

.np-table td.mib-dir--stable {
  color: var(--np-ink-faint);
}

.np-table tbody tr:hover {
  background-color: var(--np-paper-card);
}

/* ==========================================================================
   TILE 2: PRODUCTS MATRIX ("Плитка с продуктами")
   ========================================================================== */

.np-product-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.np-pcard {
  border: 1px solid var(--np-rule-subtle);
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.np-pcard:hover {
  border-color: var(--np-rule);
  box-shadow: 2px 2px 0 var(--np-rule);
}

.np-pcard__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.np-pcard__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--np-ink);
  margin: 0;
  line-height: 1.2;
}

.np-pcard__name a {
  color: inherit;
  text-decoration: none;
}

.np-pcard__name a:hover {
  color: var(--np-claret);
}

.np-pcard__status {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 5px;
  white-space: nowrap;
}

.np-pcard__status--red {
  background: #fbe6ea;
  color: var(--np-claret);
  border: 1px solid var(--np-claret);
}

.np-pcard__status--amber {
  background: #fff4e5;
  color: var(--np-amber);
  border: 1px solid var(--np-amber);
}

.np-pcard__status--dark {
  background: #eaeaea;
  color: var(--np-ink);
  border: 1px solid var(--np-ink);
}

.np-pcard__spec {
  font-size: 11.5px;
  color: var(--np-ink-muted);
  line-height: 1.4;
  margin: 0;
}

.np-pcard__meta {
  font-size: 11px;
  color: var(--np-ink-soft);
  margin: 2px 0 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px dotted var(--np-rule-faint);
  padding-top: 5px;
}

.np-pcard__meta span {
  font-weight: 600;
}

/* ==========================================================================
   TILE 3: OPERATIONS & GATE DESKS ("Плитка еще с чем то")
   ========================================================================== */

.np-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.np-opcard {
  border: 1px solid var(--np-rule);
  background: var(--np-paper-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.np-opcard__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--np-claret);
  margin-bottom: 6px;
}

.np-opcard__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--np-ink);
  line-height: 1.2;
}

.np-opcard__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--np-ink-soft);
  margin: 0 0 14px;
}

.np-opcard__action {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--np-ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--np-rule);
  background: #ffffff;
  transition: all 0.15s ease;
  width: fit-content;
}

.np-opcard__action:hover {
  background: var(--np-claret);
  color: #ffffff;
  border-color: var(--np-claret);
}

/* ==========================================================================
   WAITLIST APPLICATION SECTION (#queue)
   ========================================================================== */

.np-queue-section {
  margin: 36px 0 24px;
  border: 2px solid var(--np-rule);
  background: var(--np-paper-card);
  padding: 24px 28px;
}

.np-queue-header {
  border-bottom: 1px solid var(--np-rule);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.np-queue-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--np-claret);
  margin-bottom: 6px;
}

.np-queue-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  margin: 0 0 8px;
  font-weight: 400;
}

.np-queue-warning {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--np-ink-soft);
  background: #ffffff;
  border-left: 4px solid var(--np-claret);
  padding: 10px 14px;
  margin-top: 12px;
}

.np-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.np-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.np-field--full {
  grid-column: 1 / -1;
}

.np-field label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--np-ink);
}

.np-field input,
.np-field select,
.np-field textarea {
  border: 1px solid var(--np-rule);
  background: #ffffff;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--np-ink);
  border-radius: 0;
  box-sizing: border-box;
  width: 100%;
}

.np-field input:focus,
.np-field textarea:focus {
  outline: 2px solid var(--np-claret);
  outline-offset: 1px;
}

.np-field textarea {
  min-height: 70px;
  resize: vertical;
}

.np-queue-submit-row {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.np-submit-btn {
  background: var(--np-claret);
  color: #ffffff;
  border: 1px solid var(--np-claret-dark);
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.np-submit-btn:hover {
  background: var(--np-claret-dark);
}

.np-form-notice {
  font-size: 11.5px;
  color: var(--np-ink-muted);
  max-width: 480px;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   COLOPHON & FOOTER
   ========================================================================== */

.np-footer {
  margin-top: 36px;
  border-top: 3px double var(--np-rule);
  padding-top: 20px;
  font-size: 12px;
  color: var(--np-ink-muted);
}

.np-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--np-rule-subtle);
}

@media (max-width: 800px) {
  .np-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .np-footer-grid {
    grid-template-columns: 1fr;
  }
}

.np-footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--np-ink);
  margin: 0 0 10px;
}

.np-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-footer-col a {
  color: var(--np-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.np-footer-col a:hover {
  color: var(--np-claret);
}

.np-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  font-size: 11px;
}

.np-asof {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Front page: short standfirst + CommodityScope widgets */
.np-front {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.7fr);
  gap: 28px;
  align-items: start;
  padding: 22px 0 18px;
  border-bottom: 2px solid var(--np-rule);
}

.np-standfirst {
  max-width: 40rem;
  padding: 0;
}

.np-standfirst h1,
.np-standfirst h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 12px;
}

.np-standfirst p {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.45;
}

.np-standfirst__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.np-standfirst__links a {
  color: var(--np-claret);
  text-decoration: none;
  border-bottom: 1px solid var(--np-claret);
}

.np-report {
  border-left: 1px solid var(--np-rule-subtle);
  padding: 4px 0 4px 22px;
}

.np-report h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 10px;
}

.np-report p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
}

.np-breaking-news {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 4px solid var(--np-claret);
}

.np-breaking-news__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-breaking-news__meta strong {
  padding: 3px 7px;
  background: var(--np-claret);
  color: #ffffff;
}

.np-breaking-news__meta time {
  color: var(--np-ink-muted);
  white-space: nowrap;
}

.np-breaking-news h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.08;
  text-wrap: balance;
}

.np-breaking-news p {
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.np-breaking-news .np-breaking-news__source {
  margin: 14px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--np-rule-subtle);
  color: var(--np-ink-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .np-front {
    grid-template-columns: 1fr;
  }

  .np-report {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--np-rule);
    padding-top: 16px;
  }
}

.np-markets {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 3px double var(--np-rule);
}

.np-markets__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.np-markets__head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.np-markets__note {
  margin: 0;
  max-width: 36rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--np-ink-muted);
}

.np-markets__note a {
  color: var(--np-claret);
}

.np-widget-group {
  margin: 14px 0 4px;
}

.np-widget-group h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--np-rule);
}

.np-widgets {
  --cs-scale: 0.7;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: start;
}

.np-widgets [data-cs-embed] {
  height: calc(224px * var(--cs-scale));
  min-height: 0;
  overflow: hidden;
}

.np-widgets iframe {
  transform: scale(var(--cs-scale));
  transform-origin: top left;
  width: calc(100% / var(--cs-scale)) !important;
  max-width: none !important;
  height: 224px !important;
}

@media (max-width: 900px) {
  .np-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .np-widgets {
    --cs-scale: 0.82;
    grid-template-columns: 1fr;
  }
}

/* Inner pages that share the broadsheet: contact, report, deal room */
body.sheet .page-hero {
  padding: 22px 0 10px;
  border-bottom: 2px solid var(--np-rule);
  background: transparent;
}

body.sheet .container {
  width: auto;
  max-width: none;
  padding-inline: 0;
}

body.sheet .section {
  padding-block: 1.35rem;
}

body.sheet .breadcrumb,
body.sheet .page-hero .breadcrumb {
  margin: 0 0 8px;
  color: var(--np-claret);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.sheet .breadcrumb a {
  color: inherit;
  text-decoration: none;
}

body.sheet .eyebrow {
  color: var(--np-claret);
}

body.sheet .display,
body.sheet .heading,
body.sheet .subheading {
  color: var(--np-ink);
  font-family: var(--font-display);
  font-weight: 400;
}

body.sheet .page-hero .display,
body.sheet .page-login .display {
  max-width: none;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

body.sheet .lead,
body.sheet .seo-intro,
body.sheet .muted,
body.sheet .content p,
body.sheet .content li {
  color: var(--np-ink-soft);
}

body.sheet .content {
  max-width: 46rem;
}

body.sheet .card {
  border: 1px solid var(--np-rule);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.sheet .form-panel {
  border: 1px solid var(--np-rule);
  border-radius: 0;
  background: var(--np-paper-card);
  box-shadow: none;
}

body.sheet .field label {
  color: var(--np-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.sheet .field input,
body.sheet .field textarea {
  border: 1px solid var(--np-rule);
  border-radius: 0;
  background: #fff;
  color: var(--np-ink);
}

body.sheet .btn-primary {
  border: 1px solid var(--np-claret-dark);
  border-radius: 0;
  background: var(--np-claret);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.sheet .btn-primary:hover {
  background: var(--np-claret-dark);
}

body.sheet .btn-quiet {
  border: 1px solid var(--np-rule);
  border-radius: 0;
  background: #fff;
  color: var(--np-ink);
}

body.sheet .notice {
  border-left: 3px solid var(--np-claret);
  border-radius: 0;
  background: #fff;
  color: var(--np-ink-soft);
}

body.sheet .desk-channel {
  border: 1px solid var(--np-rule);
  background: #fff;
  color: var(--np-ink);
  text-decoration: none;
}

body.sheet .desk-channel__kicker {
  color: var(--np-claret);
}

body.sheet .desk-channel strong,
body.sheet .desk-channel__row a {
  color: var(--np-ink);
}

body.sheet .gate-email-badge {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--np-rule);
  border-radius: 0;
  background: #fff;
  color: var(--np-ink);
  font-size: 0.95rem;
}

body.sheet .gate-code-input {
  letter-spacing: 0.28em;
  font-size: 1.25rem;
  text-align: center;
}

body.sheet .form-stack .btn-quiet {
  margin-top: 0.75rem;
}

body.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

body.sheet th,
body.sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  text-align: left;
}

body.sheet thead th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--np-paper-dark);
}

@media (min-width: 900px) {
  body.sheet .form-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 2.5rem;
  }
}

/* Product range on /products */
.range {
  display: grid;
  gap: 28px;
}

.range-group h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #111;
}

.range-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0 28px;
}

.range-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}

.range-list li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.range-no {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #990f3d;
  padding-top: 3px;
}

.range-en {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

/* Closed buyer-qualification entrance. Not linked from the public nav. */
body.sheet.buyer-gate .qualify-desk {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

body.sheet.buyer-gate .qualify-form {
  margin: 0;
}

body.sheet.buyer-gate .qualify-form .heading,
body.sheet.buyer-gate .qualify-index .heading {
  margin: 0 0 0.65rem;
  font-size: clamp(26px, 3vw, 34px);
}

body.sheet.buyer-gate .qualify-help,
body.sheet.buyer-gate .qualify-foot {
  margin: 0;
  color: var(--np-ink-muted);
  font-size: 0.95rem;
}

body.sheet.buyer-gate .qualify-form .btn-primary {
  min-height: 44px;
  width: 100%;
}

body.sheet.buyer-gate .field-error {
  display: none;
  margin: 0;
  color: var(--np-claret);
  font-size: 0.85rem;
  font-weight: 700;
}

body.sheet.buyer-gate input:user-invalid,
body.sheet.buyer-gate input.user-invalid-fallback {
  border-color: var(--np-claret);
}

body.sheet.buyer-gate input:user-invalid ~ .field-error,
body.sheet.buyer-gate input.user-invalid-fallback ~ .field-error {
  display: block;
}

body.sheet.buyer-gate input:focus-visible,
body.sheet.buyer-gate .btn:focus-visible,
body.sheet.buyer-gate a:focus-visible {
  outline: 2px solid var(--np-claret);
  outline-offset: 2px;
}

body.sheet.buyer-gate .qualify-status {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--np-rule);
  color: var(--np-ink);
  font-size: 0.95rem;
}

body.sheet.buyer-gate .qualify-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--np-rule);
}

body.sheet.buyer-gate .qualify-steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

body.sheet.buyer-gate .qualify-steps__no {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--np-ink-muted);
  padding-top: 3px;
}

body.sheet.buyer-gate .qualify-steps li[aria-current="step"] .qualify-steps__no,
body.sheet.buyer-gate .qualify-steps li[aria-current="step"] .qualify-steps__note {
  color: var(--np-claret);
}

body.sheet.buyer-gate .qualify-steps__name {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

body.sheet.buyer-gate .qualify-steps__note {
  display: block;
  margin-top: 2px;
  color: var(--np-ink-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

body.sheet.buyer-gate .qualify-steps li[aria-current="step"] .qualify-steps__note {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.sheet.buyer-gate .qualify-steps a.qualify-steps__name {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.sheet.buyer-gate .qualify-email-line {
  margin: 0;
  color: var(--np-ink-muted);
  font-size: 0.92rem;
}

body.sheet.buyer-gate .qualify-email-line strong {
  color: var(--np-ink);
  font-weight: 800;
}

body.sheet.buyer-gate .qualify-email-line a {
  margin-left: 0.6rem;
  color: var(--np-claret);
  font-weight: 800;
}

body.sheet.buyer-gate .qualify-status--error {
  color: var(--np-claret);
}

body.sheet.buyer-gate .qualify-range {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

body.sheet.buyer-gate .qualify-range legend {
  margin: 0 0 0.75rem;
  padding: 0;
}

body.sheet.buyer-gate .qualify-group {
  border-top: 1px solid rgba(17, 17, 17, 0.16);
}

body.sheet.buyer-gate .qualify-group:not([open]) > .qualify-options {
  display: none;
}

body.sheet.buyer-gate .qualify-group:last-child {
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

body.sheet.buyer-gate .qualify-group summary {
  padding: 12px 0;
  font-weight: 800;
  cursor: pointer;
}

body.sheet.buyer-gate .qualify-group summary:focus-visible {
  outline: 2px solid var(--np-claret);
  outline-offset: 2px;
}

body.sheet.buyer-gate .qualify-options {
  padding-bottom: 8px;
}

body.sheet.buyer-gate .qualify-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 4px 0 4px 0.2rem;
  font-weight: 700;
  line-height: 1.3;
}

body.sheet.buyer-gate .qualify-option input {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  accent-color: var(--np-claret);
}

body.sheet.buyer-gate .qualify-option:has(input:checked) span {
  color: var(--np-claret);
}

body.sheet.buyer-gate .qualify-pick {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--np-rule);
  background: var(--np-paper);
}

body.sheet.buyer-gate .qualify-pick:not([hidden]) {
  display: flex;
}

body.sheet.buyer-gate:has(.qualify-pick:not([hidden])) .np-sheet {
  padding-bottom: 108px;
}

body.sheet.buyer-gate .qualify-pick__label {
  margin: 0;
  color: var(--np-claret);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sheet.buyer-gate .qualify-pick__name {
  margin: 2px 0 0;
  font-weight: 800;
  line-height: 1.3;
}

body.sheet.buyer-gate .qualify-pick .qualify-status {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  font-size: 0.85rem;
}

body.sheet.buyer-gate .qualify-pick .btn-primary {
  width: auto;
  min-width: 12rem;
  min-height: 44px;
}

@media (max-width: 640px) {
  body.sheet.buyer-gate .qualify-pick {
    align-items: stretch;
    flex-direction: column;
  }

  body.sheet.buyer-gate .qualify-pick .btn-primary {
    width: 100%;
  }
}

@media (min-width: 900px) {
  body.sheet.buyer-gate .qualify-desk {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.72fr);
    gap: 3rem;
  }
}

body.sheet.buyer-gate .qualify-procedure h3 {
  margin: 1.4rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
}

body.sheet.buyer-gate .qualify-procedure p,
body.sheet.buyer-gate .qualify-procedure li {
  margin: 0 0 0.7rem;
  color: var(--np-ink-soft);
}

body.sheet.buyer-gate .qualify-procedure ul,
body.sheet.buyer-gate .qualify-procedure ol {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}

body.sheet.buyer-gate .qualify-procedure__kicker {
  margin: 0 0 0.35rem;
  color: var(--np-claret);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sheet.buyer-gate .qualify-procedure__version {
  margin: 0 0 1rem;
  color: var(--np-ink-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sheet.buyer-gate .qualify-callout {
  margin: 0 0 0.8rem;
  padding: 0.75rem 0 0.75rem 0.85rem;
  border-left: 3px solid var(--np-claret);
  color: var(--np-ink);
}

body.sheet.buyer-gate .qualify-accept {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--np-rule);
  background: var(--np-paper);
}

body.sheet.buyer-gate .qualify-accept[hidden] {
  display: none;
}

body.sheet.buyer-gate:has(.qualify-accept:not([hidden])) .np-sheet {
  padding-bottom: 280px;
}

body.sheet.buyer-gate .qualify-accept__checks {
  display: grid;
  gap: 8px;
}

body.sheet.buyer-gate .qualify-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

body.sheet.buyer-gate .qualify-check input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  accent-color: var(--np-claret);
}

body.sheet.buyer-gate .qualify-accept__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.sheet.buyer-gate .qualify-accept .btn-primary,
body.sheet.buyer-gate .qualify-accept .btn-quiet {
  min-height: 44px;
  width: auto;
}

body.sheet.buyer-gate .qualify-accept .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.sheet.buyer-gate .qualify-accept .qualify-status {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 800px) {
  body.sheet.buyer-gate:has(.qualify-accept:not([hidden])) .np-sheet {
    padding-bottom: 168px;
  }

  body.sheet.buyer-gate .qualify-accept {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  body.sheet.buyer-gate .qualify-accept .qualify-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 799px) {
  body.sheet.buyer-gate .qualify-accept .btn-primary,
  body.sheet.buyer-gate .qualify-accept .btn-quiet {
    width: 100%;
  }
}

body.sheet.buyer-gate .buyer-confirm {
  width: min(36rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.4rem 1.3rem 1.25rem;
  border: 2px solid var(--np-rule);
  border-radius: 0;
  background: var(--np-paper);
  color: var(--np-ink);
}

body.sheet.buyer-gate .buyer-confirm::backdrop {
  background: rgba(17, 17, 17, 0.55);
}

body.sheet.buyer-gate .buyer-confirm__kicker {
  margin: 0 0 0.35rem;
  color: var(--np-claret);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sheet.buyer-gate .buyer-confirm .heading {
  margin: 0 0 0.8rem;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

body.sheet.buyer-gate .buyer-confirm__ref,
body.sheet.buyer-gate .buyer-confirm__mail {
  margin: 0 0 0.75rem;
}

body.sheet.buyer-gate .buyer-confirm .btn-primary {
  min-height: 44px;
  width: 100%;
  margin-top: 0.4rem;
}
