/* Shell additions for the Astro build. The visual system stays in base, components, and layout. */

:root {
  --nav-bar-height: 72px;
  --ticker-height: 0px;
  --nav-height: var(--nav-bar-height);
}

body:has(.news-ticker) {
  --ticker-height: 40px;
  --nav-height: calc(var(--nav-bar-height) + var(--ticker-height));
}

body:has(.news-ticker) .site-nav {
  height: var(--nav-bar-height);
}

.news-ticker {
  position: fixed;
  top: var(--nav-bar-height);
  left: 0;
  right: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 var(--space-4);
  /* Hub header navy. Dark --bg (#0A1628) is the close token; the bar stays that navy in light mode. */
  background: #0A1628;
  color: #F1F5F9;
  /* Hub orange. No site token is close to #fa582d; --accent is gold. */
  border-bottom: 2px solid #fa582d;
  min-width: 0;
}

.news-ticker-brand {
  flex: none;
  color: #fa582d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.news-ticker-week,
.news-ticker-pause {
  flex: none;
  border: 1px solid rgba(241, 245, 249, 0.28);
  background: transparent;
  color: #F1F5F9;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.news-ticker-week {
  color: #fa582d;
  border-color: #fa582d;
}

.news-ticker-week:hover,
.news-ticker-pause:hover {
  color: #fff;
  border-color: #fa582d;
}

.news-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.news-ticker-track {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.news-ticker-item {
  display: none;
  color: #F1F5F9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.news-ticker:not(.news-ticker--step):not(.news-ticker--marquee) .news-ticker-item:first-child,
.news-ticker--marquee .news-ticker-item,
.news-ticker--step .news-ticker-item.is-current {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-ticker-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Bright values of the dark-theme tokens, so the tags stay readable on the navy bar in light mode. */
.news-ticker-tag--xsiam { color: var(--primary-light); }
.news-ticker-tag--agentix { color: #60A5FA; }
.news-ticker-tag--xcor { color: var(--primary-lighter); }
.news-ticker-tag--prisma { color: #34D399; }
.news-ticker-tag--partners { color: #E8C76A; }
.news-ticker-tag--firewall { color: #FBBF24; }
.news-ticker-tag--competition { color: #D4A843; }
.news-ticker-tag--other { color: #94A3B8; }

.news-ticker-tag--urgent {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}

.news-ticker--marquee .news-ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  max-width: none;
  animation: news-ticker-marquee linear infinite;
}

.news-ticker--marquee .news-ticker-item,
.news-ticker--marquee .news-ticker-item:first-child {
  display: block;
  flex: none;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.news-ticker:focus-within .news-ticker-track,
.news-ticker[data-paused="true"] .news-ticker-track,
.news-ticker--touch-hold .news-ticker-track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .news-ticker:hover .news-ticker-track {
    animation-play-state: paused;
  }
}

.news-ticker-item.is-touch-target {
  background: rgba(46, 123, 214, 0.45);
  box-shadow: inset 0 0 0 1px var(--primary-light);
  border-radius: 4px;
}

.news-ticker--step .news-ticker-item.is-enter {
  animation: news-ticker-in 0.35s ease;
}

@keyframes news-ticker-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes news-ticker-in {
  from { transform: translateX(16px); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker-track,
  .news-ticker--step .news-ticker-item.is-enter {
    animation: none !important;
  }
}

.home-week-link {
  margin: 0;
  padding: var(--space-4) var(--space-5) 0;
  text-align: center;
  font-size: var(--text-sm);
}

.home-week-link a {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-3);
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Content is readable without the old scroll-reveal script. */
.reveal,
.reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

.page-tools {
  position: sticky;
  top: var(--nav-height);
  z-index: 30;
  background: rgba(10, 22, 40, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
}

[data-theme="light"] .page-tools {
  background: rgba(255, 255, 255, 0.94);
}

.role-strip,
.page-outline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-outline {
  margin-top: 8px;
}

.role-strip span,
.page-kind,
.page-outline-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-kind {
  color: var(--accent);
}

.role-strip a,
.page-outline a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
}

.role-strip a:hover,
.page-outline a:hover {
  color: var(--text-primary);
  border-color: var(--primary-light);
}

h2,
h3,
[id] {
  scroll-margin-top: calc(var(--nav-height) + 72px);
}

.brief-section {
  padding-bottom: var(--space-4);
}

.brief-lead {
  max-width: 860px;
  margin: 0 auto;
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.brief-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: var(--space-5) auto 0;
  max-width: 960px;
}

.brief-index a,
.brief-index span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--glass-bg);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
}

.brief-index span {
  color: var(--text-muted);
  font-weight: 600;
}

.brief-label {
  padding: var(--space-8) 0 0;
}

.brief-label .section-title {
  text-align: left;
  margin-bottom: 0;
}

.news-groups {
  max-width: 1100px;
  margin: 0 auto;
}

.news-group + .news-group {
  margin-top: var(--space-8);
}

.news-group > .section-eyebrow {
  text-align: left;
  margin-bottom: var(--space-3);
}

.news-list {
  display: grid;
  gap: var(--space-3);
  max-width: 1100px;
  margin: 0 auto;
}

.news-groups .news-list {
  max-width: none;
  margin: 0;
}

.news-card {
  text-align: left;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.news-card--advisory {
  border-left: 3px solid var(--error);
}

.news-kicker {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: var(--space-2);
}

.news-card--advisory .news-kicker {
  color: var(--error);
}

.news-added,
.news-new {
  display: inline-block;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  vertical-align: 1px;
}

.news-added {
  color: var(--text-secondary);
}

.news-new {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
}

.news-card--new {
  box-shadow: inset 3px 0 0 var(--primary);
}

.news-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.news-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: none;
}

.news-why {
  margin-top: var(--space-2);
  color: var(--text-primary) !important;
}

.news-source {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--primary-light);
  font-size: var(--text-xs);
  font-weight: 700;
}

.news-empty {
  text-align: center;
  color: var(--text-secondary);
}

.news-card,
.news-scan-card {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.news-card:target,
.news-scan-card:target {
  border-color: #fa582d;
  box-shadow: inset 0 0 0 2px #fa582d;
}

.news-section-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.news-section-link:hover,
.news-section-link:focus-visible {
  color: #fa582d;
}

.news-hero .hero-title {
  font-size: clamp(1.8rem, 1.1rem + 2vw, 3rem);
}

.news-hero .hero-content {
  max-width: 980px;
}

.news-browse {
  text-align: left;
  margin-top: var(--space-2);
}

.news-search-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fa582d;
  margin-bottom: 8px;
}

.news-search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(250, 88, 45, 0.55);
  background: #0A1628;
  color: #F8FAFC;
  font: inherit;
  font-size: var(--text-base);
}

[data-theme="light"] .news-search-input {
  background: #fff;
  color: #0A1628;
}

.news-search-input:focus {
  outline: none;
  border-color: #fa582d;
  box-shadow: 0 0 0 3px rgba(250, 88, 45, 0.28);
}

.news-search-status {
  min-height: 1.25em;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-align: left;
}

.news-search-results {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.news-search-results[hidden],
[data-news-stories][hidden] {
  display: none !important;
}

.news-search-hit {
  display: block;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit;
}

.news-search-hit:hover,
.news-search-hit.is-current,
.news-search-hit:focus-visible {
  border-color: #fa582d;
}

.news-search-meta,
.news-scan-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
}

.news-search-tag {
  color: #fa582d;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-search-title {
  display: block;
  margin: 2px 0 6px;
  color: var(--text-primary);
  font-size: var(--text-base);
}

.news-search-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.news-tag-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.news-tag-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.news-tag-nav a:hover,
.news-tag-nav a:focus-visible {
  border-color: #fa582d;
}

.news-tag-nav a.is-current {
  background: #fa582d;
  border-color: #fa582d;
  color: #fff;
}

.news-scan-week + .news-scan-week {
  margin-top: var(--space-8);
}

.news-scan-week-label {
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.news-scan-card {
  position: relative;
  text-align: left;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.news-scan-card--urgent {
  border-left: 3px solid #fa582d;
}

.news-urgent {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #fa582d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.news-scan-competitor {
  color: var(--text-primary);
}

.news-scan-title {
  font-size: var(--text-lg);
  margin-bottom: 8px;
  text-align: left;
}

.news-scan-title a {
  color: var(--text-primary);
}

.news-scan-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.news-scan-title a:hover,
.news-scan-title a:focus-visible {
  color: #fa582d;
}

.news-scan-summary {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.news-scan-card .news-source {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .news-scan-card {
    padding: var(--space-4);
  }

  .news-scan-title,
  .news-search-title {
    font-size: var(--text-base);
  }

  .news-tag-nav a {
    padding: 8px 12px;
  }
}

.search-dialog[hidden] {
  display: none !important;
}

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh var(--space-4) var(--space-4);
  background: rgba(0, 0, 0, 0.62);
}

.search-dialog-panel {
  width: min(720px, 100%);
  background: var(--surface-elevated, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}

#search-dialog-input {
  width: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--text-base);
}

#search-dialog-input:focus {
  border-color: var(--primary-light);
  outline: none;
}

.search-hit {
  display: block;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
}

.search-hit:hover,
.search-hit.sel {
  background: var(--glass-bg-hover);
}

.search-hit-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.search-hit-title {
  font-weight: 700;
}

.search-hit-desc {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-blog {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.seller-blog > :first-child {
  margin-top: 0;
}

.seller-blog h2,
.seller-blog h3 {
  text-align: left;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.seller-blog p,
.seller-blog li {
  max-width: 72ch;
}

.seller-blog ul,
.seller-blog ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.3rem;
}

.seller-blog ul {
  list-style: disc;
}

.seller-blog ol {
  list-style: decimal;
}

.seller-blog li + li {
  margin-top: var(--space-3);
}

.seller-blog a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.seller-blog strong {
  color: var(--text-primary);
}

.seller-blog hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

.seller-blog .table-wrapper {
  margin: var(--space-5) 0 var(--space-6);
}

.seller-blog .table-wrapper td,
.seller-blog .table-wrapper th {
  white-space: normal;
}

.seller-hero.hero-section {
  min-height: 0;
  padding: calc(var(--nav-height) + var(--space-5)) var(--space-5) var(--space-5);
}

.seller-hero .hero-title {
  font-size: var(--text-3xl);
}

.seller-blog-section.section {
  padding-top: var(--space-4);
  padding-bottom: var(--space-8);
}

.seller-entry-card {
  border-left: 4px solid var(--accent);
  display: grid;
  gap: var(--space-3);
}

.seller-entry-card .news-kicker {
  color: var(--accent);
  margin: 0;
}

.seller-entry-card h3 {
  margin: 0;
}

.seller-entry-card .seller-entry-dek {
  margin: 0;
  color: var(--text-secondary);
}

.seller-entry-excerpt {
  margin: 0;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary-light) 12%, var(--surface-elevated));
  border-left: 3px solid var(--primary-light);
}

.seller-entry-excerpt p {
  margin: 0;
}

.seller-entry-card .btn {
  justify-self: start;
  text-decoration: none;
}

.seller-blog {
  max-width: 960px;
}

.blog-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.seller-blog .blog-jump-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
}

.blog-jump-link .blog-section-icon {
  width: 22px;
  height: 22px;
}

.blog-takeaways,
.blog-section,
.blog-sub {
  --blog-accent: var(--primary-light);
}

.blog-takeaways { --blog-accent: var(--accent); }
.blog-section--positioning,
.blog-jump-link--positioning,
.blog-callout--message { --blog-accent: var(--primary-light); }
.blog-section--usecases,
.blog-jump-link--usecases,
.blog-callout--news { --blog-accent: var(--info); }
.blog-section--map,
.blog-jump-link--map,
.blog-callout--partners,
.blog-sub--partners { --blog-accent: var(--accent); }
.blog-section--ready,
.blog-jump-link--ready,
.blog-sub--prep { --blog-accent: var(--success); }
.blog-section--sources,
.blog-jump-link--sources { --blog-accent: var(--text-secondary); }
.blog-section--competitive,
.blog-jump-link--competitive { --blog-accent: var(--error); }
.blog-sub--questions { --blog-accent: var(--info); }
.blog-sub--accounts,
.blog-callout--accounts { --blog-accent: var(--primary-lighter); }
.blog-sub--caveats,
.blog-callout--note { --blog-accent: var(--warning); }

.blog-takeaways,
.blog-section {
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blog-accent);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.blog-takeaways {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blog-accent) 16%, transparent), transparent 7rem),
    var(--surface);
}

.seller-blog .blog-takeaways > h2,
.seller-blog .blog-section > h2,
.seller-blog .blog-sub-title {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  text-align: left;
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--blog-accent);
}

.seller-blog .blog-sub-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.blog-section-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--blog-accent) 18%, transparent);
  color: var(--blog-accent);
}

