/*
 * =====================================================================
 *  MyMapcodes guide page (/guide/), version 1 (release 0.7.1)
 *  File: /wp-content/scripts/guide/guide-v1.css
 * =====================================================================
 *  The page itself is plain HTML pasted into WordPress (guide/out/guide-page-v1.html, made by
 *  tools/guide/build-guide.mjs). This styles it with the site's tokens only (theme 1.1.x tokens.css), so it follows
 *  light and dark like every page. Everything is under .mmg; nothing here styles a bare element outside it.
 *  Navy "ticket" surfaces use the brand constants (the same in both modes), as the leaflet and the app do.
 *  Width: the theme's reading width for page text (760 px), so the page lines up with its title. Phones first; from 600 px
 *  two columns where the leaflet has them, from 900 px the leaflet's own layout and
 *  the QR codes of "Try it in ten seconds".
 * =====================================================================
 */
.mmg { --mmg-gap: 16px; box-sizing: border-box; text-align: left; font-family: var(--mm-font, "Muli", sans-serif); color: var(--mm-heading); font-size: 16px; line-height: 1.5; margin: 0 auto; padding: 4px 0 24px; }
.mmg *, .mmg *::before, .mmg *::after { box-sizing: border-box; }
.mmg :where(p, ul, ol, li, figure, figcaption, h2, h3, h4) { margin: 0; padding: 0; }
.mmg ul, .mmg ol { list-style: none; }
.mmg strong { font-weight: 800; }
/* The theme's base.css (kept from the old theme) puts an invisible "clearfix" box before and after every div, ul,
   section and figure; inside a flex or grid layout those boxes take a gap of their own. Not inside the guide. */
.mmg div::before, .mmg div::after, .mmg ul::before, .mmg ul::after, .mmg section::before, .mmg section::after,
.mmg figure::before, .mmg figure::after, .mmg figcaption::before, .mmg figcaption::after { content: none; display: none; }
.mmg h2, .mmg h3, .mmg h4 { font-family: var(--mm-font, "Muli", sans-serif); }
.mmg .mmg-h4 { letter-spacing: 0; }
.mmg a { color: var(--mm-accent-text); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.mmg a:focus-visible { outline: 2px solid var(--mm-secondary-border); outline-offset: 2px; border-radius: 6px; }
.mmg-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tap / Click by device: the same test as mmUi.tap() (touch screen without a mouse = Tap). No script needed. */
.mmg-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .mmg-touch { display: inline; } .mmg-mouse { display: none; } }

