/*
 * SmartJots fast homepage
 * Text-first LCP, solid cards, native scrolling, no blur filters or carousel
 * library. This file is intentionally homepage-only.
 */

.home-template {
  --sj-ink: #0b0d21;
  --sj-copy: #343b5c;
  --sj-muted: #68708f;
  --sj-line: rgba(74, 79, 139, 0.16);
  --sj-soft-line: rgba(89, 99, 174, 0.1);
  --sj-panel: #ffffff;
  --sj-panel-soft: #f8f9ff;
  --sj-blue: #2368e8;
  --sj-violet: #4aabdc;
  --sj-pink: #2ed686;
  --sj-focus: #448fcc;
  --sj-shadow: 0 16px 42px rgba(50, 76, 101, 0.09);
  --sj-shadow-hover: 0 22px 52px rgba(50, 76, 101, 0.15);
  background:
    radial-gradient(circle at 6% 8%, rgba(96, 252, 176, 0.1), transparent 26rem),
    radial-gradient(circle at 92% 2%, rgba(90, 151, 255, 0.12), transparent 30rem),
    #fbfdff;
}

[data-theme="dark"] .home-template {
  --sj-ink: #f7fbff;
  --sj-copy: #d4d6e8;
  --sj-muted: #aeb3ce;
  --sj-line: rgba(212, 216, 255, 0.18);
  --sj-soft-line: rgba(212, 216, 255, 0.1);
  --sj-panel: #181926;
  --sj-panel-soft: #202130;
  --sj-blue: #79b1ff;
  --sj-violet: #97d6fd;
  --sj-pink: #7bfcbe;
  --sj-focus: #abdbfd;
  --sj-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  --sj-shadow-hover: 0 24px 58px rgba(0, 0, 0, 0.38);
  background:
    radial-gradient(circle at 6% 8%, rgba(74, 251, 166, 0.09), transparent 26rem),
    radial-gradient(circle at 92% 2%, rgba(73, 126, 255, 0.12), transparent 30rem),
    #11121c;
}

.home-template .container {
  max-width: 1392px;
  padding-inline: clamp(18px, 3.2vw, 44px);
}

.home-template .site-wrap {
  overflow: hidden;
}

.home-template .main {
  padding-top: 0;
}

/* Fast, solid navigation treatment. */
.home-template .site-header {
  position: relative;
  z-index: 20;
  margin: 0;
  padding: 18px 0 0;
}

.home-template .site-header .header-inner {
  min-height: 72px;
  padding: 10px 13px 10px 22px;
  border: 1px solid rgba(105, 142, 178, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(110deg, rgba(233, 243, 255, 0.82), rgba(245, 255, 251, 0.86)),
    var(--sj-panel);
  box-shadow: 0 12px 32px rgba(46, 71, 95, 0.09);
}

[data-theme="dark"] .home-template .site-header .header-inner {
  background:
    linear-gradient(110deg, rgba(39, 47, 74, 0.9), rgba(37, 57, 53, 0.84)),
    var(--sj-panel);
}

.home-template .sj-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.45rem, 0.8vw, 0.7rem);
  flex: 0 0 auto;
  width: auto;
  line-height: 0;
  text-decoration: none;
}

