/* O.Económico — editorial premium redesign
 * Type: Source Serif 4 (display/body), IBM Plex Sans (UI/caps), IBM Plex Mono (data)
 * Color: teal #2A9D8F signature, paper #F7F4EE, ink #0B0F0E, red #C8102E
 */

:root {
  --teal: #2A9D8F;
  --teal-deep: #1E5F57;
  --teal-pale: #E2EFEC;
  --teal-ink: #0B2925;

  --paper: #F7F4EE;
  --paper-warm: #EFEAE0;
  --ink: #0B0F0E;
  --ink-2: #1F2624;
  --muted: #6E7570;
  --muted-2: #A09B91;

  --rule: #1A1A1A;
  --rule-soft: #D6D1C6;
  --rule-pale: #E8E3D7;

  --red: #C8102E;
  --red-deep: #8B0A1F;
  --gold: #B68B3A;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

/* Reset within artboards */
.oe-root,
.oe-root *,
.oe-root *::before,
.oe-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.oe-root {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}

.oe-root img { display: block; max-width: 100%; }
.oe-root a { color: inherit; text-decoration: none; }
.oe-root button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
.oe-root ul, .oe-root ol { list-style: none; }

/* ===== Type system ===== */
.t-eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.t-eyebrow--teal { color: var(--teal-deep); }
.t-eyebrow--ink { color: var(--ink); }
.t-eyebrow--muted { color: var(--muted); }

.t-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.01em;
}

.t-h-display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.t-h-display--italic { font-style: italic; font-weight: 600; }

.t-h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.t-h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.t-h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.t-h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.t-dek {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.38;
  color: var(--ink-2);
}

.t-body {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.t-body-lg {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.t-byline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.t-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.t-mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.t-mono-sm {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.t-section {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* Drop cap */
.drop-cap::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 76px;
  line-height: 0.85;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--teal-deep);
}

/* ===== Rules / dividers ===== */
.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-2 { height: 2px; background: var(--rule); width: 100%; }
.rule-thick { height: 4px; background: var(--ink); width: 100%; }
.rule-soft { height: 1px; background: var(--rule-soft); width: 100%; }
.rule-teal { height: 3px; background: var(--teal); width: 100%; }
.rule-double {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 4px;
}

/* ===== Logo (O.E mark) ===== */
.oe-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--teal);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  position: relative;
}
.oe-logo::after {
  content: "";
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  bottom: 12px; right: 10px;
}
.oe-logo--lg {
  width: 72px; height: 72px; font-size: 34px;
}
.oe-logo--sm {
  width: 36px; height: 36px; font-size: 17px;
}
.oe-logo--sm::after { width: 3px; height: 3px; bottom: 8px; right: 7px; }

/* ===== Buttons & chips ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 0;
  transition: background .15s, color .15s;
}
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-deep); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); padding: 11px 21px; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--ink); }
.btn--lg { font-size: 13px; padding: 16px 28px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px 4px;
  background: var(--ink);
  color: var(--paper);
}
.chip--teal { background: var(--teal); color: #fff; }
.chip--red { background: var(--red); color: #fff; }
.chip--outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.chip--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: oe-pulse 1.4s infinite;
}
@keyframes oe-pulse { 50% { opacity: 0.35; } }

/* category mini-label (red small caps, no bg) */
.cat-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.cat-label--teal { color: var(--teal-deep); }
.cat-label--ink { color: var(--ink); }

/* ===== Cards (article variants) ===== */
.art-stack { display: flex; flex-direction: column; }
.art-stack > * + * { margin-top: 8px; }

.headline-link { display: block; }
.headline-link:hover .t-h2,
.headline-link:hover .t-h3,
.headline-link:hover .t-h4 { color: var(--teal-deep); }

/* Image placeholder striping */
.img-ph {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper-warm);
}
.img-ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(0,0,0,0.4);
  text-transform: uppercase;
}

/* ===== Ticker ===== */
.ticker {
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  height: 34px;
  overflow: hidden;
  position: relative;
}
.ticker__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 100%;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticker__items {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  white-space: nowrap;
  overflow: hidden;
}
.ticker__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.ticker__item .sym { font-weight: 600; color: var(--paper); }
.ticker__item .val { color: var(--paper-warm); }
.ticker__item .chg { font-size: 10.5px; }
.ticker__item .up { color: #5DD1B5; }
.ticker__item .dn { color: #F47C7C; }

/* ===== Utility ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.grid { display: grid; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }

/* ===== Section headers ===== */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 20px;
}
.sec-head__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.sec-head__title .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-deep);
  letter-spacing: 0.05em;
}
.sec-head__title .label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.005em;
}
.sec-head__more {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Mini list (sidebar style) ===== */
.mini-list { display: flex; flex-direction: column; }
.mini-list__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.mini-list__item:last-child { border-bottom: 0; }
.mini-list__item .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: var(--teal);
  line-height: 0.9;
}

/* ===== Quote block ===== */
.pull-quote {
  border-left: 3px solid var(--teal);
  padding: 6px 0 6px 22px;
  margin: 24px 0;
}
.pull-quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.pull-quote__attr {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

/* ===== Forms ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input,
.field textarea {
  font-family: var(--serif);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  outline: none;
}
.field input::placeholder { color: var(--muted-2); }

/* ===== Animations ===== */
@keyframes oe-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker__marquee {
  display: flex;
  gap: 28px;
  animation: oe-scroll 60s linear infinite;
  padding-right: 28px;
}
