/* TaeMaster Rebuild Custom Style System */

:root {
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  /* Elite Light & High-Fidelity Tokens */
  --glass-blur: blur(25px);
  --glass-border: rgba(48, 63, 159, 0.08); 
  --glass-glow: 0 10px 40px rgba(48, 63, 159, 0.03); 
  --noise-opacity: 0.01;
  
  --bg-primary: #FFFFFF; 
  --bg-secondary: #F8FAFC; 
  
  --text-primary: #0F172A; 
  --text-secondary: #303F9F; 
  
  --card-bg: #FFFFFF;
  --card-border: #F1F5F9; 
  
  /* Signature Elite Indigo - Strict Light Mode */
  --accent-primary: #303F9F;
  --accent-secondary: #4F46E5;
  --accent-blue: #303F9F;
  --accent-coral: #F69970;
  --accent-danger: #EF4444;
  
  --border-ui: #E2E8F0;
  --sidebar-bg: #FFFFFF;
  --sidebar-border: #E2E8F0;
  --header-bg: rgba(255, 255, 255, 0.9);
  
  --tm-indigo: #303F9F;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.front-site {
  background:
    linear-gradient(90deg, rgba(48, 63, 159, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(48, 63, 159, 0.018) 1px, transparent 1px),
    #fff;
  background-size: 56px 56px, 56px 56px, auto;
}

#front-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #303F9F, #4F46E5, #8B5CF6);
  box-shadow: 0 0 22px rgba(48, 63, 159, 0.28);
  pointer-events: none;
}

.front-site #top-navbar {
  box-shadow: 0 18px 60px rgba(48, 63, 159, 0.08), inset 0 1px 0 rgba(255,255,255,0.75);
  backdrop-filter: blur(24px);
}

.front-site section {
  position: relative;
}

.front-site section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(48, 63, 159, 0.055), transparent 28rem);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.front-site section:hover::before {
  opacity: 1;
}

.front-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.front-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.front-premium-surface {
  position: relative;
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.front-premium-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.54) 42%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.front-premium-surface:hover {
  transform: translateY(-4px);
  border-color: rgba(48, 63, 159, 0.22);
  box-shadow: 0 26px 70px rgba(48, 63, 159, 0.1);
}

.front-premium-surface:hover::after {
  transform: translateX(130%);
}

.front-site section img {
  transition: transform 600ms ease, filter 600ms ease;
}

.front-site section img:hover {
  transform: translateY(-4px) scale(1.012);
  filter: drop-shadow(0 24px 42px rgba(48, 63, 159, 0.12));
}

.front-site button,
.front-site .inline-flex[href],
.front-site a[class*="bg-indigo"] {
  position: relative;
  overflow: hidden;
}

.front-site button::after,
.front-site .inline-flex[href]::after,
.front-site a[class*="bg-indigo"]::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.38) 46%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 560ms ease;
  pointer-events: none;
}

.front-site button:hover::after,
.front-site .inline-flex[href]:hover::after,
.front-site a[class*="bg-indigo"]:hover::after {
  transform: translateX(130%);
}

.profile-page-shell {
  width: min(80vw, 1440px);
  max-width: calc(100vw - 2rem);
}

@media (max-width: 1024px) {
  .profile-page-shell {
    width: calc(100vw - 2rem);
  }
}

@media (max-width: 640px) {
  .profile-page-shell {
    width: calc(100vw - 1rem);
  }
}

.profile-tech-shell {
  position: relative;
  isolation: isolate;
}

.profile-tech-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(48, 63, 159, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(48, 63, 159, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(180deg, rgba(48, 63, 159, 0.035) 0 1px, transparent 1px 7px);
  background-size: 34px 34px, 34px 34px, auto;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  pointer-events: none;
}

.profile-tech-shell::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  border: 1px solid rgba(79, 70, 229, 0.16);
  pointer-events: none;
}

.profile-tech-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(48, 63, 159, 0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,250,252,0.78)),
    repeating-linear-gradient(180deg, rgba(48,63,159,0.035) 0 1px, transparent 1px 8px);
  box-shadow: 0 22px 70px rgba(48, 63, 159, 0.08);
}

.profile-tech-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255,255,255,0.68) 48%, transparent 76%);
  transform: translateX(-120%);
  transition: transform 900ms ease;
  pointer-events: none;
}

.profile-tech-panel:hover::after {
  transform: translateX(120%);
}

.profile-signal-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #303f9f, #22c55e, #4f46e5, transparent);
  box-shadow: 0 0 18px rgba(79, 70, 229, 0.22);
}

.profile-micro-qr {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.profile-micro-qr span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(48, 63, 159, 0.14);
}

