/* Contribution editors on desktop (≥1024px): Share a journey and Add a place. The phone parts (share-flow.css) become a row
   of part cards with the open part below them, a page bar with the ⋯ menu, a cover header and a sticky bottom bar.
   share-flow.mjs adds body.sf-wide and groups each part's fields into .sf-cols / .sf-col; page stylesheets arrange the fields. */
@media all{
 html body.share-flow.sf-wide{--sf-field:#f5fbfd;--sf-bar:#f2f8fa;--sf-gutter:max(32px,calc((100% - 1216px) / 2))}
 html[data-theme=dark] body.share-flow.sf-wide{--sf-field:#1b272b;--sf-bar:#1d292d}
 html body.share-flow.sf-wide main:is(.cj-main,.add-main){padding:0!important}
 html body.share-flow.sf-wide .page-footer{display:block!important}

 /* Page bar */
 html body.share-flow.sf-wide .sf-bar{grid-template-columns:36px minmax(0,1fr) auto 40px;gap:12px;height:60px;padding:0 var(--sf-gutter);background:var(--sf-bar)}
 html body.share-flow.sf-wide .sf-bar>:is(button,a){min-height:40px}
 html body.share-flow.sf-wide .sf-title{font-size:20px!important}
 html body.share-flow.sf-wide .sf-bar>.sf-saved{font-size:14px}
 html body.share-flow.sf-wide .sf-bar>.sf-saved.is-saved{font-size:14px;color:var(--sf-ink2)}
 html body.share-flow.sf-wide .sf-more span{font-size:20px}
 html body.share-flow.sf-wide .sf-menu{top:54px;right:var(--sf-gutter);width:280px}

 /* Cover header */
 html body.share-flow.sf-wide .sf-hero{height:190px;margin:24px var(--sf-gutter) 0;border-radius:20px;background:#2a3d42}
 html body.share-flow.sf-wide .sf-hero::after{background:linear-gradient(180deg,rgba(8,14,16,.05) 30%,rgba(8,14,16,.8))}
 html body.share-flow.sf-wide .sf-hero.is-empty{background:linear-gradient(135deg,#0b5f6e,#123b61)}
 html body.share-flow.sf-wide .sf-hero-text{left:28px;right:28px;bottom:22px;gap:12px}
 html body.share-flow.sf-wide .sf-hero-title{font-size:30px;line-height:1.15;text-shadow:0 1px 6px rgba(0,0,0,.35);-webkit-line-clamp:1}
 html body.share-flow.sf-wide .sf-hero-progress{gap:14px;font-size:14px}
 html body.share-flow.sf-wide .sf-hero-progress .sf-bar-track,html body.share-flow.sf-wide .sf-hero-progress .sf-bar-track>span{height:8px;border-radius:4px}
 html body.share-flow.sf-wide .sf-status{margin:0 var(--sf-gutter)}
 html body.share-flow.sf-wide :is(.sf-note:not([hidden]),.sf-status>[role=status]:not([hidden])){margin:16px 0 0;font-size:14px}

 /* Part cards: one row of five; the open part spans the row below. */
 html body.share-flow.sf-wide .sf-parts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 var(--sf-gutter);padding:16px 0 32px;scroll-margin-top:72px}
 html body.share-flow.sf-wide .sf-part{display:contents}
 html body.share-flow.sf-wide .sf-part-heading{min-width:0}
 html body.share-flow.sf-wide .sf-part-toggle{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;height:100%;min-height:0;padding:16px;border:1.5px solid var(--sf-line);border-radius:18px;background:var(--sf-surface)}
 html body.share-flow.sf-wide .sf-part-toggle:hover{border-color:var(--sf-ctl)}
 html body.share-flow.sf-wide .sf-part.is-open .sf-part-toggle{background:var(--sf-tint);border-color:var(--sf-accent)}
 html body.share-flow.sf-wide .sf-part-toggle .sf-dot{width:34px;height:34px;font-size:14px}
 html body.share-flow.sf-wide .sf-part-toggle .sf-part-text{gap:6px;width:100%}
 html body.share-flow.sf-wide .sf-part-toggle .sf-part-title{font-size:16px}
 html body.share-flow.sf-wide .sf-part-toggle .sf-part-title small{position:absolute;top:28px;right:16px;font-size:10px;letter-spacing:.08em}
 html body.share-flow.sf-wide .sf-part-toggle .sf-part-summary{font-size:12px;line-height:1.45;color:var(--sf-ink2);-webkit-line-clamp:2}
 html body.share-flow.sf-wide .sf-part-cta{display:none!important}
 /* The bottom bar's Next replaces Done unless a page keeps it (body.sf-keep-done). */
 html body.share-flow.sf-wide:not(.sf-keep-done) .sf-done{display:none}
 html body.share-flow.sf-wide .sf-done{order:1}
 html body.share-flow.sf-wide .sf-part.is-open>.sf-part-body{grid-column:1/-1;grid-row:2;gap:24px;margin-top:4px;padding:26px 28px 28px;border:1px solid var(--sf-line);border-radius:20px;background:var(--sf-surface)}
 html body.share-flow.sf-wide .sf-panel-head{display:flex;align-items:center;gap:18px}
 html body.share-flow.sf-wide .sf-panel-head .sf-dot{flex:none;width:48px;height:48px;font-size:20px}
 html body.share-flow.sf-wide .sf-part.is-done .sf-panel-head .sf-dot{background:var(--sf-accent);border-color:var(--sf-accent);color:var(--sf-accent-ink)}
 html body.share-flow.sf-wide .sf-panel-head .sf-part-text{gap:3px}
 html body.share-flow.sf-wide .sf-panel-head .sf-part-title{font-size:20px}
 html body.share-flow.sf-wide .sf-part-body .sf-panel-head .sf-part-title small{font:700 13px/1 Arial,Helvetica,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--sf-muted)}
 html body.share-flow.sf-wide .sf-panel-head .sf-part-summary{font-size:14px;color:var(--sf-ink2);-webkit-line-clamp:2}

 /* Columns */
 html body.share-flow.sf-wide .sf-cols{display:grid;gap:20px;align-items:start;min-width:0}
 html body.share-flow.sf-wide .sf-col{display:flex;flex-direction:column;gap:20px;min-width:0}
 html body.share-flow.sf-wide .sf-col>.sf-label+*{margin-top:-12px}
 html body.share-flow.sf-wide .sf-with-aside{grid-template-columns:minmax(0,1fr) clamp(260px,24vw,340px);gap:32px}
 html body.share-flow.sf-wide .sf-aside{position:sticky;top:76px}
 html body.share-flow.sf-wide .sf-halves{grid-template-columns:repeat(2,minmax(0,1fr))}

 /* Fields */
 html body.share-flow.sf-wide .sf-part-body .sf-label,html body.share-flow.sf-wide .sf-part-body legend,html body.share-flow.sf-wide .sf-part-body label>span:first-child,html body.share-flow.sf-wide .sf-part-body :where(label){font-size:13px!important}
 html body.share-flow.sf-wide .sf-part-body :where(label){gap:8px}
 html body.share-flow.sf-wide .sf-part-body :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,.ts-select-trigger){min-height:48px;padding:0 14px;background:var(--sf-field)!important}
 html body.share-flow.sf-wide .sf-part-body textarea{padding:12px 14px;background:var(--sf-field)!important;font-size:15px;line-height:1.5}
 html body.share-flow.sf-wide .sf-field{position:relative;display:flex;flex-direction:column}
 html body.share-flow.sf-wide .sf-part-body .sf-field>output{position:absolute;top:0;right:0;margin:0;font-size:12px;line-height:19px}
 html body.share-flow.sf-wide .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid,.sf-choices){gap:8px}
 html body.share-flow.sf-wide .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid)>label,html body.share-flow.sf-wide .sf-part-body .sf-chip{min-height:38px;padding:0 16px;font-size:14px!important;white-space:nowrap}
 /* The dark theme paints the step editors' choice text; the chip itself carries the state here. */
 html body.share-flow.sf-wide .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid)>label>span{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:inherit!important}
 html body.share-flow.sf-wide .sf-part-body :is(label:has(>[name=consent]),.add-consent){grid-template-columns:28px minmax(0,1fr);gap:14px;padding:16px;border-radius:14px;background:var(--sf-field);color:var(--sf-ink)!important;font-size:15px!important;line-height:1.5!important;cursor:pointer}
 html body.share-flow.sf-wide .sf-part-body :is(label:has(>[name=consent]),.add-consent)>input{width:24px;height:24px}

 /* Side panels beside the fields */
 html body.share-flow.sf-wide .sf-aside-panel{display:flex;flex-direction:column;gap:12px}

 /* Bottom bar */
 html body.share-flow.sf-wide .sf-footer{position:sticky;bottom:0;display:flex;align-items:center;gap:16px;height:84px;box-sizing:border-box;padding:0 var(--sf-gutter);background:var(--sf-bar)}
 html body.share-flow.sf-wide .sf-footer>.sf-nav{flex:none;height:44px;min-height:44px;padding:0 16px;border:1px solid var(--sf-ctl);border-radius:12px;background:none;color:var(--sf-ink);font:700 15px/1 Arial,Helvetica,sans-serif}
 html body.share-flow.sf-wide .sf-footer>.sf-nav:disabled{opacity:.4}
 html body.share-flow.sf-wide .sf-progress{flex:1;display:flex;align-items:center;gap:10px;min-width:0;padding-left:8px;font:700 14px/1 Arial,Helvetica,sans-serif;color:var(--sf-ink);white-space:nowrap}
 html body.share-flow.sf-wide .sf-progress-track{flex:none;width:120px;height:6px;border-radius:3px;background:var(--sf-line);overflow:hidden}
 html body.share-flow.sf-wide .sf-progress-track>span{display:block;height:6px;background:var(--sf-accent);transition:width .2s}
 html body.share-flow.sf-wide .sf-footer>:is(.sf-preview,.sf-publish){height:52px;min-height:52px;padding:0 20px;font-size:17px}
 html body.share-flow.sf-wide .sf-footer>.sf-preview{flex:0 0 calc((440px - 12px) / 2.6);margin-left:auto}
 html body.share-flow.sf-wide .sf-footer>.sf-publish{flex:0 0 calc((440px - 12px) * 1.6 / 2.6);margin-left:-4px}
}