.mmg-sec { padding: 8px 0 32px; }
.mmg-sec + .mmg-sec { border-top: 1px solid var(--mm-line); padding-top: 28px; }
.mmg-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mm-muted); margin-bottom: 6px; }
.mmg-h2 { font-size: 30px; line-height: 1.12; font-weight: 900; letter-spacing: -.02em; color: var(--mm-accent-text); margin-bottom: 14px; }
.mmg-h3 { font-size: 21px; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; color: var(--mm-accent-text); margin: 28px 0 12px; }
.mmg-h4 { font-size: 17px; line-height: 1.25; font-weight: 800; color: var(--mm-accent-text); display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.mmg-lead { font-size: 18px; line-height: 1.5; max-width: 680px; }

/* the mapcode: territory + orange code, one line */
.mmg-code { white-space: nowrap; font-weight: 900; letter-spacing: -.01em; }
.mmg-code-t { color: var(--mm-accent-text); font-weight: 700; }
.mmg-code-c { color: var(--mm-orange-text); }
.mmg-ticket .mmg-code-t { color: var(--mm-on-navy); opacity: .85; }
.mmg-ticket .mmg-code-c { color: var(--mm-orange); }

/* the button of decision 1: first thing under the opening sentence, a main action */
.mmg-pdf { margin: 18px 0 4px; }
.mmg .mmg-pdf-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; width: 100%; max-width: 460px; padding: 14px 22px; border-radius: var(--mm-radius-pill, 999px); background: var(--mm-primary); color: var(--mm-on-primary); text-decoration: none; font-size: 17px; font-weight: 800; line-height: 1.25; text-align: center; box-shadow: 0 6px 18px var(--mm-shadow); }
.mmg .mmg-pdf-btn:hover { filter: brightness(1.08); }
.mmg .mmg-pdf-btn:focus-visible { outline: 3px solid var(--mm-secondary-border); outline-offset: 3px; }
.mmg-pdf-ic { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mmg-pdf-note { font-size: 14px; color: var(--mm-muted); margin-top: 8px; }
.mmg-pdf-say:empty { display: none; }
.mmg-pdf-say { font-size: 14px; font-weight: 700; color: var(--mm-on-peach); background: var(--mm-peach); border: 1px solid var(--mm-peach-border); border-radius: 12px; padding: 8px 12px; margin-top: 8px; max-width: 460px; }

/* icons: the leaflet's line icons */
.mmg-ic { width: 20px; height: 20px; fill: none; stroke: var(--mm-orange-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mmg-ic-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--mm-tonal-warm); display: inline-grid; place-items: center; flex: none; }
.mmg-ic-circle .mmg-ic { stroke: var(--mm-on-tonal-warm); }
.mmg-ic-big { width: 44px; height: 44px; }
.mmg-ic-big .mmg-ic { width: 24px; height: 24px; }

.mmg-ticks { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.mmg-ticks li { display: inline-flex; align-items: center; gap: 8px; background: var(--mm-card); border: 1.5px solid var(--mm-card-line); border-radius: 999px; padding: 6px 16px 6px 7px; font-weight: 800; font-size: 15px; color: var(--mm-accent-text); line-height: 1.3; }
.mmg-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--mm-orange-button); display: inline-grid; place-items: center; flex: none; }
.mmg-tick .mmg-ic { width: 14px; height: 14px; stroke: #fff; stroke-width: 3.2; }

.mmg-card { background: var(--mm-card); border: 1px solid var(--mm-card-line); border-radius: var(--mm-radius, 20px); padding: 16px 18px; box-shadow: var(--mm-lift, none); }
.mmg-ticket { color: var(--mm-on-navy); border: 1px solid var(--mm-on-navy-line); background: var(--mm-hero-gradient); box-shadow: none; }
.mmg-label { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--mm-muted); margin-bottom: 6px; }
.mmg-ticket .mmg-label { color: var(--mm-on-navy-muted); }
.mmg-cap { font-size: 14px; color: var(--mm-muted); margin-top: 8px; }
.mmg-ticket .mmg-cap { color: var(--mm-panel-subtitle); }

.mmg-compare { display: grid; gap: var(--mmg-gap); margin: 22px 0 16px; }
.mmg-coords { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--mm-muted); letter-spacing: -.01em; padding: 4px 0 2px; overflow-wrap: anywhere; }
.mmg-big { font-size: 44px; line-height: 1.05; }

.mmg-stats { display: grid; gap: 10px; margin: 0 0 4px; }
.mmg-stats li { padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; }
.mmg-stat-big { font-size: 26px; font-weight: 900; color: var(--mm-accent-text); line-height: 1.05; letter-spacing: -.02em; flex: none; min-width: 74px; }
.mmg-stat-text { font-size: 15px; color: var(--mm-muted); }

.mmg-timeline { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mmg-timeline li { border-top: 3px solid var(--mm-accent-text); padding-top: 6px; font-size: 14px; color: var(--mm-muted); line-height: 1.45; }
.mmg-year { display: block; font-size: 20px; font-weight: 900; color: var(--mm-accent-text); margin-bottom: 2px; }
.mmg-timeline li:last-child { border-top-color: var(--mm-orange); }
.mmg-timeline li:last-child .mmg-year { color: var(--mm-orange-text); }

.mmg-band { border-radius: var(--mm-radius-l, 28px); padding: 18px; margin-top: 26px; display: grid; gap: 18px; }
.mmg-mall { width: 100%; height: auto; display: block; border-radius: 12px; }
.mmg-band-cap { font-size: 13.5px; color: var(--mm-panel-subtitle); margin-top: 8px; line-height: 1.4; }
.mmg-on-navy { color: var(--mm-on-navy); margin-top: 0; }
.mmg-band-list li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.mmg-band-list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--mm-orange); }
.mmg-every { border-top: 1px dashed var(--mm-on-navy-line); margin-top: 12px; padding-top: 10px; font-size: 18px; font-weight: 800; }
.mmg-accent { color: var(--mm-orange); }

