/* AIWiseGrow: Learn cards and article pages (loads after styles.css) */

/* Whole Learn card is clickable */
.note { position: relative; }
.note h2 a { color: inherit; }
.note h2 a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.note:hover h2 a, .note h2 a:focus-visible { color: var(--gold-d); }
.note-more { display: inline-block; margin-top: 18px; font-size: 13px; letter-spacing: 0.08em; color: var(--gold); }
.note:hover .note-more { color: var(--gold-d); }

/* Article page */
.article { max-width: 720px; }
.back { display: inline-block; margin-bottom: 28px; font-size: 14px; }
.article-meta { justify-content: flex-start; gap: 18px; margin-bottom: 0; }
.article .page-title { max-width: 22ch; }
.article .page-lead { margin-bottom: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }

.article-body h2 { margin: 48px 0 14px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.article-body p { margin: 0 0 18px; font-size: 17px; line-height: 1.8; color: var(--body); }
.article-body strong { font-weight: 500; color: var(--head); }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 10px; padding-left: 4px; font-size: 17px; line-height: 1.75; color: var(--body); }
.article-body li::marker { color: var(--gold); }
.article-body pre { margin: 0 0 24px; padding: 20px 22px; overflow-x: auto; white-space: pre-wrap; border: 1px solid #E8DEC9; border-radius: 14px; background: #FBF7EE; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; color: var(--body); }
.article-body .callout { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold-l); font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); font-weight: 300; line-height: 1.5; color: var(--head); }

.article + .aside-cta { max-width: 720px; margin-top: 48px; }

/* More notes */
.more-notes { max-width: 720px; margin-top: 56px; }
.more-list { display: grid; gap: 12px; }
.more-card { display: grid; gap: 6px; padding: 18px 22px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.more-card:hover { border-color: #DDCFB4; }
.more-tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.more-card a { font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--head); }
.more-card a:hover { color: var(--gold-d); }
