/* Mamahotel "Jak to probíhá": three steps, who pays, and the calculator teaser (LAND-04, D-14, D-15).
   Portability contract: every selector starts with .mh- and every colour comes from tokens.css (var(--mh-*)).
   Serious copy: no animation; the only glow is the hover/focus state of the source chip (quick 261016-wto). */

.mh-steps__list {
  display: grid;
  gap: var(--mh-space-3);
  margin: 0 0 var(--mh-space-6);
  padding: 0;
  list-style: none;
  counter-reset: mh-step;
}

.mh-steps__item {
  position: relative;
  padding: var(--mh-space-4) var(--mh-space-4) var(--mh-space-4) 4rem;
  border: 1px solid var(--mh-surface-line);
  border-radius: var(--mh-radius-md);
  background: var(--mh-surface);
  counter-increment: mh-step;
}

/* the number marker is drawn with a CSS counter, no glyph arrows or emoji */
.mh-steps__item::before {
  content: counter(mh-step);
  position: absolute;
  top: var(--mh-space-4);
  left: var(--mh-space-4);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--mh-accent);
  border-radius: var(--mh-radius-full);
  color: var(--mh-accent);
  font-family: var(--mh-font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.mh-steps__title {
  display: block;
  font-family: var(--mh-font-display);
  font-size: 1.125rem;
  line-height: 1.3;
}

.mh-steps__item p {
  margin: var(--mh-space-1) 0 0;
  color: var(--mh-text);
}

/* ---- who pays: the locked sentence and its qualifier belong together ---- */
.mh-fee {
  margin: 0 0 var(--mh-space-6);
  padding: var(--mh-space-4) var(--mh-space-4) var(--mh-space-4) var(--mh-space-6);
  border-left: 4px solid var(--mh-accent);
  background: var(--mh-surface);
  border-radius: 0 var(--mh-radius-md) var(--mh-radius-md) 0;
}

.mh-fee__claim {
  margin: 0 0 var(--mh-space-2);
  font-family: var(--mh-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.mh-fee__note {
  margin: 0;
  color: var(--mh-text);
}

/* ---- the calculator teaser ---- */
.mh-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--mh-space-2) var(--mh-space-3);
  margin: var(--mh-space-6) 0 0;           /* clear space under the pink button above it */
}

/* solid yellow button (D-14): dark ink on --mh-gold, the same pair as the PROTOTYP label */
.mh-soon__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--mh-tap);
  padding: 0 20px;
  border-radius: var(--mh-radius-md);
  background: var(--mh-gold);
  color: var(--mh-label-ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.mh-soon__link:hover {
  background: var(--mh-brass-light);
}

.mh-soon__link:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

/* ---- "Proč ne až za rok": three sourced reasons, no urgency tricks (LAND-05) ---- */
.mh-why__intro {
  margin: 0 0 var(--mh-space-4);
  color: var(--mh-text);
}

.mh-why__list {
  display: grid;
  gap: var(--mh-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-why__item {
  padding: var(--mh-space-4);
  border: 1px solid var(--mh-surface-line);
  border-radius: var(--mh-radius-md);
  background: var(--mh-surface);
}

.mh-why__title {
  display: block;
  font-family: var(--mh-font-display);
  font-size: 1.125rem;
  line-height: 1.3;
}

.mh-why__text {
  margin: var(--mh-space-1) 0 0;
  min-height: 3em;                        /* room for the hydrated fact, so it does not shift the layout */
  color: var(--mh-text);
}

.mh-fact {
  font-weight: 600;
}

/* ---- source chip (quick 261016-wto): a small bordered chip at the bottom right of its card ---- */
.mh-source {
  display: flex;
  justify-content: flex-end;
  margin: var(--mh-space-2) 0 0;
  min-height: 2rem;                       /* reserves the chip height, so hydration does not shift the layout */
  font-size: 0.875rem;
  color: var(--mh-text-muted);
}

.mh-source__link {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  max-width: 100%;
  color: var(--mh-text-muted);
  text-decoration: none;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* an unhydrated or missing source never shows an empty pill (WR-03) */
.mh-source__link:empty {
  display: none;
}

/* the border and the arrow, not colour alone, mark it as a link (WCAG 1.4.1); facts.js sets href only for https:// URLs */
.mh-source__link[href] {
  position: relative;
  gap: var(--mh-space-1);
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--mh-gold);
  border-radius: var(--mh-radius-full);
  color: var(--mh-gold);
  transition: color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

/* hit area of about 48 px without visual bulk: a pseudo-element hit counts as a hit on the link */
.mh-source__link[href]::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

/* the alt text after the slash is empty, so the accessible name stays "Zdroj: ..."; a browser without alt-text support drops the declaration and shows no arrow */
.mh-source__link[href]::after {
  content: "\2197" / "";
  flex: none;
}

.mh-source__link[href]:hover {
  color: var(--mh-brass-light);
  border-color: var(--mh-brass-light);
  box-shadow: var(--mh-glow-soft);
}

.mh-source__link[href]:focus-visible {
  color: var(--mh-brass-light);
  border-color: var(--mh-brass-light);
  box-shadow: var(--mh-glow-soft);
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}

.mh-source__link:not([href]) {
  padding: 0;
  border: 0;
  color: var(--mh-text-muted);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .mh-source__link[href],
  .mh-soon__link {
    transition: none;
  }
}

/* ---- Google reviews (LAND-07): verbatim quotes with a shortened first name, the source named as plain text ---- */
.mh-reviews__note {
  margin: 0 0 var(--mh-space-4);
  color: var(--mh-text-muted);
}

.mh-review {
  margin: 0 0 var(--mh-space-3);
  padding: var(--mh-space-4);
  border: 1px solid var(--mh-surface-line);
  border-radius: var(--mh-radius-md);
  background: var(--mh-surface);
}

.mh-review__quote {
  margin: 0 0 var(--mh-space-2);
  padding: 0 0 0 var(--mh-space-3);
  border-left: 3px solid var(--mh-accent);
  color: var(--mh-text);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.mh-review__quote p {
  margin: 0;
}

.mh-review__who {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mh-space-1) var(--mh-space-3);
  margin: 0;
  color: var(--mh-text-muted);
  font-size: 0.875rem;
}

.mh-review__name {
  color: var(--mh-text);
  font-weight: 700;
}

.mh-reviews__more {
  display: flex;
  justify-content: flex-end;
  margin: var(--mh-space-4) 0 0;
  min-height: var(--mh-tap);              /* reserves the space for the hydrated link: no layout shift */
}

.mh-reviews__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--mh-tap);
  color: var(--mh-text-muted);
  text-decoration: none;
}

/* the same yellow pill as the source links (D-13), but a full 48 px target because it stands in the main column */
.mh-reviews__link[href] {
  padding: 0 var(--mh-space-4);
  border: 1px solid var(--mh-gold);
  border-radius: var(--mh-radius-full);
  color: var(--mh-gold);
  transition: color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.mh-reviews__link[href]:hover {
  color: var(--mh-brass-light);
  border-color: var(--mh-brass-light);
  box-shadow: var(--mh-glow-soft);
}

.mh-reviews__link[href]:focus-visible {
  color: var(--mh-brass-light);
  border-color: var(--mh-brass-light);
  box-shadow: var(--mh-glow-soft);
}

/* after the pill rules above, so it wins at equal specificity */
@media (prefers-reduced-motion: reduce) {
  .mh-reviews__link[href] {
    transition: none;
  }
}

.mh-reviews__link:not([href]) {
  color: var(--mh-text-muted);
  text-decoration: none;
}

.mh-reviews__link:focus-visible {
  outline: 3px solid var(--mh-accent);
  outline-offset: 2px;
}
