/* Katalog Firm – Targi PK */
.pkkf-profile,
.pkkf-list {
    --pkkf-accent: #003571;
    --pkkf-gold: #85764f;
    --pkkf-border: #e0e6ed;
    --pkkf-muted: #5f6368;
    --pkkf-bg-soft: #f0f5fa;
    --pkkf-radius: 8px;
}

/* ---------- Wspólne ---------- */
.pkkf-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.pkkf-chips li {
    margin: 0;
    padding: 4px 10px;
    font-size: 0.875em;
    line-height: 1.4;
    background: var(--pkkf-bg-soft);
    border: 1px solid var(--pkkf-border);
    border-radius: 999px;
}
.pkkf-chips--small li { font-size: 0.75em; padding: 2px 8px; }
.pkkf-chips--oferty li { border-color: var(--pkkf-accent); color: var(--pkkf-accent); background: transparent; font-weight: 600; }

.pkkf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pkkf-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 4px;
    background: var(--pkkf-bg-soft);
    color: #1d2327;
}
.pkkf-badge--sponsor { background: var(--pkkf-gold); color: #fff; }
.pkkf-badge--plus { background: var(--pkkf-accent); color: #fff; }

/* Przyciski - selektory z prefiksem, żeby wygrać z button:hover motywu (Astra) */
.pkkf-profile .pkkf-button,
.pkkf-list .pkkf-button,
.pkkf-form-wrap .pkkf-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--pkkf-accent);
    border-radius: 4px;
    background: var(--pkkf-accent);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1.3;
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.pkkf-profile .pkkf-button:hover,
.pkkf-profile .pkkf-button:focus-visible,
.pkkf-list .pkkf-button:hover,
.pkkf-list .pkkf-button:focus-visible,
.pkkf-form-wrap .pkkf-button:hover,
.pkkf-form-wrap .pkkf-button:focus-visible {
    background: #fff;
    color: var(--pkkf-accent) !important;
    border-color: var(--pkkf-accent);
}

/* ---------- Profil firmy ---------- */
.pkkf-head {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--pkkf-border);
    border-top: 4px solid var(--pkkf-accent);
    box-shadow: inset 0 -3px 0 var(--pkkf-gold);
    border-radius: var(--pkkf-radius);
}
.pkkf-head__logo {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
}
.pkkf-head__logo img { max-width: 100%; max-height: 160px; width: auto; height: auto; object-fit: contain; }
.pkkf-head__info { flex: 1 1 auto; min-width: 0; }
.pkkf-head__fullname { font-weight: 600; margin: 0 0 10px; }

