/*
Theme Name: Carrino - Child Theme
Theme URI: http://www.3forty.media/carrino
Author: 3FortyMedia
Author URI: http://www.3forty.media
Description: Carrino Child theme for easy and non-destructive editing of Carrino theme
Version: 1.1
Text Domain: carrino
Template: carrino
*/

/*============*//*==================================================*/
/*** GLOBAL ***//*--------------------------------------------------*/
/*============*//*==================================================*/


/*** Link */
a {
	text-decoration-line: underline;
	text-decoration-style: dotted;
}


/*** RankMath */
/* RankMath TOC link - desktop */
:root { --header-offset: 40px; }

/* RankMath TOC link - tablet */
@media (max-width: 1024px) and (min-width: 783px) {
  :root { --header-offset: 40px; }
}

/* RankMath TOC link - mobil */
@media (max-width: 782px) {
  :root { --header-offset: 40px; }
}


/* Globális görgetési puffer hash ugrásokhoz */
html {
  scroll-padding-top: var(--header-offset);
}

/* Címsorokra célzottan (TOC linkek ide mutatnak) */
.entry-content h1[id],
.entry-content h2[id],
.entry-content h3[id],
.entry-content h4[id],
.entry-content h5[id],
.entry-content h6[id] {
  scroll-margin-top: var(--header-offset);
}


/*** Excerpt */
.excerpt {
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--single-entry-font-color);
}


/*** List */
ul.wp-block-list { list-style-type: square; }
ul.wp-block-list > li { padding-left: 5px; }
ol.wp-block-list { list-style-type: decimal; }
ol.wp-block-list > li { padding-left: 5px; }
ol:not([reversed]):not([start]) > li::before { content: none !important; } /*off*/


/*** Button */
button, input[type="submit"], .button {
	text-transform: none;
}


/*** Avatar */
.entry-meta .avatar {
	width: 40px;
	height: 40px;
	margin-right: 8px;
}
.entry-meta.has-avatar li {
	padding-top: 10px;
}


//*** Simple Lightbox plugin */
.slb_viewer_wrap, .slb_viewer_wrap * { font-family: var(--body-font); }


/*** Google Adsense - footer */
#block-14 {
	max-width: none;
	width: 100%;
	
}
.ga-footer {
	min-height:10px;
	background-color:#eee;
	margin-top: 20px;
	z-index:1;
}


/**************/
/*** Widget ***/


.widget.threeforty_posts_widget .list-style-list-first-grid.has-post-thumbnails li.widget-entry:first-child .entry-title-link {
  font-size: 1.225rem;
  line-height: 1.4;
}


.home.page .entry-header {
  margin: 0 !important;
}


/*** title - 3 row */
.widget.threeforty_posts_widget .list-style-list-first-grid.has-post-thumbnails li.widget-entry:first-child .entry-title-link {
	margin: 8px 10px 2px;
	display: inline-block;
	@media (min-width: 1025px) {
		min-height: calc(3 * 1.4em);
	}
}


/**************/
/*** Footer ***/


.site-footer {
  padding-bottom: 10px;
}


.footer-info > li {
  padding: 20px 0 0 0;
}


/*** qbe */
.footer-nav a::before {
	position: relative;
	display: inline-block;
	top: -2px;
	width: 5px;
	height: 5px;
	margin-right: 5px;
	content: "";
	transition: all .5s ease;
	background-color: #ff0000;
	/*background: transparent; /* közép átlátszó */
	/*box-shadow: inset 0 0 0 2px #45464b; /* 1 px-es keret belül */
}


/*** top-bottom */
#main {
	margin-bottom: 10px !important;
}
.site-footer {
	padding-top: 0;
	@media (min-width: 1025px) {margin-top: -10px;}
}
.site-footer .flex-grid .flex-box {
	margin-bottom: 30px;
}


/****************/
/*** Lightbox ***/


