/* Agora — page-level styles ported from the original HTML templates (page-hero, about-grid, pub-section, kontakt).
   2026-08: pročištěno — bloky, jejichž třídy se nikde nerenderují (šablony, patterns, render.php, seed.php ani obsah v DB), byly odstraněny. */

/* Agora hodnoty per-web knobů z base (base přešel na neutrální defaulty). */
:root {
  --color-rule-solid: #dbd5d7; /* vínově tónovaná plná linka (bloky: patička, tabulky) */
  --radius-media: 2px; /* Agora fotky mají jemné 2px zaoblení; zbytek brandu je hranatý (--radius 0 = base default) */
  --color-card: var(--color-bg-alt); /* buňky (donoři, karty, timeline) = povrch (bílá) na šedém pozadí Agory */
}

/* Agora grid look: buňky mřížek (posts/projects/pub/team) lícují s dekorativní
   vertikální mřížkou — nula mezera mezi sloupci, odsazení uvnitř buněk (base
   od 2026-08 jede na skutečném --grid-gap, tohle je per-web volba Agory). */
:root { --grid-gap: 0px; }
.projects__grid > *,
.blog__grid > *,
.pub__grid > *,
.team__grid > * { --card-pad: 20px; }
@media (max-width: 600px) {
  .projects__grid > *,
  .blog__grid > *,
  .pub__grid > * { --card-pad: 0; }
}

/* Agora logo grid: buňky na dotek (--grid-gap 0) se sdílenými linkami — base
   od 2026-08 rámuje každou buňku zvlášť; při nulové mezeře by se rámečky
   zdvojily, proto tady původní vzor (wrapper: top + left, buňka: right + bottom). */
.logo-grid__grid { border-top: 1px solid var(--color-rule-solid); }
.logo-grid__grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--color-rule-solid); pointer-events: none; }
.logo-grid__item { border-width: 0 1px 1px 0; border-radius: 0; }

/* Agora text-banner (Kontakt): navazuje těsně na sekci nad ním — původní
   asymetrický rytmus (base 0.3.x sjednotil bloky na symetrický preset 70). */
.wp-block-entangle-text-banner { padding-top: clamp(8px, 1.4vw, 24px) !important; padding-bottom: clamp(48px, 6vw, 96px) !important; }

/* Hero: Agora nese vzduch nad heroem VNĚJŠÍM paddingem sekce (uložený v obsahu:
   preset 80 nahoře); vnitřní --hero-air z base 0.3.x tedy vypnout, jinak by se sčítal. */
.hero { --hero-air: 0px; }

/* Agora look nadpisů: display/H2 utility a hero podtitulek jedou brand červenou.
   Neutrální base drží nadpisy v ink (THEME-STANDARD) — přebarvení je per-web volba. */
.display,
.h2,
.hero__sub,
.stats__num {
  color: var(--color-brand);
}

/* ===== from participace.html ===== */
  /* ---------- Participation — page-local styles ---------- */

  .page-section {
    padding-block: clamp(56px, 7vw, 112px);
    border-bottom: 1px solid var(--color-rule);
  }

/* ===== from publikace.html ===== */
  /* ---------- Publications — page-local styles ---------- */

  .pub-section {
    padding-block: clamp(56px, 7vw, 112px);
    border-bottom: 1px solid var(--color-rule);
  }
  .pub-section__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--color-brand);
    margin: 0;
  }

  .pub-card {
    display: flex;
    flex-direction: column;
    /* gap řeší base theme (media 16px pod obálkou, popisek 8px pod názvem) */
    color: var(--color-ink);
    transition: transform .2s ease;
  }
  .pub-card:hover { transform: translateY(-3px); }
  .pub-card:hover .pub-card__title { color: var(--color-brand); }

  .pub-card__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: var(--color-ink);
    margin: 0;
    transition: color .15s ease;
  }

/* ===== from o-nas.html ===== */
  /* ---------- About us — page-local styles ---------- */
  .page-hero__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-brand-soft);
  }
  .page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  @media (max-width: 720px) {
    .page-hero__media { aspect-ratio: 4 / 3; }
  }

  .about-section {
    padding-block: clamp(56px, 7vw, 112px);
    border-bottom: 1px solid var(--color-rule);
  }
  .about-section--soft { background: var(--color-bg-alt); }

  .about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  @media (max-width: 880px) {
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
  }

  .about-grid__label {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    line-height: 1.05;
    color: var(--color-brand);
    margin: 0;
    position: sticky;
    top: 96px;
  }
  @media (max-width: 880px) {
    .about-grid__label { position: static; }
  }

  /* About us content — inherits the body size (= wp-block-paragraph, 17px / 19px on large screens) */
  .about-prose { max-width: 760px; color: var(--color-ink); }
  .about-prose p,
  .about-prose .lead {
    font-size: inherit;
    line-height: 1.6;
    color: var(--color-ink);
    margin: 0 0 18px;
  }
  .about-prose p:last-child,
  .about-prose .lead:last-child { margin-bottom: 0; }

  /* bullet list — standard bullets in the brand color + spacing as elsewhere */
  .bullet-list {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 1.2em;
  }
  .bullet-list li {
    font-size: inherit;
    line-height: 1.6;
    color: var(--color-ink);
    margin-block: 0.4em;
    padding: 0;
  }
  .bullet-list li::marker { color: var(--color-brand); }

  /* Annual reports (.download-list/.pdf-tag) přesunuty do base blocks.css — blok entangle/download-list */