.pkkf-contact { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.pkkf-contact dt { font-weight: 600; color: var(--pkkf-muted); margin: 0; }
.pkkf-contact dd { margin: 0; overflow-wrap: anywhere; }

.pkkf-section { margin-bottom: 32px; }
.pkkf-section h2 {
    padding-bottom: 8px;
    margin: 0 0 16px;
    border-bottom: 2px solid var(--pkkf-border);
    font-size: 1.4em;
}
.pkkf-section h3 { font-size: 1.05em; margin: 20px 0 8px; }
.pkkf-section h2 + h3 { margin-top: 0; }
.pkkf-list-items { margin: 0 0 12px 1.2em; padding: 0; }
.pkkf-list-items li { margin-bottom: 4px; }

.pkkf-kierunki__group { margin-bottom: 10px; }
.pkkf-kierunki__wydzial { margin: 0 0 6px; font-size: 0.875em; font-weight: 600; color: var(--pkkf-muted); }

.pkkf-cta { margin-top: 20px; }

.pkkf-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pkkf-person { padding: 16px; background: var(--pkkf-bg-soft); border-radius: var(--pkkf-radius); }
.pkkf-person p { margin: 0 0 4px; overflow-wrap: anywhere; }
.pkkf-person__name { font-weight: 700; }
.pkkf-person__role { color: var(--pkkf-muted); font-size: 0.9em; }

/* Profil firmy: ten sam kontener co strony (Astra daje stronom .ast-article-single padding 0 5%,
   a dla CPT tej reguły nie wypisuje + ogranicza treść do szerokości "content width") */
.single-pk_firma .site-content > .ast-container { padding-left: 0; padding-right: 0; }
.single-pk_firma #primary .ast-article-single { padding-left: 5%; padding-right: 5%; }
.single-pk_firma .entry-content[data-ast-blocks-layout] > .pkkf-profile { max-width: none; }

/* Profil firmy: ukryj autora, datę i nawigację wpisów motywu (zapas, gdy filtr Astry nie zadziała) */
.single-pk_firma .entry-meta,
.single-pk_firma .post-navigation,
.single-pk_firma .ast-single-post-navigation,
.single-pk_firma .navigation.post-navigation { display: none !important; }

@media (max-width: 700px) {
    .pkkf-head { flex-direction: column; gap: 16px; padding: 16px; }
    .pkkf-head__logo { flex-basis: auto; width: 100%; }
    .pkkf-contact { grid-template-columns: 1fr; }
    .pkkf-contact dd { margin-bottom: 8px; }
}

/* ---------- Lista firm [pk_firmy] ---------- */
.pkkf-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--pkkf-bg-soft);
    border-radius: var(--pkkf-radius);
}
.pkkf-filters__field label { display: block; margin-bottom: 4px; font-size: 0.875em; font-weight: 600; }
.pkkf-filters__field input,
.pkkf-filters__field select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    font: inherit;
}
.pkkf-filters__actions { display: flex; align-items: center; gap: 12px; }
.pkkf-filters__reset { font-size: 0.875em; }
.pkkf-count { margin: 0 0 16px; color: var(--pkkf-muted); font-size: 0.9em; }

.pkkf-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pkkf-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pkkf-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pkkf-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.pkkf-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--pkkf-border);
    border-radius: var(--pkkf-radius);
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.pkkf-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.pkkf-card--sponsor { border-color: var(--pkkf-gold); }

.pkkf-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--pkkf-border);
}
.pkkf-card__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pkkf-card__initials { font-size: 2.5em; font-weight: 700; color: var(--pkkf-accent); opacity: 0.6; }

.pkkf-card__body { flex: 1; padding: 16px; }
.pkkf-card__body .pkkf-badge { margin-bottom: 8px; }
.pkkf-card__title { margin: 0 0 6px; font-size: 1.1em; line-height: 1.3; }
.pkkf-card__title a { color: inherit; text-decoration: none; }
.pkkf-card__title a:hover { color: var(--pkkf-accent); text-decoration: underline; }
.pkkf-card__meta { margin: 0 0 8px; font-size: 0.875em; color: var(--pkkf-muted); }
.pkkf-card__excerpt { margin: 0 0 10px; font-size: 0.9em; }
.pkkf-card__stoisko { margin: 0; font-size: 0.8em; font-weight: 600; color: var(--pkkf-muted); }

.pkkf-empty { padding: 24px; text-align: center; background: var(--pkkf-bg-soft); border-radius: var(--pkkf-radius); }

@media (max-width: 1000px) {
    .pkkf-grid--cols-4,
    .pkkf-grid--cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
    .pkkf-grid,
    .pkkf-grid--cols-3,
    .pkkf-grid--cols-4,
    .pkkf-grid--cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .pkkf-grid[class] { grid-template-columns: 1fr; }
}

/* ---------- Formularz zgłoszeniowy [pk_firma_formularz] ---------- */
.pkkf-form-wrap {
    --pkkf-accent: #003571;
    --pkkf-gold: #85764f;
    --pkkf-border: #e0e6ed;
    --pkkf-muted: #5f6368;
    --pkkf-bg-soft: #f0f5fa;
    --pkkf-radius: 8px;
    --pkkf-error: #b32d2e;
}
.pkkf-form__intro { color: var(--pkkf-muted); font-size: 0.9em; }
.pkkf-req { color: var(--pkkf-error); }
.pkkf-help { margin: 0 0 12px; font-size: 0.875em; color: var(--pkkf-muted); }