#slb_viewer_wrap .slb_theme_slb_default .slb_details {
	margin: 10px auto -15px !important;
}

#slb_viewer_wrap .slb_theme_slb_baseline * {
	text-align: center !important;
}


/*==========*//*==================================================*/
/*** MENU ***//*--------------------------------------------------*/
/*==========*//*==================================================*/


.site-header {
	background: rgb(from var(--white) r g b / 0.98) !important;
	margin-bottom: 20px !important;
}


/*** font size */
.nav-uppercase .primary-nav li {
  text-transform: uppercase;
  font-size: 0.85rem;
}


/*************/
/*** Lines ***/


.primary-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav > li {
  position: relative;
  padding: 0 10px;
}

/* csak az egymás utániak közé rajzolunk */
.primary-nav > li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1.2em; /* a vonal magassága */
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.15);
}

/* a kereső előtt ne legyen elválasztó */
.primary-nav > li.toggle::before {
  display: none;
}


/*************/
/*** Icons ***/


li[class*="icon-"] > a::before{
  content:"";
  display:inline-block;
  width:1em; height:1em;
  margin-right:.5em;
  vertical-align:-0.125em;
  background-color: currentColor;   /* átveszi a link színét */
  -webkit-mask-repeat: no-repeat;   mask-repeat: no-repeat;
  -webkit-mask-position: center;    mask-position: center;
  -webkit-mask-size: contain;       mask-size: contain;
}

li.icon-computer-classic-solid > a::before{
  -webkit-mask-image: url("icons/computer-classic-solid.svg");
          mask-image: url("icons/computer-classic-solid.svg");
}
li.icon-crosshairs-classic-solid > a::before{
  -webkit-mask-image: url("icons/crosshairs-classic-solid.svg");
          mask-image: url("icons/crosshairs-classic-solid.svg");
}
li.icon-heart-classic-solid > a::before{
  -webkit-mask-image: url("icons/heart-classic-solid.svg");
          mask-image: url("icons/heart-classic-solid.svg");
}
li.icon-house-classic-solid > a::before{
  -webkit-mask-image: url("icons/house-classic-solid.svg");
          mask-image: url("icons/house-classic-solid.svg");
}
li.icon-life-ring-classic-solid > a::before{
  -webkit-mask-image: url("icons/life-ring-classic-solid.svg");
          mask-image: url("icons/life-ring-classic-solid.svg");
}
li.icon-location-dot-classic-solid > a::before{
  -webkit-mask-image: url("icons/location-dot-classic-solid.svg");
          mask-image: url("icons/location-dot-classic-solid.svg");
}
li.icon-paw-classic-solid > a::before{
  -webkit-mask-image: url("icons/paw-classic-solid.svg");
          mask-image: url("icons/paw-classic-solid.svg");
}
li.icon-utensils-classic-solid > a::before{
  -webkit-mask-image: url("icons/utensils-classic-solid.svg");
          mask-image: url("icons/utensils-classic-solid.svg");
}


/*==========*//*==================================================*/
/*** HOME ***//*--------------------------------------------------*/
/*==========*//*==================================================*/


/*******************/
/*** Hero - font ***/


.hero.cover .entry-title {
	letter-spacing: 0;
	line-height: 1.3 !important;
}


/***************************/
/*** Featured - category ***/


.entry-meta.before-title {
  margin-bottom: 20px;
}


/*********************/
/*** Block - order ***/


