/* The Map to MORE page (patterns/map-more.php). Ivory throughout, deep teal headings, sage for the
   upper map and terracotta/gold for the lower, generous spacing, as her brief asks. */

/* The intro opens the page close under the header, text and map level at the top. */
.mm-intro { padding-top: clamp(4px, 0.5vw, 8px); padding-bottom: clamp(20px, 2.5vw, 32px); }
.mm-intro .inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.mm-intro .stack { gap: 18px; }
.mm-intro .stack p { max-width: 560px; }
/* TM tucked against the final E, its top level with the top of the capitals. */
.mm-intro .stack p.mm-acronym { margin: -8px 0 4px; font: italic 15px/1.4 var(--serif); color: var(--muted); letter-spacing: .2px; }
.mm-intro h1 sup.tm { top: -2.1em; margin-left: .04em; }
.mm-sub { font: italic 24px/1.3 var(--serif); color: var(--accent); margin: -4px 0 6px; }
.mm-strong { font-weight: 700; color: var(--ink); }
.mm-preview { max-width: 560px; width: 100%; margin: 0 auto; }
.mm-preview svg { width: 100%; height: auto; display: block; }
.mm-preview .mm-narrow { display: none; }
/* Clickable circles in the map: a soft glow on hover, focus and the chosen one; the meaning shows below. */
.mm-badge { cursor: pointer; transition: filter .2s ease; }
.mm-badge:hover, .mm-badge:focus-visible, .mm-badge.is-on { filter: drop-shadow(0 0 6px rgba(196, 154, 69, .9)); }
.mm-badge:focus { outline: none; }
.mm-badge-info { max-width: 460px; margin: 10px auto 0; text-align: center; }
.mm-badge-hint { font-size: 14px; color: var(--muted); }
.mm-badge-hint[hidden], .mm-badge-card[hidden] { display: none; }
/* The meaning opens as a small box over the circle that was tapped (placed by map-badges.js). */
.mm-preview { position: relative; }
.mm-badge-card { position: absolute; z-index: 5; width: min(270px, 90%); padding: 14px 34px 14px 16px; background: #FBF8F2; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; text-align: left; box-shadow: 0 10px 28px rgba(48, 54, 53, .18); }
.mm-badge-close { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; font: 400 22px/1 var(--sans); color: var(--muted); cursor: pointer; }
.mm-badge-close:hover, .mm-badge-close:focus-visible { color: var(--accent); }
.mm-badge-term { font: 700 12px/1.3 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.mm-badge-text { margin-top: 6px; font-size: 16px; line-height: 1.5; }
/* The two sides follow close under the map, and the RESET section close under them. */
.mm-sides { padding-top: clamp(20px, 2.5vw, 32px); padding-bottom: clamp(20px, 2.5vw, 32px); }
.mm-reset { padding-top: clamp(12px, 1.5vw, 20px); }
.mm-rights { text-align: center; font-size: 13px; color: var(--muted); margin: 14px auto 0; max-width: none; white-space: nowrap; }
@media (max-width: 420px) { .mm-rights { white-space: normal; } }
.mm-caption { text-align: center; font: italic 22px/1.4 var(--serif); color: var(--accent); max-width: 34ch; margin: 20px auto 0; }

.mm-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.mm-side { padding: clamp(24px, 3.5vw, 44px); border-radius: 4px; }
.mm-side.above { background: #E4EAE0; border-top: 4px solid var(--soft); }
.mm-side.below { background: #F3E3DA; border-top: 4px solid var(--clay); }
.mm-side h2 { font-size: clamp(26px, 3vw, 34px); }
.mm-side.below h2 { color: #8F4A33; }
.mm-side p { margin: 14px 0 0; }
.mm-names { font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.mm-side.below .mm-names { color: #8F4A33; }
/* Plain-language key to the eight Map words, inside each side box (her November 2026 lines). */
/* Each word opens its meaning on a tap, so only the four words show until someone asks. */
.mm-key { margin: 22px 0 0 !important; padding-top: 16px; border-top: 1px solid rgba(48, 54, 53, .15); }
.mm-side .mm-key .mm-key-hint { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.mm-key details { border-bottom: 1px solid rgba(48, 54, 53, .1); }
.mm-key summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 44px; font: 700 12px/1.3 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.mm-key summary::-webkit-details-marker { display: none; }
.mm-key summary::after { content: "+"; font: 400 20px/1 var(--sans); transition: transform .2s ease; }
.mm-key details[open] summary::after { transform: rotate(45deg); }
.mm-side.below .mm-key summary { color: #8F4A33; }
.mm-side .mm-key details p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
/* The line that introduces the three RESET steps. */
.mm-steps-lead { text-align: center; max-width: none; width: 100%; }
.mm-steps-lead p { font-size: clamp(15px, 1.75vw, 20px); line-height: 1.5; color: var(--ink); }
.mm-steps-lead .mm-steps-title { font-weight: 700; color: var(--accent); letter-spacing: .5px; margin-bottom: 4px; }
@media (min-width: 901px) { .mm-steps-lead p { white-space: nowrap; } }
/* Map page jump menu as teal buttons with the site's button lettering (her ask, November 2026). */
.mm-intro .ms-jump a, .ms-hero .ms-jump a { background: var(--accent); border-color: var(--accent); color: var(--white); font: 600 15px/1.4 var(--sans); border-radius: 3px; padding: 12px 22px; }
.mm-intro .ms-jump a::after { color: var(--gold); }
.mm-intro .ms-jump a:hover, .mm-intro .ms-jump a:focus-visible { background: var(--ink); border-color: var(--ink); }
/* The line under the two sides, in its own box spanning both columns: a soft gold that sits between
   the sage and terracotta boxes, the text filling the box's width. */
.mm-sides .mm-statement { max-width: none !important; margin-top: clamp(20px, 2.5vw, 28px) !important; padding: clamp(22px, 3vw, 34px) clamp(24px, 4vw, 56px); background: #F4EBD8; border-top: 4px solid var(--gold); border-radius: 4px; }
.mm-statement { text-align: center; font: italic 21px/1.45 var(--serif); color: var(--ink); max-width: 46ch; margin: clamp(32px, 5vw, 56px) auto 0; }

/* RESET, from her 22 October mock: the artwork, a highlighted eyebrow, the big title, two left-set
   paragraphs on the mock's lines, a sage panel, three centred step cards and the italic closing line.
   Widths are the mock's against its 887px frame: copy 645, panel and cards 754. */
.mm-reset { padding-top: clamp(12px, 1.5vw, 20px); }
.mm-reset .inner { display: grid; gap: 0; justify-items: center; }
.mm-centre { text-align: center; justify-items: center; }
.mm-centre p { max-width: 58ch; }
.mm-centre h2 { max-width: 20ch; }
.mm-reset .mm-centre { gap: 0; margin-top: 40px !important; width: 100%; }
.mm-reset .eyebrow { display: inline-block; background: #D3E8C9; padding: 0 4px; line-height: 1.35; letter-spacing: 2.4px; }
.mm-reset h2 { max-width: none; margin-top: 10px; font-size: clamp(34px, 5vw, 62px); line-height: 1.1; white-space: nowrap; }
.mm-reset .mm-centre p.mm-intro-copy, .mm-reset .mm-centre p.mm-strong { max-width: none; text-align: center; font-size: clamp(15px, 1.75vw, 20px); line-height: 1.5; }
.mm-reset .mm-centre p.mm-intro-copy { margin-top: 22px; color: var(--ink); }
.mm-reset .mm-centre p.mm-strong { margin-top: 14px; }
/* Her RESET artwork; the crop trims the clear margin above and below it. */
.mm-bar { display: block; width: min(100%, 1148px); height: auto; aspect-ratio: 1240 / 250; object-fit: cover; }
.mm-eq { width: 100%; max-width: 1020px; margin-top: 34px !important; padding: 26px 24px 30px; background: #E6E9DD; border-radius: 4px; text-align: center; }
.mm-eq h3 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; }
.mm-eq p { margin-top: 10px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: var(--ink); }

.mm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: 1020px; margin-top: 20px !important; align-items: stretch; }
.mm-step { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 0; }
.mm-step summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 24px; }
.mm-step summary::-webkit-details-marker { display: none; }
.mm-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 600 20px/1 var(--serif); color: var(--white); }
.mm-step:nth-child(1) .mm-num { background: var(--soft); }
.mm-step:nth-child(2) .mm-num { background: var(--gold); }
.mm-step:nth-child(3) .mm-num { background: var(--clay); }
.mm-step-title { margin-top: 6px; font: 400 clamp(26px, 2.8vw, 32px)/1.1 var(--serif); color: var(--accent); }
.mm-step-line { font: 400 16px/1.4 var(--sans); color: var(--ink); margin-top: 8px; }
.mm-step summary::after { content: "Read more +"; margin-top: 20px; font: 600 13px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.mm-step[open] summary::after { content: "Close"; }
/* Steps shown in full (no Read more): the head lays out like the old summary and the line wraps. */
.mm-step-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 22px 26px; }
.mm-step-open .mm-step-line { white-space: normal !important; font-size: 17px; line-height: 1.5; margin-top: 10px; }
.mm-step > p { margin: 0; padding: 0 22px 22px; text-align: center; font-size: 16px; line-height: 1.55; color: var(--ink); }
/* Gaps between the RESET blocks (selectors match the block-gap reset's weight, so they win). */
.mm-reset .inner > .mm-centre { margin-top: 40px !important; }
.mm-reset .inner > .mm-steps-lead { margin-top: 34px !important; }
.mm-reset .inner > .mm-steps { margin-top: 20px !important; }
.mm-reset .inner > .mm-eq { margin-top: 28px !important; }
.mm-reset .inner > .mm-statement { margin-top: 36px !important; }
.mm-reset .mm-statement { max-width: none; font: 400 clamp(18px, 1.8vw, 21px)/1.45 var(--serif); }
.mm-step summary:hover .mm-step-title, .mm-step summary:focus-visible .mm-step-title { color: var(--clay); }

/* Coaching and the invitation, from the same mock: centred heads on the mock's lines, three wide cards
   with coloured top rules, the italic closing line; then the peach invitation. */
.mm-coaching { background: #F1EDE3; padding-top: clamp(36px, 4vw, 48px); padding-bottom: clamp(24px, 3vw, 32px); }
.mm-coaching .inner { display: grid; gap: 0; justify-items: center; max-width: 1240px; }
.mm-coaching .mm-centre { gap: 0; }
.mm-coaching h2 { max-width: none; margin-top: 18px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.13; }
.mm-coaching .mm-centre p { margin-top: 10px; }
.mm-coaching .mm-centre p:not(.eyebrow) { font-size: clamp(15px, 1.75vw, 20px); } /* as the RESET intro copy */
.mm-coaching .mm-centre p.eyebrow { font-size: clamp(15px, 1.6vw, 18px); max-width: none; }
.mm-coaching .mm-centre p:not(.eyebrow):first-of-type { margin-top: 14px; }
.mm-coaching .eyebrow { letter-spacing: 2.4px; }
.mm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; max-width: none; margin-top: 30px; }
.mm-card { background: var(--white); border-radius: 4px; padding: 26px 26px 28px; border-top: 5px solid var(--accent); }
.mm-card:nth-child(2) { border-top-color: var(--gold); }
.mm-card:nth-child(3) { border-top-color: var(--clay); }
.mm-card h3 { margin: 8px 0 14px; }
.mm-card p:last-child { margin: 0; font-size: 17px; line-height: 1.5; white-space: nowrap; }
.mm-coaching .mm-statement { max-width: none; }
.mm-coaching .inner > .mm-cards { margin-top: 30px !important; }
.mm-coaching .inner > .mm-statement { margin-top: 26px !important; }

.mm-invite { background: linear-gradient(180deg, #F6E6DC, #F3DCCD); padding-top: clamp(32px, 4vw, 44px); }
/* Her 23 October layout: a framed photo on the left; on the right, centred, the heading at its size
   and her copy on her lines, with the "answers" line larger in the heading green. */
.mm-invite .inner { display: grid; grid-template-columns: clamp(240px, 30vw, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; max-width: 1180px; }
.mm-invite .inner > * { margin-block-start: 0 !important; }
.mm-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 6px solid var(--white); box-shadow: 0 0 0 1px #D9C3B4, 0 12px 30px rgba(48, 54, 53, .12); }
.mm-frame figure { position: absolute; inset: 0; margin: 0 !important; }
.mm-frame figure img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 55% 30%; }
.mm-invite .stack { gap: 14px; }
.mm-invite h2 { max-width: none; margin-bottom: 8px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; }
.mm-invite .stack p { max-width: none; font-size: 19px; line-height: 1.55; }
.mm-invite .stack p.mm-begin { margin-top: 8px; font: 400 clamp(21px, 2.1vw, 27px)/1.25 var(--serif); color: var(--accent); }
.mm-invite .primary { margin-top: 10px; }
@media (max-width: 900px) { .mm-invite .inner { grid-template-columns: 1fr; justify-items: center; } .mm-frame { width: min(100%, 360px); } .mm-invite .stack p br { display: none; } }
@media (min-width: 901px) { .mm-reset .mm-centre p, .mm-eq p, .mm-step-line, .mm-reset .mm-statement, .mm-coaching .mm-statement, .mm-invite .stack p:not(:has(a)) { white-space: nowrap; } }

/* The cards and columns are block groups: cancel the editor's default gap between siblings. */
.mm-cards > *, .mm-steps > *, .mm-columns > *, .mm-intro .inner > *, .mm-reset .inner > *, .mm-coaching .inner > * { margin-block-start: 0 !important; }
.mm-figure > .mm-caption { margin-block-start: 20px !important; }
.mm-figure > .mm-rights { margin-block-start: 14px !important; }

@media (max-width: 900px) {
  .mm-intro .inner { grid-template-columns: 1fr; }
  .mm-steps, .mm-cards { grid-template-columns: 1fr; }
  .mm-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mm-sub { font-size: 21px; }
  /* Phones: the compact geometry so the badge names stay readable. */
  .mm-preview .mm-wide { display: none; }
  .mm-preview .mm-narrow { display: block; }
  .mm-reset h2 { white-space: normal; }
  .mm-reset .mm-centre p br, .mm-eq p br, .mm-statement br, .mm-invite .stack p br { display: none; }
}
