/* Strona główna High Flyers. Wszystko w obrębie .hf-home, żeby nie ruszać motywu. */
/* Kierunek: granat z logo i zdjęcia z zawodów, bursztyn jako sygnał (jak w panelu członka).
   Nagłówki wąskie i techniczne, tekst spokojny. Jeden wygląd, jasne tło z granatowymi pasami. */
.hf-home {
  --navy: #0c1e3a; --navy-2: #16315c; --paper: #f5f7fa; --white: #ffffff; --ink: #0f1d33; --muted: #56677d; --line: #dbe2ec;
  --amber: #f2b84b; --blue: #1f5fbf; --on-navy: #e9f0fa; --on-navy-2: #a9bcd6;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif; --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
.hf-home, .hf-home * { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.hf-home { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
.hf-home a { color: inherit; }
.hf-home img { max-width: 100%; display: block; }
.hh-wrap { width: min(1180px, 100%); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.hf-home h1, .hf-home h2, .hf-home h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; }
.hf-home h2 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.hh-eyebrow { font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.hh-meta { font: 500 12.5px var(--mono); color: var(--muted); letter-spacing: .04em; }
.hf-home :focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.hh-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--body); text-decoration: none; padding: 12px 20px; border-radius: 6px; border: 2px solid transparent; transition: background .15s, color .15s; }
.hh-amber { background: var(--amber); color: #1c1300; }
.hh-amber:hover { background: #ffd07a; }
.hh-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.hh-ghost:hover { background: rgba(255,255,255,.12); }
.hh-line { border-color: var(--navy); color: var(--navy); }
.hh-line:hover { background: var(--navy); color: #fff; }

/* Nagłówek */
.hh-top { position: sticky; top: 0; z-index: 20; background: rgba(12,30,58,.96); backdrop-filter: blur(6px); color: var(--on-navy); }
.hh-top .hh-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.hh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 22px var(--display); letter-spacing: .06em; }
.hh-brand img { width: 54px; }
.hf-home nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hf-home nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 15px; color: var(--on-navy-2); }
.hf-home nav a:hover { color: #fff; background: var(--navy-2); }
.hh-menu { display: none; }

/* Hero */
.hh-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hh-hero img.hh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,30,58,.96) 0%, rgba(12,30,58,.75) 45%, rgba(12,30,58,.2) 100%); }
.hh-hero .hh-wrap { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 136px) clamp(48px, 7vw, 88px); }
.hh-hero .hh-eyebrow { color: var(--amber); }
.hh-hero h1 { font-size: clamp(48px, 8vw, 96px); font-weight: 700; text-transform: uppercase; max-width: 12ch; margin: 14px 0 18px; }
.hh-hero p { max-width: 54ch; color: var(--on-navy); font-size: 18px; margin: 0 0 28px; }
.hh-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hh-credit { position: absolute; right: 16px; bottom: 10px; z-index: 1; font: 11px var(--mono); color: rgba(255,255,255,.7); }

