/* EveryMemory blog — editorial content-hub styles. Tokens mirror the landing (everymemory.app). */
:root {
  --orange: #FF5A2E;
  --orange-dark: #E8431B;
  --orange-soft: #FFF1EC;
  --teal: #12B5A6;
  --teal-dark: #0E9488;
  --teal-soft: #E6F7F4;
  --mint: #E8F8F4;
  --mint-2: #F4FBF9;
  --ink: #18142B;
  --ink-2: #4A4660;
  --muted: #7D7A8C;
  --line: #ECEAF1;
  --line-2: #F4F3F7;
  --white: #FFFFFF;
  --bg: #FCFCFD;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 18px rgba(24, 20, 43, .06);
  --shadow-md: 0 18px 48px rgba(24, 20, 43, .10);
  --shadow-orange: 0 14px 34px rgba(255, 90, 46, .34);
  --maxw: 1160px;
  --maxw-read: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 253, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--orange), #ff7d57); box-shadow: var(--shadow-orange); display: grid; place-items: center; color: #fff; font-size: 15px; }
.brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; display: block; flex: none; box-shadow: var(--shadow-orange); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn-quiz) { padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:not(.btn-quiz):hover { background: var(--line-2); color: var(--ink); }
.nav .btn-quiz { margin-left: 6px; color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 40px; font-size: 19px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 13px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #dcd9e6; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 11px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 28px; }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 16px; }
.hero p.sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); margin: 0 0 26px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; margin: 6px 0 0; }
.section-head .link-more { font-weight: 700; font-size: 14.5px; color: var(--orange); white-space: nowrap; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #e3e0ec; }
.card .thumb { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; color: #fff; font-weight: 800; }
.card .thumb .glyph { font-size: 40px; opacity: .92; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); }
.card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin: 2px 0 0; }
.card p.excerpt { color: var(--ink-2); font-size: 14.5px; margin: 0; flex: 1; }
.card .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Featured */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.featured .thumb { aspect-ratio: 16 / 9; min-height: 0; display: grid; place-items: center; }
.featured .body { padding: 38px; gap: 14px; justify-content: center; }
.featured h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; }
.featured p.excerpt { font-size: 16px; }

/* Category cards */
.cat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .18s, box-shadow .18s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff; margin-bottom: 4px; }
.cat-card h3 { margin: 0; font-size: 19px; }
.cat-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.cat-card .count { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--orange); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #1c1733, #2a2150); color: #fff; border-radius: var(--radius-lg); padding: 48px 44px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,90,46,.4), transparent 70%); filter: blur(20px); }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; position: relative; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 24px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Library / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { font-family: inherit; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.filters button:hover { border-color: #d8d4e4; }
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.res-card .badge { background: var(--teal-soft); color: var(--teal-dark); }
.res-card .type-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Video cards ---------- */
.video-card .thumb { position: relative; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--orange); font-size: 22px; padding-left: 4px; box-shadow: var(--shadow-md); }
.video-card .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; }

/* ---------- Article ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs .sep { opacity: .5; }
.article-head { max-width: var(--maxw-read); margin: 0 auto; padding: 18px 0 8px; }
.article-head .badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); margin-bottom: 14px; }
.article-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; }
.article-head .excerpt { font-size: 19px; color: var(--ink-2); margin: 0 0 20px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.byline .author { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--orange)); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.byline .sep { opacity: .4; }
.article-hero { max-width: var(--maxw-read); margin: 26px auto 0; aspect-ratio: 16 / 8; border-radius: var(--radius); display: grid; place-items: center; color: #fff; font-size: 56px; }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, var(--maxw-read)); gap: 48px; justify-content: center; padding: 34px 22px 10px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--ink-2); border-left: 2px solid transparent; margin-left: -2px; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--orange); border-color: var(--orange); }

.prose { font-size: 17px; color: #2b2740; }
.prose > p { margin: 0 0 18px; }
.prose h2 { font-size: 26px; letter-spacing: -.01em; margin: 38px 0 14px; scroll-margin-top: 84px; }
.prose h3 { font-size: 20px; margin: 26px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }

.callout { border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; border: 1px solid var(--line); }
.callout .label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout.quick { background: var(--mint-2); border-color: #cdeee6; }
.callout.quick .label { color: var(--teal-dark); }
.callout.try { background: var(--orange-soft); border-color: #ffd9cb; }
.callout.try .label { color: var(--orange-dark); }
.callout.try ol, .callout.try ul { margin: 8px 0 0; padding-left: 20px; }
.callout.safety { background: #fff8e9; border-color: #f4e3b8; }
.callout.safety .label { color: #b07c10; }

.faq { margin: 32px 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 12px; background: var(--white); }
.faq summary { font-weight: 700; font-size: 16.5px; padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 14px 0 20px; color: var(--ink-2); }

.article-cta { max-width: var(--maxw-read); margin: 10px auto 0; }
.related { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: #14101f; color: rgba(255,255,255,.72); margin-top: 70px; padding: 56px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.site-footer h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.72); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .tagline { font-size: 14.5px; max-width: 300px; margin: 0 0 16px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 8px; }
  .toc { display: none; }
  .featured { grid-template-columns: 1fr; }
  .featured .thumb { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 18px 18px; box-shadow: var(--shadow-md); }
  .nav.open a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 18px; }
  .cta-band { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Start-here intent cards ---------- */
