/* SEO landing — light, fast, no JS dependencies */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1d2329;
  background: #fafbfc;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.seo-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}
.seo-header .container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
}
.seo-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.seo-logo img { display: block; border-radius: 9px; }
.seo-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.seo-logo-name { font-weight: 800; font-size: 0.98rem; }
.seo-logo-sub { font-size: 0.72rem; color: #5dc9bd; font-weight: 600; }
.seo-cta-header { margin-left: auto; }
.seo-cta {
  display: inline-block;
  background: linear-gradient(135deg, #5dc9bd, #7c6ff5);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(124, 111, 245, 0.28);
  transition: transform 0.12s, box-shadow 0.2s;
}
.seo-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 111, 245, 0.4); }

/* Article */
article { padding: 28px 0 60px; }
h1 {
  font-size: 2rem;
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #5dc9bd, #7c6ff5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 1.35rem;
  margin: 38px 0 14px;
  line-height: 1.3;
}
h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.lede { font-size: 1.05rem; line-height: 1.6; margin: 0 0 16px; }
.lede a { color: #5b59d9; font-weight: 600; }

/* Hero CTA banner */
.seo-cta-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fff7e6, #ffeed1);
  border: 1.5px solid #f0c074;
  border-radius: 16px;
  padding: 18px 22px;
  margin: 22px 0;
}
.seo-cta-banner > div { flex: 1; min-width: 0; }
.seo-cta-banner strong { font-size: 1.05rem; display: block; margin-bottom: 4px; color: #6e4a14; }
.seo-cta-banner p { margin: 0; font-size: 0.92rem; color: #7a5a2b; }
@media (max-width: 560px) {
  .seo-cta-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .seo-cta-banner .seo-cta { text-align: center; }
}

/* Table of contents */
.seo-toc {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
}
.seo-toc h2 { margin: 0 0 10px; font-size: 1rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.06em; }
.seo-toc ol { margin: 0; padding-left: 1.2em; }
.seo-toc li { padding: 4px 0; }
.seo-toc a { color: #1d2329; text-decoration: none; }
.seo-toc a:hover { color: #5b59d9; text-decoration: underline; }
.toc-num {
  display: inline-block;
  background: #ede9fe;
  color: #5b59d9;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 6px;
}
.toc-count { color: #8a92a0; font-size: 0.88em; }

/* Verb section header */
.verb-section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(93,201,189,0.10), transparent 80%);
  border-left: 5px solid #5dc9bd;
  border-radius: 12px;
}
.sec-id, .sub-id {
  background: #5dc9bd;
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.sec-title, .sub-pattern { font-weight: 700; }
.sec-count, .sub-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
}
.verb-sub h3 .sub-id { background: #7c6ff5; }

/* Verb table */
.verb-table-wrap {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 18px;
}
.verb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.verb-table thead th {
  background: #f4f6f8;
  color: #5d6975;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 9px 14px;
  font-weight: 700;
}
.verb-table tbody td {
  padding: 11px 14px;
  border-top: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}
.verb-table tbody tr:hover { background: rgba(93,201,189,0.05); }
.verb-table td.emoji { width: 36px; font-size: 1.15rem; text-align: center; padding: 11px 6px; }
.verb-table td.inf { font-weight: 700; }
.verb-table td.cs { color: #5d6975; }
@media (max-width: 560px) {
  .verb-table { font-size: 0.88rem; }
  .verb-table thead th { padding: 8px 10px; font-size: 0.72rem; }
  .verb-table tbody td { padding: 10px 10px; }
  .verb-table td.emoji { width: 28px; padding: 10px 4px; }
}

/* FAQ */
.faq { margin: 36px 0; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  margin: 0 0 10px;
  padding: 12px 16px;
}
.faq-item[open] { box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #8a92a0;
  transition: transform 0.18s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-item p { margin: 10px 0 4px; color: #3b454f; line-height: 1.55; }
.faq-item strong { color: #1d2329; }
.faq-item em { color: #5b59d9; font-style: normal; font-weight: 600; }

/* Footer */
.seo-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 22px 0;
  margin-top: 40px;
  background: #fff;
}
.seo-footer p { margin: 4px 0; color: #6b7280; font-size: 0.88rem; }
.seo-footer a { color: #5b59d9; text-decoration: none; }
.seo-footer a:hover { text-decoration: underline; }
.seo-foot-meta { font-size: 0.78rem; }

/* --- Per-group landing pages (/skupina/<slug>/) --- */
.breadcrumb {
  font-size: 0.92rem;
  color: #6b7280;
  margin: 8px 0 18px;
}
.breadcrumb a {
  color: #5b59d9;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: #1d2329; font-weight: 600; }

.h1-pattern {
  display: inline-block;
  background: linear-gradient(135deg, #5dc9bd, #5b59d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  padding: 0 4px;
}

.rule-box {
  background: #f7f9fc;
  border-left: 4px solid #5dc9bd;
  padding: 14px 18px;
  margin: 22px 0;
  border-radius: 8px;
}
.rule-box h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #1d2329;
}
.rule-box p {
  margin: 0;
  color: #3b454f;
  line-height: 1.55;
}

.why-groups {
  margin: 36px 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
}
.why-groups h2 { margin-top: 0; }
.why-groups p { color: #3b454f; line-height: 1.6; }
.why-groups a { color: #5b59d9; }

.related {
  margin: 30px 0 20px;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.related-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  text-decoration: none;
  color: #1d2329;
  transition: border-color 0.15s, transform 0.15s;
}
.related-list a:hover {
  border-color: #5dc9bd;
  transform: translateY(-1px);
}
.rel-id {
  font-size: 0.78rem;
  background: #5b59d9;
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.rel-pattern { flex: 1; font-weight: 600; }
.rel-count { color: #6b7280; font-size: 0.85rem; }

/* TOC sub-rows on jumbo page */
.toc-sub {
  margin-left: 16px;
  font-size: 0.93rem;
}
.toc-sub a { color: #3b454f; }

/* "Detail skupiny →" link in jumbo H3 */
.sub-deep {
  font-size: 0.82rem;
  color: #5b59d9;
  text-decoration: none;
  margin-left: 6px;
  white-space: nowrap;
}
.sub-deep:hover { text-decoration: underline; }

/* Screen-reader-only utility (used for <caption> in tables — invisible to sighted users, readable by Google/screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Group story (unique content per /skupina/* page) --- */
.group-story {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--bg-elev, #fff);
  border: 1px solid var(--border, #e5e9ef);
  border-left: 4px solid var(--accent, #ff6b6b);
  border-radius: 12px;
  line-height: 1.65;
}
.group-story h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}
.group-story h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.02rem;
  color: var(--text, #1d2330);
}
.group-story p { margin: 0 0 0.75rem; }
.group-story .example-sentence {
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 0.85rem;
}
.group-story .example-cs {
  display: block;
  color: var(--muted, #5a6675);
  font-size: 0.92em;
  margin-top: 0.25rem;
}
.story-list {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.25rem;
}
.story-list li { margin-bottom: 0.35rem; }
[data-theme="dark"] .group-story {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  border-left-color: var(--accent, #ff6b6b);
}
[data-theme="dark"] .group-story .example-sentence {
  background: rgba(255,255,255,0.05);
}

/* Print-friendly */
@media print {
  .seo-header, .seo-cta-banner, .seo-footer { display: none; }
  body { background: #fff; }
}