.home-template .sj-brand-wordmark {
  color: #000;
  font-family: Figtree, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

[data-theme="dark"] .home-template .sj-brand-wordmark {
  color: #fff;
}

.home-template .sj-brand-logo .sj-brand-symbol {
  display: block;
  width: clamp(3rem, 4.5vw, 4.25rem);
  height: clamp(3rem, 4.5vw, 4.25rem);
  object-fit: contain;
  max-height: none;
}


.home-template .nav-left {
  margin-left: 22px;
}

.home-template .nav-left > li > a:not(.btn),
.home-template .nav-right > li > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  color: var(--sj-ink);
  font-weight: 650;
  transition:
    transform 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.home-template .nav-left > li > a:not(.btn)::after,
.home-template .nav-right > li > a:not(.btn)::after {
  content: none;
}

@media (hover: hover) and (pointer: fine) {
  .home-template .nav-left > li:hover > a:not(.btn),
  .home-template .nav-right > li:hover > a:not(.btn) {
    color: #111426;
    background:
      radial-gradient(
          120% 160% at 4% -20%,
          rgba(86, 184, 255, 0.28),
          transparent 54%
        )
        padding-box,
      radial-gradient(
          120% 160% at 100% 120%,
          rgba(68, 251, 157, 0.2),
          transparent 58%
        )
        padding-box,
      linear-gradient(
          145deg,
          rgba(255, 255, 255, 0.97),
          rgba(246, 251, 255, 0.86)
        )
        padding-box,
      linear-gradient(132deg, #56b8ff, #42d8c4 58%, #44fb9d) border-box;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 12px 28px rgba(69, 125, 173, 0.22),
      0 0 0 3px rgba(121, 190, 252, 0.1),
      0 0 22px rgba(68, 251, 157, 0.12);
    transform: translateY(-2px) scale(1.035);
  }

  [data-theme="dark"] .home-template .nav-left > li:hover > a:not(.btn),
  [data-theme="dark"] .home-template .nav-right > li:hover > a:not(.btn) {
    color: #ffffff;
    background:
      radial-gradient(
          120% 160% at 4% -20%,
          rgba(67, 170, 255, 0.24),
          transparent 54%
        )
        padding-box,
      radial-gradient(
          120% 160% at 100% 120%,
          rgba(49, 251, 156, 0.22),
          transparent 58%
        )
        padding-box,
      linear-gradient(
          145deg,
          rgba(31, 34, 52, 0.96),
          rgba(17, 19, 33, 0.92)
        )
        padding-box,
      linear-gradient(132deg, #43aaff, #39cfbd 58%, #31fb9c) border-box;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 12px 30px rgba(0, 0, 0, 0.42),
      0 0 0 3px rgba(108, 192, 252, 0.15),
      0 0 24px rgba(49, 251, 156, 0.16);
  }
}

.home-template .nav-left > li > a:not(.btn):focus-visible,
.home-template .nav-right > li > a:not(.btn):focus-visible {
  background:
    linear-gradient(145deg, var(--sj-panel), var(--sj-panel-soft)) padding-box,
    linear-gradient(132deg, #56b8ff, #42d8c4 58%, #44fb9d) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(69, 125, 173, 0.18),
    0 0 0 3px rgba(121, 190, 252, 0.1);
  transform: translateY(-2px);
}

.home-template .nav-left > li > a:not(.btn):active,
.home-template .nav-right > li > a:not(.btn):active {
  transform: translateY(0) scale(0.98);
}

.home-template .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 7px;
  border: 1px solid var(--sj-line);
  border-radius: 50%;
  background: var(--sj-panel);
  color: var(--sj-ink);
}

.home-template .btn,
.home-template .sj-home-primary {
  color: #fff;
  background: linear-gradient(115deg, #263fb3, #45a9d4 53%, #26c47a);
  box-shadow: 0 10px 24px rgba(65, 148, 191, 0.22);
}

.home-template :where(a, button, input):focus-visible {
  outline: 3px solid var(--sj-focus);
  outline-offset: 3px;
}

.home-template .skip-link {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #2f39ac;
  transform: translateY(-180%);
}

.home-template .skip-link:focus {
  transform: translateY(0);
}

/* Text-first hero: the LCP is text, not a multi-megabyte image. */
.sj-home-hero {
  padding: clamp(22px, 2.4vw, 34px) 0 clamp(44px, 5vw, 70px);
}

.sj-home-hero-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: end;
  padding: clamp(38px, 4.2vw, 58px);
  border: 1px solid rgba(105, 167, 211, 0.16);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 100% 0%, rgba(110, 252, 185, 0.15), transparent 34rem),
    radial-gradient(circle at 0% 100%, rgba(81, 161, 255, 0.16), transparent 33rem),
    linear-gradient(125deg, #fff, #f5fbff 62%, #f7fffb);
  box-shadow: var(--sj-shadow);
  overflow: hidden;
}

[data-theme="dark"] .sj-home-hero-inner {
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 251, 170, 0.13), transparent 34rem),
    radial-gradient(circle at 0% 100%, rgba(54, 128, 255, 0.15), transparent 33rem),
    linear-gradient(125deg, #191a29, #1c262e 62%, #1b2726);
}

.sj-home-hero-inner::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(-3rem, -2vw, -1rem);
  width: clamp(360px, 34vw, 620px);
  aspect-ratio: 1;
  background: url("../images/brand/smartjots-logo-new.png") center / contain no-repeat;
  opacity: 0.12;
  transform: translateY(-50%);
  pointer-events: none;
}

.sj-home-hero-inner > * {
  position: relative;
  z-index: 1;
}

.sj-home-eyebrow,
.sj-topic-kicker {
  display: block;
  color: var(--sj-pink);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.25;
}

.sj-home-hero h1 {
  max-width: 900px;
  margin: 18px 0 22px;
  color: var(--sj-ink);
  font-size: clamp(3rem, 5vw, 4.9rem);
  font-weight: 850;
  letter-spacing: -0.068em;
  line-height: 0.94;
}

.sj-home-hero-copy > p {
  max-width: 760px;
  margin: 0;
  color: var(--sj-copy);
  font-size: clamp(1.1rem, 1.7vw, 1.34rem);
  line-height: 1.62;
}

.sj-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.sj-home-primary,
.sj-home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 21px;
  border-radius: 999px;
  font-weight: 750;
}

