/* Education (brainwise-mobile develop EducationalScreen.tsx / EducationalDetailScreen.tsx StyleSheets, blue theme).
   A card's color is the article's own (--c, set on the card from its validated hex color); the original's
   `${color}15` / `10` hex suffixes are alpha 0.08 / 0.06. */

/* ---------- Educational Resources (the tab) ---------- */
.edu { margin: calc(-16px - env(safe-area-inset-top, 0px)) -16px 0; }
.edu-header { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 0; background: var(--card); }
.edu-h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; margin: 0; text-align: center; outline: none; }
.edu-chips { display: flex; align-items: center; justify-content: flex-start; padding: 16px 20px; background: var(--card); overflow-x: auto; scrollbar-width: none; }
.edu-chip { flex: none; padding: 8px 16px; border-radius: 20px; margin-right: 12px; border: 0; background: var(--border); color: var(--text-2); font: 600 14px var(--font); cursor: pointer; }
/* the original's accent #1DA1F2 behind light text fails contrast: --accent-strong */
.edu-chip.active { background: var(--accent-strong); color: var(--text); }
.edu-content { padding: 20px 12px 0; }
.edu-list { list-style: none; margin: 0; padding: 0; }
.edu-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; }
.edu-card-link { display: block; padding: 16px; color: inherit; text-decoration: none; }
.edu-card-head { display: flex; align-items: flex-start; margin-bottom: 12px; }
.edu-icon { flex: none; width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; margin-right: 16px; background: color-mix(in srgb, var(--c) 8%, transparent); }
.edu-icon svg { fill: var(--c); }
.edu-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.edu-meta { display: flex; align-items: center; flex-wrap: wrap; margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.edu-meta svg { fill: var(--text-muted); flex: none; }
.edu-author { margin-left: 4px; }
.edu-sep { margin: 0 8px; font-weight: 400; }
.edu-read { margin-left: 4px; }
.edu-card .edu-badge { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 6%, transparent); }
.edu-desc { display: block; font-size: 14px; line-height: 20px; color: var(--text-2); margin-top: 5px; }
.edu-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 40px 0; }
.edu-empty-ic { fill: var(--text-muted); margin-bottom: 16px; }
.edu-empty-ic.edu-err { fill: var(--error); }
.edu-empty-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.edu-empty-text { font-size: 16px; line-height: 24px; color: var(--text-2); margin: 0; }
.edu-retry { margin: 16px 0 0; }
.edu-retry:disabled { opacity: .7; cursor: default; }

/* ---------- An article (EducationalDetailScreen) ---------- */
.edu-k-info, .edu-k-accent { --k: #1DA1F2; --k15: rgba(29,161,242,0.08); }
.edu-k-success { --k: #4CAF50; --k15: rgba(76,175,80,0.08); }
.edu-k-warning { --k: #FFC107; --k15: rgba(255,193,7,0.08); }
.edu-detail .stack-head { margin: calc(-16px - env(safe-area-inset-top, 0px)) -16px 0; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 10px; background: var(--card); box-shadow: 0 2px 4px rgba(0,49,83,0.1); }
.edu-detail .stack-head .back { width: 35px; height: 35px; border-radius: 22px; background: var(--button-gradient); flex: none; }
.edu-detail .stack-head .back svg { width: 20px; height: 20px; }
.edu-detail .stack-title { flex: 1; text-align: center; letter-spacing: -0.3px; }
.edu-detail .stack-head::after { content: ''; width: 35px; flex: none; }
.edu-article { margin: 0 -16px; padding-bottom: 40px; }
.edu-hero { padding: 20px; }
.edu-hero-head { display: flex; align-items: flex-start; }
.edu-hero-icon { flex: none; width: 54px; height: 54px; border-radius: 32px; display: flex; align-items: center; justify-content: center; margin-right: 14px; background: var(--k15); }
.edu-hero-icon svg { fill: var(--k); }
.edu-hero-title { flex: 1; min-width: 0; font-size: 22px; font-weight: 800; line-height: 32px; margin: 0 0 8px; }
.edu-hero .edu-meta { margin: 16px 0; font-size: 14px; }
.edu-hero .edu-author { margin-left: 0; font-weight: 600; }
.edu-hero .edu-meta > svg:first-child { margin-right: 6px; }
.edu-hero .edu-read { margin-left: 0; }
.edu-hero .edu-meta > svg:not(:first-child) { margin-right: 4px; }
.edu-hero .edu-badge { padding: 6px 12px; border-radius: 20px; margin: 0 12px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--k); background: var(--k15); }
.edu-body { font-size: 16px; line-height: 24px; color: var(--text-2); margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.edu-takeaways { margin: 20px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.edu-takeaways-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.edu-takeaways-title svg { fill: var(--k); flex: none; }
.edu-takeaways-list { list-style: none; margin: 0; padding: 0; }
.edu-takeaways-list li { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 15px; line-height: 22px; }
.edu-takeaways-list li > span:last-child { flex: 1; overflow-wrap: anywhere; }
.edu-bullet { flex: none; width: 6px; height: 6px; border-radius: 3px; background: var(--k); margin: 10px 12px 0 0; }
.edu-missing { text-align: center; color: var(--text-2); font-size: 15px; margin: 24px 0 0; }