/*** DESKTOP: 1. sor 2 elem (50–50%), utána 3–3 elem */
@media (min-width: 1024px){
  /* A poszt-konténer (cols-3) legyen GRID 6 oszloppal */
  .threeforty-post-block-wrapper .custom-post-block.cols-3{
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px; /* állítsd a témád hézagához (16/20/24px) */
  }

  /*** A blokk címsor (ha van) fusson végig a soron */
  .threeforty-post-block-wrapper .custom-post-block.cols-3 > .section-header{
    grid-column: 1 / -1;
    /*margin: 0 !important;*/
  }

  /*** Ne erőltesse a téma a flex-basis/max-width értékeket az elemekre */
  .threeforty-post-block-wrapper .custom-post-block.cols-3 > article.flex-box{
    box-sizing: border-box;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex: initial !important;
    float: none !important;
  }

  /*** Az első KÉT cikk: 50–50% => 3-3 oszlop (a 6-ból) */
  .threeforty-post-block-wrapper .custom-post-block.cols-3 > article.flex-box:nth-of-type(-n+2){
    grid-column: span 3;
  }

  /*** A többi cikk: 1/3 széles => 2-2 oszlop (a 6-ból) → soronként 3 db */
  .threeforty-post-block-wrapper .custom-post-block.cols-3 > article.flex-box:nth-of-type(n+3){
    grid-column: span 2;
  }
}


/******************************/
/*** Block - Category - box ***/


/*** Modern, árnyék nélküli header: csak finom felső csík */
.threeforty-post-block-wrapper{
  --accent: #e6731d;    /* állítsd a márkád színére */
  --radius: 12px;
}

/*** a rovatcím+leírás blokk fusson végig a rácson (desktop grid esetén is) */
.threeforty-post-block-wrapper .custom-post-block.cols-3 > .section-header{
  grid-column: 1 / -1;
}

/*** minimal: nincs árnyék, nincs vastag keret, háttér gyakorlatilag átlátszó */
.threeforty-post-block-wrapper .custom-post-block .section-header{
  position: relative;
  padding: 0 15px 0;
  background: transparent;           /* nem dobozos */
  border: 0;                         /* nincs keret */
  border-radius: var(--radius);      /* csak a csík sarkához */
  margin: 50px 0 25px 0 !important;
}

/*** Felső díszcsík (finom átmenettel elhalványítva) */
.threeforty-post-block-wrapper .custom-post-block .section-header::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    rgba(230,115,29,0.75) 35%,
    rgba(230,115,29,0.0) 80%
  );
}


/*******************************/
/*** Block - Category - font ***/


.threeforty-post-block-wrapper .custom-post-block .section-header .page-title{
  margin: 40px 0 15px 0;
  letter-spacing: .2px;
}
.threeforty-post-block-wrapper .custom-post-block .section-header p{
  line-height: 1.55;
}
.page-subtitle {
  font-size: 1.125rem;
  line-height: 1.55;
}


/****************************/
/*** Block - Category - c ***/


.has-post-thumbnail:not(.disabled-post-thumbnail):not(.cover):not(.single-post):not(.widget-entry):not(.hero-entry) .entry-meta.before-title {
  left: 15px;
}


/**************************/
/*** Block - Post- font ***/


.home.page .entry-content {
  margin: 0 !important;
  padding: 0 10px !important;
}

.flex-box:not(.single-post) .entry-content p {
  margin-top: 0;
}

.entry-meta.after-title {
  margin-top: auto;
}

.cols-3 .entry-title {
  font-size: 1.35rem;
  line-height: 1.5 !important;
  letter-spacing: 0;
}

.cols-2 .entry-title {
  font-size: 1.625rem;
  line-height: 1.5 !important;
}


/*==============*//*==================================================*/
/*** CATEGORY ***//*--------------------------------------------------*/
/*==============*//*==================================================*/


.cover:not(.single-post) .entry-content {
  font-size: 1.125rem;
  line-height: 1.5;
}


/*==========*//*==================================================*/
/*** PAGE ***//*--------------------------------------------------*/
/*==========*//*==================================================*/


/*** Search page */
.page-header .page-subtitle:not(.after-title) {
	padding-top: 10px !important;
	padding-bottom: 30px !important;
}


/*==========*//*==================================================*/
/*** POST ***//*--------------------------------------------------*/
/*==========*//*==================================================*/


