/*!
Theme Name: faluhangja
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Csorba Zsuzsi
Author URI: https://csorbazsuzsi.hu
Description: A child theme for Törtel Falu Hangja.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: faluhangja
*/

/* Theme customization starts here
-------------------------------------------------------------- */

input,
textarea,
button,
select,
a,
h3,
li {
	-webkit-tap-highlight-purple: rgba(0, 0, 0, 0);
}
/* Global focus and active - outline */
*:focus,
*:active {
	outline: 0;
}
*:focus-visible {
	outline: 1px solid var(--global-palette1);
}

/* prevent image user select */
img {
	-webkit-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* autofill blue background correction */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-transition: background-color 5000s ease-in-out 0s;
	transition: background-color 5000s ease-in-out 0s;
}

/************* GENERAL ************/
/*
:root {
	--highlight-purple: #b21f5b;
	--highlight-green: #259783;
}

.visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
*/


/**** General posts ****/
article .entry-taxonomies .category-links a {
	padding: 0.3rem .25rem .15rem;
}
article .entry-taxonomies .category-links a {
	opacity: 0.7;
}
article .entry-taxonomies .category-links a:hover {
	opacity: 1;
}
body.page article.content-bg {
	background: var(--global-palette9);
}

/****Archive helyi ügyek ****/
.local-status {
	position: absolute;
	top: 2rem;
	padding: 0.3rem 0.5rem 0.15rem min(2rem, max(1rem, 100vw - 768px + 1rem));
	color: var(--global-palette9);
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	border-radius: 0 .25rem .25rem 0;
}
.local-status.local-status--folyamatban {
	background: var(--global-palette13);	
}
.local-status.local-status--lezarult {
	background: var(--global-palette11);	
}


/**** Single helyi ügyek ****/
.single-post .wp-block-kadence-repeatertemplate .wp-block-group {
	justify-content: space-between;
	background: var(--global-palette9);
	padding: .4rem 1rem;
	border-radius: .25rem;
}


/****Archive adatigénylés ****/
.adatigenyles {
    width: 100%;
    border-radius: .25rem;
    overflow: hidden;
	background: var(--global-palette9);
}

.adatigenyles-row {
    display: grid;
    grid-template-columns: 140px 1fr .3fr 100px;
    border-bottom: 1px solid var(--global-palette8);
}

.adatigenyles-row > div {
    padding: 12px 14px;
    display: flex;
    align-items: center;
}

.adatigenyles-row.head {
    font-weight: 600;
}

.adatigenyles-row:last-child {
    border-bottom: 0;
}

.adatigenyles a {
    text-decoration: none;
    font-weight: 600;
}
.dr-status {
    margin: 0;
    font-weight: 600;
    padding: 6px 10px 3px;
    border-radius: .25rem;
    white-space: nowrap;
	text-transform: uppercase;
	color: var(--global-palette9);
	font-size: 14px;
	line-height: 1;
}

/* Státuszok */
.lezart {
    background: var(--global-palette11);
}

.valaszra-var {
    background: var(--global-palette15);
}

.folyamatban {
    background: var(--global-palette13);
}
.megerkezett-valasz {
    background: var(--global-palette12);
}


@media (max-width: 768px) {
    .adatigenyles-row.head {
        display: none;
    }
    .adatigenyles-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "date status"
            "title title"
            "download download";
        row-gap: 4px;
		padding: 10px 0;
    }
    .adatigenyles-row > div:nth-child(1) { grid-area: date; }
    .adatigenyles-row > div:nth-child(2) { grid-area: title; }
    .adatigenyles-row > div:nth-child(3) { grid-area: status; }
    .adatigenyles-row > div:nth-child(4) { grid-area: download; }

    .adatigenyles-row > div {
        padding: 4px 14px;
    }
    .adatigenyles-row > div:nth-child(2) {
        font-weight: 600;
    }
    .adatigenyles-row > div:nth-child(4) a {
        display: inline-block;
    }
}




.pub-doc-item {
    margin-bottom: 2rem;
}

/* Post title */
.pub-doc-post-title {
    margin-bottom: 1rem;
}

/* Repeater row */
.pub-doc-item,
.pub-doc-row:not(.home) {
    padding: 1rem;
    border-bottom: 1px solid var(--global-palette8);
}
.pub-doc-row:not(.home):last-child {
    border-bottom: none;
}
.pub-doc-item,
.pub-doc-row {
	border-radius: .25rem;
	background: var(--global-palette9);	
}

/* Date + document title */
.pub-doc-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}



.pub-doc-desc {
    margin-left: 140px;
    margin-bottom: 8px;
}
.pub-doc-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-left: 140px;
}

.single-content p.pub-doc-source {
    margin-bottom: 0;
}