.sj-home-primary svg,
.sj-topic-view-all svg,
.sj-topic-card-cta svg {
  width: 19px;
  height: 19px;
  margin-left: 8px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.sj-home-secondary {
  border: 1px solid var(--sj-line);
  color: var(--sj-ink);
  background: rgba(255, 255, 255, 0.68);
}

[data-theme="dark"] .sj-home-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.sj-home-proof {
  padding: 24px;
  border: 1px solid var(--sj-line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .sj-home-proof {
  background: rgba(255, 255, 255, 0.045);
}

.sj-home-proof-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sj-line);
}

.sj-home-proof-count strong {
  color: var(--sj-ink);
  font-size: 2.8rem;
  letter-spacing: -0.055em;
  line-height: 1;
}

.sj-home-proof-count span {
  color: var(--sj-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.sj-home-proof ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--sj-copy);
  font-size: 0.9rem;
  font-weight: 650;
  list-style: none;
}

.sj-home-proof li {
  display: flex;
  gap: 9px;
}

.sj-home-proof li span {
  color: var(--sj-violet);
  font-weight: 900;
}

/* Topic explorer and Jazmy-inspired row headers. */
.sj-topic-library {
  padding-bottom: clamp(48px, 7vw, 90px);
}

.sj-topic-intro {
  max-width: 980px;
  margin-bottom: clamp(56px, 8vw, 100px);
}

.sj-topic-intro h2 {
  margin: 16px 0 22px;
  color: var(--sj-ink);
  font-size: clamp(2.65rem, 5.6vw, 5.35rem);
  font-weight: 850;
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.sj-topic-intro p {
  max-width: 850px;
  margin: 0;
  color: var(--sj-copy);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.sj-topic-rail {
  --sj-row-accent: #1f8ed0;
  --sj-row-soft: rgba(71, 171, 232, 0.12);
  margin-bottom: clamp(74px, 10vw, 128px);
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

.sj-topic-rail-worth {
  --sj-row-accent: #28d080;
  --sj-row-soft: rgba(70, 228, 152, 0.11);
}

.sj-topic-rail-insider {
  --sj-row-accent: #53a1d5;
  --sj-row-soft: rgba(83, 161, 213, 0.11);
}

.sj-topic-rail-life {
  --sj-row-accent: #1b8e82;
  --sj-row-soft: rgba(27, 142, 130, 0.11);
}

.sj-topic-rail-culture {
  --sj-row-accent: #56b8c4;
  --sj-row-soft: rgba(86, 184, 196, 0.1);
}

.sj-topic-rail-love {
  --sj-row-accent: #d64c68;
  --sj-row-soft: rgba(214, 76, 104, 0.1);
}

.sj-topic-rail-travel {
  --sj-row-accent: #237fb7;
  --sj-row-soft: rgba(35, 127, 183, 0.11);
}

.sj-topic-rail-stories {
  --sj-row-accent: #a56b2b;
  --sj-row-soft: rgba(165, 107, 43, 0.11);
}

.sj-topic-rail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 27px;
}

.sj-topic-rail-copy {
  max-width: 860px;
}

.sj-topic-kicker {
  color: var(--sj-row-accent);
}

.sj-topic-rail-copy h3 {
  margin: 10px 0 10px;
  color: var(--sj-ink);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 825;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.sj-topic-rail-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--sj-copy);
  font-size: 1.04rem;
  line-height: 1.58;
}

.sj-topic-rail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.sj-topic-view-all,
.sj-topic-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--sj-line);
  border-radius: 999px;
  color: var(--sj-ink);
  background: var(--sj-panel);
  font-weight: 750;
}

