/* ==========================================================================
   Marry Me Weddings — blog design refresh (tier A)
   Append at the end of the willyumaremmy child theme (Appearance → Customize
   → Additional CSS, or a last enqueue). Do not replace the theme files.
   Tier A refresh + v4: hide the curly-brace “stay in touch” background image and
   style the real “Stay in touch” label the mu-plugin injects.
   Fonts match the main-site refresh: Cormorant Garamond + Source Sans 3.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --mm-font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --mm-font-body: "Source Sans 3", Georgia, "Times New Roman", sans-serif;
  --mm-pink: #c31e60;
  --mm-brown: #633121;
  --mm-text: #4a4a4a;
  --mm-muted: #5c5c5c;
  --mm-max: 1120px;
}

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

/* Kill Thematic's 960px min-width and the child theme's stepped min-widths
   (750 / 615 / 460 / 300), which force horizontal squeeze or leftover gutters. */
html,
body {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden;
  font-family: var(--mm-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--mm-text);
}

#wrapper,
#header,
#branding,
#access,
#main,
#container,
#content,
#footer,
#subsidiary,
#siteinfo,
.menu {
  width: 100% !important;
  max-width: var(--mm-max);
  min-width: 0 !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#wrapper {
  max-width: var(--mm-max);
}

#container,
#content {
  overflow: visible !important;
  float: none;
}

/* --- Type scale ---------------------------------------------------------- */
body,
input,
textarea,
p,
#content,
.entry-content,
.entry-content p,
.entry-meta,
#sidebar,
.xoxo {
  font-family: var(--mm-font-body) !important;
  font-size: 17px;
  line-height: 1.65;
  color: var(--mm-text);
}

.entry-content p {
  font-size: 17px !important;
  margin-bottom: 1.1em;
}

h1,
h2,
h3,
h4,
h5,
h6,
#content h2.entry-title,
#content h1.entry-title,
.entry-title,
.entry-title a,
#header .slogan p span.header_name,
.clsCustomeNavi li p.w_title {
  font-family: var(--mm-font-display) !important;
}

#content h2.entry-title,
#content h1.entry-title,
.entry-title,
.entry-title a {
  font-size: 2rem !important;
  font-weight: 600;
  line-height: 1.25;
  color: var(--mm-pink) !important;
  font-style: italic;
}

#header .slogan p span.header_name {
  font-size: 1.6rem !important;
  line-height: 1.3 !important;
}

.clsCustomeNavi li p.w_title {
  font-size: 0.95rem !important;
  font-style: normal;
  letter-spacing: 0.02em;
}

.entry-meta,
#seolinks,
#seolinks a,
#siteinfo,
#pseudofooter,
#footer {
  font-family: var(--mm-font-body) !important;
  font-size: 13px !important;
  line-height: 1.5;
}

#seolinks a,
#footer a,
#siteinfo a {
  font-size: 13px !important;
  display: inline-block;
  padding: 4px 2px;
}

/* --- Images & embeds ----------------------------------------------------- */
img,
iframe,
video,
embed,
object,
.entry-content img,
.entry-content iframe {
  max-width: 100% !important;
  height: auto;
}

.entry-content iframe {
  width: 100% !important;
}

/* --- Icon navigation: stop fixed left/width, allow wrapping -------------- */
#navigation,
ul.clsCustomeNavi {
  position: relative !important;
  height: auto !important;
  width: 100% !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 0 16px !important;
  padding: 8px 0 !important;
  float: none !important;
}

#navigation li,
#navigation a,
ul.clsCustomeNavi li,
#navigation .home,
#navigation .wwa,
#navigation .wwd,
#navigation .ll,
#navigation .ttu,
#navigation .press {
  position: static !important;
  left: auto !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
}

ul.clsCustomeNavi li {
  flex: 0 1 140px;
  text-align: center;
  margin: 0 !important;
}

ul.clsCustomeNavi li a,
ul.clsCustomeNavi li .w_linke {
  display: block;
  min-height: 44px;
}

.clsCustomeNavi li .w_linke > img {
  width: 100%;
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
}