.start-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.start-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #e3e0ec; }
.start-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; color: #fff; margin-bottom: 4px; }
.start-card h3 { margin: 0; font-size: 18px; }
.start-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.start-card .start-go { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; color: var(--orange); }

/* ---------- Lead capture (email gate stub) ---------- */
.lead-form { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.lead-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: 14.5px; background: var(--white); }
.lead-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 90, 46, .12); }
.lead-fields .btn { white-space: nowrap; }
.lead-skip { font-size: 13px; color: var(--muted); align-self: flex-start; }
.lead-skip:hover { color: var(--orange); }
.lead-success { display: none; }
.lead-form.sent .lead-fields, .lead-form.sent .lead-skip { display: none; }
.lead-form.sent .lead-success { display: flex; flex-direction: column; gap: 10px; }
.lead-success-msg { margin: 0; font-weight: 700; color: var(--teal-dark); }
.lead-quiz { font-size: 14px; font-weight: 700; color: var(--orange); align-self: flex-start; }
.lead-quiz:hover { color: var(--orange-dark); }
.lead-card .body { gap: 8px; }

/* ---------- Further reading (books & research) ---------- */
.reading { margin-top: 8px; }

/* Controls: per-topic jump nav + Books/Studies filter */
.read-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.read-jumps { display: flex; flex-wrap: wrap; gap: 7px; }
.read-jump { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; transition: border-color .15s, color .15s; }
.read-jump:hover { border-color: var(--orange); color: var(--orange); }
.read-filter { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 4px; gap: 2px; flex: none; }
.read-filter button { font-family: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink-2); background: none; border: none; border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: background .15s, color .15s; }
.read-filter button:hover { color: var(--ink); }
.read-filter button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Topic groups */
.read-group { margin-bottom: 36px; scroll-margin-top: 84px; }
.read-group-head { display: flex; align-items: baseline; gap: 12px; }
.read-group-head h3 { font-size: 20px; letter-spacing: -.01em; margin: 0; }
.read-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line-2); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.read-blurb { color: var(--ink-2); font-size: 14.5px; margin: 7px 0 18px; max-width: 720px; }
.read-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }

