:root {
  color-scheme: dark light;
  --bg: oklch(0.14 0.03 236);
  --bg-2: oklch(0.18 0.04 232);
  --panel: oklch(0.21 0.03 236 / 0.88);
  --panel-strong: oklch(0.24 0.04 234 / 0.95);
  --line: oklch(0.42 0.06 236 / 0.55);
  --line-soft: oklch(0.45 0.05 230 / 0.3);
  --ink: oklch(0.95 0.01 244);
  --muted: oklch(0.78 0.03 235);
  --brand: oklch(0.8 0.17 165);
  --brand-2: oklch(0.76 0.13 245);
  --accent: oklch(0.86 0.17 92);
  --danger: oklch(0.72 0.2 24);
  --shadow-soft: 0 16px 40px oklch(0.06 0.01 240 / 0.42);
  --shadow-deep: 0 24px 60px oklch(0.05 0.02 240 / 0.58);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.25, 1, 0.5, 1);
  --mx: 50vw;
  --my: 40vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 8% -12%, oklch(0.79 0.11 165 / 0.2), transparent 32%),
    radial-gradient(circle at 92% -2%, oklch(0.75 0.11 245 / 0.2), transparent 34%),
    linear-gradient(150deg, var(--bg) 0%, var(--bg-2) 42%, oklch(0.12 0.02 244) 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(500px circle at var(--mx) var(--my), oklch(0.84 0.14 200 / 0.12), transparent 58%),
    radial-gradient(280px circle at calc(var(--mx) + 6vw) calc(var(--my) - 3vh), oklch(0.78 0.12 165 / 0.1), transparent 62%);
  transition: background-position 120ms linear;
}

.market-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: linear-gradient(90deg, var(--panel-strong), var(--panel));
  box-shadow: 0 10px 28px oklch(0.06 0.02 240 / 0.18);
  overflow: hidden;
}

.market-heading {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.72rem;
  border-right: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px oklch(0.8 0.17 165 / 0.72);
}