.sj-topic-view-all {
  padding: 11px 18px;
}

.sj-topic-arrow {
  width: 48px;
  padding: 0;
  cursor: pointer;
}

.sj-topic-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.sj-topic-view-all:hover,
.sj-topic-arrow:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--sj-row-accent) 55%, var(--sj-line));
  color: var(--sj-row-accent);
}

.sj-topic-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.sj-topic-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 380px);
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 5px 5px 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-left: 5px;
  scroll-snap-type: x proximity;
  scrollbar-color: color-mix(in srgb, var(--sj-row-accent) 35%, transparent) transparent;
  scrollbar-width: thin;
  list-style: none;
}

.sj-topic-track::-webkit-scrollbar {
  height: 8px;
}

.sj-topic-track::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: color-mix(in srgb, var(--sj-row-accent) 35%, transparent);
}

.sj-topic-track[aria-busy="true"] {
  min-height: 390px;
}

.sj-topic-track[aria-busy="true"]::before {
  width: min(380px, 82vw);
  min-height: 360px;
  border: 1px solid var(--sj-line);
  border-radius: 26px;
  background:
    linear-gradient(var(--sj-row-soft), var(--sj-row-soft)) 13px 13px / calc(100% - 26px) 55% no-repeat,
    linear-gradient(var(--sj-soft-line), var(--sj-soft-line)) 20px 72% / 72% 18px no-repeat,
    linear-gradient(var(--sj-soft-line), var(--sj-soft-line)) 20px 82% / 86% 12px no-repeat,
    var(--sj-panel);
  box-shadow: var(--sj-shadow);
  content: "";
}

.sj-topic-load-error {
  display: flex;
  align-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed var(--sj-line);
  border-radius: 24px;
  color: var(--sj-copy);
  background: var(--sj-panel);
}

.sj-topic-card-item {
  min-width: 0;
  scroll-snap-align: start;
}

.sj-topic-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(var(--sj-panel), var(--sj-panel)) padding-box,
    linear-gradient(130deg, rgba(69, 156, 245, 0.42), rgba(80, 175, 219, 0.3), rgba(70, 231, 154, 0.36)) border-box;
  box-shadow: var(--sj-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sj-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sj-shadow-hover);
}

.sj-topic-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 13px;
  color: inherit;
}

.sj-topic-card-link[aria-busy="true"] {
  opacity: 0.72;
}

.sj-report-loading-status {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--sj-line);
  border-radius: 999px;
  color: var(--sj-ink);
  background: var(--sj-panel);
  box-shadow: var(--sj-shadow-hover);
  font-size: 0.9rem;
  font-weight: 800;
  pointer-events: none;
}

.sj-report-loading-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid var(--sj-soft-line);
  border-top-color: var(--sj-row-accent);
  border-radius: 50%;
  animation: sj-report-spin 700ms linear infinite;
}

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

.sj-topic-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--sj-soft-line);
  border-radius: 18px;
  background: var(--sj-panel-soft);
}

.sj-topic-card-media img,
.sj-topic-card-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sj-topic-card-fallback {
  display: block;
  background:
    radial-gradient(circle at 0 0, var(--sj-row-soft), transparent 55%),
    linear-gradient(135deg, var(--sj-panel-soft), var(--sj-panel));
}

.sj-topic-card-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #111326;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(14, 15, 34, 0.14);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sj-topic-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 7px 7px;
}