/* Source card */
.src-card { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s, border-color .16s; }
.src-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.src-card.src-book { border-left-color: var(--orange); }
.src-card.src-study { border-left-color: var(--teal); }
.src-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.src-type { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 11px 4px 8px; border-radius: 999px; }
.src-book .src-type { background: var(--orange-soft); color: var(--orange-dark); }
.src-study .src-type { background: var(--teal-soft); color: var(--teal-dark); }
.src-ic { font-size: 13px; line-height: 1; }
.src-year { font-size: 13px; font-weight: 700; color: var(--muted); }
.src-title { font-size: 16px; line-height: 1.35; letter-spacing: -.01em; margin: 0 0 8px; }
.src-title a { color: var(--ink); transition: color .15s; }
.src-title a:hover { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.src-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 11px; line-height: 1.5; }
.src-venue { font-style: italic; }
.src-sum { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 0 15px; flex: 1; }
.src-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.src-chip { font-size: 12.5px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; transition: border-color .15s, color .15s, background .15s; white-space: nowrap; }
.src-chip:hover { border-color: #d8d4e4; color: var(--ink); }
.src-chip.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.src-chip.primary:hover { background: #2a2150; color: #fff; }

.read-disclaimer { margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--ink-2); background: var(--mint-2); border: 1px solid #d7efe8; border-radius: var(--radius-sm); padding: 15px 18px; max-width: 880px; }

@media (max-width: 760px) {
  .read-grid { grid-template-columns: 1fr; }
  .read-controls { flex-direction: column; align-items: stretch; }
  .read-filter { align-self: flex-start; }
}

/* ---------- Library resource cards (compact, no banner) ---------- */
.lcard { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; transition: transform .16s, box-shadow .16s, border-color .16s; }
.lcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lcard-pdf { border-left-color: var(--orange); }
.lcard-worksheet { border-left-color: var(--teal); }
.lcard-video { border-left-color: #7A5BFF; }
.lcard-trusted { border-left-color: var(--teal-dark); }
.lcard-head { display: flex; align-items: center; gap: 11px; }
.lcard-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 22px; flex: none; filter: drop-shadow(0 4px 10px rgba(24,20,43,.12)); }
.lcard-ic-ext { background: var(--teal-soft); color: var(--teal-dark); font-size: 20px; filter: none; }
.lcard-ic-play { font-size: 16px; padding-left: 3px; }
.lcard-type { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lcard h3 { font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; margin: 2px 0 0; color: var(--ink); }
.lcard p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; flex: 1; }
.lcard-cta { align-self: flex-start; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; transition: border-color .15s, background .15s, color .15s; white-space: nowrap; }
.lcard-cta:hover { border-color: var(--orange); color: var(--orange-dark); }
a.lcard:hover h3 { color: var(--orange-dark); }
a.lcard:hover .lcard-cta { border-color: var(--orange); color: var(--orange-dark); }

/* ---------- Article images (hero + card thumbnails) ----------
   Images are self-contained 16:9 designs (with their own text + logo), so the article hero
   shows them in FULL at natural ratio — never cropped. Card thumbs use a fixed 16:9 box that
   a 16:9 image fills exactly (no distortion). */
.card .thumb img, .featured .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.article-hero-img {
  display: block; width: 100%; max-width: var(--maxw-read); height: auto;
  margin: 24px auto 6px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--line-2);
}
@media (max-width: 760px) { .article-hero-img { border-radius: var(--radius-sm); margin-top: 18px; } }

/* ============================================================
   LIBRARY REDESIGN — EveryMemory design-system tokens + styles
   Scoped under .lr so it never collides with the rest of the blog.
   ============================================================ */
:root{
  --font-brand:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --orange-100:#FFF1EC; --orange-300:#FFB199; --orange-500:#FF5A2E; --orange-600:#E8431B; --orange-700:#C23A12;
  --teal-100:#E6F7F4; --teal-400:#34C8B7; --teal-700:#0C7568;
  --accent-violet-soft:#ECE9FB; --accent-violet-ink:#5A45C7;
  --accent-amber-soft:#FBEFD6; --accent-amber-ink:#8F6113;
  --mint-bg:#E8F8F4; --mint-bg-2:#F4FBF9; --mint-soft:#EAF8F4;
  --ink-500:#7D7A8C; --ink-700:#4A4660; --ink-900:#18142B;
  --line-strong:#DCD9E6; --surface-card:#FFFFFF; --surface-soft:#F7F6FB;
  --radius-pill:999px; --radius-xl:22px;
  --shadow-card:0 6px 14px rgba(16,34,53,.06);
  --weight-semibold:600; --weight-bold:700; --weight-extrabold:800;
  --tracking-tight:-.01em; --tracking-display:-.022em; --tracking-heading:-.02em; --tracking-overline:.08em;
  --text-display:48px; --text-h2:clamp(26px,3.4vw,34px); --text-overline:13px;
  --leading-snug:1.28; --leading-normal:1.6;
  --dur-fast:.15s; --dur-base:.2s; --ease-standard:cubic-bezier(.4,0,.2,1);
}
.lr .lc{ width:1em; height:1em; flex:none; }
.lr .wrap{ max-width:1180px; }

/* buttons */
.lr .btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; font-family:var(--font-brand);
  font-weight:var(--weight-bold); font-size:16px; border:none; cursor:pointer; border-radius:var(--radius-pill);
  padding:13px 24px; line-height:1; transition:background var(--dur-fast) var(--ease-standard), box-shadow var(--dur-base), transform var(--dur-fast), border-color var(--dur-fast); }