/*** RankMathTOC */
.wp-block-rank-math-toc-block {
	padding: 30px;
	margin-top: 50px;
	border-radius: 12px;
	background: linear-gradient(90deg, rgba(108, 91, 123, 0.03), #fff);
}

#rank-math-toc h3 {
  margin: 0;
}

#rank-math-toc ul {
  margin-bottom:0;
  list-style:square;
}
.wp-block-rank-math-toc-block ul li {
  padding-left: 5px;
}
ul:not([class*="wp-"]) > li::before { content: none !important; } /*off*/


/*** Title  */
.hero .flex-box.hero-entry .entry-title span {
  background: rgb(from var(--hero-title-background-color) r g b / 0.88) !important;
  line-height: 1.8em;
}


/*** H  */
h2.wp-block-heading {
  margin: 25px 0;
  letter-spacing: 0px;
  line-height: 1.5;
  padding-top: 30px;
}
h2.wp-block-heading:first-child {
	padding-top: 15px;
	margin-top: 0;
}
h3 {
  letter-spacing: 0px;
}
h3.wp-block-heading {
  margin: 25px 0;
  letter-spacing: 0px;
}
h4.wp-block-heading {
  margin: 25px 0;
  letter-spacing: 0px;
}
h5.wp-block-heading {
  margin: 25px 0;
  letter-spacing: 0px;
}
h6.wp-block-heading {
  margin: 25px 0;
  letter-spacing: 0px;
}


/*** Text  */
.the-post .single-post .entry-content:not(.custom-excerpt) {
	font-size: 1.25rem;
	line-height: 1.6;
}


/*** Share */
/*** ScriptlessSocial plugin  */
.scriptlesssocialsharing {
	margin: 50px auto 0;
}


/*** Related */
.threeforty-related-posts-wrapper .threeforty-related-posts .entry-content p {
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--single-entry-font-color) !important;
}

.post-navigation .entry-meta span {
	padding: 6px 10px 3px !important;
}


/************/
/*** Tags ***/


/* Konténer - vízszintes sor, több sorba törés, közök */
.entry-meta.post-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Alap stílus a címke-linkekre (badge) */
.entry-meta.post-tags a {
  --tag-text: var(--dark-grey);
  --tag-border: var(--light-grey);

  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--tag-border);
  border-radius: 8px; /* kapszula forma */
  background: var(--tag-bg);
  color: var(--tag-text);
  font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  will-change: transform;
}

/* Hover/fókusz – finom emelés, jobb kontraszt */
.entry-meta.post-tags a:hover,
.entry-meta.post-tags a:focus-visible {
  border-color: var(--medium-grey);
  text-decoration: none;
  outline: none;
}

/* Sötét mód támogatás (ha a téma nem írja felül) */
@media (prefers-color-scheme: dark) {
  .entry-meta.post-tags a {
    --tag-bg: #111827;
    --tag-text: #f9fafb;
    --tag-border: #1f2937;
  }
  .entry-meta.post-tags a:hover,
  .entry-meta.post-tags a:focus-visible {
    background: #0b1220;
    border-color: #253156;
  }
}

/* Ha nincs animáció: tiszteletben tartjuk a beállítást */
@media (prefers-reduced-motion: reduce) {
  .entry-meta.post-tags a { transition: none; }
}

/* bizbasz torlese */
.entry-meta.post-tags ul li::after {
	content: none !important;
}

/**/
.hentry-footer {
	padding: 5px 0 5px !important
}


/*** Google Adsense - post */
.ga-post {
	max-width: none;
	width: 100%;
	min-height:10px;
	background-color:#eee;
	margin: 50px 16px 25px;
	z-index:1;
}

.ga-post-extra {
	max-width: none;
	width: 100%;
	min-height:10px;
	background-color:#eee;
/*	margin: 50px 16px 25px;
	z-index:1;*/
}