/* The letter, ink and rose paper belong solely to the Mother's Day guide. */
body:has(.md-guide) #page, body:has(.md-guide) #content { display:block; width:100%; max-width:none; padding:0; }
.md-guide { --paper:#fbf4e9; --ink:#253d32; --rose:#773749; --edge:#d8c5ae; background:var(--paper); color:var(--ink); font:400 17px/1.67 Inter,system-ui,sans-serif; padding:0 0 clamp(2rem,6vw,5rem); }
.md-guide *, .md-guide *::before, .md-guide *::after { box-sizing:border-box; }
.md-guide :where(a,summary):focus-visible { outline:3px solid currentColor; outline-offset:4px; }
.md-guide .md-crumbs { max-width:1280px; margin:0 auto; padding:16px clamp(24px,4vw,64px); }
.md-cover { max-width:1280px; margin:auto; padding:clamp(12px,2vw,25px) clamp(24px,4vw,64px) clamp(28px,5vw,65px); display:grid; grid-template-columns: .93fr 1.07fr; align-items:center; gap:clamp(2rem,5vw,5rem); }
.md-letter { padding:1.6rem 0; }
.md-date { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; color:var(--rose); font-size:.89rem; font-weight:600; margin:0 0 1.4rem; }
.md-date span { border:1px solid #b88c8a; padding:.15rem .72rem; border-radius:30px; }
.md-guide h1,.md-guide .md-body h2,.md-guide .md-body h3 { font-family:'Cormorant Garamond',Georgia,serif; color:var(--ink); font-weight:600; letter-spacing:-.028em; text-transform:none; }
.md-guide h1 { font-size:clamp(4.1rem,7.7vw,7.5rem); line-height:.88; margin:0 0 1.25rem; }
.md-guide h1 em { color:var(--rose); font-style:italic; }
.md-deck { max-width:34ch; margin:0 0 1.6rem; font-size:clamp(1.05rem,1.6vw,1.33rem); line-height:1.48; }
.md-guide .md-button { display:inline-flex; gap:1rem; align-items:center; background:var(--ink); color:#fff9ef; border-radius:30px; padding:.68rem 1.15rem; font-weight:600; font-size:.95rem; text-decoration:none; }
.md-button:hover { background:#374f42; }
.md-portrait { margin:0 0 .4rem; position:relative; padding:clamp(5px,.75vw,10px); background:#fffaf2; box-shadow:0 12px 30px #42291827; transform:rotate(1.5deg); }
.md-portrait img { display:block; width:100%; height:auto; aspect-ratio:1.25; object-fit:cover; object-position:48% 44%; }
.md-mark { width:clamp(77px,11vw,146px); height:auto; position:absolute; bottom:-7%; right:4%; color:var(--rose); background:#faebdacf; border-radius:38%; transform:rotate(-9deg); pointer-events:none; }
.md-guide .md-body { width:100%; max-width:1120px; margin:auto; padding:0 clamp(24px,4vw,64px); color:var(--ink); font:inherit; overflow-wrap:break-word; }
.md-guide .md-body h2 { font-size:clamp(2.15rem,4.3vw,4.1rem); line-height:.99; margin:0 0 1.15rem; }
.md-guide .md-body h3 { font-size:clamp(1.65rem,2.8vw,2.4rem); line-height:1.12; margin:1.65rem 0 .65rem; }
.md-body p,.md-body li { max-width:68ch; }
.md-guide .md-body p { font:inherit; margin:0 0 .85em; }
.md-body a { color:#714051; text-decoration:underline; text-underline-offset:.2em; }
.md-guide .md-picker { display:grid; grid-template-columns:1fr 1fr; gap:clamp(1rem,4vw,3rem); align-items:center; padding:clamp(1.3rem,3.8vw,3rem); background:#efd9d3; border:1px solid #d9b4ad; border-radius:4px; }
.md-guide .md-picker h2 { color:#62293d; }
.md-switch { display:flex; gap:.4rem; flex-wrap:wrap; }
.md-switch a { border:1px solid #8f606b; border-radius:50px; padding:.4rem .85rem; font-size:.91rem; font-weight:600; text-decoration:none; color:#5c2f3b; }
.md-switch a[aria-current=true],.md-switch a:hover { color:#fff7f4; background:#70374a; }
.md-options { border-left:1px solid #c59b96; padding-left:clamp(1rem,3vw,2.2rem); }
.md-options article[hidden] { display:none; }
.md-guide .md-options h3 { margin:0 0 .55rem; }
.md-guide .md-options p { font-size:1rem; line-height:1.55; }
.md-more { font-weight:650; }
.md-sections { display:flex; gap:.4rem 1.3rem; flex-wrap:wrap; padding:1.15rem 0; border-bottom:1px solid var(--edge); }
.md-sections a { color:var(--ink); font-size:.94rem; text-decoration-style:dotted; }
.md-chapter { margin:clamp(2.4rem,6vw,5rem) auto 0; scroll-margin-top:85px; display:flow-root; }
.md-chapter h2 { max-width:21ch; }
.md-chapter ol,.md-chapter ul { margin:.85rem 0; padding-left:1.6rem; }
.md-chapter li { margin-bottom:.55rem; padding-left:.2rem; }
.md-chapter li::marker { color:var(--rose); font-weight:700; }
.md-guide .md-photo { display:block; padding:0; margin:1.1rem 0 1.5rem; }
.md-photo img { display:block; width:100%; height:auto; object-fit:cover; }
.md-guide .md-photo figcaption { color:#65574c; font:500 .88rem/1.45 Inter,system-ui,sans-serif; margin:.4rem 0 0; text-align:left; }
.md-guide .md-photo--phil { float:right; width:44%; margin:0 0 1.25rem 2rem; }
.md-photo--phil img { aspect-ratio:4/3; }
.md-photo--kant-real img { aspect-ratio:16/8; }
.md-town { display:grid; grid-template-columns:minmax(180px,32%) 1fr; gap:clamp(1.2rem,3vw,2.6rem); align-items:start; padding:1.3rem 0; border-bottom:1px solid var(--edge); }
.md-guide .md-town .md-photo,.md-guide .md-town h3 { margin-top:0; }
.md-town img { aspect-ratio:4/4.5; }
.md-weather,.md-note { margin-top:clamp(2rem,5vw,4rem); padding:clamp(1.4rem,4vw,3rem); background:#e2e8de; }
.md-weather .md-chapter { margin:0; }
.md-guide .md-note { display:grid; grid-template-columns:1fr minmax(110px,24%); align-items:center; gap:1rem; background:#edd8d3; border:1px dashed #a77c7d; }
.md-guide .md-note img { width:100%; height:auto; max-height:180px; object-fit:contain; }
.md-note summary { color:#653143; cursor:pointer; font-weight:650; text-decoration:underline; text-underline-offset:4px; }
.md-guide .md-note details p { font:italic 600 clamp(1.4rem,2.6vw,2.1rem)/1.22 'Cormorant Garamond',Georgia,serif; margin:.8rem 0 0; }
.md-guide .md-compare { width:100%; border-collapse:collapse; margin:1.25rem 0; font:inherit; table-layout:fixed; }
.md-compare caption { text-align:left; font:600 1.6rem/1.25 'Cormorant Garamond',Georgia,serif; margin-bottom:.6rem; }
.md-compare th,.md-compare td { padding:.6rem .7rem; text-align:left; border:0; border-bottom:1px solid var(--edge); vertical-align:top; }
.md-compare th { color:var(--ink); background:#e9e8d9; }
@media(max-width:700px) {
 .md-cover { grid-template-columns:minmax(0,1fr); gap:.9rem; padding-top:.65rem; }
 .md-letter { padding:0; }
 .md-date { margin-bottom:1.1rem; }
 .md-guide h1 { font-size:clamp(2.85rem,14vw,5.1rem); }
 .md-portrait { margin:.75rem 3px 1rem; }
 .md-portrait img { aspect-ratio:1.45; }
 .md-guide .md-picker,.md-town { grid-template-columns:1fr; }
 .md-options { padding:1rem 0 0; border:0; border-top:1px solid #c59b96; }
 .md-guide .md-photo--phil { float:none; width:100%; margin:0 0 1.1rem; }
 .md-town img { aspect-ratio:3/2; }
 .md-town .md-photo--zelen img { object-position:50% 36%; }
 .md-guide .md-town .md-photo { margin:0; }
 .md-guide .md-note { grid-template-columns:minmax(0,1fr) 80px; }
 .md-compare td,.md-compare th { padding:.5rem .38rem; font-size:.94rem; }
}
@media(prefers-reduced-motion:no-preference) {
 .md-button,.md-switch a { transition:background-color .2s ease,color .2s ease; }
 .md-options article:not([hidden]),.md-note details[open] p { animation:md-unfold .3s ease-out; }
 @keyframes md-unfold { from {opacity:.4;transform:translateY(5px)} to {opacity:1;transform:none} }
}
