/* Homepage-only continuation of the approved Mensthetic presentation system.
 * Existing stories, photographs, product preview and gallery access rules remain intact.
 */
.menst-refined[data-page="home"] .hero:has(details.ebook-card) { min-height: 0; padding-bottom: 16px; }
.menst-refined[data-page="home"] .hero:has(details.ebook-card) .ebook-band-overlay { margin-top: 16px !important; }
@media (min-width: 768px) {
  .menst-refined[data-page="home"] .hero:has(details.ebook-card) .ebook-band { align-items: flex-end; }
}

/* Shared lower-page frame: restrained surfaces and consistent reading alignment. */
.menst-refined[data-page="home"] :is(.philosophy,.about-freddy,.services) { padding-block: 72px; }
.menst-refined[data-page="home"] :is(.philosophy,.services) { background: #fff; background-image: none; }
.menst-refined[data-page="home"] .about-freddy { background: var(--menst-paper); border-top: 1px solid var(--menst-cloud); border-bottom: 1px solid var(--menst-cloud); }
.menst-refined[data-page="home"] :is(.philosophy,.about-freddy,.services)::before,
.menst-refined[data-page="home"] :is(.philosophy,.about-freddy,.services)::after { display: none; }
.menst-refined[data-page="home"] :is(.philosophy,.about-freddy,.services) .section-header { margin: 0 0 32px; max-width: none; text-align: left; }
.menst-refined[data-page="home"] :is(.philosophy,.about-freddy,.services) .section-header h2 { font-weight: 600; }
.menst-refined[data-page="home"] :is(.philosophy,.about-freddy,.services) .section-header p { margin: 0; }

/* Philosophy: section title and story have separate, deliberate columns. */
.menst-refined[data-page="home"] .philosophy > .container { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.4fr); gap: 64px; align-items: start; }
.menst-refined[data-page="home"] .philosophy-content { width: 100%; max-width: none; margin: 0; text-align: left; }
.menst-refined[data-page="home"] .philosophy-tagline { font-size: 18px; font-weight: 400; color: var(--menst-steel); }
.menst-refined[data-page="home"] .philosophy-article h3 { margin: 0 0 24px; font-size: 24px; line-height: 1.35; font-weight: 500; text-align: left; }
.menst-refined[data-page="home"] .philosophy-prose { max-width: 65ch; }
.menst-refined[data-page="home"] .philosophy-prose p { margin: 0 0 20px; font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.menst-refined[data-page="home"] .philosophy-actions { margin-top: 28px; }

/* Founder: no floated image, overscaled crop or text over the photograph. */
.menst-refined[data-page="home"] .about-freddy-content { max-width: none; margin: 0; }
.menst-refined[data-page="home"] .freddy-story-with-image { display: grid; grid-template-columns: minmax(240px,360px) minmax(0,1fr); gap: 0 56px; align-items: start; margin: 0; padding: 0; background: none; border: 0; }
.menst-refined[data-page="home"] .freddy-story-with-image::after { display: none; }
.menst-refined[data-page="home"] .freddy-story-with-image > :not(.freddy-main-image) { grid-column: 2; }
.menst-refined[data-page="home"] .freddy-story-with-image .freddy-main-image { grid-column: 1; grid-row: 1 / span 5; float: none; width: 100%; margin: 0 !important; border-radius: 8px; overflow: hidden; box-shadow: none; }
.menst-refined[data-page="home"] .freddy-main-image .freddy-photo { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; margin: 0 !important; object-fit: cover; object-position: 50% 20%; transform: none !important; border-radius: 8px; }
.menst-refined[data-page="home"] .freddy-main-image .image-overlay { position: static; display: block; padding: 12px 0 0; background: none; }
.menst-refined[data-page="home"] .freddy-main-image .image-caption { color: var(--menst-steel); font-size: 14px; line-height: 1.5; font-weight: 400; }
.menst-refined[data-page="home"] .freddy-story-with-image > p { max-width: 65ch; margin: 0 0 20px; font-size: 17px; line-height: 1.65; text-align: left; text-wrap: pretty; }
.menst-refined[data-page="home"] .founder-actions { margin-top: 8px; text-align: left; }

/* Gallery access is a compact entry row and an in-flow form, not a giant overlay. */
.menst-refined[data-page="home"] .before-after.password-protected { padding: 32px 0; background: #fff; }
.menst-refined[data-page="home"] .results-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.menst-refined[data-page="home"] .results-entry h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.3; font-weight: 500; }
.menst-refined[data-page="home"] .results-entry p { margin: 0; }
.menst-refined[data-page="home"] .results-toggle { gap: 12px; flex-shrink: 0; font-weight: 500; }
.menst-refined[data-page="home"] .results-panel { padding-top: 24px; scroll-margin-top: calc(var(--menst-header-height) + 16px); scroll-margin-bottom: calc(var(--menst-rail-height) + 16px); }
.menst-refined[data-page="home"] .results-panel[hidden] { display: none; }
.menst-refined[data-page="home"] .results-panel .password-gate { position: static; inset: auto; display: block; min-height: 0; max-width: 600px; padding: 24px; border: 1px solid var(--menst-cloud); border-radius: 8px; background: #fff; backdrop-filter: none; }
.menst-refined[data-page="home"] .password-gate-content { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 12px 16px; max-width: none; padding: 0; text-align: left; }
.menst-refined[data-page="home"] .password-gate-content .lock-icon { grid-column: 1; grid-row: 1 / span 2; width: 24px; height: 24px; margin: 0; color: var(--menst-steel); }
.menst-refined[data-page="home"] .password-gate-content > :not(.lock-icon) { grid-column: 2; }
.menst-refined[data-page="home"] .password-gate-content h3 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 500; }
.menst-refined[data-page="home"] .password-gate-content > p { margin: 0; }
.menst-refined[data-page="home"] .password-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; margin-top: 4px; }
.menst-refined[data-page="home"] .password-form label { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--menst-ink); }
.menst-refined[data-page="home"] .password-input { min-width: 0; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--menst-silver); border-radius: 8px; text-align: left; letter-spacing: 0; transition: border-color 160ms ease; }
.menst-refined[data-page="home"] .password-input.error { border-color: var(--menst-danger); }
.menst-refined[data-page="home"] .password-gate-content > .password-error { color: var(--menst-danger); font-size: 14px; }
.menst-refined[data-page="home"] .results-panel .protected-content:not(.unlocked) { display: none; }
.menst-refined[data-page="home"] .results-panel .protected-content.unlocked { display: block; }

