/* Chrome del tema: header, menu, footer. Niente hero FSE, niente featured image. */
html { scroll-behavior: smooth; }

body.mp-theme {
  margin: 0;
  background: var(--mp-paper, #f4ede3);
  color: var(--mp-ink, #2c241c);
  font-family: var(--mp-font-sans, "Source Sans 3", "Segoe UI", sans-serif);
  font-size: 18px;
  line-height: 1.65;
}

body.mp-theme .wp-site-blocks,
body.mp-theme .wp-block-cover,
body.mp-theme .wp-block-post-featured-image,
body.mp-theme .post-thumbnail,
body.mp-theme .wp-post-image,
body.mp-theme .entry-header,
body.mp-theme .page-header,
body.mp-theme .wp-block-post-title,
body.mp-theme .wp-block-post-date,
body.mp-theme .wp-block-post-author,
body.mp-theme .wp-block-template-part {
  display: none !important;
}

.mp-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.mp-skip:focus { left: 16px; }

.mp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mp-border, #d4c8b8);
}
body.admin-bar .mp-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .mp-header { top: 46px; }
}

.mp-topbar {
  background: var(--mp-linen, #e8dfd0);
  border-bottom: 1px solid var(--mp-border, #d4c8b8);
  font-size: 14px;
  color: var(--mp-ink-soft, #4a4036);
}
.mp-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.mp-topbar a { color: var(--mp-accent, #3e5c4a); font-weight: 600; text-decoration: none; }
.mp-topbar a:hover { text-decoration: underline; }

.mp-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mp-logo,
.mp-logo .custom-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mp-ink, #2c241c);
}
.mp-logo img,
.mp-logo .custom-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  outline: none;
}
.mp-logo-word {
  font-family: var(--mp-font-display, Fraunces, Palatino, serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mp-logo-word--light { color: var(--mp-footer-fg, #f4ede3); margin: 0; }

.mp-nav { display: none; }
@media (min-width: 960px) {
  .mp-nav { display: block; }
}

.mp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mp-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--mp-ink-soft, #4a4036);
  font-weight: 500;
}
.mp-menu a:hover,
.mp-menu .current-menu-item > a {
  background: var(--mp-linen, #e8dfd0);
  color: var(--mp-ink, #2c241c);
}
.mp-menu .menu-item-has-children { position: relative; }
.mp-menu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 260px;
  margin: 4px 0 0;
  padding: 8px;
  list-style: none;
  background: var(--mp-ivory, #fbf7f1);
  border-radius: 12px;
  box-shadow: var(--mp-shadow);
  z-index: 20;
}
.mp-menu .menu-item-has-children:hover > .sub-menu,
.mp-menu .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.mp-menu .sub-menu a { padding: 10px 12px; }

.mp-header-actions { display: flex; align-items: center; gap: 8px; }
.mp-header-actions .mp-btn { display: none; }
@media (min-width: 640px) {
  .mp-header-actions .mp-btn { display: inline-flex; }
}

.mp-burger {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.mp-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mp-ink);
  border-radius: 2px;
}
@media (min-width: 960px) {
  .mp-burger { display: none; }
}

.mp-mobile {
  display: none;
  border-top: 1px solid var(--mp-border, #d4c8b8);
  background: var(--mp-ivory, #fbf7f1);
  padding: 12px 24px 20px;
}
.mp-mobile.is-open,
.mp-mobile:not([hidden]) { display: block; }
@media (min-width: 960px) {
  .mp-mobile { display: none !important; }
}
.mp-mobile-menu,
.mp-mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mp-mobile-menu a {
  display: block;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--mp-ink);
  font-size: 18px;
}
.mp-mobile-menu .sub-menu a {
  padding-left: 20px;
  color: var(--mp-ink-soft);
}

.mp-main { min-height: 50vh; }
.mp-main .entry-content,
.mp-main article,
.mp-main .hentry {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.mp-footer {
  background: var(--mp-footer, #24362d);
  color: var(--mp-footer-fg, #f4ede3);
}
.mp-footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  gap: 40px;
}
@media (min-width: 800px) {
  .mp-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.mp-footer-brand p { max-width: 28rem; color: rgba(244, 237, 227, 0.8); }
.mp-footer-title {
  font-family: var(--mp-font-display, Fraunces, Palatino, serif);
  font-size: 1.15rem;
  margin: 0 0 16px;
}
.mp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mp-footer a { color: rgba(244, 237, 227, 0.8); text-decoration: none; }
.mp-footer a:hover { color: #fff; }
.mp-footer-bottom {
  border-top: 1px solid rgba(244, 237, 227, 0.12);
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: rgba(244, 237, 227, 0.55);
}
