/* ---------------------------------------------
   Article page — The Klarity magazín
   Same system as the main site: Syncopate for display,
   Arsenal for reading, brand red as the only accent.
--------------------------------------------- */

.post {
  --measure: 44rem;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 0;
}

/* ---------- head ---------- */

.post-head {
  max-width: 62rem;
  margin: 0 auto;
}

.post-back {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.post-back:hover { color: var(--red); }

.post-kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--red);
}

.post-title {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0.75rem;
  font-size: 0.95rem;
  color: #5a5a5a;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.post-tags span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.7rem;
  border: 2px solid var(--black);
}

/* ---------- cover ---------- */

.post-cover {
  max-width: 75rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  border: var(--border) solid var(--black);
}

.post-cover img { width: 100%; height: auto; }

/* ---------- body ---------- */

.post-body {
  max-width: var(--measure);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.post-body p { margin: 0 0 1.25em; }

.post-body a {
  color: var(--red);
  text-underline-offset: 3px;
}

/* template order: title, meta, lead, cover photo, body */
.post-lead {
  max-width: 48rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.55;
  font-weight: 700;
}

.post-body h2 {
  position: relative;
  margin: 2.75em 0 1em;
  padding-top: 1.1rem;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

/* short red rule above every section heading */
.post-body h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 0.3rem;
  background: var(--red);
}

.post-body h3 {
  margin: 2.25em 0 0.75em;
  font-family: var(--font-body);
  font-size: 1.35em;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.post-body .post-subhead {
  font-family: var(--font-display);
  font-size: 1em;
  letter-spacing: 0.04em;
  color: var(--red);
}

/* bullet list with bold labels */
.post-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.post-list li {
  position: relative;
  padding: 0 0 0.9em 1.6em;
}

.post-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6em;
  height: 0.6em;
  background: var(--red);
}

/* 7 pillars: big numbers in the services style */
.post-pillars {
  list-style: none;
  counter-reset: pillar;
  margin: 0 0 2em;
  padding: 0;
  border-top: var(--border) solid var(--black);
}

.post-pillars > li {
  counter-increment: pillar;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  column-gap: 1.25rem;
  padding: 1.6em 0 0.6em;
  border-bottom: 1px solid var(--grey-line);
}

.post-pillars > li::before {
  content: counter(pillar, decimal-leading-zero);
  grid-row: 1 / span 10;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--red);
}

.post-pillars h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
}

.post-pillars h4 span {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 1.1em;
  letter-spacing: 0;
  color: #5a5a5a;
}

/* callouts */
.post-note {
  margin: 2em 0;
  padding: 1.4em 1.6em;
  background: var(--red);
  color: var(--white);
}

.post-note p { margin: 0; }
.post-note a { color: var(--white); }

.post-note--warn {
  background: transparent;
  color: var(--black);
  border: var(--border) solid var(--black);
  border-left: 0.5rem solid var(--red);
}

.post-note--warn a { color: var(--red); }

/* values (Metoda Hodnot) */
.post-values { margin: 0 0 1.5em; }

.post-values > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  column-gap: 1.5rem;
  padding: 1.25em 0;
  border-top: 1px solid var(--grey-line);
}

.post-values > div:last-child { border-bottom: 1px solid var(--grey-line); }

.post-values dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding-top: 0.3em;
}

.post-values dd { margin: 0; }
.post-values dd p:last-child { margin-bottom: 0; }

.post-practice span {
  font-weight: 700;
  color: var(--red);
}

/* process steps */
.post-steps {
  list-style: none;
  counter-reset: step;
  margin: 2em 0;
  padding: 0;
}

.post-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1em 3.75rem;
}

.post-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: var(--black);
}

.post-steps h3 { margin: 0.2em 0 0.5em; }

/* ---------- testimonial ---------- */

.post-quote {
  position: relative;
  max-width: 62rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}

.post-quote-mark {
  position: absolute;
  top: -0.2em;
  right: 0.05em;
  font-family: Georgia, serif;
  font-size: clamp(10rem, 26vw, 20rem);
  line-height: 1;
  color: var(--black);
  pointer-events: none;
}

.post-quote blockquote {
  position: relative;
  margin: 0;
}

.post-quote p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  line-height: 1.5;
}

.post-quote figcaption {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  font-family: var(--font-body);
}

.post-quote cite {
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
}