.profile-micro-qr span:nth-child(1),
.profile-micro-qr span:nth-child(2),
.profile-micro-qr span:nth-child(6),
.profile-micro-qr span:nth-child(7),
.profile-micro-qr span:nth-child(13),
.profile-micro-qr span:nth-child(19),
.profile-micro-qr span:nth-child(20),
.profile-micro-qr span:nth-child(24),
.profile-micro-qr span:nth-child(25) {
  background: #303f9f;
}

.profile-data-tile {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.profile-data-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 63, 159, 0.25);
  box-shadow: 0 18px 45px rgba(48, 63, 159, 0.08);
}

.profile-pulse-dot {
  position: relative;
}

.profile-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  animation: profilePulse 1.8s ease-out infinite;
}

@keyframes profilePulse {
  0% {
    opacity: 0.9;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    padding-top: 0 !important;
    background: #fff !important;
  }

  #top-navbar,
  footer,
  .no-print,
  #front-scroll-progress {
    display: none !important;
  }

  main {
    max-width: none !important;
    padding: 0 !important;
  }

  .profile-resume {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .profile-resume * {
    color: #0f172a !important;
    box-shadow: none !important;
  }

  .profile-tech-shell::before,
  .profile-tech-shell::after,
  .profile-tech-panel::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .front-reveal,
  .front-premium-surface,
  .front-site section img,
  .profile-tech-panel,
  .profile-data-tile,
  .front-site button::after,
  .front-site .inline-flex[href]::after,
  .front-site a[class*="bg-indigo"]::after,
  .profile-tech-panel::after {
    transition: none;
  }

  .front-reveal {
    opacity: 1;
    transform: none;
  }

  .profile-pulse-dot::after {
    animation: none;
  }
}

.glass-card {
  background: white;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.5rem;
}

.glass-card:hover {
  box-shadow: 0 20px 40px rgba(48, 63, 159, 0.06);
  border-color: rgba(48, 63, 159, 0.15);
}