/* ===== from kontakt.html ===== */
  /* ---------- Contact — page-local styles (rhymes with o-nas.html) ---------- */
  .page-hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-brand);
    margin: 0 0 18px;
  }

  /* (.about-section / .about-grid / .about-grid__label jsou definované výše v sekci o-nas.html) */

  /* (kontakt: contact list and address cards are now plain core blocks inside
     entangle/side-section — no page-local styles needed) */

/* ===== from moderovani-verejnych-setkani.html ===== */
  /* ---------- Service detail — page-local styles ---------- */
  .page-hero {
    padding: clamp(80px, 9vw, 140px) 0 clamp(48px, 6vw, 88px);
    border-bottom: 1px solid var(--color-rule);
  }
  .page-hero__title {
    margin: 0 0 24px; }
  .page-hero__lead {
    max-width: 760px;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.55;
    color: var(--color-ink);
    margin: 0;
  }

  /* .detail-grid__label generuje seed.php do obsahu nabídek (h2 „O službě") — proto zůstává.
     Bez rodičovského .detail-grid (odstraněn jako nepoužívaný) nemá sticky smysl. */
  .detail-grid__label {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    line-height: 1.05;
    color: var(--color-brand);
    margin: 0;
  }

/* =========================================================
   Fluent Forms in the footer (brand restyle) — moved from base blocks.css (phase 5b-2).
   Site-specific: only relevant when this site ships Fluent Forms. !important beats the
   plugin stylesheet, so cascade order (child loads after base) does not matter.
   ========================================================= */
/* =========================================================
   Fluent Forms in the footer — unified with the .contact-form design
   (white uppercase labels, underlined transparent inputs, white CTA)

   !important here is DELIBERATE and legitimate: the FluentForm plugin ships its own
   stylesheet (.ff-el-*, .ff-btn-*) with high specificity, loaded only
   on the frontend — without !important it would override our brand styles. Do not remove.
   ========================================================= */
.footer-cta .fluentform,
.footer-cta .frm-fluent-form { text-align: left; }
.footer-cta .ff-t-container { gap: 0; row-gap: 0; }
.footer-cta .ff-t-cell { padding: 0; }
.footer-cta .ff-el-group {
	margin: 0 !important;
	/* underline in the same shade as the field fill; turns white on focus */
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	/* no bottom padding — the field's dark fill sits flush on the underline */
	padding: 18px 0 0;
}
.footer-cta .ff-el-group:focus-within { border-bottom-color: #fff; }
/* labels */
.footer-cta .ff-el-input--label label,
.footer-cta .ff-el-input--label {
	font-size: 0.75rem !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--color-on-brand) !important;
	font-weight: 500 !important;
	margin-bottom: 6px !important;
	padding: 0 !important;
	line-height: 1.4;
}
.footer-cta .ff-el-input--label .ff-el-is-required::after,
.footer-cta .ff-el-is-required-after::after { color: var(--color-on-brand) !important; }
/* inputs + textarea */
.footer-cta .ff-el-form-control {
	/* subtle dark fill, flush with the underline below (group width);
	   the 12px inner padding is mirrored on the label so text lines up */
	width: 100%;
	margin: 0;
	background: rgba(0, 0, 0, 0.06) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 18px 12px !important;
	height: auto !important;
	min-height: 0;
	font-family: var(--font-sans) !important;
	font-size: 1rem !important;
	color: var(--color-on-brand) !important;
	outline: none !important;
	caret-color: var(--color-on-brand);
}
/* focus feedback: stronger fill */
.footer-cta .ff-el-form-control:focus { background: rgba(0, 0, 0, 0.1) !important; }
/* labels share the fields' inner padding so label and input text align
   (the label reset above sets padding: 0 !important — must win over it) */
