/* Static pages: home, code library, players, sensitivity converter. Loaded after style.css. */

a.btn-coffee { text-decoration: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; padding: 0; list-style: none; font: 700 13px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #5a5f66; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(18, 20, 23, .3); }
.crumbs a { color: #3a3f46; text-decoration: none; }
.crumbs a:hover { color: #b46a0e; }
.crumbs [aria-current] { color: #8a5a12; }

.pro-hero { padding: 44px 0 52px; }
.pro-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
.pro-hero h1 { font-size: clamp(36px, 4.4vw, 58px); }
.pro-hero .lede { max-width: 50ch; }
.pro-card-out { display: grid; gap: 16px; }
.pro-card-out .out-head { margin-bottom: 8px; }
.pro-card-out .btn.primary { width: 100%; margin-top: 10px; }
.pro-card-out .cmd { max-height: none; }
.pro-card-out .btn-row { grid-template-columns: 1fr; }
.old-code { display: block; padding: 9px 12px; border-radius: 3px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font: 13.5px/1.45 var(--mono); color: var(--muted); word-break: break-all; }
.old-code s { text-decoration-color: rgba(255, 122, 107, .55); }
.cta-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cta-row .btn { width: 100%; }
.cta-note { margin: 0; font-size: 12.5px; color: var(--dim); }

.pro-bench .bench-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pro-bench .panel-body { padding: 16px 18px 18px; }
.pro-bench .panel-body.tbl-wrap { padding-top: 6px; }
.pro-bench table td:last-child { color: #fff; }
.pro-bench .notes { margin-top: 14px; }
.pcmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pcmp figure { margin: 0; min-width: 0; }
.pcmp .view { position: relative; }
.pcmp img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 3px; image-rendering: pixelated; background: #c29a62; }
.pcmp .tag { position: absolute; top: 8px; left: 8px; padding: 5px 8px 4px; border-radius: 2px; background: rgba(18, 20, 23, .84); color: #fff; font: 700 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.pcmp .tag.new { background: var(--orange); color: #15171b; }
.pcmp figcaption { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; }
.pcmp figcaption b { display: block; font: 700 14px/1.2 var(--head); letter-spacing: .02em; color: #e6e8ea; }
.pcmp img.real { width: 44px; height: 44px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--line-2); }
.pcmp-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.more-title { margin: 40px 0 14px; font: 700 22px/1.15 var(--head); text-transform: uppercase; color: #fff; }
@media (max-width: 440px) { .pcmp figcaption { flex-direction: column; align-items: flex-start; } }
@media (max-width: 1100px) { .pro-bench .bench-grid { grid-template-columns: minmax(0, 1fr); } }

.mini-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.mini-steps li { counter-increment: step; padding: 16px 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: #cfd3d8; font-size: 14.5px; }
.mini-steps strong { display: block; margin-bottom: 4px; font: 700 17px/1.2 var(--head); text-transform: uppercase; color: #fff; }
.mini-steps strong::before { content: counter(step, decimal-leading-zero) " "; color: var(--orange); }
.sec-more { margin: 18px 0 0; color: var(--muted); }
.sec-more a { color: var(--orange-2); }

.source { display: grid; gap: 8px; max-width: 80ch; padding: 18px 20px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; color: #cfd3d8; }
.source p { margin: 0; }
.source a { color: var(--orange-2); word-break: break-word; }

.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pro-grid a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; height: 100%; padding: 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.pro-grid a:hover { border-color: rgba(222, 155, 53, .6); background: #22262d; }
.pro-grid img { width: 72px; height: 72px; border-radius: 3px; image-rendering: pixelated; image-rendering: crisp-edges; background: #c29a62; }
.pro-grid b { display: block; font: 700 21px/1.05 var(--head); color: #fff; }
.pro-grid span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.pro-grid code { display: block; margin-top: 6px; font-size: 10.5px; line-height: 1.35; color: #cfd3d8; word-break: break-all; }
.pro-grid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pro-grid.compact a { grid-template-columns: 40px minmax(0, 1fr); padding: 10px; }
.pro-grid.compact img { width: 40px; height: 40px; }
.pro-grid.compact b { font-size: 18px; }

.pro-index-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
.pro-index-hero .lede { max-width: 70ch; }
.pro-table td code { font-size: 12px; word-break: break-all; color: #fff; }
.pro-table td a { color: #fff; font-weight: 600; }
@media (max-width: 720px) { .pro-table .hide-sm { display: none; } }

/* ------------------------------------------------------------------ home */
.home-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-ctas .btn { height: 48px; padding: 0 22px; font-size: 17px; }
.btn.ghost.dark { border-color: rgba(18, 20, 23, .35); color: var(--ink); }
.btn.ghost.dark:hover { background: rgba(18, 20, 23, .06); border-color: rgba(18, 20, 23, .6); }
.feature-card .card-label { margin-bottom: 12px; }
.feature-more { margin: 12px 0 0; font-size: 14px; }
.feature-more a { color: var(--orange-2); }

/* Generator and codes lead (wide), then three smaller tools. */
.tools { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tools > li { grid-column: span 2; }
.tools > li:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tools > li, .tools > li:nth-child(-n+2) { grid-column: auto; } }
@media (max-width: 560px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.tool { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 14px; line-height: 1.5; text-decoration: none; transition: border-color .15s, background .15s; }
.tool:hover { border-color: rgba(222, 155, 53, .6); background: #22262d; }
.tool b { font: 700 20px/1.15 var(--head); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.tool code { font-size: 12.5px; color: #e6e8ea; }
.tool-ico { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 8px; display: grid; place-items: center; background: rgba(222, 155, 53, .14); color: var(--orange-2); }
.tool-ico svg { width: 22px; height: 22px; }
.tool-cta { margin-top: auto; padding-top: 6px; font: 700 14px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); }

.best { margin: 0 0 18px; color: #cfd3d8; font-size: 15px; }
.best a, .card p a { color: var(--orange-2); }
.callout.slim { margin-top: 0; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; }
.callout.slim .ico { width: 44px; height: 44px; }
.callout.slim .ico svg { width: 22px; height: 22px; }
.callout.slim h3 { font-size: 18px; }
.callout.slim p { margin: 0 0 12px; color: #cfd3d8; font-size: 14px; }

/* ------------------------------------------------------------------ crosshair code cards */
.xlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.xlist.single { grid-template-columns: minmax(0, 1fr); }
.xcard { display: flex; flex-direction: column; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.feature-card .xcard { border-color: var(--line-2); }
.xprev { display: block; width: 100%; aspect-ratio: 2 / 1; background: #c29a62; }
.xbody { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; flex: 1; }
.xbody h3 { margin: 0; font: 700 21px/1.1 var(--head); color: #fff; }
.xbody h3 a { color: #fff; text-decoration: none; }
.xbody h3 a:hover { color: var(--orange-2); }
.xmeta { margin: 0; font-size: 12.5px; color: var(--muted); }
.xcode { display: block; margin-top: 2px; padding: 7px 9px; border-radius: 3px; border: 1px dashed rgba(222, 155, 53, .45); background: var(--field); font: 600 12px/1.4 var(--mono); color: #fff; word-break: break-all; user-select: all; -webkit-user-select: all; }
.xbtns { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: auto; padding-top: 6px; }
.xbtns .btn { height: 34px; font-size: 13.5px; }
.xbtns .btn.done { border-color: #6ab35a; background: linear-gradient(180deg, #4f9a3f, #3c7c2f); }

/* ------------------------------------------------------------------ inner page hero (codes, sensitivity) */
.page-hero { padding: 40px 0 46px; }
.page-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 58px); }
.page-hero .lede { max-width: 66ch; }
.page-hero .lede a { color: #8a5a12; }
.page-hero:has(.sens-card) .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }

/* ------------------------------------------------------------------ code library */
.codes-sec { padding-top: 32px; }
.code-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.code-filter input[type="search"] { flex: 0 1 280px; min-width: 200px; height: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------------ sensitivity converter */
.sens-card { display: grid; gap: 12px; }
.sens-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px 90px; gap: 10px; align-items: end; }
.sens-row .field-label { padding-bottom: 11px; }
.sens-row select { width: 100%; }
.sens-row:last-of-type { grid-template-columns: 52px minmax(0, 1fr) 90px; }
.sens-field { display: grid; gap: 5px; font: 700 12px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sens-field input { width: 100%; font-family: var(--mono); }
.sens-swap { justify-self: start; margin-left: 62px; }
.sens-out { display: grid; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.sens-out .out-head b { color: #fff; }
.sens-big { display: block; font: 700 46px/1 var(--display); color: #fff; letter-spacing: .01em; }
.sens-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.sens-stats div { padding: 9px 10px; border-radius: 3px; background: var(--panel-2); }
.sens-stats dt { font: 700 11px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sens-stats dd { margin: 5px 0 0; font: 700 20px/1 var(--display); color: #e6e8ea; }
.sens-out .btn.primary { width: 100%; }
.formula { margin: 0 0 10px; }
.formula code { display: inline-block; padding: 6px 9px; border-radius: 3px; background: var(--field); color: #fff; font-size: 13px; }
@media (max-width: 560px) {
  .sens-row, .sens-row:last-of-type { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sens-row .field-label { grid-column: 1 / -1; padding-bottom: 0; }
  .sens-row select { grid-column: 1 / -1; }
  .sens-swap { margin-left: 0; }
}
@media (max-width: 980px) { .page-hero:has(.sens-card) .hero-grid, .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); } }