.soft-shadow {
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tactical-grid {
  background-image: 
    linear-gradient(rgba(48, 63, 159, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 63, 159, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Custom Tactical Accents */
.tactical-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(48, 63, 159, 0.2);
  pointer-events: none;
}

.terminal-text {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.625;
}

/* Home Presentation Scroll */
.home-snap-root,
.home-snap-page {
  scroll-behavior: smooth;
}

.home-snap-page [data-home-slide] {
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-snap-page .home-footer-slide {
  scroll-snap-align: end;
  scroll-margin-top: 8rem;
}

.home-slide-pagination {
  position: fixed;
  right: clamp(16px, 2.5vw, 36px);
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.home-slide-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(48, 63, 159, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: width 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.home-slide-dot[aria-current="true"] {
  width: 28px;
  background: #303F9F;
  border-color: #303F9F;
}

.home-slide-dot:focus-visible {
  outline: 3px solid rgba(48, 63, 159, 0.25);
  outline-offset: 3px;
}

.showcase-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 28px;
}

.showcase-step-counter {
  min-width: 50px;
  color: #303F9F;
  font-family: monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.showcase-step-track {
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-step-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  transition: width 220ms ease, background-color 220ms ease, opacity 220ms ease;
}

.showcase-step-dot.is-active {
  width: 56px;
  background: #303F9F;
}

.showcase-step-dot:focus-visible {
  outline: 3px solid rgba(48, 63, 159, 0.22);
  outline-offset: 4px;
}

.home-back-to-top {
  position: fixed;
  right: clamp(20px, 3vw, 42px);
  bottom: clamp(20px, 3vw, 42px);
  z-index: 60;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(48, 63, 159, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #303F9F;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  transition: opacity 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.home-back-to-top:hover {
  background: #303F9F;
  color: #fff;
  transform: translateY(-2px);
}

/* Homepage hero polish */
.home-hero-section {
  isolation: isolate;
}

.home-hero-atmosphere {
  background:
    radial-gradient(circle at 76% 46%, rgba(79, 70, 229, 0.12), transparent 26rem),
    radial-gradient(circle at 22% 78%, rgba(14, 165, 233, 0.07), transparent 22rem);
}

.home-hero-kicker {
  backdrop-filter: blur(18px);
}

.home-hero-image-shell {
  isolation: isolate;
}

.home-hero-image-shell::before {
  content: "";
  position: absolute;
  inset: 7% 8% 4%;
  z-index: -1;
  border: 1px solid rgba(199, 210, 254, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(48, 63, 159, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(48, 63, 159, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.42);
  background-size: 30px 30px, 30px 30px, auto;
  filter: blur(0.1px);
  transform: rotate(-3deg);
}

.home-hero-image-shell::after {
  content: "";
  position: absolute;
  inset: 18% 0 8%;
  z-index: -2;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  filter: blur(70px);
}

.home-hero-athletes {
  mix-blend-mode: normal;
  filter: saturate(1.06) contrast(1.04) drop-shadow(0 38px 70px rgba(48, 63, 159, 0.14));
}

.home-hero-image-glow {
  background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent 42%, rgba(79,70,229,0.08));
  border-radius: 999px;
  filter: blur(32px);
}

.home-hero-secondary {
  text-decoration: none;
}

.home-hero-secondary:hover {
  transform: translateY(-2px);
}

.home-journey-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.home-journey-card {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.home-journey-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.72) 44%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.home-journey-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 24px 60px rgba(48, 63, 159, 0.1);
}

.home-journey-card:hover::after {
  transform: translateX(120%);
}

.home-command-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.home-command-console {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-command-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(99,102,241,0.3), transparent 20rem);
  background-size: 32px 32px, 32px 32px, auto;
  opacity: 0.55;
}

.home-command-console::after {
  content: "";
  position: absolute;
  inset: auto 8% -12% 8%;
  z-index: -1;
  height: 10rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.32);
  filter: blur(70px);
}

.home-core-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.home-core-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 22px 55px rgba(48, 63, 159, 0.09);
}

.home-final-cta {
  min-height: 70svh;
  display: flex;
  align-items: center;
}

@media (max-width: 1023px) {
  .home-hero-section {
    min-height: auto;
    padding-top: 6rem;
  }

  .home-hero-grid {
    gap: 1.5rem;
  }

  .home-hero-copy {
    align-items: center;
    margin-inline: auto;
    padding-top: 0;
    text-align: center;
  }

  .home-hero-title {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 4.75rem;
    line-height: 0.86;
    letter-spacing: 0;
  }

  .home-hero-subtitle {
    margin-bottom: 2rem;
    max-width: 38rem;
    font-size: 1rem;
  }

  .home-hero-proof {
    margin-bottom: 1.75rem;
  }

  .home-hero-actions {
    justify-content: center;
    width: 100%;
    gap: 0.8rem;
  }

  .home-hero-visual {
    min-height: 21rem;
  }

  .home-hero-image-shell {
    max-width: 34rem;
  }

  .home-journey-section {
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .home-command-section,
  .home-final-cta {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .front-site #top-navbar {
    width: calc(100vw - 1.5rem);
    left: 0.75rem;
    right: 0.75rem;
    transform: none !important;
  }

  .front-site [data-home-slide] {
    min-height: auto;
  }

  .front-site [data-home-slide] > .relative.z-10.w-full.max-w-\[1600px\] {
    gap: 2rem;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .front-site [data-home-slide] h1,
  .front-site [data-home-slide] h2 {
    font-size: 3.1rem !important;
    line-height: 0.92 !important;
    letter-spacing: 0 !important;
  }

  .front-site [data-home-slide] p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .front-site [data-home-slide] img {
    max-height: 42svh;
  }

  .front-site [data-home-slide] .aspect-square {
    aspect-ratio: auto;
    min-height: 18rem;
  }

  .home-hero-section {
    padding-top: 5.5rem;
  }

  .home-hero-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.75rem;
    padding-bottom: 4rem;
  }

  .home-hero-title {
    font-size: 3.45rem;
    line-height: 0.9;
  }

  .home-hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .home-hero-kicker {
    max-width: 100%;
    letter-spacing: 0.16em;
  }

  .home-hero-actions > * {
    width: 100%;
    justify-content: center;
  }

  .home-hero-proof {
    grid-template-columns: 1fr;
  }

  .home-hero-proof > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .home-hero-visual {
    min-height: 17rem;
    margin-top: 0.5rem;
  }

  .home-hero-image-shell {
    max-width: 24rem;
  }

  .home-journey-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .home-journey-grid {
    gap: 0.9rem;
  }

  .home-journey-card {
    border-radius: 1.5rem;
    padding: 1.25rem;
  }

  .home-journey-card h3 {
    margin-top: 1.25rem;
    font-size: 1.7rem;
  }

  .home-command-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .home-command-console {
    border-radius: 1.75rem;
    padding: 1.15rem;
  }

  .home-command-console h2,
  .home-final-cta h2 {
    font-size: 2.85rem !important;
    line-height: 0.92 !important;
  }

  .home-core-card {
    border-radius: 1.5rem;
  }

  .home-final-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .home-final-cta > div {
    border-radius: 1.75rem;
    padding: 1.5rem;
  }

  .home-hero-image-shell::before {
    inset: 12% 5% 8%;
    border-radius: 2.4rem;
  }

  .home-hero-athletes {
    transform: scale(1.04) !important;
  }

  #elite-pillars {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  #elite-pillars > .relative {
    width: calc(100vw - 1.25rem);
    min-height: 34rem;
    height: 76svh;
    border-radius: 2rem;
  }

  #elite-pillars .absolute.inset-0.z-20 {
    padding: 1.25rem;
    align-items: end;
  }

  #elite-pillars .absolute.inset-0.z-20 > div {
    max-width: none;
    width: 100%;
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  #elite-pillars h3 {
    font-size: 2.2rem;
    line-height: 0.92;
  }

  #elite-pillars p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #platform-showcase .sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #platform-showcase .container {
    gap: 2rem;
  }

  #platform-showcase h2 {
    font-size: 2.85rem;
    line-height: 0.92;
  }

  #platform-showcase .showcase-trigger-row {
    border-radius: 1.35rem;
  }

  #platform-showcase .showcase-trigger-row h3 {
    font-size: 1.35rem !important;
    line-height: 1;
  }

  #platform-showcase .relative.h-\[60vh\] {
    height: 24rem;
  }

  #features-bento,
  #inquiry-form {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 900px) and (min-height: 650px) {
  .home-snap-page {
    scroll-snap-type: y mandatory;
  }

  .home-snap-root {
    scroll-snap-type: y mandatory;
  }

  .home-snap-page [data-home-slide] {
    min-height: 100svh;
  }

  .home-snap-page .home-footer-slide {
    min-height: auto;
  }
}

