:root {
  --fb-blue: #0866ff;
  --fb-bg: #f0f2f5;
  --fb-card: #ffffff;
  --fb-ink: #050505;
  --fb-secondary: #65676b;
  --fb-line: #ced0d4;
  --fb-soft: #e4e6eb;
  --gold: #cda64c;
  --rise: #b16b3d;
  --reset: #394783;
  --immuno: #7868be;
  --combined: #b58a37;
  --fb-font: "Segoe UI Historic", "Segoe UI", Helvetica, Arial, sans-serif;
  --cover-font: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--fb-bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--fb-ink);
  background: var(--fb-bg);
  font-family: var(--fb-font);
  font-size: 15px;
  line-height: 1.3333;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--fb-blue);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-toolbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  min-height: 66px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background: rgba(6, 8, 12, 0.82);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.toolbar-brand {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  text-decoration: none;
}

.toolbar-brand img {
  width: 104px;
  height: auto;
}

.toolbar-brand span {
  overflow: hidden;
  padding-left: 16px;
  border-left: 1px solid rgba(224, 199, 127, 0.38);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 14px;
}

.language-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: rgba(255, 255, 255, 0.66);
}

.language-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.language-option {
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.language-option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.language-option.is-active {
  color: #fff;
  background: var(--fb-blue);
  box-shadow: 0 3px 12px rgba(8, 102, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.language-option:focus-visible,
.toolbar-brand:focus-visible,
.cover-scroll:focus-visible {
  outline: 3px solid #e0c77f;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.document-shell {
  min-height: 100vh;
}

.cover {
  position: relative;
  min-height: min(100vh, 980px);
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #07090d;
}

.cover::before {
  position: absolute;
  inset: -24px;
  z-index: -4;
  background: url("assets/generated/cover-premium-v1.png") center / cover no-repeat;
  content: "";
  filter: blur(18px) brightness(0.48) saturate(0.85);
  transform: scale(1.04);
}

.cover-image,
.cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-image {
  z-index: -3;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 900px) {
  .cover-image {
    object-position: center bottom;
  }
}

.cover-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 7, 12, 0.14), rgba(4, 7, 12, 0.06) 42%, rgba(4, 7, 12, 0.64)),
    linear-gradient(90deg, rgba(7, 9, 14, 0.35), transparent 58%);
}

.cover-content {
  width: min(820px, calc(100% - 64px));
  padding: clamp(116px, 13vh, 146px) 0 54px clamp(32px, 7vw, 82px);
}

.cover-logo {
  width: 185px;
  height: auto;
  margin-bottom: clamp(46px, 8vh, 76px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.cover-kicker,
.cover-meta {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cover-kicker {
  margin-bottom: 18px;
  color: #e0c77f;
}

.cover h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--cover-font);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.34);
}

html[lang="cs"] .cover h1,
html[lang="fr"] .cover h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.cover-subtitle {
  max-width: 610px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.cover-rule {
  width: 74px;
  height: 2px;
  margin: 28px 0 17px;
  background: linear-gradient(90deg, var(--gold), rgba(205, 166, 76, 0));
}

.cover-meta {
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.12em;
}

.cover-scroll {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 32px;
  padding: 11px 16px 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 9, 14, 0.34);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cover-scroll:hover {
  border-color: rgba(224, 199, 127, 0.64);
  background: rgba(7, 9, 14, 0.56);
  transform: translateY(-1px);
}

.cover-scroll svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.facebook-stage {
  min-height: 100vh;
  padding: 28px 16px 72px;
  background: var(--fb-bg);
}

.feed-column {
  width: min(100%, 680px);
  margin: 0 auto;
}

.group-header,
.notice-card,
.facebook-post,
.feed-footer {
  border-radius: 8px;
  background: var(--fb-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.group-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
}

.group-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: end center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: var(--fb-blue);
  font-family: Arial, sans-serif;
  font-size: 47px;
  font-weight: 700;
  line-height: 0.9;
}

.group-copy p,
.group-copy h2,
.notice-card p,
.feed-footer p {
  margin: 0;
}

.group-overline {
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.group-copy h2 {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.group-copy > p:last-child {
  margin-top: 4px;
  color: var(--fb-secondary);
  font-size: 13px;
}

.notice-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 16px;
  padding: 14px 16px;
}

.notice-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--fb-blue);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
}

