.tess-horizon {
  color-scheme: dark;
  --paper: #192333;
  --panel: #222e44;
  --ink: #f7f9fc;
  --muted: #9ca3af;
  --line: #ffffff1a;
  --dark: #192333;
  --olive: #aaab5b;
  --gold: #aaab5b;
  --soft: #ffffff0d;
  --type: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: Menlo, monospace;
  font: 1rem/1.6 var(--type);
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #aaab5b33 #192333;
}

.tess-horizon :focus-visible { outline: 2px solid var(--olive); }
.tess-horizon .skip { z-index: 10; background: #222e44; color: var(--ink); }
.tess-horizon .shell { width: calc(100% - 32px); max-width: 1248px; }
.tess-horizon h1, .tess-horizon h2 { letter-spacing: -.03em; }
.tess-horizon h3, .tess-horizon h4 { letter-spacing: -.02em; }

.tess-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #192333;
  border-bottom: 1px solid #ffffff0a;
}

.tess-header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  gap: 12px;
}

.tess-brand { display: inline-flex; align-items: center; flex: none; }
.tess-brand img { width: auto; height: 32px; object-fit: contain; }
.tess-nav, .tess-header-contact {
  display: flex;
  align-items: center;
  font-size: .875rem;
  color: #d1d5db;
}
.tess-nav { justify-content: center; gap: clamp(15px, 2.8vw, 40px); font-weight: 500; }
.tess-header-contact { gap: 12px; }
.tess-header a, .tess-footer a { color: inherit; text-decoration: none; }
.tess-header a:hover, .tess-menu summary:hover, .tess-footer a:hover { color: #fff; }
.tess-header .tess-contact {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 20px;
  border-radius: 9999px;
  background: #aaab5b;
  color: #192333;
  font-weight: 700;
  white-space: nowrap;
}
.tess-header .tess-contact:hover { background: #b9ba71; color: #192333; }
.tess-phone, .tess-search { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.tess-search { width: 36px; height: 36px; justify-content: center; border-radius: 9px; }
.tess-search:hover { background: #ffffff0f; }
.tess-menu { position: relative; }
.tess-menu summary, .tess-mobile > summary { cursor: pointer; list-style: none; }
.tess-menu summary { display: flex; align-items: center; gap: 6px; padding-block: 12px; white-space: nowrap; }
.tess-menu summary::-webkit-details-marker, .tess-mobile > summary::-webkit-details-marker { display: none; }
.tess-menu summary::after {
  content: "";
  border: 3.5px solid transparent;
  border-bottom: 0;
  border-top-color: var(--muted);
}
.tess-menu[open] summary::after { transform: rotate(180deg); }
.tess-menu ul, .tess-mobile > nav {
  position: absolute;
  inset-block-start: calc(100% + 4px);
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #222e44;
  box-shadow: 0 18px 40px #131b2880;
  list-style: none;
}
.tess-menu ul { min-width: 250px; }
.tess-menu li + li { margin-top: 10px; }
.tess-mobile { display: none; }

.tess-horizon .lead-hero {
  display: grid;
  place-items: center;
  min-height: max(540px, calc(100svh - 73px));
  background: #192333;
}
.tess-horizon .lead-hero-inner { max-width: 896px; padding-block: 72px; }
.tess-horizon .lead-hero::before, .tess-horizon .lead-video { filter: brightness(1.26) saturate(.78); }
.tess-horizon .lead-hero::after {
  background: radial-gradient(ellipse at 50% 43%, #19233332 15%, #192333a0 69%, #192333e6 100%),
    linear-gradient(180deg, #19233379 0%, #19233315 43%, #192333 100%);
}
.tess-horizon .lead-kicker { color: #aaab5b; font-size: 1rem; font-weight: 600; letter-spacing: .025em; }
.tess-horizon .lead-hero h1 { color: #fff; font-size: 3rem; line-height: 1.05; letter-spacing: -.02em; margin: 20px 0 26px; text-shadow: 0 2px 10px #131b284d; }
.tess-horizon .lead-description { max-width: 672px; margin: 0 auto; color: #9ca3af; font-size: 1.125rem; line-height: 1.625; }
.tess-horizon .lead-actions { gap: 16px; margin-top: 48px; }
.tess-horizon .lead-actions a { min-height: 56px; padding: 0 32px; font-size: 1rem; border-radius: 9999px; }
.tess-horizon .lead-actions .primary { background: #aaab5b; color: #192333; font-weight: 700; }
.tess-horizon .lead-actions .primary:hover { background: #b9ba71; }
.tess-horizon .lead-actions .secondary { border: 1px solid var(--line); background: #19233338; color: #d1d5db; font-weight: 500; }
.tess-horizon .lead-actions .secondary:hover { background: #ffffff0d; color: white; }
.tess-horizon .lead-motion { bottom: 16px; border-color: #ffffff40; background: #222e44; }
.lead-to-week { position: absolute; inset-inline-start: 50%; bottom: 16px; width: 44px; height: 44px; display: grid; place-items: center; transform: translateX(-50%); color: #9ca3af; }
.lead-to-week:hover { color: #fff; }

.tess-horizon .weekly { padding-block: clamp(38px, 5.5vw, 72px) 38px; }
.tess-horizon .weekly-head { margin-bottom: 22px; }
.tess-horizon .section-heading, .tess-horizon .feed h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
.tess-horizon .weekly-head h2, .tess-horizon .research h2, .tess-horizon .feed h2, .tess-horizon .publication h1 {
  background: linear-gradient(135deg, #fff, #c8e8ea);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tess-horizon :is(.weekly-card, .tile, .feature-inner) {
  color-scheme: light;
  --panel: #fbfaf7;
  --ink: #121f2b;
  --muted: #535d6a;
  --line: #dcd6cb;
  --olive: #55551d;
  --soft: #edebdb;
  color: var(--ink);
}
.tess-horizon :is(.weekly-card, .tile, .balance-chart) {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.tess-horizon .weekly-card, .tess-horizon .tile { padding: clamp(16px, 2vw, 24px); }
.tess-horizon .weekly-card h3, .tess-horizon .tile .tile-heading { font-weight: 700; font-size: 1.25rem; line-height: 1.28; letter-spacing: -.02em; }
.tess-horizon .weekly-card strong, .tess-horizon .tile-impact strong { color: var(--ink); }
.tess-horizon .weekly-effect, .tess-horizon .tile .tile-impact { padding-left: 11px; border-color: #aaa478; color: var(--muted); }
.tess-horizon :is(.tile, .weekly-card):hover { border-color: #aaab5b66; box-shadow: 0 9px 22px #131b2830; }
.tess-horizon .tile-bottom { border-color: var(--line); }
.tess-horizon .category, .tess-horizon .tile-value { --cat-ink: var(--olive); --cat-bg: var(--soft); }
.tess-horizon .state, .tess-horizon .rating {
  border: 1px solid #ffffff1a;
  border-radius: 9999px;
  background: #ffffff0b;
  color: #c8ced8;
  font-weight: 500;
}
.tess-horizon .rating.material, .tess-horizon .rating.conditional { color: #c7c77f; background: #aaab5b18; border-color: #aaab5b35; }
.tess-horizon :is(.tile, .signal-content) .state { background: #e8f5ef; color: #255c50; border-color: transparent; }
.tess-horizon :is(.tile, .signal-content) .state.plan { background: #f1eaf8; color: #66468d; }
.tess-horizon :is(.tile, .signal-content) .state.watch { background: #f4ead1; color: #5d4c22; }
.tess-horizon :is(.tile, .signal-content) .state.closed { background: #eaf0f7; color: #34577c; }
.tess-horizon .tile .rating.material { background: #e7e8ca; color: #4c4d19; border-color: transparent; }
.tess-horizon .tile .rating.conditional { background: #f2e7ca; color: #654f1d; border-color: transparent; }

.tess-horizon .feature-inner { border-radius: 16px; }
.tess-horizon .feed { padding-top: clamp(38px, 5.5vw, 68px); }
.tess-horizon .feed-head { align-items: center; }
.tess-horizon .feed-head .edition { display: block; margin-top: 8px; }
.tess-horizon .saved-link { border-color: var(--line); }
.tess-horizon .series-nav a, .tess-horizon .filter, .tess-horizon .search, .tess-horizon .action {
  background: #ffffff0d;
  color: #d1d5db;
  border: 1px solid var(--line);
  border-radius: 9999px;
}
.tess-horizon .filter[aria-pressed="true"], .tess-horizon .series-nav a[aria-current],
.tess-horizon .action[aria-pressed="true"] { background: #aaab5b; color: #192333; border-color: #aaab5b; }
.tess-horizon .scope-filter { color: var(--muted); }
.tess-horizon .scope-filter[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.tess-horizon .scope-filter:hover, .tess-horizon .action:hover { background: #ffffff15; }
.tess-horizon .action[aria-pressed="true"]:hover { background: #b9ba71; }
.tess-horizon .search input::placeholder { color: #9ca3af; }
.tess-horizon .empty { background: var(--panel); border-color: var(--line); }

.tess-horizon .simple-page { padding-top: clamp(27px, 4vw, 56px); }
.tess-horizon .publication h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.tess-horizon .publication-lead { color: #d1d5db; font-weight: 400; line-height: 1.6; }
.tess-horizon .publication-section h2 { font-size: 1.5rem; line-height: 1.333; letter-spacing: -.03em; }
.tess-horizon .publication { width: min(768px, calc(100% - 32px)); }
.tess-horizon .publication-section > p, .tess-horizon .publication-section li { color: #d1d5db; }
.tess-horizon .publication-section a:not(.action) { color: var(--gold); }
.tess-horizon .balance-track { background: #ffffff18; }
.tess-horizon .balance-track > span { background: #7391b7; }
.tess-horizon .november .balance-track > span { background: #aaab5b; }
.tess-horizon .toast { z-index: 6; background: #222e44; border: 1px solid var(--line); }

.tess-footer {
  margin-top: clamp(38px, 6vw, 80px);
  padding-top: 56px;
  background: #131b28;
  color: #9ca3af;
  border-top: 1px solid #ffffff0f;
  font-size: .875rem;
}
.tess-footer-main { display: grid; grid-template-columns: 1.25fr .8fr 1.15fr .85fr; gap: 30px; padding-bottom: 34px; }
.tess-footer-main p { margin-top: 14px; }
.tess-footer-main h2 { color: white; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 19px; }
.tess-footer ul { margin: 0; padding: 0; list-style: none; }
.tess-footer li + li { margin-top: 9px; }
.tess-social { display: flex; flex-wrap: wrap; gap: 12px; }
.tess-footer-registry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 24px; border-block: 1px solid #ffffff0f; font-size: .75rem; }
.tess-footer-registry h2 { font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.tess-footer-registry p + p { margin-top: 6px; }
.tess-footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-block: 24px; font-size: .75rem; }
.tess-footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (min-width: 1024px) {
  .tess-horizon .lead-hero h1 { font-size: 4.5rem; line-height: 1; }
  .tess-horizon .lead-description { font-size: 1.25rem; }
}

@media (max-width: 1050px) {
  .tess-header-contact .tess-phone span { display: none; }
}

@media (max-width: 767px) {
  .tess-header-inner { grid-template-columns: 1fr auto; min-height: 64px; }
  .tess-nav, .tess-header-contact { display: none; }
  .tess-mobile { display: block; }
  .tess-mobile > summary { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; }
  .tess-mobile > summary svg { width: 22px; height: 22px; }
  .tess-mobile > nav { inset-inline: 0; display: grid; align-items: start; gap: 9px; max-height: min(70svh, 540px); overflow-y: auto; }
  .tess-mobile nav .tess-menu ul { position: static; box-shadow: none; min-width: 0; }
  .tess-mobile .tess-contact { justify-self: start; }
  .tess-horizon .lead-hero { min-height: max(510px, calc(100svh - 65px)); }
  .tess-horizon .lead-hero-inner { padding-block: 56px; }
  .tess-horizon .lead-actions { gap: 10px; margin-top: 28px; }
  .tess-horizon .lead-actions a { width: 100%; max-width: 320px; min-height: 50px; }
  .tess-horizon .feed-head .saved-link { margin-left: 0; }
  .tess-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .tess-footer-registry { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 359px) {
  .tess-footer-main { grid-template-columns: minmax(0, 1fr); }
}
