/* ==========================================================================
   Mind at Work Journal
   Every class is prefixed maw- so nothing collides with your store theme.

   Type system (why):
   - Body text uses the phone's own system font (San Francisco on iPhone,
     Roboto on Android). Inside the Facebook/Instagram browser that reads
     like Reddit, Substack or Apple News: familiar, calm, instant to load.
   - Headlines use Source Serif 4, a newspaper serif. It signals "article",
     not "store".
   ========================================================================== */

:root {
  --maw-paper: #FBFAF7;
  --maw-surface: #FFFFFF;
  --maw-ink: #121A24;
  --maw-ink-soft: #3B4654;
  --maw-muted: #6B7480;
  --maw-rule: #E7E2D9;
  --maw-green: #1E5E4E;
  --maw-green-dark: #154638;
  --maw-green-soft: #E8F1EC;
  --maw-marker: #FCEB9F;
  --maw-no: #A8462F;
  --maw-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --maw-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --maw-col: 680px;
  --maw-gutter: 20px;
  --maw-radius: 12px;
}

/* ---------- Base ---------- */
body.maw {
  margin: 0; background: var(--maw-paper); color: var(--maw-ink);
  font-family: var(--maw-sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.maw *, .maw *::before, .maw *::after { box-sizing: border-box; }
.maw img { max-width: 100%; height: auto; display: block; }
.maw a { color: var(--maw-green); }
.maw button { font: inherit; }
.maw-skip { position: absolute; left: -9999px; }
.maw-skip:focus { left: 12px; top: 12px; background: var(--maw-surface); padding: 8px 12px; z-index: 100; }
.maw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Persona swap (set before first paint by the layout) ---------- */
.maw-swap { display: none; }
html[data-p="anxious"] .maw-swap[data-persona="anxious"],
html[data-p="wired"] .maw-swap[data-persona="wired"],
html[data-p="operator"] .maw-swap[data-persona="operator"],
html[data-p="clockout"] .maw-swap[data-persona="clockout"],
html:not([data-p]) .maw-swap[data-persona="anxious"] { display: block; }

/* ---------- Reading progress ---------- */
.maw-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.maw-progress span { display: block; height: 100%; width: 0; background: var(--maw-green); }

/* ---------- Masthead ---------- */
.maw-masthead { background: var(--maw-paper); border-bottom: 1px solid var(--maw-rule); }
.maw-masthead__inner { max-width: 1080px; margin: 0 auto; padding: 12px var(--maw-gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.maw-masthead__logo { display: inline-flex; line-height: 0; }
.maw-masthead__logo .maw-logo--full { width: 176px; height: auto; }
.maw-masthead__nav { display: none; gap: 22px; font-size: 14px; font-weight: 500; }
.maw-masthead__nav a { color: var(--maw-ink-soft); text-decoration: none; }
.maw-masthead__nav a:hover { color: var(--maw-green); }
.maw-masthead__tagline { margin: 0; padding: 6px var(--maw-gutter); border-top: 1px solid var(--maw-rule); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--maw-muted); text-align: center; }

/* ---------- Article frame ---------- */
.maw-article { max-width: var(--maw-col); margin: 0 auto; padding: 18px var(--maw-gutter) 36px; }
.maw-adlabel { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--maw-muted); text-transform: uppercase; }

.maw-h1 {
  font-family: var(--maw-serif); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(34px, 9.4vw, 56px); line-height: 1.06; margin: 0 0 14px; text-wrap: pretty;
}
.maw-dek { font-size: clamp(18px, 4.8vw, 21px); line-height: 1.45; color: var(--maw-ink-soft); margin: 0 0 18px; text-wrap: pretty; }

.maw-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--maw-rule); border-bottom: 1px solid var(--maw-rule); margin-bottom: 18px; }
.maw-byline__photo { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; background: var(--maw-green-soft); color: transparent; overflow: hidden; }
.maw-byline p { margin: 0; line-height: 1.35; }
.maw-byline__who { font-size: 15px; }
.maw-byline__role { color: var(--maw-ink-soft); }
.maw-byline__rev { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--maw-green-dark); font-weight: 500; }
.maw-byline__rev .maw-icon { width: 15px; height: 15px; flex: 0 0 15px; margin: 0; }
.maw-byline__meta { font-size: 13px; color: var(--maw-muted); }
.maw img.maw-byline__photo { height: 48px; aspect-ratio: 1; }
.maw img.maw-author__photo { height: 64px; aspect-ratio: 1; }
.maw-byline__ctx { font-size: 13.5px; color: var(--maw-ink-soft); font-weight: 500; }
.maw-byline__review { display: flex; align-items: center; gap: 6px; margin: 2px 0 1px !important; font-size: 13.5px; line-height: 1.35; color: var(--maw-green); font-weight: 500; }
.maw-byline__review::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--maw-green); color: #fff; font-size: 12px; font-weight: 800; line-height: 1;
}
.maw-visual--tight { margin-bottom: 4px; }


