/* Site chrome from the Figma design (file muLyIF3sqQ3LxSHO679mxi, 1 Nov 2026):
   Foundations → Header/Phone 4:81, Header/Desktop 4:98, Footer/Phone 4:115,
   Footer/Desktop 4:128, Brand 4:32, Button/Primary 4:42; Home 36:816 / 37:870.
   Every page loads this after its own styles. Tokens fall back to the design
   values so pages outside .journal-design render the same. */
.mm-site-header,.mm-site-footer{
 --c-page:var(--mm-page,#f8f7f2);--c-surface:var(--mm-surface,#fffefa);--c-ink:var(--mm-ink,#233b32);
 --c-muted:var(--mm-muted,#5f6b61);--c-line:var(--mm-line,#dedfd5);--c-accent:#a65e3f;--c-primary:var(--mm-accent,#295443);
 --c-focus:var(--mm-focus,#a45b38);--f-body:var(--mm-font-body,'DM Sans',sans-serif);--f-head:var(--mm-font-heading,'Fraunces',Georgia,serif);
 font-family:var(--f-body);color:var(--c-ink);background:var(--c-page);-webkit-font-smoothing:antialiased}
.mm-site-header *,.mm-site-footer *{box-sizing:border-box}

/* Header: logo · section links · account. No action button — the page is the action. */
.mm-site-header{position:relative;z-index:5;display:block;width:auto;max-width:none;margin:0;padding:0;border-bottom:1px solid var(--c-line)}
.mm-site-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;height:72px;margin-inline:auto}
.mm-logo{display:inline-flex;align-items:center;gap:8px;color:var(--c-ink);text-decoration:none;white-space:nowrap}
.mm-logo-mark{display:block;width:34px;height:34px;flex:none}
.mm-logo-word{font:400 24px/1.2 var(--f-body);letter-spacing:-1.2px;color:var(--c-ink)}
.mm-logo-word b{font-weight:700}
.mm-logo-word i{font-style:normal;font-weight:600;color:var(--c-accent)}
.mm-site-nav{display:flex;align-items:center;gap:24px;margin:0;padding:0;font:500 14px/1.3 var(--f-body)}
.mm-site-nav a{color:var(--c-ink);font:500 14px/1.3 var(--f-body);text-decoration:none;white-space:nowrap;padding:4px 0;min-height:0}
.mm-account-link{display:inline-flex;align-items:center;gap:8px;padding:8px;border-radius:8px;color:var(--c-ink);font:500 14px/1.3 var(--f-body);text-decoration:none;white-space:nowrap}
.mm-account-link svg{display:block;width:24px;height:24px;flex:none}
@media (hover: hover) and (pointer: fine){
 .mm-site-nav a:hover,.mm-logo:hover .mm-logo-word{color:var(--c-focus)}
 .mm-account-link:hover{background:var(--mm-hover,#efefe7)}
}
.mm-site-header a:focus-visible,.mm-site-footer a:focus-visible,.mm-site-footer button:focus-visible{outline:2px solid var(--c-focus);outline-offset:3px;border-radius:4px}
@media(max-width:760px){
 .mm-site-header-inner{height:64px;gap:12px}
 .mm-logo{gap:8px}
 .mm-logo-mark{width:31px;height:31px}
 .mm-logo-word{font-size:24px}
 .mm-site-nav{display:none}
 .mm-account-link span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media print{.mm-site-header,.mm-site-footer{display:none}}

/* Footer: the same on every page. Pages whose body pads itself (home, simple pages) zero the gap. */
.mm-site-footer{display:block;width:auto;max-width:none;margin:64px 0 0;padding:0;border-top:1px solid var(--c-line)}
:is(.mm-home,.mm-support-page,.mm-account) .mm-site-footer{margin-top:0}
.mm-site-footer-inner{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;padding:32px 0 32px;margin-inline:auto}
.mm-footer-message{margin:0;font:400 44px/1.05 var(--f-head);letter-spacing:-1.4px;color:var(--c-ink)}
.mm-footer-message em{font-style:italic;color:var(--c-accent)}
.mm-footer-side{display:flex;flex-direction:column;align-items:flex-end;gap:12px;min-width:0}
.mm-footer-brand{font:600 16px/1.3 var(--f-body);letter-spacing:-.2px;color:var(--c-ink);text-decoration:none}
.mm-site-footer .footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 16px;margin:0;padding:0;font:400 12px/1.5 var(--f-body);color:var(--c-muted)}
.mm-site-footer .footer-links a,.mm-site-footer .footer-links button{font:inherit;color:var(--c-muted);text-decoration:none;background:none;border:0;padding:0;margin:0;cursor:pointer;min-height:0}
.mm-footer-credits{margin:0;font:400 12px/1.5 var(--f-body);color:var(--c-muted)}
.mm-footer-credits a,.mm-footer-credits button{font:inherit;color:var(--c-muted);text-decoration:none;background:none;border:0;padding:0;margin:0;cursor:pointer}
.mm-footer-credits button:disabled{cursor:default;opacity:.6}
@media (hover: hover) and (pointer: fine){
 .mm-site-footer .footer-links a:hover,.mm-site-footer .footer-links button:hover,.mm-footer-credits a:hover,.mm-footer-credits button:hover:not(:disabled){color:var(--c-ink);text-decoration:underline;text-underline-offset:3px}
}
@media(max-width:760px){
 .mm-site-footer{margin-top:48px}
 .mm-site-footer-inner{flex-direction:column;align-items:flex-start;gap:16px;padding:30px 0 calc(34px + env(safe-area-inset-bottom))}
 .mm-footer-side{align-items:flex-start}
 .mm-site-footer .footer-links{justify-content:flex-start}
}

/* Chrome and simple-page bodies share the editor's content width (1140px),
   so header, content and footer edges line up on every page. Phones: header
   16px in from the edge, page bodies 20px (as in the design). */
.mm-wrap{width:min(1184px,calc(100% - 96px));margin-inline:auto}
@media(max-width:760px){.mm-wrap{width:calc(100% - 32px)}.mm-page-body.mm-wrap,.mm-home-body.mm-wrap{width:calc(100% - 40px)}}

/* Primary button (Button/Primary 4:42). */
.mm-button{display:inline-flex;align-items:center;gap:24px;min-height:46px;padding:12px 16px 12px 16px;border:0;border-radius:8px;background:var(--mm-accent,#295443);color:#fff;font:500 14px/1.4 var(--mm-font-body,'DM Sans',sans-serif);text-decoration:none;cursor:pointer;transition:background .18s}
.mm-button svg{display:block;width:18px;height:18px;flex:none}
.mm-button:hover{background:var(--mm-accent-hover,#193d2f);color:#fff}
.mm-button:focus-visible{outline:2px solid var(--mm-focus,#a45b38);outline-offset:3px}
.mm-button.is-block{width:100%}

/* Home (Home / Phone 36:816, Home / Desktop 37:870): two halves, pick one. */
.mm-home-body{display:flex;flex-direction:column;align-items:center;gap:16px;padding:32px 0 64px}
.mm-home-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px;width:100%}
.mm-home-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;border:1px solid var(--mm-line,#dedfd5);border-radius:8px;background:var(--mm-surface,#fffefa);min-width:0}
.mm-home-card .mm-home-art{display:block;width:100%;height:330px;object-fit:contain;border-radius:8px;background:var(--mm-surface,#fffefa)}
.mm-home-card .mm-eyebrow{margin:0;font:600 10px/1.4 var(--mm-font-body,'DM Sans',sans-serif);letter-spacing:2px;color:var(--mm-ink,#233b32);text-transform:uppercase}
.mm-home-card h2{margin:0;font:400 44px/1.1 var(--mm-font-heading,'Fraunces',Georgia,serif);letter-spacing:-1.5px;color:var(--mm-ink,#233b32)}
.mm-home-card p{margin:0;max-width:500px;font:400 15px/1.6 var(--mm-font-body,'DM Sans',sans-serif);color:var(--mm-muted,#5f6b61)}
.mm-home-note{margin:0;max-width:700px;text-align:center;font:400 13px/1.6 var(--mm-font-body,'DM Sans',sans-serif);color:var(--mm-muted,#5f6b61)}
@media(max-width:760px){
 .mm-wide-only{display:none}
 .mm-home-body{gap:12px;padding:12px 0 32px}
 .mm-home-pair{grid-template-columns:minmax(0,1fr);gap:12px}
 .mm-home-card{gap:8px;padding:12px}
 .mm-home-card .mm-home-art{height:170px;border-radius:4px}
 .mm-home-card h2{font-size:24px;line-height:1.15;letter-spacing:-.8px}
 .mm-home-card p{font-size:12px;line-height:1.5}
 .mm-home-card .mm-button{width:100%}
 .mm-home-note{font-size:12px;line-height:1.5}
}

/* Simple pages (Privacy, Account): one column at the design widths. */
.mm-page-body{display:flex;flex-direction:column;gap:16px;padding:12px 0 32px}
.mm-page-body h1{margin:0;font:400 30px/1.15 var(--mm-font-heading,'Fraunces',Georgia,serif);letter-spacing:-.8px;color:var(--mm-ink,#233b32)}
.mm-page-body .mm-page-meta{margin:0;font:400 11px/1.5 var(--mm-font-body,'DM Sans',sans-serif);color:var(--mm-muted,#5f6b61)}
.mm-page-body section{display:flex;flex-direction:column;gap:4px}
.mm-page-body h2,.mm-support-page .mm-page-body h2{margin:0;font:600 15px/1.3 var(--mm-font-body,'DM Sans',sans-serif);letter-spacing:-.2px;color:var(--mm-ink,#233b32)}
.mm-page-body p{margin:0;font:400 13px/1.6 var(--mm-font-body,'DM Sans',sans-serif);color:var(--mm-muted,#5f6b61)}
.mm-page-body p a,.mm-support-page .mm-page-body a{color:var(--mm-selected-border,#9A3B26)}
.mm-page-body code{font-size:12px}
.mm-choice-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--mm-line,#dedfd5);border-radius:8px;background:var(--mm-surface,#fffefa)}
.mm-choice-card h2{font-weight:500;font-size:14px}
.mm-choice-card .mm-choice-actions{display:flex;gap:8px}
.mm-choice-card .mm-choice-actions>*{flex:1 1 0;justify-content:center;gap:0}
.mm-button-secondary,.mm-support-page button.mm-button-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px 12px 16px;border:1px solid var(--mm-line,#dedfd5);border-radius:8px;background:var(--mm-surface,#fffefa);color:var(--mm-ink,#233b32);font:500 14px/1.4 var(--mm-font-body,'DM Sans',sans-serif);text-decoration:none;cursor:pointer}
.mm-button-secondary:hover,.mm-support-page button.mm-button-secondary:hover:not(:disabled){background:var(--mm-hover,#efefe7);border-color:var(--mm-line,#dedfd5)}
.mm-button-secondary[aria-pressed=true],.mm-button[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--mm-selected-border,#9A3B26)}
@media(min-width:761px){.mm-page-body{max-width:720px;margin-inline:auto;padding:32px 0 64px}.mm-page-body h1{font-size:32px}}

/* Phone: the country chooser and download dialogs open as bottom sheets
   (Travel / Phone — Choose a country 29:805, Download sheet 29:872). */
@media(max-width:760px){
 .journal-design :is(#country-dialog,#download-dialog):modal{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:min(88vh,88dvh);border:0;border-radius:16px 16px 0 0;padding:12px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 10px 28px rgba(27,42,65,.14);animation:mm-sheet-up .24s ease-out}
 .journal-design :is(#country-dialog,#download-dialog):modal::before{content:"";display:block;width:40px;height:4px;margin:0 auto 12px;border-radius:999px;background:var(--mm-line,#dedfd5)}
 .journal-design :is(#country-dialog,#download-dialog)::backdrop{background:#172d258c}
}
@keyframes mm-sheet-up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.journal-design :is(#country-dialog,#download-dialog):modal{animation:none}}
.mm-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
