/* ============================================================
   Coindaily - Learn hub + article template
   ============================================================ */

/* ---------- landing hero ---------- */
.ln-hero { padding: 30px 0 8px; }
.ln-hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--tx-hi); margin: 4px 0 8px; }
.ln-hero .sub { color: var(--tx-mid); font-size: 13.5px; max-width: 640px; line-height: 1.6; }

/* ---------- featured guide ---------- */
.ln-featured { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; background: linear-gradient(135deg, #12161d 0%, #0d1016 100%); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; margin: 22px 0 26px; text-decoration: none; transition: .15s; }
.ln-featured:hover { border-color: rgba(255,255,255,.16); transform: translateY(-2px); }
.ln-feat-main { padding: 28px 30px; }
.ln-feat-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; display: block; }
.ln-featured h2 { font-size: 23px; font-weight: 600; color: var(--tx-hi); letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 10px; }
.ln-featured p { font-size: 13.5px; color: var(--tx-mid); line-height: 1.65; margin-bottom: 16px; max-width: 560px; }
.ln-feat-cta { font-size: 13px; color: var(--amber); font-weight: 600; }
.ln-feat-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 0 0 16px; font-family: var(--mono); font-size: 11px; color: var(--tx-dim); }
.ln-feat-meta b { color: var(--tx-mid); font-weight: 500; }
.ln-feat-thumb { border-left: 1px solid var(--hairline); min-height: 210px; background: #0C1016; }
.ln-feat-thumb svg { width: 100%; height: 100%; display: block; }

/* ---------- filters ---------- */
.ln-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ln-filters button { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--hairline); color: var(--tx-mid); font-size: 12.5px; font-weight: 500; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: .13s; font-family: inherit; }
.ln-filters button:hover { color: var(--tx-hi); border-color: rgba(255,255,255,.2); }
.ln-filters button.active { color: var(--amber); border-color: rgba(201,154,75,.55); background: rgba(201,154,75,.08); }
.ln-filters .n { font-family: var(--mono); font-size: 10px; color: var(--tx-dim); }

/* ---------- grid ---------- */
.ln-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.ln-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 18px 19px; color: inherit; text-decoration: none; transition: .14s; min-height: 168px; position: relative; overflow: hidden; }
a.ln-card:hover { border-color: rgba(255,255,255,.18); background: var(--panel-2, #0c1016); transform: translateY(-2px); }
.ln-card.soon { opacity: .62; cursor: default; }
.ln-thumb { margin: -18px -19px 14px; height: 150px; border-bottom: 1px solid var(--hairline); background: #0C1016; }
.ln-thumb svg { width: 100%; height: 100%; display: block; }
a.ln-card:hover .ln-thumb svg { opacity: .92; }
.ln-top { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.ln-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--cat, var(--amber)); }
.ln-lvl { font-family: var(--mono); font-size: 10px; color: var(--tx-dim); border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 6px; }
.ln-soon { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--tx-dim); border: 1px solid var(--hairline); border-radius: 4px; padding: 2px 6px; text-transform: uppercase; }
.ln-card h3 { font-size: 15px; font-weight: 600; color: var(--tx-hi); line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 8px; }
.ln-card p { font-size: 12.5px; color: var(--tx-mid); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ln-meta { margin-top: auto; padding-top: 13px; font-family: var(--mono); font-size: 10.5px; color: var(--tx-dim); }
.ln-empty { grid-column: 1 / -1; padding: 50px 20px; text-align: center; color: var(--tx-dim); font-size: 13.5px; }
.ln-foot { color: var(--tx-dim); font-size: 12px; margin: 8px 0 40px; line-height: 1.6; }

/* ============================================================
   article template
   ============================================================ */
.post-hero { padding: 28px 0 0; }
.post-cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 14px 0 10px; }
.post-cat .lvl { color: var(--tx-dim); }
.post-hero h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.18; color: var(--tx-hi); max-width: 720px; }
.post-dek { font-size: 16px; color: var(--tx-mid); line-height: 1.6; max-width: 700px; margin: 12px 0 18px; }