.notice-card p {
  color: var(--fb-secondary);
  font-size: 13px;
  line-height: 1.38;
}

.feed-section {
  scroll-margin-top: 78px;
}

.section-divider {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 22px 4px 10px;
}

.section-title-wrap {
  display: flex;
  gap: 9px;
  align-items: center;
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fb-blue);
  box-shadow: 0 0 0 4px rgba(8, 102, 255, 0.11);
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.section-count {
  color: var(--fb-secondary);
  font-size: 13px;
}

.post-list {
  display: grid;
  gap: 16px;
}

.facebook-post {
  overflow: hidden;
}

.post-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  padding: 12px 16px 5px;
}

.avatar {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #d8dade;
}

.avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  filter: blur(2.2px) saturate(0.82) contrast(0.94);
  transform: scale(1.16);
}

.avatar::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    155deg,
    transparent 0 7px,
    rgba(255, 255, 255, 0.25) 7px 8.5px
  );
  box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.08);
  content: "";
  pointer-events: none;
}

.post-author {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 3px;
  color: var(--fb-secondary);
  font-size: 13px;
  line-height: 1.2;
}

.private-meta {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.private-meta svg {
  width: 13px;
  height: 13px;
}

.post-more {
  align-self: start;
  color: var(--fb-secondary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 20px;
  text-align: right;
}

.post-body {
  padding: 8px 16px 12px;
  font-size: 15px;
  line-height: 1.3333;
  white-space: normal;
}

.post-paragraph {
  margin: 0 0 12px;
}

.post-paragraph:last-child {
  margin-bottom: 0;
}

.post-gallery {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--fb-line);
  border-bottom: 1px solid var(--fb-line);
  background: var(--fb-line);
}

.post-gallery.count-2,
.post-gallery.count-4,
.post-gallery.count-5 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-gallery.count-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-gallery.count-3 .post-media:first-child,
.post-gallery.count-5 .post-media:first-child {
  grid-column: 1 / -1;
}

.post-media {
  min-width: 0;
  margin: 0;
  background: #fff;
}

.post-media img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #f7f8fa;
}

.post-gallery[class*="count-"]:not(.count-1) .post-media img {
  height: 330px;
  object-fit: cover;
}

