/*
Theme Name: Premium Reface Theme
Theme URI: https://marokarlin.cz/
Author: Reface WP Site Generator
Description: Unique premium localized Gutenberg editorial theme generated by Reface.
Version: 1.0.0
Text Domain: premium-reface-theme-ac5066cf
*/

:root {
  --rf-ac5066cf-brand-primary: #24242499;
  --rf-ac5066cf-brand-accent: #c0b29a;
  --rf-ac5066cf-brand-night: #121212;
  --rf-ac5066cf-ink: #20242a;
  --rf-ac5066cf-paper: #3e3e3e99;
  --rf-ac5066cf-card: #ffffff;
  --rf-ac5066cf-primary: #20242a;
  --rf-ac5066cf-accent: color-mix(in srgb, #20242a 62%, transparent);
  --rf-ac5066cf-soft: #eef0f2;
  --rf-ac5066cf-night: #20242a;
  --rf-ac5066cf-font-body: "Arial", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rf-ac5066cf-font-heading: "Arial", Georgia, "Times New Roman", serif;
  --rf-ac5066cf-font-accent: "Arial", ui-sans-serif, sans-serif;
  --rf-ac5066cf-line: color-mix(in srgb, var(--rf-ac5066cf-ink) 16%, transparent);
  --rf-ac5066cf-shadow: 0 24px 70px rgba(16, 33, 27, .12);
  --rf-ac5066cf-content: 1240px;
  --rf-ac5066cf-wide: 1480px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body.rf-ac5066cf-body {
  margin: 0;
  background: var(--rf-ac5066cf-paper);
  color: var(--rf-ac5066cf-ink);
  font-family: var(--rf-ac5066cf-font-body);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}
body.rf-ac5066cf-body a { color: var(--rf-ac5066cf-primary); text-underline-offset: .18em; }
body.rf-ac5066cf-body img { max-width: 100%; height: auto; }

.rf-ac5066cf-header {
  width: 100%;
  background: linear-gradient(135deg, var(--rf-ac5066cf-brand-primary), var(--rf-ac5066cf-brand-night));
  border-bottom: 3px solid var(--rf-ac5066cf-brand-accent);
  position: relative;
  z-index: 50;
}
.rf-ac5066cf-header__inner {
  width: min(calc(100% - 40px), var(--rf-ac5066cf-wide));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.rf-ac5066cf-header__branding {
  min-width: 0;
  flex: 0 1 460px;
}
.rf-ac5066cf-brand {
  display: inline-flex;
  align-items: center;
  width: min(100%, 440px);
  overflow: visible;
  text-decoration: none;
}
.rf-ac5066cf-brand img, .rf-ac5066cf-brand .custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}
.rf-ac5066cf-header__aside {
  min-width: 0;
  margin-left: auto;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.rf-ac5066cf-header__title {
  max-width: 680px;
  color: #fff;
  font-family: var(--rf-ac5066cf-font-heading);
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}
.rf-ac5066cf-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.rf-ac5066cf-nav ul { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rf-ac5066cf-nav li { margin: 0; padding: 0; }
.rf-ac5066cf-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.rf-ac5066cf-nav a:hover, .rf-ac5066cf-nav .current-menu-item > a {
  background: rgba(255, 255, 255, .15);
  box-shadow: inset 0 -2px 0 var(--rf-ac5066cf-brand-accent);
  color: #fff;
}

.rf-ac5066cf-main {
  width: min(calc(100% - 40px), var(--rf-ac5066cf-wide));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 72px) 0 76px;
}
.rf-ac5066cf-article {
  width: min(100%, var(--rf-ac5066cf-content));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 68px);
  background: var(--rf-ac5066cf-card);
  border: 1px solid var(--rf-ac5066cf-line);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(26, 31, 36, .08);
}
.rf-ac5066cf-entry { width: 100%; }
.rf-ac5066cf-entry > * { max-width: 100%; }
.rf-ac5066cf-entry > .alignwide {
  width: min(var(--rf-ac5066cf-wide), calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.rf-ac5066cf-entry > .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.rf-ac5066cf-entry h1 {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(24px, 4vw, 42px);
  color: var(--rf-ac5066cf-night);
  font-family: var(--rf-ac5066cf-font-heading);
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: wrap;
}
.rf-ac5066cf-entry h2, .rf-ac5066cf-entry h3, .rf-ac5066cf-entry h4 {
  color: var(--rf-ac5066cf-night);
  font-family: var(--rf-ac5066cf-font-heading);
  line-height: 1.2;
  text-wrap: balance;
}
.rf-ac5066cf-entry h2 { margin-top: 2.2em; font-size: clamp(1.65rem, 3vw, 2.45rem); }
.rf-ac5066cf-entry h3 { margin-top: 1.8em; font-size: clamp(1.3rem, 2vw, 1.75rem); }
.rf-ac5066cf-hero {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--rf-ac5066cf-night);
  box-shadow: 0 22px 54px rgba(13, 33, 27, .2);
}
.rf-ac5066cf-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rf-ac5066cf-byline { margin: 14px 0 34px; font-size: 14px; color: color-mix(in srgb, var(--rf-ac5066cf-ink) 70%, transparent); }
.rf-ac5066cf-byline a { font-weight: 800; }

body.rf-ac5066cf-body .rf-ac5066cf-entry ul:not(.wp-block-navigation__container),
body.rf-ac5066cf-body .rf-ac5066cf-entry ol {
  margin: 1.5rem 0 1.8rem;
  padding: 0;
  list-style: none;
  counter-reset: rf-ac5066cf-list;
}
body.rf-ac5066cf-body .rf-ac5066cf-entry li {
  position: relative;
  margin: 10px 0;
  padding: 15px 18px 15px 54px;
  border: 1px solid var(--rf-ac5066cf-line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rf-ac5066cf-card), color-mix(in srgb, var(--rf-ac5066cf-soft) 45%, var(--rf-ac5066cf-card)));
}
body.rf-ac5066cf-body .rf-ac5066cf-entry ul > li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--rf-ac5066cf-accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--rf-ac5066cf-card);
}
body.rf-ac5066cf-body .rf-ac5066cf-entry ol > li { counter-increment: rf-ac5066cf-list; }
body.rf-ac5066cf-body .rf-ac5066cf-entry ol > li::before {
  content: counter(rf-ac5066cf-list);
  position: absolute;
  left: 16px;
  top: 13px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--rf-ac5066cf-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
body.rf-ac5066cf-body .rf-ac5066cf-entry li > ul,
body.rf-ac5066cf-body .rf-ac5066cf-entry li > ol { margin-bottom: 0; }

body.rf-ac5066cf-body .rf-ac5066cf-entry .wp-block-table {
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid var(--rf-ac5066cf-line);
  border-radius: 18px;
  background: var(--rf-ac5066cf-card);
  box-shadow: 0 16px 44px rgba(16, 33, 27, .08);
}
body.rf-ac5066cf-body .rf-ac5066cf-entry .wp-block-table table { width: 100%; border: 0; border-collapse: collapse; min-width: 640px; }
body.rf-ac5066cf-body .rf-ac5066cf-entry .wp-block-table th {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, #fff 18%, transparent);
  background: var(--rf-ac5066cf-night);
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
body.rf-ac5066cf-body .rf-ac5066cf-entry .wp-block-table td {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--rf-ac5066cf-line);
  vertical-align: top;
}
body.rf-ac5066cf-body .rf-ac5066cf-entry .wp-block-table tr:nth-child(even) td { background: color-mix(in srgb, var(--rf-ac5066cf-soft) 38%, transparent); }
body.rf-ac5066cf-body .rf-ac5066cf-entry .wp-block-table tr:last-child td { border-bottom: 0; }
body.rf-ac5066cf-body .rf-ac5066cf-entry .wp-block-table figcaption { padding: 12px 18px; color: color-mix(in srgb, var(--rf-ac5066cf-ink) 66%, transparent); font-size: 13px; }

body.rf-ac5066cf-body .rf-ac5066cf-entry details.wp-block-details {
  margin: 14px 0;
  padding: 0;
  border: 1px solid var(--rf-ac5066cf-line);
  border-radius: 16px;
  background: var(--rf-ac5066cf-card);
  overflow: hidden;
}
body.rf-ac5066cf-body .rf-ac5066cf-entry details.wp-block-details summary {
  position: relative;
  cursor: pointer;
  padding: 20px 58px 20px 22px;
  color: var(--rf-ac5066cf-night);
  font-weight: 900;
  list-style: none;
}
body.rf-ac5066cf-body .rf-ac5066cf-entry details.wp-block-details summary::-webkit-details-marker { display: none; }
body.rf-ac5066cf-body .rf-ac5066cf-entry details.wp-block-details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 15px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rf-ac5066cf-soft);
  color: var(--rf-ac5066cf-primary);
}
body.rf-ac5066cf-body .rf-ac5066cf-entry details[open].wp-block-details summary::after { content: "−"; }
body.rf-ac5066cf-body .rf-ac5066cf-entry details.wp-block-details > :not(summary) { margin: 0; padding: 0 22px 22px; }

