/*
Theme Name: Konferencja — Sieć
Theme URI: https://konferencja.org.pl/
Author: Konferencja.org.pl
Description: Modułowy motyw dla kolejnych edycji konferencji. Współpracuje z Konferencja Core i Polylang.
Version: 0.6.7
Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: konferencja-portal
*/

:root {
  --ink: #081b3a;
  --blue: #2457f5;
  --blue-strong: #0d45f5;
  --paper: #f2f7ff;
  --white: #ffffff;
  --accent: #2457f5;
  --accent-ink: #ffffff;
  --signal: #2457f5;
  --muted: #69758a;
  --line: #d9e4f3;
  --hero-left: #071a39;
  --hero-glow: #0c42a9;
  --art-soft: #e5efff;
  --art-line: #2457f5;
  --section-space: clamp(5.5rem, 9vw, 9rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  height: auto;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #081b3a;
  font-weight: 700;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--signal);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
  transition: background-color 320ms ease, color 320ms ease;
}

.site-main {
  min-height: 55vh;
}

.site-shell[data-skin="security"] {
  --ink: #101c25;
  --blue: #61734a;
  --blue-strong: #778d55;
  --paper: #f1efe6;
  --accent: #61734a;
  --accent-ink: #ffffff;
  --signal: #61734a;
  --muted: #687067;
  --line: #d9d6c7;
  --hero-left: #111d24;
  --hero-glow: #2f423d;
  --art-soft: #e6e1d4;
  --art-line: #61734a;
}

.site-header {
  min-height: 92px;
  padding: 0 clamp(1.25rem, 4.5vw, 4.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border-bottom: 1px solid rgba(8, 27, 58, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ansg-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.ansg-logo--header {
  height: 52px;
}

.brand {
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.brand span {
  color: var(--blue);
}

.site-contact-bar {
  min-height: 42px;
  padding: 0.65rem clamp(1.25rem, 4.5vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: #071a39;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.site-contact-bar a {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-contact-bar a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(1.4rem, 2.6vw, 3rem);
  margin-right: 1.8rem;
}

.main-nav a {
  position: relative;
  padding: 2.1rem 0;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1.25rem;
  height: 3px;
  background: var(--blue);
  transition: right 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:first-child::after {
  right: 0;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  color: #9aa4b5;
  font-size: 0.88rem;
  font-weight: 700;
}

.language-switch button {
  border: 0;
  padding: 0.35rem 0.15rem;
  background: transparent;
  color: #9aa4b5;
  cursor: pointer;
  font: inherit;
}

.language-switch button.is-active {
  color: var(--ink);
}

.language-switch a {
  padding: 0.35rem 0.15rem;
  color: #9aa4b5;
}

.language-switch a.is-active {
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 770px;
  display: grid;
  grid-template-columns: minmax(0, 61%) minmax(0, 39%);
  position: relative;
  background: var(--hero-left);
}

.hero-copy {
  min-width: 0;
  padding: clamp(4.5rem, 6.2vw, 6.5rem) clamp(2rem, 4.6vw, 4.6rem) 4.5rem;
  color: var(--white);
  background:
    radial-gradient(circle at 6% 16%, color-mix(in srgb, var(--hero-glow) 95%, transparent), transparent 31%),
    linear-gradient(118deg, var(--hero-left) 50%, color-mix(in srgb, var(--hero-left) 78%, #000) 100%);
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 2rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 700;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.4rem, 4vw, 4.25rem);
  line-height: 1.01;
  letter-spacing: -0.048em;
  font-weight: 800;
}

.title-rule {
  width: 76px;
  height: 4px;
  margin: 1.45rem 0 1.7rem;
  background: var(--blue);
}

.event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 600;
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
}

.event-meta-place {
  flex-basis: 100%;
}

.meta-icon {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
}

.meta-icon svg,
.deadline-icon svg,
.fact-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.45rem;
}

.button {
  min-height: 62px;
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}

.button-primary {
  min-width: 295px;
  background: var(--accent);
  color: var(--accent-ink);
}

.button-secondary {
  min-width: 295px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.9);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.hero-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 29% 29%;
  opacity: 0.9;
}

.shape {
  position: absolute;
  transition: background-color 320ms ease, border-color 320ms ease;
}

.shape-quarter {
  width: 46%;
  aspect-ratio: 1;
  top: 0;
  left: 0;
  border-radius: 0 0 100% 0;
  background: var(--blue-strong);
}

.shape-half {
  width: 58%;
  height: 23%;
  left: 0;
  top: 53%;
  border-radius: 999px 999px 0 0;
  background: var(--blue-strong);
}

.shape-circle {
  width: 34%;
  aspect-ratio: 1;
  right: -17%;
  bottom: -2%;
  border-radius: 50%;
  background: var(--ink);
}

.shape-lines {
  width: 48%;
  height: 34%;
  right: 4%;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 11px,
    var(--art-line) 12px 14px
  );
  opacity: 0.62;
}

.signal-rings {
  position: absolute;
  width: 320px;
  height: 320px;
  left: 3%;
  top: 2%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.7),
    0 0 0 30px rgba(255, 255, 255, 0.9),
    0 0 0 58px rgba(255, 255, 255, 0.45),
    0 0 0 60px rgba(255, 255, 255, 0.8);
}

.route {
  position: absolute;
  border-color: var(--art-line);
  transition: border-color 320ms ease;
}

.route-one {
  width: 76%;
  height: 31%;
  right: -3%;
  top: 12%;
  border-top: 2px solid var(--art-line);
  border-left: 2px solid var(--art-line);
  border-radius: 54px 0 0;
}

.route-two {
  width: 84%;
  height: 39%;
  left: -16%;
  top: 43%;
  border-top: 2px solid var(--art-line);
  border-right: 2px dashed var(--art-line);
  border-radius: 0 55px 0 0;
}

.node {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--art-line);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--paper) 75%, transparent);
}