.post-quote a {
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- CTA ---------- */

.post-cta {
  max-width: var(--measure);
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.post-cta h2 {
  margin: 0 0 1em;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.post-cta p { margin: 0 0 1em; }

.post-cta-claim {
  font-weight: 700;
  color: var(--red);
}

.post-cta .btn {
  margin-top: 1rem;
  white-space: normal;
  text-align: center;
}

/* ---------- foot ---------- */

.post-foot {
  max-width: var(--measure);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: 1.5rem 0 clamp(3rem, 7vw, 5rem);
  border-top: var(--border) solid var(--black);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.post-share a,
.post-share button,
.post-all {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-share a:hover,
.post-share button:hover,
.post-all:hover { color: var(--red); }

/* ---------- related ---------- */

.post-related {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  background: var(--off);
}

.post-related h2 {
  max-width: 75rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.post-related-list {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.post-related-list a { display: block; text-decoration: none; }
.post-related-list img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.post-related-list time { display: block; margin-top: 0.75rem; font-size: 0.85rem; color: #5a5a5a; }
.post-related-list h3 { margin: 0.35rem 0 0; font-family: var(--font-body); font-size: 1.15rem; letter-spacing: 0; text-transform: none; }
.post-related-list a:hover h3 { color: var(--red); }

/* ---------- phones ---------- */

@media (max-width: 700px) {
  .post-pillars > li { grid-template-columns: 3rem 1fr; column-gap: 0.9rem; }
  .post-pillars > li::before { font-size: 1.35rem; }
  .post-values > div { grid-template-columns: 1fr; row-gap: 0.5rem; }
  .post-related-list { grid-template-columns: 1fr; }
}

/* ---------- expressive blocks (used by the authenticity article) ---------- */

/* AUTENTICITA = KONZISTENTNĚ DRŽENÁ HODNOTA V ČASE */
.post-body .post-formula {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.6em 1em;
  margin: 2.25em 0;
  padding: 1.4em 1.5em;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.post-formula-a { font-size: 1.05em; color: var(--red); }
.post-formula-eq { font-size: 1.6em; line-height: 1; }
.post-formula-b { font-size: 0.85em; }

/* short punchy one-liners */
.post-body .post-pull {
  margin: 1.75em 0;
  padding-left: 1rem;
  border-left: 0.35rem solid var(--red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.4;
}

/* Jsou vidět. -> věří -> loajalita: each line steps further in */
.post-stairs {
  list-style: none;
  margin: 0 0 0.5em;
  padding: 0;
  font-weight: 700;
  font-size: 1.15em;
}

.post-stairs li {
  padding: 0.55em 0;
  border-bottom: 1px solid var(--grey-line);
}

.post-stairs li:nth-child(2) { padding-left: 1.5em; }
.post-stairs li:nth-child(3) { padding-left: 3em; }

.post-body .post-boom {
  margin: 0.5em 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--red);
}

/* client / me */
.post-dialog {
  margin: 0 0 1.5em;
  border-top: var(--border) solid var(--black);
  border-bottom: var(--border) solid var(--black);
}

.post-body .post-dialog p {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  margin: 0;
  padding: 0.8em 0;
  font-size: 1.15em;
}

.post-dialog p + p { border-top: 1px solid var(--grey-line); }

.post-dialog-who {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7em;
  letter-spacing: 0.06em;
  padding-top: 0.45em;
  white-space: nowrap;
  color: var(--red);
}

/* "Kurátorství." */
.post-body .post-reveal {
  margin: 0.25em 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
}

/* uncomfortable questions */
.post-questions {
  list-style: none;
  counter-reset: q;
  margin: 0 0 1.5em;
  padding: 0;
}

.post-questions li {
  counter-increment: q;
  position: relative;
  padding: 0.85em 0 0.85em 3rem;
  border-top: 1px solid var(--grey-line);
  font-weight: 700;
}

.post-questions li:last-child { border-bottom: 1px solid var(--grey-line); }

.post-questions li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 0.55em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1;
  color: var(--red);
}

@media (max-width: 700px) {
  .post-body .post-formula { grid-template-columns: 1fr; }
  .post-formula-eq { display: none; }
  .post-stairs li:nth-child(2) { padding-left: 0.75em; }
  .post-stairs li:nth-child(3) { padding-left: 1.5em; }
}

/* ---------- SEO / conversion blocks ---------- */

/* table of contents: jump links (Google can show them under the result) */
.post-toc {
  max-width: var(--measure);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 1.5rem 1.75rem;
  border: var(--border) solid var(--black);
}

.post-toc-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--red);
}

.post-toc ol {
  margin: 0;
  padding-left: 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
}

.post-toc li { padding: 0.2rem 0; }
.post-toc li::marker { color: var(--red); }
.post-toc a {
  /* the global "nav a" rule sets Syncopate caps; the TOC must read as text */
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
}
.post-toc a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.post-toc + .post-body { margin-top: clamp(2rem, 5vw, 3rem); }

/* anchored headings must clear the sticky header */
.post-body h2 { scroll-margin-top: 6rem; }

/* soft CTA inside the article */
.post-inline-cta {
  margin: 2.5em 0;
  padding: 1.6em 1.75em 1.8em;
  background: var(--black);
  color: var(--white);
}

.post-body .post-inline-cta p { margin: 0 0 0.6em; }

.post-body .post-inline-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.3;
}

.post-inline-cta .btn {
  margin-top: 0.6em;
  border-color: var(--white);
  white-space: normal;
  text-align: center;
}

.post-inline-cta .btn:hover { border-color: var(--red); }

/* author box */
.post-author {
  max-width: var(--measure);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--grey-line);
  font-size: 1.05rem;
  line-height: 1.6;
}

.post-author p { margin: 0; }

.post-author-name {
  margin-bottom: 0.35rem !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.post-author + .post-foot { margin-top: 1.5rem; }

/* ---------- legal pages ---------- */
.legal .post-head { max-width: var(--measure); }
.legal .post-title { font-size: clamp(1.8rem, 4vw, 3rem); }
.legal .post-body { margin-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  max-width: 75rem;
  margin: 0 auto;
}

.nf-code {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 26vw, 20rem);
  line-height: 0.9;
  color: var(--red);
}

.nf-title {
  margin: 1.5rem 0 1rem;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.15;
  text-transform: none;
}

.nf-text { max-width: 40ch; font-size: 1.15rem; line-height: 1.6; }
.nf-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* term above its explanation (long terms like „Místo …“) */
.post-values--stack > div { grid-template-columns: 1fr; row-gap: 0.45em; }
.post-values--stack dt { padding-top: 0; line-height: 1.4; }

/* checklist: empty squares the reader ticks off in their head */
.post-checklist {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
  border-top: var(--border) solid var(--black);
}

.post-checklist li {
  position: relative;
  padding: 0.8em 0 0.8em 2.4rem;
  border-bottom: 1px solid var(--grey-line);
  font-weight: 700;
}

.post-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 1.1rem;
  height: 1.1rem;
  border: var(--border) solid var(--red);
}

/* quiet quote inside the article text (e.g. an expert's voice) */
.post-inquote {
  margin: 2em 0;
  padding-left: 1.25em;
  border-left: 3px solid var(--red);
}

.post-inquote blockquote { margin: 0; }
.post-body .post-inquote p { margin: 0; font-style: italic; }

.post-inquote figcaption {
  margin-top: 0.6em;
  font-size: 0.9em;
  font-weight: 700;
}

/* newsletter under the closing CTA: quiet, one hairline, no fill */
.post-news {
  max-width: var(--measure);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--black);
}

.post-news h2 {
  margin: 0 0 0.5em;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  line-height: 1.3;
}

.post-news > p { margin: 0 0 0.75em; }

.post-news .news-row { max-width: 30rem; }

.post-news .news-row input {
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--black);
}

.post-news .news-row input:focus { border-color: var(--red); }

.post-news .news-row button {
  padding: 0 0 0 1rem;
  border-bottom: 1px solid var(--black);
  background: none;
  color: var(--black);
}

.post-news .news-row button:hover { background: none; color: var(--red); }

/* question + short explanation underneath (positioning article) */
.post-questions--explained li > span {
  display: block;
  margin-top: 0.25em;
  font-weight: 400;
}

/* short intro between the cover photo and the table of contents */
.post-intro p:last-child { margin-bottom: 0; }
.post-intro + .post-toc { margin-top: clamp(2rem, 5vw, 3rem); }

/* quiet footnote-style aside: small, muted, thin rule above */
.post-footnote {
  max-width: 34rem;
  margin: 2.5em 0;
  padding-top: 0.9em;
  border-top: 1px solid var(--grey-line);
}

.post-body .post-footnote p {
  margin: 0;
  font-size: 0.85em;
  line-height: 1.6;
  opacity: 0.75;
}

.post-footnote span { font-style: italic; }

/* links to other articles stay quiet (black text, faint underline) so the
   red, prominent links lead to the services */
.post-body a[href$=".html"]:not([href*="index.html"]) {
  color: inherit;
  text-decoration-color: var(--grey-line);
  text-decoration-thickness: 1px;
}

.post-body a[href$=".html"]:not([href*="index.html"]):hover {
  color: var(--red);
  text-decoration-color: currentColor;
}
