/* Blog: the cryptosites "Miners Digest" layout in MinerPrices's look (Inter, rounded cards, the orange-600 title colour as
   the accent, green buttons). Light and dark both work through the site tokens. */
.blog { --acc: var(--title); --line: var(--gray-200); --line-hi: var(--gray-300); --panel: hsl(var(--card)); --text: hsl(var(--foreground)); --muted: hsl(var(--muted-foreground));
  padding: 0 0 80px; }
.blog .wrap { max-width: 1440px; }
.blog h1, .blog h2, .blog h3 { letter-spacing: -.01em; }
.cat-tag { display: inline-block; padding: 4px 9px; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; border-radius: 3px;
  color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.blog-meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.blog-read { margin-top: 6px; font-weight: 700; color: var(--acc); }
.linkish { background: none; border: 0; color: hsl(var(--primary)); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- front page: hero ---------- */
.bh { position: relative; overflow: hidden; background: #0b0d12; isolation: isolate; }
/* always the same backdrop (inside a mining data centre), never the featured post's cover */
.bh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: blur(7px) saturate(.85); transform: scale(1.08); }
.bh-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4,7,18,.88) 0%, rgba(4,7,18,.7) 45%, rgba(4,7,18,.42) 100%), linear-gradient(180deg, transparent 60%, rgba(4,7,18,.6) 100%); }
.bh-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 520px); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); color: #fff; }
.bh-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fdba74; }
.bh-kicker::before { content: ""; width: 26px; height: 2px; background: var(--acc); }
.bh-copy h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; font-weight: 700; margin: 18px 0; max-width: 15ch; color: #fff; }
.bh-copy h1 em { font-style: normal; color: #fb923c; }
.bh-copy > p { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 0 28px; }
.bh-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.bh-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; opacity: .85; }
.bh-link:hover { opacity: 1; color: #fdba74; }
.bh-link svg { width: 15px; height: 15px; }
.bh-topics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.bh-topics > span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-right: 6px; }
.bh-topics button { padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; background: rgba(255,255,255,.06); color: #fff; font: 600 13px var(--font); cursor: pointer; }
.bh-topics button:hover { border-color: #fb923c; background: rgba(234,88,12,.18); }
.bh-card { position: relative; display: block; background: var(--panel); color: var(--text); border: 1px solid var(--line-hi); border-top: 3px solid var(--acc); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.65); transition: transform .25s, box-shadow .25s; }
.bh-card:hover { transform: translateY(-4px); box-shadow: 0 38px 70px -28px rgba(0,0,0,.75); color: var(--text); }
.bh-card-label { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 10px; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; background: var(--acc); color: #fff; }
.bh-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.bh-card-img img, .blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bh-card:hover .bh-card-img img { transform: scale(1.04); }
.bh-card-in { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.bh-card-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bh-card h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.15; margin: 2px 0 0; }
.bh-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- front page: sections ---------- */
.blog-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.blog-row-head h2 { font-size: 26px; font-weight: 700; margin: 0; }
.blog-row-head a { color: var(--acc); font-weight: 600; }
.blog-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.blog-topics:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blog-topic { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.blog-topic:hover { border-color: var(--acc); transform: translateY(-2px); }
.blog-topic .cat-tag { align-self: flex-start; }
.blog-topic b { font-size: 16px; line-height: 1.4; font-weight: 600; }
.blog-all { margin-top: 56px; }
.blog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-chips button { padding: 9px 14px; border: 1px solid var(--line-hi); border-radius: 3px; background: var(--panel); color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.blog-chips button small { margin-left: 4px; font-size: 11px; opacity: .8; }
.blog-chips button:hover { border-color: var(--acc); color: var(--text); }
.blog-chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--panel); }
.blog-search { position: relative; flex: 0 1 280px; }
.blog-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.blog-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line-hi); border-radius: 3px; background: var(--panel); color: var(--text); font: 14px var(--font); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--panel); color: inherit; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.blog-card:hover { border-color: var(--acc); transform: translateY(-3px); box-shadow: 0 16px 36px -24px rgba(0,0,0,.35); color: inherit; }
.blog-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-in { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-in .cat-tag { align-self: flex-start; }
.blog-card h3 { font-size: 19px; line-height: 1.2; font-weight: 700; margin: 0; }
.blog-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-grid.is-all .blog-card.is-lead { display: none; }
.blog-empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-hi); border-radius: var(--radius); }
.blog-numbers, .blog-tools-sec { margin-top: 72px; }
.bn-grid, .bt-grid, .bl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bn { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--panel); color: inherit; position: relative; overflow: hidden; }
.bn::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 3px; background: var(--acc); }
.bn:hover { border-color: var(--acc); color: inherit; }
.bn b { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bn b small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.bn span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bt, .bl { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--panel); color: inherit; transition: border-color .2s, transform .2s; }
.bt:hover, .bl:hover { border-color: var(--acc); transform: translateY(-2px); color: inherit; }
.bt-ico, .bl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.bt-ico svg, .bl-ico svg { width: 22px; height: 22px; }
.bt b, .bl b { font-size: 17px; font-weight: 700; }
.bt p, .bl p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.bt-go { font-weight: 700; color: var(--acc); font-size: 14px; }
.blog-loop { margin-top: 72px; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line-hi); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--acc) 12%, var(--panel)) 0%, var(--panel) 55%); }
.bl-head { max-width: 640px; margin-bottom: 24px; }
.bl-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; font-weight: 700; margin: 12px 0 10px; }
.bl-head p { margin: 0; color: var(--muted); }

