/* MedikPoint.cz — hlavní stylesheet */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a5276;
  --blue-lt: #2e86c1;
  --green:   #1e8449;
  --gray:    #f4f6f9;
  --text:    #212121;
  --muted:   #666;
  --border:  #dde1e7;
  --radius:  6px;
  --max-w:   1100px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

/* ── Header / nav ── */
header {
  background: var(--blue);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

header nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 56px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

header nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

header nav ul a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background 0.15s;
}

header nav ul a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Breadcrumb ── */
nav[aria-label="Drobečková navigace"] {
  background: var(--gray);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

nav[aria-label="Drobečková navigace"] ol {
  max-width: var(--max-w);
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav[aria-label="Drobečková navigace"] li::before { content: "›"; margin-right: 0.25rem; color: var(--muted); }
nav[aria-label="Drobečková navigace"] li:first-child::before { content: ""; }
nav[aria-label="Drobečková navigace"] a { color: var(--blue-lt); text-decoration: none; }
nav[aria-label="Drobečková navigace"] a:hover { text-decoration: underline; }

/* ── Layout ── */
.page-layout {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  aside { order: 2; }
}

/* ── Main article ── */
article { background: #fff; }

article h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--blue);
  margin-bottom: 1rem;
  line-height: 1.25;
}

article h2 {
  font-size: 1.3rem;
  color: var(--blue);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

article h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
}

article p { margin-bottom: 1rem; }

article ul, article ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

article li { margin-bottom: 0.35rem; }

article strong { color: var(--blue); }

/* ── FAQ ── */
.faq-item {
  background: var(--gray);
  border-left: 4px solid var(--blue-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  margin-top: 0;
  color: var(--blue);
  font-size: 1rem;
}

.faq-item p { margin-bottom: 0; }

/* ── Author box ── */
.author-box {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--gray);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.author-box p { margin-bottom: 0.25rem; }
.author-box strong { color: var(--text); }

/* ── Disclaimer ── */
.disclaimer {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: #5d4037;
}

/* ── Aside / Related ── */
aside {
  position: sticky;
  top: 72px;
}

.related {
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.related h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
}

.related ul { list-style: none; margin: 0; padding: 0; }

.related li { border-bottom: 1px solid var(--border); }
.related li:last-child { border-bottom: none; }

.related a {
  display: block;
  padding: 0.45rem 0;
  color: var(--blue-lt);
  text-decoration: none;
  font-size: 0.9rem;
}

.related a:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
  background: var(--blue);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

footer nav { margin-bottom: 0.5rem; }
footer a { color: rgba(255,255,255,.85); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Utility ── */
@media (max-width: 480px) {
  header nav ul { display: none; }
}
