/* ============================================================================
   Mizan Steel — design system.
   Mobile-first. Every rule below assumes a 360px phone until a min-width query
   says otherwise. RTL throughout; logical properties only (inline-start/end),
   never left/right, so the layout never fights the direction.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink:        #0A1628;
  --navy-900:   #0D1B2E;
  --navy-800:   #12263F;
  --navy-700:   #1B3A5C;
  --navy-600:   #24507E;

  --steel-600:  #475569;
  --steel-500:  #64748B;
  --steel-400:  #94A3B8;
  --steel-300:  #CBD5E1;
  --steel-200:  #DFE6EF;
  --steel-100:  #EDF1F7;

  --paper:      #F5F8FC;
  --white:      #FFFFFF;

  --gold:       #C9A227;
  --gold-light: #E8C765;
  --gold-dark:  #9A7B12;
  --gold-wash:  #FBF6E4;

  --blue:       #2563EB;
  --blue-wash:  #EFF5FF;
  --violet:     #7C3AED;

  --up:         #15A34A;
  --up-wash:    #EAF7EF;
  --down:       #DC2626;
  --down-wash:  #FDEEEE;
  --warn:       #B45309;
  --warn-wash:  #FEF6E7;

  --wa:         #25D366;
  --wa-dark:    #128C7E;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --sh-sm: 0 1px 2px rgba(10,22,40,.06), 0 1px 3px rgba(10,22,40,.05);
  --sh:    0 2px 6px rgba(10,22,40,.06), 0 8px 20px rgba(10,22,40,.06);
  --sh-lg: 0 10px 34px rgba(10,22,40,.12), 0 2px 8px rgba(10,22,40,.06);
  --sh-gold: 0 6px 22px rgba(201,162,39,.28);

  --font: "Tajawal", "Segoe UI", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-num: "Inter", "Tajawal", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1180px;
  --topbar-h: 60px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }                    /* stops flex/grid children forcing overflow */
html, body { max-width: 100%; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--navy-900);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-inline-start: 1.25em; }
hr { border: 0; border-top: 1px solid var(--steel-200); margin: 28px 0; }

/* numerals: always tabular so columns of prices line up and never jitter */
.num, .price, td.n, .stat-v, .core-v {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 40px; }
.section-tight { padding-block: 26px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: clamp(20px, 5.2vw, 30px); }
.sec-head .sub { color: var(--steel-500); font-size: 14px; }
.sec-head .spacer { flex: 1 1 auto; }
.grid { display: grid; gap: 14px; }
@media (min-width: 700px)  { .wrap { padding-inline: 24px; } .section { padding-block: 60px; } .grid { gap: 18px; } }
@media (min-width: 980px)  { .section { padding-block: 76px; } }

/* ============================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13,27,46,.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.topbar-in { display: flex; align-items: center; gap: 12px; height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; flex: 0 0 auto; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  display: grid; place-items: center; color: #1a1405; font-size: 15px; font-weight: 900;
  box-shadow: 0 2px 8px rgba(201,162,39,.4);
}
.brand b { color: var(--gold-light); font-weight: 800; }
.nav-desk { display: none; }
.topbar .spacer { flex: 1 1 auto; }
.burger {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; cursor: pointer;
}
.burger span { display: block; width: 17px; height: 2px; background: #fff; border-radius: 2px; box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff; }
.topbar .btn-wa-sm { display: none; }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav-desk { display: flex; align-items: center; gap: 2px; }
  .nav-desk a {
    padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500;
    color: rgba(255,255,255,.82); transition: background .15s, color .15s;
  }
  .nav-desk a:hover { background: rgba(255,255,255,.10); color: #fff; }
  .nav-desk a.on { color: var(--gold-light); background: rgba(201,162,39,.14); font-weight: 700; }
  .topbar .btn-wa-sm { display: inline-flex; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6,14,26,.6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(310px, 86vw); background: var(--navy-900); color: #fff;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(-100%); transition: transform .24s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
html[dir="rtl"] .drawer-panel { transform: translateX(100%); }
.drawer.open .drawer-panel { transform: translateX(0) !important; }
.drawer-panel .x { align-self: flex-start; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 9px; font-size: 20px; cursor: pointer; margin-bottom: 8px; }
.drawer-panel a {
  padding: 13px 14px; border-radius: 11px; font-weight: 600; font-size: 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.drawer-panel a.on { background: rgba(201,162,39,.16); color: var(--gold-light); border-color: rgba(201,162,39,.3); }

/* ============================================================================
   TICKER  — the mobile overflow fix lives here.
   The rail is width:max-content and animated with transform, inside a clipped
   track. Nothing can push the page wider because the track is overflow:hidden
   and the body is overflow-x:clip.
   ========================================================================== */
