@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Source+Sans+3:ital,wght@0,400..700;1,400&display=swap");


/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --mr-paper: #ffffff;
  --mr-oat: #f7f2ec;               /* page background */
  --mr-line: #eadfd4;
  --mr-field: #a99a8d;

  --mr-ink: #2b2522;
  --mr-ink-soft: #6a5f58;

  --mr-berry: #b8325a;             /* links, buttons */
  --mr-berry-deep: #8f2244;
  --mr-mustard: #f2b134;           /* highlighter stroke, decorative */
  --mr-mustard-soft: rgba(242, 177, 52, 0.45);

  /* one colour per category (dots only, text stays dark) */
  --mr-cat-rozhovory: #5b4fa8;
  --mr-cat-recepty: #d9822b;
  --mr-cat-zivot: #b8325a;
  --mr-cat-inspirace: #2a8c82;
  --mr-cat-vylety: #3c7d3a;
  --mr-cat-omne: #c08a00;

  --mr-font-head: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --mr-font-text: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --mr-container: 1200px;
  --mr-gutter: clamp(1rem, 3.5vw, 2rem);
  --mr-radius: 14px;
  --mr-shadow: 0 1px 2px rgba(43, 37, 34, 0.06), 0 8px 24px -14px rgba(43, 37, 34, 0.25);
}


/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--mr-font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--mr-ink);
  background-color: var(--mr-oat);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--mr-berry);
  text-decoration: none;
}

a:hover {
  color: var(--mr-berry-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--mr-font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mr-ink);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--mr-line);
}

::selection {
  color: var(--mr-ink);
  background: var(--mr-mustard);
}

.clear::after {
  content: "";
  display: table;
  clear: both;
}

/* The theme's table-based column wrappers behave as plain blocks */
.row-inner,
.uncol,
.uncoltable,
.uncell,
.uncont {
  display: block;
}

[class*="col-lg-"] {
  float: none;
  width: auto;
  min-width: 0;
}


/* ==========================================================================
   3. Theme machinery that would hide or misplace content without scripts
   ========================================================================== */

/* Frame borders, scroll-to-top button, social-share data */
.body-borders,
.footer-scroll-top,
#mv-grow-data,
.desktop-hidden,
.mobile-menu-button,
.mmb-container {
  display: none !important;
}

/* Fade-in animations: always visible */
.animate_when_almost_visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Icon-font glyphs (the icon font may be missing in the restore) */
i.fa,
i[class*="fa-"] {
  display: none !important;
}


/* ==========================================================================
   4. Header: logo, then the menu (sticky)
   ========================================================================== */

.menu-wrapper {
  display: contents;
}

.menu-container-mobile {
  background-color: var(--mr-paper);
}

.menu-container-mobile .row-menu {
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem) var(--mr-gutter) 0.75rem;
}

.navbar-brand {
  display: block;
}

.logo-image {
  display: flex;
  justify-content: center;
  height: clamp(56px, 11vw, 150px) !important;
}

.logo-image img {
  width: auto;
  height: 100%;
}

#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--mr-line);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
}

#masthead .row-menu {
  max-width: var(--mr-container);
  margin: 0 auto;
  padding: 0 var(--mr-gutter);
}

#masthead .menu-smart {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#masthead .menu-smart > li > a {
  position: relative;
  display: block;
  padding: 0.85rem 0.85rem;
  font-family: var(--mr-font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--mr-ink);
  text-decoration: none;
  /* the page asks for capitals inline; Czech reads better in normal case */
  text-transform: none;
}

#masthead .menu-smart > li > a:hover {
  color: var(--mr-berry);
}

/* The page you are on: a short highlighter stroke */
#masthead .menu-smart > li.active > a::after,
#masthead .menu-smart > li.current-menu-item > a::after,
#masthead .menu-smart > li.current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.55rem;
  z-index: -1;
  height: 0.5em;
  background-color: var(--mr-mustard-soft);
  border-radius: 2px;
}

/* Phones and small tablets: the menu as a sideways strip */
@media (max-width: 959px) {
  #masthead .row-menu {
    padding: 0;
  }

  #masthead .menu-horizontal {
    overflow-x: auto;
    scrollbar-width: none;
  }

  #masthead .menu-horizontal::-webkit-scrollbar {
    display: none;
  }

  #masthead .menu-smart {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    padding: 0 calc(var(--mr-gutter) - 0.6rem);
  }

  #masthead .menu-smart > li > a {
    padding: 0.75rem 0.6rem;
    white-space: nowrap;
  }
}


