/* 1.0.651: quieter hierarchy, consistent controls and open paper surfaces. */
/* 1.0.657: visible boundaries between the three main areas; book extensions stay together. */
.moment-home #moment-main>.moment-intent{margin:0 0 56px;min-width:0}
.moment-home #moment-main>.moment-intent+.moment-intent{padding-top:24px;border-top:1px solid #bdc8b6}
.moment-home .moment-intent-heading{padding:0;margin:0 0 20px;border:0;border-radius:0;background:none}
.moment-home .moment-intent-heading h2{font-size:32px;font-weight:600;line-height:1.2;letter-spacing:-.45px;color:#29483e;text-wrap:pretty}
.moment-home .moment-intent-heading p{margin:8px 0 0;font-size:16px;line-height:1.5;color:#58645b}
.moment-home .moment-home-orientation{margin-bottom:24px}

/* Each offer keeps its image and atmosphere; equivalent actions share a shape. */
.moment-home #moment-main .moment-home-offers .moment-home-card:not(.moment-home-collection) .moment-button,
.moment-home #moment-breath-section #moment-breath-link,
.moment-home #moment-main .moment-weather-home-action{
 box-sizing:border-box;min-height:48px;padding:12px 17px;border:1px solid #294b44;
 border-radius:12px;background:#294b44;color:#fffdf7!important;
 font-family:var(--mm-sans);font-size:15px;font-weight:500;line-height:1.4;letter-spacing:0;box-shadow:none;
}
.moment-home #moment-main .moment-home-offers .moment-home-card:is(.moment-journey-card,.moment-waldraum-card) .moment-button,
.moment-home #moment-breath-section #moment-breath-link,
.moment-home #moment-main .moment-weather-home-action{
 background:#eee0bf;border-color:#eee0bf;color:#243f38!important;
}
.moment-home #moment-main .moment-home-offers .moment-home-card:not(.moment-home-collection) .moment-button:focus-visible,
.moment-home #moment-breath-section #moment-breath-link:focus-visible{
 outline:3px solid #8b7246;outline-offset:4px;
}
@media(hover:hover){
 .moment-home #moment-main .moment-home-offers .moment-home-card:not(.moment-home-collection) .moment-button:hover{background:#203f38;border-color:#203f38}
 .moment-home #moment-main .moment-home-offers .moment-home-card:is(.moment-journey-card,.moment-waldraum-card) .moment-button:hover,
 .moment-home #moment-breath-section #moment-breath-link:hover{background:#f7ecd2;border-color:#f7ecd2;color:#243f38!important}
}

/* One generous preview; the full motif grid opens explicitly. */
.moment-home #moment-breath-section #moment-motif-details{margin:10px 0 2px;border:0;padding:0}
.moment-home #moment-breath-section .moment-motif-summary{
 display:flex;align-items:center;gap:16px;min-height:84px;padding:4px 0;list-style:none;cursor:pointer;
}
.moment-motif-summary::-webkit-details-marker{display:none}
.moment-home #moment-breath-section #moment-motif-preview{
 flex:none;display:block;width:76px;height:76px;object-fit:cover;border:1px solid #e3d1a466;border-radius:12px;
}
.moment-home #moment-breath-section .moment-motif-current{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.moment-home #moment-breath-section .moment-motif-label{margin:0;color:#c8d5cd;font-size:13px;line-height:1.5}
.moment-home #moment-breath-section #moment-selected-motif{color:#fffdf7;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.moment-home #moment-breath-section .moment-motif-change{display:flex;align-items:center;gap:8px;color:#eee0bf;font-size:14px;line-height:1.5;padding:3px 0}
.moment-home #moment-breath-section #moment-motif-details[open] .moment-motif-change>span{transform:rotate(180deg)}
.moment-home #moment-breath-section .moment-motif-summary:focus-visible{outline:2px solid #eee0bf;outline-offset:5px;border-radius:12px}
.moment-home #moment-breath-section .place-visual-choice{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible;max-height:none;padding:8px 0 12px;margin:0;
 scroll-snap-type:none;mask-image:none;-webkit-mask-image:none;
}
.moment-home #moment-breath-section .place-visual-choice::before,
.moment-home #moment-breath-section .place-visual-choice::after{display:none}
.moment-home #moment-breath-section .place-visual-choice button{
 display:flex;flex-direction:column;gap:7px;align-items:stretch;justify-content:flex-start;min-width:0;width:100%;max-width:none;flex:none;
 min-height:44px;height:auto;aspect-ratio:auto;padding:6px;border:1px solid #a9b9a959;border-radius:10px;background:#183a34;color:#fffdf7;
}
.moment-home #moment-breath-section .place-visual-choice button[aria-pressed=true]{padding:5px;border:2px solid #eee0bf;background:#294b44}
.moment-home #moment-breath-section .place-visual-choice .place-option-image{width:100%;height:auto;aspect-ratio:1;min-width:0;border:0;border-radius:6px}
.moment-home #moment-breath-section .place-visual-choice .place-option-label{display:block;position:static;width:auto;height:auto;max-width:none;overflow:visible;clip:auto;clip-path:none;white-space:normal;font-size:13px;line-height:1.35;text-align:center;color:inherit;padding:0}
.moment-home #moment-breath-section .place-selected{display:none}
.moment-home #moment-breath-section #placeManage{color:#eee0bf}
.moment-home #moment-breath-section #placeStatus{color:#fffdf7}
.moment-home #moment-breath-section .moment-breath-config{margin-top:12px}