.mmg-steps { display: grid; gap: 22px; margin-top: 22px; }
.mmg-step { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 16px; align-items: start; }
.mmg-step p { font-size: 15.5px; color: var(--mm-muted); }
.mmg-step p strong { color: var(--mm-accent-text); }
.mmg-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mm-orange-button); color: #fff; font-size: 14px; font-weight: 900; flex: none; }
.mmg-phone { background: #0b1730; border-radius: 22px; padding: 6px; box-shadow: 0 8px 22px var(--mm-shadow); }
.mmg-shot { display: block; }
.mmg-shot img { display: block; width: 100%; height: auto; border-radius: 17px; }

.mmg-tiles { display: grid; gap: 10px; }
.mmg-tile { background: var(--mm-card); border: 1px solid var(--mm-card-line); border-radius: 16px; padding: 12px 14px 14px; }
.mmg-tile-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: var(--mm-accent-text); font-size: 16px; line-height: 1.25; }
.mmg-tile-text { display: block; font-size: 14.5px; color: var(--mm-muted); line-height: 1.45; }

.mmg-whyrow { display: grid; gap: 22px; margin-top: 20px; align-items: center; }
.mmg-why { display: grid; gap: 10px; }
.mmg-why li { display: flex; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; }
.mmg-why strong { display: block; color: var(--mm-accent-text); font-size: 16px; }
.mmg-why-text { display: block; font-size: 14.5px; color: var(--mm-muted); }
.mmg-why-fig { max-width: 240px; width: 62%; margin: 0 auto; }
.mmg-pcap { text-align: center; font-size: 13.5px; font-weight: 700; color: var(--mm-muted); margin-top: 8px; }

.mmg-try { display: grid; gap: var(--mmg-gap); }
.mmg-try-card { display: flex; flex-direction: column; gap: 8px; }
.mmg-try--peach { background: var(--mm-peach); border-color: var(--mm-peach-border); color: var(--mm-on-peach); }
.mmg-try--peach .mmg-label { color: var(--mm-on-peach); }
.mmg-try-link { margin-top: auto; }
.mmg-ticket a, .mmg-ticket .mmg-try-link a { color: var(--mm-on-navy); }
.mmg-try--peach a { color: var(--mm-on-peach); }
.mmg-qr { display: none; width: 128px; height: 128px; margin: 6px auto 0; background: #fff; border: 1px solid var(--mm-card-line); border-radius: 12px; padding: 9px; }
.mmg-qr-svg { display: block; width: 100%; height: 100%; }

.mmg-contact { border-radius: var(--mm-radius-l, 28px); padding: 20px 22px; margin-top: 26px; }
.mmg-contact p { color: var(--mm-panel-subtitle); }
.mmg-contact-links { margin-top: 10px; font-size: 17px; }
.mmg-contact a { color: var(--mm-on-navy); }

@media (min-width: 600px) {
  .mmg-compare { grid-template-columns: 1fr 1fr; }
  .mmg-stats { grid-template-columns: repeat(3, 1fr); }
  .mmg-stats li { display: block; }
  .mmg-stat-big { display: block; margin-bottom: 4px; }
  .mmg-timeline { grid-template-columns: repeat(4, 1fr); }
  .mmg-tiles { grid-template-columns: 1fr 1fr; }
  .mmg-h2 { font-size: 36px; }
}
@media (min-width: 760px) {
  .mmg-band { grid-template-columns: minmax(240px, 42%) 1fr; align-items: center; padding: 22px 24px; }
  .mmg-steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .mmg-step { display: block; }
  .mmg-step .mmg-phone { margin-bottom: 14px; }
  .mmg-whyrow { grid-template-columns: 1fr 220px; }
  .mmg-why-fig { width: 100%; }
}
@media (min-width: 900px) {
  .mmg-tiles { grid-template-columns: repeat(3, 1fr); }
  .mmg-try { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mmg-qr { display: block; }
  .mmg-contact { padding: 24px 28px; }
}
@media print {
  .mmg-pdf-btn { box-shadow: none; }
  .mmg-qr { display: block; }
}
