/* ============================================================
   Mali Eksen — Modern Finansal Gazete & Analiz Teması
   Tipografi: Newsreader + IBM Plex Sans + IBM Plex Mono
   ============================================================ */

:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-alt: #EDF1F6;
  --ink: #0D1520;
  --ink-2: #344054;
  --muted: #667085;
  --accent: #133C7A;
  --accent-2: #0A2247;
  --crimson: #B43227;
  --dark: #0B1320;
  --dark-2: #121D2F;
  --border: #DCE2EA;
  --border-strong: #182230;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --maxw: 1260px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input { font: inherit; }

.me-wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------- Progress Bar ---------------- */
.me-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--accent));
  z-index: 90;
  transition: width 0.08s linear;
}

/* ---------------- Header: Market Tape ---------------- */
.me-tape {
  background: var(--dark);
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.me-tape__in {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 38px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.me-tape__in::-webkit-scrollbar { display: none; }
.me-tape__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #93C5FD;
  flex: 0 0 auto;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.me-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: me-pulse 2.2s infinite;
}
@keyframes me-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.me-tape__items {
  display: flex;
  align-items: center;
  gap: 24px;
}
.me-tape__item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  flex: 0 0 auto;
}
.me-tape__item b {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  color: #CBD5E1;
}
.me-tape__val {
  color: #FFFFFF;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.me-tape__chg {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.me-tape__chg.is-up { color: #6EE7B7; background: rgba(16, 185, 129, 0.14); }
.me-tape__chg.is-down { color: #FCA5A5; background: rgba(239, 68, 68, 0.15); }
.me-tape__chg.is-flat { color: #CBD5E1; background: rgba(148, 163, 184, 0.15); }

/* ---------------- Header: Util & Masthead ---------------- */
.me-util {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.me-util__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.me-util__edition { color: var(--accent); font-weight: 500; }

.me-masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.me-masthead__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 0 18px;
}
.me-masthead__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.me-masthead__center { text-align: center; }
.me-brand-link { display: inline-block; }
.me-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.me-brand__svg { flex: 0 0 auto; }
.me-brand__word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1;
}
.me-brand__word em {
  font-style: normal;
  color: var(--crimson);
}
.me-masthead__sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.me-masthead__actions {
  display: flex;
  justify-content: flex-end;
}
.me-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: var(--bg);
  color: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.me-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #FFFFFF;
}
.me-search-btn kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #FFFFFF;
  color: var(--muted);
}

/* ---------------- Header: Nav ---------------- */
.me-nav {
  background: var(--surface);
  border-bottom: 2px solid var(--border-strong);
}
.me-nav__in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.me-nav__in::-webkit-scrollbar { display: none; }
.me-nav__in a {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.me-nav__in a:hover { color: var(--accent); }
.me-nav__in a.is-active {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

/* ---------------- Main ---------------- */
.me-main { padding: 30px 0 60px; }

.me-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--crimson);
}
.me-kicker--pill {
  background: rgba(180, 50, 39, 0.09);
  padding: 4px 10px;
  border-radius: 3px;
}
.me-meta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.me-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

.me-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border-strong);
}
.me-block-head h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
}
.me-block-head span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------------- Cover ---------------- */
.me-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 16 / 9;
  background: var(--dark);
}
.me-cover--wide {
  aspect-ratio: 16 / 9;
  max-height: 500px;
}
.me-cover--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.me-card:hover .me-cover--photo img,
.me-lead:hover .me-cover--photo img,
.me-spotlight:hover .me-cover--photo img,
.me-desk__lead:hover .me-cover--photo img,
.me-cat-hero:hover .me-cover--photo img {
  transform: scale(1.03);
}
.me-cover__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 3px 9px;
  background: rgba(11, 19, 32, 0.78);
  backdrop-filter: blur(4px);
  color: #F8FAFC;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.me-cover__grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 28px);
}

/* ---------------- Tier 1: Front Broadsheet ---------------- */
.me-front {
  display: grid;
  grid-template-columns: 270px minmax(0, 1.55fr) 310px;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.me-wire__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.me-wire__list li {
  border-bottom: 1px solid var(--border);
}
.me-wire__list li:last-child { border-bottom: 0; }
.me-wire__list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 0;
}
.me-wire__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.me-wire__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.me-wire__list b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.32;
  color: var(--ink);
  transition: color 0.15s;
}
.me-wire__list a:hover b { color: var(--accent); }

.me-lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.me-lead:hover {
  border-color: #C2CCDA;
  box-shadow: 0 10px 30px rgba(13, 21, 32, 0.06);
}
.me-lead__link { display: block; }
.me-lead .me-cover { border-radius: 0; }
.me-lead__body { padding: 24px 26px 26px; }
.me-lead__body h1 {
  margin: 12px 0 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
  transition: color 0.15s;
}
.me-lead:hover h1 { color: var(--accent); }
.me-lead__deck {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
}
.me-lead__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.me-rail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.me-spotlight__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.me-spotlight__link h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.26;
  color: var(--ink);
}
.me-spotlight__link:hover h3 { color: var(--accent); }
.me-spotlight__link p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.me-macro-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 16px 18px;
}
.me-macro-box__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.me-macro-box__head h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.me-macro-box__head span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.me-macro-box__list { margin: 0; }
.me-macro-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-alt);
}
.me-macro-box__row:last-child { border-bottom: 0; padding-bottom: 2px; }
.me-macro-box__row dt b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.me-macro-box__row dt small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.me-macro-box__row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