/* Author photo placeholder until "[author photo]" is replaced with a real URL */
.maw-byline__photo[src^="["], .maw-author__photo[src^="["] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23E8F1EC'/%3E%3Ccircle cx='24' cy='19' r='8' fill='%231E5E4E' opacity='.35'/%3E%3Cpath d='M9 44c2-9 8-13 15-13s13 4 15 13' fill='%231E5E4E' opacity='.35'/%3E%3C/svg%3E");
}

/* ---------- Visuals ----------
   Images use literal markers like src="[reason 1 visual]". Until a marker is
   replaced with a real URL, the image is hidden and a labelled box shows instead. */
.maw-visual { position: relative; margin: 18px 0 20px; }
.maw-visual img { width: 100%; border-radius: var(--maw-radius); }
.maw-visual:has(img[src^="["]) {
  aspect-ratio: 4 / 3; border: 2px dashed #CFC7B8; border-radius: var(--maw-radius);
  background: repeating-linear-gradient(45deg, #F4F0E9, #F4F0E9 10px, #F0EBE2 10px, #F0EBE2 20px);
}
.maw-visual:has(img[src^="["]) img { visibility: hidden; position: absolute; inset: 0; height: 100%; }
.maw-visual:has(img[src^="["])::after {
  content: "[" attr(data-label) "]"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--maw-muted); text-align: center; padding: 12px;
}
.maw-visual--hero:has(img[src^="["]) { aspect-ratio: 3 / 2; }
.maw-visual--square:has(img[src^="["]) { aspect-ratio: 1 / 1; }
.maw-visual--flush { margin-top: 0; }

/* ---------- Body copy: short lines, generous air ---------- */
.maw-body p { margin: 0 0 .9em; }
.maw-body strong, .maw-body b { font-weight: 700; }
.maw-body mark {
  background: linear-gradient(transparent 50%, var(--maw-marker) 50%, var(--maw-marker) 94%, transparent 94%);
  color: inherit; font-weight: 700; padding: 0 1px;
}
.maw-callout { font-family: var(--maw-serif); font-weight: 700; font-size: 22px; line-height: 1.3; }
.maw-lead { margin-bottom: 6px; }

/* ---------- Self-check ---------- */
.maw-quiz { margin: 26px 0 8px; padding: 18px 16px; border-radius: 14px; background: var(--maw-surface); border: 1px solid var(--maw-rule); }
.maw-quiz__title { margin: 0 0 12px !important; font-weight: 700; font-size: 17px; }
.maw-quiz__opts { display: grid; gap: 8px; }
.maw-quiz__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--maw-rule); background: var(--maw-paper);
  font-size: 16px; line-height: 1.3; color: var(--maw-ink); transition: border-color .15s, background .15s;
}
.maw-quiz__opt::before {
  content: ""; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #BDB5A6; background: #fff;
}
.maw-quiz__opt[aria-pressed="true"] { border-color: var(--maw-green); background: var(--maw-green-soft); }
.maw-quiz__opt[aria-pressed="true"]::before {
  border-color: var(--maw-green); background: var(--maw-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.maw-quiz__result { margin: 12px 0 0 !important; font-size: 15px; color: var(--maw-muted); min-height: 1.4em; }
.maw-quiz__result.is-on { color: var(--maw-green-dark); font-weight: 600; }

/* ---------- The short version ---------- */
.maw-tldr { margin: 22px 0 6px; padding: 16px 18px; border-left: 4px solid var(--maw-green); background: var(--maw-green-soft); border-radius: 0 12px 12px 0; }
.maw-tldr__label { margin: 0 0 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maw-green-dark); }
.maw-tldr ul { margin: 0; padding-left: 1.1em; font-size: 16.5px; line-height: 1.5; }
.maw-tldr li { margin: 3px 0; }

/* ---------- Reasons ---------- */
.maw-reason { padding-top: 34px; margin-top: 30px; border-top: 1px solid var(--maw-rule); scroll-margin-top: 16px; }
.maw-kicker { margin: 0 0 6px !important; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maw-green); }
.maw-h2 {
  font-family: var(--maw-serif); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(29px, 7.6vw, 40px); line-height: 1.12; margin: 0 0 16px; text-wrap: pretty;
}
.maw-h2--sm { font-size: clamp(25px, 6.4vw, 32px); }
.maw-voice {
  position: relative; margin: 0 0 18px !important; padding: 2px 0 2px 16px; border-left: 3px solid var(--maw-green);
  font-family: var(--maw-serif); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--maw-ink-soft);
}