.ticker {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-700) 55%, var(--navy-800));
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff; position: relative;
}
.ticker-track { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.ticker-rail {
  display: flex; align-items: center; width: max-content;
  animation: mz-marquee 46s linear infinite; will-change: transform;
}
.ticker:hover .ticker-rail, .ticker-rail:focus-within { animation-play-state: paused; }
.tick {
  display: inline-flex; align-items: baseline; gap: 7px; flex: 0 0 auto;
  padding: 9px 16px; white-space: nowrap; font-size: 13px;
  border-inline-end: 1px solid rgba(255,255,255,.09);
}
.tick .k { color: rgba(255,255,255,.62); font-weight: 500; }
.tick .v { font-weight: 700; font-family: var(--font-num); font-variant-numeric: tabular-nums; direction: ltr; }
.tick .d { font-size: 11.5px; font-weight: 700; font-family: var(--font-num); direction: ltr; }
.tick .d.up { color: #4ADE80; } .tick .d.dn { color: #F87171; } .tick .d.fl { color: rgba(255,255,255,.5); }
/* The rail holds the item list twice over, so translating by exactly half its
   width lands copy 2 where copy 1 started — a seamless loop.
   Direction matters: in LTR the rail overflows to the right, so it travels
   left (-50%). In RTL it overflows to the LEFT, so it must travel right
   (+50%) — otherwise it walks straight off-screen and the strip reads empty. */
@keyframes mz-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker-rail { animation-name: mz-marquee-rtl; }
@keyframes mz-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-rail { animation: none; }
  .ticker-track { overflow-x: auto; scrollbar-width: none; }
  .ticker-track::-webkit-scrollbar { display: none; }
}

/* ============================================================================
   BUTTONS / PILLS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(140deg, var(--gold-light), var(--gold)); color: #22190A; box-shadow: var(--sh-gold); }
.btn-gold:hover { box-shadow: 0 8px 28px rgba(201,162,39,.42); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-wa { background: var(--wa); color: #05291A; box-shadow: 0 6px 20px rgba(37,211,102,.32); }
.btn-wa:hover { background: #1FBE5B; }
.btn-ghost { background: transparent; border-color: var(--steel-300); color: var(--navy-800); }
.btn-ghost:hover { border-color: var(--navy-600); background: var(--white); }
.btn-ghost-l { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.btn-ghost-l:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-wa-sm { background: var(--wa); color: #05291A; padding: 7px 13px; min-height: 36px; border-radius: 9px; font-size: 13.5px; font-weight: 700; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--steel-100); color: var(--steel-600); border: 1px solid var(--steel-200);
  white-space: nowrap;
}
.pill-gold  { background: var(--gold-wash); color: var(--gold-dark); border-color: #EBDCA6; }
.pill-up    { background: var(--up-wash);   color: var(--up);        border-color: #BFE6CE; }
.pill-down  { background: var(--down-wash); color: var(--down);      border-color: #F5C9C9; }
.pill-warn  { background: var(--warn-wash); color: var(--warn);      border-color: #F0DBB0; }
.pill-blue  { background: var(--blue-wash); color: var(--blue);      border-color: #CFE0FB; }
.pill-live  { background: var(--up-wash); color: var(--up); border-color: #BFE6CE; }
.pill-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: mz-pulse 2s infinite; }
@keyframes mz-pulse { 0%,100% { opacity: 1; } 50% { opacity: .32; } }
.pill-dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.18); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  background:
    radial-gradient(1100px 460px at 82% -12%, rgba(201,162,39,.20), transparent 62%),
    radial-gradient(760px 420px at 8% 4%, rgba(37,99,235,.20), transparent 60%),
    linear-gradient(168deg, var(--navy-900), var(--ink) 72%);
  color: #fff; position: relative; overflow: hidden;
  padding-block: 34px 30px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 7px;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(26px, 7.6vw, 46px); line-height: 1.16; margin-bottom: 12px; letter-spacing: -.025em; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lede { color: rgba(255,255,255,.76); font-size: clamp(14.5px, 3.9vw, 18px); max-width: 62ch; margin-bottom: 18px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .hero-cta { flex-direction: row; flex-wrap: wrap; } .hero-cta .btn { flex: 0 1 auto; } }
@media (min-width: 900px) { .hero { padding-block: 56px 48px; } }

/* ---------- the CORE NUMBERS: the whole point of the page ---------- */
.core {
  display: grid; gap: 12px; margin-top: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .core { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1000px) { .core { grid-template-columns: 1fr 1fr 1.05fr; } }

.core-card {
  background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: 16px 16px 14px;
  backdrop-filter: blur(8px); position: relative; overflow: hidden;
}
.core-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.core-card.blue::before { background: linear-gradient(90deg, #3B82F6, #93C5FD); }
.core-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.core-badge {
  font-family: var(--font-num); font-weight: 800; font-size: 15px; letter-spacing: .5px;
  padding: 4px 11px; border-radius: 8px; background: rgba(201,162,39,.2);
  color: var(--gold-light); border: 1px solid rgba(201,162,39,.34); direction: ltr;
}
.core-card.blue .core-badge { background: rgba(59,130,246,.2); color: #93C5FD; border-color: rgba(59,130,246,.36); }
.core-top .desc { font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.35; }
.core-v {
  font-size: clamp(30px, 9.4vw, 44px); font-weight: 800; line-height: 1.02;
  letter-spacing: -.03em; display: flex; align-items: baseline; gap: 7px;
}
.core-v .cur { font-size: .40em; font-weight: 600; color: rgba(255,255,255,.62); letter-spacing: 0; }
.core-unit { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 3px; }
.core-sub {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.core-sub div { font-size: 12.5px; color: rgba(255,255,255,.58); }
.core-sub b { display: block; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 15px; color: #fff; font-weight: 700; direction: ltr; }

/* market context card */
.core-card.ctx { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); }
.core-card.ctx::before { background: linear-gradient(90deg, var(--steel-400), rgba(255,255,255,.3)); }
.ctx-rows { display: grid; gap: 9px; }
.ctx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.ctx-row .k { color: rgba(255,255,255,.6); }
.ctx-row .v { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; direction: ltr; }
.ctx-row .src { font-size: 11px; color: rgba(255,255,255,.42); }

/* ---------- update state strip ---------- */
.updated {
  display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.6);
}
.updated .sep { opacity: .35; }
.updated b { color: rgba(255,255,255,.92); font-weight: 600; }

/* ============================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--white); border: 1px solid var(--steel-200);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 18px;
}
.card-pad-sm { padding: 14px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card .muted { color: var(--steel-500); font-size: 13.5px; }

.feature { display: flex; gap: 13px; align-items: flex-start; }
.feature .ic {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 20px; background: var(--gold-wash); border: 1px solid #EFE3B8;
}
.feature .ic.blue { background: var(--blue-wash); border-color: #D8E6FD; }
.feature .ic.green { background: var(--up-wash); border-color: #C9E9D6; }
.feature h3 { font-size: 16px; margin-bottom: 3px; }
.feature p { margin: 0; font-size: 13.8px; color: var(--steel-600); line-height: 1.6; }

/* ============================================================================
   FAMILY PRICE CARD — one card per grade/finish, thickness in a dropdown.
   Replaces the old 18-row table.
   ========================================================================== */
.fam {
  background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.fam:hover { box-shadow: var(--sh); border-color: var(--steel-300); }
.fam-head { padding: 16px 16px 0; }
.fam-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.fam-chip {
  font-family: var(--font-num); font-weight: 800; font-size: 13px; direction: ltr;
  padding: 4px 10px; border-radius: 8px; flex: 0 0 auto;
  background: var(--gold-wash); color: var(--gold-dark); border: 1px solid #EBDCA6;
}
.fam-chip.blue  { background: var(--blue-wash); color: var(--blue); border-color: #CFE0FB; }
.fam-chip.slate { background: var(--steel-100); color: var(--steel-600); border-color: var(--steel-200); }
.fam-title h3 { font-size: 16.5px; margin: 0; line-height: 1.3; }
.fam-desc { font-size: 13px; color: var(--steel-500); margin: 0 0 12px; line-height: 1.55; }

.fam-pick { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.fam-pick label { font-size: 13px; color: var(--steel-600); font-weight: 600; flex: 0 0 auto; }
.sel {
  appearance: none; -webkit-appearance: none;
  padding: 9px 34px 9px 12px; border-radius: 10px;
  border: 1px solid var(--steel-300); background: var(--white); font-weight: 700; font-size: 14px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 11px;
  cursor: pointer; flex: 1 1 auto; min-width: 130px;
}
.sel:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 1px; }

.fam-price {
  background: linear-gradient(160deg, var(--paper), #EDF3FA);
  border: 1px solid var(--steel-200); border-radius: var(--r);
  padding: 14px; margin-bottom: 12px;
}
.fam-price .lbl { font-size: 12px; color: var(--steel-500); font-weight: 600; margin-bottom: 2px; }
.fam-ton { font-size: clamp(26px, 7.4vw, 34px); font-weight: 800; letter-spacing: -.028em; line-height: 1.05; color: var(--navy-900); display: flex; align-items: baseline; gap: 6px; }
.fam-ton .cur { font-size: .40em; color: var(--steel-500); font-weight: 600; }
.fam-alt { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--steel-300); }
.fam-alt div { font-size: 12px; color: var(--steel-500); }
.fam-alt b { display: block; font-size: 15px; color: var(--navy-800); font-weight: 700; font-family: var(--font-num); font-variant-numeric: tabular-nums; direction: ltr; }

/* accordion for the fine detail */
.acc { border-top: 1px solid var(--steel-200); }
.acc-btn {
  width: 100%; background: none; border: 0; cursor: pointer;
  padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 700; font-size: 13.8px; color: var(--navy-700); text-align: start;
}
.acc-btn:hover { background: var(--paper); }
.acc-btn .chev { transition: transform .22s; color: var(--steel-400); flex: 0 0 auto; font-size: 12px; }
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 16px 16px; }
.acc-body.open { display: block; animation: mz-fade .22s ease; }
@keyframes mz-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.kv { display: grid; gap: 0; }
.kv-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--steel-200); font-size: 13.5px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--steel-600); }
.kv-row .v { font-weight: 700; font-family: var(--font-num); font-variant-numeric: tabular-nums; direction: ltr; white-space: nowrap; }

/* quantity ladder */
.tiers { display: grid; gap: 8px; margin-top: 4px; }
.tier {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: var(--r-sm); border: 1px solid var(--steel-200);
  background: var(--paper);
}
.tier.best { background: var(--gold-wash); border-color: #EBDCA6; }
.tier .t-l { min-width: 0; }
.tier .t-name { font-size: 13.5px; font-weight: 700; }
.tier .t-note { font-size: 11.5px; color: var(--steel-500); }
.tier .t-v { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15.5px; direction: ltr; white-space: nowrap; flex: 0 0 auto; }
.tier .t-v small { display: block; font-size: 10.5px; color: var(--steel-500); font-weight: 600; text-align: end; }

/* ============================================================================
   WHATSAPP GROUP BAND
   ========================================================================== */
.waband {
  background: linear-gradient(150deg, #0E3B2E, #07261D 70%);
  color: #fff; border-radius: var(--r-xl); padding: 24px 20px; position: relative; overflow: hidden;
}
.waband::before {
  content: ""; position: absolute; inset-block-start: -60px; inset-inline-end: -50px;
  width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, rgba(37,211,102,.28), transparent 68%);
}
.waband > * { position: relative; }
.waband .ic { font-size: 32px; margin-bottom: 8px; }
.waband h2 { font-size: clamp(20px, 5.6vw, 28px); margin-bottom: 8px; }
.waband p { color: rgba(255,255,255,.76); font-size: 14.5px; max-width: 56ch; }
.waband ul { color: rgba(255,255,255,.76); font-size: 14px; }
.waband li { margin-bottom: 5px; }
@media (min-width: 860px) {
  .waband { display: flex; align-items: center; gap: 34px; padding: 32px 34px; }
  .waband .wa-l { flex: 1 1 auto; }
  .waband .wa-r { flex: 0 0 auto; width: 260px; }
}

/* ============================================================================
   EXCHANGE / SENTIMENT
   ========================================================================== */
.sent-bar { height: 13px; border-radius: 999px; overflow: hidden; display: flex; background: var(--steel-200); margin: 12px 0 8px; }
.sent-bar .buy { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.sent-bar .sell { background: linear-gradient(90deg, #F87171, #DC2626); }
.sent-legend { display: flex; justify-content: space-between; font-size: 13px; }
.sent-legend b { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.sent-buy { color: var(--up); } .sent-sell { color: var(--down); }

.req { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px dashed var(--steel-200); }
.req:last-child { border-bottom: 0; }
.req .tag {
  flex: 0 0 auto; width: 46px; text-align: center; padding: 4px 0; border-radius: 7px;
  font-size: 11.5px; font-weight: 800;
}
.req .tag.buy  { background: var(--up-wash);   color: var(--up); }
.req .tag.sell { background: var(--down-wash); color: var(--down); }
.req .body { flex: 1 1 auto; min-width: 0; }
.req .body .t { font-size: 14px; font-weight: 600; }
.req .body .s { font-size: 12px; color: var(--steel-500); }
.req .when { flex: 0 0 auto; font-size: 11.5px; color: var(--steel-400); }

/* forms */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--navy-800); }
.field .hint { font-size: 11.5px; color: var(--steel-500); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--steel-300); background: var(--white); font-size: 15px;
}
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--navy-600); outline-offset: 0; border-color: var(--navy-600); }
.textarea { min-height: 84px; resize: vertical; }
.seg { display: flex; gap: 8px; }
.seg label {
  flex: 1 1 0; text-align: center; padding: 12px 8px; border-radius: 11px;
  border: 1.5px solid var(--steel-300); cursor: pointer; font-weight: 700; font-size: 14.5px;
  background: var(--white); transition: .15s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + label.buy  { border-color: var(--up);   background: var(--up-wash);   color: var(--up); }
.seg input:checked + label.sell { border-color: var(--down); background: var(--down-wash); color: var(--down); }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

.note { padding: 12px 14px; border-radius: var(--r); font-size: 13.5px; border: 1px solid; }
.note-ok   { background: var(--up-wash);   border-color: #BFE6CE; color: #14532D; }
.note-warn { background: var(--warn-wash); border-color: #F0DBB0; color: #7C2D12; }
.note-err  { background: var(--down-wash); border-color: #F5C9C9; color: #7F1D1D; }
.note-info { background: var(--blue-wash); border-color: #CFE0FB; color: #1E3A8A; }

/* ============================================================================
   ARTICLES
   ========================================================================== */
.art { display: flex; flex-direction: column; height: 100%; }
.art .thumb {
  height: 128px; border-radius: var(--r); margin-bottom: 12px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; font-size: 38px;
}
.art .thumb.g2 { background: linear-gradient(140deg, #7C6212, #3D2F06); }
.art .thumb.g3 { background: linear-gradient(140deg, #1E4E8C, #0C2444); }
.art .thumb.g4 { background: linear-gradient(140deg, #285E4A, #0B2A20); }
.art .meta { font-size: 11.5px; color: var(--steel-400); margin-bottom: 5px; display: flex; gap: 8px; flex-wrap: wrap; }
.art h3 { font-size: 16px; margin-bottom: 6px; line-height: 1.35; }
.art p { font-size: 13.5px; color: var(--steel-600); margin-bottom: 12px; flex: 1 1 auto; }
.art .more { font-size: 13.5px; font-weight: 700; color: var(--navy-700); }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(19px, 5vw, 25px); margin-top: 1.6em; }
.prose h3 { font-size: clamp(16.5px, 4.2vw, 19px); margin-top: 1.4em; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.85; color: #24344A; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 18px; border-inline-start: 3px solid var(--gold);
  background: var(--gold-wash); border-radius: 0 var(--r) var(--r) 0; font-size: 15px;
}
.prose .lead { font-size: 17px; color: var(--steel-600); }

/* ============================================================================
   TABLES — only where content is genuinely tabular. Always scroll-in-place.
   ========================================================================== */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--steel-200); background: var(--white); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
table.t th {
  background: var(--navy-800); color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 11px 12px; text-align: start; white-space: nowrap; position: sticky; top: 0;
}
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--steel-100); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:nth-child(even) { background: #FAFCFE; }
table.t td.n { text-align: start; font-weight: 600; white-space: nowrap; }

/* ============================================================================
   CHARTS (inline SVG, no libraries)
   ========================================================================== */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--steel-200); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--navy-600); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.gold { stroke: var(--gold); }
.chart .area { fill: url(#mzGrad); opacity: .18; }
.chart .dot { fill: var(--navy-600); }
.chart .dot.real { fill: var(--gold); stroke: #fff; stroke-width: 1.5; }
.chart text { font-size: 10px; fill: var(--steel-400); font-family: var(--font-num); }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,.66); padding-block: 34px 26px; margin-top: 10px; font-size: 13.5px; }
.footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.66); }
.footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; } }
.footer-links { display: grid; gap: 7px; }
.footer-bot {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(255,255,255,.42);
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
}

/* sticky mobile action bar */
.mobar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 55;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--steel-200);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  display: flex; gap: 9px;
  box-shadow: 0 -4px 20px rgba(10,22,40,.08);
}
.mobar .btn { flex: 1 1 0; font-size: 14px; padding: 11px 10px; min-height: 44px; }
@media (min-width: 900px) { .mobar { display: none; } }
body.has-mobar { padding-bottom: 74px; }
@media (min-width: 900px) { body.has-mobar { padding-bottom: 0; } }

/* utilities */
.mt0{margin-top:0}.mb0{margin-bottom:0}.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}
.mt24{margin-top:24px}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}
.tc{text-align:center}.muted{color:var(--steel-500)}.small{font-size:12.5px}.b{font-weight:700}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hide{display:none!important}
.cols-2,.cols-3,.cols-4{display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width:640px){.cols-2,.cols-3,.cols-4{grid-template-columns:repeat(2,1fr);gap:16px}}
@media (min-width:980px){.cols-3{grid-template-columns:repeat(3,1fr)}.cols-4{grid-template-columns:repeat(4,1fr)}}
.skel{background:linear-gradient(90deg,var(--steel-100),#F7FAFD,var(--steel-100));background-size:200% 100%;animation:mz-sk 1.3s infinite;border-radius:6px;color:transparent!important}
@keyframes mz-sk{from{background-position:200% 0}to{background-position:-200% 0}}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
@media print{.topbar,.ticker,.mobar,.drawer,.waband{display:none!important}body{background:#fff}}

/* ============================================================================
   PRICE BROWSER — material > product > variations.
   The hierarchy is carried by visual weight, not by controls. Material is a
   banded section, product carries ONE dominant price, and every other size sits
   under it as a deliberately quiet variations list. No dropdowns anywhere: a
   buyer never has to click to find out what a size costs.
   ========================================================================== */

.mat { margin-bottom: 26px; }
.mat-head {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  padding: 16px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: #fff; position: relative; overflow: hidden;
}
.mat-head::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.mat.blue .mat-head::after { background: linear-gradient(90deg, #3B82F6, #93C5FD); }
.mat-badge {
  font-family: var(--font-num); font-weight: 800; font-size: 19px; direction: ltr;
  padding: 6px 13px; border-radius: 10px; flex: 0 0 auto; letter-spacing: .5px;
  background: rgba(201,162,39,.22); color: var(--gold-light); border: 1px solid rgba(201,162,39,.36);
}
.mat.blue .mat-badge { background: rgba(59,130,246,.22); color: #93C5FD; border-color: rgba(59,130,246,.4); }
.mat-id { flex: 1 1 190px; min-width: 0; }
.mat-id h2 { font-size: 19px; margin: 0 0 2px; }
.mat-id p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.62); line-height: 1.45; }
.mat-price { flex: 0 0 auto; text-align: start; }
.mat-price b {
  display: block; font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 6.6vw, 32px); font-weight: 800; letter-spacing: -.03em; direction: ltr;
}
.mat-price span { font-size: 11.5px; color: rgba(255,255,255,.55); }

.prod-list {
  border: 1px solid var(--steel-200); border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--white); overflow: hidden;
}
.prod { border-bottom: 1px solid var(--steel-200); }
.prod:last-child { border-bottom: 0; }
.prod-top { padding: 15px 16px 12px; display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.prod-id { flex: 1 1 200px; min-width: 0; }
.prod-id h3 { font-size: 16px; margin: 0 0 3px; }
.prod-id p { margin: 0; font-size: 12.5px; color: var(--steel-500); line-height: 1.5; }
.prod-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }

/* the ONE dominant price */
.prod-main { flex: 0 0 auto; text-align: start; min-width: 152px; }
.prod-main .lbl { display: block; font-size: 11.5px; color: var(--steel-500); font-weight: 600; }
.prod-ton {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; direction: ltr;
  font-size: clamp(25px, 7vw, 31px); font-weight: 800; letter-spacing: -.03em;
  color: var(--navy-900); line-height: 1.08; display: block;
}
.prod-ton .cur { font-size: .40em; color: var(--steel-500); font-weight: 600; margin-inline-start: 4px; }
.prod-main .sub { display: block; font-size: 11.5px; color: var(--steel-500); margin-top: 3px; }

/* the quiet variations list — secondary by design */
.vars { padding: 0 16px 12px; }
.vars-cap {
  font-size: 11px; color: var(--steel-400); font-weight: 700; letter-spacing: .02em;
  padding: 6px 0 5px; border-top: 1px dashed var(--steel-200);
}
.var {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 0;
  border-bottom: 1px dotted var(--steel-200); font-size: 13px;
}
.var:last-child { border-bottom: 0; }
.var .g { flex: 0 0 66px; color: var(--steel-600); font-family: var(--font-num); direction: ltr; }
.var .p {
  flex: 0 0 auto; font-family: var(--font-num); font-variant-numeric: tabular-nums;
  direction: ltr; font-weight: 700; color: var(--navy-700);
}
.var .p i { font-style: normal; font-size: 10.5px; color: var(--steel-400); font-weight: 500; margin-inline-start: 3px; }
.var .x { flex: 1 1 auto; text-align: end; font-size: 11px; color: var(--steel-400); font-family: var(--font-num); direction: ltr; }
.var.is-ref { background: linear-gradient(90deg, var(--gold-wash), transparent); }
.var.is-ref .g { color: var(--gold-dark); font-weight: 700; }
.var.is-ref .p { color: var(--navy-900); }
@media (min-width: 720px) {
  .var .g { flex: 0 0 86px; }
  .var .x { font-size: 12px; }
}

/* one-line trust strip under the prices */
.trust {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  padding: 14px 16px; border-radius: var(--r); background: var(--white);
  border: 1px solid var(--steel-200); font-size: 12.5px; color: var(--steel-600);
}
.trust b { color: var(--navy-800); }
.trust .dot { color: var(--steel-300); }

/* ---------- lead-time options (inside the details fold) ----------
   Two bands only: immediate from stock, and ordered on a slower/cheaper sailing.
   Lives in the fold by design — the headline price stays a single number. */
.leads { margin-bottom: 14px; }
.leads-cap { font-size: 11px; color: var(--steel-400); font-weight: 700; margin-bottom: 6px; }
.lead {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--steel-200); border-radius: var(--r-sm);
  background: var(--paper); margin-bottom: 7px;
}
.lead.alt { background: var(--up-wash); border-color: #C9E9D6; }
.lead .l-l { min-width: 0; }
.lead .l-name { font-size: 13.5px; font-weight: 700; }
.lead .l-note { font-size: 11.5px; color: var(--steel-500); }
.lead .l-r { flex: 0 0 auto; text-align: end; }
.lead .l-v {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; direction: ltr;
  font-weight: 800; font-size: 15.5px; white-space: nowrap;
}
.lead .l-v small { font-size: 10.5px; color: var(--steel-500); font-weight: 600; margin-inline-start: 3px; }
.lead .l-d { font-size: 11.5px; color: var(--steel-500); white-space: nowrap; }
.lead.alt .l-d b { color: var(--up); }
.leads-fine { font-size: 11px; color: var(--steel-400); line-height: 1.6; }

/* ---------- alloy tabs ----------
   Two alloys, ~52% apart in price. They get tabs rather than a stack so a 201
   buyer never scrolls through all of 304 first. The PRICE SITS ON THE TAB, so
   the comparison that stacking gave you for free is preserved. */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 13px 14px; border-radius: var(--r); cursor: pointer; text-align: start;
  background: var(--white); border: 1.5px solid var(--steel-200);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.tab:hover { border-color: var(--steel-300); }
.tab .t-badge {
  font-family: var(--font-num); font-weight: 800; font-size: 15px; direction: ltr;
  padding: 2px 9px; border-radius: 7px; letter-spacing: .4px;
  background: var(--steel-100); color: var(--steel-600);
}
.tab .t-name { font-size: 11.5px; color: var(--steel-500); line-height: 1.35; }
.tab .t-price {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; direction: ltr;
  font-size: clamp(19px, 5.4vw, 24px); font-weight: 800; letter-spacing: -.03em; color: var(--navy-900);
}
.tab .t-price small { font-size: 10.5px; color: var(--steel-500); font-weight: 600; margin-inline-start: 3px; }
.tab.on { border-color: var(--navy-700); background: var(--white); box-shadow: 0 0 0 3px rgba(27,58,92,.09); }
.tab.on .t-badge { background: var(--navy-800); color: #fff; }
.tabpanel.hide { display: none; }

/* the strip under the tabs: what the tab cannot say */
.mat-strip {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 15px; border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); color: #fff;
}
.mat-strip p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.7); flex: 1 1 220px; line-height: 1.5; }
.mat-range {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; direction: ltr;
  font-size: 11.5px; color: rgba(255,255,255,.55); white-space: nowrap;
}
.mat { margin-bottom: 0; }

/* ---------- alloy quality (specification, not a commercial term) ----------
   Sits directly under the alloy tab and above every price, because a buyer who
   needs non-magnetic cannot substitute a magnetic grade at any price. */
.quals { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 15px; background: var(--white); border-inline: 1px solid var(--steel-200); }
.quals-cap { font-size: 11.5px; color: var(--steel-500); font-weight: 700; flex: 0 0 auto; }
.qual {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 13px; border-radius: 10px; cursor: pointer; text-align: start;
  background: var(--paper); border: 1.5px solid var(--steel-200); position: relative;
}
.qual b { font-family: var(--font-num); font-size: 14px; font-weight: 800; direction: ltr; }
.qual span { font-size: 11px; color: var(--steel-500); }
.qual .est { position: absolute; inset-block-start: -7px; inset-inline-start: 8px; font-size: 9.5px; font-style: normal; background: var(--warn-wash); color: var(--warn); border: 1px solid #F0DBB0; border-radius: 5px; padding: 0 5px; }
.qual.on { border-color: var(--gold); background: var(--gold-wash); }
.qual.on b { color: var(--gold-dark); }
