:root { color-scheme: dark; }
* { box-sizing: border-box; }
body.discover-page {
  --bg: var(--site-bg);
  --fg: var(--site-text);
  --fg-secondary: var(--site-soft);
  --card-bg: var(--site-bg-2);
  --border: var(--site-border);
  --primary: var(--site-violet);
  --primary-hover: var(--site-violet-2);
  background: var(--site-bg);
  background-image: none;
  color: var(--site-text);
  display: block;
  font-family: var(--site-font);
  margin: 0;
  min-height: 100vh;
  padding: 0;
}
.discover-shell {
  background:
    radial-gradient(1000px 520px at 85% -80px, rgba(124, 58, 237, .30), transparent 70%),
    radial-gradient(700px 420px at -5% 55%, rgba(45, 212, 191, .08), transparent 70%),
    var(--site-bg);
  background-repeat: no-repeat;
  min-height: calc(100vh - 118px);
}
.discover-main { margin: 0 auto; max-width: 1120px; padding: 0 20px 82px; }
.discover-main a { color: var(--site-violet-soft); text-underline-offset: 4px; }
.hero { max-width: 780px; padding: clamp(56px, 8vw, 96px) 0 48px; }
.eyebrow { color: var(--site-teal); font-size: .78rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 13px; text-transform: uppercase; }
h1, h2 { color: #fff; font-family: Poppins, Inter, sans-serif; }
h1 { font-size: clamp(3rem, 6.4vw, 5.15rem); letter-spacing: -.045em; line-height: .98; margin: 0 0 22px; }
h2 { font-size: clamp(1.42rem, 2.4vw, 2rem); line-height: 1.2; margin: 0 0 12px; }
p { line-height: 1.75; }
.hero > p:last-child { color: #d9def0; font-size: 1.14rem; line-height: 1.65; margin: 0; max-width: 690px; }
.save-jump { display: inline-block; margin-top: 18px; }
.save-panel { scroll-margin-top: 24px; }
.save-panel fieldset { border: 0; margin: 22px 0; padding: 0; min-width: 0; }
.save-panel legend { color: #fff; font-weight: 700; }
.save-panel #signin { display: inline-block; margin: 16px 0; }
.trail-filters { margin: 36px 0 22px; }
.trail-filter-fields { align-items: end; display: flex; flex-wrap: wrap; gap: 16px; }
.trail-filter-fields > div:first-child { flex: 1 1 300px; }
.trail-filter-fields > div { flex: 0 1 200px; min-width: 0; }
.trail-filter-fields label { display: block; color: #e1e5f3; font-size: .9rem; font-weight: 600; margin-bottom: 9px; }
.trail-filter-fields input, .trail-filter-fields select { background: rgba(11, 10, 24, .8); border: 1px solid var(--site-border-strong); border-radius: 12px; color: #fff; font: inherit; height: 48px; margin: 0; padding: 10px 13px; width: 100%; }
.trail-filter-fields input::placeholder { color: #b4bed4; }
.filter-reset { background: var(--site-surface); border: 1px solid var(--site-border-strong); border-radius: 999px; color: #d9def0; cursor: pointer; font: inherit; height: 48px; margin: 0; padding: 10px 16px; }
.filter-reset:hover { background: var(--site-surface-2); }
.trail-empty { border: 1px dashed var(--site-border-strong); border-radius: 16px; color: #d9def0; padding: 30px; }
.trail .trail-titles { border-top: 1px solid rgba(170, 161, 255, .2); color: #c7d2fe; font-size: .88rem; line-height: 1.7; padding-top: 15px; }
.trail-titles strong { color: #f1f5f9; display: block; font-size: .76rem; letter-spacing: .04em; margin-bottom: 6px; text-transform: uppercase; }
.monthly-feature {
  align-items: end;
  background: radial-gradient(460px 280px at 92% 0%, rgba(45, 212, 191, .32), transparent 70%), linear-gradient(135deg, #4c1d95 0%, #3b0764 55%, #134e4a 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(59, 7, 100, .35);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 0 30px;
  padding: 31px 33px;
}
.monthly-feature > div { max-width: 740px; }
.monthly-feature h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 12px; }
.monthly-feature p { color: #e1e5f3; margin: 0 0 12px; }
.monthly-feature .muted { color: #c2cbe4; margin: 0; }
.monthly-feature .button { flex: 0 0 auto; white-space: nowrap; }
.monthly-archive { margin: 0 0 34px; max-width: none; }
.monthly-archive ul { display: grid; gap: 12px; list-style: none; margin: 18px 0 0; padding: 0; }
.monthly-archive li { align-items: baseline; border-top: 1px solid var(--site-border); display: grid; gap: 6px 18px; grid-template-columns: minmax(210px, .75fr) minmax(0, 1.8fr); padding-top: 14px; }
.monthly-archive a { font-weight: 700; }
.monthly-archive span { color: #b9c2da; line-height: 1.65; }
.trails { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trail {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 30px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.trail:nth-child(4n + 2), .trail:nth-child(4n + 3) { background: linear-gradient(180deg, rgba(139, 92, 246, .09), rgba(255, 255, 255, .02)); }
.trail:hover { border-color: rgba(196, 181, 253, .45); box-shadow: 0 22px 48px rgba(0, 0, 0, .35); transform: translateY(-3px); }
.trail h2 a { color: #fff; text-decoration: none; }
.trail h2 a:hover { color: #c7d2fe; }
.trail p { color: #d3d7e7; margin: 0 0 16px; }
.trail .muted { color: #aeb6d2; font-size: .88rem; margin-top: auto; }
.button, .save-panel button {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--site-violet), var(--site-violet-2));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(139, 92, 246, .32);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  margin-top: 3px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.button:hover, .save-panel button:hover { color: #fff; filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.discover-main .button { color: #fff; }
button:disabled { cursor: wait; opacity: .6; }
.editorial {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  color: #d8dced;
  margin: 42px 0;
  max-width: 820px;
  padding: 26px 28px;
}
.editorial h2 { color: var(--site-text); font-size: 1.28rem; }
.editorial p { margin: 0; }
.edition-essay { border-left: 3px solid #5eead4; }
.picks { display: grid; gap: 18px; }
.pick { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 27px 30px; }
.pick h2 { font-size: 1.55rem; }
.pick p { color: #d7dbee; max-width: 850px; }
.pick .eyebrow { color: var(--site-teal); }
.caveat { border-left: 3px solid rgba(20, 184, 166, .75); color: #b9c2da !important; padding-left: 16px; }
.muted { color: #aeb6d2; font-size: .88rem; }
.save-panel { background: radial-gradient(420px 260px at 95% 0%, rgba(45, 212, 191, .22), transparent 70%), linear-gradient(135deg, rgba(76, 29, 149, .55), rgba(19, 78, 74, .45)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; margin: 44px 0 0; padding: 30px; }
.save-panel p { color: #dce4ee; max-width: 770px; }
.save-panel label { align-items: flex-start; color: #e5e7f2; display: flex; gap: 12px; line-height: 1.6; margin: 18px 0; }
.save-panel input { accent-color: var(--site-violet); margin-top: 6px; }
.save-panel #status { color: #bcefe6; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--site-violet-soft); outline-offset: 4px; }
.trail-guide-label { align-self: flex-start; background: rgba(45, 212, 191, .13); border: 1px solid rgba(94, 234, 212, .3); border-radius: 999px; color: #a7f3d0; font-size: .75rem; font-weight: 700; margin: 0 0 16px; padding: 4px 8px; }
.hero--guide { max-width: 960px; padding: 66px 0 30px; }
.hero--guide > .eyebrow { margin-top: 30px; }
.hero--guide h1 { font-size: clamp(2.65rem, 5.5vw, 4.5rem); line-height: 1.08; max-width: 900px; }
.guide-deck { color: #d9def0; font-size: 1.14rem; max-width: 740px; }
.guide-byline { color: #b9c2da; font-size: .88rem; margin: 22px 0; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.guide-jump a { align-items: center; background: var(--site-surface); border: 1px solid var(--site-border); border-radius: 999px; display: inline-flex; font-size: .88rem; min-height: 44px; padding: 10px 13px; text-decoration: none; }
.guide-jump a:hover { background: var(--site-surface-2); color: #fff; }
.trail-guide [id] { scroll-margin-top: 90px; }
.guide-intro, .guide-essay { color: #d7dbee; max-width: 760px; }
.guide-intro { font-size: 1.05rem; }
.guide-intro p, .guide-essay p { margin: 0 0 18px; }
.guide-comparison { margin: 48px 0; }
.guide-section-intro { color: #c3c8dd; max-width: 780px; }
.guide-table { background: rgba(25, 28, 47, .82); border: 1px solid var(--border); border-collapse: collapse; margin: 22px 0 0; table-layout: fixed; width: 100%; }
.guide-table caption { color: #b9c2da; font-size: .88rem; padding: 0 0 12px; text-align: left; }
.guide-table th, .guide-table td { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; color: #d7dbee; font-size: .9rem; letter-spacing: normal; line-height: 1.65; overflow-wrap: anywhere; padding: 20px 16px; position: static; text-align: left; text-transform: none; vertical-align: top; white-space: normal; width: 20%; }
.guide-table thead th { background: rgba(72, 67, 121, .32); color: #f1f5f9; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.guide-table tbody th { font-weight: 600; }
.guide-table tbody th a { display: inline-block; padding: 0; text-decoration: underline; }
.guide-table tbody th span { color: #aeb6d2; display: block; font-size: .78rem; font-weight: 400; margin-top: 8px; }
.guide-table tbody tr, .guide-table tbody tr:nth-child(even) { background: transparent; box-shadow: none; transform: none; transition: none; }
.guide-table tbody tr td:last-child { background: transparent; }
.guide-table tbody tr:hover { background: rgba(94, 234, 212, .025); }
.guide-connections { border-top: 1px solid var(--border); margin: 48px 0; padding-top: 38px; }
.guide-essay + .guide-essay { margin-top: 34px; }
.guide-picks { gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
.guide-picks .pick { min-width: 0; }
.guide-picks h3 { color: #fff; font-family: Poppins, Inter, sans-serif; font-size: 1.55rem; line-height: 1.3; margin: 0 0 16px; }
.guide-picks p { font-size: .95rem; }
.guide-source-link { display: inline-block; font-size: .88rem; line-height: 1.65; }
.guide-reflection { max-width: 100%; }
.guide-reflection p { max-width: 740px; }
.guide-reflection p + p { margin-top: 14px; }
.guide-related { margin: 46px 0; }
.guide-related-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.guide-related-grid article { border-left: 2px solid var(--site-violet); padding: 4px 20px; }
.guide-related-grid h3 { font-size: 1.1rem; line-height: 1.5; margin: 0 0 8px; }
.guide-related-grid p { color: #c3c8dd; font-size: .95rem; margin: 0; }
.guide-sources { border-top: 1px solid var(--border); color: #b9c2da; font-size: .92rem; padding-top: 34px; }
.guide-sources h2 { font-size: 1.4rem; }
.guide-sources #editorial-method { max-width: 800px; }
.guide-sources ol { display: grid; gap: 18px 38px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; padding-left: 22px; }
.guide-sources li { padding-left: 4px; }
.guide-sources li p { margin: 6px 0 0; }
@media (max-width: 760px) {
    .hero { padding: 58px 0 38px; }
  .monthly-feature { align-items: flex-start; flex-direction: column; padding: 26px; }
  .monthly-archive li { grid-template-columns: 1fr; }
  .trails { grid-template-columns: 1fr; }
  .trail { min-height: 0; padding: 25px; }
  .pick, .editorial, .save-panel { padding: 23px; }
  .hero--guide { padding: 40px 0 22px; }
  .guide-comparison { margin: 38px 0; }
  .guide-table, .guide-table tbody { display: block; width: 100%; }
  .guide-table { background: transparent; border: 0; }
  .guide-table caption { display: block; }
  .guide-table thead { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
  .guide-table tbody tr, .guide-table tbody tr:nth-child(even) { background: rgba(25, 28, 47, .82); border: 1px solid var(--border); border-radius: 12px; display: block; margin-bottom: 16px; overflow: hidden; }
  .guide-table tbody th, .guide-table tbody td { display: block; padding: 12px 20px; width: 100%; }
  .guide-table tbody th { background: rgba(72, 67, 121, .32); font-size: 1.05rem; padding-block: 17px; }
  .guide-table tbody th span { margin-top: 2px; }
  .guide-table tbody td:last-child { border-bottom: 0; }
  .guide-table td::before { color: #f1f5f9; content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; margin-bottom: 3px; position: static; white-space: normal; width: auto; }
  .guide-picks, .guide-related-grid, .guide-sources ol { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .discover-main { padding-inline: 16px; }
  h1 { font-size: clamp(2.65rem, 14vw, 3.55rem); }
}
@media (prefers-reduced-motion: reduce) {
  .trail, .button, .save-panel button { transition: none; }
  .trail:hover, .button:hover, .save-panel button:hover { transform: none; }
}

/* Monthly challenge guides (Oct 2026) */
.challenge-count{margin-top:1rem;font-weight:600;opacity:.85}
.challenge-steps-brief{margin:.75rem 0 0;padding-left:1.25rem;line-height:1.6}
.challenge-edition ul{margin:.75rem 0;padding-left:1.25rem;line-height:1.7}
.challenge-cta .button{display:inline-block;margin-right:1rem}
.challenge-cta__member{display:inline-block;margin-top:.5rem}
.challenge-intro p + p{margin-top:.9em}
