/* Guide pages, hubs and support pages. */
.guide-body > .answer:first-child, .guide-body > p:first-child { margin-top: 0; }
.guide-note { margin-top: 24px; }
@media (max-width: 63.99rem) {
  .article-aside .toc details:not([open]) ol { display: none; }
  .article-aside .aside-cta { display: none; }
}

/* Guide tiles (related, hubs) */
.gtiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .gtiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .gtiles { grid-template-columns: repeat(3, 1fr); } }
.gtile { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .25s, box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.gtile:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.gtile__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
.gtile__mark--low-buy { background: #e8efdc; color: #3f6a2c; }
.gtile__mark--no-spend { background: var(--gold-soft); color: var(--gold-ink); }
.gtile__mark--general { background: var(--slate-tint); color: var(--slate); }
.gtile__mark svg { width: 20px; height: 20px; }
.gtile__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.gtile__text { color: var(--ink-2); font-size: .97rem; }
.gtile__go { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 650; }
.gtile__go svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.gtile:hover .gtile__go svg { transform: translateX(3px); }
[dir='rtl'] .gtile__go svg { transform: scaleX(-1); }

/* Hub pages */
.hub-section { margin-top: clamp(32px, 5vw, 56px); }
.hub-section h2 { font-size: var(--step-3); margin-bottom: 6px; }
.hub-section > p { color: var(--ink-2); margin-bottom: 18px; max-width: 60ch; }

/* Ideas filter */
.ideas-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.ideas-filter button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 600; }
.ideas-filter button[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: #fff; }
.ideas { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.prose .ideas li + li { margin-top: 0; }
.idea { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.idea h3 { font-size: 1.2rem; margin: 0; }
.idea p { margin-top: 6px; }
.idea .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.idea[hidden] { display: none; }

/* Support pages */
.support { max-width: var(--measure); }
.author-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card); }
.author-card__mono { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--green); color: var(--paper); font-family: var(--font-display); font-size: 1.4rem; }

