/* HardwareX Design — base styles (the layout itself carries inline styles from the original design). */
html,body{margin:0;background:#0A0C0F}
body.hwx{color:#EEF1F4}
#hwx a{color:#EEF1F4;text-decoration:none}
#hwx a:hover{color:#FF5A5F}
#hwx *,#hwx *::before,#hwx *::after{box-sizing:border-box}
#hwx img{max-width:100%}
#hwx button{font:inherit}
#hwx h1,#hwx h2,#hwx h3{color:inherit}
#hwx :focus-visible{outline:2px solid #FF5A5F;outline-offset:2px}
.ph{background-color:#141920;background-image:linear-gradient(#1D242C 1px,transparent 1px),linear-gradient(90deg,#1D242C 1px,transparent 1px);background-size:32px 32px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link.screen-reader-text:focus{clip:auto;width:auto;height:auto;margin:0;padding:12px 18px;z-index:100000;top:8px;right:8px;background:#C9252B;color:#fff!important;border-radius:8px;white-space:normal}

/* ---------- article body: canvas articles carry their own markup; these rules style new posts written in the block editor ---------- */
.hwx-content{display:flex;flex-direction:column;gap:24px}
.hwx-content>p,.hwx-content>ul,.hwx-content>ol,.hwx-content>h2,.hwx-content>h3,.hwx-content>h4,
.hwx-content>.wp-block-image,.hwx-content>figure,.hwx-content>.wp-block-table,.hwx-content>.wp-block-embed,
.hwx-content>.wp-block-group,.hwx-content>.wp-block-quote,.hwx-content>blockquote{max-width:720px;margin:0}
.hwx-content>p,.hwx-content>ul,.hwx-content>ol{font-size:18px;color:#D3DAE1}
.hwx-content>ul,.hwx-content>ol{padding-inline-start:22px;display:flex;flex-direction:column;gap:8px}
.hwx-content li::marker{color:#FF5A5F}
.hwx-content strong{color:#EEF1F4}
.hwx-content a:not([style]){color:#FF5A5F!important;text-decoration:underline;text-underline-offset:3px}
.hwx-content>h2{margin-top:12px;font-family:Rubik,sans-serif;font-weight:700;font-size:28px;line-height:1.25;color:#EEF1F4}
.hwx-page>h2{font-size:26px}
.hwx-content>h3{font-family:Rubik,sans-serif;font-weight:700;font-size:22px;color:#EEF1F4}
.hwx-content>.wp-block-image,.hwx-content>figure{margin:8px 0}
.hwx-content .wp-block-image img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;border:1px solid #1E252D}
.hwx-content figcaption{margin-top:8px;color:#9AA5B1;font-size:14px;text-align:right}
.hwx-content .wp-block-embed iframe{width:100%;height:auto;aspect-ratio:16/9;border-radius:12px;border:1px solid #1E252D}
.hwx-content .wp-block-embed__wrapper::before{display:none}
.hwx-content>.wp-block-table{overflow-x:auto;border:1px solid #1E252D;border-radius:10px}
.hwx-content .wp-block-table table{width:100%;min-width:560px;border-collapse:collapse;font-size:15px}
.hwx-content .wp-block-table th{background:#161B21;padding:10px 16px;font-size:13px;color:#9AA5B1;font-weight:700;text-align:right;border:0;border-bottom:1px solid #1E252D}
.hwx-content .wp-block-table td{background:#11151A;padding:12px 16px;color:#B4BEC9;border:0;border-bottom:1px solid #1E252D;border-inline-start:1px solid #1E252D}
.hwx-content .wp-block-table td:first-child{color:#EEF1F4;font-weight:500;border-inline-start:0}
.hwx-content .wp-block-table tr:last-child td{border-bottom:0}
.hwx-content .wp-block-table figcaption{padding:8px 16px}
.hwx-content>.wp-block-quote,.hwx-content>blockquote{border-inline-start:4px solid #C9252B;padding:4px 18px;color:#EEF1F4;font-size:20px;font-family:Rubik,sans-serif}

/* boxes used by posts exported from the canvas into blocks */
.hwx-box,.hwx-scores,.hwx-verdict,.hwx-ourscore{background:#11151A;border:1px solid #1E252D;border-radius:12px;padding:22px 26px}
.hwx-verdict,.hwx-ourscore{border-color:#C9252B}
.hwx-box h3,.hwx-scores h3,.hwx-verdict h2,.hwx-verdict h3,.hwx-ourscore h3{margin:0 0 10px;font-family:Rubik,sans-serif}
.hwx-score{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.hwx-score-num{width:92px;height:92px;border-radius:14px;background:#C9252B;color:#fff;display:inline-flex;align-items:center;justify-content:center;font:700 40px 'JetBrains Mono',monospace;direction:ltr}
.hwx-score-of{color:#9AA5B1;font-weight:700;font-size:13px}

/* pagination */
.hwx-pages .page-numbers{min-width:44px;min-height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #2A323C;border-radius:8px;color:#EEF1F4;font-weight:500}
.hwx-pages .page-numbers.current{background:#C9252B;border-color:#C9252B;color:#fff}
.hwx-pages .page-numbers.dots{border:0}

/* WordPress admin bar keeps the sticky header below it */
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
