/*
  © 2025 Eden Memory. Memorial Guide — content page styles.
*/

* { box-sizing: border-box; }

html {
  overflow-x: clip !important;
}

body {
  margin: 0 !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: 'Manrope', sans-serif !important;
  line-height: 1.7 !important;
  overflow-x: clip !important;
  -webkit-font-smoothing: antialiased;
}

.mg-wrap {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 72px 20px 120px !important;
}

/* Hide floating ticket banner on this blog page */
#returning-client-banner { display: none !important; }

.mg-back {
  display: none;
}

/* Override global `header { position: absolute }` from styles.css */
header.mg-head {
  grid-column: 1;
  grid-row: 1;
  position: static !important;
  width: auto !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  background: transparent !important;
  margin-bottom: 48px;
}

.mg-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.03em;
}

/* Layout: content + right sidebar */
.mg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-rows: auto 1fr;
  gap: 40px;
  align-items: start;
}

.mg-content {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

/* Sections: plain, same as page background */
.mg-section {
  margin-bottom: 72px;
  scroll-margin-top: 24px;
}

.mg-cat {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 56px 0 24px;
  padding-bottom: 0;
  border-bottom: none;
}
.mg-section:first-of-type .mg-cat { margin-top: 0; }

.mg-num {
  color: #000;
  font-weight: 800;
  margin-right: 8px;
}

.mg-item { padding: 32px 0; border-bottom: 1px solid #f0f0f0; }
.mg-item:first-of-type { padding-top: 8px; border-bottom: 1px solid #f0f0f0; }
.mg-item:last-of-type { padding-bottom: 20px; border-bottom: none; }

.mg-item h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 10px;
  line-height: 1.35;
}

.mg-item p {
  margin: 0;
  font-size: 16px;
  color: #555555;
}

/* Right sticky sidebar — transparent, same as page */
.mg-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 24px;
}

.mg-toc {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.mg-toc ul { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.mg-toc li { margin: 0; }
.mg-toc a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  line-height: 1.35;
}
.mg-toc a:hover { color: #525252; }

/* Share button inside sidebar */
.mg-share-btn {
  margin-top: 16px;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 100px;
  padding: 12px 20px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.mg-share-btn:hover { opacity: 0.85; }
.mg-share-btn:active { opacity: 0.7; }

@media (max-width: 860px) {
  .mg-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  header.mg-head {
    order: 1;
    margin-bottom: 24px;
  }
  .mg-side {
    display: block;
    position: static;
    order: 2;
    margin-bottom: 32px;
    padding-top: 0;
  }
  .mg-content {
    order: 3;
  }
  .mg-toc a { font-size: 15px; }
  .mg-share-btn { width: auto; }
}
@media (max-width: 520px) {
  .mg-wrap { padding: 44px 14px 80px; }
  .mg-title { font-size: 38px; }
  .mg-head { margin-bottom: 36px; }
  .mg-cat { font-size: 30px; margin: 48px 0 18px; }
  .mg-item { padding: 26px 0; }
  .mg-item h3 { font-size: 21px; }
  .mg-item p { font-size: 15px; }
}

/* ticket banner hidden on this page */
#returning-client-banner { display: none !important; }