/* Liczby */
.hh-stats { background: var(--navy-2); color: var(--on-navy); }
.hh-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hh-stats li { padding: 22px 16px; border-left: 1px solid rgba(255,255,255,.12); }
.hh-stats li:first-child { border-left: 0; padding-left: 0; }
.hh-stats b { display: block; font: 700 34px/1 var(--display); color: #fff; }
.hh-stats span { font-size: 14px; color: var(--on-navy-2); }

.hh-block { padding-block: clamp(56px, 8vw, 96px); }
.hh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hh-head p { max-width: 52ch; color: var(--muted); margin: 10px 0 0; }

/* Aktualności */
.hh-news { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.hh-lead { position: relative; display: block; text-decoration: none; border-radius: 10px; overflow: hidden; background: var(--navy); color: #fff; min-height: 460px; }
.hh-lead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hh-lead:hover > img { transform: scale(1.03); }
.hh-lead-text { position: absolute; inset: auto 0 0 0; padding: 28px; background: linear-gradient(0deg, rgba(12,30,58,.97) 55%, rgba(12,30,58,.6) 80%, rgba(12,30,58,0)); }
.hh-lead .hh-meta { color: var(--amber); }
.hh-lead h3 { font-size: clamp(28px, 3vw, 38px); margin: 6px 0 8px; }
.hh-lead p { margin: 0; color: var(--on-navy); max-width: 60ch; }
.hh-list { display: flex; flex-direction: column; gap: 12px; }
.hh-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s; }
.hh-item:hover { border-color: var(--blue); }
.hh-item > img { width: 132px; height: 100%; min-height: 128px; object-fit: cover; }
.hh-item div { padding: 14px 16px 14px 0; min-width: 0; }
.hh-item h3 { font-size: 23px; margin: 4px 0 4px; }
.hh-item p { margin: 0; font-size: 14px; color: var(--muted); }

/* Hangar */
.hh-hangar { background: var(--white); border-block: 1px solid var(--line); }
.hh-crafts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.hh-craft { scroll-snap-align: start; text-decoration: none; border-radius: 10px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.hh-craft > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hh-craft span { display: block; padding: 10px 14px; font: 600 22px var(--display); text-transform: uppercase; letter-spacing: .02em; }

/* Rekrutacja */
.hh-join { background: var(--navy); color: var(--on-navy); }
.hh-join h2 { color: #fff; }
.hh-join .hh-eyebrow { color: var(--amber); }
.hh-join .hh-head p { color: var(--on-navy-2); }
.hh-roles { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hh-roles li { border-top: 3px solid var(--amber); background: var(--navy-2); padding: 18px; border-radius: 0 0 8px 8px; }
.hh-roles h3 { color: #fff; font-size: 24px; margin-bottom: 6px; text-transform: uppercase; }
.hh-roles p { margin: 0; font-size: 14px; color: var(--on-navy-2); }

/* Projekty finansowane i sponsorzy */
.hh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.hh-funded { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hh-funded li { border-bottom: 1px solid var(--line); }
.hh-funded a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; text-decoration: none; font-weight: 500; }
.hh-funded a::after { content: "→"; color: var(--blue); }
.hh-funded a:hover { color: var(--blue); }
.hh-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.hh-logos a { display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-height: 96px; }
.hh-logos img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.hh-logos a:hover img { filter: none; opacity: 1; }

/* Stopka */
.hh-foot { background: #08162b; color: var(--on-navy-2); padding-block: 48px 28px; font-size: 14px; }
.hh-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.hh-foot h3 { color: #fff; font-size: 20px; text-transform: uppercase; margin-bottom: 10px; }
.hh-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hh-foot a { text-decoration: none; color: var(--on-navy); }
.hh-foot a:hover { color: var(--amber); }
.hh-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.hh-legal-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: #fff; border-radius: 8px; padding: 12px 18px; }
.hh-legal-logos img { height: 40px; width: auto; }

@media (max-width: 960px) {
  .news, .hh-two, .hh-cols { grid-template-columns: 1fr; }
  .hh-roles { grid-template-columns: 1fr 1fr; }
  .hh-lead { min-height: 380px; }
  .hh-desk, .desk { display: none; }
  .hh-menu { display: block; }
  .hh-menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--navy-2); border-radius: 6px; }
  .hh-menu summary::-webkit-details-marker { display: none; }
  .hh-menu a { display: block; text-decoration: none; color: var(--on-navy); padding: 10px 0; font-size: 17px; border-bottom: 1px solid var(--navy-2); }
  .hh-menu[open] ul { position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); padding: 12px 20px 20px; display: grid; gap: 4px; list-style: none; margin: 0; }
}
@media (max-width: 560px) {
  .hh-stats ul { grid-template-columns: 1fr 1fr; }
  .hh-stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hh-roles { grid-template-columns: 1fr; }
  .hh-item { grid-template-columns: 96px minmax(0, 1fr); }
  .hh-item > img { width: 96px; }
  .hh-logos { grid-template-columns: 1fr 1fr; }
}

/* Dopasowanie do WordPressa: motyw nie może nadpisywać wyglądu sekcji */
.hf-home { margin: 0; }
.hf-home p { margin: 0; }
.hf-home ul { margin: 0; }
.hf-home h1, .hf-home h2, .hf-home h3 { color: inherit; letter-spacing: normal; }
.hf-home .hh-hero h1 { color: #fff; }
.hf-home .hh-head p { margin-top: 10px; }
.hf-home .hh-hero p { margin-bottom: 28px; }
.hf-home .hh-sub { margin: 10px 0 18px; }
.hf-home .hh-desk ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hf-home .hh-desk a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 15px; color: var(--on-navy-2); }
.hf-home .hh-desk a:hover { color: #fff; background: var(--navy-2); }
.hf-home .hh-top .hh-btn.hh-desk { font-size: 14px; padding: 9px 14px; color: #1c1300; }
.hf-home .hh-noimg { display: block; background: var(--navy-2); min-height: 128px; }
.hf-home .hh-logos span { font-weight: 600; }
.hf-home .hh-top { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }

/* Emoji z WordPressa zostają w linii tekstu */
.hf-home img.emoji { display: inline !important; width: 1em !important; height: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; border: 0 !important; min-height: 0 !important; max-width: none !important; position: static !important; object-fit: contain !important; }
/* Logotypy mają stałą wysokość, żeby zawsze się wczytały */
.hf-home .hh-logos img { height: 52px; width: auto; max-width: 100%; }
.hf-home .hh-legal-logos img { height: 40px; width: auto; }

/* Podstrony */
body.hf-full { margin: 0; background: #f5f7fa; }
.hf-home .hh-desk a[aria-current="page"], .hf-home .hh-menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); }
.hh-page-head { background: var(--navy); color: var(--on-navy); padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 64px); }
.hf-home .hh-page-head h1 { color: #fff; font-size: clamp(42px, 6.5vw, 76px); font-weight: 700; text-transform: uppercase; margin: 12px 0 0; max-width: 18ch; }
.hh-page-head .hh-eyebrow { color: var(--amber); text-decoration: none; }
.hf-home .hh-page-head p { max-width: 60ch; color: var(--on-navy-2); font-size: 18px; margin-top: 14px; }
.hh-page-head .hh-cta { margin-top: 24px; }
.hh-white { background: var(--white); border-block: 1px solid var(--line); }
.hh-empty { color: var(--muted); font-size: 17px; }
.hh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hh-card { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s, transform .15s; }
.hh-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.hh-card > img, .hh-card > .hh-noimg { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.hh-card > div { padding: 16px 18px 20px; }
.hf-home .hh-card h3 { font-size: 25px; margin: 6px 0 8px; text-transform: none; }
.hf-home .hh-card p { color: var(--muted); font-size: 15px; }
.hh-craft-cards .hh-card > img { aspect-ratio: 4 / 3; }
.hf-home .hh-craft-cards h3 { text-transform: uppercase; margin-top: 0; }
.hh-pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.hh-pager a, .hh-pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; font: 600 15px var(--mono); background: var(--white); }
.hh-pager span { background: var(--navy); color: #fff; border-color: var(--navy); }
.hh-pager a:hover { border-color: var(--blue); color: var(--blue); }
.hf-home .hh-prose p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.7; max-width: 66ch; }
.hh-about { align-items: center; }
.hh-photo { width: 100%; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.hh-timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--amber); display: grid; gap: 4px; }
.hh-timeline li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); }
.hh-timeline b { font: 700 24px/1.2 var(--display); color: var(--navy); }
.hh-timeline span { font-size: 17px; }
.hh-pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hh-pubs li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 20px 24px; }
.hf-home .hh-pubs h3 { font: 600 19px/1.4 var(--body); margin: 6px 0; }
.hf-home .hh-pubs p { color: var(--muted); }
.hh-doi { display: inline-block; margin-top: 8px; font: 500 13px var(--mono); color: var(--blue); }
.hh-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 12px; border-radius: 999px; font: 600 13px var(--mono); letter-spacing: .04em; text-transform: uppercase; background: var(--navy-2); color: var(--on-navy-2); }
.hh-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.hh-status.hh-on { color: #7ee2a8; }
.hh-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hh-why li { padding: 18px 20px; border-radius: 8px; background: var(--paper); border-top: 3px solid var(--amber); font-weight: 600; font-size: 17px; }
.hh-role-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hh-role { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; }
.hf-home .hh-role h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 10px; color: var(--navy); }
.hf-home .hh-role p { color: var(--muted); margin-bottom: 8px; }
.hh-role h4 { font: 600 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 16px 0 6px; }
.hf-home .hh-role ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hh-role li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.hh-end { margin-top: 32px; display: flex; justify-content: center; }
.hf-home .hh-socials { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hh-mail { display: grid; gap: 2px; }
.hh-mail a { font: 600 22px var(--body); color: var(--navy); }
.hh-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.hf-home .hh-form h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 8px; }
.hf-home .hh-form p { color: var(--muted); margin-bottom: 18px; }
.hh-form .wpforms-container { margin: 0 !important; }
.hh-form input, .hh-form select, .hh-form textarea { font: 16px var(--body) !important; border-radius: 6px !important; }
.hh-form button[type=submit] { background: var(--amber) !important; color: #1c1300 !important; border: 0 !important; border-radius: 6px !important; font: 600 15px var(--body) !important; padding: 12px 22px !important; height: auto !important; }
.hh-narrow { width: min(820px, 100%); }
.hf-home .hh-post-head h1 { font-size: clamp(36px, 5.5vw, 60px); text-transform: none; max-width: none; margin-bottom: 12px; }
.hh-post-head .hh-meta { color: var(--on-navy-2); }
.hh-back:hover { color: #fff; }
.hh-post-img { width: 100%; border-radius: 10px; margin-bottom: 32px; }
.hh-post img { height: auto; border-radius: 8px; }
.hh-post figure { margin: 0 0 1.4em; }
.hh-post figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hf-home .hh-post h2, .hf-home .hh-post h3 { margin: 1.4em 0 .5em; text-transform: none; }
.hf-home .hh-post h2 { font-size: 34px; }
.hf-home .hh-post ul, .hf-home .hh-post ol { margin: 0 0 1.1em; padding-left: 1.3em; font-size: 17px; }
.hh-post a { color: var(--blue); }
.hh-post .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.hh-post .wp-block-gallery figure { margin: 0; }
.hh-post .wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

@media (max-width: 1100px) {
  .hh-desk { display: none !important; }
  .hh-menu { display: block; }
  .hh-menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--navy-2); border-radius: 6px; }
  .hh-menu summary::-webkit-details-marker { display: none; }
  .hh-menu a { display: block; text-decoration: none; color: var(--on-navy); padding: 10px 0; font-size: 17px; border-bottom: 1px solid var(--navy-2); }
  .hh-menu[open] ul { position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); padding: 12px 20px 20px; display: grid; gap: 4px; list-style: none; margin: 0; }
}
@media (max-width: 960px) {
  .hh-cards, .hh-why { grid-template-columns: 1fr 1fr; }
  .hh-role-cards { grid-template-columns: 1fr; }
  .hh-news { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hh-cards, .hh-why { grid-template-columns: 1fr; }
  .hh-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .hh-role { padding: 20px; }
}

/* Wpisy: treść z edytora dostaje kroje koła, nawet gdy ma własne style motywu */
.hf-home .hh-post :where(p, li, figcaption, span, em, strong, a, td, th, blockquote, h5, h6) { font-family: var(--body) !important; }
.hf-home .hh-post :where(h5, h6) { font-size: 13px !important; font-weight: 400 !important; font-style: normal !important; color: var(--muted) !important; margin: 0 0 1.2em !important; }
.hf-home .hh-post p, .hf-home .hh-post li { font-size: 17px !important; line-height: 1.7 !important; }
.hf-home .hh-post :where(h1, h2, h3, h4) { font-family: var(--display) !important; }
.hf-home .hh-post figcaption, .hf-home .hh-post figcaption * { font-size: 13px !important; font-style: normal !important; color: var(--muted) !important; }
/* Stopka na dole nawet na krótkich podstronach */
.hf-home { min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); display: flex; flex-direction: column; }
.hf-home > main { flex: 1 0 auto; }
/* Kolory przycisków wygrywają z ogólną regułą dla linków */
.hf-home a.hh-amber, .hf-home .hh-amber { color: #1c1300; }
.hf-home a.hh-line { color: var(--navy); }
.hf-home a.hh-line:hover { color: #fff; }
.hf-home a.hh-ghost { color: #fff; }
