/*
Theme Name:  MSMS
Author:      Digital Footprint
Description: Egyedi WordPress blog theme – msms.hu
Version:     1.0.0
License:     Proprietary
Text Domain: msms
*/

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --black:         #262626;
  --black-5:       #2626260d;
  --black-20:      #26262633;
  --black-33:      #26262654;
  --black-50:      #26262680;
  --black-66:      #262626a8;
  --black-90:      #262626e6;
  --white:         #ffffff;
  --bg:            #fbf7f1;
  --medium-gray:   #929692;
  --border:        #26262654;
  --radius-small:  16px;
  --radius-medium: 24px;
  --radius-large:  32px;
  --pill-radius:   999999px;
  --primary:       #262626;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--black);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { margin: 0; }

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1;
}

h2 {
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h3, h4 {
  font-family: 'Cutive Mono', monospace;
  font-weight: 400;
  letter-spacing: -0.066em;
  line-height: 1;
}

p {
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: opacity 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

a:hover { opacity: 0.5; }

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =============================================
   Container
   ============================================= */
.msms-container {
  width: 96%;
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   Navbar
   ============================================= */
.msms-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  height: 3.9rem;
  padding: 1rem 0;
  background-color: transparent;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.msms-nav.is-scrolled {
  background-color: rgba(251, 247, 241, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.msms-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.msms-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: -0.08em;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.msms-logo:hover { opacity: 0.5; }

.msms-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Category pills in nav */
.msms-nav-cats {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 0 1.5rem;
}

@media (max-width: 991px) {
  .msms-nav-cats { display: none; }
}

/* Search + burger */
.msms-nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Search form */
.msms-search-form {
  display: flex;
  align-items: center;
}

.msms-search-input {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.8rem;
  color: var(--black);
  background-color: transparent;
  border: 1.5px solid var(--black);
  border-radius: var(--pill-radius);
  padding: 0 1em;
  height: 1.75rem;
  width: 160px;
  transition: background-color 0.3s ease, width 0.3s ease;
  outline: none;
}

.msms-search-input::placeholder { color: var(--black-50); }

.msms-search-input:focus {
  background-color: rgba(255,255,255,0.65);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

@media (max-width: 767px) {
  .msms-search-input { width: 120px; }
}

/* Hamburger button */
.msms-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--black);
  border-radius: var(--pill-radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  flex-shrink: 0;
}

.msms-burger:hover { opacity: 0.75; }

.msms-burger-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.msms-burger-dot {
  width: 3px;
  height: 3px;
  background: var(--black);
  border-radius: 50%;
}

.msms-burger-x { display: none; }

.msms-burger-x::before,
.msms-burger-x::after {
  content: '';
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--black);
  position: absolute;
}

.msms-burger-x::before { transform: rotate(45deg); }
.msms-burger-x::after { transform: rotate(-45deg); }

.msms-burger.is-open .msms-burger-dots { display: none; }
.msms-burger.is-open .msms-burger-x {
  display: block;
  position: relative;
}

/* =============================================
   Nav Overlay (Mobile / Full-screen)
   ============================================= */
.msms-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--white);
  z-index: 998;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.msms-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.msms-nav-overlay-inner {
  width: 96%;
  max-width: 68rem;
  margin: 0 auto;
  flex: 1;
}

.msms-nav-overlay-links {
  display: flex;
  gap: 4rem;
  margin-bottom: 3rem;
}

.msms-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.msms-nav-list-item a {
  font-family: 'Cutive Mono', monospace;
  font-size: 1.1rem;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.msms-nav-list-item a:hover { color: var(--medium-gray); opacity: 1; }

.msms-nav-list-item a.current-cat,
.msms-nav-list-item a.current-menu-item { color: #972e1d; }

.msms-nav-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 2rem;
}

.msms-nav-pill-grid .msms-pill { font-size: 3rem; }

@media (max-width: 767px) {
  .msms-nav-pill-grid .msms-pill { font-size: 1.75rem; }
}

.msms-nav-overlay-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  width: 96%;
  max-width: 68rem;
  margin: 0 auto;
}

/* =============================================
   Pills / Category Badges
   ============================================= */
.msms-pill {
  display: inline-block;
  font-family: 'Cutive Mono', monospace;
  font-size: 0.9rem;
  color: var(--black);
  letter-spacing: -0.025em;
  padding: 0.4em 0.75em;
  border-radius: var(--pill-radius);
  text-decoration: none;
  transition: box-shadow 0.2s ease, opacity 0.3s ease;
  background-color: transparent;
}

.msms-pill:hover { opacity: 0.6; }

.msms-pill.is-current,
.msms-pill.current-cat {
  box-shadow: inset 0 0 40px #2626261a;
  opacity: 1;
}

.msms-pill.cc-huge { font-size: 3.25rem; }

@media (max-width: 991px) {
  .msms-pill.cc-huge { font-size: 2rem; }
}

@media (max-width: 767px) {
  .msms-pill.cc-huge { font-size: 1.5rem; }
}

.msms-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
}

.msms-pill-grid.cc-huge { gap: 16px 8px; }

/* Section label / eyebrow */
.msms-section-label {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--medium-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =============================================
   Sections
   ============================================= */
.msms-section {
  padding: 6rem 0;
  position: relative;
}

.msms-section.cc-hero-text {
  padding-top: 5rem;
  padding-bottom: 0;
}

.msms-section.cc-hero-featured {
  padding-top: 4rem;
  padding-bottom: 0;
}

.msms-section.cc-cats {
  padding-top: 4rem;
  padding-bottom: 0;
}

.msms-section.cc-recent {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.msms-section.cc-footer {
  padding-top: 4rem;
  padding-bottom: 0;
}

/* Section top row */
.msms-section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =============================================
   Hero Text Section
   ============================================= */
.msms-hero-text-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  gap: 2rem;
}

.msms-hero-left { flex: 0 0 58%; }

.msms-site-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 9rem;
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 1;
  margin-bottom: 4px;
}

.msms-site-desc {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.5rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.msms-hero-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.25em;
  flex: 0 0 38%;
}

@media (max-width: 991px) {
  .msms-site-name { font-size: 5rem; }
  .msms-site-desc { font-size: 1.75rem; }
  .msms-hero-text-inner { flex-direction: column; align-items: flex-start; }
  .msms-hero-left { flex: none; width: 100%; }
  .msms-hero-right { flex: none; width: 100%; justify-content: flex-start; }
}

@media (max-width: 767px) {
  .msms-site-name { font-size: 3.5rem; }
  .msms-site-desc { font-size: 1.25rem; }
}

/* =============================================
   Featured Section (Spotlight + Popular)
   ============================================= */
.msms-featured-wrap {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.msms-spotlight { flex: 1 1 0; min-width: 0; }

.msms-popular {
  flex: 0 0 320px;
  width: 320px;
}

@media (max-width: 991px) {
  .msms-featured-wrap {
    flex-direction: column;
  }
  .msms-popular { flex: none; width: 100%; }
}

/* Spotlight card */
.msms-spotlight-card {
  display: block;
  text-decoration: none;
  color: var(--black);
  margin-top: 24px;
  transition: opacity 0.3s ease;
}

.msms-spotlight-card:hover { opacity: 0.8; }

/* Image containers */
.msms-img--large,
.msms-img--small {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background-color: var(--bg);
}

.msms-img--large { border-radius: var(--radius-medium); } /* 24px */
.msms-img--small { border-radius: var(--radius-small); }  /* 16px */

.msms-img--large img,
.msms-img--small img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
}

/* Card info row */
.msms-card-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin-top: 16px;
}

/* Card title */
.msms-card-title {
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--black);
  margin-top: 0.75rem;
  display: block;
}