.lr .btn .lc{ width:18px; height:18px; }
.lr .btn-primary{ background:var(--orange-500); color:#fff; box-shadow:var(--shadow-orange); }
.lr .btn-primary:hover{ background:var(--orange-600); transform:translateY(-2px); }
.lr .btn-secondary{ background:#fff; color:var(--orange-700); border:1.5px solid var(--orange-300); }
.lr .btn-secondary:hover{ border-color:var(--orange-500); background:var(--orange-100); }

/* hero */
.lr .lib-hero{ position:relative; overflow:hidden; border-bottom:1px solid var(--line);
  background:radial-gradient(60% 80% at 88% 0%, rgba(255,90,46,.09), transparent 60%),
    radial-gradient(55% 75% at 6% 12%, rgba(18,181,166,.10), transparent 62%), var(--mint-bg-2); }
.lr .lib-hero-inner{ padding:30px 0 46px; }
.lr .crumbs{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:var(--weight-semibold); color:var(--ink-500); margin-bottom:24px; }
.lr .crumbs a:hover{ color:var(--orange-700); } .lr .crumbs .sep{ color:var(--line-strong); } .lr .crumbs .here{ color:var(--ink-700); }
.lr .overline{ font-size:var(--text-overline); font-weight:var(--weight-extrabold); letter-spacing:var(--tracking-overline);
  text-transform:uppercase; color:var(--orange-700); display:inline-flex; align-items:center; gap:8px; margin-bottom:12px; }
.lr .overline .lc{ width:16px; height:16px; }
.lr .lib-hero h1{ font-size:clamp(34px,5.4vw,46px); font-weight:var(--weight-extrabold); letter-spacing:var(--tracking-display); line-height:1.06; max-width:18ch; margin:0 0 18px; color:var(--ink-900); }
.lr .lib-hero p.lede{ font-size:clamp(17px,2.1vw,21px); line-height:var(--leading-normal); color:var(--ink-700); max-width:60ch; margin:0; }
.lr .hero-stats{ display:flex; flex-wrap:wrap; gap:30px; margin-top:30px; }
.lr .hstat{ display:flex; align-items:center; gap:11px; }
.lr .hstat .ic{ width:42px; height:42px; border-radius:12px; display:grid; place-items:center; flex:none; }
.lr .hstat .ic .lc{ width:21px; height:21px; }
.lr .hstat b{ display:block; font-size:19px; font-weight:var(--weight-extrabold); color:var(--ink-900); line-height:1.1; }
.lr .hstat small{ font-size:13.5px; color:var(--ink-500); font-weight:var(--weight-semibold); }

/* sticky filter bar */
.lr .filterbar{ position:sticky; top:65px; z-index:40; background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px); -webkit-backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid var(--line); }
.lr .filterbar-inner{ display:flex; gap:10px; padding:14px 0; overflow-x:auto; scrollbar-width:none; }
.lr .filterbar-inner::-webkit-scrollbar{ display:none; }
.lr .chip{ flex:none; display:inline-flex; align-items:center; gap:8px; font-family:var(--font-brand); font-weight:var(--weight-bold);
  font-size:15px; color:var(--ink-700); background:#fff; border:1.5px solid var(--line-strong); border-radius:var(--radius-pill);
  padding:9px 18px; cursor:pointer; transition:all var(--dur-fast) var(--ease-standard); white-space:nowrap; }
.lr .chip:hover{ border-color:var(--orange-300); color:var(--ink-900); }
.lr .chip.is-active{ background:var(--orange-500); border-color:var(--orange-500); color:#fff; box-shadow:0 6px 16px rgba(255,90,46,.26); }
.lr .chip .lc{ width:16px; height:16px; }

/* sections */
.lr section.block{ padding:60px 0 8px; }
.lr .sec-head{ margin-bottom:30px; }
.lr .sec-head h2{ font-size:var(--text-h2); font-weight:var(--weight-extrabold); letter-spacing:var(--tracking-heading); margin:0 0 10px; color:var(--ink-900); }
.lr .sec-head p{ font-size:17px; line-height:var(--leading-normal); color:var(--ink-700); max-width:64ch; margin:0; }
.lr .grid{ display:grid; gap:20px; }
.lr .grid.cols3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.lr .grid.cols4{ grid-template-columns:repeat(4,minmax(0,1fr)); }

/* download cards */
.lr .dl-card{ background:var(--surface-card); border:1px solid var(--line); border-radius:var(--radius-xl); box-shadow:var(--shadow-card);
  padding:26px; display:flex; flex-direction:column; overflow:visible;
  transition:box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base), border-color var(--dur-base); }
.lr .dl-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:var(--line-strong); }
.lr .dl-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.lr .ic-tile{ width:52px; height:52px; border-radius:15px; display:grid; place-items:center; flex:none; }
.lr .ic-tile .lc{ width:26px; height:26px; }
.lr .badge{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:var(--weight-extrabold); letter-spacing:.2px;
  padding:6px 12px; border-radius:var(--radius-pill); white-space:nowrap; }
