/* Shared by the /metodika/ pages (UŽ STAČILO, the employer methodology).
 * Everything else comes from /common/site.css. Edited in place, served
 * no-cache like site/common/ (see _headers). */

/* The photo's own top edge already grazes her head, so anchor it to the top:
 * any crop the hero makes comes off her chin, never her head. */
.hero--metodika { background-position: 60% 0; }
/* A left-hand scrim under the copy (the photo is pale there) on top of the
 * shared bottom fade. */
.hero--metodika::before {
  background:
    linear-gradient(90deg, rgba(10, 60, 37, 0.82) 0%, rgba(10, 60, 37, 0.62) 38%, rgba(10, 60, 37, 0) 68%),
    linear-gradient(180deg, rgba(10, 60, 37, 0.05) 30%, rgba(10, 60, 37, 0.82) 100%);
}
.hero--metodika .lead,
.hero--metodika .hero__credit { text-shadow: 0 1px 12px rgba(10, 60, 37, 0.55); }
/* On a phone site.css stacks the copy under the photo, and its more specific
 * `body .hero:not(.hero--plain)` rules override the position and scrim. */
.hero__credit { margin: 22px 0 0; font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.hero__aside { margin: 18px 0 0; font-weight: 600; }
.hero__aside a { color: var(--pink); text-underline-offset: 4px; }

/* The sub-menu that ties the section together on every page. */

/* Numbered steps (the "Kde začať" checklist and the pilot's process). */
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps > li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid rgba(10, 60, 37, 0.15); }
.steps > li:last-child { border-bottom: 1px solid rgba(10, 60, 37, 0.15); }
.steps__no { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--pink-deep); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; max-width: 68ch; }
.steps .card__more { display: inline-block; margin-top: 10px; padding-top: 0; }
.steps .steps__ref { margin-top: 10px; font-size: 0.95rem; font-weight: 700; color: var(--muted); }
/* A step with more than one paragraph or a nested list (2.5-style, each
 * Krok spanning several beats rather than one line). */
.steps p + p { margin-top: 10px; }
.steps ul { margin: 10px 0 0; padding-left: 1.2em; }
.steps li + li { margin-bottom: 6px; }
.steps ul em { color: var(--green); }
.steps-note { margin: 24px 0 0; max-width: 68ch; font-weight: 700; color: var(--green); }

/* Chapter cards. */
.chapter-card .card__body { padding-top: 24px; }
/* Same lift as the zápisník's chapter cards. */
.chapter-card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
@media (hover: hover) {
  .chapter-card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 14px 30px rgba(10, 60, 37, 0.12); }
}
.chapter-card__no { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-deep); }
.chapter-card__status { margin-top: auto; padding-top: 6px; color: var(--muted); font-weight: 700; font-size: 0.92rem; }

/* Quick links by need on /metodika/kapitoly/. */
.needs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.needs a { display: inline-block; padding: 10px 18px; border: 2px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 700; text-decoration: none; }
.needs a:hover { background: var(--green); color: var(--white); }

/* Tools on /metodika/nastroje/. */
/* Two across, so the four tools sit as a tidy 2×2 instead of 3 + 1. Rows
 * size to their own content rather than the tallest card on the page. */
.cards--tools { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
.tool .card__body { gap: 10px; padding: 26px 28px 22px; }
.tool h3 { margin: 0; }
/* Label above value: no hanging label column for long lists of roles. */
.tool dl { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid rgba(10, 60, 37, 0.12); }
.tool dt { margin-bottom: 2px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tool dd { margin: 0 0 12px; font-size: 0.98rem; }
.tool dd:last-child { margin-bottom: 0; }
.tool__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 18px; }
.tool__formats { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tool__formats li { padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--green); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; }
.tool__status { color: var(--muted); font-size: 0.88rem; font-weight: 600; }

/* The address spelled out under a mailto button, with a copy icon, for
 * visitors whose browser has no mail app to open. */
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 18px 0 0; }
.email-row .copy-icon { color: var(--green); }
/* Kontakty: the address sits right under the organisation name. */
.path .path__org { margin-bottom: 0; }
.path .path__email { margin-top: 2px; }
.path__email .text-link { overflow-wrap: anywhere; }

