/*
Theme Name: Tikkun
Description: Reszponzív szerkesztőségi sablon.
Version: 1.0.0
*/

/* Színek és alapbeállítások */

:root {
    --blue: #115673;
    --ink: #172b34;
    --muted: #64737b;
    --line: #e1e8eb;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 17px/1.65 Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

button,
input {
    font: inherit;
}

button,
a,
input {
    touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #dfaa38;
    outline-offset: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
p,
figure {
    margin: 0;
}

h1 {
    font-size: clamp(30px, 3.5vw, 32px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

button {
    cursor: pointer;
}

/* Fejléc, logó és főmenü */

.site-header {
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
}

.header-inner,
.site-content,
.footer-inner,
.search-panel {
    max-width: 1240px;
    margin: auto;
}

.header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 5px 10px;
    gap: 30px;
}

.logo {
    width: auto;
    flex-shrink: 0;
}

.logo img {
    height: 100px;
    width: auto;
    max-width: none;
}

#main-nav {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    line-height: 1.2;
    padding-bottom: 1px;
    font-size: 20px;
    font-weight: 700;
		color: #115673;
}

#main-nav a {
    white-space: nowrap;
    padding: 10px 15px;
}

#main-nav a:hover,
#main-nav a[aria-current="page"] {
    background: #115673;
    color: #fff;
}

/* A nagyító a menü nagybetűinek magasságát követő SVG, nem fontikon. */
.search-icon {
    display: inline-block;
    width: .7em;
    height: .7em;
    width: 1cap;
    height: 1cap;
    vertical-align: baseline;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
/* Tartalom és kétoszlopos elrendezés */

.site-content {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 10px 15px 40px;
}

.columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 42px;
}

.primary {
    min-width: 0;
		margin-top: 5px;
}

/* Bejegyzéskártyák */

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 26px;
}

/* A címlap és a típusoldalak legfrissebb kártyája mindkét oszlopot elfoglalja. */
.latest-first > .post-grid > .post-card:first-child {
    grid-column: 1 / -1;
		padding-top: 5px;
}
.post-card {
    min-width: 0;
}

.card-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eef3f5;
    aspect-ratio: 8/5;
    /*margin-bottom: 14px;*/
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: #8da4af;
    font-weight: 700;
    letter-spacing: .14em;
}

.type-label {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--blue);
    color: #fff;
    text-transform: uppercase;
    padding: 5px 11px;
    font-size: 11px;
    letter-spacing: .06em;
    font-weight: 700;
    line-height: 1.5;
}

time,
.post-meta {
    font-size: 13px;
    color: var(--muted);
}

.post-card h2 {
    font-size: 23px;
    line-height: 1.3;
    margin: 0px;
    overflow-wrap: anywhere;
}

.post-card p {
    font-size: 15px;
    line-height: 1.65;
    color: #465a64;
    white-space: pre-line;
}

/* Oldalsáv és kiemelt bejegyzések */

.sidebar {
    padding-left: 28px;
    /*border-left: 1px solid var(--line);*/
}

.sidebar section+section {
    margin-top: 16px;
		border-top: 1px solid var(--line);
		padding-top: 16px;
}

.section-title {
    font-size: 23px;
    color: var(--blue);
		margin-bottom: 8px;
}

/*
.sidebar .section-title::after {
    content: '';
    display: block;
    height: 1px;
    margin-top: 4px;
    margin-bottom: 20px;
    background: var(--line);
}
*/

.featured {
    margin-bottom: 26px;
}

.featured h2 {
    font-size: 21px;
}

/* Népszerű bejegyzések */

.popular {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 0px;
    align-items: start;
    background-color: #f0f8ff;
    margin: 5px 0px 15px;
}

/* A cím linkje a teljes népszerű kártyát lefedi. */
.popular h2 a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.popular .card-text {
    flex: 1;
    min-width: 0;
    order: 1;
		padding-top: 5px;
}

.popular .card-image {
    width: 25%;
    order: 0;
    aspect-ratio: 1;
    margin: 0;
    flex-shrink: 0;
}

.popular h2 {
    font-size: 16px;
    margin: 0px;
}

.popular time {
    font-size: 11px;
}

.popular .type-label {
    top: auto;
    left: auto;
    bottom: 0;
    right: 0;
    padding: 2px 4px;
    font-size: 10px;
}

/* Listaoldalak és lapozás */

.listing-title {
    font-size: 30px;
    margin-bottom: 28px;
}