/* ---------------- Tier 2: Dark Editorial Band ---------------- */
.me-darkband {
  margin-top: 40px;
  padding: 44px 0;
  background: var(--dark);
  color: #F1F5F9;
}
.me-darkband__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.me-desk__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.me-desk__head h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: #FFFFFF;
}
.me-desk__head a {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #93C5FD;
}
.me-desk__head a:hover { color: #FFFFFF; }
.me-desk__lead {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.me-desk__lead-body h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.28;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.me-desk__lead:hover h3 { color: #93C5FD; }
.me-desk__lead-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #CBD5E1;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.me-desk__lead .me-meta,
.me-desk__list .me-meta { color: #94A3B8; }
.me-desk__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.me-desk__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.me-desk__list li:last-child { border-bottom: 0; }
.me-desk__list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 0;
}
.me-desk__list b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.35;
  color: #E2E8F0;
}
.me-desk__list a:hover b { color: #93C5FD; }

/* ---------------- Tier 3: Utility & Calculator ---------------- */
.me-utility-band {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 42px 0;
}
.me-utility__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}
.me-quote-panel blockquote {
  margin: 10px 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.38;
  color: var(--ink);
}
.me-quote-panel__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.me-quote-panel__cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.15s, color 0.15s;
}
.me-quote-panel__cats a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.me-quote-panel__cats b {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--crimson);
}

.me-calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(13, 21, 32, 0.04);
}
.me-calc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.me-calc__head h3 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 20px;
}
.me-calc__tabs {
  display: inline-flex;
  background: var(--bg);
  padding: 3px;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.me-calc__tabs button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 3px;
  cursor: pointer;
}
.me-calc__tabs button.is-active {
  background: var(--accent);
  color: #FFFFFF;
}
.me-calc__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.me-calc__fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.me-calc__fields span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.me-calc__fields input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
}
.me-calc__fields input:focus {
  outline: 2px solid rgba(19, 60, 122, 0.25);
  border-color: var(--accent);
  background: #FFFFFF;
}
.me-calc__out {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--dark);
  color: #FFFFFF;
  border-radius: var(--r);
}
.me-calc__out small {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 3px;
}
.me-calc__out strong {
  font-family: var(--mono);
  font-size: 19px;
  color: #6EE7B7;
  font-variant-numeric: tabular-nums;
}
.me-calc__note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------- Tier 4: Category Sections & Cards ---------------- */
.me-section { padding-top: 48px; }
.me-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-strong);
}
.me-section__head h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.me-section__head p {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}
.me-section__all {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.me-section__all:hover { color: var(--crimson); }

.me-grid { display: grid; gap: 22px; }
.me-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.me-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.me-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.me-card:hover {
  border-color: #BFC9D8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 21, 32, 0.06);
}
.me-card__link { display: flex; flex-direction: column; height: 100%; }
.me-card .me-cover { border-radius: 0; }
.me-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}
.me-card__title {
  margin: 7px 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.28;
  color: var(--ink);
}
.me-card:hover .me-card__title { color: var(--accent); }
.me-card__excerpt {
  font-size: 13.5px;
  line-height: 1.56;
  color: var(--ink-2);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.me-card__body .me-meta { margin-top: auto; }

/* ---------------- Article Page ---------------- */
.me-article-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.me-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.me-crumbs a:hover { color: var(--accent); }
.me-copy-btn {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.me-copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.me-article__head { max-width: 880px; }
.me-article__head h1 {
  margin: 12px 0 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(29px, 4.2vw, 46px);
  line-height: 1.09;
  letter-spacing: -0.025em;
}
.me-article__deck {
  font-size: 18.5px;
  line-height: 1.58;
  color: var(--ink-2);
}
.me-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.me-article__hero { margin: 26px 0 32px; }
.me-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.me-takeaways {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--crimson);
  border-radius: var(--r);
  padding: 18px 22px;
  margin-bottom: 26px;
}
.me-takeaways h2 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}
.me-takeaways ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
  color: var(--ink-2);
}
.me-article__body p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.me-article__body p.is-lead { color: var(--ink); }
.me-article__body p.is-lead::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 62px;
  line-height: 0.85;
  padding: 6px 11px 0 0;
  color: var(--accent);
}