/* Chapter template list on /metodika/kapitoly/. */
.template { margin: 0; padding-left: 1.4em; }
.template li { margin-bottom: 10px; max-width: 68ch; }

/* Timeline on /metodika/o-projekte/. */
.timeline li { grid-template-columns: 150px 1fr; }
.timeline span { color: var(--green); font-weight: 800; }

/* Logos grouped by role on /metodika/o-projekte/. */
.roles { display: grid; gap: 40px; }
.roles h3 { margin-bottom: 14px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.logos li { display: flex; align-items: center; justify-content: center; width: 200px; height: 110px; padding: 16px 20px; border-radius: 14px; background: var(--white); }
.logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logos--wide li { width: 280px; }
.names { margin: 14px 0 0; padding-left: 1.2em; }
.names li { margin-bottom: 6px; }

/* Two clearly separate contact paths. */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path { padding: 32px; border-radius: 20px; background: var(--tint); }
.path--help { background: var(--green); color: var(--white); }
.path--help h2, .path--help h3 { color: var(--pink); }
.path--help a { color: var(--white); }
.path h2 { margin-bottom: 12px; }
.path .btn-row { margin-top: 20px; }
.hotline { margin: 18px 0 0; padding: 0; list-style: none; }
.hotline li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hotline strong { display: block; font-size: 1.35rem; }
.hotline a { font-weight: 700; }

.form-fields { margin: 0 0 1em; padding-left: 1.2em; }
.form-fields li { margin-bottom: 6px; }

/* Chapter pages (/metodika/kapitoly/<slug>/): back-link above the hero. */
.chapter-nav { margin: 0 0 24px; }
.chapter-nav a { font-weight: 700; }

/* 1.3-style tiered comparison (three levels of program implementation). */
.levels { display: flex; flex-direction: column; gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.levels > li { padding: 24px 26px; border-radius: 16px; background: var(--white); border: 1px solid rgba(10, 60, 37, 0.14); }
.levels__name { margin: 0 0 4px; font-weight: 800; color: var(--green); }
.levels__focus { margin: 0 0 14px; color: var(--muted); }
.levels > li ul { margin: 0; padding-left: 1.2em; }
.levels > li li { margin-bottom: 6px; }
.levels > li li:last-child { margin-bottom: 0; }

/* Multi-field record cards (5.2/5.3-style: a title plus several labelled
 * fields) -- the readable, non-tabular equivalent of the source's wider
 * tables, consistent with how 1.3's table became .levels. */
.field-card { margin: 0 0 14px; padding: 20px 22px; border-radius: 14px; background: var(--white); border: 1px solid rgba(10, 60, 37, 0.14); }
.field-card:last-child { margin-bottom: 0; }
.field-card h4 { margin: 0 0 12px; color: var(--green); }
.field-card dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 0; font-size: 0.95rem; }
.field-card dt { font-weight: 700; color: var(--muted); }
.field-card dd { margin: 0; }
@media (max-width: 600px) {
  .field-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .field-card dt { margin-top: 10px; }
  .field-card dt:first-child { margin-top: 0; }
}

/* Role/document tables (2.2-style: name + description + a priority tag).
 * Same visual language as .levels, but each item is a flat name/description
 * pair rather than a name/focus/sub-list, with a priority badge instead of a
 * bullet list. */
.role-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.role-list > li { padding: 22px 24px; border-radius: 16px; background: var(--white); border: 1px solid rgba(10, 60, 37, 0.14); }
.role-list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 8px; }
.role-list__name { margin: 0; font-weight: 800; color: var(--green); }
.role-list__priority { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--green); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.role-list p { margin: 0; }

/* Self-assessment checklists (the source's "☐ ÁNO ☐ NIE" per item, read on
 * the web as one square per statement rather than two print-form boxes). */
.check-group { margin: 28px 0 0; }
.check-group:first-of-type { margin-top: 20px; }
.check-group h4 { margin: 0 0 14px; color: var(--green); }
.check-group .prose + .checklist { margin-top: 18px; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--pink-deep);
  border-radius: 4px;
}