/* ==========================================================================
   5. Page title ("Aktuálně") with a highlighter stroke
   ========================================================================== */

#page-header .row-header {
  max-width: var(--mr-container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--mr-gutter) 0;
  text-align: center;
}

#page-header h1 {
  display: inline;
  margin: 0;
  padding: 0 0.15em;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  background: linear-gradient(transparent 58%, var(--mr-mustard-soft) 58%, var(--mr-mustard-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

#page-header .separator-break {
  display: none;
}


/* ==========================================================================
   6. Posts and sidebar
   ========================================================================== */

.un-sidebar-layout {
  max-width: var(--mr-container) !important;
  margin: 0 auto !important;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--mr-gutter) clamp(2.5rem, 5vw, 4rem);
}

.un-sidebar-layout > .row-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 959px) {
  .un-sidebar-layout > .row-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Inner rows of the page builder: no extra padding inside the grid */
.post-content .row-parent {
  padding: 0;
}

/* The post grid (the theme's script would place cards absolutely) */
.isotope-container {
  display: grid;
  gap: 1.25rem;
  height: auto !important;
}

.isotope-container > .tmb {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  transform: none !important;
}

.tmb .t-inside {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  overflow: hidden;
  background-color: var(--mr-paper);
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow);
  transition: box-shadow 0.2s ease, translate 0.2s ease;
}

.tmb .t-inside:hover,
.tmb .t-inside:focus-within {
  translate: 0 -2px;
  box-shadow: 0 1px 2px rgba(43, 37, 34, 0.06), 0 16px 32px -16px rgba(43, 37, 34, 0.35);
}

.tmb .t-entry-visual,
.tmb .t-entry-visual-tc,
.tmb .t-entry-visual-cont,
.tmb .t-entry-visual-cont > a {
  position: relative;
  display: block;
  height: 100%;
  min-height: 12rem;
}

.tmb .t-background-cover {
  position: absolute;
  inset: 0;
  background-color: var(--mr-line);
  background-position: center;
  background-size: cover;
}

/* Hover overlays of the theme */
.tmb .t-entry-visual-overlay,
.tmb .t-overlay-wrap {
  display: none;
}

.tmb .t-entry-text-tc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
}

.tmb .t-entry-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
}

.tmb .t-entry-title a {
  color: var(--mr-ink);
  text-decoration: none;
}

.tmb .t-entry-title a:hover {
  color: var(--mr-berry);
}

.tmb .t-entry-excerpt {
  color: var(--mr-ink-soft);
}

.tmb .separator-reduced {
  display: none;
}

/* Category with its colour dot */
.t-entry-meta {
  margin: 0.85rem 0 0;
  font-family: var(--mr-font-head);
  font-size: 0.875rem;
  font-weight: 600;
}

.t-entry-category a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--mr-ink-soft);
  text-decoration: none;
}

.t-entry-category a:hover {
  color: var(--mr-ink);
}

.t-entry-category a::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--mr-dot, var(--mr-berry));
}

.t-entry-category a[href*="/rozhovory/"]      { --mr-dot: var(--mr-cat-rozhovory); }
.t-entry-category a[href*="/recepty/"]        { --mr-dot: var(--mr-cat-recepty); }
.t-entry-category a[href*="/o-zivote/"]       { --mr-dot: var(--mr-cat-zivot); }
.t-entry-category a[href*="/inspirace/"]      { --mr-dot: var(--mr-cat-inspirace); }
.t-entry-category a[href*="/tipy-na-vylety/"] { --mr-dot: var(--mr-cat-vylety); }
.t-entry-category a[href*="/o-mne/"]          { --mr-dot: var(--mr-cat-omne); }