/* Reason 3: the loop */
.maw-loop { list-style: none; margin: 4px 0 18px; padding: 4px 0; font-size: 16px; border-radius: var(--maw-radius); background: var(--maw-surface); border: 1px solid var(--maw-rule); }
.maw-loop li { display: flex; gap: 14px; padding: 8px 16px; border-bottom: 1px dashed var(--maw-rule); }
.maw-loop li:last-child { border-bottom: 0; color: var(--maw-no); font-weight: 600; }
.maw-loop b { flex: 0 0 52px; color: var(--maw-green-dark); }

/* Reason 5: table */
.maw-tablehead { margin: 26px 0 4px !important; font-family: var(--maw-serif); font-weight: 700; font-size: 22px; }
.maw-swipe { margin: 0 0 6px !important; font-size: 12.5px; color: var(--maw-muted); text-align: right; }
.maw-table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--maw-rule); border-radius: var(--maw-radius); background: var(--maw-surface); -webkit-overflow-scrolling: touch; }
.maw-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.maw-table th, .maw-table td { padding: 11px 10px; border-bottom: 1px solid var(--maw-rule); text-align: center; vertical-align: middle; }
.maw-table thead th { font-size: 12.5px; font-weight: 600; color: var(--maw-ink-soft); }
.maw-table tbody th { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--maw-surface); min-width: 140px; }
.maw-table td.yes { color: var(--maw-green); font-size: 19px; font-weight: 700; }
.maw-table td.no { color: var(--maw-no); font-size: 16px; }
.maw-table .is-us { background: var(--maw-green-soft); }
.maw-table thead th.is-us { background: var(--maw-green); color: #fff; font-size: 14.5px; }
.maw-table__catch td, .maw-table__catch th { font-size: 12.5px; color: var(--maw-ink-soft); border-bottom: 0; }

/* Reason 6: timeline */
.maw-timeline { list-style: none; margin: 6px 0 20px; padding: 0; position: relative; }
.maw-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--maw-rule); }
.maw-timeline li { position: relative; padding: 0 0 16px 32px; }
.maw-timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--maw-paper); border: 3px solid var(--maw-green); }
.maw-timeline li.is-muted::before { border-color: #BDB5A6; }
.maw-timeline li.is-muted .maw-timeline__when { color: var(--maw-muted); }
.maw-timeline__when { display: block; font-size: 13px; font-weight: 700; color: var(--maw-green-dark); text-transform: uppercase; letter-spacing: .07em; }
.maw-timeline__what { display: block; font-size: 17px; }

/* ---------- Study chips ---------- */
.maw-chip {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 8px 0 4px; padding: 14px 16px;
  text-align: left; cursor: pointer; border-radius: 12px; border: 1px solid #D8E5DD; background: var(--maw-surface);
  box-shadow: 0 1px 0 rgba(18, 26, 36, .04); color: var(--maw-ink); transition: border-color .15s, box-shadow .15s;
}
.maw-chip:hover { border-color: var(--maw-green); box-shadow: 0 6px 18px -12px rgba(18,26,36,.45); }
.maw-chip__stat {
  flex: 0 0 auto; min-width: 64px; padding: 8px 6px; border-radius: 8px; text-align: center;
  background: var(--maw-green-soft); color: var(--maw-green-dark); font-family: var(--maw-serif); font-weight: 700; font-size: 19px; line-height: 1.1;
}
.maw-chip__text { font-size: 15px; line-height: 1.4; }
.maw-chip__more { display: block; margin-top: 3px; font-weight: 600; color: var(--maw-green); }

/* ---------- Bottom sheets (study pop-ups) ---------- */
.maw-sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88vh;
  border-radius: 22px 22px 0 0; background: var(--maw-surface); color: var(--maw-ink);
  box-shadow: 0 -12px 40px rgba(18, 26, 36, .25); overflow: auto;
}
.maw-sheet::backdrop { background: rgba(18, 26, 36, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.maw-sheet[open] { animation: maw-up .28s ease-out; }
@keyframes maw-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.maw-sheet__inner { position: relative; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); font-family: var(--maw-sans); }
.maw-sheet__x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--maw-green-soft); color: var(--maw-green-dark); font-size: 26px; line-height: 1;
}
.maw-sheet__src { margin: 0 52px 8px 0; font-size: 14px; color: var(--maw-green); font-weight: 600; }
.maw-sheet__title { margin: 0 0 16px; font-family: var(--maw-serif); font-weight: 700; font-size: 26px; line-height: 1.18; letter-spacing: -0.01em; }
.maw-facts { display: grid; grid-template-columns: 82px 1fr; gap: 10px 14px; margin: 0 0 16px; font-size: 16px; line-height: 1.45; }
.maw-facts dt { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--maw-green); padding-top: 3px; }
.maw-facts dd { margin: 0; }
.maw-sheet__highlight { margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--maw-green-soft); color: var(--maw-green-dark); font-weight: 600; font-size: 16px; }
.maw-sheet__keep { margin: 0 0 12px; font-size: 15px; color: var(--maw-ink-soft); }
.maw-sheet__cite { margin: 0 0 16px; font-size: 12.5px; color: var(--maw-muted); line-height: 1.5; }
.maw-sheet__actions { display: flex; }
.maw-sheet__actions .maw-btn { flex: 1; }
html.maw-lock, html.maw-lock body { overflow: hidden; }