/* The companion actions sit beneath, outside the cloth cover and its hit area. */
.moment-home #moment-main .moment-book-group{grid-column:1/-1;min-width:0}
.moment-home #moment-main .moment-book-group #moment-helps-home{margin:0 8px 16px 0}
.moment-home .moment-book-group>.moment-preserve-actions{display:flex;flex-wrap:wrap;gap:0 22px;padding:0 4px;margin:0}
.moment-home .moment-book-group>.moment-preserve-actions button{
 min-height:44px;padding:10px 0;background:transparent;color:#35544a!important;font-family:var(--mm-sans);font-size:14px;font-weight:400;line-height:1.5;text-align:left;white-space:normal;
}

/* A first page without unused search controls or zero counters. */
#moment-helps .moment-book-welcome{padding:clamp(30px,7vh,72px) 0 36px;max-width:31rem;margin:0 auto;text-align:left}
#moment-helps .moment-book-welcome-mark{display:block;color:#8d7955;font-size:30px;margin-bottom:24px;line-height:1}
#moment-helps .moment-book-welcome h3{font-family:var(--book-serif);font-size:clamp(28px,7vw,36px);font-weight:400;line-height:1.25;letter-spacing:-.4px;color:var(--book-ink);margin:0 0 18px}
#moment-helps .moment-book-welcome p{font-family:var(--mm-sans);font-size:16px;line-height:1.7;color:var(--book-secondary);margin:0 0 30px}
#moment-helps #moment-helps-first-entry{white-space:normal;text-align:left;min-height:48px;padding:13px 17px;border-radius:10px;font-size:15px;line-height:1.5}
#moment-helps .moment-book-tab-count:empty{display:none}
#moment-helps .moment-book-chapter[hidden],#moment-helps .moment-book-search[hidden],#moment-helps .moment-book-tabs[hidden],#moment-helps .moment-book-welcome[hidden]{display:none!important}