#header .logo img {
  max-width: 100%;
  height: auto;
}

#header .sit ul.social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
}
#header .sit ul.social li {
  float: none;
  margin: 0 4px;
}
#header .sit ul.social a {
  display: inline-flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

/* Sidebar stacks under content on smaller screens */
#sidebar,
.main-aside {
  width: 100% !important;
  float: none !important;
  position: static !important;
  right: auto !important;
  margin: 32px 0 0 !important;
}

.xoxo-inner #pp,
.xoxo-inner #rp,
#about,
#sbinner,
#ls,
#rs,
fieldset.search {
  width: 100% !important;
  max-width: 100%;
  float: none;
}

/* --- Bottom social bar removed (markup is stripped; this is a safety hide) */
.bsocial {
  display: none !important;
}

@media only screen and (max-width: 767px) {
  #wrapper,
  #main {
    padding-left: 12px;
    padding-right: 12px;
  }

  #header .logo {
    float: none;
    width: 100%;
    text-align: center;
    padding: 24px 16px 8px !important;
  }

  #header .logo img {
    max-width: 280px;
    width: 100%;
  }

  #header .sit,
  #header .slogan {
    float: none;
    width: 100% !important;
    text-align: center;
    margin: 8px auto !important;
  }

  #header .sit ul.social {
    width: auto;
    margin: 0 auto;
    padding: 0 !important;
  }

  #header .sit ul.social li {
    float: none;
    display: inline-block;
  }

  #header .slogan p span.header_name {
    font-size: 1.35rem !important;
    display: block;
    text-align: center !important;
  }

  #header .slogan p span.header_name small {
    display: inline;
    margin: 0;
    text-align: center;
  }

  ul.clsCustomeNavi li {
    flex: 0 1 calc(50% - 12px);
  }

  #content h2.entry-title,
  #content h1.entry-title,
  .entry-title {
    font-size: 1.6rem !important;
    text-align: left;
  }
}

@media only screen and (min-width: 1025px) {
  #main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 32px;
    align-items: start;
  }

  #container,
  #content {
    width: auto !important;
    max-width: none;
  }

  #sidebar,
  .main-aside {
    margin-top: 0 !important;
  }

}

/* --- Unified text nav (same items, order, labels as the main site) ------- */
#navigation.mm-main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  position: relative !important;
  float: none !important;
  margin: 0 auto 20px !important;
  padding: 8px 12px !important;
  list-style: none;
  border-top: 1px dotted #e2e7c8;
  border-bottom: 1px solid #f0e6e0;
  background: transparent;
  gap: 0;
}

#navigation.mm-main-nav li,
#navigation.mm-main-nav li a {
  position: static !important;
  left: auto !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}

#navigation.mm-main-nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mm-font-body) !important;
  font-style: normal !important;
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #633121;
  text-decoration: none;
  padding: 12px 14px !important;
  min-height: 44px;
  line-height: 1.2;
}

#navigation.mm-main-nav li a:hover,
#navigation.mm-main-nav li a.active {
  color: var(--mm-pink);
}

@media only screen and (max-width: 767px) {
  #navigation.mm-main-nav {
    padding: 4px 8px 8px !important;
  }

  #navigation.mm-main-nav li a {
    padding: 12px 10px !important;
    font-size: 14px !important;
  }
}

/* --- Stay in touch: drop the curly-brace background image for real text -- */
#header .sit {
  background-image: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  box-sizing: border-box;
  padding: 16px 16px 0 0;
}

#header .sit p.mm-stay-in-touch {
  font-family: "Cormorant Garamond", "Pinyon Script", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: #614A2F;
  margin: 0;
  padding: 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

#header .sit ul.social {
  padding: 0 !important;
  margin: 0 !important;
}

@media only screen and (max-width: 767px) {
  #header .sit {
    justify-content: center;
    padding: 8px 0 0;
  }

  #header .sit p.mm-stay-in-touch {
    width: 100%;
    text-align: center;
    font-size: 1.35rem;
  }
}