/*
Theme Name: Magyar Házi Receptek
Theme URI: https://www.magyarhazireceptek.com/
Author: Magyar Házi Receptek
Description: Gyors, mobilbarát recepttéma magyar házi receptekhez. Gutenberg-kompatibilis, letisztult kategória- és receptoldalakkal.
Version: 1.9.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: magyar-hazi-receptek
*/

:root {
  --mhr-bg: #fffdf9;
  --mhr-surface: #ffffff;
  --mhr-text: #2c2925;
  --mhr-muted: #746d65;
  --mhr-primary: #ad2c2c;
  --mhr-primary-dark: #832020;
  --mhr-accent: #556d50;
  --mhr-border: #ece5dc;
  --mhr-soft: #f7f1e9;
  --mhr-soft-2: #f2ebe2;
  --mhr-radius: 20px;
  --mhr-shadow: 0 10px 32px rgba(51, 38, 27, .08);
  --mhr-shadow-sm: 0 5px 18px rgba(51, 38, 27, .06);
  --mhr-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mhr-text);
  background: var(--mhr-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mhr-primary); text-decoration: none; }
a:hover { color: var(--mhr-primary-dark); }
button, input, textarea, select { font: inherit; }

.mhr-container { width: min(calc(100% - 32px), var(--mhr-max)); margin-inline: auto; }
.mhr-narrow { width: min(calc(100% - 32px), 820px); margin-inline: auto; }
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link:focus { position:fixed!important; top:12px; left:12px; z-index:99999; width:auto; height:auto; clip:auto; margin:0; padding:10px 14px; border-radius:10px; background:#fff; color:var(--mhr-text); box-shadow:var(--mhr-shadow); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,253,249,.98);
  border-bottom: 1px solid var(--mhr-border);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 18px; position:relative; }