.msms-spotlight .msms-card-title {
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

@media (max-width: 991px) {
  .msms-spotlight .msms-card-title { font-size: 2rem; }
}

/* Most Popular list items */
.msms-popular-label {
  font-family: 'Cutive Mono', monospace;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  display: block;
  margin-bottom: 24px;
}

.msms-popular-list { margin-top: 0; }

.msms-popular-item {
  display: flex;
  flex-direction: column;
  background-color: var(--black-5);
  border-radius: var(--radius-small);
  padding: 0.66em 1em;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.3s ease;
}

.msms-popular-item:hover { opacity: 0.7; }

.msms-popular-item .msms-card-info { margin-top: 0; }

.msms-popular-item .msms-card-title {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  letter-spacing: -0.025em;
}

/* =============================================
   Categories Section
   ============================================= */
.msms-cats-header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1rem;
}

/* =============================================
   Recent Blogs Grid
   ============================================= */
.msms-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  align-items: center;
}

.msms-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 16px;
  margin-top: 2rem;
}

@media (max-width: 991px) {
  .msms-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .msms-blog-grid { grid-template-columns: 1fr; }
}

/* Grid card */
.msms-card {
  display: block;
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.3s ease;
}

.msms-card:hover { opacity: 0.8; }

.msms-card .msms-card-title {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

/* =============================================
   Single Post — Layout C (Osztott fejléc)
   ============================================= */
.msms-single-hero {
  background-color: var(--bg);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.msms-single-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.msms-single-hero-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msms-breadcrumb {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.8rem;
  color: var(--medium-gray);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.msms-breadcrumb a {
  color: var(--medium-gray);
  transition: color 0.2s ease;
}

.msms-breadcrumb a:hover { color: var(--black); opacity: 1; }

.msms-single-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1.1;
  margin-top: 8px;
  margin-bottom: 24px;
}

.msms-single-hero-img {
  position: relative;
  height: 420px;
  border-radius: var(--radius-small);
  overflow: hidden;
  background-color: var(--bg);
}

.msms-single-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
}

@media (max-width: 991px) {
  .msms-single-hero-inner {
    grid-template-columns: 1fr;
  }
  .msms-single-hero-img { height: 280px; }
  .msms-single-title { font-size: 2.5rem; }
}

@media (max-width: 767px) {
  .msms-single-title { font-size: 2rem; }
}

/* Single content */
.msms-single-content {
  padding: 4rem 0 6rem;
}

.msms-entry-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 1.05rem;
}