/* ---------- Trust block ---------- */
.maw-trust { margin: 36px 0 0; padding: 18px 18px 8px; border-radius: 16px; background: var(--maw-surface); border: 1px solid var(--maw-rule); border-top: 4px solid var(--maw-green); }
.maw-trust__eyebrow { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maw-green); }
.maw-trust__visual { margin: 18px 0 16px; overflow: hidden; border-radius: 12px; border: 1px solid var(--maw-rule); background: var(--maw-green-soft); }
.maw-trust__visual img { width: 100%; height: auto; display: block; }
.maw-trust__list { list-style: none; margin: 6px 0 12px; padding: 0; }
.maw-trust__list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--maw-rule); font-size: 16.5px; }
.maw-trust__list li:first-child { border-top: 0; }
.maw-trust__mark { width: 22px; height: 22px; flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; border-radius: 50%; background: var(--maw-green-soft); color: var(--maw-green-dark); font-size: 14px; font-weight: 800; line-height: 1; }
.maw-trust__note { margin: 4px 0 10px !important; font-size: 12.5px; line-height: 1.5; color: var(--maw-muted); }
.maw-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: var(--maw-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* ---------- Is it for you ---------- */
.maw-fit { margin-top: 34px; padding: 22px 18px 10px; border-radius: 16px; background: var(--maw-green-soft); }
.maw-fit__list { list-style: none; margin: 0 0 12px; padding: 0; }
.maw-fit__list li { position: relative; padding: 8px 0 8px 34px; font-size: 17px; font-weight: 600; }
.maw-fit__list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--maw-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.maw-fit__yes { font-family: var(--maw-serif); font-weight: 700; font-size: 20px; }
.maw-fit__not { font-size: 14.5px; color: var(--maw-ink-soft); }

/* ---------- Buttons ---------- */
.maw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 24px; border-radius: 12px; border: 0; cursor: pointer;
  text-decoration: none; font-family: var(--maw-sans); font-size: 18px; font-weight: 700; line-height: 1.2; transition: background .15s ease, transform .15s ease;
}
.maw-btn--primary { background: var(--maw-green); color: #fff !important; box-shadow: 0 2px 0 var(--maw-green-dark); }
.maw-btn--primary:hover { background: var(--maw-green-dark); }
.maw-btn--primary:active { transform: translateY(1px); }
.maw-btn--block { display: flex; width: 100%; }
.maw-btn--sm { padding: 11px 16px; font-size: 15px; white-space: nowrap; }

/* ---------- Offer ---------- */
.maw-offer { position: relative; margin: 30px 0 10px; padding: 26px 18px 18px; border-radius: 18px; background: var(--maw-surface); border: 2px solid var(--maw-green); scroll-margin-top: 16px; box-shadow: 0 12px 30px -18px rgba(18, 26, 36, .45); }
.maw-offer__badge { position: absolute; top: -14px; left: 18px; margin: 0 !important; padding: 5px 12px; border-radius: 999px; background: var(--maw-green); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.maw-offer__grid { display: grid; gap: 16px; }
.maw-offer__grid .maw-visual { margin: 0; }
.maw-offer__title { font-family: var(--maw-serif); font-size: 28px; font-weight: 700; margin: 0 0 4px; }
.maw-offer__price { margin: 0 0 8px !important; }
.maw-offer__now { font-size: 36px; font-weight: 800; }
.maw-offer__each { font-size: 15px; color: var(--maw-muted); margin-left: 6px; }
.maw-offer__why { font-size: 16.5px; }

/* ---------- FAQ ---------- */
.maw-faq { margin-top: 36px; }
.maw-faq details { border-bottom: 1px solid var(--maw-rule); }
.maw-faq summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative; font-size: 17px; font-weight: 600; }
.maw-faq summary::-webkit-details-marker { display: none; }
.maw-faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 26px; font-weight: 400; color: var(--maw-green); }
.maw-faq details[open] summary::after { content: "\2013"; }
.maw-faq details p { margin: 0 0 16px; font-size: 16.5px; }