.lr .badge .lc{ width:13px; height:13px; }
.lr .badge.orange{ background:var(--orange-100); color:var(--orange-700); }
.lr .badge.teal{ background:var(--teal-100); color:var(--teal-700); }
.lr .tone-orange .ic-tile{ background:var(--orange-100); color:var(--orange-700); }
.lr .tone-teal .ic-tile{ background:var(--teal-100); color:var(--teal-700); }
.lr .dl-card h3{ font-size:20px; font-weight:var(--weight-extrabold); line-height:var(--leading-snug); letter-spacing:var(--tracking-tight); margin:0 0 10px; color:var(--ink-900); }
.lr .dl-card p.desc{ font-size:15.5px; line-height:var(--leading-normal); color:var(--ink-700); margin:0 0 22px; }
.lr .dl-foot{ margin-top:auto; } .lr .dl-btn{ width:100%; }

/* video cards */
.lr .vid-card{ background:var(--surface-card); border:1px solid var(--line); border-radius:var(--radius-xl); box-shadow:var(--shadow-card);
  overflow:hidden; display:flex; flex-direction:column; transition:box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base); }
.lr .vid-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.lr .vid-thumb{ position:relative; aspect-ratio:16/10; display:grid; place-items:center; background:linear-gradient(150deg,var(--mint-soft),var(--mint-bg-2) 70%); }
.lr .vid-thumb::after{ content:""; position:absolute; inset:0; background:radial-gradient(closest-side at 50% 45%, rgba(255,90,46,.10), transparent 70%); }
.lr .play{ position:relative; z-index:1; width:64px; height:64px; border-radius:50%; background:var(--orange-500); display:grid; place-items:center; box-shadow:var(--shadow-orange); transition:transform var(--dur-base); }
.lr .vid-card:hover .play{ transform:scale(1.07); }
.lr .play .lc{ width:26px; height:26px; color:#fff; margin-left:3px; fill:#fff; }
.lr .dur{ position:absolute; right:12px; bottom:12px; z-index:1; background:rgba(16,34,53,.82); color:#fff; font-size:12.5px; font-weight:var(--weight-bold); padding:5px 10px; border-radius:var(--radius-pill); display:inline-flex; align-items:center; gap:6px; }
.lr .dur .lc{ width:13px; height:13px; }
.lr .vid-body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.lr .vid-body h3{ font-size:18.5px; font-weight:var(--weight-extrabold); line-height:var(--leading-snug); letter-spacing:var(--tracking-tight); margin:0 0 8px; color:var(--ink-900); }
.lr .vid-body p{ font-size:15px; line-height:var(--leading-normal); color:var(--ink-700); margin:0 0 16px; }
.lr .link-cta{ margin-top:auto; display:inline-flex; align-items:center; gap:7px; font-weight:var(--weight-bold); font-size:15px; color:var(--orange-700); }
.lr .link-cta .lc{ width:17px; height:17px; transition:transform var(--dur-fast); }
.lr .vid-card:hover .link-cta .lc, .lr .res-card:hover .link-cta .lc{ transform:translateX(3px); }

/* external resource cards */
.lr .res-card{ background:var(--surface-card); border:1px solid var(--line); border-radius:var(--radius-xl); box-shadow:var(--shadow-card);
  padding:24px; display:flex; flex-direction:column; transition:box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base); }
.lr .res-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.lr .res-top{ display:flex; align-items:center; gap:13px; margin-bottom:16px; }
.lr .res-mark{ width:46px; height:46px; border-radius:13px; flex:none; display:grid; place-items:center; background:var(--mint-bg); color:var(--teal-700); font-weight:var(--weight-extrabold); font-size:18px; }
.lr .res-src{ font-size:12.5px; font-weight:var(--weight-bold); color:var(--ink-500); display:inline-flex; align-items:center; gap:6px; }
.lr .res-src .lc{ width:14px; height:14px; color:var(--teal-700); }
.lr .res-card h3{ font-size:18px; font-weight:var(--weight-extrabold); line-height:var(--leading-snug); letter-spacing:var(--tracking-tight); margin:0 0 9px; color:var(--ink-900); }
.lr .res-card p{ font-size:15px; line-height:var(--leading-normal); color:var(--ink-700); margin:0 0 18px; }

/* books & research */
.lr .books-section{ background:var(--mint-bg-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-top:60px; }
.lr .books-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:26px; }
.lr .books-toggle{ display:inline-flex; background:#fff; border:1.5px solid var(--line-strong); border-radius:var(--radius-pill); padding:4px; gap:2px; }
.lr .books-toggle button{ font-family:var(--font-brand); font-weight:var(--weight-bold); font-size:14.5px; color:var(--ink-700); background:none; border:none; cursor:pointer; padding:9px 18px; border-radius:var(--radius-pill); transition:all var(--dur-fast); display:inline-flex; align-items:center; gap:7px; }
.lr .books-toggle button .lc{ width:15px; height:15px; }
.lr .books-toggle button.is-active{ background:var(--ink-900); color:#fff; }
.lr .cat-nav{ display:flex; flex-wrap:wrap; gap:9px; margin-bottom:34px; }
.lr .cat-chip{ font-family:var(--font-brand); font-weight:var(--weight-semibold); font-size:14px; cursor:pointer; color:var(--ink-700); background:#fff; border:1.5px solid var(--line-strong); border-radius:var(--radius-pill); padding:8px 15px; transition:all var(--dur-fast); }
.lr .cat-chip:hover{ border-color:var(--teal-400); color:var(--ink-900); }
.lr .cat-chip.is-active{ background:var(--teal-100); border-color:var(--teal-400); color:var(--teal-700); }
.lr .cat-block{ margin-bottom:46px; } .lr .cat-block:last-of-type{ margin-bottom:8px; }
.lr .cat-title-row{ display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.lr .cat-title-row h3{ font-size:23px; font-weight:var(--weight-extrabold); letter-spacing:var(--tracking-tight); margin:0; color:var(--ink-900); }
.lr .count-chip{ flex:none; font-size:12.5px; font-weight:var(--weight-bold); color:var(--teal-700); background:var(--teal-100); padding:4px 11px; border-radius:var(--radius-pill); }
.lr .cat-blurb{ font-size:15.5px; line-height:var(--leading-normal); color:var(--ink-700); max-width:70ch; margin:0 0 22px; }
.lr .book-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.lr .book-card{ background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-card); padding:22px; display:flex; flex-direction:column; }
.lr .book-meta-top{ display:flex; align-items:center; gap:10px; margin-bottom:13px; }
.lr .kbadge{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:var(--weight-extrabold); padding:5px 11px; border-radius:var(--radius-pill); letter-spacing:.2px; }
.lr .kbadge .lc{ width:13px; height:13px; }
.lr .kbadge.book{ background:var(--accent-amber-soft); color:var(--accent-amber-ink); }
.lr .kbadge.study{ background:var(--accent-violet-soft); color:var(--accent-violet-ink); }
.lr .yr{ font-size:13px; font-weight:var(--weight-bold); color:var(--ink-500); }
.lr .book-card h4{ font-size:17.5px; font-weight:var(--weight-extrabold); line-height:var(--leading-snug); letter-spacing:var(--tracking-tight); color:var(--ink-900); margin:0 0 7px; }
.lr .book-card h4 a{ color:inherit; } .lr .book-card h4 a:hover{ color:var(--orange-700); }
.lr .byline{ font-size:13.5px; font-weight:var(--weight-semibold); color:var(--ink-500); margin:0 0 11px; line-height:1.45; }
.lr .book-card p.sum{ font-size:14.5px; line-height:var(--leading-normal); color:var(--ink-700); margin:0 0 16px; }
.lr .src-links{ margin-top:auto; display:flex; flex-wrap:wrap; gap:8px; }
.lr .src-links a{ display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:var(--weight-bold); color:var(--ink-700); background:var(--surface-soft); border:1px solid var(--line); border-radius:var(--radius-pill); padding:6px 12px; transition:all var(--dur-fast); }
.lr .src-links a:hover{ border-color:var(--teal-400); color:var(--teal-700); background:var(--teal-100); }
.lr .src-links a .lc{ width:13px; height:13px; }
.lr .books-disclaimer{ font-size:14px; line-height:var(--leading-normal); color:var(--ink-500); background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:18px 22px; margin:8px 0 0; }

/* CTA band */
.lr .lib-cta{ padding:68px 0 76px; }
.lr .lib-cta-inner{ position:relative; overflow:hidden; border-radius:var(--radius-xl); background:linear-gradient(135deg,var(--orange-500),var(--orange-300)); box-shadow:var(--shadow-orange); padding:56px clamp(28px,5vw,64px); text-align:center; }
.lr .lib-cta-inner::before{ content:""; position:absolute; inset:0; background:radial-gradient(50% 120% at 12% 0%, rgba(255,255,255,.22), transparent 60%); }
.lr .lib-cta-inner > *{ position:relative; z-index:1; }
.lr .lib-cta-inner h2{ color:#fff; font-size:clamp(26px,3.4vw,38px); font-weight:var(--weight-extrabold); letter-spacing:var(--tracking-heading); margin:0 0 14px; }
.lr .lib-cta-inner p{ color:rgba(255,255,255,.94); font-size:18px; line-height:var(--leading-normal); max-width:52ch; margin:0 auto 28px; }
.lr .lib-cta-inner .btn{ background:#fff; color:var(--orange-700); box-shadow:0 12px 28px rgba(16,34,53,.22); font-size:17px; padding:16px 32px; }
.lr .lib-cta-inner .btn:hover{ background:#fff; transform:translateY(-2px); }

.lr [hidden]{ display:none !important; }

/* responsive */
@media (max-width:1080px){ .lr .grid.cols4{ grid-template-columns:repeat(2,minmax(0,1fr)); } .lr .grid.cols3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:860px){ .lr .book-grid{ grid-template-columns:1fr; } }
@media (max-width:560px){ .lr .grid.cols3, .lr .grid.cols4{ grid-template-columns:1fr; } .lr .hero-stats{ gap:18px 26px; } .lr section.block{ padding-top:46px; } .lr .lib-cta-inner{ padding:40px 24px; } }

/* ---------- Key takeaways (TL;DR block) ---------- */
.takeaways { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; background: var(--mint-2); }
.takeaways .label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); margin: 0 0 13px; }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.takeaways li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; color: #2b2740; }
.takeaways li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Comparison / reference tables (AEO-friendly) ---------- */
.cmp-table { margin: 22px 0; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.cmp-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; background: var(--white); min-width: 460px; }
.cmp-table caption { caption-side: top; text-align: left; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 16px 0; }
.cmp-table thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; text-align: left; padding: 12px 16px; vertical-align: middle; }
.cmp-table thead th:first-child { border-top-left-radius: 0; }
.cmp-table tbody th, .cmp-table tbody td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp-table tbody th { font-weight: 700; color: var(--ink); width: 30%; }
.cmp-table tbody tr:nth-child(even) { background: var(--mint-2); }
.cmp-table tbody td { color: var(--ink-2); }
.cmp-table a { color: var(--orange-dark); font-weight: 600; }
.cmp-table a:hover { text-decoration: underline; }
@media (max-width: 600px) { .cmp-table table { font-size: 14px; } .cmp-table thead th, .cmp-table tbody th, .cmp-table tbody td { padding: 10px 12px; } }