/* Bold term definitions inside .prose (1.1-style glossary paragraphs). */
.term + .term { margin-top: 14px; }

/* Numbered sub-headings (1.1, 1.2, …) running inline through a chapter's
 * body -- h1-h3 have no margin by default sitewide, so without this they
 * butt straight up against the paragraph before and after them. */
.chapter-sub { margin: 36px 0 14px; }

/* The source's bold-italic statistic/usage-note callouts. */
.emphasis-note { padding: 18px 22px; border-radius: 14px; background: var(--tint); font-weight: 700; font-style: italic; color: var(--green); }
.emphasis-note p { margin: 0; }
.emphasis-note p + p { margin-top: 10px; }

/* Zdroje a verzia: the reference list and legislation at the foot of a chapter. */
.sources { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.sources li { padding: 10px 0; border-bottom: 1px solid rgba(10, 60, 37, 0.1); }
.sources li:last-child { border-bottom: 0; }
.law-list { margin: 10px 0 0; padding-left: 1.2em; font-size: 0.95rem; }
.law-list li { margin-bottom: 6px; }

/* Version and responsibility line at the foot of every page. */
.met-meta { padding: 28px var(--px); border-top: 1px solid rgba(10, 60, 37, 0.12); color: var(--muted); font-size: 0.92rem; }
.met-meta p { margin: 0 0 6px; max-width: 90ch; }
.met-meta p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .cards--tools { grid-template-columns: 1fr; }
  .path { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .steps > li { grid-template-columns: 1fr; gap: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .logos li { width: calc(50% - 8px); height: 90px; }
  .logos--wide li { width: 100%; }
  .checklist li { padding-left: 30px; }
}

/* Inline links: bold, with a pink underline that darkens on hover. */
.text-link, .met-meta a, .prose a, .lead a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pink-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}
.text-link:hover, .met-meta a:hover, .prose a:hover, .lead a:hover { text-decoration-color: var(--green); }
.section--green .lead a, .hero .lead a { color: var(--pink); text-decoration-color: currentColor; }

/* E-mail address with a copy button next to it. */
.contact-alt { margin-top: 32px; padding: 20px 22px; border-radius: 16px; background: var(--tint); }
.contact-alt p { margin: 0 0 10px; color: var(--muted); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.copy-row .text-link { overflow-wrap: anywhere; font-size: 1.05rem; }
.copy-btn {
  padding: 6px 14px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { background: var(--green); color: var(--white); }

/* The pilot form. */
.split--top { align-items: start; }
.pilot-form { padding: 32px; border-radius: 20px; background: var(--tint); }
.pilot-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pilot-form__wide { grid-column: 1 / -1; }
.pilot-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--green); font-size: 0.95rem; }
.pilot-form .optional { font-weight: 400; color: var(--muted); }
.pilot-form input:not([type=checkbox]), .pilot-form select, .pilot-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(10, 60, 37, 0.3);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.pilot-form textarea { resize: vertical; }
.pilot-form input:focus, .pilot-form select:focus, .pilot-form textarea:focus { border-color: var(--green); outline: 3px solid var(--pink); outline-offset: 0; }
.pilot-form__note { font-weight: 600; font-size: 0.88rem; color: #8a3b12; }
.pilot-form__check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin-top: 18px; font-weight: 400 !important; color: var(--ink) !important; }
.pilot-form__check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.pilot-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pilot-form__status { margin: 14px 0 0; font-weight: 700; }
.pilot-form__status:empty { display: none; }
.pilot-form__status.is-ok { padding: 14px 18px; border-radius: 12px; background: var(--green); color: var(--white); }
.pilot-form__status.is-error { color: #a1261b; }
.pilot-form .btn { font: inherit; font-weight: 700; cursor: pointer; }
.pilot-form .btn:disabled { opacity: 0.6; cursor: wait; }

.logos li.logos__dark { background: #1d1d3a; }

@media (max-width: 600px) {
  .pilot-form { padding: 22px 18px; }
  .pilot-form__grid { grid-template-columns: 1fr; }
}
