/* Constitution document pages (/alkotmany/), HU + EN.
 * A reading surface, not a landing page.
 * Shared brand tokens come from ../style.css (theme/tokens.css).
 */

/* Page-scoped: a reading surface, not a landing page.
   Shared tokens come from ../style.css (theme/tokens.css). */

.doc-hero {
  background: var(--navy-700);
  color: var(--on-navy);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.doc-hero-inner { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 1.5rem; }
.doc-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--on-navy);
  margin: 0;
  text-wrap: balance;
}
.doc-rule { width: 4.5rem; height: 3px; background: var(--clay-500); margin: 1.9rem 0 1.5rem; }
.doc-credo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  color: var(--on-navy);
  margin: 0;
  max-width: 30ch;
  text-wrap: balance;
}
.doc-meta {
  margin: 2.2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--on-navy-muted);
  max-width: 62ch;
}

.doc-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; align-items: center; }
.btn-pdf {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--clay-500); color: var(--navy-900);
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  padding: 0.75rem 1.3rem; border-radius: var(--radius);
  transition: transform var(--t), background var(--t);
}
.btn-pdf:hover { transform: translateY(-2px); background: var(--clay-400); }
.btn-pdf svg { width: 1.05em; height: 1.05em; flex: none; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 600;
  color: var(--on-navy-muted); text-decoration: none;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.lang-switch:hover { color: var(--on-navy); border-bottom-color: var(--clay-500); }

.doc-body { max-width: var(--maxw-narrow); margin: 0 auto; padding: clamp(3rem, 7vw, 4.5rem) 1.5rem clamp(4rem, 9vw, 6rem); }

.doc-section + .doc-section { margin-top: clamp(3rem, 6vw, 4.25rem); }

.doc-section > header {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 0.7rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.doc-section > header .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--clay-600); flex: none;
}
.doc-section > header h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  line-height: 1.16; letter-spacing: -0.02em;
  color: var(--navy-700); margin: 0; text-wrap: balance;
}

.doc-body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.13rem; line-height: 1.3; letter-spacing: -0.012em;
  color: var(--navy-800);
  margin: 2.3rem 0 0.6rem;
}
.doc-body h3:first-of-type { margin-top: 0; }
.doc-body h3 .n { color: var(--clay-600); font-weight: 700; margin-right: 0.45em; }

.doc-body p { margin: 0 0 0.95rem; line-height: 1.7; max-width: 68ch; text-wrap: pretty; }

.credo-line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.4;
  letter-spacing: -0.015em; color: var(--navy-700);
  margin: 0; max-width: 26ch; text-wrap: balance;
}

.doc-body ul { margin: 0 0 1.1rem; padding: 0; list-style: none; max-width: 68ch; }
.doc-body li { position: relative; padding-left: 1.5rem; margin-bottom: 0.45rem; line-height: 1.65; }
.doc-body li::before {
  content: ""; position: absolute; left: 0.3rem; top: 0.72em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--clay-500);
}
.lead-in { margin-bottom: 0.5rem !important; font-weight: 600; color: var(--navy-800); }

.etymology {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; margin: 0 0 1.5rem;
}
.etymology p:last-child { margin-bottom: 0; }
.latin { font-family: var(--font-display); font-weight: 600; color: var(--navy-700); }

.doc-close {
  margin-top: clamp(3rem, 6vw, 4rem); padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; line-height: 1.65; color: var(--ink-muted); max-width: 68ch;
}

@media (max-width: 560px) {
  .doc-actions { gap: 0.6rem; }
  .btn-pdf { width: 100%; justify-content: center; }
}

/* ---------- Language selector ---------- */

.lang-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.lang-nav a,
.lang-nav .lang-current {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.lang-nav a {
  color: var(--on-navy-muted);
  transition: color var(--t), border-color var(--t);
}
.lang-nav a:hover,
.lang-nav a:focus-visible {
  color: var(--on-navy);
  border-bottom-color: var(--clay-500);
}
.lang-nav .lang-current {
  color: var(--on-navy);
  border-bottom-color: var(--clay-500);
  cursor: default;
}
