/* =========================================================
   TAVO ĖJIMAS — design for Blocksy (loaded by the plugin)
   ========================================================= */

/* Blocksy's own palette, set from here so no Customizer work is needed */
:root:root {
  --theme-palette-color-1: #B8391C;
  --theme-palette-color-2: #1E2235;
  --theme-palette-color-3: #1E2235;
  --theme-palette-color-4: #1E2235;
  --theme-palette-color-5: #D3CBBB;
  --theme-palette-color-6: #EFE6D5;
  --theme-palette-color-7: #F7F0E3;
  --theme-palette-color-8: #FFFFFF;
}
html body { font-family: 'Karla', system-ui, sans-serif; }
html body :is(h1, h2, h3, h4, h5, h6) { font-family: 'Literata', Georgia, serif; }

/* no page title or hero above the homepage */
.home .hero-section { display: none; }
.home .site-main > .ct-container-full,
.home .site-main > .ct-container { padding-top: 0; }

/* ---------- 1. Colors & fonts (change them here) ---------- */
:root {
  --rt-paper:   #F7F0E3;   /* page background        */
  --rt-ink:     #1E2235;   /* text, outlines         */
  --rt-muted:   #4E5468;   /* quiet text             */
  --rt-accent:  #B8391C;   /* links on hover         */
  --rt-white:   #FFFFFF;

  /* one color per kind of writing */
  --rt-review:   #F06A43;  /* Reviews            */
  --rt-impress:  #2FA39A;  /* First impressions  */
  --rt-overview: #F2B632;  /* Overviews          */
  --rt-howto:    #9DB86A;  /* How to play        */
  --rt-news:     #6FA8DC;  /* News               */
  --rt-video:    #C98B4F;  /* Videos             */

  --rt-serif: 'Literata', Georgia, serif;
  --rt-sans:  'Karla', system-ui, sans-serif;
}

html body, html body #main-container, html body .site-main, html body #main { background-color: var(--rt-paper) !important; }
body { color: var(--rt-ink); font-family: var(--rt-sans); }
h1, h2, h3, .site-title { font-family: var(--rt-serif); }

/* category → color (works anywhere WordPress adds category-xxx classes) */
.category-apzvalgos   { --rt-cat: var(--rt-review); }    /* Apžvalgos   */
.category-ispudziai   { --rt-cat: var(--rt-impress); }   /* Įspūdžiai   */
.category-pristatymai { --rt-cat: var(--rt-overview); }  /* Pristatymai */
.category-kaip-zaisti { --rt-cat: var(--rt-howto); }     /* Kaip žaisti */
.category-naujienos   { --rt-cat: var(--rt-news); }      /* Naujienos   */
.category-video       { --rt-cat: var(--rt-video); }     /* Video       */


/* ---------- 2. Header: logo + menu dots ---------- */
.site-title a {
  font-family: var(--rt-serif);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--rt-ink);
}

/* colored dot before each menu item (add the CSS class in Appearance → Menus) */
.menu-item[class*="rt-dot-"] > a::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--dot, #ccc);
  box-shadow: 0 0 0 1.5px var(--rt-ink);
  vertical-align: 1px;
}
.rt-dot-reviews  { --dot: var(--rt-review); }
.rt-dot-impress  { --dot: var(--rt-impress); }
.rt-dot-overview { --dot: var(--rt-overview); }
.rt-dot-howto    { --dot: var(--rt-howto); }
.rt-dot-news     { --dot: var(--rt-news); }
.rt-dot-video    { --dot: var(--rt-video); }

/* mobile: swipeable row of category chips (HTML element in the header) */
.rt-chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 2px 0 6px;
}
.rt-chips::-webkit-scrollbar { display: none; }
.rt-chips a {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px;
  border: 2px solid var(--rt-ink); border-radius: 999px;
  background: var(--rt-white); color: var(--rt-ink);
  font: 700 14px/1 var(--rt-sans);
  text-decoration: none; white-space: nowrap;
}
.rt-chips a span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 0 1.5px var(--rt-ink);
}

/* sticky header on phones (if you have Blocksy Pro, use its Sticky option instead and delete this) */
@media (max-width: 999.98px) {
  #header { position: sticky; top: 0; z-index: 50; background: var(--rt-paper); border-bottom: 2px solid var(--rt-ink); }
}


/* ---------- 3. Homepage: shared bits ---------- */
/* full width, whatever the theme's content width is */
.rt-home, .rt-newsletter {
  width: auto !important; max-width: none !important;
  margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
  padding-left: 24px; padding-right: 24px; box-sizing: border-box;
}
.rt-home > *, .rt-newsletter > *,
.rt-home > .wp-block-group__inner-container > *,
.rt-newsletter > .wp-block-group__inner-container > * {
  width: 100%; max-width: 1220px !important; margin-left: auto !important; margin-right: auto !important;
}
html, body { overflow-x: clip; }
.rt-home .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.rt-section-title {
  font-family: var(--rt-serif); font-weight: 900;
  font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.02em;
  margin: 0;
}
.rt-sub {
  font-family: var(--rt-serif); font-style: italic;
  font-size: 19px; color: var(--rt-muted);
  margin: 4px 0 24px;
}
.rt-more a { font-weight: 700; color: var(--rt-ink); }


/* ---------- 4. Newest post (hero) ---------- */
.rt-hero { margin: 24px 0 96px; }
.rt-hero .wp-block-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "media ."
    "media pill"
    "media title"
    "media excerpt"
    "media meta"
    "media btn"
    "media .";
  grid-template-rows: 1fr auto auto auto auto auto 1fr;
  column-gap: 64px;
}
.rt-h-media   { grid-area: media; position: relative; }
.rt-h-pill    { grid-area: pill; }
.rt-h-title   { grid-area: title; }
.rt-h-excerpt { grid-area: excerpt; }
.rt-h-meta    { grid-area: meta; }
.rt-h-btn     { grid-area: btn; }