.blog-section-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-callout {
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--blog-accent);
  background: color-mix(in srgb, var(--blog-accent) 12%, var(--surface-elevated));
}

.blog-callout p,
.blog-takeaways > p,
.blog-section > p {
  margin-top: 0;
}

.blog-sub {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--blog-accent) 35%, var(--border));
}

.blog-section--positioning > ul,
.blog-section--usecases > ol,
.blog-section--competitive > ul,
.blog-sub > ul,
.blog-sub > ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.blog-section--usecases > ol {
  counter-reset: blog-step;
}

.blog-point {
  margin: 0;
  padding: var(--space-3);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.blog-section--usecases > ol > .blog-point {
  counter-increment: blog-step;
  position: relative;
  padding-left: 2.6rem;
}

.blog-section--usecases > ol > .blog-point::before {
  content: counter(blog-step);
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--blog-accent) 18%, transparent);
  color: var(--blog-accent);
  font-weight: 800;
  font-size: var(--text-sm);
}

.blog-section--positioning .blog-point > strong:first-child,
.blog-section--usecases .blog-point > strong:first-child,
.blog-section--competitive .blog-point > strong:first-child,
.blog-sub--caveats .blog-point > strong:first-child {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--blog-accent);
}

.blog-section--map .table-wrapper {
  margin: 0;
  border-color: color-mix(in srgb, var(--blog-accent) 45%, var(--border));
}