.node-a {
  left: -11px;
  top: 26%;
}

.node-b {
  left: 47%;
  top: -11px;
}

.node-c {
  left: 17%;
  top: -11px;
}

.node-d {
  right: -11px;
  top: 46%;
  background: var(--signal);
  border-color: var(--white);
  width: 34px;
  height: 34px;
}

.node-e {
  left: 57%;
  top: -11px;
}

.deadline-card {
  position: absolute;
  z-index: 5;
  right: clamp(2.2rem, 11.5vw, 11.5rem);
  bottom: 7.5%;
  width: min(360px, 29vw);
  min-height: 154px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 65px rgba(7, 27, 59, 0.19);
}

.deadline-card::after {
  content: "";
  position: absolute;
  left: 2.65rem;
  bottom: -38px;
  width: 2px;
  height: 38px;
  background: var(--signal);
}

.deadline-card::before {
  content: "";
  position: absolute;
  left: 2.35rem;
  bottom: -45px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--signal);
}

.deadline-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--signal);
}

.deadline-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.deadline-card small,
.deadline-card strong {
  display: block;
}

.deadline-card small {
  margin-bottom: 0.35rem;
  font-size: 1.03rem;
  font-weight: 700;
}

.deadline-card strong {
  color: var(--signal);
  font-size: 1.36rem;
  line-height: 1.15;
}

.skin-demo {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.skin-demo p {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.skin-demo span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.skin-buttons {
  display: flex;
  gap: 0.6rem;
}

.skin-buttons button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.skin-buttons button.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.skin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.skin-buttons button:last-child .skin-dot {
  background: #61734a;
}

.fact-strip {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--paper);
}

.fact-card {
  min-height: 138px;
  padding: 1.45rem;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(8, 27, 58, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.fact-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 50%, var(--line));
  box-shadow: 0 18px 42px rgba(8, 27, 58, 0.1);
}

.fact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 9%, var(--white));
}

.fact-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.fact-card > span:last-child {
  min-width: 0;
  display: grid;
  gap: 0.42rem;
}

.fact-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-card strong {
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 700;
}

.content-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--section-space) clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: clamp(4rem, 9vw, 9rem);
}

.section-kicker {
  margin-bottom: 1.4rem;
  color: var(--blue);
}

.section-heading h2,
.programme-intro h2 {
  margin: 0;
  max-width: 810px;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
  font-weight: 800;
}

.about-copy > p,
.programme-intro > p,
.organisation-content > p,
.archive-section > div:last-child > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.72;
}

.modern-event-content {
  margin-top: 2rem;
}

.programme-section {
  padding: var(--section-space) max(clamp(1.25rem, 4vw, 4rem), calc((100vw - 1320px) / 2 + 4rem));
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(3.5rem, 8vw, 8rem);
  background: var(--ink);
  color: var(--white);
}

.programme-intro {
  position: sticky;
  top: 132px;
}

.programme-intro h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.5rem, 4.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.programme-intro > p {
  max-width: 600px;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
}

.programme-intro .button {
  margin-top: 2rem;
}

