/*
Theme Name: humanXlab
Version: 0.4.0
Description: Klasyczny motyw portalu humanXlab. SPORT · HORMONY · TECHNOLOGIA.
Author: humanXlab
Text Domain: humanxlab
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
    --bg: #030f16;
    --panel: #0b202a;
    --cyan: #00eeee;
    --muted: #b3cbd9;
    --white: #f6f8fa;
    --header-height: clamp(56px, 5.525vw, 80px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
button, input, textarea, select { font: inherit; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1440px; margin: auto; background: radial-gradient(ellipse at 50% 65%, #07202b66, transparent 70%); }
.skip-link { position: absolute; z-index: 10; left: 12px; top: 8px; padding: 12px; background: var(--bg); color: var(--cyan); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The original logo is uncropped in the asset. Only its empty outer space is
   hidden by this viewport; the artwork is never stretched or redrawn. */
.top { position: relative; z-index: 3; display: flex; align-items: center; gap: 2%; min-height: var(--header-height); margin: 0 4.6%; padding: 0 3.5%; border-bottom: 1px solid var(--cyan); border-radius: 0 0 30px 30px; background: linear-gradient(115deg, #020a10f7, #020c12f0); box-shadow: 0 6px 18px -12px var(--cyan); }
.brand { position: relative; display: block; flex: 0 0 23%; aspect-ratio: 3.4; overflow: hidden; }
.brand img { position: absolute; display: block; width: 100%; max-width: none; height: auto; top: -74%; left: 0; }
.mainnav { flex: 1; min-width: 0; display: flex; justify-content: space-evenly; align-items: center; gap: 12px; border-left: 1px solid var(--cyan); font-size: clamp(14px, 1.65vw, 24px); line-height: 1.2; }
.mainnav a { display: flex; align-items: center; justify-content: center; min-height: 44px; white-space: nowrap; }
.mainnav [aria-current] { color: var(--cyan); }
.hamb { flex: 0 0 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; min-height: 44px; padding: 7px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.hamb span { display: block; width: 28px; height: 2px; background: currentColor; }
.hamb:hover, .hamb[aria-expanded="true"] { color: var(--cyan); }
.drawer { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, 100%); max-height: 75vh; overflow-y: auto; padding: 12px; border: 1px solid #17616d; border-radius: 14px; background: #071923; box-shadow: 0 12px 30px #0009; }
.drawer-links, .drawer .sub-menu { list-style: none; padding: 0; margin: 0; }
.drawer .sub-menu { padding-left: 16px; }
.drawer a { display: block; min-height: 44px; padding: 10px 12px; overflow-wrap: anywhere; }
.drawer a:hover, .drawer .current-menu-item > a { background: #0d2d38; color: var(--cyan); border-radius: 6px; }

.hero { margin-top: calc(-1 * var(--header-height)); text-align: center; }
.hero-image { display: block; width: 100%; height: auto; mask-image: linear-gradient(#000 91%, transparent 100%); }
.hero-copy { position: relative; margin-top: -1%; padding: 0 16px 3.2%; }
.hero h1 { font-size: clamp(32px, 5.7vw, 82px); line-height: 1.12; letter-spacing: -1.5px; margin: 0; text-shadow: 0 2px 6px #000; }
.hero p { margin: 3px 0 0; font-size: clamp(16px, 2.5vw, 36px); line-height: 1.5; color: var(--muted); }
.content { padding: 0 4.8% 40px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.tile, .analytics { position: relative; border: 1px solid #17616d; background: linear-gradient(125deg, #0b2631d9, #06151eeb 55%, #0a2029); box-shadow: inset 0 12px 20px -22px var(--cyan); }
.tile::before, .analytics::before { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #40ffff, transparent); box-shadow: 0 0 10px #00e5e86b; pointer-events: none; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: clamp(104px, 9.7vw, 140px); padding: 12px; gap: 8px; border-radius: 17px; text-align: center; font-size: clamp(18px, 2vw, 29px); font-weight: 600; line-height: 1.3; }
.tile:hover { border-color: var(--cyan); }
.tile svg { width: clamp(32px, 3.5vw, 50px); height: clamp(32px, 3.5vw, 50px); fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.analytics { margin: clamp(28px, 2.9vw, 42px) 1.5% 0; padding: 12px 2.7% 14px; border-radius: 23px; border-color: #00cad7; }
.analytics h2 { color: var(--cyan); font-size: clamp(20px, 2.4vw, 35px); line-height: 1.3; margin: 0 0 18px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { min-width: 0; padding: 0 5%; color: var(--muted); font-size: clamp(18px, 2vw, 29px); line-height: 1.25; }
.metric + .metric { border-left: 1px solid #31505f; }
.metric strong { display: block; color: var(--white); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.25; }
.metric small { font-size: .58em; font-weight: normal; }
.chart { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 0 0 8px 8px; }
.demo { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.latest { margin: clamp(28px, 3.3vw, 48px) 1.5% 0; }
.sectionhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.sectionhead h2 { margin: 0; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.25; }
.sectionhead a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--cyan); font-size: clamp(14px, 1.3vw, 19px); }
.sectionhead a:hover { text-decoration: underline; }
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article { min-width: 0; border: 1px solid #31515f; border-radius: 18px; overflow: hidden; background: #081c26; }
.article img { display: block; width: 100%; height: auto; }
.article-body { padding: 16px; overflow-wrap: anywhere; }
.article h2, .article h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
.article p { margin: 8px 0 0; color: var(--muted); }
.article time { display: block; font-size: 14px; color: var(--muted); }
.article a:hover h2, .article a:hover h3 { color: var(--cyan); }
.empty-state { grid-column: 1 / -1; padding: 20px 0; color: var(--muted); }
.reading { max-width: 1040px; min-height: 55vh; margin: 44px auto; padding: 0 24px; overflow-wrap: anywhere; }
.reading > h1, .entry-header h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.2; }
.entry { max-width: 850px; margin: auto; }
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content a, .post-navigation a, .page-links a, .pagination a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img, .entry-content figure, .entry-content video { max-width: 100%; height: auto; }
.entry-content figure { margin: 24px 0; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { border-collapse: collapse; max-width: 100%; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid #31515f; }
.entry-content pre { max-width: 100%; overflow-x: auto; padding: 16px; background: #0b202a; }
.entry-content blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--cyan); }
.entry-meta { color: var(--muted); font-size: 14px; }
.entry-image { display: block; margin: 24px 0; width: 100%; height: auto; }
.wp-caption-text, .gallery-caption, figcaption { color: var(--muted); font-size: 14px; }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.post-navigation, .pagination, .page-links { margin: 32px 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.page-numbers { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; padding: 8px; border: 1px solid #31515f; border-radius: 6px; }
.page-numbers.current { background: #0b303a; color: var(--cyan); }
.page-numbers.dots { border: 0; }
.ad-slot { margin: 32px 1.5%; border: 1px solid #31515f; padding: 16px; }
.ad-label { font-size: 14px; color: var(--muted); }
.hxl-widget { overflow-wrap: anywhere; }
.site-footer { text-align: center; padding: 24px; color: var(--muted); border-top: 1px solid #23414d; font-size: 14px; }
.site-footer a { color: var(--cyan); }

@media (max-width: 800px) {
    .top { margin: 0 2%; padding: 0 2%; gap: 8px; border-radius: 0 0 20px 20px; }
    .brand { flex-basis: 24%; }
    .mainnav { gap: 8px; font-size: 14px; }
    .hero-copy { padding-bottom: 24px; }
    .hero h1 { letter-spacing: -.8px; }
    .tile { font-size: 18px; }
    .analytics { padding: 16px; }
    .articles { gap: 12px; }
    .article-body { padding: 12px; }
    .article h2, .article h3 { font-size: 20px; }
}
@media (max-width: 600px) {
    /* All three approved main labels and the hamburger remain visible. */
    :root { --header-height: 60px; }
    .top { margin: 0; padding: 0 10px; gap: 4px; border-radius: 0 0 16px 16px; }
    .brand { flex: 0 0 94px; }
    .mainnav { gap: 6px; justify-content: space-evenly; padding-left: 5px; font-size: 11px; }
    .hamb { flex-basis: 38px; width: 38px; padding: 5px; min-height: 44px; }
    .hamb span { width: 23px; }
    .hero { margin-top: 0; }
    .hero-copy { margin-top: 0; padding: 8px 12px 24px; }
    .hero h1 { font-size: clamp(27px, 7.5vw, 44px); letter-spacing: -.6px; }
    .hero p { max-width: 380px; margin: 8px auto 0; font-size: 16px; line-height: 1.5; }
    .content { padding: 0 4.8% 28px; }
    .tiles { gap: 10px; }
    .tile { min-height: 95px; padding: 10px 4px; gap: 8px; border-radius: 13px; font-size: 14px; }
    .tile svg { width: 30px; height: 30px; }
    .analytics { margin: 24px 0 0; padding: 16px 12px 12px; border-radius: 16px; }
    .analytics h2 { margin-bottom: 18px; font-size: clamp(17px, 5vw, 24px); }
    .metrics { gap: 4px; }
    .metric { padding: 0 8px; font-size: 16px; }
    .metric strong { font-size: 28px; white-space: nowrap; }
    .metric small { font-size: 14px; }
    .chart { margin-top: 18px; }
    .demo { font-size: 14px; }
    .latest { margin: 28px 0 0; }
    .sectionhead { gap: 12px; margin-bottom: 12px; }
    .sectionhead h2 { font-size: 21px; }
    .sectionhead a { flex-shrink: 0; gap: 5px; font-size: 14px; }
    .articles { grid-template-columns: 1fr; }
    .reading { margin: 28px auto; padding: 0 18px; }
    .entry-content { font-size: 17px; }
    .alignleft, .alignright { float: none; margin: 16px 0; }
    .site-footer { padding: 20px 16px; }
}
@media (max-width: 359px) {
    .brand { flex-basis: 74px; }
    .mainnav { gap: 4px; font-size: 10px; }
    .top { padding: 0 5px; gap: 2px; }
    .sectionhead { align-items: flex-start; flex-direction: column; gap: 0; }
    .tile { font-size: 13px; }
    .metric { padding: 0 4px; }
    .metric strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