.market-track {
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.market-track::-webkit-scrollbar {
  display: none;
}

.market-item {
  flex: 0 0 auto;
  min-width: 138px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "symbol symbol"
    "price change";
  align-content: center;
  column-gap: 0.42rem;
  padding: 0.4rem 0.68rem;
  border-right: 1px solid var(--line-soft);
  scroll-snap-align: start;
  white-space: nowrap;
}

.market-symbol {
  grid-area: symbol;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-price {
  grid-area: price;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.market-change {
  grid-area: change;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.market-change.is-up {
  color: var(--brand);
}

.market-change.is-down {
  color: var(--danger);
}

.market-change.is-flat,
.market-loading {
  color: var(--muted);
}

.market-loading {
  align-self: center;
  padding: 0 0.8rem;
  font-size: 0.7rem;
}

.market-controls {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.32rem;
  border-left: 1px solid var(--line-soft);
}

.market-control {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.market-control:hover,
.market-control:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.market-control:disabled {
  opacity: 0.32;
  cursor: default;
}

.market-disclaimer {
  padding: 0 0.18rem;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-float[hidden] {
  display: none;
}

.ad-float {
  display: none;
}

.ad-campaign[hidden] {
  display: none;
}

@media (min-width: 1280px) and (max-width: 1459px) {
  .ad-float {
    position: fixed;
    top: 52%;
    right: auto;
    left: calc(50% + 520px + 12px);
    z-index: 38;
    width: 88px;
    display: block;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 11px;
    background:
      linear-gradient(145deg, oklch(0.8 0.17 165 / 0.1), transparent 42%),
      var(--panel-strong);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  .ad-float-close {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: oklch(0.14 0.03 236 / 0.72);
    font: inherit;
    cursor: pointer;
  }

  .ad-float-link {
    display: grid;
    gap: 0.42rem;
    padding: 2rem 0.52rem 0.62rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.6rem;
    line-height: 1.3;
  }

  .ad-float-link > span:nth-of-type(2) {
    display: none;
  }

  .ad-float-label {
    color: var(--accent);
    font-family: "Space Mono", monospace;
    font-size: 0.47rem;
    letter-spacing: 0.08em;
  }

  .ad-float-link strong {
    color: var(--ink);
    font-family: "Syne", sans-serif;
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .ad-float-email {
    overflow: hidden;
    font-family: "Space Mono", monospace;
    font-size: 0.47rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ad-float-cta {
    width: fit-content;
    color: var(--brand);
    font-size: 0.57rem;
    font-weight: 800;
  }
}

@media (min-width: 1460px) {
  .ad-float {
    position: fixed;
    top: 50%;
    right: auto;
    left: calc(50% + 540px + 12px);
    z-index: 38;
    width: 138px;
    display: block;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 13px;
    background:
      linear-gradient(145deg, oklch(0.8 0.17 165 / 0.1), transparent 42%),
      var(--panel-strong);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  .ad-float-close {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: oklch(0.14 0.03 236 / 0.72);
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
  }

  .ad-float-close:hover,
  .ad-float-close:focus-visible {
    color: var(--ink);
    background: var(--panel);
    outline: 1px solid var(--brand);
  }

  .ad-float-link {
    display: grid;
    gap: 0.55rem;
    padding: 2.35rem 0.75rem 0.8rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.69rem;
    line-height: 1.35;
  }

  .ad-float-label {
    color: var(--accent);
    font-family: "Space Mono", monospace;
    font-size: 0.53rem;
    letter-spacing: 0.12em;
  }

  .ad-float-link strong {
    color: var(--ink);
    font-family: "Syne", sans-serif;
    font-size: 1.02rem;
    line-height: 1.05;
  }

  .ad-float-cta {
    width: fit-content;
    padding-bottom: 0.12rem;
    border-bottom: 1px solid var(--brand);
    color: var(--brand);
    font-weight: 800;
  }

  .ad-float-email {
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-family: "Space Mono", monospace;
    font-size: 0.56rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ad-float-link:hover .ad-float-cta {
    color: var(--ink);
  }
}

@media (min-width: 1460px) {
  .cmd-ad {
    isolation: isolate;
    border-color: oklch(0.69 0.12 220 / 0.72);
    background:
      radial-gradient(circle at 82% 14%, oklch(0.78 0.12 204 / 0.2), transparent 28%),
      linear-gradient(165deg, #0b1b50 0%, #06102d 58%, #03091c 100%);
    box-shadow:
      0 22px 55px oklch(0.03 0.04 250 / 0.72),
      inset 0 1px 0 oklch(0.9 0.04 210 / 0.14);
  }

  .cmd-ad::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, #16287a, #62dce6, #16287a);
  }

  .cmd-ad .ad-float-close {
    color: #a9dce4;
    background: #071331;
    box-shadow: 0 0 0 1px rgb(96 219 230 / 22%);
  }

  .cmd-ad-main {
    position: relative;
    display: grid;
    gap: 0.35rem;
    padding: 1.45rem 0.62rem 0.55rem;
    color: #d8e8f5;
    text-decoration: none;
  }

  .cmd-ad-label {
    color: #67dce5;
    font-family: "Space Mono", monospace;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.14em;
  }

  .cmd-ad-logo-wrap {
    display: grid;
    place-items: center;
    padding: 0.38rem 0.32rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #f7fbff, #dfe9f4);
    box-shadow: 0 8px 20px rgb(0 0 0 / 24%);
  }

  .cmd-ad-logo-wrap img {
    width: 100%;
    height: auto;
    display: block;
  }

  .cmd-ad-title {
    color: #fff;
    font-family: "Syne", sans-serif;
    font-size: 0.8rem;
    line-height: 1.06;
    letter-spacing: -0.025em;
  }

  .cmd-ad-services {
    display: grid;
    gap: 0.2rem;
  }

  .cmd-ad-services span {
    padding-top: 0.22rem;
    border-top: 1px solid rgb(159 218 233 / 13%);
    color: #b8d3e5;
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .cmd-ad-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    padding: 0.38rem 0.42rem;
    border-radius: 7px;
    color: #041129;
    background: linear-gradient(100deg, #68e0e7, #88f0db);
    font-size: 0.61rem;
    font-weight: 900;
    transition: transform 180ms var(--ease-fast), box-shadow 180ms var(--ease-fast);
  }

  .cmd-ad-domain {
    overflow: hidden;
    color: #78aebe;
    font-family: "Space Mono", monospace;
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cmd-ad-main:hover .cmd-ad-cta,
  .cmd-ad-main:focus-visible .cmd-ad-cta {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgb(66 220 228 / 18%);
  }

  .cmd-ad-main:focus-visible {
    outline: 2px solid #67dce5;
    outline-offset: -2px;
  }

  .cmd-ad-publish {
    display: block;
    padding: 0.4rem 0.4rem 0.42rem;
    border-top: 1px solid rgb(104 220 230 / 18%);
    color: #7bb8c7;
    font-family: "Space Mono", monospace;
    font-size: 0.49rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  .cmd-ad-publish:hover,
  .cmd-ad-publish:focus-visible {
    color: #fff;
    outline: none;
  }

  .workshop-ad {
    isolation: isolate;
    border-color: rgb(130 167 210 / 72%);
    background:
      linear-gradient(rgb(214 229 244 / 36%) 1px, transparent 1px),
      linear-gradient(90deg, rgb(214 229 244 / 36%) 1px, transparent 1px),
      radial-gradient(circle at 84% 12%, rgb(41 182 246 / 20%), transparent 34%),
      #f4f7fb;
    background-size: 18px 18px, 18px 18px, auto, auto;
    box-shadow:
      0 22px 55px rgb(4 26 54 / 32%),
      inset 0 1px 0 rgb(255 255 255 / 90%);
  }

  .workshop-ad::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, #126ef8, #29b6f6, #126ef8);
  }

  .workshop-ad .ad-float-close {
    color: #26476f;
    background: rgb(244 247 251 / 92%);
    box-shadow: 0 0 0 1px rgb(61 122 194 / 22%);
  }

  .workshop-ad-main {
    display: grid;
    gap: 0.35rem;
    padding: 1.45rem 0.55rem 0.55rem;
    color: #173554;
    text-decoration: none;
  }

  .workshop-ad-label {
    color: #1687ea;
    font-family: "Space Mono", monospace;
    font-size: 0.43rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }

  .workshop-ad-brand {
    display: grid;
    color: #0b1f3a;
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.05;
  }

  .workshop-ad-brand b {
    font-weight: 900;
  }

  .workshop-ad-title {
    color: #0b1f3a;
    font-family: "Syne", sans-serif;
    font-size: 0.76rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .workshop-ad-status {
    display: grid;
    gap: 0.22rem;
    padding: 0.38rem 0.4rem;
    border: 1px solid rgb(91 145 204 / 28%);
    border-radius: 7px;
    background: rgb(255 255 255 / 76%);
    font-family: "Space Mono", monospace;
    font-size: 0.45rem;
    line-height: 1.2;
  }

  .workshop-ad-status b {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    color: #1687ea;
    font-size: 0.42rem;
  }

  .workshop-ad-status i {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #29b6f6;
    box-shadow: 0 0 0 3px rgb(41 182 246 / 14%);
  }

  .workshop-ad-services {
    display: none;
    color: #456987;
    font-size: 0.49rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .workshop-ad-trial {
    color: #54728e;
    font-family: "Space Mono", monospace;
    font-size: 0.44rem;
    line-height: 1.35;
  }

  .workshop-ad-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.42rem;
    border-radius: 7px;
    color: #f4f7fb;
    background: linear-gradient(100deg, #0877e8, #29b6f6);
    font-size: 0.53rem;
    font-weight: 900;
    line-height: 1.2;
    transition: transform 180ms var(--ease-fast), box-shadow 180ms var(--ease-fast);
  }

  .workshop-ad-main:hover .workshop-ad-cta,
  .workshop-ad-main:focus-visible .workshop-ad-cta {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgb(41 182 246 / 24%);
  }

  .workshop-ad-main:focus-visible {
    outline: 2px solid #1687ea;
    outline-offset: -2px;
  }

  .workshop-ad-site {
    display: block;
    overflow: hidden;
    padding: 0.4rem;
    border-top: 1px solid rgb(91 145 204 / 24%);
    color: #436989;
    font-family: "Space Mono", monospace;
    font-size: 0.46rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workshop-ad-site:hover,
  .workshop-ad-site:focus-visible {
    color: #086fd3;
    outline: none;
  }
}

@media (min-width: 1460px) {
  .cmd-ad {
    right: max(16px, calc((100vw - 1040px) / 2 - 190px));
    width: 170px;
  }

  .cmd-ad-main {
    gap: 0.36rem;
    padding: 1.55rem 0.86rem 0.62rem;
  }

  .cmd-ad-title {
    font-size: 1.05rem;
  }

  .cmd-ad-services span {
    font-size: 0.67rem;
  }

  .cmd-ad-cta {
    font-size: 0.72rem;
  }

  .workshop-ad {
    width: 170px;
  }

  .workshop-ad-main {
    gap: 0.42rem;
    padding: 1.55rem 0.78rem 0.68rem;
  }

  .workshop-ad-brand {
    display: block;
    font-size: 0.88rem;
  }

  .workshop-ad-brand span {
    margin-left: 0.12rem;
  }

  .workshop-ad-title {
    font-size: 1rem;
  }

  .workshop-ad-services {
    display: block;
    font-size: 0.56rem;
  }

  .workshop-ad-trial {
    font-size: 0.49rem;
  }

  .workshop-ad-cta {
    font-size: 0.66rem;
  }
}

@media (max-width: 540px) {
  .market-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 46px;
  }

  .market-heading {
    padding-inline: 0.58rem;
    font-size: 0.61rem;
  }

  .market-item {
    min-width: 126px;
    padding-inline: 0.58rem;
  }

  .market-disclaimer {
    display: none;
  }

  .market-controls {
    padding-inline: 0.25rem;
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 0.62rem 0.9rem;
  background: var(--accent);
  color: oklch(0.2 0.03 242);
  border-radius: 10px;
  z-index: 100;
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus-visible {
  top: 10px;
}

.progress-rail {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 60;
  background: oklch(1 0 0 / 0.08);
}

.progress-rail span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
  transition: width 120ms linear;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(68px);
  pointer-events: none;
  z-index: -3;
}

.ambient-a {
  width: min(54vw, 460px);
  height: min(54vw, 460px);
  top: 20vh;
  left: -28vw;
  background: oklch(0.72 0.16 165 / 0.28);
  animation: drift-a 20s var(--ease-out) infinite;
}

.ambient-b {
  width: min(56vw, 500px);
  height: min(56vw, 500px);
  right: -30vw;
  top: 58vh;
  background: oklch(0.68 0.14 245 / 0.3);
  animation: drift-b 24s var(--ease-out) infinite;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.12;
  background-image: radial-gradient(oklch(1 0 0 / 0.35) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.72;
}

.cursor-aura {
  position: fixed;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, oklch(0.87 0.15 210 / 0.92) 0%, oklch(0.8 0.12 200 / 0.3) 52%, transparent 72%);
  filter: blur(0.2px);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(-100vw, -100vh, 0);
  transition: opacity 180ms var(--ease-fast);
}

.shell {
  width: min(1040px, calc(100vw - 1rem));
  margin: 0.65rem auto 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.66rem;
  position: relative;
  z-index: 5;
}

.shell > * {
  min-width: 0;
  max-width: 100%;
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  gap: 0.7rem;
  padding: 0.5rem 0.68rem;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: oklch(0.17 0.03 236 / 0.72);
  backdrop-filter: blur(6px);
}

.brand-home-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 0.54rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.86rem, 2.5vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  box-shadow:
    0 0 0 1px oklch(0.75 0.12 160 / 0.18),
    0 6px 16px oklch(0.05 0.03 220 / 0.32);
}

.brand-mark + .brand-wordmark .brand-prompt {
  display: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 0.08rem;
  font-family: "Courier New", "IBM Plex Mono", "Fira Code", monospace;
  font-size: clamp(1.04rem, 2.9vw, 1.96rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-type {
  display: inline-flex;
  align-items: baseline;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 0.02rem;
  white-space: nowrap;
}

.brand-type-text {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.brand-prompt,
.brand-name {
  color: oklch(0.83 0.14 152);
  text-shadow: 0 0 8px oklch(0.71 0.12 155 / 0.2);
}

.brand-dotnet {
  color: oklch(0.83 0.15 86);
  text-shadow: 0 0 8px oklch(0.79 0.14 94 / 0.18);
}

.brand-type-cursor {
  display: inline-block;
  width: 0.62ch;
  color: oklch(0.84 0.14 92);
  transform: translateY(-0.02em);
  animation: brand-cursor-blink 920ms steps(1, end) infinite;
}

.brand-type-cursor::before {
  content: "_";
}

@keyframes brand-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.brand-home-link::after {
  content: "✦";
  position: absolute;
  top: -0.45rem;
  right: -0.7rem;
  font-size: 0.66rem;
  opacity: 0;
  transform: translateY(4px) scale(0.85);
  transition: opacity 180ms var(--ease-fast), transform 180ms var(--ease-fast);
  pointer-events: none;
}

.brand-home-link:hover::after,
.brand-home-link:focus-visible::after {
  opacity: 0.9;
  transform: translateY(0) scale(1);
}

.brand-actions > span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.x-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.76rem;
  border-radius: 999px;
  border: 1px solid oklch(0.62 0.08 210 / 0.7);
  background: linear-gradient(135deg, oklch(0.25 0.05 230 / 0.96), oklch(0.3 0.08 210 / 0.96));
  color: oklch(0.96 0.02 240);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 160ms var(--ease-fast), box-shadow 160ms var(--ease-fast), border-color 160ms var(--ease-fast);
  font-family: "Manrope", sans-serif;
  position: static;
}

.x-follow-btn::after {
  content: none;
}

.x-follow-btn:hover,
.x-follow-btn:focus-visible {
  transform: translateY(-1px);
  border-color: oklch(0.78 0.13 200 / 0.9);
  box-shadow: 0 7px 14px oklch(0.08 0.02 240 / 0.3);
}

.youtube-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.76rem;
  border: 1px solid oklch(0.61 0.15 28 / 0.68);
  border-radius: 999px;
  background: oklch(0.28 0.09 27 / 0.88);
  color: oklch(0.97 0.01 30);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-fast), border-color 160ms var(--ease-fast), background 160ms var(--ease-fast);
}

.youtube-follow-btn::before {
  content: "▶";
  margin-right: 0.34rem;
  color: oklch(0.78 0.17 30);
  font-size: 0.68rem;
}

.youtube-follow-btn:hover,
.youtube-follow-btn:focus-visible {
  transform: translateY(-1px);
  border-color: oklch(0.76 0.18 30 / 0.9);
  background: oklch(0.34 0.12 28 / 0.94);
}

.category-strip {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(90deg, oklch(0.16 0.03 238 / 0.88), oklch(0.19 0.04 232 / 0.7));
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-kicker {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border-right: 1px solid oklch(0.8 0.17 165 / 0.32);
  background: oklch(0.15 0.04 238 / 0.98);
  color: var(--brand);
  font-family: "Syne", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.site-footer {
  display: grid;
  gap: 0.72rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--panel) 88%, transparent), color-mix(in oklch, var(--bg-2) 78%, transparent)),
    radial-gradient(circle at 8% 20%, oklch(0.76 0.12 165 / 0.1), transparent 42%);
  padding: 0.86rem;
  text-align: left;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  align-items: center;
  gap: 0.8rem 1.2rem;
}

.footer-company {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.68rem;
  color: inherit;
  text-decoration: none;
}

.footer-logo-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.42rem;
  border: 1px solid oklch(0.82 0.02 232 / 0.7);
  border-radius: 8px;
  background: oklch(0.97 0.01 228);
}

.footer-cmd-logo {
  display: block;
  width: 72px;
  height: auto;
}

.footer-ownership {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.footer-ownership strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
}

.footer-ownership small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.footer-cta {
  display: grid;
  justify-items: end;
  gap: 0.18rem;
  text-align: right;
}

.site-footer .footer-cta p {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer .footer-email {
  color: var(--brand);
  font-family: "Syne", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem 0.82rem;
  padding-block: 0.58rem;
  border-block: 1px solid var(--line-soft);
}

.footer-links a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.affiliate-disclosure {
  max-width: 84ch;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.legal-shell {
  max-width: 980px;
}

.legal-brand-actions {
  flex-shrink: 0;
}

.legal-back-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.legal-back-link:hover,
.legal-back-link:focus-visible {
  border-color: var(--brand);
  background: color-mix(in oklch, var(--panel-strong) 72%, transparent);
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding-inline: 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.legal-breadcrumb a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.legal-card {
  padding: clamp(0.9rem, 3vw, 1.5rem);
}

.legal-header {
  max-width: 760px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.legal-header h1 {
  margin: 0.28rem 0 0.62rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.65rem, 5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.legal-intro {
  margin: 0;
  color: var(--muted);
  font-family: "Newsreader", serif;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  line-height: 1.52;
}

.legal-updated {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-section {
  min-width: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.legal-section:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line-soft);
}

.legal-section:nth-child(even) {
  padding-right: 0;
}

.legal-section h2 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-family: "Syne", sans-serif;
  font-size: 0.94rem;
  line-height: 1.25;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.legal-section p {
  margin: 0.42rem 0;
}

.legal-section ul {
  display: grid;
  gap: 0.36rem;
  margin: 0.55rem 0 0;
  padding-left: 1.05rem;
}

.legal-section li::marker {
  color: var(--brand);
}

.legal-link-list {
  display: grid;
  gap: 0.46rem;
  margin-top: 0.72rem;
}

.legal-contact-link {
  display: grid;
  gap: 0.08rem;
  padding: 0.66rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in oklch, var(--panel-strong) 68%, transparent);
  color: var(--ink);
  text-decoration: none;
}

.legal-contact-link strong {
  color: var(--brand);
  font-size: 0.86rem;
}

.legal-contact-link span {
  color: var(--muted);
  font-size: 0.72rem;
}

.legal-contact-link:hover,
.legal-contact-link:focus-visible {
  border-color: var(--brand);
}

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

  .footer-cta {
    justify-items: start;
    text-align: left;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-content {
    grid-template-columns: 1fr;
  }

  .legal-section,
  .legal-section:nth-child(odd),
  .legal-section:nth-child(even) {
    padding: 0.86rem 0;
    border-right: 0;
  }
}

@media (max-width: 420px) {
  .legal-brand-actions {
    justify-content: flex-start;
  }

  .legal-back-link {
    flex: 1 1 auto;
  }

  .footer-company {
    align-items: flex-start;
  }

  .footer-cmd-logo {
    width: 62px;
  }
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0.52rem 0.84rem;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: none;
  transition: color 150ms var(--ease-fast), background 150ms var(--ease-fast);
}

.category-chip::before {
  content: attr(data-signal);
  margin-right: 0.42rem;
  color: oklch(0.72 0.11 165 / 0.72);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.category-chip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-out);
}

.category-chip:hover {
  color: var(--ink);
  background: oklch(0.28 0.05 232 / 0.45);
  box-shadow: none;
  filter: none;
}

.category-chip.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, oklch(0.32 0.06 228 / 0.55), transparent);
}

.category-chip.is-active::before {
  color: var(--accent);
}

.category-chip.is-active::after {
  transform: scaleX(1);
}

@media (max-width: 420px) {
  .brand-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-home-link {
    width: 100%;
  }

  .brand-wordmark {
    width: auto;
  }

  .brand-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-actions > span {
    display: none;
  }

  .x-follow-btn,
  .youtube-follow-btn {
    flex: 1 1 0;
    min-height: 34px;
    padding: 0.4rem 0.62rem;
    font-size: 0.72rem;
  }

  .brand-wordmark {
    font-size: clamp(0.92rem, 6vw, 1.35rem);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-type {
    animation: none;
  }

  .brand-type-cursor {
    animation: none;
    opacity: 0.7;
  }
}

/* Tramo Uno: capa de marca editorial. Mantiene la estructura de noticias existente. */
:root {
  color-scheme: light;
  --bg: oklch(0.94 0.012 78);
  --bg-2: oklch(0.91 0.016 76);
  --panel: oklch(0.985 0.006 79 / 0.94);
  --panel-strong: oklch(0.97 0.012 78 / 0.98);
  --line: oklch(0.68 0.028 70 / 0.68);
  --line-soft: oklch(0.76 0.022 70 / 0.72);
  --ink: oklch(0.2 0.016 191);
  --muted: oklch(0.47 0.022 191);
  --brand: oklch(0.64 0.09 54);
  --brand-2: oklch(0.39 0.035 193);
  --accent: oklch(0.69 0.14 56);
  --shadow-soft: 0 14px 36px oklch(0.26 0.024 70 / 0.1);
  --shadow-deep: 0 24px 56px oklch(0.2 0.026 191 / 0.17);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.17 0.018 190);
  --bg-2: oklch(0.13 0.014 190);
  --panel: oklch(0.205 0.017 190 / 0.96);
  --panel-strong: oklch(0.24 0.02 190 / 0.98);
  --line: oklch(0.43 0.023 62 / 0.72);
  --line-soft: oklch(0.33 0.019 190 / 0.8);
  --ink: oklch(0.94 0.011 76);
  --muted: oklch(0.76 0.018 78);
  --brand: oklch(0.73 0.09 57);
  --brand-2: oklch(0.7 0.034 178);
  --accent: oklch(0.74 0.12 59);
}

body {
  background:
    radial-gradient(circle at 92% -10%, oklch(0.72 0.09 58 / 0.13), transparent 28%),
    linear-gradient(152deg, var(--bg) 0%, var(--bg-2) 100%);
}

body::before { background: none; }

.tramo-brand-home { min-width: min(17.5rem, 58vw); }
.tramo-wordmark { display: block; width: min(17.5rem, 58vw); height: auto; }
.brand-strip, .market-bar, .mast, .brand-signature, .control-panel, .lead-panel, .side-panel, .ticker-panel, .robotito-feature, .subscribe-panel, .lane, .site-footer { border-radius: 2px; }
.brand-strip { border-top: 5px solid var(--brand); }
.brand-actions > span { letter-spacing: .12em; }
.x-follow-btn, .youtube-follow-btn, .robotito-primary, .subscribe-row button { border-radius: 1px; }
.brand-signature strong { color: var(--brand); }
.kicker, .robotito-kicker { color: var(--brand); }

.brand-transition {
  position: fixed;
  z-index: 100;
  right: clamp(14px, 3vw, 38px);
  bottom: clamp(14px, 3vw, 34px);
  width: min(430px, calc(100vw - 28px));
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  pointer-events: none;
  transition: transform 520ms var(--ease-out), opacity 260ms ease;
}

.brand-transition.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.brand-transition-card { position: relative; overflow: hidden; padding: 25px 27px 24px; border: 1px solid oklch(0.54 0.06 57 / .7); border-top: 5px solid var(--brand); background: #152328; box-shadow: 0 24px 60px oklch(0.14 0.018 190 / .38); color: #f7f3ed; }
.brand-transition-card::after { content: ">>"; position: absolute; right: -6px; bottom: -27px; color: oklch(0.64 0.09 54 / .22); font: 800 155px/.7 Arial, sans-serif; letter-spacing: -.34em; pointer-events: none; }
.brand-transition-kicker { position: relative; z-index: 1; margin: 0 0 9px; color: #d39a73; font: 700 10px "Space Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.brand-transition h2 { position: relative; z-index: 1; max-width: 330px; margin: 0; color: #f7f3ed; font-size: clamp(24px, 3.2vw, 32px); line-height: 1; letter-spacing: -.055em; }
.brand-transition h2 span { color: #d39a73; }
.brand-transition p:not(.brand-transition-kicker) { position: relative; z-index: 1; max-width: 330px; margin: 13px 0 19px; color: #d1d2ca; font-size: 13px; line-height: 1.5; }
.brand-transition-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 17px; }
.brand-transition-actions a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 12px; background: #be845e; color: #1b2020; font-size: 11px; font-weight: 900; text-decoration: none; }
.brand-transition-actions button, .brand-transition-close { border: 0; background: transparent; color: #d1d2ca; cursor: pointer; font-size: 11px; font-weight: 800; }
.brand-transition-close { position: absolute; z-index: 2; top: 10px; right: 11px; width: 30px; height: 30px; font-size: 22px; line-height: 1; }
.brand-transition-actions a:focus-visible, .brand-transition-actions button:focus-visible, .brand-transition-close:focus-visible { outline: 2px solid #f7f3ed; outline-offset: 3px; }

@media (max-width: 620px) {
  .tramo-brand-home { min-width: 0; }
  .tramo-wordmark { width: min(13.6rem, 62vw); }
  .brand-transition { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .brand-transition-card { padding: 22px 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-transition { transition: none; }
}

.ad-runtime {
  min-width: 0;
}

.mobile-ad-slot[hidden] {
  display: none !important;
}

@media (min-width: 1460px) {
  .sponsor-ad {
    isolation: isolate;
    border-color: oklch(0.74 0.12 165 / 0.64);
    background:
      radial-gradient(circle at 82% 10%, oklch(0.81 0.16 165 / 0.18), transparent 34%),
      linear-gradient(165deg, #0b2a2a, #061b24 64%, #04131b);
    box-shadow:
      0 22px 55px rgb(1 19 25 / 55%),
      inset 0 1px 0 rgb(255 255 255 / 8%);
  }

  .sponsor-ad::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: 3px;
    background: linear-gradient(90deg, #18d1a0, #f5b72e, #18d1a0);
  }

  .sponsor-ad .ad-float-close {
    color: #a7e9da;
    background: rgb(4 27 32 / 88%);
    box-shadow: 0 0 0 1px rgb(69 215 177 / 22%);
  }

  .sponsor-ad-main {
    display: grid;
    gap: 0.38rem;
    padding: 1.5rem 0.58rem 0.62rem;
    color: #d7f5ed;
    text-decoration: none;
  }

  .sponsor-ad-label {
    color: #68e6c6;
    font-family: "Space Mono", monospace;
    font-size: 0.43rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.3;
  }

  .sponsor-ad-image {
    width: 100%;
    max-height: 44px;
    display: block;
    object-fit: contain;
    border-radius: 7px;
    background: rgb(255 255 255 / 92%);
    padding: 0.34rem;
  }

  .sponsor-ad-brand {
    overflow: hidden;
    color: #f5b72e;
    font-family: "Space Mono", monospace;
    font-size: 0.58rem;
    font-weight: 800;
    text-overflow: ellipsis;
  }

  .sponsor-ad-title {
    color: #fff;
    font-family: "Syne", sans-serif;
    font-size: 0.78rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .sponsor-ad-copy {
    display: none;
    color: #b4d5cf;
    font-size: 0.51rem;
    font-weight: 650;
    line-height: 1.35;
  }

  .sponsor-ad-meta {
    color: #77aaa3;
    font-family: "Space Mono", monospace;
    font-size: 0.43rem;
    line-height: 1.3;
  }

  .sponsor-ad-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.42rem;
    border-radius: 7px;
    color: #05231e;
    background: linear-gradient(100deg, #54dfbd, #f0cf65);
    font-size: 0.52rem;
    font-weight: 900;
    line-height: 1.2;
    transition: transform 180ms var(--ease-fast), box-shadow 180ms var(--ease-fast);
  }

  .sponsor-ad-main:hover .sponsor-ad-cta,
  .sponsor-ad-main:focus-visible .sponsor-ad-cta {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgb(52 225 185 / 20%);
  }

  .sponsor-ad-main:focus-visible {
    outline: 2px solid #54dfbd;
    outline-offset: -2px;
  }

  .mobile-ad-slot {
    display: none !important;
  }
}

@media (min-width: 1460px) {
  .sponsor-ad {
    width: 170px;
  }

  .sponsor-ad-main {
    gap: 0.44rem;
    padding: 1.55rem 0.78rem 0.72rem;
  }

  .sponsor-ad-image {
    max-height: 54px;
  }

  .sponsor-ad-brand {
    font-size: 0.68rem;
  }

  .sponsor-ad-title {
    font-size: 1rem;
  }

  .sponsor-ad-copy {
    display: block;
    font-size: 0.57rem;
  }

  .sponsor-ad-meta {
    font-size: 0.48rem;
  }

  .sponsor-ad-cta {
    font-size: 0.66rem;
  }
}

@media (max-width: 1459px) {
  .mobile-ad-slot {
    --mobile-ad-bg: linear-gradient(120deg, #092a2a, #061c25);
    --mobile-ad-line: rgb(75 221 185 / 30%);
    --mobile-ad-ink: #f5fffc;
    --mobile-ad-muted: #a8d6cc;
    --mobile-ad-accent: #55e0bd;
    width: 100%;
    min-width: 0;
    display: block;
    position: relative;
    grid-column: 1 / -1;
    margin-block: 0.2rem;
    border: 1px solid var(--mobile-ad-line);
    border-radius: 13px;
    background: var(--mobile-ad-bg);
    box-shadow: 0 12px 30px rgb(2 22 27 / 18%);
    overflow: hidden;
  }

  .mobile-ad-slot.is-cmd {
    --mobile-ad-bg: linear-gradient(120deg, #0b1b50, #06102d);
    --mobile-ad-line: rgb(96 219 230 / 28%);
    --mobile-ad-muted: #a8cfdb;
    --mobile-ad-accent: #67dce5;
  }

  .mobile-ad-slot.is-talleronline {
    --mobile-ad-bg:
      linear-gradient(rgb(214 229 244 / 32%) 1px, transparent 1px),
      linear-gradient(90deg, rgb(214 229 244 / 32%) 1px, transparent 1px),
      #f4f7fb;
    --mobile-ad-line: rgb(82 139 201 / 28%);
    --mobile-ad-ink: #0b1f3a;
    --mobile-ad-muted: #4e6e8b;
    --mobile-ad-accent: #0877e8;
    background-size: 18px 18px, 18px 18px, auto;
  }

  .mobile-ad-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px !important;
    min-width: 26px;
    height: 26px;
    min-height: 26px !important;
    display: grid;
    place-items: center;
    padding: 0 !important;
    border: 1px solid var(--mobile-ad-line);
    border-radius: 50%;
    color: var(--mobile-ad-muted);
    background: color-mix(in srgb, var(--mobile-ad-bg) 88%, transparent);
    font-size: 1rem !important;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-ad-main {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    padding: 0.78rem 2.6rem 0.78rem 0.78rem;
    color: var(--mobile-ad-ink);
    text-decoration: none;
  }

  .mobile-ad-image {
    width: 74px;
    height: 52px;
    display: none;
    object-fit: contain;
    border-radius: 8px;
    background: rgb(255 255 255 / 92%);
    padding: 0.35rem;
  }

  .mobile-ad-copy {
    min-width: 0;
    display: grid;
    gap: 0.16rem;
  }

  .mobile-ad-label {
    color: var(--mobile-ad-accent);
    font-family: "Space Mono", monospace;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.1em;
  }

  .mobile-ad-brand {
    overflow: hidden;
    color: var(--mobile-ad-accent);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-ad-title {
    color: var(--mobile-ad-ink);
    font-family: "Syne", sans-serif;
    font-size: 0.96rem;
    line-height: 1.08;
  }

  .mobile-ad-body {
    color: var(--mobile-ad-muted);
    font-size: 0.67rem;
    line-height: 1.3;
  }

  .mobile-ad-meta {
    color: var(--mobile-ad-muted);
    font-family: "Space Mono", monospace;
    font-size: 0.5rem;
  }

  .mobile-ad-cta {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    color: #041b1c;
    background: linear-gradient(100deg, var(--mobile-ad-accent), #f0cf65);
    font-size: 0.66rem;
    font-weight: 900;
    white-space: nowrap;
  }
}

@media (min-width: 640px) and (max-width: 1459px) {
  .mobile-ad-main:has(.mobile-ad-image) {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mobile-ad-image {
    display: block;
  }
}

@media (max-width: 520px) {
  .mobile-ad-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .mobile-ad-cta {
    width: fit-content;
  }
}

.mast,
.control-panel,
.lead-panel,
.ticker-panel,
.subscribe-panel,
.lane {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
}

.mast {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.mast::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, oklch(0.78 0.12 165 / 0.12), transparent 42%),
    linear-gradient(315deg, oklch(0.75 0.11 245 / 0.1), transparent 48%);
  pointer-events: none;
}

.kicker {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--accent);
}

.mast h1 {
  margin: 0.3rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.42rem, 7.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 24ch;
}

.mast-title {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.mast-title-carousel h1 {
  width: 100%;
  max-width: 100%;
  height: 3.08em;
  overflow: hidden;
}

.mast-headline-link {
  height: 100%;
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 210ms var(--ease-fast),
    transform 210ms var(--ease-fast),
    color 180ms var(--ease-fast);
}

.mast-headline-link:hover,
.mast-headline-link:focus-visible {
  color: var(--brand);
  outline: none;
}

.mast-title-carousel.is-switching .mast-headline-link {
  transform: translateY(-0.32em);
  opacity: 0;
}

.headline-word {
  display: inline-block;
  white-space: nowrap;
}

.headline-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.78em) rotateX(-72deg);
  transform-origin: 50% 100%;
  animation: headline-char-arrive 560ms var(--ease-out) forwards;
  animation-delay: var(--char-delay, 0ms);
}

.headline-char.is-static {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes headline-char-arrive {
  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.mast-headline-nav {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.6rem;
}

.headline-control {
  width: 29px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--muted);
  background: oklch(0.16 0.03 236 / 0.42);
  font: inherit;
  cursor: pointer;
}

.headline-control:hover,
.headline-control:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.headline-counter {
  min-width: 4.4rem;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.headline-progress {
  width: min(9rem, 30vw);
  height: 2px;
  margin-left: 0.25rem;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.headline-progress span {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.headline-progress span.is-running {
  animation: headline-progress-run 5600ms linear forwards;
}

@keyframes headline-progress-run {
  to {
    width: 100%;
  }
}

.mast-copy {
  margin: 0.56rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
  max-width: 54ch;
}

.mast-meta {
  display: grid;
  gap: 0.35rem;
  padding: 0.58rem 0.68rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: oklch(0.16 0.03 236 / 0.62);
}

.live-indicator,
.update-note {
  margin: 0;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 oklch(0.79 0.14 165 / 0.7);
  animation: ping 2s infinite;
}

.update-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.control-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.58rem;
}

.control-panel-passive {
  display: block;
}

.control-panel-passive .status {
  margin: 0.1rem 0;
}

.brand-signature {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background:
    linear-gradient(120deg, oklch(0.21 0.03 236 / 0.9), oklch(0.19 0.03 236 / 0.9)),
    radial-gradient(circle at 22% 32%, oklch(0.82 0.11 165 / 0.18), transparent 58%);
  padding: 0.56rem 0.72rem;
}

.brand-signature p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.brand-signature strong {
  color: var(--ink);
  letter-spacing: 0.08em;
}

button,
select,
input {
  min-height: 46px;
  width: 100%;
  border-radius: 11px;
  border: 1px solid oklch(0.46 0.05 232 / 0.58);
  background: oklch(0.25 0.03 236);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button {
  border: 0;
  color: oklch(0.2 0.03 238);
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 20px oklch(0.32 0.08 240 / 0.44);
  cursor: pointer;
  transition: transform 160ms var(--ease-fast), filter 160ms var(--ease-fast), box-shadow 180ms var(--ease-fast);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px oklch(0.32 0.08 240 / 0.5);
  filter: brightness(1.04);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

button.is-loading {
  position: relative;
  padding-right: 2.25rem;
}

button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.72rem;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid oklch(0.18 0.03 240 / 0.35);
  border-top-color: oklch(0.24 0.03 240 / 0.86);
  animation: spin 640ms linear infinite;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid oklch(0.85 0.16 95 / 0.95);
  outline-offset: 2px;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.45;
  transition: color 220ms var(--ease-fast);
}

.status[data-state="loading"] {
  color: oklch(0.89 0.04 96);
}

.status[data-state="error"] {
  color: var(--danger);
}

.status[data-state="ready"] {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.66rem;
  min-width: 0;
  align-items: start;
}

.feature-grid > * {
  min-width: 0;
}

.lead-panel {
  background: var(--panel-strong);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  container-type: inline-size;
  transform-style: preserve-3d;
}

.lead-visual {
  position: relative;
  min-height: clamp(190px, 34vh, 300px);
  background: linear-gradient(140deg, oklch(0.33 0.05 234), oklch(0.24 0.03 236));
  overflow: hidden;
}

.lead-visual::before {
  content: "tramouno.com";
  position: absolute;
  right: 0.6rem;
  bottom: 0.38rem;
  color: oklch(0.91 0.03 240 / 0.2);
  font-size: clamp(0.72rem, 2.7vw, 1.05rem);
  letter-spacing: 0.06em;
  font-family: "Syne", sans-serif;
  z-index: 1;
  pointer-events: none;
}

.lead-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, oklch(0.16 0.03 236 / 0) 0%, oklch(0.16 0.03 236 / 0.86) 92%);
  pointer-events: none;
}

.lead-visual img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 720ms var(--ease-out), filter 720ms var(--ease-out);
  will-change: transform;
}

.lead-panel:hover .lead-visual img {
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.04);
}

.lead-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.78rem;
}

.source-pill {
  width: max-content;
  margin: 0;
  padding: 0.23rem 0.58rem;
  border-radius: 999px;
  background: oklch(0.75 0.11 165 / 0.22);
  color: oklch(0.9 0.1 160);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.impact-tag {
  width: max-content;
  margin: 0;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  border: 1px solid oklch(0.76 0.1 165 / 0.45);
  background: oklch(0.78 0.09 165 / 0.14);
  color: oklch(0.86 0.1 165);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.22rem, 5vw, 2.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.lead-title a,
.highlight-link,
.timeline-link,
.mosaic-title a {
  color: inherit;
  text-decoration: none;
}

.lead-title a:hover,
.highlight-link:hover,
.timeline-link:hover,
.mosaic-title a:hover {
  color: oklch(0.88 0.11 222);
}

.lead-summary {
  margin: 0;
  font-family: "Newsreader", serif;
  color: oklch(0.88 0.03 233);
  font-size: 0.97rem;
  line-height: 1.44;
}

.editor-angle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid oklch(0.74 0.1 165 / 0.55);
  padding-left: 0.52rem;
}

.meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.28rem 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.share-btn {
  width: auto;
  min-height: 30px;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  border: 1px solid oklch(0.52 0.07 232 / 0.5);
  background: oklch(0.2 0.03 236 / 0.92);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 150ms var(--ease-fast), border-color 150ms var(--ease-fast), color 150ms var(--ease-fast), background 150ms var(--ease-fast);
}

.source-link-pill:hover {
  transform: translateY(-1px);
  border-color: oklch(0.74 0.12 165 / 0.75);
  color: var(--ink);
  background: oklch(0.24 0.04 236 / 0.95);
}

.affiliate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  border: 1px solid oklch(0.75 0.11 90 / 0.46);
  background: oklch(0.8 0.12 95 / 0.15);
  color: oklch(0.9 0.1 95);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 150ms var(--ease-fast), border-color 150ms var(--ease-fast), background 150ms var(--ease-fast), color 150ms var(--ease-fast);
}

.affiliate-pill:hover,
.affiliate-pill:focus-visible {
  transform: translateY(-1px);
  border-color: oklch(0.85 0.13 95 / 0.82);
  background: oklch(0.84 0.14 95 / 0.24);
  color: oklch(0.95 0.08 95);
}

.newsletter-cta {
  min-height: 30px;
  width: auto;
  padding: 0.25rem 0.56rem;
  border-radius: 999px;
  background: linear-gradient(120deg, oklch(0.82 0.13 165), oklch(0.8 0.1 245));
  color: oklch(0.2 0.03 238);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}

.side-panel {
  display: grid;
  gap: 0.66rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.ticker-panel,
.subscribe-panel {
  padding: 0.72rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.ticker-panel h2,
.subscribe-panel h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 0.98rem;
}

.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ticker-toggle {
  min-height: 34px;
  width: auto;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticker {
  margin-top: 0.52rem;
  border-radius: 10px;
  background: oklch(0.23 0.03 236 / 0.94);
  border: 1px solid oklch(0.44 0.05 232 / 0.34);
  padding: 0.5rem 0.56rem;
  overflow: hidden;
  color: oklch(0.91 0.02 232);
  font-size: 0.78rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 1.8rem;
  padding-right: 1.8rem;
  animation: ticker-loop 78s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track,
.ticker.is-paused .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  white-space: nowrap;
}

.highlights {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.54rem;
}

.highlights li {
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed oklch(0.5 0.05 235 / 0.45);
}

.highlights li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.highlight-link {
  display: block;
  font-size: 0.9rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.highlights small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.subscribe-panel p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.subscribe-kicker {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: oklch(0.86 0.15 90);
}

.subscribe-row {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.subscribe-status {
  min-height: 1.1rem;
  margin: 0.42rem 0 0;
  color: oklch(0.86 0.11 167);
  font-size: 0.9rem;
  line-height: 1.45;
}

.subscribe-trust {
  margin: 0.34rem 0 0;
  color: oklch(0.81 0.05 205);
  font-size: 0.82rem;
  line-height: 1.4;
}

.subscribe-panel {
  transition: border-color 260ms var(--ease-fast), box-shadow 260ms var(--ease-fast);
}

.subscribe-panel-featured {
  position: relative;
  border-color: oklch(0.66 0.09 200 / 0.65);
  background:
    radial-gradient(circle at 12% 8%, oklch(0.82 0.14 165 / 0.2), transparent 46%),
    radial-gradient(circle at 88% 90%, oklch(0.82 0.14 95 / 0.16), transparent 40%),
    linear-gradient(145deg, oklch(0.23 0.04 232 / 0.98), oklch(0.2 0.03 236 / 0.97));
  box-shadow: 0 16px 34px oklch(0.07 0.02 240 / 0.34);
}

.subscribe-panel-featured h2 {
  font-size: clamp(1.08rem, 2.6vw, 1.3rem);
}

.subscribe-panel-featured .subscribe-row button {
  background: linear-gradient(125deg, oklch(0.84 0.15 160), oklch(0.83 0.14 95));
  color: oklch(0.19 0.03 235);
  box-shadow: 0 10px 20px oklch(0.27 0.08 170 / 0.4);
}

.subscribe-panel-featured .subscribe-row button:hover {
  box-shadow: 0 13px 24px oklch(0.26 0.08 170 / 0.48);
}

.subscribe-article-panel {
  border-color: oklch(0.62 0.08 200 / 0.55);
  background:
    radial-gradient(circle at 16% 12%, oklch(0.8 0.12 165 / 0.16), transparent 42%),
    linear-gradient(140deg, oklch(0.2 0.03 236 / 0.94), oklch(0.18 0.03 236 / 0.94));
}

.subscribe-article-panel .lane-head h2 {
  font-size: 1.08rem;
}

.subscribe-article-panel .subscribe-row button {
  background: linear-gradient(125deg, oklch(0.84 0.14 160), oklch(0.82 0.14 98));
  box-shadow: 0 9px 18px oklch(0.27 0.08 170 / 0.32);
}

.subscribe-article-panel .subscribe-row button:hover {
  box-shadow: 0 12px 20px oklch(0.27 0.08 170 / 0.42);
}

.subscribe-panel.is-success {
  border-color: oklch(0.78 0.11 165 / 0.8);
  box-shadow: 0 0 0 2px oklch(0.8 0.12 165 / 0.25);
}

.inline-subscribe {
  display: grid;
  gap: 0.65rem;
  padding: 0.78rem;
  border: 1px solid oklch(0.56 0.08 200 / 0.44);
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% 20%, oklch(0.82 0.13 165 / 0.14), transparent 44%),
    linear-gradient(138deg, oklch(0.23 0.04 232 / 0.95), oklch(0.2 0.03 236 / 0.95));
}

.inline-subscribe-copy h2 {
  margin: 0.24rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.06rem, 2.8vw, 1.28rem);
  line-height: 1.1;
}

.inline-subscribe-copy p {
  margin: 0.34rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.inline-subscribe-form {
  margin-top: 0.08rem;
}

.inline-subscribe-form button {
  min-height: 40px;
  width: auto;
  min-width: 122px;
  padding: 0.48rem 0.74rem;
  font-size: 0.82rem;
  border-radius: 10px;
  box-shadow: 0 7px 14px oklch(0.28 0.07 240 / 0.28);
}

.inline-subscribe-form button:hover {
  box-shadow: 0 9px 16px oklch(0.28 0.07 240 / 0.34);
}

.subscribe-popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: oklch(0.08 0.02 240 / 0.68);
  backdrop-filter: blur(6px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-fast);
}

.subscribe-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.subscribe-popup-card {
  width: min(480px, calc(100vw - 1rem));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: oklch(0.19 0.03 236 / 0.98);
  padding: 0.9rem;
  box-shadow: var(--shadow-deep);
  position: relative;
}

.subscribe-popup-card h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
}

.subscribe-popup-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.popup-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: 0;
  font-size: 1rem;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.66rem;
}

.news-layout-single {
  grid-template-columns: 1fr;
}

.lane {
  padding: 0.72rem;
}

.lane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lane-head h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.02rem;
}

.lane-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.timeline {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.54rem;
}

.archive-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.archive-toggle::-webkit-details-marker {
  display: none;
}

.archive-toggle-copy {
  display: grid;
  gap: 0.18rem;
}

.archive-toggle-copy strong {
  font-family: "Syne", sans-serif;
  font-size: 1.02rem;
}

.archive-toggle-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.archive-toggle-state {
  flex: 0 0 auto;
  padding: 0.36rem 0.62rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.archive-toggle-open {
  display: none;
}

.archive-lane[open] .archive-toggle {
  padding-bottom: 0.62rem;
  border-bottom: 1px solid var(--line-soft);
}

.archive-lane[open] .archive-toggle-closed {
  display: none;
}

.archive-lane[open] .archive-toggle-open {
  display: inline;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 0.24rem;
  padding: 0.56rem 0.56rem 0.56rem 0.9rem;
  border-radius: 10px;
  border: 1px solid oklch(0.44 0.05 233 / 0.34);
  background: oklch(0.19 0.02 236 / 0.64);
  transition: transform 200ms var(--ease-fast), border-color 200ms var(--ease-fast);
  transform-style: preserve-3d;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.8rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 oklch(0.78 0.14 165 / 0.45);
  animation: pulse-dot 2.4s infinite;
}

.timeline-item:hover {
  transform: translateX(3px);
  border-color: oklch(0.58 0.08 230 / 0.55);
}

.timeline-item:focus-within {
  border-color: oklch(0.73 0.12 188 / 0.8);
  box-shadow: 0 0 0 2px oklch(0.73 0.12 188 / 0.24);
}

.timeline-link {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.31;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.timeline-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.mosaic {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.mosaic-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid oklch(0.45 0.05 233 / 0.34);
  background: oklch(0.2 0.03 236 / 0.9);
  display: grid;
  align-content: start;
  transition: transform 220ms var(--ease-fast), border-color 220ms var(--ease-fast), box-shadow 220ms var(--ease-fast);
  container-type: inline-size;
  transform-style: preserve-3d;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(10px);
}

.reveal-on-scroll.in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.tilt-reactive {
  will-change: transform;
}

.mosaic-card:hover {
  transform: translateY(-3px);
  border-color: oklch(0.6 0.08 230 / 0.58);
  box-shadow: var(--shadow-soft);
}

.mosaic-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, oklch(0.34 0.05 234), oklch(0.25 0.03 236));
}

.mosaic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mosaic-body {
  display: grid;
  gap: 0.46rem;
  padding: 0.66rem;
}

.mosaic-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 0.97rem;
  line-height: 1.24;
  text-wrap: pretty;
}

.mosaic-summary {
  margin: 0;
  color: oklch(0.86 0.02 234);
  font-size: 0.87rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.editor-note {
  margin-top: 0.4rem;
  padding: 0.58rem 0.66rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: oklch(0.2 0.03 236 / 0.72);
}

.editor-note h2 {
  margin: 0 0 0.3rem;
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
}

.editor-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.robotito-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 0.9rem;
  min-width: 0;
  overflow: hidden;
  padding: 0.74rem;
  border: 1px solid oklch(0.6 0.13 162 / 0.42);
  border-radius: 14px;
  background:
    linear-gradient(112deg, oklch(0.16 0.04 230 / 0.97), oklch(0.2 0.05 205 / 0.94)),
    radial-gradient(circle at 85% 12%, oklch(0.82 0.16 88 / 0.18), transparent 38%);
  box-shadow: 0 16px 42px oklch(0.06 0.02 230 / 0.34);
}

.robotito-feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  right: -65px;
  bottom: -100px;
  border: 1px solid oklch(0.79 0.14 165 / 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px oklch(0.79 0.14 165 / 0.035),
    0 0 0 52px oklch(0.79 0.14 165 / 0.025);
}

.robotito-feature[hidden] {
  display: none;
}

.robotito-media {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid oklch(0.72 0.08 180 / 0.32);
  border-radius: 10px;
  background: oklch(0.12 0.03 232);
}

.robotito-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--ease-out), filter 240ms var(--ease-fast);
}

.robotito-media:hover img,
.robotito-media:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.robotito-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 0.14rem;
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: 50%;
  background: oklch(0.2 0.07 25 / 0.88);
  box-shadow: 0 10px 28px oklch(0.05 0.03 230 / 0.58);
  color: white;
  font-size: 0.9rem;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
}

.robotito-copy {
  align-content: center;
  display: grid;
  min-width: 0;
  gap: 0.42rem;
  padding: 0.2rem 0.28rem 0.2rem 0;
}

.robotito-kicker {
  margin: 0;
  color: oklch(0.84 0.15 153);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.robotito-kicker span {
  color: oklch(0.82 0.18 91);
}

.robotito-copy h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.robotito-copy h2 a {
  color: oklch(0.97 0.01 235);
  text-decoration: none;
}

.robotito-copy h2 a:hover,
.robotito-copy h2 a:focus-visible {
  color: oklch(0.88 0.14 91);
}

.robotito-copy > p:not(.robotito-kicker) {
  margin: 0;
  color: oklch(0.8 0.03 228);
  font-size: 0.86rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.robotito-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  margin-top: 0.16rem;
}

.robotito-primary,
.robotito-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms var(--ease-fast), border-color 160ms var(--ease-fast), background 160ms var(--ease-fast);
}

.robotito-primary {
  border: 1px solid oklch(0.75 0.18 30 / 0.8);
  background: oklch(0.56 0.2 29 / 0.92);
  color: white;
}

.robotito-secondary {
  border: 1px solid oklch(0.62 0.08 185 / 0.52);
  background: oklch(0.24 0.04 220 / 0.76);
  color: oklch(0.91 0.03 225);
}

.robotito-primary:hover,
.robotito-primary:focus-visible,
.robotito-secondary:hover,
.robotito-secondary:focus-visible {
  transform: translateY(-1px);
}

.robotito-article-feature {
  margin: 0;
}

.empty {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@container (min-width: 560px) {
  .lead-body {
    padding: 0.9rem;
  }

  .meta {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

@container (min-width: 360px) {
  .mosaic-title {
    font-size: 1.02rem;
  }

  .mosaic-summary {
    font-size: 0.9rem;
  }
}

@media (min-width: 640px) {
  .shell {
    width: min(1040px, calc(100vw - 1.35rem));
    margin: 0.88rem auto 2.2rem;
    gap: 0.74rem;
  }

  .mast {
    padding: 0.95rem;
    gap: 0.9rem;
  }

  .mast-title-carousel h1 {
    height: 2.08em;
  }

  .kicker {
    font-size: 0.73rem;
  }

  .brand-strip {
    padding: 0.52rem 0.76rem;
  }

  .brand-actions > span {
    font-size: 0.78rem;
  }

  .category-strip {
    padding-inline: 0;
  }

  .control-panel {
    grid-template-columns: 1fr 1fr;
  }

  .status {
    grid-column: 1 / -1;
  }

  .subscribe-row {
    grid-template-columns: 1fr auto;
  }

  .subscribe-row button {
    width: auto;
    min-width: 140px;
  }

  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .fx-canvas,
  .cursor-aura,
  .ambient {
    display: none;
  }

  .shell {
    width: min(100vw - 0.7rem, 1200px);
    margin: 0.5rem auto 1.25rem;
    gap: 0.56rem;
  }

  .brand-strip,
  .mast,
  .control-panel,
  .lead-panel,
  .ticker-panel,
  .subscribe-panel,
  .lane,
  .site-footer {
    border-radius: 10px;
  }

  .robotito-feature {
    border-radius: 10px;
  }

  .mast {
    padding: 0.72rem;
    gap: 0.66rem;
  }

  .mast h1 {
    font-size: clamp(1.2rem, 6.6vw, 1.7rem);
    max-width: 100%;
  }

  .mast-copy {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .kicker {
    letter-spacing: 0.1em;
  }

  .control-panel {
    gap: 0.45rem;
    padding: 0.5rem;
  }

  button,
  select,
  input {
    min-height: 46px;
    font-size: 16px;
  }

  .status {
    font-size: 0.76rem;
  }

  .lead-visual {
    min-height: clamp(180px, 26vh, 230px);
  }

  .lead-body,
  .mosaic-body,
  .lane,
  .ticker-panel,
  .subscribe-panel {
    padding: 0.6rem;
  }

  .feature-grid {
    gap: 0.72rem;
  }

  .side-panel {
    gap: 0.5rem;
  }

  .ticker-panel,
  .subscribe-panel {
    background: oklch(0.2 0.03 236 / 0.78);
    border-color: oklch(0.42 0.05 232 / 0.24);
  }

  .ticker-panel h2,
  .subscribe-panel h2 {
    font-size: 0.9rem;
  }

  .lead-summary,
  .mosaic-summary {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .timeline-link,
  .highlight-link {
    font-size: 0.92rem;
    line-height: 1.38;
  }

  .ticker {
    font-size: 0.74rem;
    letter-spacing: 0.02em;
  }

  .brand-signature p,
  .editor-angle {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .x-follow-btn {
    min-height: 32px;
    padding: 0.35rem 0.58rem;
    font-size: 0.7rem;
  }

  .youtube-follow-btn {
    min-height: 32px;
    padding: 0.35rem 0.58rem;
    font-size: 0.7rem;
  }

  .delight-toast {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.7rem;
    max-width: none;
    font-size: 0.79rem;
  }
}

@media (max-width: 620px) {
  .robotito-feature {
    grid-template-columns: 1fr;
    gap: 0.62rem;
    padding: 0.58rem;
  }

  .robotito-copy {
    padding: 0.12rem 0.08rem 0.16rem;
  }

  .robotito-copy h2 {
    font-size: clamp(1rem, 5.4vw, 1.3rem);
  }

  .robotito-copy > p:not(.robotito-kicker) {
    font-size: 0.84rem;
  }

  .robotito-primary,
  .robotito-secondary {
    flex: 1 1 130px;
  }
}

/* PWA mobile hardening: contain long dynamic content and respect device safe areas. */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: clip;
}

.shell,
.brand-strip,
.brand-home-link,
.brand-wordmark,
.brand-actions,
.mast,
.mast-title-carousel,
.market-bar,
.market-track,
.feature-grid,
.lead-panel,
.lead-body,
.news-layout,
.lane,
.article-card,
.robotito-feature,
.robotito-copy,
.site-footer {
  min-width: 0;
  max-width: 100%;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

.mast h1,
.lead-title,
.mosaic-title,
.article-title,
.article-summary,
.timeline-link,
.highlight-link,
.robotito-copy h2 {
  overflow-wrap: anywhere;
  word-break: normal;
}

@supports (padding: max(0px)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
  }

  .delight-toast {
    bottom: max(0.7rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 0.5rem);
    margin-top: 0.25rem;
  }

  .brand-home-link,
  .brand-wordmark {
    overflow: hidden;
  }

  .brand-wordmark {
    flex: 1 1 auto;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .x-follow-btn,
  .youtube-follow-btn {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-strip,
  .market-track {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mast-title-carousel h1 {
    font-size: clamp(1.15rem, 6.2vw, 1.4rem);
    line-height: 1.08;
  }
}

@media (min-width: 900px) {
  .shell {
    width: min(1040px, calc(100vw - 2rem));
    margin: 1.05rem auto 2.6rem;
    gap: 0.86rem;
  }

  .mast {
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
    align-items: end;
    padding: 1rem;
    border-radius: 16px;
  }

  .mast h1 {
    font-size: clamp(1.58rem, 4.2vw, 3rem);
  }

  .brand-strip {
    border-radius: 12px;
    padding: 0.56rem 0.88rem;
  }

  .category-chip {
    min-height: 42px;
    font-size: 0.74rem;
  }

  .mast-meta {
    width: min(340px, 100%);
    justify-self: end;
  }

  .control-panel {
    grid-template-columns: auto minmax(220px, 300px) 1fr;
    align-items: center;
    gap: 0.62rem;
    padding: 0.62rem;
  }

  .control-panel button,
  .control-panel select {
    width: auto;
  }

  .status {
    grid-column: auto;
    justify-self: end;
    text-align: right;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.5fr);
    gap: 0.86rem;
  }

  .side-panel {
    max-width: 360px;
    width: 100%;
    justify-self: end;
    align-self: start;
  }

  .lead-visual {
    min-height: clamp(230px, 38vh, 390px);
  }

  .news-layout {
    grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.86rem;
  }

  .news-layout-single {
    grid-template-columns: 1fr;
  }

  .lane,
  .ticker-panel,
  .subscribe-panel {
    padding: 0.82rem;
  }

  .lane-head h2 {
    font-size: 1.1rem;
  }

  .lane-head p {
    font-size: 0.8rem;
  }
}

@media (min-width: 1120px) {
  .mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .mosaic-card.hero,
  .mosaic-card.wide,
  .mosaic-card.compact,
  .mosaic-card.tall {
    grid-column: span 4;
  }
}

@media (min-width: 621px) {
  .mosaic-title,
  .mosaic-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
  }

  .mosaic-title {
    -webkit-line-clamp: 3;
  }

  .mosaic-summary {
    -webkit-line-clamp: 2;
  }

  .mosaic-card .impact-tag,
  .mosaic-card .editor-angle,
  .mosaic-card .meta > span:nth-child(2),
  .mosaic-card .share-btn {
    display: none;
  }

  .mosaic-card .meta {
    align-items: center;
    flex-wrap: nowrap;
  }
}

@media (min-width: 1360px) {
  .shell {
    width: min(1080px, calc(100vw - 2.4rem));
  }

  .mast {
    padding: 1.16rem;
  }

  .lead-body {
    padding: 1rem;
  }
}

@media (hover: none) {
  .lead-panel:hover .lead-visual img,
  .mosaic-card:hover,
  .timeline-item:hover,
  button:hover {
    transform: none;
    filter: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .shell > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .ticker-track {
    animation: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .headline-char {
    opacity: 1 !important;
    transform: none !important;
  }

  .headline-progress {
    display: none;
  }

  .fx-canvas,
  .cursor-aura {
    display: none !important;
  }

  .delight-toast {
    transform: none !important;
  }
}

@media (pointer: coarse) {
  .fx-canvas,
  .cursor-aura,
  .ambient {
    display: none !important;
  }

  .shell {
    width: min(100vw - 0.7rem, 1200px);
    margin: 0.5rem auto 1.2rem;
    gap: 0.56rem;
  }

  .mast {
    grid-template-columns: 1fr !important;
    gap: 0.66rem;
    padding: 0.72rem;
  }

  .mast-meta {
    justify-self: start !important;
    width: 100%;
  }

  .control-panel {
    grid-template-columns: 1fr !important;
  }

  .feature-grid,
  .news-layout,
  .mosaic {
    grid-template-columns: 1fr !important;
  }

  .mosaic-card.hero,
  .mosaic-card.wide,
  .mosaic-card.compact,
  .mosaic-card.tall {
    grid-column: span 1 !important;
  }

  .status {
    grid-column: auto !important;
    justify-self: start !important;
    text-align: left !important;
  }

  button,
  select,
  input {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }

  .inline-subscribe {
    padding: 0.66rem;
  }

  .inline-subscribe-copy h2 {
    font-size: 1rem;
  }

  .inline-subscribe-copy p {
    font-size: 0.86rem;
  }
}

.article-shell {
  max-width: 980px;
}

.article-card {
  padding: 1rem;
}

.article-title {
  margin: 0.2rem 0 0.8rem;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.article-meta {
  margin-bottom: 0.9rem;
}

.article-figure {
  margin: 0 0 0.9rem;
}

.article-figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  display: block;
}

.article-summary {
  font-size: 1.03rem;
  color: var(--ink);
  line-height: 1.62;
  overflow-wrap: anywhere;
  max-width: 68ch;
}

.article-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.terminal-affiliate {
  margin-top: 0.82rem;
  border: 1px solid oklch(0.58 0.18 145 / 0.45);
  border-radius: 10px;
  background: #1a1a1a;
  overflow: auto;
}

.terminal-affiliate pre {
  margin: 0;
  padding: 0.72rem 0.8rem;
  color: #00ff00;
  font-family: "IBM Plex Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.related-lane {
  padding: 1rem;
}

.related-timeline {
  margin-top: 0.7rem;
}

.archive-lane {
  padding: 0.9rem;
}

.delight-toast {
  position: fixed;
  right: 0.8rem;
  bottom: 0.9rem;
  z-index: 120;
  max-width: min(84vw, 360px);
  padding: 0.62rem 0.72rem;
  border: 1px solid oklch(0.56 0.08 188 / 0.52);
  border-radius: 12px;
  background:
    linear-gradient(130deg, oklch(0.23 0.03 236 / 0.95), oklch(0.2 0.03 236 / 0.95)),
    radial-gradient(circle at 22% 20%, oklch(0.82 0.12 165 / 0.2), transparent 50%);
  box-shadow: var(--shadow-soft);
  color: oklch(0.93 0.03 236);
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.delight-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms var(--ease-fast), transform 220ms var(--ease-fast);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: oklch(0.97 0.01 232);
    --bg-2: oklch(0.94 0.02 222);
    --panel: oklch(0.99 0.01 232 / 0.92);
    --panel-strong: oklch(0.985 0.01 228 / 0.98);
    --line: oklch(0.74 0.03 228 / 0.65);
    --line-soft: oklch(0.8 0.02 228 / 0.55);
    --ink: oklch(0.24 0.03 240);
    --muted: oklch(0.46 0.03 232);
    --shadow-soft: 0 14px 34px oklch(0.58 0.03 232 / 0.18);
    --shadow-deep: 0 20px 44px oklch(0.57 0.03 232 / 0.22);
  }

  body {
    background:
      radial-gradient(circle at 9% -8%, oklch(0.87 0.06 165 / 0.28), transparent 36%),
      radial-gradient(circle at 92% 0%, oklch(0.84 0.06 245 / 0.26), transparent 38%),
      linear-gradient(155deg, var(--bg) 0%, var(--bg-2) 48%, oklch(0.92 0.01 236) 100%);
  }

  body::before {
    background:
      radial-gradient(520px circle at var(--mx) var(--my), oklch(0.69 0.09 205 / 0.1), transparent 58%),
      radial-gradient(320px circle at calc(var(--mx) + 5vw) calc(var(--my) - 2vh), oklch(0.73 0.09 165 / 0.08), transparent 62%);
  }

  .progress-rail {
    background: oklch(0.2 0.02 240 / 0.08);
  }

  .brand-strip,
  .mast-meta,
  .ticker,
  .timeline-item,
  .mosaic-card,
  .source-link-pill,
  .category-chip,
  .subscribe-popup-card {
    background: oklch(0.99 0.01 232 / 0.95);
  }

  .category-strip {
    background: linear-gradient(90deg, oklch(0.97 0.015 225 / 0.98), oklch(0.94 0.02 230 / 0.9));
  }

  .category-kicker {
    background: oklch(0.98 0.015 228 / 0.99);
  }

  .brand-signature {
    background:
      linear-gradient(120deg, oklch(0.96 0.018 230 / 0.96), oklch(0.92 0.025 225 / 0.94)),
      radial-gradient(circle at 22% 32%, oklch(0.72 0.11 165 / 0.14), transparent 58%);
  }

  .category-strip .category-chip {
    background: transparent;
  }

  .category-strip .category-chip:hover,
  .category-strip .category-chip.is-active {
    background: oklch(0.9 0.035 220 / 0.72);
  }

  .lead-visual,
  .mosaic-media {
    background: linear-gradient(140deg, oklch(0.9 0.03 228), oklch(0.82 0.03 224));
  }

  button,
  select,
  input {
    background: oklch(0.99 0.01 232);
    color: oklch(0.24 0.03 240);
    border-color: oklch(0.72 0.03 228 / 0.7);
  }

  .lead-summary,
  .mosaic-summary {
    color: oklch(0.34 0.03 236);
  }

  .editor-note {
    background: oklch(0.985 0.01 232 / 0.95);
  }

  .highlights li {
    border-bottom: 1px dashed oklch(0.7 0.03 232 / 0.52);
  }
}

@media (max-width: 820px) {
  .article-card,
  .related-lane {
    padding: 0.72rem;
  }

  .article-summary {
    font-size: 0.95rem;
    line-height: 1.56;
  }

  .article-title {
    font-size: clamp(1.16rem, 6.1vw, 1.62rem);
  }
}

.theme-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--bg-2) 82%, transparent);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05);
}

.theme-option {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.3rem 0.48rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 160ms var(--ease-fast),
    background-color 160ms var(--ease-fast),
    box-shadow 160ms var(--ease-fast);
}

.theme-option:hover {
  color: var(--ink);
  background: color-mix(in oklch, var(--panel-strong) 60%, transparent);
  box-shadow: none;
  transform: none;
}

.theme-option.is-active {
  color: var(--ink);
  background: var(--panel-strong);
  box-shadow:
    0 0 0 1px var(--line-soft),
    0 3px 8px oklch(0.06 0.02 236 / 0.2);
}

.theme-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.theme-option svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body,
.brand-strip,
.mast,
.lead-panel,
.lane,
.site-footer {
  transition:
    color 180ms var(--ease-fast),
    background-color 220ms var(--ease-fast),
    border-color 220ms var(--ease-fast);
}

@media (max-width: 900px) {
  .brand-actions > span {
    display: none;
  }

  .brand-actions {
    gap: 0.4rem;
  }

  .theme-option {
    min-height: 30px;
    padding-inline: 0.42rem;
  }

  .theme-option-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 420px) {
  .theme-switcher {
    flex: 0 0 auto;
  }

  .theme-option {
    padding-inline: 0.36rem;
  }
}

/* Mobile news density: keep the lead visual, then switch to a compact reading stream. */
@media (max-width: 620px) {
  .brand-signature {
    display: none;
  }

  .lead-visual {
    min-height: 168px;
    max-height: 168px;
  }

  .lead-body {
    gap: 0.4rem;
    padding: 0.62rem;
  }

  .feature-grid .lead-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .feature-grid .editor-angle {
    display: none;
  }

  .ticker-panel {
    padding: 0.58rem;
  }

  .highlights li:nth-child(n + 4) {
    display: none;
  }

  .robotito-feature {
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 0.58rem;
    padding: 0.52rem;
  }

  .robotito-media {
    min-height: 112px;
    height: 100%;
    aspect-ratio: 1;
  }

  .robotito-copy {
    gap: 0.3rem;
    padding: 0;
  }

  .robotito-copy h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.98rem;
    line-height: 1.16;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .robotito-copy > p:not(.robotito-kicker),
  .robotito-secondary {
    display: none;
  }

  .robotito-actions {
    margin-top: 0.08rem;
  }

  .robotito-primary {
    min-height: 34px;
    padding: 0.38rem 0.58rem;
    font-size: 0.72rem;
  }

  .inline-subscribe {
    gap: 0.48rem;
    padding: 0.62rem;
  }

  .inline-subscribe-copy p:not(.subscribe-kicker) {
    display: none;
  }

  .inline-subscribe-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.42rem;
    margin-top: 0;
  }

  .inline-subscribe-form button {
    width: auto;
    min-width: 108px;
    padding-inline: 0.58rem;
  }

  .inline-subscribe .subscribe-status:empty {
    display: none;
  }

  .mosaic {
    gap: 0.5rem;
  }

  .mosaic-card,
  .mosaic-card.hero,
  .mosaic-card.wide,
  .mosaic-card.compact,
  .mosaic-card.tall {
    grid-template-columns: clamp(94px, 30vw, 118px) minmax(0, 1fr) !important;
    min-height: 140px;
    align-content: stretch;
  }

  .mosaic-media {
    height: 100%;
    min-height: 140px;
    aspect-ratio: auto;
  }

  .mosaic-body {
    align-content: center;
    gap: 0.3rem;
    padding: 0.5rem;
  }

  .mosaic-card .source-pill {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mosaic-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.91rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mosaic-card .impact-tag,
  .mosaic-card .mosaic-summary,
  .mosaic-card .editor-angle,
  .mosaic-card .meta > span:nth-child(n + 2),
  .mosaic-card .share-btn,
  .mosaic-card .source-link-pill {
    display: none;
  }

  .mosaic-card .meta {
    font-size: 0.75rem;
  }

  .archive-toggle {
    min-height: 40px;
  }

  .archive-toggle-copy small {
    max-width: 220px;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 oklch(0.79 0.14 165 / 0.65);
  }
  70% {
    box-shadow: 0 0 0 10px oklch(0.79 0.14 165 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 oklch(0.79 0.14 165 / 0);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 oklch(0.79 0.14 165 / 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px oklch(0.79 0.14 165 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 oklch(0.79 0.14 165 / 0);
  }
}

@keyframes drift-a {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-26px) scale(1.06);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(22px) scale(0.95);
  }
}

@keyframes ticker-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Final cascade: the operating-system light-theme rules above must not restore CMadrid blue. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: oklch(0.94 0.012 78);
    --bg-2: oklch(0.91 0.016 76);
    --panel: oklch(0.985 0.006 79 / 0.94);
    --panel-strong: oklch(0.97 0.012 78 / 0.98);
    --line: oklch(0.68 0.028 70 / 0.68);
    --line-soft: oklch(0.76 0.022 70 / 0.72);
    --ink: oklch(0.2 0.016 191);
    --muted: oklch(0.47 0.022 191);
    --brand: oklch(0.64 0.09 54);
    --brand-2: oklch(0.39 0.035 193);
    --accent: oklch(0.69 0.14 56);
    --shadow-soft: 0 14px 36px oklch(0.26 0.024 70 / 0.1);
    --shadow-deep: 0 24px 56px oklch(0.2 0.026 191 / 0.17);
  }

  body {
    background:
      radial-gradient(circle at 92% -10%, oklch(0.72 0.09 58 / 0.13), transparent 28%),
      linear-gradient(152deg, var(--bg) 0%, var(--bg-2) 100%);
  }

  body::before { background: none; }

  .brand-strip,
  .mast-meta,
  .ticker,
  .timeline-item,
  .mosaic-card,
  .source-link-pill,
  .category-chip,
  .subscribe-popup-card {
    background: var(--panel);
  }

  .category-strip { background: oklch(0.93 0.014 76); }
  .category-kicker { background: var(--panel-strong); }
  .brand-signature { background: oklch(0.92 0.014 76); }
}

.brand-transition-actions a {
  min-width: max-content;
  white-space: nowrap;
}

.brand-transition-actions button {
  padding: 10px 12px;
  border: 1px solid oklch(0.72 0.025 76 / .38);
  white-space: nowrap;
}