/* photo with bold outline */
.rt-h-media .wp-block-post-featured-image { margin: 0; }
.rt-h-media .wp-block-post-featured-image img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border: 2px solid var(--rt-ink); border-radius: 28px;
  box-shadow: 10px 10px 0 var(--rt-ink);
  transform: rotate(-2deg);
}

/* score sticker (made by the [rt_score] shortcode) */
.rt-score {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 130px; height: 130px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(12deg);
  line-height: 1; color: var(--rt-ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 116 116'%3E%3Cpath d='M91.0 50.0 Q104.6 62.5 86.9 67.8 Q93.8 84.9 75.6 82.1 Q74.3 100.5 59.1 90.0 Q50.0 106.0 40.9 90.0 Q25.7 100.5 24.4 82.1 Q6.2 84.9 13.1 67.8 Q-4.6 62.5 9.0 50.0 Q-4.6 37.5 13.1 32.2 Q6.2 15.1 24.4 17.9 Q25.7 -0.5 40.9 10.0 Q50.0 -6.0 59.1 10.0 Q74.3 -0.5 75.6 17.9 Q93.8 15.1 86.9 32.2 Q104.6 37.5 91.0 50.0Z' fill='%23F2B632' stroke='%231E2235' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rt-score__num { font: 900 40px/1 var(--rt-serif); color: var(--rt-ink); }
.rt-h-media, .rt-hero .wp-block-post, .rt-hero .wp-block-post-template { overflow: visible !important; }
.rt-score__of  { font: 700 11px/1 var(--rt-sans); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.rt-h-media .wp-block-shortcode { margin: 0; }

/* "Newest · Reviews" pill */
.rt-h-pill {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 4px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 2px solid var(--rt-ink); border-radius: 999px;
  background: var(--rt-cat, var(--rt-review));
  font: 700 14px/1.2 var(--rt-sans);
}
.rt-h-pill a { color: var(--rt-ink); text-decoration: none; pointer-events: none; }
.rt-h-pill .wp-block-post-terms__separator { display: none; }
.rt-h-pill a + .wp-block-post-terms__separator + a { display: none; } /* show only the first category */

/* big headline + yellow squiggle */
.rt-h-title {
  margin: 0;
  font: 900 clamp(38px, 5.4vw, 74px)/1.03 var(--rt-serif);
  letter-spacing: -0.025em;
}
.rt-h-title a { color: var(--rt-ink); text-decoration: none; }
.rt-h-title a:hover { color: var(--rt-accent); }
.rt-h-title::after {
  content: ""; display: block;
  width: 190px; height: 16px; margin-top: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18' preserveAspectRatio='none'%3E%3Cpath d='M3 12C34 4 58 15 92 9S150 3 197 10' fill='none' stroke='%23F2B632' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
}

.rt-h-excerpt { margin: 22px 0 10px; font-size: 20px; line-height: 1.6; max-width: 34rem; }
.rt-h-excerpt .wp-block-post-excerpt__more-text { display: none; }
.rt-h-meta { font-family: var(--rt-serif); font-style: italic; font-size: 18px; color: var(--rt-muted); }

/* "Read it" button */
.rt-h-btn {
  justify-self: start;
  margin-top: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--rt-ink); color: var(--rt-paper) !important;
  box-shadow: 5px 5px 0 var(--rt-review);
  font: 700 18px/1 var(--rt-sans);
  text-decoration: none;
}
.rt-h-btn:hover { background: var(--rt-accent); }


/* ---------- 5. Stack + News row ---------- */
.rt-main { gap: 56px !important; align-items: flex-start; margin-bottom: 104px; }

/* the stack of boxes */
.rt-stack .wp-block-post-template {
  display: flex; flex-direction: column; align-items: flex-end;
}
.rt-stack .wp-block-post {
  position: relative;
  box-sizing: border-box;
  width: 100%; min-height: 76px;
  margin: -2px 0 0;
  padding: 0 22px;
  display: flex; align-items: center; gap: 18px;
  background: var(--rt-cat, #ddd);
  color: var(--rt-ink);
  border: 2px solid var(--rt-ink); border-radius: 10px;
  box-shadow: inset 0 -6px 0 rgba(30, 34, 53, .14);
  transition: translate .18s ease;
}
.rt-stack .wp-block-post:hover { translate: -16px 0; }

/* uneven sizes so it looks like a real pile */
.rt-stack .wp-block-post:nth-child(7n+1) { width: 100%; min-height: 84px; margin-right: 0;  rotate: -.4deg; }
.rt-stack .wp-block-post:nth-child(7n+2) { width: 90%;  min-height: 72px; margin-right: 4%; rotate: .5deg; }
.rt-stack .wp-block-post:nth-child(7n+3) { width: 96%;  min-height: 78px; margin-right: 1%; rotate: -.3deg; }
.rt-stack .wp-block-post:nth-child(7n+4) { width: 86%;  min-height: 66px; margin-right: 6%; rotate: .6deg; }
.rt-stack .wp-block-post:nth-child(7n+5) { width: 93%;  min-height: 70px; margin-right: 2%; rotate: -.5deg; }
.rt-stack .wp-block-post:nth-child(7n+6) { width: 88%;  min-height: 80px; margin-right: 5%; rotate: .3deg; }
.rt-stack .wp-block-post:nth-child(7n+7) { width: 98%;  min-height: 68px; margin-right: 0;  rotate: -.2deg; }

.rt-box-type {
  flex: 0 0 150px;
  font: 700 13px/1.2 var(--rt-sans); letter-spacing: .06em; text-transform: uppercase;
  pointer-events: none;
}
.rt-box-type a { color: inherit; text-decoration: none; }
.rt-box-type .wp-block-post-terms__separator,
.rt-box-type a + .wp-block-post-terms__separator + a { display: none; }

.rt-box-title {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font: 700 22px/1.15 var(--rt-serif);
  text-align: left !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rt-box-title a { color: var(--rt-ink); text-decoration: none; }
.rt-box-title a::after { content: ""; position: absolute; inset: 0; } /* whole box is clickable */

.rt-box-date { flex: 0 0 auto; font: italic 16px/1 var(--rt-serif); }

/* the table edge under the stack */
.rt-stack::after {
  content: ""; display: block;
  height: 14px; border-radius: 8px;
  background: var(--rt-ink);
}

/* News, briefly */
.rt-news {
  background: var(--rt-white);
  border: 2px solid var(--rt-ink); border-radius: 28px;
  padding: 28px 28px 18px;
  box-shadow: 8px 8px 0 var(--rt-news);
}
.rt-news .rt-section-title { font-size: 34px; }
.rt-news .rt-sub { font-size: 17px; margin-bottom: 8px; }
.rt-newslist .wp-block-post { padding: 18px 0; border-top: 2px dotted #D3CBBB; }
.rt-news-date { font: italic 700 16px/1 var(--rt-serif); color: #1F5F8B; margin-bottom: 8px; }
.rt-news-lead { display: inline; font: 700 17px/1.55 var(--rt-sans); margin: 0; }
.rt-news-lead::after { content: " "; }
.rt-news-text, .rt-news-text p { display: inline; font-size: 17px; line-height: 1.55; margin: 0; }


/* ---------- 6. Newsletter band ---------- */
.rt-newsletter {
  position: relative;
  background: var(--rt-impress);
  color: var(--rt-ink);
  padding: 64px 24px 72px !important;
  margin-top: 40px;
}
.rt-newsletter::before {
  content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C120 2 240 2 360 18S600 38 720 20 960 0 1080 16 1320 36 1440 18V40z' fill='%232FA39A'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.rt-newsletter h2 { font: 900 clamp(30px, 4vw, 48px)/1.05 var(--rt-serif); letter-spacing: -.02em; margin: 0 0 8px; }
.rt-newsletter p  { font-family: var(--rt-serif); font-style: italic; font-size: 19px; margin: 0 0 18px; }
.rt-newsletter input[type="email"],
.rt-newsletter input[type="text"] {
  height: 54px; border: 2px solid var(--rt-ink); border-radius: 999px;
  background: var(--rt-paper); padding: 0 20px; font-size: 16px;
}
.rt-newsletter button,
.rt-newsletter input[type="submit"] {
  height: 54px; padding: 0 24px; border: 2px solid var(--rt-ink); border-radius: 999px;
  background: var(--rt-ink); color: var(--rt-paper); font-weight: 700; font-size: 16px;
}


/* ---------- 7. Single posts (reading pages) ---------- */
.single-post .entry-header .page-title { font: 900 clamp(36px, 5vw, 64px)/1.05 var(--rt-serif); letter-spacing: -.02em; }
.single-post .entry-content { font-size: 19px; line-height: 1.7; }
.single-post .ct-featured-image img { border: 2px solid var(--rt-ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--rt-ink); }
.single-post .entry-content a { color: var(--rt-accent); }


/* ---------- 8. Phones ---------- */
@media (max-width: 781px) {
  .rt-hero { margin: 8px 0 56px; }
  .rt-hero .wp-block-post {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pill" "title" "media" "excerpt" "meta" "btn";
    grid-template-rows: none;
  }
  .rt-h-pill  { margin-bottom: 14px; font-size: 13px; }
  .rt-h-title { font-size: 38px; }
  .rt-h-title::after { width: 140px; height: 12px; margin-top: 10px; }
  .rt-h-media { margin: 26px 8px 8px 0; }
  .rt-h-media .wp-block-post-featured-image img { aspect-ratio: 4 / 3; border-radius: 22px; box-shadow: 6px 6px 0 var(--rt-ink); transform: rotate(-1.5deg); }
  .rt-score { width: 88px; height: 88px; top: 10px; right: 10px; }
  .rt-score__num { font-size: 28px; }
  .rt-score__of  { font-size: 9px; }
  .rt-h-excerpt { font-size: 18px; }
  .rt-h-btn { justify-self: stretch; width: 100%; box-sizing: border-box; height: 54px; padding: 0; font-size: 17px; box-shadow: 4px 4px 0 var(--rt-review); }

  /* news comes before the stack on phones */
  .rt-main { gap: 56px !important; margin-bottom: 64px; }
  .rt-main > .rt-news-col { order: -1; }
  .rt-news { padding: 20px 20px 12px; border-radius: 22px; box-shadow: 6px 6px 0 var(--rt-news); }
  .rt-news .rt-section-title { font-size: 28px; }

  /* stack boxes: category on a small line above the title */
  .rt-stack .wp-block-post {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px; row-gap: 2px; align-content: center;
    padding: 8px 16px; min-height: 62px !important;
  }
  .rt-box-type  { grid-column: 1; grid-row: 1; font-size: 11px; }
  .rt-box-date  { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; }
  .rt-box-title { grid-column: 1; grid-row: 2; font-size: 18px; }
  .rt-stack .wp-block-post:hover { translate: none; }

  .rt-newsletter { padding: 40px 16px 48px !important; }
}


/* ---------- 9. Blocksy footer bits ---------- */
/* "Skaitomiausi" (Blocksy Trending Posts) blends in with the page */
.ct-trending-block {
  background: var(--rt-paper) !important;
  border-top: 2px solid var(--rt-ink);
}
.ct-trending-block .ct-module-title,
.ct-trending-block [class*="title"] { font-family: var(--rt-serif); color: var(--rt-ink); }
.ct-trending-block a { color: var(--rt-ink); }
.ct-trending-block img { border-radius: 50%; border: 2px solid var(--rt-ink); }
.rt-main { margin-bottom: 72px; }


/* =========================================================
   10. v1.2 refinements (UX pass)
   ========================================================= */

/* --- Header: same paper as the page, readable menu --- */
#header [data-row],
#header [data-row] > .ct-container,
#header [data-row] > div { background-color: var(--rt-paper) !important; }
#header [data-row*="middle"] { border-bottom: 2px solid var(--rt-ink); }
#header .ct-menu-link,
#header .menu-item > a {
  font: 600 16px/1.2 var(--rt-sans) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--rt-ink) !important;
}
#header .menu-item > a:hover { color: var(--rt-accent) !important; }

/* menu dots by link address, so they work whatever classes the menu has */
:is(#header, #offcanvas) .menu-item > a:is([href*="/apzvalgos"], [href*="/ispudziai"], [href*="/pristatymai"], [href*="/kaip-zaisti"], [href*="/naujienos"], [href*="/video"])::before {
  content: ""; display: inline-block; flex: 0 0 auto;
  width: 10px; height: 10px; margin-right: 8px; border-radius: 50%;
  background: var(--dot, #ccc); box-shadow: 0 0 0 1.5px var(--rt-ink);
}
:is(#header, #offcanvas) a[href*="/apzvalgos"]   { --dot: var(--rt-review); }
:is(#header, #offcanvas) a[href*="/ispudziai"]   { --dot: var(--rt-impress); }
:is(#header, #offcanvas) a[href*="/pristatymai"] { --dot: var(--rt-overview); }
:is(#header, #offcanvas) a[href*="/kaip-zaisti"] { --dot: var(--rt-howto); }
:is(#header, #offcanvas) a[href*="/naujienos"]   { --dot: var(--rt-news); }
:is(#header, #offcanvas) a[href*="/video"]       { --dot: var(--rt-video); }

/* --- Homepage rhythm: breathing room under the header, tighter hero --- */
.rt-home { padding-top: 56px; }
.rt-hero { margin: 0 0 40px !important; }
.rt-hero .wp-block-post {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important;
  column-gap: 72px !important;
  align-items: center;
}
.rt-h-title { font-size: clamp(34px, 3.8vw, 56px) !important; line-height: 1.06 !important; }
.rt-h-title::after { margin-top: 14px; }
.rt-h-excerpt { font-size: 18px !important; margin: 18px 0 8px !important; }
.rt-h-excerpt .wp-block-post-excerpt__excerpt {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0;
}
.rt-h-meta { font-size: 16px !important; }
.rt-h-btn { margin-top: 20px !important; padding: 15px 26px !important; font-size: 17px !important; }

/* photo: the frame does the rounding, so corners are always round */
.rt-h-media { padding: 6px 14px 14px 6px; }
.rt-h-media .wp-block-post-featured-image {
  margin: 0 !important;
  border: 2px solid var(--rt-ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--rt-ink);
  transform: rotate(-1.5deg);
  background: #E6DCCB;
}
.rt-h-media .wp-block-post-featured-image a { display: block; }
.rt-h-media .wp-block-post-featured-image img {
  display: block; width: 100%; height: auto !important;
  aspect-ratio: 4 / 3; object-fit: cover;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
}
.rt-score { top: 20px !important; right: 26px !important; }

/* --- "Browse by topic" row --- */
.rt-topics-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 22px 0; margin: 0 0 64px !important;
  border-top: 2px solid var(--rt-ink); border-bottom: 2px solid var(--rt-ink);
}
.rt-topics-label { margin: 0 !important; font: italic 18px/1.2 var(--rt-serif); color: var(--rt-muted); }
.rt-topics-wrap .wp-block-shortcode { margin: 0; }
.rt-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.rt-topic {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 2px solid var(--rt-ink); border-radius: 999px;
  background: var(--rt-white); color: var(--rt-ink) !important;
  font: 700 15px/1 var(--rt-sans); text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rt-topic:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--rt-ink); }
.rt-topic__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1.5px var(--rt-ink); }
.rt-topic__count {
  min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #EFE6D5; font-size: 13px;
}

/* --- Stack: titles wrap to two lines instead of being cut --- */
.rt-section-title { font-size: clamp(28px, 2.6vw, 36px) !important; }
.rt-sub { font-size: 17px !important; margin-bottom: 20px !important; }
.rt-stack .wp-block-post { min-height: 72px; padding-top: 10px; padding-bottom: 12px; }
.rt-box-title {
  white-space: normal !important; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: 20px !important; line-height: 1.2 !important;
}
.rt-box-type { flex-basis: 130px !important; }
.rt-box-date { font-size: 14px !important; color: var(--rt-ink); }
.rt-more { margin-top: 18px !important; }
.rt-more a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--rt-ink); border-radius: 999px; text-decoration: none !important;
  background: var(--rt-white);
}
.rt-more a:hover { background: var(--rt-ink); color: var(--rt-paper) !important; }

/* --- News box --- */
.rt-news { padding: 26px 26px 22px !important; }
.rt-empty { margin: 14px 0 6px; padding: 16px 0; border-top: 2px dotted #D3CBBB; font-size: 16px; color: var(--rt-muted); }

/* --- Images everywhere get rounded corners --- */
.entry-content img,
.wp-block-image img,
.ct-featured-image img,
.wp-block-post-featured-image img { border-radius: 18px; }
.single .ct-featured-image,
.single-post .hero-section figure { margin-bottom: 40px !important; }
.single .ct-featured-image img,
.single .ct-featured-image figure,
.single .ct-media-container {
  border-radius: 22px !important; overflow: hidden;
}
.single .ct-featured-image .ct-media-container,
.single .ct-featured-image > figure {
  border: 2px solid var(--rt-ink); box-shadow: 8px 8px 0 var(--rt-ink);
}
.single .entry-header { margin-bottom: 32px; }

/* --- Phones --- */
@media (max-width: 781px) {
  .rt-home { padding-top: 20px; display: flex; flex-direction: column; }
  .rt-home > .wp-block-group__inner-container { display: flex; flex-direction: column; }
  .rt-topics-wrap { order: -1; margin: 0 0 24px !important; padding: 0 0 14px; border-top: 0; flex-wrap: nowrap; }
  .rt-topics-label { display: none; }
  .rt-topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
  .rt-topics::-webkit-scrollbar { display: none; }
  .rt-topic { flex: 0 0 auto; min-height: 40px; font-size: 14px; }
  .rt-topics-wrap .wp-block-shortcode { min-width: 0; width: 100%; }

  .rt-h-title { font-size: 32px !important; }
  .rt-h-media { margin: 22px 0 8px !important; padding: 4px 10px 10px 4px; }
  .rt-h-media .wp-block-post-featured-image { border-radius: 20px; box-shadow: 6px 6px 0 var(--rt-ink); transform: rotate(-1deg); }
  .rt-score { top: 12px !important; right: 18px !important; }
  .rt-h-excerpt { font-size: 17px !important; margin-top: 18px !important; }
  .rt-h-btn { margin-top: 16px !important; }
  .rt-hero { margin-bottom: 48px !important; }
  .rt-box-title { font-size: 17px !important; }
  .rt-more a { width: 100%; justify-content: center; box-sizing: border-box; }
  .single .ct-featured-image { margin-bottom: 28px !important; }
}

/* themes that wrap group contents in an inner container */
.rt-topics-wrap > .wp-block-group__inner-container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  max-width: none !important; width: 100%; margin: 0 !important;
}
.rt-topics-wrap > .wp-block-group__inner-container > * { margin: 0 !important; max-width: none !important; }
/* post titles never inherit a theme's centered max-width */
.rt-home .wp-block-post-title { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.rt-box-title { margin: 0 !important; }
@media (max-width: 781px) {
  .rt-topics-wrap > .wp-block-group__inner-container { flex-wrap: nowrap; }
}
@media (max-width: 781px) {
  .rt-hero .wp-block-post {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "pill" "title" "media" "excerpt" "meta" "btn" !important;
    grid-template-rows: none !important;
    column-gap: 0 !important;
  }
  .rt-home > *, .rt-home > .wp-block-group__inner-container > * { width: 100%; }
}
@media (max-width: 781px) {
  .rt-topics-wrap, .rt-topics-wrap > .wp-block-group__inner-container { display: block !important; }
  .rt-topics-wrap .rt-topics { margin: 0 -16px !important; padding: 2px 16px 4px !important; max-width: none !important; width: auto !important; }
}

/* =========================================================
   11. "Geriausiai įvertinti" — top-scored reviews
   ========================================================= */
.rt-top { margin: 8px 0 64px; padding-top: 32px; border-top: 2px solid var(--rt-ink); }
.rt-top__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.rt-top__all { font-weight: 700; color: var(--rt-ink) !important; display: inline-flex; align-items: center; min-height: 44px; }
.rt-top__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rt-top-card { display: flex; flex-direction: column; gap: 12px; color: var(--rt-ink) !important; text-decoration: none !important; }
.rt-top-card__media {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border: 2px solid var(--rt-ink); border-radius: 18px; overflow: hidden;
  background: #E6DCCB; box-shadow: 5px 5px 0 var(--rt-ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rt-top-card:hover .rt-top-card__media { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--rt-ink); }
.rt-top-card__img { display: block; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.rt-top-card__score {
  position: absolute; top: 10px; right: 10px;
  min-width: 46px; height: 46px; padding: 0 6px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--rt-ink); border-radius: 999px;
  background: var(--rt-overview); font: 900 18px/1 var(--rt-serif);
}
.rt-top-card__title { font: 700 18px/1.25 var(--rt-serif); }
.rt-top-card:hover .rt-top-card__title { color: var(--rt-accent); }
@media (max-width: 1000px) { .rt-top__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) {
  .rt-top { margin-bottom: 48px; padding-top: 24px; }
  /* swipe sideways; the next card peeks in so people know there is more */
  .rt-top__grid {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 10px; scrollbar-width: none;
  }
  .rt-top__grid::-webkit-scrollbar { display: none; }
  .rt-top-card { flex: 0 0 72%; scroll-snap-align: start; }
}
.rt-top + .rt-main, .rt-top ~ .rt-main { margin-top: 56px !important; }
.wp-block-shortcode:has(> .rt-top), p:has(> .rt-top) { margin: 0; }

/* =========================================================
   12. More colorful stack + no clipped letters
   ========================================================= */
/* every box gets the next color in a 7-color cycle, so neighbours never match */
.rt-stack .wp-block-post:nth-child(7n+1) { background: #F06A43; } /* tomato   */
.rt-stack .wp-block-post:nth-child(7n+2) { background: #F2B632; } /* mustard  */
.rt-stack .wp-block-post:nth-child(7n+3) { background: #2FA39A; } /* teal     */
.rt-stack .wp-block-post:nth-child(7n+4) { background: #6FA8DC; } /* sky blue */
.rt-stack .wp-block-post:nth-child(7n+5) { background: #9DB86A; } /* olive    */
.rt-stack .wp-block-post:nth-child(7n+6) { background: #C98B4F; } /* ochre    */
.rt-stack .wp-block-post:nth-child(7n+7) { background: #2F4B7C; color: #F7F0E3; } /* deep blue */
.rt-stack .wp-block-post:nth-child(7n+7) .rt-box-title a,
.rt-stack .wp-block-post:nth-child(7n+7) .rt-box-date { color: #F7F0E3 !important; }

/* the category still shows: a dot in its own color before the label */
.rt-box-type { display: flex; align-items: center; gap: 7px; }
.rt-box-type::before {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--rt-cat, #fff); box-shadow: 0 0 0 1.5px var(--rt-ink), 0 0 0 3px rgba(255,255,255,.55);
}

/* two-line titles: enough line height + room below so ą ę į ų and descenders are never cut */
.rt-box-title {
  line-height: 1.32 !important;
  padding-bottom: .14em !important;
}
.rt-h-excerpt .wp-block-post-excerpt__excerpt { line-height: 1.6; padding-bottom: .12em; }
.rt-top-card__title { padding-bottom: .1em; }

/* =========================================================
   13. Single post page — made for reading
   ========================================================= */

/* accessibility basics, everywhere */
:focus-visible { outline: 3px solid #2F4B7C !important; outline-offset: 3px; border-radius: 4px; }
::selection { background: #F2B632; color: var(--rt-ink); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
.single-post .entry-content :is(h2, h3) { scroll-margin-top: 110px; }

/* reading progress */
.rt-progress {
  position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px);
  height: 5px; z-index: 9999; pointer-events: none;
}
.rt-progress span {
  display: block; height: 100%; background: var(--rt-review);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* title area */
.single-post .hero-section { padding-top: 48px; }
.single-post .hero-section .page-title,
.single-post .entry-header .page-title,
.single-post h1.entry-title {
  font: 800 clamp(34px, 4.6vw, 56px)/1.1 var(--rt-serif) !important;
  letter-spacing: -0.02em; max-width: 20ch; color: var(--rt-ink);
}
.single-post .hero-section .page-title::after,
.single-post h1.entry-title::after {
  content: ""; display: block; width: 170px; height: 14px; margin-top: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18' preserveAspectRatio='none'%3E%3Cpath d='M3 12C34 4 58 15 92 9S150 3 197 10' fill='none' stroke='%23F2B632' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
}
.single-post .entry-meta { font: 500 15px/1.5 var(--rt-sans) !important; color: var(--rt-muted) !important; }
.single-post .entry-meta a { color: var(--rt-ink) !important; }
.single-post .entry-meta .meta-categories a,
.single-post .entry-meta [data-type="pill"] a {
  display: inline-flex; align-items: center; padding: 4px 12px; border: 2px solid var(--rt-ink);
  border-radius: 999px; background: var(--rt-white); font-weight: 700; text-decoration: none !important;
}

/* the article text: one comfortable column */
.single-post .entry-content {
  font-family: var(--rt-serif); font-size: 20px; line-height: 1.75; color: var(--rt-ink);
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.single-post .entry-content > :is(.alignwide) { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: min(1000px, 92vw); }
.single-post .entry-content p { margin: 0 0 1.2em; }
.single-post .entry-content :is(h2, h3, h4) { font-family: var(--rt-serif); color: var(--rt-ink); line-height: 1.2; }
.single-post .entry-content h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; margin: 2em 0 .6em; }
.single-post .entry-content h2::before {
  content: ""; display: block; width: 44px; height: 6px; margin-bottom: 14px;
  border-radius: 3px; background: var(--rt-overview);
}
.single-post .entry-content h3 { font-size: 23px; font-weight: 700; margin: 1.6em 0 .5em; }
.single-post .entry-content a:not(.wp-block-button__link) {
  color: var(--rt-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.single-post .entry-content a:not(.wp-block-button__link):hover { color: var(--rt-ink); text-decoration-color: var(--rt-overview); }
.single-post .entry-content :is(ul, ol) { padding-left: 1.3em; margin: 0 0 1.3em; }
.single-post .entry-content li { margin-bottom: .45em; padding-left: .2em; }
.single-post .entry-content ul li::marker { color: var(--rt-review); font-size: 1.1em; }
.single-post .entry-content ol li::marker { color: var(--rt-review); font-weight: 800; font-family: var(--rt-serif); }
.single-post .entry-content strong { font-weight: 800; }

/* pull quotes */
.single-post .entry-content blockquote,
.single-post .entry-content .wp-block-quote,
.single-post .entry-content .wp-block-pullquote {
  margin: 1.8em 0; padding: 24px 28px; border: 2px solid var(--rt-ink) !important; border-radius: 20px;
  background: #FBEBC4; box-shadow: 6px 6px 0 var(--rt-ink);
  font: italic 600 23px/1.45 var(--rt-serif); text-align: left;
}
.single-post .entry-content blockquote p:last-of-type { margin-bottom: 0; }
.single-post .entry-content blockquote cite { display: block; margin-top: 10px; font: 700 14px/1.3 var(--rt-sans); font-style: normal; color: var(--rt-muted); }

/* images, galleries, video */
.single-post .entry-content :is(figure, .wp-block-image) { margin: 1.8em 0; }
.single-post .entry-content img { border-radius: 18px; height: auto; }
.single-post .entry-content figcaption,
.single-post .entry-content .wp-element-caption {
  margin-top: 10px; font: italic 15px/1.5 var(--rt-serif); color: var(--rt-muted); text-align: center;
}
.single-post .entry-content :is(.wp-block-embed iframe, .wp-block-video video, iframe[src*="youtube"]) {
  width: 100%; aspect-ratio: 16 / 9; height: auto; border: 2px solid var(--rt-ink); border-radius: 18px;
}

/* tables (e.g. component lists) */
.single-post .entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--rt-ink); border-radius: 14px; overflow: hidden; font: 16px/1.5 var(--rt-sans); }
.single-post .entry-content :is(th, td) { padding: 10px 14px; border-bottom: 1px solid #D3CBBB; text-align: left; }
.single-post .entry-content th { background: #EFE6D5; font-weight: 700; }
.single-post .entry-content tr:last-child td { border-bottom: 0; }

/* reading time */
.rt-readtime { margin-top: 0 !important; margin-bottom: 18px !important; font: 600 15px/1.3 var(--rt-sans); color: var(--rt-muted); }

/* "Trumpai" box */
.rt-glance {
  display: flex; align-items: center; gap: 22px; margin: 0 0 28px;
  padding: 20px 22px; border: 2px solid var(--rt-ink); border-radius: 22px;
  background: var(--rt-white); box-shadow: 6px 6px 0 var(--rt-impress);
  font-family: var(--rt-sans);
}
.rt-glance__score {
  flex: 0 0 auto; width: 104px; height: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  transform: rotate(-8deg); color: var(--rt-ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 116 116'%3E%3Cpath d='M91.0 50.0 Q104.6 62.5 86.9 67.8 Q93.8 84.9 75.6 82.1 Q74.3 100.5 59.1 90.0 Q50.0 106.0 40.9 90.0 Q25.7 100.5 24.4 82.1 Q6.2 84.9 13.1 67.8 Q-4.6 62.5 9.0 50.0 Q-4.6 37.5 13.1 32.2 Q6.2 15.1 24.4 17.9 Q25.7 -0.5 40.9 10.0 Q50.0 -6.0 59.1 10.0 Q74.3 -0.5 75.6 17.9 Q93.8 15.1 86.9 32.2 Q104.6 37.5 91.0 50.0Z' fill='%23F2B632' stroke='%231E2235' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rt-glance__score .rt-score__num { font-size: 34px; }
.rt-glance__score .rt-score__of { font-size: 10px; }
.rt-glance__body { flex: 1 1 auto; min-width: 0; }
.rt-glance__title { margin: 0 0 8px !important; font: 800 20px/1.2 var(--rt-serif); }
.rt-glance dl { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.rt-glance dl > div { min-width: 90px; }
.rt-glance dt { font: 700 12px/1.3 var(--rt-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--rt-muted); }
.rt-glance dd { margin: 2px 0 0; font: 700 18px/1.3 var(--rt-sans); }

/* table of contents */
.rt-toc {
  margin: 0 0 36px; padding: 18px 22px 12px; border-radius: 18px;
  background: #EFE6D5; font-family: var(--rt-sans);
}
.rt-toc__title { margin: 0 0 6px !important; font: 800 17px/1.2 var(--rt-serif); }
.rt-toc ol { margin: 0 !important; padding-left: 1.4em !important; }
.rt-toc li { margin: 0 !important; font-size: 16px; line-height: 1.4; }
.rt-toc a {
  display: inline-block; padding: 7px 0; color: var(--rt-ink) !important;
  text-decoration: none !important; font-weight: 600;
}
.rt-toc a:hover { color: var(--rt-accent) !important; text-decoration: underline !important; }

/* end of post: tags, share, author, next/previous, related */
.single-post .entry-tags a {
  display: inline-flex; padding: 6px 12px; margin: 0 6px 6px 0; border: 2px solid var(--rt-ink);
  border-radius: 999px; background: var(--rt-white); color: var(--rt-ink) !important; font: 700 14px/1 var(--rt-sans);
}
.single-post .author-box {
  border: 2px solid var(--rt-ink) !important; border-radius: 22px !important;
  background: var(--rt-white) !important; box-shadow: 6px 6px 0 var(--rt-ink);
}
.single-post .post-navigation {
  border-top: 2px solid var(--rt-ink); border-bottom: 2px solid var(--rt-ink); padding: 22px 0;
}
.single-post .post-navigation a { color: var(--rt-ink) !important; }
.single-post .post-navigation .item-title { font: 700 18px/1.3 var(--rt-serif) !important; }
.ct-related-posts-container, .ct-related-posts { background: transparent !important; }
.ct-related-posts .ct-module-title,
.ct-related-posts-container .ct-block-title { font: 800 30px/1.2 var(--rt-serif) !important; color: var(--rt-ink) !important; }
.ct-related-posts article .ct-media-container,
.ct-related-posts article img {
  border-radius: 18px !important; overflow: hidden;
}
.ct-related-posts article .ct-media-container { border: 2px solid var(--rt-ink); box-shadow: 5px 5px 0 var(--rt-ink); }
.ct-related-posts .related-entry-title,
.ct-related-posts article h4 { font: 700 18px/1.3 var(--rt-serif) !important; }
.ct-related-posts .related-entry-title a { color: var(--rt-ink) !important; }

/* comments form */
.single-post :is(#respond, .comment-respond) :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
  border: 2px solid var(--rt-ink) !important; border-radius: 14px !important; background: var(--rt-white) !important;
  font-size: 16px; padding: 12px 14px;
}
.single-post :is(#respond, .comment-respond) :is(button, input[type="submit"]) {
  border-radius: 999px !important; background: var(--rt-ink) !important; color: var(--rt-paper) !important;
  font-weight: 700; padding: 14px 24px; min-height: 48px;
}

@media (max-width: 781px) {
  .single-post .hero-section { padding-top: 24px; }
  .single-post .entry-content { font-size: 18px; line-height: 1.7; }
  .single-post .entry-content > :is(.alignwide) { margin-left: 0; transform: none; width: 100%; }
  .rt-glance { gap: 14px; padding: 16px; }
  .rt-glance__score { width: 84px; height: 84px; }
  .rt-glance__score .rt-score__num { font-size: 27px; }
  .rt-glance dl { gap: 8px 18px; }
  .rt-glance dd { font-size: 16px; }
  .single-post .entry-content :is(blockquote, .wp-block-quote, .wp-block-pullquote) { padding: 18px 20px; font-size: 20px; box-shadow: 4px 4px 0 var(--rt-ink); }
}

/* featured image on a post: rounded, outlined, never taller than ~60% of the screen */
.single-post :is(.ct-featured-image, .post-thumbnail, .wp-post-image-wrap) {
  max-width: 1000px; margin-left: auto !important; margin-right: auto !important; padding: 0 8px 8px 0;
}
.single-post :is(.ct-featured-image, .post-thumbnail) img,
.single-post img.wp-post-image {
  display: block; width: 100%; height: auto; max-height: min(62vh, 600px); object-fit: cover;
  border: 2px solid var(--rt-ink) !important; border-radius: 24px !important;
  box-shadow: 8px 8px 0 var(--rt-ink);
}
.rt-glance dd, .rt-glance dt { margin-left: 0 !important; padding: 0 !important; text-align: left; }


/* =========================================================
   14. Images beside text + share buttons (v1.4.1)
   ========================================================= */
/* images aligned left/right keep a clear gap from the text around them */
.single-post .entry-content :is(.alignleft, figure.alignleft, .wp-block-image.alignleft, .wp-block-image .alignleft) {
  float: left; max-width: 48%;
  margin: .35em 2em 1.2em 0 !important;
}
.single-post .entry-content :is(.alignright, figure.alignright, .wp-block-image.alignright, .wp-block-image .alignright) {
  float: right; max-width: 48%;
  margin: .35em 0 1.2em 2em !important;
}
.single-post .entry-content :is(.aligncenter, .wp-block-image .aligncenter) { margin-left: auto !important; margin-right: auto !important; }
.single-post .entry-content :is(.alignleft, .alignright) img { width: 100%; height: auto; }
.single-post .entry-content :is(h2, h3, h4, blockquote, .wp-block-quote, .rt-toc, hr) { clear: both; }
.single-post .entry-content::after { content: ""; display: block; clear: both; }

/* on phones there's no room beside an image: stack it full width */
@media (max-width: 600px) {
  .single-post .entry-content :is(.alignleft, .alignright, figure.alignleft, figure.alignright, .wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image .alignleft, .wp-block-image .alignright) {
    float: none !important; max-width: 100% !important; width: 100% !important;
    margin: 1.4em 0 !important;
  }
}

/* share buttons: a row of round buttons with a label */
.single-post .ct-share-box,
.single-post .ct-share-box > div,
.single-post .ct-share-box [data-icons-type] {
  border: 0 !important; background: none !important; box-shadow: none !important;
}
.single-post .ct-share-box > div,
.single-post .ct-share-box [data-icons-type] {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px !important;
  grid-template-columns: none !important;
}
.single-post .ct-share-box::before {
  content: "Pasidalink:"; display: block; margin-bottom: 12px;
  font: 800 18px/1.2 var(--rt-serif); color: var(--rt-ink);
}
.single-post .ct-share-box a {
  flex: 0 0 auto !important; width: 48px !important; min-width: 0 !important; height: 48px !important;
  padding: 0 !important; margin: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  border: 2px solid var(--rt-ink) !important; border-radius: 50% !important;
  background: var(--rt-white) !important; color: var(--rt-ink) !important;
  box-shadow: 3px 3px 0 var(--rt-ink) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.single-post .ct-share-box a::before,
.single-post .ct-share-box a::after { display: none !important; }
.single-post .ct-share-box a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--rt-ink) !important; }
.single-post .ct-share-box a svg { width: 18px !important; height: 18px !important; fill: currentColor; }
.single-post .ct-share-box a[data-network="facebook"]:hover  { background: #E7EEFB !important; }
.single-post .ct-share-box a[data-network="pinterest"]:hover { background: #FBE7E7 !important; }
.single-post .ct-share-box a[data-network="linkedin"]:hover  { background: #E3EEF6 !important; }
.single-post .ct-share-box a[data-network="twitter"]:hover   { background: #EDEDED !important; }
.single-post .ct-share-box a > span, .single-post .ct-share-box .ct-icon-container { display: flex !important; align-items: center; justify-content: center; width: auto !important; height: auto !important; }
@media (max-width: 600px) { .single-post .entry-content :is(.alignleft, .alignright) img { width: 100% !important; } }

/* =========================================================
   15. Phone header category row (Blocksy HTML element) — v1.4.2
   ========================================================= */
/* every wrapper around the row may shrink and must span the full width, so the row can scroll */
#header :has(> .rt-chips),
#header :has(.rt-chips) {
  min-width: 0 !important; max-width: 100% !important;
  flex: 1 1 100% !important; width: 100% !important;
  justify-content: flex-start !important;
}
#header .rt-chips {
  display: flex !important; flex-wrap: nowrap !important;
  width: 100%; max-width: 100%; box-sizing: border-box;
  overflow-x: auto !important; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-x;
  margin: 0 !important; padding: 2px 16px 4px 0 !important;
  /* soft fade on the right edge shows there's more to swipe */
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
          mask-image: linear-gradient(to right, #000 85%, transparent);
}
#header .rt-chips > a { flex: 0 0 auto !important; }
#header .rt-chips br, #header .rt-chips p:empty { display: none !important; }
#header .rt-chips p { display: contents; margin: 0 !important; }
#header :is(p, .entry-content):has(.rt-chips) { margin: 0 !important; padding: 0 !important; }

/* the row holding it: no fixed height, small padding, no gap above the buttons */
#header [data-row]:has(.rt-chips) { --height: auto !important; height: auto !important; min-height: 0 !important; }
#header [data-row]:has(.rt-chips) > .ct-container,
#header [data-row]:has(.rt-chips) > div {
  min-height: 0 !important; height: auto !important;
  padding-top: 0 !important; padding-bottom: 10px !important;
}
#header :has(> .rt-chips) > p:empty, #header .ct-header-text p:empty { display: none !important; }