.sj-topic-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--sj-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.3;
}

.sj-topic-card-title {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: var(--sj-ink);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sj-topic-card-excerpt {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--sj-copy);
  font-size: 0.9rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sj-topic-card-cta {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  color: var(--sj-row-accent);
  font-size: 0.84rem;
  font-weight: 800;
}

/* Keep the subscription useful but visually secondary to the topic library. */
.home-template .esub-section-wrap {
  margin-top: 0;
  border: 1px solid var(--sj-line);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(80, 151, 255, 0.11), rgba(85, 252, 174, 0.09)),
    var(--sj-panel);
  box-shadow: var(--sj-shadow);
  color: var(--sj-copy);
}

.home-template .esub-title {
  max-width: 18ch;
  color: var(--sj-ink);
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.home-template .esub-subtext {
  max-width: 38rem;
  color: var(--sj-copy);
  font-size: 1.15rem;
  line-height: 1.65;
}

.home-template .esub-form-wrap {
  border: 1px solid var(--sj-line);
  background: var(--sj-panel);
  box-shadow: 0 16px 38px rgba(50, 76, 101, 0.12);
}

.home-template .esub-form-wrap .name,
.home-template .esub-form-wrap .email {
  border: 1px solid rgba(74, 79, 139, 0.24);
  background: #fff;
  color: #0b0d21;
}

.home-template .esub-form-wrap .name::placeholder,
.home-template .esub-form-wrap .email::placeholder {
  color: #596078;
  opacity: 1;
}

[data-theme="dark"] .home-template .esub-form-wrap .name,
[data-theme="dark"] .home-template .esub-form-wrap .email {
  border-color: rgba(212, 216, 255, 0.3);
}

.home-template .site-footer {
  margin-top: 72px;
}

@media (max-width: 1100px) {
  .sj-home-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sj-home-proof {
    max-width: 580px;
  }

  .sj-topic-rail-head {
    grid-template-columns: 1fr;
  }

  .sj-topic-rail-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .home-template .site-header {
    padding: 10px 0 0;
  }

  .home-template .site-header .header-inner {
    min-height: 64px;
    padding: 8px 10px 8px 16px;
    border-radius: 20px;
  }

  .home-template .sj-brand-logo {
    gap: 0.35rem;
  }

  .home-template .sj-brand-wordmark {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .home-template .sj-brand-logo .sj-brand-symbol {
    width: clamp(2.35rem, 10vw, 3rem);
    height: clamp(2.35rem, 10vw, 3rem);
  }

  .sj-home-hero {
    padding: 16px 0 48px;
  }

  .sj-home-hero-inner {
    gap: 30px;
    padding: 32px 22px;
    border-radius: 27px;
  }

  .sj-home-hero-inner::after {
    right: -28%;
    width: clamp(300px, 88vw, 430px);
    opacity: 0.08;
  }

  .sj-home-hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.6rem);
    line-height: 0.96;
  }

  .sj-home-proof {
    display: none;
  }

  .sj-home-secondary {
    display: none;
  }

  .sj-topic-intro {
    margin-bottom: 62px;
  }

  .sj-topic-intro h2 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  .sj-topic-rail {
    margin-bottom: 82px;
    contain-intrinsic-size: auto 570px;
  }

  .sj-topic-rail-copy h3 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .sj-topic-rail-actions {
    gap: 8px;
  }

  .sj-topic-view-all {
    flex: 1 1 auto;
    justify-content: space-between;
    min-width: 0;
    font-size: 0.88rem;
  }

  .sj-topic-arrow {
    display: none;
  }

  .sj-topic-track {
    grid-auto-columns: minmax(268px, 84vw);
    gap: 15px;
    margin-right: calc(clamp(18px, 3.2vw, 44px) * -1);
    padding-right: clamp(18px, 3.2vw, 44px);
  }

  .sj-topic-card-excerpt {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sj-topic-track {
    scroll-behavior: auto;
  }

  .sj-topic-card {
    transition: none;
  }

  .sj-topic-card:hover {
    transform: none;
  }
}

@media print {
  .sj-topic-arrow,
  .sj-home-actions {
    display: none;
  }

  .sj-topic-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }
}