@media (max-width: 899px), (max-height: 649px) {
  .home-snap-page {
    scroll-snap-type: y proximity;
  }

  .home-snap-root {
    scroll-snap-type: y proximity;
  }

  .home-slide-pagination {
    right: 12px;
    gap: 8px;
  }

  .home-slide-dot {
    width: 8px;
    height: 8px;
  }

  .home-slide-dot[aria-current="true"] {
    width: 20px;
  }

  .showcase-stepper {
    padding-left: 0;
  }

  .home-back-to-top {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .home-slide-pagination {
    display: none;
  }

  .home-back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* Articles intelligence hub */
.tm-articles-page,
.tm-article-reader {
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 70, 229, 0.08), transparent 28rem),
    radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.07), transparent 24rem),
    linear-gradient(rgba(79, 70, 229, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.025) 1px, transparent 1px),
    #fbfcff;
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

.tm-articles-main {
  max-width: min(92rem, 94vw);
  padding-top: 2.35rem !important;
}

.tm-articles-hero {
  display: block;
  min-height: 0;
  padding: 0 0 1.1rem;
  text-align: center;
}

.tm-article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 999px;
  background: rgba(238, 242, 255, 0.75);
  color: #4f46e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tm-journal-masthead .tm-article-kicker {
  margin-inline: auto;
}

.tm-articles-title {
  margin-top: 0.75rem;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 0.84;
  letter-spacing: 0;
  color: #111827;
}

.tm-articles-lede {
  max-width: 48rem;
  margin: 0.85rem auto 0;
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 600;
}

.tm-article-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tm-article-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  box-shadow: 0 18px 40px rgba(49, 46, 129, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-article-stats strong {
  color: #4338ca;
  font-size: 0.74rem;
}

.tm-articles-radar {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 27rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 3rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size: 24px 24px;
  box-shadow: 0 34px 85px rgba(49, 46, 129, 0.08);
}

.tm-radar-orbit {
  position: absolute;
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 999px;
}

.tm-radar-orbit-a {
  width: 19rem;
  height: 19rem;
}

.tm-radar-orbit-b {
  width: 13rem;
  height: 13rem;
  border-style: dashed;
}

.tm-radar-core {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 2.4rem;
  background: linear-gradient(135deg, #312e81, #4f46e5);
  color: white;
  box-shadow: 0 28px 70px rgba(79, 70, 229, 0.26);
}

.tm-radar-core span {
  font-family: var(--font-heading, inherit);
  font-size: 3rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.tm-radar-core small {
  margin-top: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.tm-radar-node {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #4f46e5;
  box-shadow: 0 0 0 0.5rem rgba(79, 70, 229, 0.08);
}

.tm-radar-node.node-a { top: 24%; right: 26%; }
.tm-radar-node.node-b { bottom: 23%; left: 24%; }
.tm-radar-node.node-c { right: 18%; bottom: 28%; }

.tm-edition-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.4rem;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 1.75rem;
  background:
    linear-gradient(rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.84);
  background-size: 22px 22px;
  box-shadow: 0 24px 62px rgba(49, 46, 129, 0.07);
}

.tm-edition-panel h2 {
  margin-top: 0.55rem;
  color: #111827;
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.95;
}

.tm-edition-panel p {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.6;
}

.tm-edition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.tm-edition-grid span {
  display: grid;
  gap: 0.2rem;
  min-height: 4.1rem;
  padding: 0.8rem;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-edition-grid strong {
  color: #4f46e5;
  font-size: 1rem;
  letter-spacing: 0;
}

.tm-articles-console {
  display: grid;
  grid-template-columns: auto minmax(18rem, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 55px rgba(49, 46, 129, 0.06);
  margin-top: 0.25rem;
}

.tm-article-sort {
  display: flex;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 1rem;
  background: #eef2ff;
}

.tm-article-sort button,
.tm-article-sort a,
.tm-article-category-rail button,
.tm-article-category-rail a {
  border: 0;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-article-sort button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1.2rem;
  border-radius: 0.82rem;
  color: #64748b;
  background: transparent;
  transition: 180ms ease;
}

.tm-article-sort a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1.2rem;
  border-radius: 0.82rem;
  color: #64748b;
  text-decoration: none;
  transition: 180ms ease;
}

.tm-article-sort button.is-active,
.tm-article-sort a.is-active {
  color: #4f46e5;
  background: white;
  box-shadow: 0 8px 18px rgba(49, 46, 129, 0.08);
}

.tm-article-search {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 1rem;
  background: #fbfcff;
}

.tm-article-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
}

.tm-article-search input::placeholder {
  color: #94a3b8;
}

.tm-article-count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1rem;
  border-radius: 1rem;
  background: #eef2ff;
  color: #4f46e5;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-article-category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.8rem 0 1.2rem;
  padding-bottom: 0;
  overflow: visible;
  scrollbar-width: none;
}

.tm-article-category-rail::-webkit-scrollbar,
.tm-news-ticker > div::-webkit-scrollbar {
  display: none;
}

.tm-article-category-rail button,
.tm-article-category-rail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2.7rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(99, 102, 241, 0.13);
  border-radius: 999px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: 180ms ease;
}

.tm-article-category-rail button.is-active,
.tm-article-category-rail a.is-active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: white;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.tm-articles-container {
  display: grid;
  gap: 1.5rem;
}

.tm-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.85fr);
  gap: 1.5rem;
}