@media (max-width: 639px) {
  .tmb .t-inside {
    grid-template-columns: minmax(0, 1fr);
  }

  .tmb .t-entry-visual,
  .tmb .t-entry-visual-tc,
  .tmb .t-entry-visual-cont,
  .tmb .t-entry-visual-cont > a {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

/* Pagination (its arrows were icon glyphs; drawn here instead) */
.isotope-footer {
  margin-top: 2rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination .btn {
  display: contents;
}

.pagination .page-numbers,
.pagination .page-next > a,
.pagination .page-prev > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.8rem;
  font-family: var(--mr-font-head);
  font-weight: 600;
  color: var(--mr-ink);
  text-decoration: none;
  background-color: var(--mr-paper);
  border: 1px solid var(--mr-line);
  border-radius: 999px;
}

.pagination a.page-numbers:hover,
.pagination .page-next > a:hover,
.pagination .page-prev > a:hover {
  color: var(--mr-berry);
  border-color: var(--mr-berry);
  text-decoration: none;
}

.pagination .page-numbers.current {
  color: #ffffff;
  background-color: var(--mr-berry);
  border-color: var(--mr-berry);
}

.pagination .page-numbers.dots {
  background: none;
  border-color: transparent;
}

.pagination .page-next > a::after {
  content: "›";
  font-size: 1.4rem;
  line-height: 1;
}

.pagination .page-prev > a::after {
  content: "‹";
  font-size: 1.4rem;
  line-height: 1;
}

.pagination .page-prev:not(:has(a)) {
  display: none;
}


/* ==========================================================================
   7. Sidebar widgets
   ========================================================================== */

.col-widgets-sidebar > .uncol {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background-color: var(--mr-paper);
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow);
}

.col-widgets-sidebar .uncell {
  padding: 0 !important;
}

.widget + .widget {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--mr-line);
}

.widget-title {
  display: inline;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  background: linear-gradient(transparent 60%, var(--mr-mustard-soft) 60%, var(--mr-mustard-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.widget-title + * {
  margin-top: 0.75rem;
}

.widget .textwidget {
  color: var(--mr-ink-soft);
}

/* Search, with a drawn magnifier */
.search-container-inner {
  position: relative;
}

.search-field {
  width: 100%;
  padding: 0.7rem 2.6rem 0.7rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--mr-ink);
  background-color: var(--mr-oat);
  border: 1px solid var(--mr-field);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}

.search-field:focus {
  outline: none;
  background-color: var(--mr-paper);
  border-color: var(--mr-berry);
  box-shadow: 0 0 0 3px rgba(184, 50, 90, 0.15);
}

.search-container-inner::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1.05rem;
  height: 1.05rem;
  translate: 0 -50%;
  pointer-events: none;
  background-color: var(--mr-ink-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Social icons */
.custom-html-widget img {
  width: 34px;
  height: 34px;
}

/* Most-read posts, numbered */
.wpp-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: wpp;
}

.wpp-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.1rem;
  line-height: 1.35;
  counter-increment: wpp;
}

.wpp-list li::before {
  content: counter(wpp);
  position: absolute;
  top: 0.45rem;
  left: 0;
  font-family: var(--mr-font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mr-berry);
}

.wpp-list a {
  color: var(--mr-ink);
  font-weight: 600;
}

.wpp-list a:hover {
  color: var(--mr-berry);
}

/* Tags as chips, in normal case instead of capitals */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tagcloud a {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-family: var(--mr-font-text);
  font-size: 0.875rem !important;
  font-weight: 600;
  line-height: 1.4;
  text-transform: lowercase;
  color: var(--mr-ink);
  background-color: var(--mr-oat);
  border-radius: 999px;
}

.tagcloud a::first-letter {
  text-transform: uppercase;
}

.tagcloud a:hover {
  color: #ffffff;
  background-color: var(--mr-berry);
  text-decoration: none;
}

/* Disclaimer */
#text-3 .textwidget {
  font-size: 0.875rem;
}


/* ==========================================================================
   8. Footer
   ========================================================================== */

.site-footer {
  padding: 1.5rem var(--mr-gutter) 2rem;
  font-size: 0.9375rem;
  color: var(--mr-ink-soft);
  border-top: 1px solid var(--mr-line);
}

.site-footer .row-parent {
  max-width: var(--mr-container);
  margin: 0 auto;
  text-align: center;
}


/* ==========================================================================
   9. Single posts and pages (common WordPress blocks)
   ========================================================================== */

.post-content .wp-block-image img,
.post-content .wp-caption img {
  border-radius: 10px;
}

.post-content blockquote {
  margin: 1.5em 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-style: italic;
  color: var(--mr-ink-soft);
  border-left: 4px solid var(--mr-mustard);
}

.fve-video-wrapper {
  border-radius: 10px;
}


/* ==========================================================================
   10. Focus and motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--mr-berry);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}