/* byline / trust bar */
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-bottom: 8px; max-width: 720px; }
.post-by { display: flex; align-items: center; gap: 10px; }
.post-ava { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), #a87f3c); display: flex; align-items: center; justify-content: center; color: #0b0e14; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.post-by .who { display: flex; flex-direction: column; }
.post-by .who b { font-size: 12.5px; color: var(--tx-hi); font-weight: 600; }
.post-by .who span { font-size: 11px; color: var(--tx-dim); }
.post-dates { display: flex; flex-direction: column; gap: 1px; font-size: 11px; color: var(--tx-dim); font-family: var(--mono); }
.post-dates b { color: var(--tx-mid); font-weight: 500; }
.post-read { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--tx-dim); }
.post-note { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; color: var(--tx-dim); margin: 10px 0 4px; max-width: 720px; line-height: 1.5; }
.post-hero-thumb { max-width: 720px; height: 190px; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; background: #0C1016; margin: 16px 0 2px; }
.post-hero-thumb svg { width: 100%; height: 100%; display: block; }
.post-note svg { flex-shrink: 0; color: var(--amber); }

/* layout: prose + sticky toc, centred as one assembly (720 + 56 + 232 + wrap padding) */
article .wrap { max-width: 1060px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 232px; gap: 56px; justify-content: flex-start; padding: 22px 0 30px; }
.post-toc { position: sticky; top: 80px; align-self: start; border-left: 1px solid var(--hairline); padding-left: 18px; }
.post-toc .t { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-dim); margin-bottom: 10px; }
.post-toc a { display: block; font-size: 12.5px; color: var(--tx-mid); text-decoration: none; padding: 4px 0; line-height: 1.4; }
.post-toc a:hover { color: var(--tx-hi); }
.post-toc a.sub { padding-left: 12px; font-size: 12px; color: var(--tx-dim); }

/* prose */
.post-body { max-width: 720px; }
.post-body h2 { font-size: 21px; font-weight: 600; color: var(--tx-hi); letter-spacing: -0.015em; margin: 34px 0 12px; scroll-margin-top: 80px; }
.post-body h3 { font-size: 16px; font-weight: 600; color: var(--tx-hi); margin: 22px 0 8px; scroll-margin-top: 80px; }
.post-body p { font-size: 14.5px; color: var(--tx); line-height: 1.75; margin-bottom: 14px; }
.post-body p b, .post-body li b { color: var(--tx-hi); }
.post-body ul, .post-body ol { margin: 0 0 14px 20px; }
.post-body li { font-size: 14.5px; color: var(--tx); line-height: 1.7; margin-bottom: 6px; }
.post-body a { color: var(--amber); text-decoration: none; }
.post-body a:hover { text-decoration: underline; }

/* key takeaways */
.post-takeaways { background: linear-gradient(180deg, #13171f, #0e1218); border: 1px solid var(--hairline); border-left: 2px solid var(--amber); border-radius: 12px; padding: 18px 22px; margin: 4px 0 10px; }
.post-takeaways .t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.post-takeaways ul { margin: 0 0 0 18px; }
.post-takeaways li { font-size: 13.5px; color: var(--tx); line-height: 1.65; margin-bottom: 7px; }

/* callout */
.post-callout { background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 20px; margin: 18px 0; }
.post-callout .t { font-size: 12.5px; font-weight: 600; color: var(--tx-hi); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.post-callout .t .pip { width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.post-callout p { font-size: 13px; color: var(--tx-mid); margin-bottom: 0; line-height: 1.6; }

/* live data strip */
.post-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.post-data a { display: flex; flex-direction: column; gap: 3px; background: var(--panel); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; text-decoration: none; transition: .13s; }
.post-data a:hover { border-color: rgba(201,154,75,.5); }
.post-data .k { font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--tx-dim); }
.post-data .v { font-size: 13px; color: var(--tx-hi); font-weight: 600; }
.post-data .v small { color: var(--amber); font-weight: 500; }

/* FAQ */
.post-faq details { border: 1px solid var(--hairline); border-radius: 10px; margin-bottom: 8px; background: var(--panel); }
.post-faq summary { cursor: pointer; padding: 13px 16px; font-size: 14px; font-weight: 600; color: var(--tx-hi); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; color: var(--tx-dim); font-size: 16px; font-weight: 400; }
.post-faq details[open] summary::after { content: "−"; }
.post-faq .a { padding: 0 16px 14px; font-size: 13.5px; color: var(--tx-mid); line-height: 1.7; }

/* exchange pick cards (how-to articles) */
.pick { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; margin: 16px 0 18px; }
.pick-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--hairline); background: var(--bg-2); }
.pick-rank { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--amber); border: 1px solid rgba(201,154,75,.4); border-radius: 6px; padding: 3px 8px; }
.pick-head img.logo { width: 24px; height: 24px; border-radius: 7px; background: #16171b; object-fit: contain; }
.pick-head b { font-size: 14.5px; color: var(--tx-hi); }
.pick-head .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--up); background: var(--up-bg); border-radius: 5px; padding: 3px 7px; }
.pick-head .links { margin-left: auto; display: flex; gap: 14px; font-size: 12px; font-weight: 500; }
.pick-body { padding: 14px 16px 15px; }
.pick-body p { font-size: 13.5px; margin-bottom: 10px; }
.pick-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 11px; color: var(--tx-dim); margin: 0; }
.pick-facts b { color: var(--tx-mid); font-weight: 500; }