.tm-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tm-article-featured-card,
.tm-article-mini-card,
.tm-article-grid-card {
  cursor: pointer;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(49, 46, 129, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tm-article-featured-card:hover,
.tm-article-mini-card:hover,
.tm-article-grid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.24);
  box-shadow: 0 30px 70px rgba(49, 46, 129, 0.09);
}

.tm-article-featured-card,
.tm-article-grid-card {
  overflow: hidden;
  border-radius: 2rem;
}

.tm-article-featured-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.tm-article-side-stack {
  display: grid;
  gap: 1.5rem;
}

.tm-article-mini-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 17rem;
  padding: 1.75rem;
  border-radius: 2rem;
}

.tm-article-image {
  position: relative;
  height: 13.5rem;
  overflow: hidden;
  background: #eef2ff;
}

.tm-article-image-featured {
  height: 28rem;
}

.tm-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.tm-article-featured-card:hover .tm-article-image img,
.tm-article-grid-card:hover .tm-article-image img {
  transform: scale(1.045);
}

.tm-lead-chip {
  position: absolute;
  left: 1.35rem;
  top: 1.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #4f46e5;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tm-article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.65rem;
}

.tm-article-featured-card .tm-article-card-body {
  padding: clamp(1.5rem, 3.2vw, 3rem);
}

.tm-article-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tm-article-meta span:first-child {
  color: #4f46e5;
}

.tm-article-meta i {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.tm-article-featured-card h2,
.tm-article-mini-card h3,
.tm-article-grid-card h3 {
  color: #111827;
  font-family: var(--font-heading, inherit);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.tm-article-featured-card h2 {
  max-width: 52rem;
  font-size: clamp(2.2rem, 4.4vw, 4.7rem);
  line-height: 0.94;
}

.tm-article-mini-card h3,
.tm-article-grid-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1.45rem;
  line-height: 1.02;
}

.tm-article-featured-card:hover h2,
.tm-article-mini-card:hover h3,
.tm-article-grid-card:hover h3 {
  color: #4f46e5;
}

.tm-article-featured-card p,
.tm-article-mini-card p,
.tm-article-grid-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin-top: 1rem;
  color: #64748b;
  line-height: 1.7;
}

.tm-article-featured-card p {
  max-width: 48rem;
  -webkit-line-clamp: 3;
  font-size: 1.05rem;
}

.tm-article-mini-card p,
.tm-article-grid-card p {
  -webkit-line-clamp: 2;
  font-size: 0.86rem;
}

.tm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.tm-article-author {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}

.tm-author-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.72rem;
  font-weight: 900;
}