/* ---------- article ---------- */
.art { padding-top: 32px; }
.art-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; pointer-events: none; }
.art-progress span { display: block; height: 100%; width: 0; background: var(--title); transition: width .08s linear; }
.art-draft { position: sticky; top: 0; z-index: 150; padding: 10px 16px; text-align: center; font-weight: 700; font-size: 13px; background: var(--amber-100); color: #92400e; }
.art-hero { max-width: 960px !important; }
.art-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.art-crumbs a:hover { color: var(--acc); }
.art-hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08; font-weight: 700; margin: 14px 0 16px; color: hsl(var(--foreground)); }
.art-sub { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--muted); margin: 0 0 24px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.art-by { display: flex; align-items: center; gap: 10px; }
.art-by b { display: block; font-size: 14px; }
.art-by small { display: block; font-size: 12px; color: var(--muted); }
.art-when { font-size: 13px; color: var(--muted); }
.art-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.art-share > span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.art-share a, .art-share button { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-hi); border-radius: 3px; background: var(--panel); color: var(--text); cursor: pointer; }
.art-share a:hover, .art-share button:hover { border-color: var(--acc); color: var(--acc); }
.art-share svg { width: 16px; height: 16px; }
.art-copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; font-size: 11px; border-radius: 3px; background: var(--text); color: var(--panel); opacity: 0; pointer-events: none; transition: opacity .2s; }
.art-copied.on { opacity: 1; }
.art-cover { margin: 30px auto 0; max-width: 1440px; }
.art-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.art-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 72px; justify-content: center; margin-top: 40px; }
.art-layout.no-toc { grid-template-columns: minmax(0, 760px); }
.art-layout.no-toc .art-toc { display: none; }
.art-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.art-toc b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.art-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.art-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.art-toc a:hover { color: var(--text); }
.art-toc a[aria-current="true"] { color: var(--acc); border-left-color: var(--acc); font-weight: 600; }
.art-tldr { padding: 20px 22px 20px 24px; margin: 0 0 34px; border: 1px solid var(--line-hi); border-left: 3px solid var(--acc); border-radius: var(--radius); background: var(--panel); }
.art-tldr b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--acc); margin-bottom: 6px; }
.art-tldr p { margin: 0; font-size: 16.5px; line-height: 1.65; }
.art-body { font-size: 18px; line-height: 1.78; }
.art-body > p:first-child::first-letter { float: left; font-size: 64px; font-weight: 800; line-height: .9; color: var(--acc); padding: 6px 10px 0 0; }
.art-body h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 700; margin: 48px 0 14px; scroll-margin-top: 90px; }
.art-body h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.art-body h4 { font-size: 18px; margin: 24px 0 8px; }
.art-body p, .art-body ul, .art-body ol { margin: 0 0 20px; }
.art-body ul, .art-body ol { padding-left: 22px; }
.art-body li { margin-bottom: 9px; padding-left: 4px; }
.art-body li::marker { color: var(--acc); font-weight: 700; }
.art-body a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.art-body img { border-radius: var(--radius); margin: 10px 0; }
.art-body figure { margin: 24px 0; }
.art-body figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.art-body hr { border: 0; height: 1px; background: var(--line-hi); margin: 40px 0; }
.art-note { font-size: 14px !important; line-height: 1.6 !important; color: var(--muted); font-style: italic; }
.art-table, .art-body table { overflow-x: auto; margin: 4px 0 26px; }
.art-table { border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--panel); }
.art-table table, .art-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.art-body th, .art-body td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.art-body th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--gray-50); }
.art-swipe { display: none; margin: -18px 0 22px !important; font-size: 12px !important; color: var(--muted); text-align: right; }
.art-end { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.art-end .art-share { margin-left: 0; order: 2; }
.art-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.art-tags span { padding: 4px 9px; font-size: 12px; border-radius: 3px; color: var(--muted); border: 1px solid var(--line); }
.art-cta { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin-top: 36px; padding: clamp(22px, 3.5vw, 34px); border: 1px solid var(--line-hi); border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 10%, var(--panel)), var(--panel) 65%); }
.art-cta h2 { font-size: 24px; line-height: 1.15; font-weight: 700; margin: 10px 0 8px; }
.art-cta p { margin: 0; color: var(--muted); line-height: 1.6; }
.art-cta-btns { display: flex; flex-direction: column; gap: 10px; }
.art-related { margin-top: 72px; }

