/* 04-layout.css — container, sections, grid helpers. */

.tl-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.tl-container--wide { max-width: var(--container-wide); }

.tl-prose { max-width: var(--prose); }

.tl-section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background: var(--c-bone);
}

.tl-section--alt { background: var(--c-bone-alt); }

.tl-section--ink {
  background: var(--c-ink-bg);
  color: var(--c-bone);
}

.tl-section--ink h1,
.tl-section--ink h2,
.tl-section--ink h3,
.tl-section--ink p {
  color: var(--c-ink-bg-text);
}

.tl-section--ink .tl-meta-mono,
.tl-section--ink .tl-byline-inline {
  color: var(--c-ink-bg-muted);
}

.tl-section--ink a:not(.tl-link):not(.tl-btn-solid) {
  color: var(--c-mustard);
  border-bottom: 1px solid rgba(184, 135, 31, 0.4);
  text-decoration: none;
}

.tl-section--ink .tl-btn-solid {
  background: var(--c-bone);
  color: var(--c-ink);
}
.tl-section--ink .tl-btn-solid:hover {
  background: var(--c-mustard);
}

.tl-section--ink .tl-kicker { color: var(--c-mustard); }

/* Grids */
.tl-grid {
  display: grid;
  gap: 32px;
}
.tl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tl-twocol {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 56px;
  align-items: center;
}

.tl-twocol--reversed {
  grid-template-columns: 45% 55%;
}
.tl-twocol--reversed > .tl-twocol__media { order: 0; }
.tl-twocol--reversed > .tl-twocol__text  { order: 1; }

.tl-twocol__media img,
.tl-twocol__media picture {
  width: 100%;
}

@media (max-width: 1024px) {
  .tl-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-twocol, .tl-twocol--reversed {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .tl-grid--2,
  .tl-grid--3,
  .tl-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Helpers — ALL flex/grid children honor min-width: 0 to avoid blowing up containers */
.tl-grid > *,
.tl-twocol > *,
.tl-twocol--reversed > * { min-width: 0; }

/* Common feature list (hairline separators, NIE ikony) */
.tl-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.tl-feature-list__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}
.tl-feature-list__item:last-child { border-bottom: 0; }
.tl-feature-list__head {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.tl-feature-list__desc {
  font-size: var(--f-body-s);
  color: var(--c-ink-muted);
}

/* Steps (CTA ink section — Látogatás terve) */
.tl-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.tl-step__num {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-mustard);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.tl-step__head {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--c-ink-bg-text);
  margin-bottom: 6px;
}
.tl-step__copy {
  font-size: var(--f-body-s);
  color: var(--c-ink-bg-muted);
}
@media (max-width: 900px) {
  .tl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .tl-steps { grid-template-columns: 1fr; }
}

/* Inline anchor nav */
.tl-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
  margin-top: 16px;
}
.tl-anchor-nav__item {
  padding: 4px 0;
  text-decoration: none;
  color: var(--c-ink-muted);
  transition: color var(--t-fast);
}
.tl-anchor-nav__item:hover { color: var(--c-ox); }
.tl-anchor-nav__item + .tl-anchor-nav__item { margin-left: 8px; }
.tl-anchor-nav__item + .tl-anchor-nav__item::before {
  content: '·';
  margin-right: 8px;
  color: var(--c-stone);
}