/* ---------- Close, P.S., author ---------- */
.maw-close { margin-top: 32px; padding-top: 24px; border-top: 3px double var(--maw-rule); }
.maw-close__line { font-family: var(--maw-serif); font-size: 25px; font-weight: 700; line-height: 1.25; text-align: center; margin-bottom: 16px !important; }
.maw-signoff { margin: 20px 0 0 !important; font-family: var(--maw-serif); font-style: italic; font-size: 20px; color: var(--maw-ink); }
.maw-signoff ~ .maw-ps { margin-top: 12px !important; }
.maw-ps { margin-top: 24px !important; font-family: var(--maw-serif); font-style: italic; font-size: 19px; color: var(--maw-ink-soft); }
.maw-ps b { font-style: normal; color: var(--maw-ink); }
.maw-author { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 18px; border-radius: 14px; background: var(--maw-surface); border: 1px solid var(--maw-rule); }
.maw-author__photo { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; background: var(--maw-green-soft); color: transparent; overflow: hidden; }
.maw-author p { margin: 0; }
.maw-author__name { font-weight: 700; font-size: 17px; }
.maw-author__role { font-size: 14px; color: var(--maw-muted); }
.maw-author__bio { margin-top: 6px !important; font-size: 15.5px; line-height: 1.5; color: var(--maw-ink-soft); }
.maw-author__rev { margin-top: 6px !important; font-size: 13.5px; font-weight: 600; color: var(--maw-green-dark); }

/* ---------- Sticky mobile bar ---------- */
.maw-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px var(--maw-gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--maw-rule); box-shadow: 0 -8px 20px -12px rgba(18, 26, 36, .35);
  transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.maw-sticky.is-on { transform: translateY(0); visibility: visible; transition: transform .25s ease, visibility 0s; }
.maw-sticky__text { font-size: 13.5px; line-height: 1.3; color: var(--maw-ink-soft); }