/* Writing sits directly on the page; optional tools remain easy to reach. */
#moment-helps #moment-helps-text{
 border:0;border-bottom:1px solid #cfd7cb;border-radius:0;box-shadow:none;outline:none;
 background:repeating-linear-gradient(transparent 0 35px,#d5dccb52 35px 36px),var(--book-sheet);
 background-origin:content-box;background-clip:padding-box;
 padding:12px 0;min-height:194px;font-family:var(--book-serif);font-size:21px;line-height:36px;color:var(--book-ink);
}
#moment-helps #moment-helps-text:focus{border-bottom-color:#678777;box-shadow:0 1px 0 #678777}
#moment-helps #moment-helps-writing-hint{margin:5px 0 8px}
#moment-helps .moment-book-editor-fields>.moment-book-media-tools{display:flex;flex-wrap:wrap;gap:4px 12px;margin:12px 0 10px;padding:0}
#moment-helps .moment-book-media-tools .moment-button{
 flex:1;display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:44px;padding:8px 5px;
 border:0;border-radius:8px;background:transparent;color:var(--book-petrol)!important;box-shadow:none;font-size:15px;line-height:1.4;
}
#moment-helps .moment-book-media-tools svg{flex:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#moment-helps .moment-book-marks{border:0;padding:4px 0 0;margin:12px 0 0}
#moment-helps .moment-book-marks legend{font-size:13px;color:var(--book-secondary);padding:0;margin:0 0 3px}
#moment-helps .moment-book-marks label{min-height:44px;gap:10px;font-size:15px;line-height:1.45}
#moment-helps .moment-book-marks input{width:18px;height:18px;accent-color:var(--book-petrol)}
#moment-helps #moment-helps-title-details{border:0;margin-top:12px;padding-top:0}
#moment-helps #moment-helps-title-details>summary{font-size:14px;font-weight:400;min-height:44px;color:var(--book-secondary)}
#moment-helps .moment-helps-save-bar{border-top:1px solid #dbe0d4;box-shadow:none;padding-top:12px}
#moment-helps #moment-helps-stop{width:100%;margin:8px 0 12px;min-height:48px}
#moment-helps #moment-helps-save{border-radius:10px}
#moment-helps .moment-book-media-tools .moment-button:focus-visible{outline:2px solid var(--book-petrol);outline-offset:2px}
@media(max-width:700px){
 .moment-home .moment-intent-heading{padding:0;margin-bottom:20px}
 .moment-home .moment-intent-heading h2{font-size:30px}
 .moment-home #moment-main>.moment-intent{margin-bottom:48px}
 .moment-home .moment-home-orientation{margin-bottom:23px}
}
@media(max-width:359px){
 .moment-home .moment-intent-heading h2{font-size:28px}
 .moment-home #moment-breath-section .moment-motif-summary{gap:12px}
 .moment-home #moment-breath-section #moment-motif-preview{width:68px;height:68px}
 #moment-helps .moment-book-welcome{padding-top:30px}
 #moment-helps .moment-book-media-tools .moment-button{font-size:14px;gap:7px}
}

/* 1.0.658: compact entry and a clear current section, with 44px touch targets. */
.moment-home .moment-home-question{margin:20px 0 14px}
.moment-home #moment-appointment-card{margin:0 0 8px;padding:10px 14px;border-radius:14px}
.moment-home #moment-appointment-card .moment-appointment-card-details{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px}
.moment-home #moment-appointment-card .moment-appointment-card-heading{flex:1 1 auto;gap:10px}
.moment-home #moment-appointment-card .moment-appointment-card-when{flex-wrap:nowrap;column-gap:6px}
.moment-home #moment-appointment-card .moment-appointment-card-when p{font-size:14px;line-height:1.4;white-space:nowrap}
.moment-home #moment-appointment-card #moment-appointment-card-time::before{margin-right:6px}
.moment-home #moment-appointment-card .moment-appointment-links{width:auto;flex:0 0 auto;gap:0 12px;margin-left:0}
.moment-home #moment-appointment-card .moment-appointment-links button{font-size:13px;min-height:44px;padding:8px 0;color:#735d39}
.moment-home #moment-appointment-card #moment-appointment-card-status:empty{display:none}
.moment-home .moment-home-orientation{gap:6px 16px;margin-bottom:18px}
.moment-home .moment-book-shortcut{min-height:44px;padding:7px 12px;font-size:14px;border-radius:10px}
.moment-home .moment-intent-links{gap:4px;margin-top:6px;justify-content:space-between}
.moment-home .moment-intent-links a{justify-content:center;min-height:44px;box-sizing:border-box;padding:8px 12px;border-radius:10px;color:#676c61;font-size:14px;text-decoration:none;line-height:1.4}
.moment-home .moment-intent-links a[aria-current="location"]{color:#29483e;background:#e4e9dc;font-weight:600;box-shadow:inset 0 -2px #788c72}
.moment-home .moment-intent-links a:hover{color:#29483e;background:#edf0e7}
.moment-home .moment-intent-heading{margin-bottom:16px}
.moment-home .moment-intent-heading h2{font-size:27px;font-weight:400;line-height:1.25;letter-spacing:-.3px}
.moment-home .moment-intent-heading p{margin-top:5px;font-size:15px}
@media(max-width:700px){
 .moment-home .moment-home-orientation{display:block;margin-bottom:18px}
 .moment-home .moment-intent-links a{flex:1;padding-inline:8px}
 .moment-home .moment-intent-heading h2{font-size:26px}
}
@media(max-width:359px){
 .moment-home #moment-appointment-card{padding:8px 10px}
 .moment-home #moment-appointment-card .moment-appointment-card-heading{gap:8px}
 .moment-home #moment-appointment-card .moment-appointment-links{margin-left:38px}
 .moment-home .moment-intent-heading h2{font-size:25px}
}