.msms-entry-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

.msms-entry-content h3 {
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.75rem;
}

.msms-entry-content p { margin-bottom: 1.25rem; line-height: 1.7; }

.msms-entry-content img {
  max-width: 100%;
  border-radius: var(--radius-small);
  margin: 1.5rem 0;
}

.msms-entry-content blockquote {
  border-left: 2px solid var(--black);
  background-color: var(--black-5);
  margin: 1.5rem 0;
  padding: 1em 1.25em;
  font-family: 'Cutive Mono', monospace;
  font-size: 1.1em;
  line-height: 1.5;
}

.msms-entry-content ul,
.msms-entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: initial;
}

.msms-entry-content ol { list-style: decimal; }

.msms-entry-content li { margin-bottom: 0.5rem; line-height: 1.5; }

/* Related posts */
.msms-related {
  background-color: var(--black-5);
  padding: 4rem 0;
}

.msms-related-title {
  font-family: 'Cutive Mono', monospace;
  font-size: 1.1rem;
  color: var(--medium-gray);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.msms-related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.msms-related-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.3s ease;
}

.msms-related-item:first-child { border-top: 1px solid var(--border); }

.msms-related-item:hover { opacity: 0.7; }

.msms-related-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  opacity: 0.2;
  flex-shrink: 0;
  line-height: 1;
  color: var(--primary);
  min-width: 2rem;
}

.msms-related-img {
  flex-shrink: 0;
  width: 160px;
  height: 110px;
  border-radius: var(--radius-small);
  overflow: hidden;
  background-color: var(--bg);
}

.msms-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
}

.msms-related-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.msms-related-cat {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.85rem;
  color: var(--medium-gray);
}

.msms-related-content-title {
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
}

.msms-related-excerpt {
  font-size: 0.875rem;
  color: var(--medium-gray);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 767px) {
  .msms-related-img { display: none; }
}

/* =============================================
   Archive Page
   ============================================= */
.msms-archive-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.msms-archive-label {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.8rem;
  color: var(--medium-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.msms-archive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1;
}

@media (max-width: 767px) {
  .msms-archive-title { font-size: 2.5rem; }
}

/* Archive card - no category badge, with excerpt */
.msms-archive-card {
  display: block;
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.3s ease;
}

.msms-archive-card:hover { opacity: 0.8; }

.msms-archive-card .msms-card-title { font-size: 1.25rem; }

.msms-archive-excerpt {
  font-size: 0.9rem;
  color: var(--medium-gray);
  line-height: 1.4;
  margin-top: 0.5rem;
}

/* =============================================
   Search Page
   ============================================= */
.msms-search-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.msms-search-label {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.8rem;
  color: var(--medium-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.msms-search-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.msms-search-noresults {
  text-align: center;
  padding: 4rem 0;
  font-family: 'Cutive Mono', monospace;
  color: var(--medium-gray);
}

/* =============================================
   Page Template
   ============================================= */
.msms-page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.msms-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.msms-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 6rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.msms-page-content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; margin: 2rem 0 1rem; }
.msms-page-content h3 { font-family: 'Manrope', Arial, sans-serif; font-size: 1.35rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.msms-page-content p { margin-bottom: 1.25rem; line-height: 1.7; }
.msms-page-content ul, .msms-page-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: initial; }
.msms-page-content ol { list-style: decimal; }
.msms-page-content li { margin-bottom: 0.5rem; line-height: 1.5; }
.msms-page-content img { max-width: 100%; border-radius: var(--radius-small); margin: 1.5rem 0; }

/* =============================================
   404 Page
   ============================================= */
.msms-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 0;
}

.msms-404-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.15;
  display: block;
}