.tm-article-author p,
.tm-article-author small {
  display: block;
  overflow: hidden;
  max-width: 14rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-article-author p {
  margin: 0;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 900;
}

.tm-article-author small {
  margin-top: 0.15rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-card-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(99, 102, 241, 0.13);
  border-radius: 999px;
  color: #4f46e5;
  transition: 180ms ease;
}

.tm-article-featured-card:hover .tm-card-arrow,
.tm-article-mini-card:hover .tm-card-arrow,
.tm-article-grid-card:hover .tm-card-arrow {
  background: #4f46e5;
  color: white;
}

.tm-article-empty {
  padding: 7rem 1.5rem;
  border: 1px dashed rgba(99, 102, 241, 0.18);
  border-radius: 2rem;
  background: rgba(238, 242, 255, 0.26);
  color: #94a3b8;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Article reader */
.tm-reader-hero {
  height: 64svh;
  min-height: 30rem;
}

.tm-reader-hero-gradient {
  background:
    radial-gradient(circle at 50% 70%, rgba(79, 70, 229, 0.28), transparent 24rem),
    linear-gradient(to top, #fbfcff 0%, rgba(15, 23, 42, 0.82) 48%, rgba(15, 23, 42, 0.2) 100%);
}

.tm-reader-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tm-reader-title {
  max-width: 62rem;
  font-size: clamp(2.75rem, 6vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.tm-reader-card {
  border-radius: 2.7rem;
  padding: clamp(1.25rem, 5vw, 5.5rem);
  box-shadow: 0 34px 80px rgba(49, 46, 129, 0.08);
}

.tm-reader-share {
  position: relative;
}

.tm-reader-share .flex.items-center.gap-3 {
  flex-wrap: wrap;
}

.tm-share-button {
  min-height: 2.55rem;
}

.tm-reader-brief {
  display: grid;
  grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.86), rgba(255, 255, 255, 0.92));
}

.tm-reader-brief span {
  color: #4f46e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tm-reader-brief h2 {
  margin-top: 0.45rem;
  color: #111827;
  font-family: var(--font-heading, inherit);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.tm-reader-brief p {
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
}

.tm-reader-prose {
  color: #475569;
}

.tm-reader-prose a {
  color: #4f46e5;
  font-weight: 800;
}

/* Newspaper-style article refinements */
.tm-news-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(49, 46, 129, 0.05);
}

.tm-news-ticker > span,
.tm-section-heading > span,
.tm-sidebar-label {
  color: #4f46e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tm-news-ticker > div {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tm-news-ticker a {
  flex: 0 0 auto;
  max-width: 30rem;
  overflow: hidden;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-news-ticker a:hover {
  color: #4f46e5;
}

.tm-smartmag-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(24rem, 0.72fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.tm-smartmag-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tm-smartmag-card {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #111827;
  cursor: pointer;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.12);
  isolation: isolate;
}

.tm-smartmag-card.is-lead {
  min-height: 35rem;
}

.tm-smartmag-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms ease, opacity 700ms ease;
}

.tm-smartmag-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(7, 13, 31, 0.88), rgba(7, 13, 31, 0.28) 48%, rgba(7, 13, 31, 0.04)),
    linear-gradient(135deg, rgba(79, 70, 229, 0.18), transparent 42%);
}

.tm-smartmag-card:hover img {
  transform: scale(1.06);
  opacity: 0.92;
}

.tm-smartmag-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.25rem;
  color: white;
}

.tm-smartmag-card.is-lead .tm-smartmag-overlay {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.tm-smartmag-overlay span {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #4f46e5;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tm-smartmag-overlay h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-top: 0.8rem;
  font-family: var(--font-heading, inherit);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.tm-smartmag-card.is-lead .tm-smartmag-overlay h2 {
  max-width: 46rem;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 0.9;
}

.tm-smartmag-overlay small {
  display: block;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-sm-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.45fr) minmax(16rem, 0.45fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.1rem;
}

.tm-sm-feature-column {
  display: grid;
  gap: 1rem;
}

.tm-sm-feature-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tm-sm-top-hot,
.tm-sm-top-side,
.tm-sm-sidebar-card {
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(49, 46, 129, 0.06);
}

.tm-sm-top-hot {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem;
}

.tm-sm-top-side {
  overflow: hidden;
  padding: 0;
}

.tm-smartmag-card.is-wide {
  min-height: 15rem;
}

.tm-smartmag-card.is-tall {
  height: 100%;
  min-height: 34rem;
  border-radius: 1.25rem;
}

.tm-smartmag-card.is-editor {
  min-height: 16rem;
}

.tm-sm-hot-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  cursor: pointer;
}

.tm-sm-hot-item:first-of-type {
  border-top: 0;
}

.tm-sm-hot-item > span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 900;
}

.tm-sm-hot-item h3 {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.28;
}

.tm-sm-hot-item small {
  display: block;
  margin-top: 0.35rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-sm-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
  gap: 1.5rem;
  align-items: start;
}

.tm-sm-main-column,
.tm-sm-sidebar {
  display: grid;
  gap: 1.5rem;
}