/* ---------- Footer ---------- */
.maw-footer { background: var(--maw-ink); color: #C9D2DB; margin-top: 30px; padding-bottom: 70px; }
.maw-footer__inner { max-width: 1080px; margin: 0 auto; padding: 36px var(--maw-gutter) 20px; display: grid; gap: 24px; }
.maw-footer .maw-logo--full { width: 180px; height: auto; }
.maw-footer__tagline { font-size: 13px; margin: 8px 0 0; }
.maw-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.maw-footer__nav a { color: #fff; text-decoration: none; }
.maw-footer__nav a:hover { text-decoration: underline; }
.maw-footer__legal { font-size: 12.5px; line-height: 1.55; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.maw-footer__legal p { margin: 0 0 10px; }
.maw-footer__legal b { color: #fff; }

/* ---------- Home ---------- */
.maw-home { max-width: 1080px; margin: 0 auto; padding: 26px var(--maw-gutter) 20px; }
.maw-home__intro { text-align: center; padding: 10px 0 24px; }
.maw-home__title { font-family: var(--maw-serif); font-weight: 700; font-size: clamp(34px, 8vw, 56px); margin: 0 0 6px; letter-spacing: -0.02em; }
.maw-home__sub { color: var(--maw-muted); margin: 0; }
.maw-home__more { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--maw-muted); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--maw-rule); }
.maw-card { display: block; color: inherit !important; text-decoration: none; background: var(--maw-surface); border: 1px solid var(--maw-rule); border-radius: 16px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.maw-card:hover { box-shadow: 0 12px 28px -18px rgba(18,26,36,.5); transform: translateY(-2px); }
.maw-card__media .maw-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.maw-card__fallback { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: var(--maw-green-soft); }
.maw-card__fallback .maw-logo { width: 64px; height: 64px; }
.maw-card__text { padding: 18px 18px 20px; }
.maw-card__label { display: inline-block; margin: 0 0 8px; padding: 3px 8px; border-radius: 6px; background: var(--maw-green-soft); color: var(--maw-green-dark); font-size: 11.5px; font-weight: 700; }
.maw-card__title { font-family: var(--maw-serif); font-weight: 700; font-size: 23px; line-height: 1.18; margin: 0 0 8px; }
.maw-card--featured .maw-card__title { font-size: clamp(27px, 5vw, 38px); }
.maw-card__excerpt { font-size: 16.5px; color: var(--maw-ink-soft); margin: 0; }
.maw-card__more { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; font-weight: 700; font-size: 15px; color: var(--maw-green); }
.maw-card__more .maw-icon { margin: 0; width: 18px; height: 18px; }
.maw-grid { display: grid; gap: 18px; }
.maw-home__about { display: flex; gap: 14px; align-items: center; margin: 40px auto 0; max-width: 700px; padding: 18px; border-top: 1px solid var(--maw-rule); font-size: 15px; color: var(--maw-ink-soft); }
.maw-home__about .maw-logo { width: 40px; height: 40px; flex: 0 0 40px; }
.maw-home__about p { margin: 0; }

/* ---------- About ---------- */
.maw-about .maw-h2 { margin-top: 26px; }
.maw-list { padding-left: 1.1em; }
.maw-list li { margin-bottom: 10px; }

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
  body.maw { font-size: 19px; }
  :root { --maw-gutter: 28px; }
  .maw-masthead__nav { display: flex; }
  .maw-masthead__logo .maw-logo--full { width: 220px; }
  .maw-quiz__opts { grid-template-columns: 1fr 1fr; }
  .maw-sheet { margin: auto; border-radius: 22px; }
  .maw-offer { padding: 30px 28px 24px; }
  .maw-offer__grid { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 26px; }
  .maw-sticky, .maw-swipe { display: none; }
  .maw-footer { padding-bottom: 0; }
  .maw-footer__inner { grid-template-columns: 1fr 1.4fr; }
  .maw-footer__legal { grid-column: 1 / -1; }
  .maw-card--featured { display: grid; grid-template-columns: 1.3fr 1fr; }
  .maw-card--featured .maw-card__media .maw-img, .maw-card--featured .maw-card__fallback { height: 100%; aspect-ratio: auto; }
  .maw-card--featured .maw-card__text { padding: 30px; align-self: center; }
  .maw-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .maw *, .maw-sheet[open] { transition: none !important; animation: none !important; }
}

/* Static site: when an image file in /images is missing, show the same labelled box
   (or the grey person icon for the author photo) instead of a broken image. */
.maw-visual.is-missing {
  aspect-ratio: 4 / 3; border: 2px dashed #CFC7B8; border-radius: var(--maw-radius);
  background: repeating-linear-gradient(45deg, #F4F0E9, #F4F0E9 10px, #F0EBE2 10px, #F0EBE2 20px);
}
.maw-visual.is-missing img { display: none; }
.maw-visual.is-missing::after {
  content: "[" attr(data-label) "]"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--maw-muted); text-align: center; padding: 12px;
}
.maw-visual--hero.is-missing { aspect-ratio: 3 / 2; }
.maw-visual--square.is-missing { aspect-ratio: 1 / 1; }
.maw-byline__photo.is-missing, .maw-author__photo.is-missing {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23E8F1EC'/%3E%3Ccircle cx='24' cy='19' r='8' fill='%231E5E4E' opacity='.35'/%3E%3Cpath d='M9 44c2-9 8-13 15-13s13 4 15 13' fill='%231E5E4E' opacity='.35'/%3E%3C/svg%3E");
}