.msms-404-title {
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  margin: 1rem 0;
}

.msms-404-back {
  display: inline-block;
  font-family: 'Cutive Mono', monospace;
  font-size: 1rem;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: var(--pill-radius);
  padding: 0.66em 1.5em;
  margin-top: 1.5rem;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.msms-404-back:hover { opacity: 0.6; }

/* =============================================
   Buttons / CTAs
   ============================================= */
.msms-btn {
  display: inline-block;
  font-family: 'Cutive Mono', monospace;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--black);
  border-radius: var(--pill-radius);
  padding: 0.66em 1em;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.msms-btn:hover { opacity: 0.5; color: var(--white); }

/* =============================================
   Footer
   ============================================= */
.msms-footer {
  background-color: var(--bg);
  padding-top: 4rem;
  padding-bottom: 0;
  border-top: 1px solid var(--border);
}

.msms-footer-top {
  display: flex;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.msms-footer-col-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.msms-footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: -0.08em;
  color: var(--black);
  text-decoration: none;
}

.msms-footer-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.msms-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.msms-footer-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Cutive Mono', monospace;
  font-size: 0.9rem;
  color: var(--black);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--black-5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.msms-footer-link:hover { color: var(--medium-gray); opacity: 1; }

.msms-footer-col-cats {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
}

.msms-footer-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.msms-footer-pill-grid .msms-pill {
  font-size: 1.5rem;
}

@media (max-width: 767px) {
  .msms-footer-top { flex-direction: column; gap: 2rem; }
  .msms-footer-pill-grid .msms-pill { font-size: 1.1rem; }
}

/* Footer bottom bar */
.msms-footer-bar {
  border-top: 1px solid var(--border);
  padding: 1em 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.msms-footer-bar-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.msms-footer-bar a,
.msms-footer-copyright {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.8rem;
  color: var(--medium-gray);
}

.msms-footer-bar a:hover { color: var(--black); opacity: 1; }

/* =============================================
   Pagination
   ============================================= */
.msms-pagination {
  padding: 3rem 0;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.9rem;
  color: var(--black);
  padding: 0.4em 0.75em;
  border-radius: var(--pill-radius);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.pagination .page-numbers.current {
  box-shadow: inset 0 0 40px #2626261a;
  font-weight: 500;
}

.pagination .page-numbers:hover:not(.current) {
  opacity: 0.6;
}

/* Prev / Next (archive) */
.msms-prevnext {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0;
}

.msms-prevnext a {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.9rem;
  color: var(--black);
  text-decoration: none;
  padding: 0.5em 1.25em;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  transition: opacity 0.2s ease;
}

.msms-prevnext a:hover {
  opacity: 0.6;
}

/* =============================================
   Utility
   ============================================= */
.screen-reader-text {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* =============================================
   Mobil: egységes kép-magasság (300px)
   ============================================= */
@media (max-width: 767px) {
  .msms-img--large,
  .msms-img--small {
    padding-top: 0;
    height: 300px;
  }

  .msms-img--large img,
  .msms-img--small img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =============================================
   GDPR cookie gomb border-radius override
   (Moove GDPR plugin alapból lekerekített — felülírjuk)
   ============================================= */
#cookie-notice-accept-button,
.cn-button,
.cli-plugin-button,
.moove-gdpr-infobar-allow-btn,
.moove-gdpr-modal-allow-all,
.moove-gdpr-modal-allow-selected,
.cmplz-btn,
.cc-btn {
  border-radius: var(--pill-radius) !important;
}