.pagination {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.page-numbers {
    padding: 5px 12px;
    border: 1px solid var(--line);
}

.page-numbers.current {
    background: var(--blue);
    color: #fff;
}

/* Bejegyzésoldal */

.post-meta {
    margin: 5px 0 25px;
}

.hero-image {
    margin-bottom: 28px;
}

.hero-image img {
    width: 100%;
}

.lead {
    font-weight: 700;
    font-size: 21px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.article-body {
    overflow-wrap: anywhere;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body figure {
    margin: 0 0 22px;
}

.article-body h2,
.article-body h3 {
    margin: 30px 0 16px;
    line-height: 1.3;
}

.article-body a {
    color: var(--blue);
    text-decoration: underline;
}

.article-body iframe,
.article-body video {
    max-width: 100%;
}

.article-body table {
    width: 100%;
    display: block;
    overflow: auto;
}

.tags,
.shares {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
    align-items: center;
}

.tags a,
.shares a,
.shares .copy-link {
    border: 1px solid var(--line);
    padding: 4px 10px;
    font-size: 13px;
}

/* A másolás gombja ugyanúgy jelenjen meg, mint a megosztási linkek. */
.shares .copy-link {
    appearance: none;
    background: transparent;
    border-radius: 0;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
}

.shares .copy-link:hover {
    color: var(--blue);
}

.copy-status {
    font-size: 13px;
}

/* Statikus oldalak és üres állapot */

.static-page {
		margin-top:5px;
    max-width: 820px;
}

.static-page h1 {
    margin-bottom: 28px;
}

.empty {
    font-size: 15px;
    color: var(--muted);
}

/* Lábléc és közösségi ikonok */

.site-footer {
    flex-shrink: 0;
    background: var(--blue);
    color: #fff;
}

.footer-inner {
    padding: 16px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
		font-size: 16px;
}

.footer-inner p {
    font-size: 13px;
    opacity: .85;
}

.footer-inner nav {
    display: flex;
    gap: 16px;
    font-size: 16px;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a,
.social-unconfigured {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ffffff65;
    border-radius: 50%;
    font-weight: 700;
}

/* Vissza az oldal tetejére gomb */

@font-face {
    font-family: 'Tikkun FontAwesome';
    src: url('assets/fonts/fontawesome-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
    unicode-range: U+F106;
}


.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 3px 14px #0002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 100;
}

.back-top span::before {
    content: "\f106";
    display: block;
    font-family: 'Tikkun FontAwesome';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
}
/* Mobilmenü gombja */

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    padding: 8px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--blue);
    display: block;
    margin: 5px 0;
}

/* Keresés */

.search-panel {
    padding: 0 25px 15px 15px;
}

.search-form {
    max-width: 351px;
    margin-left: auto;
}

.search-form>div {
    display: flex;
    gap: 8px;
}

.search-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid #b8c7ce;
    padding: 9px 12px;
		margin-right: 5px;
}

.search-form button {
    border: 0;
    color: #fff;
    background: var(--blue);
    padding: 9px 18px;
}

.search-form input:focus,
.search-form button:focus {
    outline: none;
    box-shadow: none;
}
/* Akadálymentesítés */

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip-path: none;
    top: 5px;
    left: 5px;
    padding: 10px;
    background: white;
    z-index: 100;
}

[hidden] {
    display: none !important;
}

/* Reszponzív megjelenés – legfeljebb 1000px */

@media (max-width: 1000px) {
    #main-nav {
        gap: 15px;
        font-size: 14px;
    }

    .columns {
        gap: 26px;
    }

    .sidebar {
        padding-left: 20px;
    }

    .footer-inner {
        flex-wrap: wrap;
    }

}

/* Mobilnézet – legfeljebb 760px */

@media (max-width: 760px) {
    .header-inner {
        padding: 22px 20px;
        align-items: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    #main-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 0 0;
        font-size: 17px;
    }

    #main-nav.open {
        display: flex;
    }

    #main-nav a {
        padding: 12px 0;
        border-top: 1px solid var(--line);
    }

    .site-content {
        padding: 28px 20px 42px;
    }

    .columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        padding: 0;
        border: 0;
    }

    .post-grid {
        gap: 28px 18px;
    }

    .post-card h2 {
        font-size: 20px;
    }

    .footer-inner {
        padding: 28px 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .lead {
        font-size: 19px;
    }

    .search-panel {
        padding: 0 20px 20px;
    }

}

/* Keskeny mobilnézet – legfeljebb 440px */

@media (max-width: 440px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-card h2 {
        font-size: 23px;
    }

    .card-image {
        margin-bottom: 10px;
    }

    .back-top {
        right: 14px;
        bottom: 14px;
    }

}

/* Csökkentett mozgás */

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

}

/* Kapcsolatűrlap – a szerkesztőségi arculat színeivel. */
.static-page .wpcf7 {
    margin: 30px 0;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--line);
    /*border-top: 4px solid var(--blue);*/
    border-radius: 15px;
    background: #f5f9fb;
}
.static-page .wpcf7 form p { margin: 0 0 20px; }
.static-page .wpcf7 label {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}
.static-page .wpcf7-form-control-wrap { display: block; margin-top: 7px; }
.static-page .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.static-page .wpcf7 textarea,
.static-page .wpcf7 select {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid #a8bac4;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}
.static-page .wpcf7-form-control-wrap {
    margin-top: 0px;
}
.static-page .wpcf7 textarea { min-height: 180px; height: 200px; resize: vertical; }
.static-page .wpcf7 :is(input, textarea, select):focus-visible {
    outline: 3px solid #dfaa38;
    outline-offset: 3px;
    border-color: var(--blue);
}
.static-page .wpcf7 input[type="submit"] {
    max-width: 100%;
    min-height: 46px;
    padding: 11px 28px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
		font-size: 18px;
}
.static-page .wpcf7 input[type="submit"]:hover { background: #0c4057; }
.static-page .wpcf7 form.submitting input[type="submit"] { opacity: .65; cursor: wait; }
.static-page .wpcf7 [aria-invalid="true"] { border-color: #a32929 !important; }
.static-page .wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #a32929;
    font-size: 14px;
    font-weight: 400;
}
.static-page .wpcf7 :is(input, textarea, select):focus-visible {
    outline: 2px solid var(--blue);
}
.static-page .wpcf7 form .wpcf7-response-output {
    margin: 25px 0 0;
    padding: 12px 16px;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    border: 2px solid var(--blue);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border: 2px solid var(--blue);
}

@media (max-width: 440px) {
    .static-page .wpcf7 input[type="submit"] { width: 100%; }
}