.blog-section--map .table-wrapper th {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-elevated));
}

.blog-section--sources ol {
  margin: 0;
  padding-left: 1.2rem;
}

.blog-section--sources li + li {
  margin-top: var(--space-2);
}

.seller-blog .blog-section h2,
.seller-blog .blog-takeaways h2 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .seller-hero.hero-section {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .blog-jump {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }

  .blog-jump-link {
    flex: none;
  }

  .blog-takeaways,
  .blog-section {
    padding: var(--space-3);
  }

  .seller-blog .blog-takeaways > h2,
  .seller-blog .blog-section > h2 {
    font-size: var(--text-lg);
  }
}

@media print {
  .site-nav,
  .news-ticker,
  .news-browse,
  .mobile-drawer,
  .back-to-top,
  .search-dialog,
  .skip-link,
  .page-tools,
  .hero-bg {
    display: none !important;
  }

  :root,
  [data-theme="dark"] {
    --bg: #fff;
    --surface: #fff;
    --text-primary: #111;
    --text-secondary: #222;
    --text-muted: #333;
    --border: #ccc;
  }

  body,
  .page-wrapper {
    background: #fff !important;
    color: #111 !important;
  }

  .hero-section {
    min-height: 0 !important;
    padding-top: 0 !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}

/* Homepage critical alert. Remove src/data/home-alert.json (or set active to false) to drop it. */
.home-alert {
  position: relative;
  z-index: 2;
  background: transparent;
  color: #fff;
  border: 0;
  margin: 0;
  padding: var(--space-3) var(--space-4) var(--space-2);
  scroll-margin-top: var(--space-3);
}

.home-alert-summary {
  display: flex;
  align-items: center;
  gap: 0.45em;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 7px 12px 7px 14px;
  border: 1px solid #EF4444;
  border-radius: var(--radius-full);
  background: #B42318;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.home-alert-summary::-webkit-details-marker {
  display: none;
}

.home-alert-summary::after {
  content: "";
  flex: none;
  width: 0.45em;
  height: 0.45em;
  margin-top: -0.15em;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.home-alert[open] .home-alert-summary::after {
  margin-top: 0.15em;
  transform: rotate(225deg);
}

.home-alert-summary:hover {
  background: #9B1C1C;
}

.home-alert-summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.home-alert-summary-label {
  min-width: 0;
}

.home-alert-panel {
  width: min(960px, 100%);
  margin: var(--space-3) auto 0;
  padding: var(--space-5);
  background: #8E1515;
  color: #fff;
  border-bottom: 4px solid #EF4444;
  border-radius: var(--radius-lg);
  text-align: left;
}

.home-alert-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.home-alert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-alert-badges li {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7F1D1D;
  background: #fff;
  border-radius: var(--radius-full);
  padding: 5px 10px;
  line-height: 1.3;
}

.home-alert-updated,
.home-alert p,
.home-alert-steps li {
  color: #fff;
  max-width: none;
}

.home-alert .home-alert-badges li {
  color: #7F1D1D;
}

.home-alert-updated {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
}

.home-alert-title {
  margin: 0 0 var(--space-3);
  color: #fff;
  font-size: var(--text-2xl);
  line-height: 1.2;
}

.home-alert-affects,
.home-alert-unaffected {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  line-height: 1.55;
}

.home-alert-kicker {
  margin: var(--space-4) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.home-alert-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  counter-reset: home-alert-step;
}

.home-alert-steps li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  line-height: 1.5;
  counter-increment: home-alert-step;
}

.home-alert-steps li::before {
  content: counter(home-alert-step);
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: var(--radius-full);
  background: #fff;
  color: #7F1D1D;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
}

.home-alert-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}

.home-alert-links a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
}

.home-alert-links a:hover {
  background: #fff;
  color: #7F1D1D;
}

.home-alert-link-note {
  font-weight: 600;
}

.home-alert a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body:has(.home-alert) .site-nav {
  position: sticky;
  top: 0;
}

body:has(.home-alert) .news-ticker {
  position: sticky;
  top: var(--nav-bar-height);
}

body:has(.home-alert) .hero-section {
  padding-top: var(--space-8);
}

@media (max-width: 640px) {
  .home-alert {
    padding: var(--space-3) var(--space-3) var(--space-2);
  }

  .home-alert-summary {
    padding: 6px 10px 6px 12px;
    font-size: var(--text-xs);
  }

  .home-alert-panel {
    padding: var(--space-4);
  }

  .home-alert-links a {
    width: auto;
  }

  body:has(.home-alert) .hero-section {
    padding-top: var(--space-6);
  }
}