@media (min-width: 1500px) { .blog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .art-layout { grid-template-columns: minmax(0, 760px); gap: 0; } .art-toc { display: none; }
  .blog-grid, .bn-grid, .bt-grid, .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-topics, .blog-topics:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) { .bh-grid { grid-template-columns: 1fr; } .bh-copy h1 { max-width: 18ch; } .art-cta { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .art-swipe { display: block; } }
@media (max-width: 640px) {
  .blog-grid, .bt-grid, .bl-grid, .blog-topics, .blog-topics:has(> :nth-child(4)) { grid-template-columns: 1fr; }
  .bh-grid { padding-top: 40px; padding-bottom: 40px; gap: 30px; } .bh-card-in { padding: 18px; }
  .blog-search { flex: 1 1 100%; }
  .blog-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .blog-chips button { flex: none; }
  .art-body { font-size: 17px; line-height: 1.72; } .art-body > p:first-child::first-letter { font-size: 52px; }
  .art-share { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .blog-card, .bh-card, .blog-card-img img, .bh-card-img img, .blog-topic, .bt, .bl { transition: none !important; transform: none !important; } }
/* phones (16 Oct): the articles start sooner. Tighter intro, short teaser on the featured post, topics as one swipeable row */
@media (max-width: 640px) {
  .bh-grid { grid-template-columns: minmax(0, 1fr); padding-top: 22px; padding-bottom: 24px; gap: 18px; }
  .bh-copy h1 { font-size: 30px; margin: 10px 0; }
  .bh-copy > p { font-size: 15px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bh-topics { margin-top: 16px; padding-top: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .bh-topics button { flex: none; }
  .bh-card-img { aspect-ratio: 2 / 1; }
  .bh-card-in p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .blog-topics, .blog-topics:has(> :nth-child(4)) { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 22px; padding-bottom: 6px; scrollbar-width: none; }
  .blog-topic { flex: 0 0 72%; scroll-snap-align: start; padding: 14px; gap: 6px; }
  .blog-topic p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
}

/* phones (16 Oct): article cards as rows with the picture beside the title (13 cards were ~6 phone screens) */
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 10px; }
  .blog-card { flex-direction: row; align-items: stretch; }
  .blog-card:hover { transform: none; }
  .blog-card-img { flex: none; width: 112px; aspect-ratio: auto; min-height: 84px; }
  .blog-card-in { padding: 10px 12px; gap: 4px; }
  .blog-card h3 { font-size: 15px; line-height: 1.25; }
  .blog-card p { display: none; }
  .blog-card .blog-meta { font-size: 12px; }
}
