/* "Hacker white" homepage: hero + checker card, results table, content sections. Requires hacker-white.css tokens. */
.hw-home { color: var(--hw-ink); }
.hw-home a { color: var(--hw-accent-text); }
.hw-home a:hover { color: var(--hw-accent-dark); }
.hw-home h1, .hw-home h2, .hw-home h3, .hw-home p, .hw-home ul, .hw-home pre, .hw-home details { margin: 0; padding: 0; }
.hw-home pre { font-size: 13px; }
.hw-wrap { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.hw-band { border-top: 1px solid var(--hw-line); background: var(--hw-surface); }
.hw-band--both { border-bottom: 1px solid var(--hw-line); }
.hw-grid { display: grid; gap: 40px; }
.hw-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.hw-grid--2-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.hw-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.hw-stack { display: flex; flex-direction: column; gap: 16px; }
.hw-eyebrow { font-family: var(--hw-mono); font-size: 12px; color: var(--hw-accent-text); }
.hw-eyebrow .hw-muted { color: var(--hw-muted); }
.hw-h2 { font-family: var(--hw-mono); font-size: 32px; line-height: 1.15; letter-spacing: -1px; font-weight: 700; }
.hw-h2--sm { font-size: 28px; }
.hw-lead { font-size: 16px; line-height: 1.7; color: var(--hw-ink-2); }
.hw-text { font-size: 15px; line-height: 1.7; color: var(--hw-muted-2); }
.hw-mono { font-family: var(--hw-mono); }
code { font-family: var(--hw-mono); }

/* Hero */
.hw-hero { padding-top: 64px; padding-bottom: 40px; align-items: start; gap: 48px; }
.hw-hero__copy { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.hw-prompt { font-family: var(--hw-mono); font-size: 13px; color: var(--hw-accent-text); }
.hw-prompt span { color: var(--hw-muted); }
.hw-h1 { font-family: var(--hw-mono); font-size: 56px; line-height: 1.02; letter-spacing: -2px; font-weight: 800; }
.hw-cursor { color: var(--hw-accent); animation: hw-blink 1.1s steps(1) infinite; }
@keyframes hw-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hw-sub { font-size: 18px; line-height: 1.6; color: var(--hw-ink-2); max-width: 520px; }
.hw-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-family: var(--hw-mono); font-size: 12px; }
.hw-chips li { border: 1px solid var(--hw-line-3); padding: 6px 10px; border-radius: 999px; background: var(--hw-surface); }
.hw-facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hw-line);
    border: 1px solid var(--hw-line); border-radius: 8px; overflow: hidden; margin-top: 8px;
}
.hw-facts div { background: var(--hw-surface); padding: 14px 16px; }
.hw-facts strong { display: block; font-family: var(--hw-mono); font-size: 22px; font-weight: 700; line-height: 1.3; }
.hw-facts span { font-size: 12px; color: var(--hw-muted); }