.programme-deadline {
  margin-top: 2rem;
  padding: 1.1rem 0;
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.programme-deadline span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.programme-deadline time {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
}

.programme-content h3 {
  margin: 0 0 1.4rem;
  color: var(--white);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  letter-spacing: -0.035em;
}

.programme-area-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  list-style: none;
}

.programme-area-list li {
  min-height: 150px;
  padding: 1.4rem 1.4rem 1.4rem 3.4rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.58;
}

.programme-area-list li::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 1.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
}

.programme-note {
  margin: 1.25rem 0 0;
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.organisation-section {
  max-width: 1540px;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: clamp(3.5rem, 6vw, 6rem);
  align-items: start;
  padding-top: clamp(4.25rem, 6vw, 6rem);
  padding-bottom: clamp(4.25rem, 6vw, 6rem);
}

.organisation-content {
  display: grid;
  gap: 2.5rem;
}

.organisation-content > p {
  max-width: 760px;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.committee-person {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.committee-person:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
  box-shadow: 0 18px 42px rgba(8, 27, 58, 0.1);
}

.committee-person.is-chair {
  border-color: color-mix(in srgb, var(--blue) 58%, var(--line));
}

.committee-person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: #eef4fb;
}

.committee-person__body {
  min-height: 112px;
  padding: 1.25rem 1.3rem;
  display: grid;
  align-content: center;
  gap: 0.35rem;
}

.committee-person__body strong {
  font-size: 1.04rem;
  line-height: 1.35;
}

.committee-person__body span {
  width: fit-content;
  max-width: 100%;
  padding: 0.32rem 0.48rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 9%, var(--white));
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.registration-section {
  padding: var(--section-space) max(clamp(1.25rem, 4vw, 4rem), calc((100vw - 1320px) / 2 + 4rem));
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(3.5rem, 8vw, 8rem);
  background: var(--paper);
}

.registration-intro {
  position: sticky;
  top: 132px;
}

.registration-intro h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.registration-intro > p:last-child {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.registration-form {
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(8, 27, 58, 0.07);
}

.registration-form-placeholder {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 0.65rem;
  color: var(--ink);
}

.registration-form-placeholder p {
  margin: 0;
  color: var(--muted);
}

.kc-coauthors-summary {
  display: none !important;
}

.kc-active-field[hidden] {
  display: none !important;
}

.kc-character-count {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.kc-coauthors-control {
  padding: 0 0 1.35rem;
}

.kc-coauthors-choice {
  min-height: 58px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.kc-coauthors-choice input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.kc-coauthors-details {
  margin-top: 1rem;
}

.kc-coauthors-details[hidden] {
  display: none !important;
}

.kc-coauthors-details > p:first-child {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.kc-coauthors-list {
  display: grid;
  gap: 1rem;
}

.kc-coauthor {
  min-width: 0;
  margin: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
}

.kc-coauthor-title {
  padding: 0 0.35rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kc-coauthor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.kc-coauthor-field:first-child {
  grid-column: 1 / -1;
}

.kc-coauthor-field {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.kc-coauthor-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.kc-add-coauthor,
.kc-remove-coauthor {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.kc-add-coauthor {
  margin-top: 1rem;
  padding: 0.65rem 0;
}

.kc-add-coauthor::before {
  content: "+";
  margin-right: 0.45rem;
}

.kc-remove-coauthor {
  margin-top: 0.8rem;
  padding: 0.35rem 0;
  color: #a53131;
  font-size: 0.82rem;
}

.kc-coauthors-error {
  margin: 0.8rem 0 0;
  color: #a53131;
  font-size: 0.86rem;
  font-weight: 700;
}

.practical-section {
  padding: var(--section-space) max(clamp(1.25rem, 4vw, 4rem), calc((100vw - 1320px) / 2 + 4rem));
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(3.5rem, 8vw, 8rem);
  background: var(--white);
}

.practical-copy h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.practical-copy address {
  margin-top: 2rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.55;
}

.practical-copy address strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.map-link {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.practical-contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid var(--line);
}

.practical-contact span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practical-contact a {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 800;
}

.map-frame {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(8, 27, 58, 0.08);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  border: 0;
}

.archive-section {
  padding: var(--section-space) max(clamp(1.25rem, 4vw, 4rem), calc((100vw - 1320px) / 2 + 4rem));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.58fr);
  gap: clamp(4rem, 9vw, 9rem);
  background: var(--blue);
  color: var(--white);
}

.archive-section .section-kicker {
  color: var(--accent);
}

.archive-section > div:last-child {
  align-self: end;
}

.archive-section > div:last-child > p {
  color: rgba(255, 255, 255, 0.78);
}

.archive-section .button {
  margin-top: 2.3rem;
}

.site-footer {
  min-height: 190px;
  padding: 3rem max(clamp(1.25rem, 4vw, 4rem), calc((100vw - 1320px) / 2 + 4rem));
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(240px, 0.9fr) auto;
  align-items: center;
  gap: 3rem;
  background: #06142c;
  color: var(--white);
}

.footer-organiser {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ansg-logo--footer {
  height: 68px;
  flex: 0 0 auto;
}

.footer-organiser p {
  max-width: 290px;
  line-height: 1.5;
}

.footer-contact {
  display: grid;
  gap: 0.45rem;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.footer-site {
  display: grid;
  justify-items: end;
  gap: 0.8rem;
}

.brand-footer span {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.83rem;
}

@media (max-width: 1380px) {
  .committee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0 11px;
    display: grid;
    align-content: center;
    gap: 7px;
    justify-self: end;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
  }

  .menu-toggle span {
    height: 2px;
    background: var(--ink);
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 92px;
    display: none;
    margin: 0;
    padding: 1.25rem clamp(1.25rem, 4.5vw, 4.5rem) 2rem;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: 0 20px 35px rgba(7, 27, 59, 0.12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 0;
  }

  .main-nav a::after {
    display: none;
  }

  .language-switch {
    position: absolute;
    right: 6.4rem;
  }

  .hero {
    grid-template-columns: minmax(0, 65%) minmax(0, 35%);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 5.8vw, 4.25rem);
  }

  .event-meta {
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    width: min(100%, 380px);
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .deadline-card {
    right: 3vw;
    width: 31vw;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 78px;
  }

  .language-switch {
    right: 5.6rem;
  }

  .main-nav {
    top: 78px;
  }

  .hero {
    min-height: auto;
    display: block;
  }

  .hero-copy {
    min-height: 710px;
    padding: 5rem 1.25rem 10rem;
  }

  .hero h1 {
    max-width: 690px;
    font-size: clamp(2.8rem, 9vw, 4rem);
  }

  .hero-art {
    height: 410px;
  }

  .deadline-card {
    right: 1.25rem;
    bottom: 330px;
    width: min(360px, calc(100vw - 2.5rem));
  }

  .skin-demo {
    flex-direction: column;
    align-items: flex-start;
  }

  .fact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-section,
  .programme-section,
  .registration-section,
  .practical-section,
  .archive-section {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .programme-section,
  .registration-section,
  .practical-section,
  .archive-section,
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .programme-intro,
  .registration-intro {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.2rem;
  }

  .footer-site {
    justify-items: start;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 420px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0 1rem;
  }

  .brand {
    font-size: 0.88rem;
  }

  .site-identity {
    gap: 0.55rem;
  }

  .ansg-logo--header {
    height: 38px;
  }

  .site-contact-bar {
    padding: 0.65rem 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.68rem;
  }

  .site-contact-bar a {
    font-size: 0.8rem;
  }

  .language-switch {
    right: 4.6rem;
    font-size: 0.76rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-copy {
    min-height: 760px;
    padding-top: 4.2rem;
  }

  .eyebrow {
    margin-bottom: 1.3rem;
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.4rem);
  }

  .event-meta {
    display: grid;
  }

  .hero-actions {
    gap: 0.8rem;
    margin-top: 2.4rem;
  }

  .button {
    min-width: 0;
    min-height: 58px;
    padding: 0 1.25rem;
  }

  .hero-art {
    height: 340px;
  }

  .deadline-card {
    bottom: 270px;
    min-height: 125px;
    padding: 1.4rem;
  }

  .deadline-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .deadline-card small {
    font-size: 0.92rem;
  }

  .deadline-card strong {
    font-size: 1.13rem;
  }

  .skin-buttons {
    width: 100%;
    flex-direction: column;
  }

  .skin-buttons button {
    width: 100%;
    justify-content: flex-start;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }

  .programme-area-list,
  .committee-grid,
  .kc-coauthor-fields,
  .registration-form .wpforms-field-radio ul {
    grid-template-columns: 1fr;
  }

  .kc-coauthor-field:first-child {
    grid-column: auto;
  }

  .registration-form {
    padding: 1.25rem;
  }

  .content-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .logo-placeholders {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* WordPress content, archives and forms. */
.kp-container,
.wp-site-blocks {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.kp-page-header {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 34%),
    var(--paper);
}

.kp-page-header h1,
.kp-entry h1,
.kp-entry h2,
.kp-entry h3 {
  margin-top: 0;
  color: var(--ink);
  letter-spacing: -0.045em;
}

.kp-page-header h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
}

.kp-content {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background: var(--white);
}

.conference-history-header {
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

.conference-history-lead {
  max-width: 790px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.conference-history-summary {
  padding: var(--section-space) 0;
  background: var(--white);
}

.conference-history-summary__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(3.5rem, 8vw, 8rem);
}

.conference-history-summary h2,
.conference-history-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.3rem, 4.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.conference-history-copy {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.76;
}

.conference-history-copy p {
  margin: 0;
}

.conference-history-copy p + p {
  margin-top: 1.4rem;
}

.conference-stats {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.conference-stats > div {
  min-height: 170px;
  padding: 2rem;
  display: grid;
  align-content: center;
  gap: 0.6rem;
  background: var(--paper);
}

.conference-stats > div + div {
  border-left: 1px solid var(--line);
}

.conference-stats strong {
  color: var(--blue);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.conference-stats span {
  color: var(--ink);
  font-weight: 700;
}

.conference-history-list-section {
  padding: var(--section-space) 0;
  background: var(--ink);
  color: var(--white);
}

.conference-history-list-section .section-kicker {
  color: var(--accent);
}

.conference-history-list-section .conference-history-section-heading h2 {
  color: var(--white);
}

.conference-history-section-heading {
  max-width: 830px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.conference-history-list {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.conference-history-item {
  min-height: 128px;
  padding: 1.7rem 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.conference-history-item.has-image {
  min-height: 210px;
  grid-template-columns: 120px minmax(0, 1fr) minmax(220px, 300px);
}

.conference-history-item time {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
}

.conference-history-item h3 {
  max-width: 940px;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.3;
}

.conference-history-item figure {
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.conference-history-item figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.conference-dynamic-section .conference-history-section-heading {
  margin-bottom: 3rem;
}

.kp-entry {
  max-width: 780px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.kp-entry > * + * {
  margin-top: 1.4rem;
}

.kp-entry a,
.kp-event-card a {
  color: var(--blue);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

.kp-entry h2 {
  margin-top: 3.2rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

.kp-entry h3 {
  margin-top: 2.5rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.kp-entry blockquote {
  margin: 2.4rem 0;
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-left: 4px solid var(--blue);
  color: var(--ink);
  font-size: 1.2rem;
}

.kp-entry table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.kp-entry th,
.kp-entry td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
}

.kp-event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.kp-event-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.kp-event-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
}

.kp-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kp-event-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.kp-event-card__meta {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kp-event-card h2 {
  margin: 0.8rem 0 1rem;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.15;
}

.kp-event-card h2 a {
  color: inherit;
  text-decoration: none;
}

.kp-event-card__link {
  margin-top: auto;
  font-weight: 750;
}

.nav-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container select,
.wpforms-container textarea {
  width: 100% !important;
  padding: 0.85rem 1rem !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: var(--white) !important;
  color: var(--ink) !important;
  font: inherit !important;
}

.registration-form .wpforms-container {
  margin: 0 !important;
}

.registration-form .wpforms-field {
  padding: 0 0 1.35rem !important;
}

.registration-form .wpforms-field-description {
  margin-top: 0.5rem !important;
  color: var(--muted) !important;
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
}

.registration-form .wpforms-field-radio ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem !important;
}

.registration-form .wpforms-field-radio li {
  margin: 0 !important;
  padding: 1rem !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.registration-form input[type="radio"] {
  accent-color: var(--blue);
}

.registration-form textarea {
  min-height: 180px !important;
  resize: vertical;
}

.wpforms-container label {
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.wpforms-container button[type="submit"] {
  min-height: 56px !important;
  padding: 0 1.5rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.modern-event-content {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.modern-event-content:empty::before {
  content: "Szczegółowy opis wydarzenia zostanie uzupełniony.";
}

.programme-placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.site-shell[data-preview-draft="1"]::before {
  content: "Podgląd roboczej wersji konferencji";
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(8, 27, 58, 0.18);
}

@media (max-width: 1020px) {
  .kp-event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conference-history-item.has-image {
    grid-template-columns: 90px minmax(0, 1fr) 210px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .kp-event-list {
    grid-template-columns: 1fr;
  }

  .conference-history-summary__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .conference-stats {
    grid-template-columns: 1fr;
  }

  .conference-stats > div {
    min-height: 135px;
  }

  .conference-stats > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .conference-history-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .conference-history-item.has-image {
    grid-template-columns: 1fr;
  }

  .conference-history-item figure {
    margin-top: 0.8rem;
  }

}