.pkkf-fieldset {
    min-width: 0;
    margin: 0 0 24px;
    padding: 20px 24px 8px;
    border: 1px solid var(--pkkf-border);
    border-radius: var(--pkkf-radius);
}
.pkkf-form-wrap .pkkf-fieldset > legend { padding: 0 8px; margin: 0 0 0 -8px; font-size: 1.15em; font-weight: 700; color: var(--pkkf-accent); border: 0; width: auto; float: none; }

.pkkf-form-field { margin-bottom: 16px; }
.pkkf-form-field > label,
.pkkf-form-label { display: block; margin: 0 0 4px; font-weight: 600; }
.pkkf-form-field input[type=text],
.pkkf-form-field input[type=email],
.pkkf-form-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    font: inherit;
}
.pkkf-form-field input:focus,
.pkkf-form-field textarea:focus { outline: 2px solid var(--pkkf-accent); outline-offset: 1px; border-color: var(--pkkf-accent); }
.pkkf-form-field input[type=file] { max-width: 100%; }
.pkkf-form-field.has-error input,
.pkkf-form-field.has-error textarea { border-color: var(--pkkf-error); }
.pkkf-form-field.has-error > label,
.pkkf-fieldset.has-error > legend,
.pkkf-consent.has-error { color: var(--pkkf-error); }

.pkkf-checks { margin: 0; padding: 0; min-width: 0; }
.pkkf-form-wrap .pkkf-checks__title { margin: 0 0 8px; font-weight: 600; line-height: 1.35; }
.pkkf-checks__items { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pkkf-form-wrap .pkkf-checks label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-weight: normal;
    line-height: 1.4;
    float: none;
    width: auto;
}
.pkkf-form-wrap .pkkf-checks input[type=checkbox] { flex: 0 0 auto; margin: 0.2em 0 0; accent-color: var(--pkkf-accent); }

/* Kierunki: kafelek na wydział, lista kierunków jedna pod drugą */
.pkkf-kierunki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.pkkf-checks--wydzial { padding: 14px 16px; background: var(--pkkf-bg-soft); border-left: 3px solid var(--pkkf-accent); border-radius: 4px; }
.pkkf-checks--wydzial .pkkf-checks__title { color: var(--pkkf-accent); font-size: 0.95em; }
.pkkf-checks--wydzial .pkkf-checks__items { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.pkkf-checks--wydzial label { font-size: 0.92em; }

.pkkf-form-repeater__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    padding: 16px 16px 4px;
    margin-bottom: 12px;
    background: var(--pkkf-bg-soft);
    border-radius: var(--pkkf-radius);
}
.pkkf-form-repeater__remove {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pkkf-error);
    font-size: 0.875em;
    text-decoration: underline;
    cursor: pointer;
}
.pkkf-form-wrap .pkkf-button--secondary {
    background: #fff;
    color: var(--pkkf-accent) !important;
}
.pkkf-form-wrap .pkkf-button--secondary:hover,
.pkkf-form-wrap .pkkf-button--secondary:focus-visible {
    background: var(--pkkf-accent);
    color: #fff !important;
}

.pkkf-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
.pkkf-consent input { margin-top: 0.3em; flex: 0 0 auto; }
.pkkf-form-wrap .pkkf-form__submit .pkkf-button { padding: 12px 28px; font-size: 1.05em; }
.pkkf-form-wrap .pkkf-form__submit .pkkf-button:disabled { opacity: 0.6; cursor: wait; background: var(--pkkf-accent); color: #fff !important; }

.pkkf-notice { padding: 16px 20px; margin-bottom: 24px; background: var(--pkkf-bg-soft); border-left: 4px solid var(--pkkf-muted); border-radius: 4px; }
.pkkf-notice p:last-child,
.pkkf-notice ul:last-child { margin-bottom: 0; }
.pkkf-notice--success { background: #edfaef; border-left-color: #00a32a; }
.pkkf-notice--error { background: #fcf0f1; border-left-color: var(--pkkf-error); }
.pkkf-notice--error:focus { outline: none; }

/* Honeypot - poza ekranem, nie display:none (część botów to pomija) */
.pkkf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
    .pkkf-fieldset { padding: 16px 14px 4px; }
    .pkkf-form-repeater__row { grid-template-columns: 1fr; }
}