.site-branding { flex: 0 1 270px; min-width: 210px; max-width: 300px; }
.custom-logo-link { display:block; }
.custom-logo { max-height:62px; width:auto; }
.site-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(21px, 1.75vw, 27px); line-height:1.08; letter-spacing: -.35px; }
.site-title a { color: var(--mhr-text); white-space:nowrap; display:block; }
.site-description { margin: 5px 0 0; font-size: 11.5px; line-height:1.35; color: var(--mhr-muted); white-space:nowrap; }
.main-navigation { margin-left: auto; min-width:0; }
.main-navigation .menu { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 3px; }
.main-navigation .menu > li { position: relative; }
.main-navigation .menu > li > a { display:block; padding: 28px 8px; color: var(--mhr-text); font-size: 13px; line-height:1.2; font-weight: 750; white-space:nowrap; }
.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current-menu-ancestor > a { color: var(--mhr-primary); }
.main-navigation .menu-item-has-children > a::after { content:""; display:inline-block; width:6px; height:6px; margin-left:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.main-navigation .sub-menu {
  position:absolute;
  top:calc(100% - 9px);
  left:-10px;
  z-index:100;
  display:block;
  min-width:245px;
  margin:0;
  padding:10px;
  list-style:none;
  visibility:hidden;
  opacity:0;
  transform:translateY(8px);
  border:1px solid var(--mhr-border);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--mhr-shadow);
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.main-navigation .sub-menu li { position:relative; }
.main-navigation .sub-menu a { display:block; padding:10px 12px; border-radius:10px; color:var(--mhr-text); font-size:13px; line-height:1.35; font-weight:700; }
.main-navigation .sub-menu a:hover { background:var(--mhr-soft); color:var(--mhr-primary); }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { visibility:visible; opacity:1; transform:translateY(0); }
.menu-toggle { display:none; margin-left:auto; width:42px; height:42px; align-items:center; justify-content:center; border:1px solid var(--mhr-border); border-radius:12px; background:#fff; padding:0; color:var(--mhr-text); cursor:pointer; }
.menu-toggle svg { width:23px; height:23px; }
.submenu-toggle { display:none; }
.header-search-wrap { position:relative; flex:0 0 auto; }
.header-search { display:inline-flex; width:40px; height:40px; padding:0; border:0; align-items:center; justify-content:center; border-radius:50%; color:var(--mhr-text); background:var(--mhr-soft); cursor:pointer; }
.header-search:hover, .header-search-wrap.is-open .header-search { background:var(--mhr-soft-2); color:var(--mhr-primary); }
.header-search svg { width:18px; height:18px; }
.header-search .search-icon-close { display:none; }
.header-search-wrap.is-open .search-icon-open { display:none; }
.header-search-wrap.is-open .search-icon-close { display:block; }
.header-search-panel { position:absolute; z-index:130; top:calc(100% + 10px); right:0; width:min(370px, calc(100vw - 32px)); max-width:calc(100vw - 24px); box-sizing:border-box; padding:10px; border:1px solid var(--mhr-border); border-radius:16px; background:#fff; box-shadow:var(--mhr-shadow); }
.header-search-panel[hidden] { display:none !important; }
.header-search-form { display:flex; gap:8px; margin:0; }
.header-search-field { flex:1; min-width:0; height:44px; border:1px solid var(--mhr-border); border-radius:12px; background:#fff; padding:0 13px; color:var(--mhr-text); outline:none; font-size:16px; }
.header-search-field:focus { border-color:#cdbdaf; box-shadow:0 0 0 3px rgba(173,44,44,.08); }
.header-search-submit { flex:0 0 44px; width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:12px; background:var(--mhr-primary); color:#fff; cursor:pointer; }
.header-search-submit svg { width:18px; height:18px; }

/* Homepage */
.site-main { min-height: 60vh; }
.hero { padding: 34px 0 18px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(300px, .72fr); gap: 22px; align-items: stretch; }
.hero-card { position: relative; min-height: 470px; border-radius: 26px; overflow: hidden; background: linear-gradient(145deg,#d7d1ca,#a9a39d); box-shadow: var(--mhr-shadow); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02) 25%, rgba(0,0,0,.78) 100%); }
.hero-card.is-placeholder::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 18% 18%, rgba(255,255,255,.35), transparent 31%), linear-gradient(135deg,#bdb6ae,#8b857f); }
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 32px; color: #fff; }
.hero-content a { color: #fff; }
.hero-content h1 { margin: 8px 0 10px; max-width: 760px; font-family: Georgia, serif; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; }
.hero-content p { margin:0; max-width:650px; color:rgba(255,255,255,.9); }
.hero-kicker { display: inline-block; padding: 6px 10px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.34); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hero-side { border-radius: 26px; padding: 30px; background: linear-gradient(145deg, var(--mhr-primary), #922323); color: #fff; display: flex; flex-direction: column; justify-content: center; box-shadow:var(--mhr-shadow-sm); }
.hero-side .hero-side-kicker { margin-bottom:9px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.72); }
.hero-side h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 34px; line-height: 1.12; }
.hero-side p { margin: 0 0 20px; color: rgba(255,255,255,.9); }
.btn { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; padding: 10px 17px; border-radius: 999px; border: 0; background: var(--mhr-primary); color: #fff; font-weight: 800; }
.btn:hover { color: #fff; background: var(--mhr-primary-dark); }
.btn-light { background: #fff; color: var(--mhr-primary); }
.btn-light:hover { background: #f9edea; color: var(--mhr-primary-dark); }
.btn-ghost { border:1px solid rgba(255,255,255,.45); background:transparent; color:#fff; }
.btn-ghost:hover { background:rgba(255,255,255,.12); }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; }

.section { padding: 34px 0; }
.section-alt { background:var(--mhr-soft); border-block:1px solid var(--mhr-border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.section-heading p { margin: 5px 0 0; color: var(--mhr-muted); }
.section-link { font-size: 14px; font-weight: 800; white-space: nowrap; }

.category-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.category-card { min-height:0; display:flex; align-items:center; justify-content:flex-start; gap:14px; padding:18px 19px; border:1px solid var(--mhr-border); border-radius:15px; background:#fff; color:var(--mhr-text); box-shadow:none; transition:border-color .18s ease, background .18s ease, transform .18s ease; }
.category-card:hover { transform:translateY(-1px); border-color:#d8ccbf; background:#fffaf5; color:var(--mhr-text); }
.category-card-content { min-width:0; }
.category-card strong { display:block; color:var(--mhr-text); font-family:inherit; font-size:16px; line-height:1.25; font-weight:800; }
.category-card span { display:block; margin-top:3px; color:var(--mhr-muted); font-size:12px; }

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.recipe-card { border: 1px solid var(--mhr-border); border-radius: var(--mhr-radius); overflow: hidden; background: var(--mhr-surface); box-shadow: var(--mhr-shadow-sm); transition:transform .2s ease, box-shadow .2s ease; }
.recipe-card:hover { transform:translateY(-3px); box-shadow:var(--mhr-shadow); }
.recipe-card-thumb { display:block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg,#eee8e0,#ddd5cb); }
.recipe-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.recipe-card:hover .recipe-card-thumb img { transform: scale(1.025); }
.recipe-card-body { padding: 17px 18px 19px; }
.recipe-card h3 { margin: 5px 0 8px; font-family: Georgia, serif; font-size: 22px; line-height: 1.2; }
.recipe-card h3 a { color: var(--mhr-text); }
.recipe-card h3 a:hover { color: var(--mhr-primary); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--mhr-muted); font-size: 11px; font-weight:650; text-transform:uppercase; letter-spacing:.025em; }
.card-excerpt { margin: 9px 0 0; color: var(--mhr-muted); font-size: 14px; line-height: 1.55; }

.owner-card { display:grid; grid-template-columns:minmax(220px, .72fr) minmax(0, 1.28fr); gap:30px; align-items:center; padding:26px; border:1px solid var(--mhr-border); border-radius:24px; background:#fff; box-shadow:var(--mhr-shadow-sm); }
.owner-photo-wrap { min-height:310px; border-radius:19px; overflow:hidden; background:var(--mhr-soft); }
.owner-photo { width:100%; height:100%; min-height:310px; object-fit:cover; }
.owner-copy { padding:8px 12px 8px 0; }
.owner-kicker { display:block; margin-bottom:8px; color:var(--mhr-primary); font-size:12px; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
.owner-copy h2 { margin:0 0 12px; font-family:Georgia,serif; font-size:clamp(28px,4vw,40px); line-height:1.1; }
.owner-copy p { margin:0 0 15px; max-width:720px; color:var(--mhr-muted); }

.facebook-cta { padding:30px; border-radius:26px; background:linear-gradient(135deg,#315aa7,#244781); color:#fff; display:flex; align-items:center; justify-content:space-between; gap:24px; box-shadow:var(--mhr-shadow); }
.facebook-cta h2 { margin:0 0 7px; font-family:Georgia,serif; font-size:clamp(27px,4vw,38px); line-height:1.1; }
.facebook-cta p { margin:0; color:rgba(255,255,255,.86); max-width:720px; }
.facebook-buttons { display:flex; gap:10px; flex-wrap:wrap; flex:0 0 auto; }
.facebook-buttons .btn { background:#fff; color:#244781; }
.facebook-buttons .btn:hover { background:#eef3ff; color:#1d3866; }

/* Archives / pages */
.archive-header { padding: 44px 0 22px; text-align: center; }
.archive-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px,5vw,52px); }
.archive-header p { max-width: 700px; margin: 10px auto 0; color: var(--mhr-muted); }
.archive-description p { margin-top:10px; }
.all-recipes-intro { max-width:760px; margin:0 auto; }

/* Single recipe */
.single-wrap { padding: 34px 0 58px; }
.breadcrumbs { width:min(calc(100% - 32px),1040px); margin:0 auto 16px; color:var(--mhr-muted); font-size:12px; }
.breadcrumbs a { color:var(--mhr-muted); }
.breadcrumbs a:hover { color:var(--mhr-primary); }
.single-header { width: min(100%, 920px); margin: 0 auto 24px; text-align: center; }
.single-header .eyebrow { color: var(--mhr-primary); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.single-title { margin: 8px 0 12px; font-family: Georgia, serif; font-size: clamp(38px, 6vw, 62px); line-height: 1.04; }
.single-excerpt { max-width: 740px; margin: 0 auto; color: var(--mhr-muted); font-size: 18px; }
.post-meta { margin-top: 14px; color: var(--mhr-muted); font-size: 12px; }
.single-featured { width: min(100%, 1040px); margin: 26px auto 32px; border-radius: 24px; overflow: hidden; box-shadow: var(--mhr-shadow); }
.single-featured img { width: 100%; max-height: 760px; object-fit: cover; }
.recipe-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 14px; }
.recipe-fact { padding: 14px; border: 1px solid var(--mhr-border); border-radius: 14px; background: var(--mhr-soft); text-align: center; }
.recipe-fact small { display: block; color: var(--mhr-muted); }
.recipe-fact strong { display: block; margin-top: 2px; }
.recipe-jumps { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 24px; }
.recipe-jumps a { padding:8px 12px; border:1px solid var(--mhr-border); border-radius:999px; background:#fff; color:var(--mhr-text); font-size:13px; font-weight:750; }
.recipe-jumps a:hover { border-color:#d3c6b7; color:var(--mhr-primary); }
.recipe-box { margin: 30px 0; padding: 26px; border: 1px solid var(--mhr-border); border-radius: 22px; background: #fff; box-shadow: var(--mhr-shadow-sm); }
.recipe-box h2 { margin-top: 0; font-family: Georgia, serif; font-size: 30px; }
.recipe-box ul, .recipe-box ol { padding-left: 22px; }
.recipe-box li { margin-bottom: 8px; }
.entry-content h2, .entry-content h3 { font-family: Georgia, serif; line-height: 1.2; margin-top: 1.6em; }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 25px; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--mhr-primary); background: var(--mhr-soft); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.author-box { display: flex; gap: 16px; align-items: center; margin: 34px 0; padding: 20px; background: var(--mhr-soft); border-radius: 18px; }
.author-box .author-mark { flex:0 0 58px; width:58px; height:58px; border-radius:50%; display:grid; place-items:center; background:var(--mhr-primary); color:#fff; font-family:Georgia,serif; font-size:23px; font-weight:700; }
.author-box strong { display: block; }
.author-box p { margin: 3px 0 0; color: var(--mhr-muted); font-size: 14px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 36px 0 10px; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mhr-border); border-radius: 10px; background: #fff; }
.pagination .current { background: var(--mhr-primary); color: #fff; border-color: var(--mhr-primary); }
.search-form { display: flex; max-width: 620px; margin: 20px auto; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 48px; border: 1px solid var(--mhr-border); border-radius: 999px 0 0 999px; padding: 0 18px; background: #fff; }
.search-submit { height: 48px; border: 0; padding: 0 20px; border-radius: 0 999px 999px 0; background: var(--mhr-primary); color: #fff; font-weight: 800; cursor: pointer; }



/* Informational and legal pages */
.mhr-page { padding-top: 38px; }
.mhr-page .single-header { margin-bottom: 30px; }
.mhr-page .single-title { font-size: clamp(36px, 5vw, 52px); }
.mhr-page .entry-content { color: #39342f; }
.mhr-page .entry-content > :first-child { margin-top: 0; }
.mhr-page .entry-content section { margin: 0 0 38px; }
.mhr-page .entry-content section:last-child { margin-bottom: 0; }
.mhr-page .entry-content h2 { margin: 0 0 14px; font-size: clamp(27px, 3.6vw, 34px); }
.mhr-page .entry-content h3 { margin: 0 0 8px; font-size: 21px; }
.mhr-page .entry-content ul { padding-left: 1.3em; }
.mhr-page .entry-content li { margin-bottom: 7px; }
.mhr-page .entry-content a:not(.mhr-button) { text-decoration-thickness: 1px; }
.page-lead { font-size: 20px; line-height: 1.65; color: #403a34; }
.mhr-button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:10px 18px; border-radius:999px; background:var(--mhr-primary); color:#fff !important; font-weight:800; text-decoration:none !important; box-shadow:0 7px 18px rgba(131,32,32,.12); }
.mhr-button:hover { background:var(--mhr-primary-dark); color:#fff !important; }

/* Legal pages: calm, readable and deliberately simple. */
.mhr-page.is-legal-page .single-header { width:min(calc(100% - 32px), 780px); margin-bottom:22px; }
.mhr-page.is-legal-page .single-title { font-size:clamp(34px, 4.7vw, 48px); }
.mhr-page.is-legal-page .entry-content { width:min(calc(100% - 32px), 780px); padding:28px 30px; border:1px solid var(--mhr-border); border-radius:20px; background:#fff; box-shadow:0 6px 22px rgba(51,38,27,.045); }
.mhr-page.is-legal-page .legal-page > p:first-child { margin:-4px 0 24px; padding-bottom:18px; border-bottom:1px solid var(--mhr-border); color:var(--mhr-muted); font-size:14px; }
.mhr-page.is-legal-page .legal-page h2 { position:relative; margin:34px 0 12px; padding-top:2px; font-size:25px; }
.mhr-page.is-legal-page .legal-page h2:first-of-type { margin-top:26px; }
.mhr-page.is-legal-page .legal-page p { margin-bottom:14px; }
.mhr-page.is-legal-page .legal-page ul { margin:10px 0 20px; padding-left:22px; }
.mhr-page.is-legal-page .legal-page li { margin-bottom:6px; }

/* About page */
.mhr-page.page-rolunk .entry-content { width:min(calc(100% - 32px), 920px); }
.about-page .about-intro { padding:26px 28px; border:1px solid var(--mhr-border); border-radius:22px; background:linear-gradient(145deg,#fff,#fbf6f0); box-shadow:var(--mhr-shadow-sm); }
.about-page .about-intro .page-lead { margin-bottom:12px; font-family:Georgia,serif; font-size:clamp(24px,3.3vw,32px); line-height:1.3; }
.about-page > section:not(.about-intro):not(.about-contact) { padding:2px 2px 26px; border-bottom:1px solid var(--mhr-border); }
.about-page .about-contact { padding:24px 26px; border-radius:20px; background:var(--mhr-soft); }
.about-page .about-contact h2 { margin-top:0; }

/* Contact page */
.mhr-page.page-kapcsolat .entry-content { width:min(calc(100% - 32px), 860px); }
.contact-page .contact-intro { max-width:760px; margin-inline:auto; text-align:center; }
.contact-page .contact-card { padding:28px; border:1px solid var(--mhr-border); border-radius:22px; background:#fff; box-shadow:var(--mhr-shadow-sm); text-align:center; }
.contact-page .contact-card h2 { margin-top:0; }
.contact-page .contact-card > p:nth-of-type(1) a { display:inline-block; font-size:clamp(18px,3vw,24px); font-weight:800; overflow-wrap:anywhere; }
.contact-page > section:not(.contact-intro):not(.contact-card) { padding:0 2px 28px; border-bottom:1px solid var(--mhr-border); }
.contact-page > section:last-child { border-bottom:0; padding-bottom:0; }

/* Authors page */
.mhr-page.page-szerzoink .entry-content { width:min(calc(100% - 32px), 980px); }
.authors-page .author-intro { display:grid; grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr); gap:34px; align-items:center; margin-bottom:46px; padding:26px; border:1px solid var(--mhr-border); border-radius:24px; background:#fff; box-shadow:var(--mhr-shadow-sm); }
.author-profile-media { min-height:360px; border-radius:19px; overflow:hidden; background:var(--mhr-soft); }
.author-profile-media img { width:100%; height:100%; min-height:360px; object-fit:cover; }
.authors-page .author-copy { min-width:0; padding:8px 10px 8px 0; }
.authors-page .author-eyebrow { margin:0 0 7px; color:var(--mhr-primary); font-size:12px; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
.authors-page .author-copy h2 { margin:0 0 12px; font-size:clamp(30px,4vw,42px); }
.authors-page .author-copy .page-lead { margin-bottom:14px; }
.authors-page .editorial-values { margin-top:8px; }
.values-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:18px; }
.value-card { padding:20px; border:1px solid var(--mhr-border); border-radius:16px; background:var(--mhr-soft); }
.value-card h3 { margin:0 0 7px !important; font-family:inherit !important; font-size:17px !important; font-weight:850; }
.value-card p { margin:0; color:var(--mhr-muted); font-size:14px; }
.authors-page > section:not(.author-intro):not(.editorial-values):not(.author-contact) { padding-bottom:26px; border-bottom:1px solid var(--mhr-border); }
.authors-page .author-contact { padding:24px 26px; border-radius:20px; background:var(--mhr-soft); }
.authors-page .author-contact h2 { margin-top:0; }

/* Footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--mhr-border); background: #2f2a25; color: rgba(255,255,255,.82); }
.footer-top { padding: 48px 0 32px; display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 36px; }
.footer-title { color: #fff; font-family: Georgia, serif; font-size: 26px; margin: 0 0 8px; }
.footer-copy { max-width:420px; }
.footer-heading { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 7px 0; }
.footer-menu a { color: rgba(255,255,255,.8); }
.footer-menu a:hover { color: #fff; }
.footer-bottom { padding: 18px 0 27px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.58); }
.notice-empty { grid-column:1/-1; padding: 28px; text-align: center; border: 1px dashed var(--mhr-border); border-radius: 18px; background: #fff; color: var(--mhr-muted); }

@media (max-width: 1120px) {
  .header-inner { gap:13px; }
  .site-branding { flex-basis:235px; min-width:195px; }
  .main-navigation .menu > li > a { padding-inline:5px; font-size:11.5px; }
  .site-title { font-size:22px; }
  .site-description { display:none; }
}

@media (max-width: 1024px) {
  .hero { display:none; }
}

@media (max-width: 980px) {

  .authors-page .author-intro { grid-template-columns:minmax(210px,.75fr) minmax(0,1.25fr); gap:24px; }
  .author-profile-media, .author-profile-media img { min-height:310px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .owner-card { grid-template-columns:minmax(180px, .7fr) minmax(0, 1.3fr); gap:22px; }
  .owner-photo-wrap, .owner-photo { min-height:270px; }
  .facebook-cta { align-items:flex-start; flex-direction:column; }

  .main-navigation { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); max-height:calc(100vh - 110px); overflow:auto; background: #fff; border: 1px solid var(--mhr-border); border-radius: 18px; box-shadow: var(--mhr-shadow); padding: 10px; }
  .main-navigation.is-open { display: block; }
  .main-navigation .menu { display: block; }
  .main-navigation .menu > li { border-bottom: 1px solid var(--mhr-border); }
  .main-navigation .menu > li:last-child { border-bottom: 0; }
  .main-navigation .menu > li > a { display:block; padding:12px 44px 12px 9px; font-size:14px; }
  .main-navigation .menu-item-has-children > a::after { display:none; }
  .main-navigation .sub-menu { position:static; min-width:0; display:none; visibility:visible; opacity:1; transform:none; border:0; border-radius:0; box-shadow:none; padding:0 0 8px 14px; background:transparent; }
  .main-navigation li.submenu-open > .sub-menu { display:block; }
  .main-navigation .sub-menu a { padding:9px 10px; font-size:13px; }
  .submenu-toggle { display:flex; position:absolute; right:2px; top:7px; width:36px; height:36px; align-items:center; justify-content:center; border:0; border-radius:9px; background:var(--mhr-soft); color:var(--mhr-text); cursor:pointer; }
  .submenu-toggle::before { content:""; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .15s ease; }
  li.submenu-open > .submenu-toggle::before { transform:translateY(2px) rotate(225deg); }
  .menu-toggle { display:inline-flex; }
  .header-search { display:inline-flex; }
  .header-search-panel { right:0; }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (max-width: 680px) {

  .mhr-page { padding-top:22px; }
  .mhr-page .single-header { margin-bottom:20px; }
  .mhr-page .single-title { font-size:34px; }
  .mhr-page .entry-content section { margin-bottom:30px; }
  .mhr-page .entry-content h2 { font-size:27px; }
  .page-lead { font-size:18px; }
  .mhr-page.is-legal-page .single-header { width:min(calc(100% - 24px),780px); }
  .mhr-page.is-legal-page .entry-content { width:min(calc(100% - 24px),780px); padding:20px 18px; border-radius:16px; }
  .mhr-page.is-legal-page .legal-page h2 { font-size:23px; margin-top:28px; }
  .about-page .about-intro, .contact-page .contact-card, .authors-page .author-contact { padding:20px; border-radius:17px; }
  .authors-page .author-intro { grid-template-columns:1fr; gap:18px; padding:18px; border-radius:20px; }
  .author-profile-media { min-height:0; aspect-ratio:4/3; }
  .author-profile-media img { min-height:0; height:100%; aspect-ratio:4/3; }
  .authors-page .author-copy { padding:0 2px 4px; }
  .values-grid { grid-template-columns:1fr; gap:10px; }
  .value-card { padding:16px; }
  body { font-size: 16px; }
  .mhr-container, .mhr-narrow { width: min(calc(100% - 24px), var(--mhr-max)); }
  .header-inner { min-height:68px; gap:8px; }
  .site-branding { flex:1 1 auto; min-width:0; max-width:none; }
  .site-title { font-size:clamp(18px, 5.4vw, 21px); }
  .site-title a { overflow:hidden; text-overflow:ellipsis; }
  .site-description { display:none; }
  .menu-toggle, .header-search { width:39px; height:39px; border-radius:11px; }
  .header-search-panel { width:calc(100vw - 24px); max-width:none; right:0; left:auto; padding:8px; }
  .header-search-form { width:100%; min-width:0; gap:7px; }
  .header-search-submit { flex:0 0 44px; }
  .section { padding: 27px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .category-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .category-card { padding:10px 11px; border-radius:12px; }
  .category-card strong { font-size:14px; line-height:1.2; }
  .category-card-content { display:block; }
  .category-card-content > span { display:none; }
  .recipe-grid { grid-template-columns:1fr; gap:17px; }
  .owner-card { grid-template-columns:1fr; padding:18px; border-radius:20px; gap:18px; }
  .owner-photo-wrap, .owner-photo { min-height:0; aspect-ratio:4/3; }
  .owner-copy { padding:0 2px 4px; }
  .facebook-cta { padding:22px; border-radius:20px; }
  .single-wrap { padding-top: 22px; }
  .single-title { font-size: 39px; }
  .single-featured { border-radius: 18px; }
  .recipe-facts { grid-template-columns: repeat(2, 1fr); }
  .recipe-box { padding: 20px; }
  .footer-top { grid-template-columns: 1fr; padding-top: 36px; }
}

@media (max-width: 420px) {
  .category-grid { grid-template-columns:1fr 1fr; gap:7px; }
  .category-card { padding:9px 10px; min-height:48px; }
  .category-card strong { font-size:13.5px; }
  .site-title { font-size:18px; }
  .menu-toggle, .header-search { width:38px; height:38px; }
  .header-search-panel { width:calc(100vw - 24px); max-width:none; right:0; left:auto; }
}


/* v1.8 — fallback page layouts when Gutenberg flattens pasted HTML. */
.about-page-fallback,
.contact-page-fallback,
.authors-page-fallback,
.legal-page-fallback { width:100%; }

/* Generic legal fallback: still looks polished without special inner classes. */
.mhr-page.is-legal-page .legal-page-fallback > p:first-child {
  margin:-4px 0 24px;
  padding-bottom:18px;
  border-bottom:1px solid var(--mhr-border);
  color:var(--mhr-muted);
  font-size:14px;
}
.mhr-page.is-legal-page .legal-page-fallback h2 {
  margin:34px 0 12px;
  font-size:25px;
}
.mhr-page.is-legal-page .legal-page-fallback p { margin-bottom:14px; }
.mhr-page.is-legal-page .legal-page-fallback ul { margin:10px 0 20px; padding-left:22px; }

/* About fallback: make flat editor content feel intentionally designed. */
.page-rolunk .about-page-fallback > p:first-child {
  margin:0 0 12px;
  font-family:Georgia,serif;
  font-size:clamp(24px,3.3vw,32px);
  font-weight:700;
  line-height:1.3;
  color:var(--mhr-text);
}
.page-rolunk .about-page-fallback > p:nth-child(2),
.page-rolunk .about-page-fallback > p:nth-child(3) {
  font-size:17px;
  line-height:1.8;
}
.page-rolunk .about-page-fallback h2 {
  margin-top:34px;
  padding-top:26px;
  border-top:1px solid var(--mhr-border);
}
.page-rolunk .about-page-fallback h2:first-of-type {
  margin-top:28px;
}
.page-rolunk .about-page-fallback > p:first-child,
.page-rolunk .about-page-fallback > p:nth-child(2),
.page-rolunk .about-page-fallback > p:nth-child(3) {
  padding-inline:2px;
}

/* Contact fallback. */
.page-kapcsolat .contact-page-fallback > p:first-child {
  max-width:720px;
  margin:0 auto 14px;
  text-align:center;
  font-size:20px;
  line-height:1.65;
}
.page-kapcsolat .contact-page-fallback > p:nth-child(2) {
  max-width:720px;
  margin:0 auto 34px;
  text-align:center;
  color:var(--mhr-muted);
}
.page-kapcsolat .contact-page-fallback h2 {
  margin-top:32px;
  padding-top:24px;
  border-top:1px solid var(--mhr-border);
}
.page-kapcsolat .contact-page-fallback h2:first-of-type {
  margin-top:0;
  padding:24px;
  border:1px solid var(--mhr-border);
  border-radius:20px 20px 0 0;
  background:#fff;
  text-align:center;
}

/* Author fallback reconstructed by page.php. */
.authors-page-fallback > h2 {
  margin-top:36px;
  padding-top:28px;
  border-top:1px solid var(--mhr-border);
}
.authors-page-fallback > h2:first-of-type { margin-top:0; }
.authors-page-fallback > p { max-width:820px; }
.authors-page-fallback .editorial-values {
  margin:38px 0;
  padding:28px;
  border:1px solid var(--mhr-border);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--mhr-shadow-sm);
}
.authors-page-fallback .editorial-values > h2 { margin-top:0; }

@media (max-width:680px) {
  .mhr-page.is-legal-page .legal-page-fallback h2 { font-size:23px; }
  .authors-page-fallback .editorial-values { padding:18px; border-radius:17px; }
}