/* Terminal card */
.hw-card { background: var(--hw-surface); border: 1px solid var(--hw-line-3); border-radius: 10px; box-shadow: 0 1px 0 var(--hw-line), 0 12px 32px rgba(11, 15, 12, 0.06); overflow: hidden; min-width: 0; }
.hw-card__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--hw-line-2); background: var(--hw-surface-2); font-family: var(--hw-mono); font-size: 12px; }
.hw-dots { display: flex; gap: 6px; }
.hw-dots span { width: 10px; height: 10px; border-radius: 50%; background: #D4D4CC; }
.hw-card__title { color: var(--hw-muted); }
.hw-card__status { color: var(--hw-accent-text); }
.hw-card__body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.hw-label { font-family: var(--hw-mono); font-size: 12px; color: #33403A; }
.hw-textarea {
    width: 100%; font-family: var(--hw-mono); font-size: 13px; line-height: 1.7; padding: 12px 14px; border: 1px solid var(--hw-line-3);
    border-radius: 6px; background: var(--hw-surface-2); color: var(--hw-ink); resize: vertical; min-height: 140px;
}
.hw-textarea::placeholder { color: #6B756F; }
.hw-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-family: var(--hw-mono); font-size: 12px; color: var(--hw-muted); }
.hw-options { border: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--hw-mono); font-size: 12px; color: #33403A; }
.hw-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hw-options label { display: flex; gap: 6px; align-items: center; min-height: 28px; cursor: pointer; }
.hw-options input { width: 16px; height: 16px; accent-color: var(--hw-accent); }
.hw-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hw-btn-run, .hw-btn-ghost { min-height: 46px; border-radius: 6px; font-family: var(--hw-mono); cursor: pointer; }
.hw-btn-run { flex: 1 1 200px; background: var(--hw-accent); color: #fff; border: 0; font-weight: 700; font-size: 14px; }
.hw-btn-run:hover { background: var(--hw-accent-text); }
.hw-btn-ghost { padding: 0 16px; background: var(--hw-surface); color: var(--hw-ink); border: 1px solid var(--hw-line-3); font-size: 13px; }
.hw-btn-ghost:hover { background: var(--hw-surface-2); }

/* Results (inside the card) */
.hw-results { border-top: 1px dashed var(--hw-line-3); }
.hw-results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #EEEEE8; font-family: var(--hw-mono); font-size: 12px; }
.filter-group, .hw-export { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-filter, .hw-linkbtn {
    min-height: 32px; padding: 0 10px; background: var(--hw-surface); color: var(--hw-ink); border: 1px solid var(--hw-line-3);
    border-radius: 6px; font-family: var(--hw-mono); font-size: 12px; cursor: pointer;
}
.btn-filter:hover, .hw-linkbtn:hover { background: var(--hw-surface-2); }
.btn-filter.active { background: var(--hw-ink); color: var(--hw-ground); border-color: var(--hw-ink); }
.hw-linkbtn:disabled { opacity: 0.6; cursor: wait; }
.progress-bar-inline { padding: 10px 14px; border-bottom: 1px solid #EEEEE8; font-family: var(--hw-mono); font-size: 12px; color: var(--hw-muted); }
.progress-info-inline { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.progress-track-inline { height: 6px; background: var(--hw-line-2); border-radius: 3px; overflow: hidden; }
.progress-fill-inline { height: 100%; background: var(--hw-accent); transition: width 0.3s ease; }
.table-container { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-family: var(--hw-mono); font-size: 12px; }
.results-table th { text-align: left; padding: 8px; font-weight: 500; color: var(--hw-muted); background: var(--hw-surface-2); white-space: nowrap; }
.results-table td { padding: 8px; border-top: 1px solid #EEEEE8; white-space: nowrap; }
.results-table th:first-child, .results-table td:first-child { padding-left: 14px; }
.clickable-copy { cursor: copy; }
.clickable-copy:hover { background: var(--hw-surface-2); }
.clickable-copy.copied { background: #E3F4EA; }
.status-indicator { font-weight: 700; }
.status-indicator.success { color: var(--hw-accent-text); }
.status-indicator.failed { color: var(--hw-danger); }
.protocol-badge { font-weight: 700; }
.hw-results .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid currentColor; background: transparent !important; }
.hw-results .badge.bg-success { color: var(--hw-accent-text); }
.hw-results .badge.bg-warning { color: var(--hw-warn); }
.hw-results .badge.bg-danger { color: var(--hw-danger); }
.hw-results .badge.bg-secondary { color: var(--hw-muted); }
.empty-state { padding: 20px 14px; text-align: center; font-family: var(--hw-mono); font-size: 12px; color: var(--hw-muted); }
.hw-results__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; font-family: var(--hw-mono); font-size: 12px; color: var(--hw-muted); border-top: 1px solid #EEEEE8; }

/* Output / JSON */
.hw-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--hw-ink-2); }
.hw-list strong { font-family: var(--hw-mono); }
.hw-pre { background: var(--hw-ink); color: #D6E2D9; border-radius: 10px; padding: 24px; font-family: var(--hw-mono); font-size: 13px; line-height: 1.7; overflow-x: auto; }
.hw-pre .c { color: #7FA58C; } .hw-pre .k { color: #8FD3A6; } .hw-pre .s { color: #F2C66D; } .hw-pre .n { color: #9CC8F5; }

/* Steps, tables, levels, tools */
.hw-step { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--hw-line-2); border-radius: 8px; padding: 20px; background: var(--hw-surface); }
.hw-step__n { font-family: var(--hw-mono); font-size: 28px; font-weight: 800; color: var(--hw-accent-text); }
.hw-step h3 { font-size: 17px; }
.hw-step p { font-size: 14px; line-height: 1.6; color: var(--hw-muted-2); }
.hw-tablewrap { overflow-x: auto; border: 1px solid var(--hw-line); border-radius: 8px; background: var(--hw-surface); }
.hw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hw-table th { text-align: left; padding: 10px 12px; font-family: var(--hw-mono); font-size: 12px; font-weight: 500; color: var(--hw-muted); background: var(--hw-surface-2); }
.hw-table td { padding: 10px 12px; border-top: 1px solid #EEEEE8; }
.hw-table td:first-child { font-family: var(--hw-mono); font-weight: 700; }
.hw-level { border: 1px solid var(--hw-line); border-radius: 8px; padding: 14px 16px; background: var(--hw-surface); display: flex; flex-direction: column; gap: 6px; }
.hw-level--elite { border-color: var(--hw-accent); }
.hw-level__row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hw-level__row strong { font-family: var(--hw-mono); }
.hw-level__row code { font-size: 12px; color: #33403A; }
.hw-level--elite strong, .hw-level--elite code { color: var(--hw-accent-text); }
.hw-level--leak code { color: var(--hw-warn); }
.hw-level span { font-size: 14px; color: var(--hw-muted-2); }
.hw-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.hw-tool { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--hw-line); border-radius: 8px; text-decoration: none; color: var(--hw-ink) !important; background: var(--hw-surface-2); }
.hw-tool:hover { border-color: var(--hw-accent); background: var(--hw-surface); }
.hw-tool__cmd { font-family: var(--hw-mono); font-size: 13px; color: var(--hw-accent-text); }
.hw-tool__name { font-weight: 600; font-size: 15px; }
.hw-tool__desc { font-size: 13px; line-height: 1.5; color: #4A554E; }
.hw-sectionhead { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; }
.hw-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hw-btn-dark, .hw-btn-outline { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 6px; font-family: var(--hw-mono); font-size: 13px; text-decoration: none; }
.hw-home .hw-btn-dark { background: var(--hw-ink); color: var(--hw-ground); font-weight: 600; }
.hw-btn-outline { border: 1px solid var(--hw-line-3); background: var(--hw-surface); color: var(--hw-ink) !important; }
.hw-method { list-style: none; display: flex; flex-direction: column; gap: 10px; font-family: var(--hw-mono); font-size: 13px; line-height: 1.6; }
.hw-method .ok { color: var(--hw-accent-text); } .hw-method .no { color: var(--hw-warn); }
.hw-small { font-size: 14px; line-height: 1.6; color: var(--hw-muted-2); display: flex; flex-direction: column; gap: 10px; }
.hw-small .hw-meta { color: var(--hw-muted); }

/* FAQ */
.hw-faq { max-width: 860px; margin: 0 auto; padding: 56px 24px; display: flex; flex-direction: column; gap: 20px; }
.hw-faq details { border: 1px solid var(--hw-line); border-radius: 8px; padding: 16px 18px; background: var(--hw-surface-2); }
.hw-faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.hw-faq summary::-webkit-details-marker { display: none; }
.hw-faq summary::after { content: "+"; font-family: var(--hw-mono); color: var(--hw-accent-text); }
.hw-faq details[open] summary::after { content: "\2212"; }
.hw-faq details p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--hw-muted-2); }

/* Partners (admin-managed, only rendered when present) */
.hw-partners { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; list-style: none; }
.hw-partners img { max-height: 40px; width: auto; }

@media (max-width: 640px) {
    .hw-wrap { padding: 40px 16px; }
    .hw-hero { padding-top: 32px; gap: 32px; }
    .hw-h1 { font-size: 40px; letter-spacing: -1.5px; }
    .hw-h2 { font-size: 26px; }
    .hw-card__body { padding: 14px; }
    .hw-facts strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hw-cursor { animation: none; } }