.post-gallery.count-5 .post-media:first-child img,
.post-gallery.count-3 .post-media:first-child img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.media-caption {
  padding: 10px 12px 11px;
  color: var(--fb-secondary);
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.reaction-summary {
  display: flex;
  min-height: 38px;
  gap: 7px;
  align-items: center;
  padding: 8px 16px 6px;
  color: var(--fb-secondary);
  font-size: 15px;
  line-height: 1;
}

.reaction-icons {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.reaction-icon {
  display: grid;
  width: 20px;
  height: 20px;
  margin-left: -3px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 15px;
  line-height: 1;
}

.reaction-like {
  color: #fff;
  background: var(--fb-blue);
  font-size: 12px;
}

.reaction-love {
  color: #fff;
  background: #f55368;
  font-size: 13px;
}

.reaction-total {
  padding-top: 1px;
}

.post-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 16px;
  padding: 4px 0;
  border-top: 1px solid var(--fb-line);
}

.post-action {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 4px;
  color: var(--fb-secondary);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

.post-action:hover {
  background: var(--fb-bg);
}

.post-action svg {
  width: 20px;
  height: 20px;
}

.feed-footer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding: 16px;
}

.group-mark-small {
  width: 36px;
  height: 36px;
  font-size: 33px;
}

.feed-footer strong {
  font-size: 14px;
}

.feed-footer p {
  margin-top: 2px;
  color: var(--fb-secondary);
  font-size: 12px;
}

@media (max-width: 560px) {
  .site-toolbar {
    min-height: 60px;
    padding: 8px 10px 8px 14px;
  }

  .toolbar-brand img {
    width: 84px;
  }

  .toolbar-brand span,
  .language-icon {
    display: none;
  }

  .language-option {
    min-width: 39px;
    height: 30px;
    padding: 0 8px;
  }

  .language-switcher {
    margin-left: 8px;
  }

  .cover {
    min-height: 760px;
  }

  .cover-image {
    object-fit: cover;
    object-position: center;
  }

  .cover-content {
    width: calc(100% - 36px);
    padding: 94px 0 42px 18px;
  }

  .cover-logo {
    width: 142px;
    margin-bottom: 52px;
  }

  .cover h1 {
    font-size: clamp(2.5rem, 13vw, 3.75rem);
    line-height: 0.98;
  }

  html[lang="cs"] .cover h1,
  html[lang="fr"] .cover h1 {
    max-width: 100%;
    font-size: clamp(2.12rem, 10.5vw, 2.75rem);
    line-height: 1;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
  }

  .cover-shade {
    background:
      linear-gradient(180deg, rgba(4, 7, 12, 0.2), rgba(4, 7, 12, 0.16) 40%, rgba(4, 7, 12, 0.72)),
      linear-gradient(90deg, rgba(7, 9, 14, 0.5), rgba(7, 9, 14, 0.08));
  }

  .cover-subtitle {
    max-width: 92%;
  }

  .facebook-stage {
    padding: 12px 0 42px;
  }

  .group-header,
  .notice-card,
  .facebook-post,
  .feed-footer {
    border-radius: 0;
  }

  .group-header,
  .notice-card,
  .feed-footer {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  }

  .section-divider {
    padding-right: 12px;
    padding-left: 12px;
  }

  .section-count {
    max-width: 48%;
    text-align: right;
  }

  .post-meta {
    font-size: 12px;
  }

  .post-action {
    gap: 6px;
    font-size: 13px;
  }

  .post-list {
    gap: 10px;
  }

  .post-gallery[class*="count-"]:not(.count-1) .post-media img {
    height: 230px;
  }

  .media-caption {
    padding: 8px 10px 9px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .language-option,
  .cover-scroll {
    transition: none;
  }
}

@page {
  size: A4 portrait;
  margin: 14mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    background: #fff;
  }

  body {
    font-size: 10.5pt;
  }

  .screen-only {
    display: none !important;
  }

  .skip-link {
    display: none !important;
  }

  .cover {
    min-height: 269mm;
    break-after: page;
  }

  .cover-content {
    width: calc(100% - 28mm);
    padding: 18mm 0 0 14mm;
  }

  .cover h1 {
    font-size: 48pt;
  }

  .facebook-stage {
    padding: 0;
    background: var(--fb-bg);
  }

  .feed-column {
    width: 100%;
  }

  .group-header,
  .notice-card,
  .feed-footer,
  .facebook-post {
    box-shadow: none;
  }

  .group-header,
  .notice-card {
    break-inside: avoid;
  }

  .section-divider {
    break-after: avoid;
  }

  .post-list {
    display: block;
  }

  .facebook-post {
    break-inside: avoid;
    margin-bottom: 5mm;
    border: 0.25mm solid #d7d9dd;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .facebook-post + .facebook-post {
    margin-top: 5mm;
  }

  .facebook-post.allow-print-split {
    break-inside: auto;
  }

  .post-header,
  .reaction-summary,
  .post-actions,
  .post-paragraph,
  .post-media {
    break-inside: avoid;
  }

  .post-header {
    break-after: avoid;
  }

  .post-paragraph {
    orphans: 3;
    widows: 3;
  }

  .post-media img {
    max-height: 190mm;
  }

  .post-gallery[class*="count-"]:not(.count-1) .post-media img {
    height: 90mm;
  }

  .post-gallery.count-5 .post-media:first-child img,
  .post-gallery.count-3 .post-media:first-child img {
    height: auto;
    max-height: 135mm;
  }

  .feed-footer {
    break-inside: avoid;
  }
}