/* Existing shop preview is retained; only its framing joins the section rhythm. */
.menst-refined[data-page="home"] section[id="sec.menst-shop"] { padding-block: 72px !important; background: var(--menst-paper) !important; background-attachment: scroll !important; }
.menst-refined[data-page="home"] .shop-preview-heading h2 { font-size: clamp(1.75rem,3vw,2.25rem); line-height: 1.22; font-weight: 600; }
.menst-refined[data-page="home"] section[id="sec.menst-shop"] > .container > .section-header { margin-inline: 0; text-align: left; }

/* FAQ answers remain visible: light dividers replace decorative service cards. */
.menst-refined[data-page="home"] section[id="sec.menst-faq"] > .container { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(0,1.6fr); gap: 56px; align-items: start; }
.menst-refined[data-page="home"] section[id="sec.menst-faq"] .services-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; margin: 0; }
.menst-refined[data-page="home"] section[id="sec.menst-faq"] .service-card { min-width: 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--menst-silver); border-radius: 0; background: none; box-shadow: none; transform: none; text-align: left; }
.menst-refined[data-page="home"] section[id="sec.menst-faq"] .service-card::before,
.menst-refined[data-page="home"] section[id="sec.menst-faq"] .service-card::after { display: none; }
.menst-refined[data-page="home"] section[id="sec.menst-faq"] h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.45; font-weight: 500; }
.menst-refined[data-page="home"] section[id="sec.menst-faq"] .service-card p { margin: 0; font-size: 16px; line-height: 1.625; }
.menst-refined[data-page="home"] .footer { padding-top: 48px !important; }

@media (max-width: 960px) {
  .menst-refined[data-page="home"] .philosophy > .container,
  .menst-refined[data-page="home"] section[id="sec.menst-faq"] > .container { grid-template-columns: 1fr; gap: 0; }
  .menst-refined[data-page="home"] .freddy-story-with-image { grid-template-columns: minmax(220px,280px) minmax(0,1fr); gap: 0 32px; }
}
@media (max-width: 767px) {
  .menst-refined[data-page="home"] :is(.philosophy,.about-freddy,.services) { padding-block: 48px; }
  .menst-refined[data-page="home"] .freddy-story-with-image { grid-template-columns: 1fr; gap: 0; }
  .menst-refined[data-page="home"] .freddy-story-with-image > :not(.freddy-main-image) { grid-column: 1; }
  .menst-refined[data-page="home"] .freddy-story-with-image .freddy-main-image { grid-row: auto; max-width: 360px; margin-bottom: 28px !important; }
  .menst-refined[data-page="home"] .results-entry { align-items: flex-start; flex-direction: column; gap: 16px; }
  .menst-refined[data-page="home"] .results-toggle { width: 100%; }
  .menst-refined[data-page="home"] .results-panel .password-gate { padding: 20px; }
  .menst-refined[data-page="home"] .password-form { grid-template-columns: 1fr; }
  .menst-refined[data-page="home"] section[id="sec.menst-shop"] { padding-block: 48px !important; }
  .menst-refined[data-page="home"] section[id="sec.menst-faq"] .services-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Compact only the closed guide: keep the 80px photograph and opened layout. */
.menst-refined[data-page="home"] details.ebook-card:not([open]) .ebook-toggle { min-height: 96px; padding: 8px; gap: 12px; }
