/* Meritly Top 10 pages (list, index, criteria). Loaded after /style-pages.css,
   which supplies the fonts, base type and footer. Nothing here touches any
   other page: every rule is scoped to .t10 or a .t10- class.
   Edit top10/templates/top10.css, not the copy in public/top-10/. */
.wrap.t10{max-width:900px}
.t10-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.t10-crumbs{font-size:calc(16px * var(--tzoom));color:#8a857c;margin:30px 0 0;line-height:1.5}
.t10-crumbs a{color:#8a5a2b;text-decoration:none}
.t10-crumbs a:hover{text-decoration:underline}
.t10-eyebrow{font-size:calc(15px * var(--tzoom));font-weight:500;letter-spacing:.28em;text-transform:uppercase;
  color:#b08d4f;margin:34px 0 0;line-height:1.5}
.t10 h1{font-size:calc(58px * var(--tzoom));line-height:1.05;margin:12px 0 22px;color:#0e0e10}
/* plain upright numerals, so a 1 never reads as a capital I */
.t10 h1,.t10 h2,.t10-rank,.t10-rule,.t10-lists a{font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1}
.t10-lede{font-size:calc(22px * var(--tzoom));line-height:1.65;color:#3f3d39;margin:0 0 16px}
.t10-how{margin:22px 0 0;font-size:calc(20px * var(--tzoom))}
.t10-how a{color:#8a5a2b;font-weight:500}

/* ---- the ranked list ---- */
.t10-list{list-style:none;margin:44px 0 0;padding:0}
.t10-item{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:28px;padding:40px 0;
  border-top:1px solid #e3dfd6;margin:0}
.t10-item:last-child{border-bottom:1px solid #e3dfd6}
.t10-rank{font-family:var(--serif);font-weight:500;font-size:calc(104px * var(--tzoom));line-height:.82;
  color:#b08d4f;text-align:center;letter-spacing:-.02em}
.t10 .t10-name{font-family:var(--serif);font-weight:600;font-size:calc(40px * var(--tzoom));line-height:1.1;
  margin:0;color:#1c1b19}
.t10-meta{font-size:calc(21px * var(--tzoom));line-height:1.5;color:#4a4844;margin:10px 0 0}
.t10-stars{color:#9a7636;font-weight:600;white-space:nowrap}
.t10-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.t10-links a{font-size:calc(17px * var(--tzoom));color:#1c1b19;text-decoration:none;border:1px solid #d8cfc0;
  border-radius:3px;padding:11px 18px;background:#fbfaf7;line-height:1.3}
.t10-links a:hover{border-color:#8a5a2b;color:#8a5a2b}
.t10-links a span{color:#8a857c;margin-left:6px;overflow-wrap:anywhere}

/* ---- the badge + one-line snippet ---- */
.t10-badge{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:center;
  margin:26px 0 0;padding:22px;background:#fbfaf7;border:1px solid #e3dfd6;border-radius:4px}
/* The badge is square. Width may shrink on a phone; height always follows it. */
.t10-badge img{display:block;width:160px;max-width:100%;height:auto;aspect-ratio:1 / 1}
.t10-for{font-size:calc(13px * var(--tzoom));font-weight:500;letter-spacing:.2em;text-transform:uppercase;
  color:#8a5a2b;line-height:1.4;overflow-wrap:anywhere}
.t10 .t10-paste{font-size:calc(20px * var(--tzoom));font-weight:600;color:#1c1b19;margin:6px 0 10px;line-height:1.35}
.t10-code{display:block;width:100%;margin:0 0 10px;padding:12px;font-family:ui-monospace,SFMono-Regular,Consolas,
  "Liberation Mono",monospace;font-size:14px;line-height:1.5;color:#26251f;background:#fff;border:1px solid #cfcbc3;
  border-radius:2px;resize:none;overflow-wrap:anywhere;word-break:normal;field-sizing:content;min-height:5.2em}
.t10-copy{padding:13px 26px}
.t10 .t10-claim{margin:14px 0 0;font-size:calc(17px * var(--tzoom));line-height:1.4}
.t10-claim a{color:#8a5a2b;font-weight:500}

/* ---- notes under the list, criteria page, index page ---- */
.t10-about{margin:48px 0 0;padding:28px;background:#fbfaf7;border:1px solid #e3dfd6;border-radius:4px}
.t10 .t10-about h2{margin:0 0 8px}
.t10-about p{margin:0 0 12px}
.t10-about p:last-child{margin-bottom:0}
.t10-rule{font-family:var(--serif);font-size:calc(30px * var(--tzoom));line-height:1.3;color:#1c1b19;
  border-left:3px solid #b08d4f;padding:2px 0 2px 20px;margin:26px 0}
.t10-formula{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:calc(17px * var(--tzoom));
  background:#fbfaf7;border:1px solid #e3dfd6;border-radius:4px;padding:16px 18px;color:#26251f;overflow-wrap:anywhere;line-height:1.6}
.t10-state{margin:44px 0 0}
.t10-lists{list-style:none;margin:14px 0 0;padding:0}
.t10-lists li{margin:0;border-top:1px solid #e3dfd6}
.t10-lists li:last-child{border-bottom:1px solid #e3dfd6}
.t10-lists a{display:block;padding:20px 4px;font-family:var(--serif);font-weight:600;font-size:calc(30px * var(--tzoom));
  line-height:1.2;color:#1c1b19;text-decoration:none}
.t10-lists a:hover{color:#8a5a2b}

/* keep short links in one piece ("tell us", footer links) instead of breaking mid-phrase */
.t10-nw{white-space:nowrap}
.t10-foot a{display:inline-block;white-space:nowrap;margin-top:4px;margin-bottom:4px}

@media(max-width:700px){
  .t10 h1{font-size:calc(40px * var(--tzoom))}
  .t10-lede{font-size:calc(19px * var(--tzoom))}
  .t10-item{grid-template-columns:58px minmax(0,1fr);column-gap:14px;padding:30px 0}
  .t10-rank{font-size:calc(60px * var(--tzoom));line-height:.9}
  .t10 .t10-name{font-size:calc(30px * var(--tzoom))}
  .t10-meta{font-size:calc(18px * var(--tzoom))}
  .t10-links a{font-size:calc(16px * var(--tzoom));padding:10px 14px}
  .t10-badge{grid-template-columns:1fr;gap:16px;padding:18px;margin-left:-72px}
  .t10-badge img{width:132px}
  .t10-rule{font-size:calc(25px * var(--tzoom))}
  .t10-lists a{font-size:calc(25px * var(--tzoom))}
  .t10-about{padding:22px}
}
@media(max-width:400px){
  .t10-foot{padding-left:16px;padding-right:16px}
  .t10-foot a{margin-left:8px;margin-right:8px}
}