@media (max-width: 768px) {

    .pub-doc-header {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .pub-doc-desc,
    .pub-doc-footer {
        margin-left: 0;
    }

    .pub-doc-footer {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }
}


/***************************
********** GRAVITY *********
***************************/
 
.gform_wrapper.gravity-theme .hidden_label .gfield_label, 
.gform_validation_errors, 
.gfield_visibility_hidden, 
.gfield--type-honeypot, 
body .gform_wrapper.gravity-theme .gfield_required,
.gfield_description.instruction  {
	display: none;
}
body .gform_wrapper.gravity-theme .gform_fields {
	display: grid;
    grid-template-columns: repeat(12, 1fr);
    width: 100%;
    grid-row-gap: 1rem;
    grid-column-gap: 1rem;
}
.gform_wrapper.gravity-theme .gfield {
	grid-column: span 12;
    max-width: calc(100vw - 38px);
}
.gform_wrapper.gravity-theme .gfield:not(.gfield--width-full) {
	grid-column: 1 / -1;
}
.gform_wrapper.gravity-theme .gfield :is(input,select,textarea, .ginput_container_fileupload, .ginput_preview_list) {
	background-color: var(--global-palette9)!important;
    border: none;
    padding: 11px 15px 9px;
    width: 100%;
	border-radius: .25rem;	
}
.gform_wrapper.gravity-theme .gfield :is(input,select,textarea) {
    color: var(--global-palette1);
}
.gform_wrapper.gravity-theme .gfield textarea {
	height: 150px;
}

.gform_wrapper fieldset {
	margin: 0;
    padding: 0;
    border: none;
}
.gform_wrapper .gfield_consent_label {
	display: block;
    width: calc(100% - 60px);
    font-weight: 400;
    cursor: pointer;
    position: relative;
    left: 30px;
    line-height: 1.4em;
	font-size: 90%;
	font-family: var(--global-heading-font-family);

}
.gform_wrapper :is(.gform_button,.gform-theme-button) {
	margin-top: 40px;
}
.gform_wrapper form .gfield_consent_label :is(a, a:hover) {
	text-decoration: underline;	
}
.gform_wrapper form .gfield_consent_label a {
	color: var(--global-palette1);
}
.gform_wrapper form .gfield_consent_label a:hover {
	opacity: .8;
}
body .gform_wrapper.gravity-theme .five-error,
body .gform_wrapper.gravity-theme .gfield_validation_message {
	color: var(--global-palette13);
    border: none;
    margin-block-start: 3px;
    padding: 0;
	font-size: 75%;
    margin-top: 3px;
}
.ginput_container_consent + .gfield_description.validation_message {
	width: calc(100% - 33px);
    position: relative;
    left: 33px;
}
.gform_wrapper .gsection_title {
	padding: 1em 0 0;
}
.gform_wrapper .ginput_product_price_wrapper {
	display: none;
}
.button.gform_button_select_files {
	padding: 7px 14px 6px;
}

.gform_wrapper button.gform_delete_file {
	margin-top: 0;
	background: unset;
}
.gform_wrapper button.gform_delete_file .dashicons-trash {
	color: var(--global-palette4);
}

@media(min-width: 768px) {
	.gform_wrapper.gravity-theme :is(.gfield.gfield--width-half,.gfield.field-reason) {
		grid-column: span 6;
	}
	.gform_wrapper.gravity-theme .gfield.gfield--width-quarter {
		grid-column: span 3;
	}
	.gform_wrapper.gravity-theme .gfield--type-checkbox.gf_list_3col .gfield_checkbox {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}
}


/* checkbox */
.gform_wrapper :is(.gfield_checkbox li input[type='checkbox'], 
.ginput_container_consent input[type='checkbox'],
.ginput_container_checkbox input) {
	position: absolute;
    left: -9999px;
    width: 1px;
}
.gform_wrapper :is(.gfield--type-consent, .gfield--type-checkbox .gchoice ) label {
	cursor: pointer;
	font-weight: 400;
	position: relative;
	left: 36px;
	line-height: 1.4em;
	margin-bottom: -2em;	
}
.gform_wrapper .gfield--type-checkbox .gchoice {
	margin: 5px 0;
}
.gform_wrapper .gfield--type-consent label {
	font-size: 14px;	
}
.gform_wrapper :is(.gfield--type-consent, .gfield--type-checkbox .gchoice ) label:before,
.gform_wrapper .ginput_container_consent label:before {
	content: '';
    position: absolute;
    left: -37px;
    top: 0;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    transition: all 0.2s ease;
    background-color: var(--global-palette9);
    background-clip: content-box;

}
.gform_wrapper .ginput_container_consent label:after,
.gform_wrapper :is(.gfield--type-consent, .gfield--type-checkbox .gchoice ) label:after,
.gform_wrapper .gfield-choice-input+label:after {
	border-right: 2px solid var(--global-palette2);
    border-top: 2px solid var(--global-palette2);
    width: 7px;
    height: 13px;
    content: '';
    position: absolute;
    top: 10px;
    left: -34px;
    transform: scaleX(-1) rotate(135deg);
    transform-origin: left top;
	display: none;
}
.gform_wrapper .ginput_container_consent input[type='checkbox']:checked+label:after {
	-webkit-animation: checkm 0.5s ease 0s running;
    animation: checkm 0.5s ease 0s running;
    display: block;
    border-color: var(--global-palette1);
}
.gform_wrapper :is(.gfield--type-consent, .gfield--type-checkbox .gchoice ) input[type='checkbox']:checked+label:before {
	background: var(--global-palette3);
}
.gform_wrapper :is(.gfield--type-consent, .gfield--type-checkbox .gchoice ) input[type='checkbox']:checked+label:after {
	-webkit-animation: checkm 0.5s ease 0s running;
	animation: checkm 0.5s ease 0s running;
	display: block;
	border-color: var(--global-palette9);
}

@keyframes checkm {
    0% {
        height: 0;
        width: 0
    }

    25% {
        height: 0;
        width: 7px
    }

    50% {
        height: 13px;
        width: 7px
    }
}


