/* "How we rank", the blog list and a blog post. Built on inner.css and docs.css (same colours, Figtree, thin lines). */
.rk { max-width: 880px; margin: 0 auto; padding: 72px 24px 120px; display: flex; flex-direction: column; gap: 18px; }
.rk h1 { margin: 0; font: 500 56px/1.06 Figtree, sans-serif; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.rk h2 { margin: 30px 0 0; font: 500 26px/1.25 Figtree, sans-serif; color: #fff; scroll-margin-top: 90px; }
.rk h3 { margin: 10px 0 0; font: 600 18px/1.35 Figtree, sans-serif; color: #fff; }
.rk p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 720px; }
.rk p a, .rk li a, .rk td a { color: var(--accent); }
.rk .lead { margin: 0; }
.rk .small { font-size: 13px; }
/* a part the script has not filled yet (the hidden attribute must win over the display of each part) */
.rk[hidden], .rk [hidden] { display: none !important; }

.stack { display: flex; flex-direction: column; gap: 18px; }

/* lists of plain points (the same dots as the docs) */
.rk ul.pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.rk ul.pts li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.rk ul.pts li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.8; }

/* the numbered questions and the names of the tools */
.rk ol.qs { margin: 0; padding: 0 0 0 28px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.rk ol.qs li { font-size: 16px; line-height: 1.55; color: var(--ink-2); padding-left: 4px; }
.rk ol.qs li::marker { font: 600 13px var(--mono); color: var(--ink-3); }
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink); }
.names li.us { border-color: rgba(143, 184, 255, 0.55); color: var(--accent); }

/* tables: our row stands out */
.dtable tr.us td { color: #fff; }
.dtable tr.us td:nth-child(2) { color: var(--accent); font-weight: 600; }
.dtable td.fig { font-family: var(--mono); font-size: 13.5px; }

/* one answer as it came */
.ans { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.rk .ans-h { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rk .ans-q { font-size: 16px; line-height: 1.5; color: #fff; }
.rk .ans-t { margin: 0; font: 14px/1.65 Figtree, sans-serif; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.rk .ans-n { font-size: 13.5px; color: var(--ink-3); }
.rk .ans-n b { color: var(--ink); font-weight: 600; }

/* a whole check: one row a question, its answers open on a click */
.qrow { border-top: 1px solid var(--line); }
.qrow:last-child { border-bottom: 1px solid var(--line); }
.qrow summary { cursor: pointer; padding: 14px 4px; font-size: 15.5px; line-height: 1.5; color: var(--ink); list-style: none; display: grid; grid-template-columns: 36px 1fr; gap: 8px; }
.qrow summary::-webkit-details-marker { display: none; }
.qrow summary span { font: 600 12px/1.9 var(--mono); color: var(--ink-3); }
.qrow[open] summary { color: #fff; }
.qrow .ans-list { display: flex; flex-direction: column; gap: 12px; padding: 0 0 18px 44px; }

/* the blog: topic filters, the newest post, the rest */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 600 13px/1 Figtree, sans-serif; cursor: pointer; }
.filters button[aria-pressed='true'] { background: #fff; border-color: #fff; color: #05070b; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; transition: border-color 0.2s ease; }
.post-card:hover { border-color: rgba(143, 184, 255, 0.5); }
.post-card .topic { font: 600 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.post-card b { font: 600 19px/1.3 Figtree, sans-serif; color: #fff; }
.post-card.big b { font-size: 30px; line-height: 1.18; letter-spacing: -0.01em; }
.post-card span { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.post-card small { font-size: 13px; color: var(--ink-3); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* a post */
.rk .post-meta { font-size: 14px; color: var(--ink-3); }
.post-body { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.rk .post-body p, .rk .post-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.post-body b { color: #fff; font-weight: 600; }
.post-body code { font: 14px/1.5 var(--mono); color: var(--ink); background: rgba(232, 238, 248, 0.07); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.post-body pre { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 10, 16, 0.8); overflow-x: auto; font: 13.5px/1.65 var(--mono); color: var(--ink); white-space: pre; }
.post-body blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--line-2); }
.post-body ul, .post-body ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.try { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px; border: 1px solid rgba(143, 184, 255, 0.3); border-radius: 16px; background: rgba(143, 184, 255, 0.06); }
.try b { font: 600 19px/1.3 Figtree, sans-serif; color: #fff; }
.rk .try p { margin-top: 6px; font-size: 15px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; }

/* a short table stays a table on a phone (docs.css turns docs tables into stacked rows there) */
@media (max-width: 760px) {
  .dtable.keep table { display: table; }
  .dtable.keep thead { display: table-header-group; }
  .dtable.keep tbody { display: table-row-group; }
  .dtable.keep tr { display: table-row; padding: 0; }
  .dtable.keep th, .dtable.keep td { display: table-cell; padding: 11px 12px; border-bottom: 1px solid var(--line); }
  .dtable.keep tr:last-child td { border-bottom: 0; }
  .rk { padding: 40px 18px 80px; }
  .rk h1 { font-size: 38px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.big b { font-size: 24px; }
  .qrow .ans-list { padding-left: 0; }
  .try .btn { width: 100%; }
}