.tm-sm-sidebar {
  position: sticky;
  top: 7rem;
}

.tm-sm-section {
  min-width: 0;
}

.tm-sm-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(79, 70, 229, 0.16);
}

.tm-sm-section-title span {
  color: #4f46e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tm-sm-section-title h2 {
  color: #111827;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 0.95;
}

.tm-sm-post-list {
  display: grid;
  gap: 1rem;
}

.tm-sm-post-row {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1.1rem;
  min-height: 11rem;
  padding: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(49, 46, 129, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tm-sm-post-row:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.24);
  box-shadow: 0 24px 52px rgba(49, 46, 129, 0.08);
}

.tm-sm-post-row > img {
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
  border-radius: 0.95rem;
  object-fit: cover;
}

.tm-sm-post-row h3 {
  color: #111827;
  font-family: var(--font-heading, inherit);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.tm-sm-post-row p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0.75rem 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tm-sm-editor-grid,
.tm-sm-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tm-sm-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tm-sm-category-block {
  padding: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
}

.tm-sm-category-lead {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  cursor: pointer;
}

.tm-sm-category-lead img {
  width: 100%;
  height: 8.5rem;
  border-radius: 0.9rem;
  object-fit: cover;
}

.tm-sm-category-lead h3 {
  color: #111827;
  font-family: var(--font-heading, inherit);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.tm-sm-category-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.tm-sm-category-list a {
  display: grid;
  gap: 0.25rem;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

.tm-sm-category-list span {
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-sm-sidebar-card {
  padding: 1.2rem;
}

.tm-sm-sidebar-card h2 {
  margin-top: 0.55rem;
  color: #111827;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 0.95;
}

.tm-sm-sidebar-card p {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.65;
}

.tm-sm-subscribe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: #4f46e5;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.tm-newspaper-layout {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
  grid-template-areas:
    "grid sidebar"
    "empty empty";
  align-items: start;
}

.tm-newspaper-layout .tm-article-grid {
  grid-area: grid;
}

.tm-newspaper-layout .tm-editorial-sidebar {
  grid-area: sidebar;
}

.tm-newspaper-layout .tm-article-empty {
  grid-area: empty;
}

.tm-latest-strip {
  display: grid;
  gap: 1rem;
}

.tm-latest-standalone {
  margin: 1.25rem 0 1.5rem;
}

.tm-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

.tm-section-heading h2 {
  color: #111827;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 0.95;
}

.tm-latest-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tm-latest-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 8.4rem;
  padding: 1.15rem;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tm-latest-row:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.24);
  box-shadow: 0 20px 44px rgba(49, 46, 129, 0.07);
}

.tm-latest-number {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.9rem;
  background: #eef2ff;
  color: #4f46e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.tm-latest-row h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #111827;
  font-family: var(--font-heading, inherit);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.tm-latest-row p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.tm-editorial-sidebar {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1rem;
}

.tm-sidebar-panel {
  padding: 1.35rem;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(49, 46, 129, 0.05);
}

.tm-sidebar-panel h2 {
  margin-top: 0.55rem;
  color: #111827;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 0.95;
}

.tm-sidebar-categories {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.tm-sidebar-categories button,
.tm-sidebar-categories a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1rem;
  background: #fbfcff;
  color: #334155;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0 0.9rem;
}

.tm-sidebar-categories button:hover,
.tm-sidebar-categories a:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.tm-sidebar-note p {
  margin-top: 0.7rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.7;
}

.tm-reader-magazine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.tm-reader-sidebar {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1rem;
}

.tm-reader-sidebar-card {
  padding: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1.35rem;
  background: rgba(248, 250, 252, 0.9);
}

.tm-reader-sidebar-card h2 {
  margin-top: 0.55rem;
  color: #111827;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 0.95;
}

.tm-reader-related-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tm-reader-related-list a,
.tm-reader-sidebar-latest a {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  color: #111827;
  text-decoration: none;
}

.tm-reader-related-list span {
  color: #4f46e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tm-reader-related-list strong {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
}

.tm-reader-sidebar-latest {
  background: #111827;
}

.tm-reader-sidebar-latest h2,
.tm-reader-sidebar-latest a {
  color: white;
}

.tm-reader-sidebar-latest a {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.tm-reader-sidebar-latest i {
  color: #818cf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.tm-reader-sidebar-latest span {
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .tm-articles-hero,
  .tm-featured-grid {
    grid-template-columns: 1fr;
  }

  .tm-smartmag-hero-grid {
    grid-template-columns: 1fr;
  }

  .tm-articles-radar {
    min-height: 22rem;
  }

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

  .tm-newspaper-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "grid"
      "empty";
  }

  .tm-editorial-sidebar,
  .tm-reader-sidebar {
    position: relative;
    top: auto;
  }

  .tm-reader-magazine-grid {
    grid-template-columns: 1fr;
  }

  .tm-sm-top-grid,
  .tm-sm-body-grid {
    grid-template-columns: 1fr;
  }

  .tm-sm-sidebar {
    position: relative;
    top: auto;
  }

  .tm-sm-top-grid {
    gap: 1rem;
  }

  .tm-smartmag-card.is-tall {
    min-height: 20rem;
  }
}

@media (max-width: 760px) {
  .tm-articles-main {
    max-width: 100%;
    padding-top: 5rem;
  }

  .tm-articles-hero {
    min-height: 0;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .tm-articles-title {
    margin-top: 1rem;
    font-size: 3.6rem;
  }

  .tm-articles-lede {
    font-size: 1rem;
    line-height: 1.6;
  }

  .tm-article-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tm-articles-radar {
    min-height: 17rem;
    border-radius: 2rem;
  }

  .tm-radar-core {
    width: 7.2rem;
    height: 7.2rem;
    border-radius: 1.8rem;
  }

  .tm-radar-orbit-a {
    width: 14rem;
    height: 14rem;
  }

  .tm-radar-orbit-b {
    width: 9rem;
    height: 9rem;
  }

  .tm-articles-console {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tm-article-sort,
  .tm-article-sort button,
  .tm-article-count-chip {
    width: 100%;
  }

  .tm-article-sort button {
    flex: 1;
  }

  .tm-article-category-rail {
    margin-bottom: 2rem;
  }

  .tm-article-grid {
    grid-template-columns: 1fr;
  }

  .tm-news-ticker {
    grid-template-columns: 1fr;
    border-radius: 1rem;
  }

  .tm-news-ticker > div {
    gap: 0.9rem;
  }

  .tm-news-ticker a {
    max-width: 18rem;
    font-size: 0.78rem;
  }

  .tm-newspaper-layout .tm-article-side-stack,
  .tm-latest-list {
    grid-template-columns: 1fr;
  }

  .tm-smartmag-side {
    grid-template-columns: 1fr;
  }

  .tm-smartmag-card.is-lead,
  .tm-smartmag-card {
    min-height: 18.5rem;
    border-radius: 1rem;
  }

  .tm-smartmag-card.is-lead .tm-smartmag-overlay h2 {
    font-size: 2rem;
    line-height: 0.95;
  }

  .tm-smartmag-overlay h2 {
    font-size: 1.35rem;
  }

  .tm-sm-feature-bottom,
  .tm-sm-editor-grid,
  .tm-sm-more-grid,
  .tm-sm-category-grid {
    grid-template-columns: 1fr;
  }

  .tm-sm-post-row,
  .tm-sm-category-lead {
    grid-template-columns: 1fr;
  }

  .tm-sm-post-row > img,
  .tm-sm-category-lead img {
    height: 12rem;
    min-height: 0;
  }

  .tm-sm-section-title {
    align-items: start;
    flex-direction: column;
  }

  .tm-sm-section-title h2 {
    font-size: 1.6rem;
  }

  .tm-sm-top-hot,
  .tm-sm-sidebar-card,
  .tm-sm-category-block,
  .tm-sm-post-row {
    border-radius: 1rem;
  }

  .tm-article-image-featured,
  .tm-article-image {
    height: 13rem;
  }

  .tm-article-featured-card h2 {
    font-size: 2rem;
    line-height: 0.98;
  }

  .tm-article-featured-card,
  .tm-article-grid-card,
  .tm-article-mini-card {
    border-radius: 1.55rem;
  }

  .tm-article-card-body,
  .tm-article-featured-card .tm-article-card-body,
  .tm-article-mini-card {
    padding: 1.25rem;
  }

  .tm-reader-hero {
    height: 62svh;
    min-height: 26rem;
  }

  .tm-reader-title {
    font-size: 2.55rem;
    line-height: 0.95;
  }

  .tm-reader-meta {
    gap: 0.9rem;
    font-size: 0.55rem;
  }

  .tm-reader-card {
    border-radius: 1.7rem;
  }

  .tm-reader-brief {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 1.35rem;
  }

  .tm-reader-brief h2 {
    font-size: 1.5rem;
  }

  .tm-reader-prose {
    font-size: 0.96rem;
  }

  .tm-reader-sidebar-card {
    border-radius: 1.15rem;
  }
}

@media (max-width: 430px) {
  .tm-articles-title {
    font-size: 2.9rem;
  }

  .tm-article-author p,
  .tm-article-author small {
    max-width: 9rem;
  }

  .tm-reader-share .flex.items-center.gap-3,
  .tm-share-button {
    width: 100%;
  }

  .tm-share-button {
    justify-content: center;
  }
}
