/* OnDuhGo Twin — the shop's Open/Closed switch (shopfront.js, docs/shopfront.md). Brand colours and Baloo 2 only. */
.sfPill { position: relative; z-index: 5; display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; box-sizing: border-box;
  padding: 5px 6px 5px 14px; border-radius: 999px; border: 2px solid #4A2A18; background: #F7E7C6; color: #2B2118; cursor: pointer; text-align: left;
  font: 600 13px/1.25 "Baloo 2", "Work Sans", "Segoe UI", sans-serif; box-shadow: 0 4px 14px rgba(43,33,24,.35); max-width: calc(100vw - 24px);
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .12s ease; }
.sfPill:hover { box-shadow: 0 6px 18px rgba(43,33,24,.45); }
.sfPill:active { transform: translateY(1px); }
.sfPill .sfTx { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.sfPill b { font-weight: 800; font-size: 15px; }
.sfPill .sfTx span { color: rgba(43,33,24,.75); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sfPill .sfDot { width: 12px; height: 12px; border-radius: 50%; background: #C89B6C; flex: none; }
.sfPill .sfAct { flex: none; margin-left: auto; padding: 4px 14px; border-radius: 999px; font-style: normal; font-weight: 800; font-size: 13px; letter-spacing: .04em;
  background: #4A2A18; color: #FFFBF2; }
.sfPill.sfOpen { background: #E38361; border-color: #4A2A18; }
.sfPill.sfOpen .sfTx span { color: #2B2118; }
.sfPill.sfOpen .sfDot { background: #FFFBF2; box-shadow: 0 0 0 3px rgba(255,251,242,.45); }
.sfPill.sfClosed .sfDot { background: #4A2A18; }
.sfPill.sfClosed .sfAct { background: #E38361; color: #2B2118; }
.sfPill:focus-visible { outline: 3px solid #FFFBF2; outline-offset: 2px; box-shadow: 0 0 0 6px #4A2A18; }
@media (prefers-reduced-motion: no-preference) { .sfPill.sfOpen .sfDot { animation: sfPulse 2.4s ease-in-out infinite; } }
@keyframes sfPulse { 50% { box-shadow: 0 0 0 6px rgba(255,251,242,.15); } }

/* desktop: in the caption band under the city, just above the dock; the ticker keeps the rest of the band */
.sfPill.sfDock { position: fixed; right: 14px; bottom: 6px; z-index: 17; }
html:not(.m-ui) body.dp .sfPill.sfDock { bottom: 82px; }
html:not(.m-ui) body.sf-on .ticker { min-height: 56px; display: flex; align-items: center; padding-right: calc(var(--sf-w, 260px) + 30px) !important; box-sizing: border-box; }
html:not(.m-ui) body.dp.sf-on .timeline { bottom: 140px; }
body.present .sfPill, body.film .sfPill, body.shorts .sfPill { display: none; }

/* phone: the first full-width row under the city */
html.m-ui #mInfo > .sfPill { display: flex; width: 100%; max-width: none; min-height: 48px; box-shadow: none; padding-left: 16px; }
html.m-ui #mInfo > .sfPill .sfTx { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
html.m-ui #mInfo > .sfPill .sfTx span { display: block; font-size: 12px; max-width: 100%; }
html.m-ui #mInfo > .sfPill .sfAct { padding: 7px 18px; font-size: 14px; }

.sfPill.sfFloat { position: fixed; left: 12px; bottom: 12px; z-index: 9000; }
.sfPanel { position: fixed; right: 14px; bottom: 146px; z-index: 9001; width: min(400px, calc(100vw - 28px)); max-height: calc(100vh - 170px); overflow: auto;
  padding: 14px 16px 16px; border-radius: 16px; border: 2px solid #4A2A18; background: #FFFBF2; color: #2B2118;
  font: 500 14px/1.5 "Baloo 2", "Work Sans", "Segoe UI", sans-serif; box-shadow: 0 10px 34px rgba(43,33,24,.45); }
.sfPanel[hidden] { display: none; }
.sfPanel p { margin: 6px 0; }
.sfPanel h4 { margin: 14px 0 4px; font-size: 15px; font-weight: 800; color: #4A2A18; }
.sfPanel a { color: #4A2A18; font-weight: 700; }
.sfHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sfHead b { font-size: 17px; font-weight: 800; color: #4A2A18; }
.sfX { border: 0; background: transparent; color: #4A2A18; font: 700 24px/1 "Baloo 2", sans-serif; cursor: pointer; padding: 0 4px; }
.sfMuted { color: rgba(43,33,24,.7); font-size: 13px; }
.sfWarn { padding: 6px 10px; border-left: 3px solid #E38361; background: rgba(227,131,97,.12); font-weight: 600; }
.sfNote { padding: 6px 10px; border-radius: 10px; background: #F7E7C6; font-weight: 600; font-size: 13px; }
.sfBtn { display: inline-block; min-height: 40px; margin: 8px 8px 0 0; padding: 6px 14px; border-radius: 12px; border: 2px solid #4A2A18; background: #F7E7C6; color: #2B2118;
  font: 700 14px "Baloo 2", "Work Sans", sans-serif; cursor: pointer; }
.sfBtn.sfPrimary { background: #E38361; border-color: #E38361; color: #2B2118; font-weight: 800; }
.sfBtn[disabled] { opacity: .55; cursor: wait; }
.sfForm { margin-top: 4px; }
.sfLbl { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; font-weight: 700; color: #4A2A18; }
.sfPanel input[type=text], .sfPanel input[type=number], .sfPanel input[type=datetime-local] { padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(74,42,24,.55);
  background: #FFFBF2; color: #2B2118; font: 600 14px "Baloo 2", sans-serif; width: 100%; box-sizing: border-box; }
.sfSpot { margin: 8px 0; padding: 6px 10px 10px; border: 1px solid rgba(74,42,24,.25); border-radius: 12px; }
.sfSpot legend { font-weight: 700; color: #4A2A18; padding: 0 4px; }
.sfSpot label { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: 600; }
.sfSpot input[type=radio] { accent-color: #E38361; width: 17px; height: 17px; }
.sfSpot #sfPaste { margin: 2px 0 4px 25px; width: calc(100% - 25px); }
.sfMore { margin-top: 12px; border-top: 1px solid rgba(74,42,24,.16); padding-top: 8px; }
.sfMore summary { cursor: pointer; font-weight: 700; color: #4A2A18; }
.sfRow { display: flex; flex-wrap: wrap; }
#sfBasePaste { margin-top: 8px; }

.sfX { min-width: 44px; min-height: 44px; }
.sfPanel input[type=radio] + * , .sfSpot label { min-height: 32px; }
.sfBtn:focus-visible, .sfX:focus-visible, .sfMore summary:focus-visible { outline: 3px solid #E38361; outline-offset: 2px; }
html.m-ui .sfPanel { left: 12px; right: 12px; width: auto; top: auto; bottom: calc(var(--m-tabs, 62px) + 12px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 140px); }
@media (max-width: 640px) {
  html:not(.m-ui) .sfPill .sfTx span { display: none; }
  html:not(.m-ui) .sfPanel { left: 12px; right: 12px; width: auto; }
}

/* the website city editor (city.js, docs/public-city.md) */
.cityList { margin: 4px 0 8px; padding-left: 18px; }
.cityList li { margin: 4px 0; }
.cityLink { border: 0; padding: 0; background: none; color: #4A2A18; font: 700 13px "Baloo 2", "Work Sans", sans-serif; text-decoration: underline; text-decoration-color: #E38361; cursor: pointer; }
.cityPoll { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: #F7E7C6; }
.cityPanel textarea { width: 100%; box-sizing: border-box; font: inherit; border: 2px solid #C89B6C; border-radius: 10px; padding: 6px 8px; background: #FFFBF2; color: #2B2118; }
.sfChk { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 600; }