/* comparison table */
.post-table { width: 100%; border-collapse: collapse; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; margin: 14px 0 6px; background: var(--panel); display: table; }
.post-table th { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-dim); text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--hairline); background: var(--bg-2); font-weight: 500; }
.post-table td { font-size: 12.5px; color: var(--tx); padding: 10px 13px; border-bottom: 1px solid var(--hairline-2, rgba(255,255,255,.04)); }
.post-table tr:last-child td { border-bottom: 0; }
.post-table td.num { font-family: var(--mono); }
.post-table td b { color: var(--tx-hi); }

/* sources */
.post-sources ol { margin-left: 20px; }
.post-sources li { font-size: 13px; color: var(--tx-mid); margin-bottom: 7px; line-height: 1.6; }

/* disclaimer */
.post-disclaimer { background: rgba(190,94,108,.05); border: 1px solid rgba(190,94,108,.18); border-radius: 12px; padding: 16px 20px; margin: 26px 0 10px; font-size: 12.5px; color: var(--tx-mid); line-height: 1.7; }
.post-disclaimer b { color: var(--tx); }

/* author box */
.post-author { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 20px; margin: 18px 0; }
.post-author .post-ava { width: 42px; height: 42px; font-size: 14px; }
.post-author .b b { display: block; font-size: 13.5px; color: var(--tx-hi); margin-bottom: 3px; }
.post-author .b p { font-size: 12.5px; color: var(--tx-mid); line-height: 1.6; margin: 0; }

/* charts inside articles */
.post-chart { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: #0C1016; padding: 16px 16px 13px; margin: 18px 0; }
.post-chart .t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-dim); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; }
.post-chart svg { width: 100%; height: auto; display: block; }
.post-legend { display: flex; gap: 16px; margin-top: 11px; font-size: 11.5px; color: var(--tx-mid); flex-wrap: wrap; }
.post-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.post-chart .cap { font-size: 11.5px; color: var(--tx-dim); margin-top: 9px; line-height: 1.5; }

/* paired marketing screenshots */
.shot-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 20px; }
@media (max-width: 680px) { .shot-duo { grid-template-columns: 1fr; } }

/* related */
.post-related { margin: 26px 0 44px; }
.post-related h2 { font-size: 17px; margin-bottom: 14px; }
.post-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

@media (max-width: 960px) {
  .ln-grid { grid-template-columns: repeat(2, 1fr); }
  .ln-featured { grid-template-columns: 1fr; }
  .ln-feat-thumb { border-left: 0; border-top: 1px solid var(--hairline); min-height: 150px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; border-left: 0; padding-left: 0; border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 18px; order: -1; }
  .post-rel-grid, .post-data { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ln-grid { grid-template-columns: 1fr; }
  .post-hero h1 { font-size: 27px; }
  .post-read { margin-left: 0; width: 100%; }
}