.rf-ac5066cf-author {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 15px;
  align-items: center;
  margin-top: 42px;
  padding: 16px 18px;
  border: 1px solid var(--rf-ac5066cf-line);
  border-radius: 16px;
  background: var(--rf-ac5066cf-card);
}
.rf-ac5066cf-author img, .rf-ac5066cf-author > svg { width: 76px; height: 76px; object-fit: cover; border-radius: 13px; }
.rf-ac5066cf-author h2 { margin: 0 0 3px; font-size: 1.25rem; }
.rf-ac5066cf-author__role { margin: 0 0 5px; color: #58616a; font-size: 13px; font-weight: 800; }
.rf-ac5066cf-author p { font-size: 14px; line-height: 1.55; }
.rf-ac5066cf-author p:last-child { margin-bottom: 0; }

.rf-ac5066cf-widget {
  --rf-ac5066cf-widget-zoom: 1;
  --rf-ac5066cf-widget-mobile-zoom: .82;
  width: 100%;
  min-height: var(--rf-ac5066cf-widget-min-height, 620px);
  margin: 26px 0;
  overflow-x: auto;
}
.rf-ac5066cf-widget__scale {
  width: calc(100% / var(--rf-ac5066cf-widget-zoom));
  transform: scale(var(--rf-ac5066cf-widget-zoom));
  transform-origin: top left;
}
.rf-ac5066cf-footer {
  width: 100%;
  margin: 0;
  padding: 34px max(20px, calc((100vw - var(--rf-ac5066cf-wide)) / 2));
  border-top: 3px solid var(--rf-ac5066cf-brand-accent);
  background: linear-gradient(135deg, var(--rf-ac5066cf-brand-night), var(--rf-ac5066cf-brand-primary));
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

@media (max-width: 820px) {
  .rf-ac5066cf-header__inner { min-height: 86px; flex-wrap: wrap; padding: 12px 0; }
  .rf-ac5066cf-header__branding { flex: 0 1 min(55vw, 320px); }
  .rf-ac5066cf-brand { width: 100%; }
  .rf-ac5066cf-brand img, .rf-ac5066cf-brand .custom-logo { max-height: 60px; }
  .rf-ac5066cf-header__aside { flex: 1 1 auto; flex-wrap: wrap; gap: 10px; }
  .rf-ac5066cf-header__title { max-width: 42vw; font-size: 13px; }
  .rf-ac5066cf-menu-toggle { display: grid; place-items: center; margin-left: auto; }
  .rf-ac5066cf-nav { display: none; width: 100%; }
  .rf-ac5066cf-nav.is-open { display: block; }
  .rf-ac5066cf-nav ul { display: grid; gap: 6px; padding: 12px 0; }
  .rf-ac5066cf-nav a { width: 100%; border-radius: 12px; }
  .rf-ac5066cf-main { width: min(calc(100% - 22px), var(--rf-ac5066cf-wide)); padding-top: 18px; }
  .rf-ac5066cf-article { padding: 22px 17px 30px; border-radius: 21px; }
  .rf-ac5066cf-entry h1 { font-size: clamp(1.9rem, 9.2vw, 2.7rem); }
  .rf-ac5066cf-hero { border-radius: 17px; }
  .rf-ac5066cf-author { grid-template-columns: 62px 1fr; padding: 14px; gap: 12px; }
  .rf-ac5066cf-author img, .rf-ac5066cf-author > svg { width: 62px; height: 62px; border-radius: 11px; }
  .rf-ac5066cf-author p { grid-column: 1 / -1; }
  .rf-ac5066cf-widget__scale {
    width: calc(100% / var(--rf-ac5066cf-widget-mobile-zoom));
    transform: scale(var(--rf-ac5066cf-widget-mobile-zoom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
