/*
 * TetőreFel egységes blog sablon – V3 / Poppins
 * Minden szabály .trf-blog alá van zárva, hogy ne írja felül a WordPress fejlécét és láblécét.
 */

.trf-blog {
  --trf-orange: #fd6b01;
  --trf-orange-dark: #e85e00;
  --trf-ink: #2d3338;
  --trf-ink-2: #1d2327;
  --trf-paper: #faf8f4;
  --trf-warm: #f0ebe2;
  --trf-line: #d8d3ca;
  --trf-muted: #676b6d;
  min-height: 100vh;
  color: var(--trf-ink);
  background: var(--trf-paper);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.trf-blog *,
.trf-blog *::before,
.trf-blog *::after { box-sizing: border-box; }

.trf-blog a { color: inherit; text-decoration: none; }
.trf-blog img { display: block; max-width: 100%; height: auto; }
.trf-blog svg { max-width: 100%; }
.trf-wide { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* Nyitóblokk */
.trf-hero { padding-block: 96px 62px; text-align: center; }
.trf-meta-top { display: flex; justify-content: center; gap: 22px; margin-bottom: 28px; color: #7a7771; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.trf-meta-top span:first-child { color: var(--trf-orange); }
.trf-hero h1 { max-width: 1040px; margin: 0 auto; color: #252729; font-family: "Poppins", sans-serif; font-size: clamp(52px, 6.4vw, 84px); font-weight: 700; line-height: 1.04; letter-spacing: -.052em; }
.trf-deck { max-width: 790px; margin: 32px auto 29px; color: #656763; font-size: 20px; font-weight: 400; line-height: 1.72; }
.trf-author-line { display: flex; align-items: center; justify-content: center; gap: 12px; }
.trf-author-avatar { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--trf-ink); font-size: 10px; font-weight: 800; }
.trf-author-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.trf-author-line p { margin: 0; color: #7a7771; font-size: 10px; line-height: 1.55; text-align: left; }
.trf-author-line strong { color: #2f3132; font-weight: 700; }

/* Kiemelt kép */
.trf-cover { margin-top: 0; margin-bottom: 0; }
.trf-cover img { width: 100%; max-height: 670px; object-fit: cover; }
.trf-cover figcaption { max-width: 740px; margin: 13px auto 0; color: #817d75; font-size: 11px; font-style: italic; line-height: 1.55; text-align: center; }

/* Cikk + megtartott oldalsáv */
.trf-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 78px; padding-block: 104px 118px; }
.trf-main-column { min-width: 0; }
.trf-sidebar { position: sticky; top: 26px; align-self: start; display: grid; gap: 20px; }

/* Automatikus tartalomjegyzék */
.trf-toc { display: grid; margin-bottom: 58px; border-top: 2px solid var(--trf-ink); border-bottom: 1px solid var(--trf-line); }
.trf-toc-label { padding: 17px 0 9px; color: var(--trf-orange); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.trf-toc-links { display: grid; grid-template-columns: 1fr 1fr; }
.trf-toc-links:empty::after { content: "A tartalomjegyzék automatikusan a cikk címsoraiból készül."; grid-column: 1 / -1; padding: 13px 0; color: #77736c; border-top: 1px solid #e2ded6; font-size: 11px; }
.trf-toc-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px 10px 0; color: #555650; border-top: 1px solid #e2ded6; font-size: 11px; font-weight: 600; line-height: 1.4; }
.trf-toc-links a:nth-child(even) { padding-left: 18px; border-left: 1px solid #e2ded6; }
.trf-toc-links a span { color: var(--trf-orange); font-size: 9px; font-weight: 800; }
.trf-toc-links a:hover { color: var(--trf-orange); }

/* A WordPress szerkesztőből érkező cikktartalom */
.trf-entry-content { color: #44484a; font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 400; line-height: 1.88; }
.trf-entry-content > *:first-child { margin-top: 0; }
.trf-entry-content p { margin: 0 0 27px; }
.trf-entry-content p:first-child { color: #272b2d; font-size: 22px; font-weight: 500; line-height: 1.72; }
.trf-entry-content h2,
.trf-entry-content h3,
.trf-entry-content h4 { scroll-margin-top: 34px; color: #24282a; font-family: "Poppins", sans-serif; }
.trf-entry-content h2 { margin: 78px 0 25px; font-size: 40px; font-weight: 700; line-height: 1.22; letter-spacing: -.035em; }
.trf-entry-content h3 { margin: 56px 0 20px; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.trf-entry-content h4 { margin: 42px 0 16px; font-size: 21px; font-weight: 700; line-height: 1.4; }
.trf-entry-content strong { color: #292d2f; font-weight: 700; }
.trf-entry-content a:not(.trf-button) { color: var(--trf-orange-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.trf-entry-content ul,
.trf-entry-content ol { margin: 28px 0 34px; padding-left: 26px; }
.trf-entry-content li { margin: 9px 0; padding-left: 5px; }
.trf-entry-content li::marker { color: var(--trf-orange); font-weight: 700; }
.trf-entry-content blockquote { margin: 54px -58px; padding: 48px 54px; color: #fff; border: 0; background: var(--trf-ink); font-size: 27px; font-weight: 600; line-height: 1.52; text-align: center; }
.trf-entry-content blockquote p { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.trf-entry-content figure,
.trf-entry-content .wp-block-image { margin: 44px 0; }
.trf-entry-content figcaption { margin-top: 10px; color: #777a7b; font-size: 11px; font-style: italic; line-height: 1.55; text-align: center; }
.trf-entry-content hr { margin: 60px 0; border: 0; border-top: 1px solid var(--trf-line); }
.trf-entry-content table { width: 100%; margin: 40px 0; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.trf-entry-content th,
.trf-entry-content td { padding: 13px 14px; border: 1px solid var(--trf-line); text-align: left; vertical-align: top; }
.trf-entry-content th { color: #fff; background: var(--trf-ink); font-weight: 700; }
.trf-entry-content .wp-block-button__link { display: inline-flex; min-height: 49px; align-items: center; padding: 0 22px; border-radius: 3px; color: #fff; background: var(--trf-orange); font-size: 13px; font-weight: 700; text-decoration: none; }

/* Opcionálisan használható szerkesztői kiemelések */
.trf-entry-content .trf-highlight,
.trf-entry-content .trf-fact-box { margin: 48px 0; padding: 32px 36px; border: 1px solid #d7d0c5; background: #f4f0e8; }
.trf-entry-content .trf-highlight { border-left: 5px solid var(--trf-orange); }
.trf-entry-content .trf-highlight p,
.trf-entry-content .trf-fact-box p { margin: 0; color: #383d3f; font-size: 18px; font-weight: 500; line-height: 1.72; }

/* Automatikusan beszúrt köztes CTA */
.trf-mid-cta { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin: 70px -36px; padding: 42px 38px; border-left: 5px solid var(--trf-orange); background: var(--trf-warm); }
.trf-mid-cta h2 { max-width: 500px; margin: 8px 0 0; font-size: 24px; font-weight: 600; line-height: 1.36; letter-spacing: -.025em; }
.trf-mid-cta > a { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 5px; color: var(--trf-orange-dark); border-bottom: 2px solid var(--trf-orange); font-size: 11px; font-weight: 800; white-space: nowrap; }
.trf-kicker { margin: 0 0 10px; color: var(--trf-orange); font-size: 9px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }

/* Oldalsáv */
.trf-sidebar-card { overflow: hidden; border: 1px solid var(--trf-line); background: #fffdfa; }
.trf-sidebar-card h2 { margin: 0; color: #2c3032; font-size: 18px; font-weight: 700; line-height: 1.42; letter-spacing: -.02em; }
.trf-ebook-card { padding: 25px; text-align: center; }
.trf-ebook-card img { width: 155px; max-height: 190px; margin: 24px auto 18px; object-fit: contain; }
.trf-ebook-card > a { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: var(--trf-orange); font-size: 11px; font-weight: 800; }
.trf-ebook-card > a:hover { background: var(--trf-orange-dark); }
.trf-audit-card { padding: 28px; color: #fff; background: var(--trf-ink); }
.trf-audit-card h2 { color: #fff; font-size: 22px; }
.trf-audit-card > p:not(.trf-kicker) { margin: 14px 0 22px; color: #bdc3c5; font-size: 12px; line-height: 1.72; }
.trf-button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 0; border-radius: 3px; color: #fff; background: var(--trf-orange); font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 800; line-height: 1.3; }
.trf-button:hover { color: #fff; background: var(--trf-orange-dark); transform: translateY(-1px); }
.trf-audit-card .trf-button { width: 100%; }
.trf-related-card { padding: 26px; }
.trf-related-card > a { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; color: #555b5e; border-top: 1px solid #e2ded6; font-size: 11px; font-weight: 700; line-height: 1.45; }
.trf-related-card > a span { color: var(--trf-orange); }
.trf-related-card > a:hover { color: var(--trf-orange-dark); }
.trf-phone-card { display: grid; gap: 4px; padding: 20px 24px; color: var(--trf-ink); border: 1px solid var(--trf-line); background: #f3efe8; }
.trf-phone-card span { color: #797b7c; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.trf-phone-card strong { font-size: 18px; }

/* Záró CTA */
.trf-final-cta { margin-top: 92px; padding: 70px 55px; color: #fff; background: var(--trf-ink); text-align: center; }
.trf-final-cta h2 { max-width: 620px; margin: 0 auto 18px; color: #fff; font-size: 42px; font-weight: 700; line-height: 1.16; letter-spacing: -.04em; }
.trf-final-cta > p:not(.trf-kicker) { max-width: 590px; margin: 0 auto; color: #bdc2c4; font-size: 15px; line-height: 1.7; }
.trf-final-cta .trf-button { margin-top: 27px; }
.trf-page-links { margin-top: 28px; font-size: 13px; }
.trf-comments { padding-bottom: 80px; }

@media (max-width: 1000px) {
  .trf-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; }
  .trf-entry-content blockquote { margin-inline: 0; }
  .trf-mid-cta { margin-inline: 0; }
}

@media (max-width: 760px) {
  .trf-wide { width: min(100% - 32px, 1180px); }
  .trf-hero { padding-block: 62px 43px; }
  .trf-meta-top { gap: 14px; margin-bottom: 22px; }
  .trf-hero h1 { font-size: clamp(42px, 12vw, 57px); line-height: 1.08; }
  .trf-deck { font-size: 17px; line-height: 1.72; }
  .trf-cover { width: 100%; }
  .trf-cover img { max-height: 440px; }
  .trf-layout { display: flex; flex-direction: column; gap: 62px; padding-block: 68px 80px; }
  .trf-toc-links { grid-template-columns: 1fr; }
  .trf-toc-links a:nth-child(even) { padding-left: 0; border-left: 0; }
  .trf-entry-content { font-size: 17px; line-height: 1.82; }
  .trf-entry-content p:first-child { font-size: 20px; }
  .trf-entry-content h2 { margin-top: 62px; font-size: 33px; }
  .trf-entry-content h3 { margin-top: 46px; font-size: 25px; }
  .trf-entry-content blockquote { padding: 36px 24px; font-size: 23px; }
  .trf-mid-cta { grid-template-columns: 1fr; padding: 32px 25px; }
  .trf-sidebar { position: static; grid-template-columns: 1fr; }
  .trf-final-cta { margin-top: 72px; padding: 56px 24px; }
  .trf-final-cta h2 { font-size: 35px; }
}