.me-table-card {
  margin: 26px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.me-table-card__head {
  padding: 12px 18px;
  background: var(--dark);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.me-table-wrap { overflow-x: auto; }
.me-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.me-table th, .me-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.me-table th {
  background: var(--surface-alt);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.me-table tbody tr:last-child td { border-bottom: 0; }
.me-table td { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.me-table td:first-child { font-weight: 600; color: var(--ink); }

.me-article__note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--ink-2);
}

.me-article__side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.me-side-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
}
.me-rel { list-style: none; margin: 0; padding: 0; }
.me-rel li { border-bottom: 1px solid var(--border); }
.me-rel li:last-child { border-bottom: 0; }
.me-rel a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 0;
}
.me-rel b {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.me-rel a:hover b { color: var(--accent); }
.me-rel small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.me-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.me-cat-pills a {
  padding: 6px 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 12.5px;
  font-weight: 500;
}
.me-cat-pills a.is-current,
.me-cat-pills a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

/* ---------------- Category Page ---------------- */
.me-cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 22px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--border-strong);
}
.me-cat-head h1 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
}
.me-cat-head p { margin-top: 6px; color: var(--ink-2); max-width: 64ch; }
.me-cat-count {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  white-space: nowrap;
}
.me-cat-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 28px;
}
.me-cat-hero__link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}
.me-cat-hero .me-cover { border-radius: 0; height: 100%; }
.me-cat-hero__body { padding: 26px 30px; }
.me-cat-hero__body h2 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
}
.me-cat-hero:hover h2 { color: var(--accent); }
.me-cat-hero__body p { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }

/* ---------------- 404 ---------------- */
.me-notfound { padding: 60px 0; max-width: 540px; }
.me-notfound h1 { font-family: var(--serif); font-size: 36px; margin: 8px 0 10px; }
.me-notfound p { color: var(--muted); margin-bottom: 22px; }
.me-btn-outline {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.me-btn-outline:hover { background: var(--ink); color: #FFFFFF; }

/* ---------------- Footer ---------------- */
.me-footer {
  background: #0A111C;
  color: #CBD5E1;
  padding: 48px 0 26px;
}
.me-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.2fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.me-brand--light { color: #FFFFFF; }
.me-brand--light .me-brand__word em { color: #F87171; }
.me-footer__brand p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #94A3B8;
  max-width: 38ch;
}
.me-footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 12px;
}
.me-footer__col a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: #CBD5E1;
}
.me-footer__col a:hover { color: #FFFFFF; }
.me-footer__col--note p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #94A3B8;
}
.me-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: #64748B;
}
.me-top-btn {
  background: transparent;
  color: #93C5FD;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: var(--r);
  padding: 5px 11px;
  font-size: 11px;
  cursor: pointer;
}
.me-top-btn:hover { background: rgba(147, 197, 253, 0.12); }

/* ---------------- Search Modal ---------------- */
.me-modal[hidden] { display: none; }
.me-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 16px 24px;
}
.me-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 32, 0.65);
  backdrop-filter: blur(4px);
}
.me-modal__box {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.me-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--dark);
  color: #FFFFFF;
}
.me-modal__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; }
.me-modal__close {
  border: 0;
  background: transparent;
  color: #CBD5E1;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}
.me-modal__inputwrap {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.me-modal__inputwrap input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 15px;
  background: var(--bg);
}
.me-modal__inputwrap input:focus {
  outline: 2px solid rgba(19, 60, 122, 0.25);
  border-color: var(--accent);
  background: #FFFFFF;
}
.me-modal__results {
  overflow-y: auto;
  padding: 8px 18px 18px;
}
.me-search-hit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.me-search-hit:last-child { border-bottom: 0; }
.me-search-hit b { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.me-search-hit:hover b { color: var(--accent); }
.me-search-hit p { font-size: 13px; color: var(--muted); }
.me-search-empty { padding: 22px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1120px) {
  .me-front { grid-template-columns: minmax(0, 1.4fr) 300px; }
  .me-wire { grid-column: 1 / -1; order: 3; }
  .me-wire__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .me-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-article__layout { grid-template-columns: 1fr; gap: 32px; }
  .me-article__side { position: static; }
}
@media (max-width: 900px) {
  .me-masthead__in { grid-template-columns: 1fr auto; }
  .me-masthead__meta { display: none; }
  .me-masthead__center { text-align: left; }
  .me-front { grid-template-columns: 1fr; }
  .me-darkband__grid,
  .me-utility__grid,
  .me-cat-hero__link,
  .me-footer__grid { grid-template-columns: 1fr; }
  .me-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .me-wrap { width: calc(100% - 28px); }
  .me-util__edition { display: none; }
  .me-masthead__in { padding: 14px 0; gap: 12px; }
  .me-masthead__sub { display: none; }
  .me-search-btn kbd { display: none; }
  .me-nav__in { justify-content: flex-start; gap: 2px; }
  .me-nav__in a { padding: 10px 11px; font-size: 12.5px; }
  .me-wire__list,
  .me-grid--4,
  .me-grid--3,
  .me-desk__lead,
  .me-calc__fields,
  .me-calc__out { grid-template-columns: 1fr; }
  .me-lead__body { padding: 18px; }
  .me-cat-hero__body { padding: 20px; }
  .me-section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .me-cat-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Grid child safety against horizontal blowout */
.me-front > *,
.me-darkband__grid > *,
.me-utility__grid > *,
.me-article__layout > *,
.me-grid > *,
.me-footer__grid > *,
.me-cat-hero__link > * {
  min-width: 0;
}