.footer-cta .ff-el-input--label { padding-left: 12px !important; }
.footer-cta .ff-el-form-control::placeholder { color: rgba(255, 255, 255, 0.55) !important; opacity: 1; }
.footer-cta textarea.ff-el-form-control {
	resize: vertical;
	min-height: 64px !important;
	line-height: 1.5;
}
/* submit */
.footer-cta .ff-btn-submit {
	margin-top: 32px;
	padding: 14px 24px !important;
	background: transparent !important;
	border: 1px solid #fff !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--color-on-brand) !important;
	font-family: var(--font-sans) !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	width: auto !important;
	transition: background .15s ease, color .15s ease;
}
.footer-cta .ff-btn-submit::after {
	content: "→";
	font-size: 0.875rem;
	transition: transform .2s ease;
}
.footer-cta .ff-btn-submit:hover {
	background: #fff !important;
	color: var(--color-brand) !important;
}
.footer-cta .ff-btn-submit:hover::after { transform: translateX(4px); }
/* button row without a rule */
.footer-cta .ff_submit_btn_wrapper,
.footer-cta .ff-el-group.ff_submit_btn_wrapper { text-align: left; border-bottom: 0; padding: 0; }
/* FF messages */
.footer-cta .ff-message-success { color: var(--color-on-brand); }
.footer-cta .error.text-danger,
.footer-cta .ff-el-is-error .text-danger { color: #ffe1e6 !important; font-size: 0.8125rem; }

/* =========================================================
   Agora site specifics — moved from base blocks.css (phase 6b):
   homepage variant B (.home-alt), about/kontakt rhythm tuning.
   Body classes are added by this child theme (functions.php).
   ========================================================= */
/* =========================================================
   Homepage – variant B (.home-alt): brand hero + inverse header
   ========================================================= */

/* Inverse header: brand background, white logo and navigation */
.home-alt .site-header { background: var(--color-brand); }
.home-alt .site-header .nav__list a,
.home-alt .site-header .nav__link,
.home-alt .site-header .nav__lang,
.home-alt .site-header .nav__search,
.home-alt .site-header .nav__toggle { color: var(--color-on-brand); border-color: rgba(255, 255, 255, 0.4); }
.home-alt .site-header .nav__list a::after,
.home-alt .site-header .nav__link::after { background: #fff; }
.home-alt .site-header .custom-logo,
.home-alt .site-header .brand img { filter: brightness(0) invert(1); }

/* Alternative hero: brand background + translucent gray grid */
.home-alt .hero,
.hero--brand {
	position: relative;
	background: var(--color-brand);
	color: var(--color-on-brand);
}
.home-alt .hero > *:not(.hero__grid),
.hero--brand > *:not(.hero__grid) { position: relative; z-index: 1; }
.home-alt .hero .hero__title,
.hero--brand .hero__title { color: var(--color-on-brand); }
.home-alt .hero .hero__sub,
.hero--brand .hero__sub { color: rgba(255, 255, 255, 0.85); }

/* Local grid inside the hero (aligned to the container, same raster as .entangle-vgrid) */
.hero__grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	padding-inline: var(--gutter);
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	pointer-events: none;
}
.hero__grid i { border-right: 1px solid rgba(255, 255, 255, 0.18); }
.hero__grid i:first-child { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hero__grid i:nth-child(4) { display: none; }
@media (min-width: 1500px) {
	.hero__grid { grid-template-columns: repeat(4, 1fr); }
	.hero__grid i:nth-child(4) { display: block; }
}
@media (max-width: 1024px) {
	.hero__grid { grid-template-columns: repeat(2, 1fr); }
	.hero__grid i:nth-child(3),
	.hero__grid i:nth-child(4) { display: none; }
}


/* ---- O nas: tuned vertical rhythm of sections ---- */
/* ---- O nás: tuned vertical rhythm of sections ----
   The rhythm is carried by the bottom padding (one gap between sections, not doubled);
   the soft band (Historie) has symmetric padding because of the background; donors stay together. */
.agora-about .about-section,
.agora-about .wp-block-entangle-team,
.agora-about .logo-grid {
	padding-top: 0;
	padding-bottom: var(--entangle-sec-y);
}
.agora-about .about-section--soft { padding-top: var(--entangle-sec-y); }
/* the section before the soft band doesn't add bottom spacing — the band's top padding handles it */
.agora-about .about-section:has(+ .about-section--soft) { padding-bottom: 0; }
/* donors (3 blocks) as one group — smaller spacing between them */
.agora-about .logo-grid:not(:last-child) { padding-bottom: clamp(28px, 3vw, 44px); }

/* ---- Kontakt: contact values in the body font size ---- */
.agora-kontakt .contact-row__value,
.agora-kontakt .address-card__lines { font-size: inherit; }
