/* minerprices page shell (src/lib/page.js), loaded on every page after theme.css: the homepage's layout for every
   subpage. Left rail (filters, sections) + main column (title, intro, numbers, then content in .mp-table / .mp-cards).
   Muted text #5c6371 or darker (WCAG AA on white and on the warm canvas). */

/* ---------- shell ---------- */
.pg { max-width: 1600px; margin: 0 auto; }
.pg-rail-on { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.pg-rail { padding: 30px 18px 36px 24px; border-right: 1px solid hsl(var(--border)); }
.pg-rail > * + * { margin-top: 22px; }
.pg-main { min-width: 0; padding: 34px 32px 48px; }
.pg:not(.pg-rail-on) .pg-main { max-width: 1240px; margin: 0 auto; }
.pg-head { margin-bottom: 22px; }
.pg-head .crumbs { margin-bottom: 14px; }
.pg-tag { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 3px; background: #fbefdd; color: #7a5414; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.pg-title { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; font-stretch: 100%; max-width: 30ch; text-wrap: balance; }
.pg-lead { margin: 10px 0 0; max-width: 72ch; font-size: 17px; line-height: 1.55; color: #4b5260; }
.pg-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: #4b5260; }
.pg-stats b { margin-right: 3px; font-size: 18px; font-weight: 750; color: hsl(var(--foreground)); }

/* ---------- rail ---------- */
.rail-h { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5c6371; }
.rail-h::before { display: none !important; }
.rail-list { display: grid; gap: 2px; }
.rail-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px;
  background: none; color: inherit; font: 500 14.5px/1.25 var(--font); text-align: left; cursor: pointer; text-decoration: none; }
.rail-item:hover { background: #fbefdd; color: inherit; }
.rail-item[aria-pressed="true"], .rail-item[aria-current] { background: #fbefdd; border-color: #f0c47e; font-weight: 650; }
.rail-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 500; color: #5c6371; }
.rail-item img { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.rail-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 46px; border: 1px solid #dcdad5; border-radius: 8px; background: #fff; color: #10141d; }
.rail-search:focus-within { outline: 2px solid #bd7b1a; outline-offset: 2px; }
.rail-search svg { width: 18px; height: 18px; flex: none; color: #5c6371; }
.rail-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: inherit; font-size: 15px; outline: 0; }
.rail-check { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 10px; font-size: 14.5px; cursor: pointer; }
.rail-check input { width: 18px; height: 18px; accent-color: #d98a12; }
.rail-reset { border: 0; background: none; padding: 4px 10px; font: 600 13px var(--font); color: #7a5414; text-decoration: underline; cursor: pointer; }
.rail-more > summary { list-style: none; padding: 6px 10px; font-size: 13.5px; font-weight: 600; color: #7a5414; cursor: pointer; }
.rail-more > summary::-webkit-details-marker { display: none; }
.rail-more[open] > summary { display: none; }

/* ---------- sections of the main column ---------- */
.pg-sec { margin-top: 30px; }
.pg-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pg-sec-h h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.pg-sec-h h2::before { display: none !important; }
.pg-n { font-weight: 500; color: #5c6371; font-size: 16px; }
.pg-sec-h a { font-weight: 600; color: hsl(var(--primary)); }
.pg-note { margin: 10px 2px 0; font-size: 13.5px; color: #5c6371; }
.pg-empty { padding: 40px 20px; text-align: center; color: #4b5260; border: 1px dashed hsl(var(--border)); border-radius: 8px; }

/* ---------- comparison table (the homepage's), cards on phones ---------- */
.mp-wrap { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); }
.mp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mp-table th { padding: 12px 14px; background: #f5f3ef; color: hsl(var(--foreground)); text-align: left; font-size: 13.5px; font-weight: 650; text-transform: none; letter-spacing: 0; vertical-align: bottom; white-space: nowrap; border: 0; }
.mp-table th.num, .mp-table td.num { text-align: right; }
.mp-table th button { padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.mp-table th button::after { content: " ↕"; color: #5c6371; font-size: 12px; }
.mp-table th[aria-sort="ascending"] button, .mp-table th[aria-sort="descending"] button { color: #8a5a10; }
.mp-table th[aria-sort="ascending"] button::after { content: " ↑"; color: inherit; }
.mp-table th[aria-sort="descending"] button::after { content: " ↓"; color: inherit; }
.mp-table td { padding: 14px; border-top: 1px solid #efedea; vertical-align: middle; background: none; }
.mp-table tbody tr:hover td { background: #fffaf2; }
.mp-table td b.big { font-size: 20px; font-weight: 750; white-space: nowrap; }
.mp-table td small, .mp-sub { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #5c6371; font-weight: 400; }
.mp-table td.act { text-align: right; white-space: nowrap; }
.mp-table td.act .btn { gap: 8px; padding: 10px 14px; font-size: 14px; }
.mp-name { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; }
.mp-name img { flex: none; width: 44px; height: 44px; object-fit: contain; border-radius: 6px; border: 1px solid #efedea; background: #fff; }
.mp-name b { display: block; font-size: 16px; line-height: 1.25; }
a.mp-name:hover b { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.mp-good { color: #1f7a60; }
.mp-tagline { display: inline-block; margin: 4px 6px 0 0; padding: 1px 7px; border-radius: 3px; background: #f1efe9; font-size: 12px; color: #3b3830; }
.mp-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 60ch; margin-top: 6px; font-size: 13px; line-height: 1.45; color: #4b5260; }

/* card grid for things that are not rows */
.mp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mp-card { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); color: inherit; }
a.mp-card:hover { border-color: #e2b46d; color: inherit; }

:root[data-theme="dark"] .mp-table th { background: #242b38; }
:root[data-theme="dark"] .mp-table td { border-color: #323a49; }
:root[data-theme="dark"] .mp-table tbody tr:hover td { background: #222a37; }
:root[data-theme="dark"] .rail-item:hover, :root[data-theme="dark"] .rail-item[aria-pressed="true"], :root[data-theme="dark"] .rail-item[aria-current] { background: #30291d; }
:root[data-theme="dark"] .rail-search { background: #1b2230; border-color: #323a49; color: #f3f1ed; }
:root[data-theme="dark"] .pg-lead, :root[data-theme="dark"] .pg-stats, :root[data-theme="dark"] .rail-h, :root[data-theme="dark"] .rail-item em,
:root[data-theme="dark"] .mp-table td small, :root[data-theme="dark"] .mp-sub, :root[data-theme="dark"] .mp-desc, :root[data-theme="dark"] .pg-n, :root[data-theme="dark"] .pg-note { color: #b7bfcb; }
:root[data-theme="dark"] .mp-name img { background: #fff; border-color: #323a49; }
:root[data-theme="dark"] .mp-good { color: #4fd1a5; }
:root[data-theme="dark"] .mp-tagline { background: #242b38; color: #d3d8e2; }

/* ---------- narrower screens ---------- */
@media (max-width: 1350px) {
  .pg-rail-on { grid-template-columns: 240px minmax(0, 1fr); }
  .pg-rail { padding: 26px 12px 28px 16px; }
  .pg-main { padding: 28px 22px 40px; }
  .mp-table td, .mp-table th { padding: 12px 10px; }
}
/* tablets and phones: the rail moves above the content; long lists scroll sideways as chips */
@media (max-width: 950px) {
  .pg-rail-on { display: flex; flex-direction: column; }
  .pg-rail { order: 2; padding: 0 20px; border: 0; }
  .pg-main { display: contents; }
  .pg-head { order: 1; padding: 22px 20px 0; margin-bottom: 14px; }
  .pg-main > :not(.pg-head) { order: 3; margin-left: 20px; margin-right: 20px; }
  .pg:not(.pg-rail-on) .pg-main { display: block; padding: 22px 20px 36px; }
  .pg:not(.pg-rail-on) .pg-main > :not(.pg-head) { margin-left: 0; margin-right: 0; }
  .pg:not(.pg-rail-on) .pg-head { padding: 0; }
  .pg-rail > * + * { margin-top: 12px; }
  .pg-rail .rail-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; scroll-padding-inline: 20px; }
  .pg-rail .rail-list::-webkit-scrollbar { display: none; }
  .pg-rail .rail-item { flex: none; width: auto; min-height: 40px; border-color: hsl(var(--border)); background: hsl(var(--card)); }
  .pg-rail .rail-item em { margin-left: 4px; }
  .rail-more { display: contents; }
  .rail-more > summary { display: none; }
  .pg-rail-on .pg-main > :last-child { margin-bottom: 36px; }
}
@media (max-width: 700px) {
  .pg-title { font-size: 28px; }
  .pg-lead { font-size: 15.5px; }
  .pg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; }
  .pg-stats b { font-size: 16px; }
  .pg-sec-h h2 { font-size: 20px; }
  /* tables become cards: first cell on its own row, labelled values in a grid, the action button full width */
  .mp-wrap { border: 0; background: none; overflow: visible; }
  .mp-table, .mp-table tbody { display: block; }
  .mp-table thead { display: none; }
  .mp-table tbody tr:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin-bottom: 10px; padding: 14px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); }
  .mp-table td { display: block; padding: 0; border: 0; text-align: left !important; }
  .mp-table tbody tr:hover td { background: none; }
  .mp-table td:first-child, .mp-table td.act, .mp-table td.wide { grid-column: 1 / -1; }
  .mp-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; color: #5c6371; }
  .mp-table td.m-hide { display: none; }
  .mp-table td.act .btn { width: 100%; justify-content: center; }
}

/* ---------- rail form fields (ranking filters) ---------- */
.rail-searchrow { display: grid; gap: 4px; }
.rail-searchrow .rail-reset { justify-self: end; }
.rail-ic { display: inline-flex; flex: none; }
.rail-ic img + img { margin-left: -7px; box-shadow: 0 0 0 2px hsl(var(--background)); }
.rail-fields { display: grid; gap: 10px; }
.rail-fields label:not(.rail-check) { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #4b5260; }
.rail-fields select, .rail-fields input[type="number"] { height: 40px; width: 100%; padding: 0 10px; border: 1px solid #dcdad5; border-radius: 6px; background: #fff; color: #10141d; font: 500 14.5px var(--font); }
.rail-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rail-fields .rail-check { padding: 4px 0; }
:root[data-theme="dark"] .rail-fields select, :root[data-theme="dark"] .rail-fields input[type="number"] { background: #1b2230; border-color: #323a49; color: #f3f1ed; }
:root[data-theme="dark"] .rail-fields label:not(.rail-check) { color: #b7bfcb; }
@media (max-width: 950px) { .rail-fields { grid-template-columns: 1fr 1fr; } .rail-fields .rail-pair { grid-column: 1 / -1; } }

/* ---------- ranking tables in the comparison style (home.js, brands, devices) ---------- */
.pg-sub { margin: -8px 0 18px; }
.mp-rankwrap { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); }
.t.mp-rank { font-size: 14.5px; }
.t.mp-rank th { padding: 12px 10px; }
.t.mp-rank td { padding: 11px 10px; border-color: #efedea; }
.t.mp-rank td.model { font-weight: 650; font-size: 15px; }
.t.mp-rank td.model a { color: inherit; }
.t.mp-rank td.model a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
/* profit: a figure in green (no shaded cells), weaker ones lighter, losses in red */
.t.mp-rank td.profit, .t.mp-rank td.profit.p1, .t.mp-rank td.profit.p2, .t.mp-rank td.profit.p3, .t.mp-rank td.profit.p4 { background: none !important; text-align: right; color: #1f7a60; font-weight: 750; font-size: 15.5px; white-space: nowrap; min-width: 120px; filter: none !important; }
.t.mp-rank td.profit.p3, .t.mp-rank td.profit.p4 { color: #3f8c75; font-weight: 650; }
.t.mp-rank td.profit.neg { color: #b43832 !important; }
:root[data-theme="dark"] .t.mp-rank td.profit { color: #4fd1a5; }
:root[data-theme="dark"] .t.mp-rank td.profit.neg { color: #ff8a7d !important; }
.rank-bar { margin: 18px 0 8px; }
.rank-bar .pg-note { margin: 0; }

/* today's top pick above a ranking: the homepage card style (white, amber offset) */
.top-pick { background: hsl(var(--card)) !important; border: 1px solid hsl(var(--border)) !important; border-radius: 8px !important; box-shadow: 8px 8px 0 #fbe2b6; padding: 16px 20px !important; margin: 0 0 8px !important; }
.top-pick .tp-badge { background: var(--amber) !important; color: var(--ink) !important; }
.top-pick .tp-kicker { color: #7a5414 !important; }
.top-pick .tp-profit > b { color: #1f7a60 !important; }
.top-pick .tp-img { background: none !important; }
:root[data-theme="dark"] .top-pick { box-shadow: 8px 8px 0 #3a2a0b; background: hsl(var(--card)) !important; }
:root[data-theme="dark"] .top-pick .tp-profit > b { color: #4fd1a5 !important; }
:root[data-theme="dark"] .top-pick .tp-kicker { color: var(--amber) !important; }
@media (max-width: 700px) {
  .mp-rankwrap { border: 0; background: none; }
  table.t.cards.mp-rank tr { margin-bottom: 8px; border: 1px solid hsl(var(--border)) !important; border-radius: 8px; background: hsl(var(--card)); }
  table.t.cards.mp-rank td.profit { min-width: 0; padding: 0; font-size: 15px; }
  .top-pick { box-shadow: 5px 5px 0 #fbe2b6; }
}

/* small cards: a name and a count (algorithm / maker index) */
.mp-cards-s { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mp-card-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.mp-card-row img { width: 28px; height: 28px; object-fit: contain; }
.mp-card-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mp-card-row em { margin-left: auto; font-style: normal; font-size: 13px; color: #5c6371; }
.pg-prose { max-width: 90ch; font-size: 15px; line-height: 1.6; color: #3b3f48; }
.pg-prose a { color: hsl(var(--primary)); }
:root[data-theme="dark"] .pg-prose { color: #d3d8e2; }

/* ---------- miner / GPU / CPU page (miner.js): buying panel in the rail, profit strip under the title ---------- */
.mpd .pg-rail { padding-top: 28px; }
.mpd-rail { display: flex; flex-direction: column; gap: 16px; }
.mpd-rail > * + * { margin-top: 0 !important; }
@media (min-width: 951px) { .mpd-rail { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; scrollbar-width: thin; } }
.mpd-pic { display: grid; gap: 6px; padding: 14px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: #fff; }
.mpd-pic img { width: 100%; height: 190px; object-fit: contain; }
.mpd-pic .small, .mpd-pic p { margin: 0; font-size: 11.5px; color: #5c6371; }
.mpd-buy { display: grid; gap: 4px; padding: 16px; border-radius: 10px; background: #fbf6ee; border: 1px solid #f1e4cc; }
.mpd-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a5414; }
.mpd-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.mpd-roi { font-size: 14px; color: #4b5260; }
.mpd-go { margin-top: 10px; justify-content: center; width: 100%; }
.mpd-cmp { margin-top: 6px; }
.mpd-mini { display: grid; gap: 0; margin: 0; padding: 4px 0; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.mpd-mini > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 4px; font-size: 14px; }
.mpd-mini dt { color: #5c6371; }
.mpd-mini dd { margin: 0; font-weight: 650; text-align: right; }
.mpd-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; margin-top: 18px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); overflow: hidden; }
.mpd-c { display: grid; gap: 2px; align-content: start; padding: 14px 18px; border: 0 !important; border-radius: 0 !important; border-left: 1px solid hsl(var(--border)) !important; background: none; }
.mpd-c:first-child { border-left: 0 !important; }
.mpd-c .l { order: -1; font-size: 13px; font-weight: 600; color: #5c6371; }
.mpd-c .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.mpd-c small { font-size: 12.5px; color: #5c6371; }
.mpd-main { background: #eef8f4 !important; }
.mpd-main .v { font-size: 32px; color: #1f7a60; }
.mpd-main.bad { background: #fbeeec !important; }
.mpd-main.bad .v { color: #b43832; }
.mpd .split { margin: 10px 0 0; height: 6px; border-radius: 3px; }
.mpd-elec { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #4b5260; }
.mpd-elec input { width: 92px; height: 38px; padding: 0 10px; border: 1px solid #dcdad5; border-radius: 6px; background: #fff; font: 600 15px var(--font); color: #10141d; }
.mpd-periods td b { font-size: 15.5px; }
.mp-table td.sgn.pos, .mp-table b.sgn.pos { color: #1f7a60; }
.mp-table td.sgn.neg, .mp-table b.sgn.neg { color: #b43832; }
.mpd-chart { padding: 14px; }
.mpd-specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.mpd-specs .specs { display: grid; grid-template-columns: 1fr; gap: 0; }
.mpd-specs .specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #efedea; font-size: 14.5px; }
.mpd-specs .specs > div:last-child { border-bottom: 0; }
.mpd-specs .specs > div > span:last-child { font-weight: 600; text-align: right; }
.mpd-side { display: grid; gap: 14px; }
.mpd-side h3 { margin: 0 0 6px; font-size: 16px; }
.mpd-side .about { margin: 0; font-size: 14.5px; line-height: 1.6; color: #3b3f48; }
.mpd-algos th, .mpd-algos td { padding: 8px 6px; font-size: 13.5px; }
/* the offers table in the comparison style */
.mp-offers td.lead b { font-size: 18px; }
.mp-offers .seller img { width: 36px; height: 36px; border-radius: 6px; border: 1px solid #efedea; background: #fff; object-fit: contain; }
:root[data-theme="dark"] .mpd-buy { background: #241f17; border-color: #3a3224; }
:root[data-theme="dark"] .mpd-main { background: #0f2c25 !important; }
:root[data-theme="dark"] .mpd-main .v { color: #4fd1a5; }
:root[data-theme="dark"] .mpd-main.bad { background: #3b1414 !important; }
:root[data-theme="dark"] .mpd-c .l, :root[data-theme="dark"] .mpd-c small, :root[data-theme="dark"] .mpd-mini dt, :root[data-theme="dark"] .mpd-roi, :root[data-theme="dark"] .mpd-side .about, :root[data-theme="dark"] .mpd-elec { color: #b7bfcb; }
:root[data-theme="dark"] .mpd-elec input { background: #1b2230; border-color: #323a49; color: #f3f1ed; }
:root[data-theme="dark"] .mp-table td.sgn.pos, :root[data-theme="dark"] .mp-table b.sgn.pos { color: #4fd1a5; }
@media (max-width: 1200px) { .mpd-specs { grid-template-columns: 1fr; } }
@media (max-width: 950px) {
  .mpd-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mpd-pic img { height: 150px; }
  .mpd-mini, .mpd-jump { grid-column: 1 / -1; }
  .mpd-jump { display: none; }
}
@media (max-width: 700px) {
  .mpd-strip { grid-template-columns: 1fr 1fr; }
  .mpd-main { grid-column: 1 / -1; }
  .mpd-c:nth-child(2) { border-left: 0 !important; }
  .mpd-c { border-top: 1px solid hsl(var(--border)) !important; }
  .mpd-main { border-top: 0 !important; }
  .mpd-c .v { font-size: 20px; }
  .mpd-main .v { font-size: 28px; }
  .mpd-rail { grid-template-columns: 1fr; }
  .mpd-periods tbody tr:not([hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- coin list and coin calculator (coins.js) ---------- */
.mp-up { color: #1f7a60; } .mp-dn { color: #b43832; }
:root[data-theme="dark"] .mp-up { color: #4fd1a5; } :root[data-theme="dark"] .mp-dn { color: #ff8a7d; }
.pg-ico { width: 36px; height: 36px; margin-right: 12px; border-radius: 50%; vertical-align: -5px; }
.calc-rail { padding: 18px; border-radius: 10px; background: #fbf6ee; border: 1px solid #f1e4cc; }
.calc-rail .rail-fields { gap: 12px; }
.rail-unit { grid-template-columns: 1fr 86px; }
.calc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.calc-out > * { border-radius: 8px !important; }
.calc-net .specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.calc-net .specs > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #efedea; font-size: 14.5px; }
.calc-net .specs > div > span:last-child { font-weight: 650; text-align: right; }
.calc-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-charts h3, .mp-card > h3 { margin: 0 0 8px; font-size: 16px; }
:root[data-theme="dark"] .calc-rail { background: #241f17; border-color: #3a3224; }
@media (max-width: 1200px) { .calc-out { grid-template-columns: 1fr 1fr; } .calc-charts { grid-template-columns: 1fr; } }
@media (max-width: 950px) { .calc-rail .rail-fields { grid-template-columns: 1fr 1fr; } .calc-rail .rail-fields > label:first-child { grid-column: 1 / -1; } }
.calc-out > :nth-child(5) { grid-column: 1 / -1; }

/* ---------- calculators (tools.js) ---------- */
.tools .pg-main { padding-top: 34px; }
.tl-rail .rail-item .tl-svg { display: inline-grid; flex: none; width: 20px; height: 20px; color: #b9770e; }
.tl-rail .rail-item .tl-svg svg { width: 20px; height: 20px; }
.tl-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tl-card { position: relative; gap: 8px; padding: 18px; }
.tl-card .tl-svg { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fbefdd; color: #b9770e; }
.tl-card .tl-svg svg { width: 22px; height: 22px; }
.tl-card b { font-size: 16.5px; }
.tl-card-go { position: absolute; top: 18px; right: 18px; color: #b9770e; font-weight: 700; }
.tools .tl-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.tools .tl-in { border-left: 0 !important; border-radius: 10px !important; background: #fbf6ee !important; border: 1px solid #f1e4cc !important; top: 16px; }
.tools .tl-net { border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 8px 12px; background: hsl(var(--card)); }
.tl-faq { max-width: none; }
:root[data-theme="dark"] .tools .tl-in { background: #241f17 !important; border-color: #3a3224 !important; }
:root[data-theme="dark"] .tl-card .tl-svg { background: #30291d; color: var(--amber); }
@media (max-width: 1200px) { .tools .tl-grid { grid-template-columns: 1fr; } .tools .tl-in { position: static; } }

/* ---------- databases (database.js): the filter bar becomes the rail ---------- */
.db .pg-rail .db-search input { height: 46px; border-radius: 8px; border-color: #dcdad5; background: #fff; color: #10141d; font-size: 15px; }
.db-bar.db-rail { position: static; margin: 0; padding: 0; border: 0; background: none; display: grid; gap: 14px; }
.db-rail .db-chips { display: grid; gap: 2px; }
.db-rail .db-chips button { justify-content: space-between; width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; font-size: 14.5px; text-align: left; }
.db-rail .db-chips button:hover { background: #fbefdd; }
.db-rail .db-chips button[aria-pressed="true"] { background: #fbefdd; color: inherit; border-color: #f0c47e; font-weight: 650; }
.db-rail .db-chips button[aria-pressed="true"] b { color: #5c6371; opacity: 1; }
.db-rail .db-selects { display: grid; gap: 8px; }
.db-rail .db-selects select { width: 100%; height: 40px; border-radius: 6px; border-color: #dcdad5; background: #fff; color: #10141d; font-size: 14.5px; }
.db-rail .db-checks { display: grid; gap: 8px; margin: 0; }
.db-rail .db-checks .btn { justify-self: start; }
.db .pg-main .db-count { margin-top: 0; }
.db .tablewrap { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); }
.db .db-tile { border-radius: 8px; }
:root[data-theme="dark"] .db .pg-rail .db-search input, :root[data-theme="dark"] .db-rail .db-selects select { background: #1b2230; border-color: #323a49; color: #f3f1ed; }
:root[data-theme="dark"] .db-rail .db-chips button:hover, :root[data-theme="dark"] .db-rail .db-chips button[aria-pressed="true"] { background: #30291d; }
@media (max-width: 950px) {
  .db-rail .db-chips { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .db-rail .db-chips button { width: auto; flex: none; border-color: hsl(var(--border)); background: hsl(var(--card)); }
  .db-rail .db-selects { grid-template-columns: 1fr 1fr; }
}

/* ---------- tools & services (services.js) ---------- */
.svc-card { display: grid; justify-items: start; gap: 8px; padding: 18px; border-radius: 10px; background: #fbf6ee; border: 1px solid #f1e4cc; }
.svc-card > b { font-size: 18px; }
.svc-card .btn { width: 100%; justify-content: center; }
.svc-card .pt-logo, .mp-name .pt-logo, .mp-card-row .pt-logo { border-radius: 8px; }
.mp-name .pt-ini, .mp-card-row .pt-ini { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; background: #fbefdd; color: #7a5414; font-weight: 800; }
.mp-card-row .pt-ini { width: 32px; height: 32px; font-size: 12px; }
:root[data-theme="dark"] .svc-card { background: #241f17; border-color: #3a3224; }

/* ---------- FAQ and legal pages (content.js) ---------- */
.rail-item.rail-wrap > span { white-space: normal; overflow: visible; line-height: 1.35; }
.faqx-nav .rail-item.on { background: #fbefdd; border-color: #f0c47e; font-weight: 650; }
.faqx-items { max-width: none; padding-top: 0; }
.faqx-q summary { display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.faqx-q summary::-webkit-details-marker { display: none; }
.faqx-q summary::after { content: "+"; flex: none; font-weight: 700; color: #b9770e; }
.faqx-q[open] summary::after { content: "−"; }
.faqx-q.hit summary span { background: #fff1d6; }
.faqx-q.target { border-color: #f0c47e; box-shadow: 0 0 0 3px #fbefdd; }
.faqx-a { position: relative; padding: 0 16px 16px; color: #3b3f48; line-height: 1.6; }
.faqx-a p:first-child { margin-top: 0; }
.faqx-link { position: absolute; right: 16px; bottom: 12px; color: #5c6371; font-size: 13px; }
.faqx-help { margin-top: 6px; }
.faqx-help p { margin: 0; }
.legal-text { max-width: 820px; padding: 28px 32px; font-size: 15.5px; line-height: 1.65; }
.legal-text h2 { scroll-margin-top: 16px; margin: 28px 0 8px; font-size: 19px; }
.legal-text h2:first-of-type { margin-top: 10px; }
.legal-text h2::before { display: none !important; }
:root[data-theme="dark"] .faqx-a { color: #d3d8e2; }
:root[data-theme="dark"] .faqx-nav .rail-item.on { background: #30291d; }
@media (max-width: 700px) { .legal-text { padding: 20px 18px; } }

/* question cards (also on the homepage, home-one.css): shared here so the FAQ and the calculators use them too */
.hp-faq { display: grid; gap: 8px; }
.hp-faq details { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); }
.hp-faq summary { padding: 14px 16px; font-weight: 650; cursor: pointer; }
.hp-faq details > p { margin: 0; padding: 0 16px 16px; color: #4b5260; line-height: 1.6; }
:root[data-theme="dark"] .hp-faq details > p { color: #b7bfcb; }

/* ---------- dictionary (dictionary.js) ---------- */
.dict .pg-rail .dict-search { height: 46px; }
.dict-az { display: flex; flex-wrap: wrap; gap: 4px; }
.dict-az a, .dict-az span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; font-size: 13px; font-weight: 650; }
.dict-az a { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); color: inherit; }
.dict-az a:hover, .dict-az a.on { background: #fbefdd; border-color: #f0c47e; }
.dict-az span { color: #b9b5ab; }
.dict .dict-grid { gap: 10px; }
.dict .dt { border-radius: 8px; }
.dict-tod b { font-size: 16px; }
.dict-tod p { margin: 0; }
@media (max-width: 950px) { .dict-az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .dict-az a, .dict-az span { flex: none; } }
.dict { padding: 0 !important; }
.dict .pg-rail .dict-topics { display: grid; gap: 2px; }
.dict .pg-rail .dict-topics button { justify-content: flex-start; border-radius: 6px; }
@media (max-width: 950px) { .dict .pg-rail .dict-topics { display: flex; } }
.dict .pg-rail .dict-topics button[aria-pressed="true"] { background: #fbefdd !important; color: inherit !important; border-color: #f0c47e !important; font-weight: 650; }
.dict .pg-rail .dict-topics button[aria-pressed="true"] em { color: #5c6371; }
:root[data-theme="dark"] .dict .pg-rail .dict-topics button[aria-pressed="true"] { background: #30291d !important; }

/* ---------- events (events.js) ---------- */
.evp .evs { display: grid; gap: 18px; position: static; padding: 0; border: 0; background: none; }
.evp .evs .evs-check { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px; border-radius: 6px; font-size: 14.5px; cursor: pointer; }
.evp .evs .evs-check:hover { background: #fbefdd; }
.evp .evs .evs-check input { width: 18px; height: 18px; accent-color: #d98a12; }
.evp .evs .evs-check em { margin-left: auto; font-style: normal; font-size: 12.5px; color: #5c6371; }
.evp .evs .evp-sub { justify-self: start; }
.evp .evs-box ol { margin: 6px 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.evp .evs-box h2 { margin: 0; font-size: 15px; }
.evp .evg-month { margin: 26px 0 10px; font-size: 20px; }
.evp .evg-month:first-child { margin-top: 4px; }
.evp .evc { border-radius: 8px; }
.evp .evg-wrap { min-width: 0; }
:root[data-theme="dark"] .evp .evs .evs-check:hover { background: #30291d; }
@media (max-width: 950px) { .evp .evs section.rail-g:has(.evs-check) { display: flex; flex-wrap: wrap; gap: 4px; } .evp .evs section.rail-g:has(.evs-check) .rail-h { flex-basis: 100%; } .evp .evs .evs-check { border: 1px solid hsl(var(--border)); } }

/* ---------- blog (blog.js): rail + featured article + article rows; articles in one column ---------- */
.blog .pg-rail .blog-search { width: auto; max-width: none; }
.blog .pg-rail .blog-search svg { width: 18px; height: 18px; }
.blog .pg-rail .blog-chips { display: grid; gap: 2px; margin: 0; }
.blog .pg-rail .blog-chips button { border-radius: 6px; padding: 7px 10px; justify-content: flex-start; background: none; }
.blog .pg-rail .blog-chips button[aria-pressed="true"] { background: #fbefdd !important; color: inherit !important; border-color: #f0c47e !important; font-weight: 650; }
.blog-nums { gap: 6px; }
.blog-nums a { display: block; font-size: 13.5px; color: #4b5260; }
.blog-nums a b { font-size: 17px; color: hsl(var(--foreground)); margin-right: 4px; }
.blog .pg-rail .rail-item svg { width: 18px; height: 18px; flex: none; color: #b9770e; }
.blog-feat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); color: inherit; }
.blog-feat:hover { border-color: #e2b46d; color: inherit; }
.blog-feat-img .mp-cover { border-radius: 0; height: 100%; }
.blog-feat-in { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; }
.blog-feat-in h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.blog-feat-in h2::before { display: none !important; }
.blog-feat-in p { margin: 0; color: #4b5260; line-height: 1.55; }
.blog-feat-in .btn { margin-top: auto; }
.blog-home .pg-main .blog-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 10px; }
.blog-home .pg-main .blog-grid.is-all .blog-card.is-lead { display: none !important; }
.blog-home .pg-main .blog-card { display: grid !important; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; padding: 10px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); grid-column: auto !important; }
.blog-home .pg-main .blog-card:hover { border-color: #e2b46d; }
.blog-home .pg-main .blog-card-img { border-radius: 6px; overflow: hidden; }
.blog-home .pg-main .blog-card-img .mp-cover > b { font-size: 14px; }
.blog-home .pg-main .blog-card-in { padding: 0 8px 0 0; }
.blog-home .pg-main .blog-card-in h3 { margin: 6px 0 4px; font-size: 18px; line-height: 1.25; }
.blog-home .pg-main .blog-card-in p { margin: 0 0 6px; color: #4b5260; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art .pg-main { max-width: 900px; }
.art .art-main { max-width: 760px; }
.art .art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid hsl(var(--border)); }
.art .art-body { font-size: 17px; line-height: 1.7; }
.art .pg-rail .art-toc { position: static; display: block; }
.art .pg-rail .art-toc ol { list-style: none; margin: 0; padding: 0; }
.art .pg-rail .art-toc a[aria-current="true"] { background: #fbefdd; border-color: #f0c47e; font-weight: 650; }
@media (min-width: 951px) { .art .pg-rail { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; } }
.art .pg-rail .art-share { display: flex; flex-wrap: wrap; gap: 6px; }
:root[data-theme="dark"] .blog-feat-in p, :root[data-theme="dark"] .blog-home .pg-main .blog-card-in p, :root[data-theme="dark"] .blog-nums a { color: #b7bfcb; }
:root[data-theme="dark"] .blog .pg-rail .blog-chips button[aria-pressed="true"], :root[data-theme="dark"] .art .pg-rail .art-toc a[aria-current="true"] { background: #30291d !important; }
@media (max-width: 950px) {
  .blog-feat { grid-template-columns: 1fr; }
  .blog .pg-rail .blog-chips { display: flex; }
  .art .pg-rail .art-toc { display: none; }
}
@media (max-width: 700px) {
  .blog-home .pg-main .blog-card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .blog-home .pg-main .blog-card-in h3 { font-size: 15.5px; }
  .blog-home .pg-main .blog-card-in p { display: none; }
  .blog-feat-in { padding: 18px; } .blog-feat-in h2 { font-size: 21px; }
}

/* ---------- GPU / CPU rig calculator (rig.js) ---------- */
.rig-in .rig-rows { display: grid; gap: 6px; }
.rig-in .rig-add .input { width: 100%; height: 42px; border-radius: 6px; background: #fff; }
.rig-cur { display: flex; align-items: center; font-size: 12.5px; color: #5c6371; white-space: nowrap; }
.rig .calc-out:empty { display: none; }

/* ---------- 404 (content.js) ---------- */
.nf-search { display: flex; gap: 10px; align-items: center; max-width: 640px; min-height: 58px; padding: 6px 6px 6px 16px; border: 1px solid #dcdad5; border-radius: 8px; background: #fff; }
.nf-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; background: transparent; color: #10141d; }
.nf .nf-list { display: grid; gap: 6px; max-width: 640px; }
.nf .nf-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); color: inherit; }
.nf .nf-item b { color: #1f7a60; white-space: nowrap; }
.evp .evs { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.nf-search { box-sizing: border-box; width: auto; }
