/* Post to the Shore (post-flow.js): one step per screen. On a phone it fills the screen; on a computer it's a card.
   Sizes are in em off one font size that follows the Settings text size, so a bigger text size grows the whole step
   and the screen still holds it (the body scrolls only if a step truly can't fit). */
.pf { position: fixed; z-index: 85; inset: 0; margin: auto; width: min(30em, calc(100vw - 24px)); height: min(46em, calc(100dvh - 24px));  /* centred by margin: the rise animation owns transform */
  display: grid; grid-template-rows: auto 1fr auto; font-size: calc(15px * var(--ui-scale, 1)); box-sizing: border-box; padding: .9em 1em;
  border: var(--panel); border-image: url("ui/panel_paper.png") 21 fill / 18px stretch; background: #f1e6cd; background-clip: padding-box; filter: drop-shadow(0 6px 14px rgba(20, 16, 10, .5)); animation: rise .3s ease-out; }
.pf[hidden] { display: none; }
@media (max-width: 600px) { .pf { margin: 0; width: 100vw; height: var(--vvh, 100dvh); padding: .8em .9em calc(.8em + env(safe-area-inset-bottom)); } }
body.posting .toast, body.posting #say { z-index: 95; }
.pf button { font-size: 1em; }
.pf input, .pf select, .pf textarea { font: 1em var(--type); width: 100%; box-sizing: border-box; padding: .45em .55em; background: #fffaf0; border: 2px solid var(--ink-soft); color: var(--ink); }
.pf input[type=checkbox] { width: auto; }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: .5em; min-height: 2.4em; }
.pf-dots { display: flex; gap: .35em; }
.pf-dots i { width: .6em; height: .6em; border-radius: 50%; background: rgba(87, 77, 64, .25); }
.pf-dots i.on { background: var(--ink); }
.pf-body { overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: .6em; padding: .2em .1em .6em; }
.pf-body h2 { margin: .2em 0 .1em; font: 400 1.75em/1.1 var(--sign); text-transform: uppercase; letter-spacing: .04em; }
.pf-body .fine { margin: 0; font-size: .87em; color: var(--ink-soft); }
.pf-big { font-size: 1.2em !important; padding: .55em .6em !important; }
.pf-line { display: flex; gap: .4em; align-items: stretch; }
.pf-mic { flex: none; width: 2.8em; font-size: 1.1em !important; }
.pf-mic.on { background: #f1c9a5; }
.pf-lbl { margin: .2em 0 0; font-weight: 700; font-size: .9em; }
.pf-inline { display: grid; gap: .2em; }
.pf-as { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5em; }
.pf-chips { margin: 0; gap: .35em; }
.pf-chips button { font-size: .93em; padding: .5em .7em; min-height: 2.6em; }
.pf-chips button[aria-pressed=true] { background: var(--ink); color: var(--cream); }
.pf-chips button.pf-off { opacity: .55; }
.pf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.pf-pair label { display: grid; gap: .2em; font-size: .87em; font-weight: 700; }
.pf-read { margin: .1em 0 0; padding: .5em .7em; background: rgba(143, 168, 81, .2); border-radius: 4px; font-weight: 700; }
.pf-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5em), 1fr)); gap: .5em; }
.pf-opts.pf-one { grid-template-columns: 1fr; }
.pf-opt { display: grid; gap: .15em; text-align: left; padding: .75em .8em; min-height: 3.4em; align-content: center; }
.pf-opt b { font-size: 1.02em; }
.pf-opt span { font-weight: 400; font-size: .85em; color: var(--ink-soft); }
.pf-opt[aria-pressed=true] { outline: 3px solid var(--ink); }
.pf-list button b { font-size: 1.35em; }
.pf-check { display: flex; align-items: center; gap: .5em; font-weight: 700; }
.pf-check input { width: 1.3em; height: 1.3em; }
.pf-small { justify-self: start; padding: .3em 0; }
.pf-nav { display: flex; align-items: center; gap: .6em; padding-top: .5em; border-top: 1px dashed rgba(87, 77, 64, .35); }
.pf-next { margin-left: auto; min-width: 8em; min-height: 2.9em; font-size: 1.05em !important; }
.pf-need { margin: 0; color: #8a2f1c; font-weight: 700; font-size: .92em; }
.pf-bad { outline: 3px solid #b5452a; }
.pf-photos { display: grid; gap: .5em; }
.pf-photos .post-photos { display: flex; gap: .5em; flex-wrap: wrap; }
.pf-thumb { padding: 0; position: relative; width: 5.5em; height: 5.5em; overflow: hidden; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-thumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: .7em; background: rgba(43, 38, 32, .75); color: #fff3e0; }
.pf-card { display: grid; gap: .1em; padding: .6em .7em; background: rgba(255, 250, 236, .7); border: 2px solid rgba(87, 77, 64, .4); border-radius: 4px; }
.pf-card img { width: 100%; max-height: 8em; object-fit: cover; border-radius: 3px; }
.pf-card h3 { margin: 0; font-size: 1.2em; }
.pf-card .post-type { margin: 0; font-size: .82em; color: var(--ink-soft); }
.pf-quiet { background: rgba(235, 232, 226, .7); }
.pf-row { display: grid; grid-template-columns: 4.2em 1fr auto; gap: .5em; align-items: baseline; text-align: left; padding: .5em .6em; font-weight: 400; }
.pf-row small { font-weight: 700; color: var(--ink-soft); }
.pf-row em { font-style: normal; text-decoration: underline; font-size: .85em; color: var(--ink-soft); }
.pf-price { margin: 0; font-size: .92em; }
.pf-price.pay { font-weight: 700; }
.pf-fix { display: flex; flex-wrap: wrap; gap: .5em; margin: 0; }
.pf-dups { margin: 0; padding: 0; list-style: none; display: grid; gap: .5em; }
.pf-dups li { padding: 0; }
.pf-dups .pf-opt { width: 100%; }
/* Post tab: draft, Fix it and the check-ins; messages */
.pf-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; background: rgba(143, 168, 81, .2); border-radius: 4px; }
.pf-banner span { flex: 1 1 12em; font-weight: 700; font-size: 14px; }
.pf-guess { display: grid; gap: 6px; }
.pf-guess .pf-line input { flex: 1; font: 15px var(--type); padding: 6px 8px; background: #fffaf0; border: 2px solid var(--ink-soft); }
.pf-conv { display: block; width: 100%; text-align: left; padding: 8px 4px; font-weight: 400; border: 0; border-bottom: 1px dashed rgba(87, 77, 64, .3); background: none; }
.pf-conv.new strong::after { content: " · new"; color: #8a2f1c; }
.pf-conv small { color: var(--ink-soft); }
.pf-thread { display: grid; gap: 6px; padding: 6px 0 10px; }
.pf-thread textarea, .pf-msg textarea { width: 100%; box-sizing: border-box; font: 15px var(--type); padding: 6px 8px; background: #fffaf0; border: 2px solid var(--ink-soft); }
.pf-bubble { margin: 0; padding: 6px 9px; border-radius: 6px; background: rgba(255, 250, 236, .8); max-width: 88%; display: grid; gap: 2px; }
.pf-bubble.me { justify-self: end; background: rgba(143, 168, 81, .25); }
.pf-bubble small { color: var(--ink-soft); font-size: 11px; }
.pf-msg { display: grid; gap: 6px; width: 100%; }
.pf-extra { display: grid; gap: 4px; margin-top: 8px; }
.pf-extra p { margin: 0; }
.pt-again { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-grid .pt-tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
/* short phones (and big text): tighter spacing so a step still fits; if it truly can't, only the middle scrolls and
   Back, Close and Next stay put */
@media (max-height: 720px) {
  .pf-body { gap: .45em; }
  .pf-body h2 { font-size: 1.45em; }
  .pf-chips button { min-height: 2.25em; padding: .38em .6em; }
  .pf-opt { min-height: 2.9em; padding: .55em .7em; }
  .pf-row { padding: .38em .5em; }
  .pf-card img { max-height: 4.5em; }
  .pf-read { padding: .35em .6em; }
}
/* Ask ShoreNav (ask.js): the same box, as a short conversation */
.ask .ask-title { font: 400 1.4em var(--sign); text-transform: uppercase; letter-spacing: .04em; }
.ask .pf-bubble { font-size: .95em; max-width: 92%; }
.ask .ask-a { display: grid; gap: .45em; }
.ask-btns { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.ask-list { margin: 0; padding: 0; }
.ask-list li { padding: 2px 0; }
.ask-nav input { flex: 1; min-width: 0; }
.ask-chips { margin: 0; }
.ask-row { display: flex; align-items: center; gap: .5em; }
.ask-row .pt-open { flex: 1; min-width: 0; }
.ask-call { flex: none; padding: .45em .9em; text-decoration: none; font-weight: 700; }
/* "I need…" on Explore's home (needs.js): big, plain buttons; the cards for right now under them */
.need-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5em), 1fr)); gap: 6px; margin: 6px 0; }
.need-btns button { min-height: 44px; font-size: 14px; text-align: center; }
.need-btns .need-easy { grid-column: 1 / -1; font-weight: 400; }
.need-now .now-card { display: grid; gap: 2px; text-align: left; padding: 8px 10px; }
.need-now .now-card span { font-size: 12px; color: var(--ink-soft); font-weight: 400; }
/* Easy mode: bigger buttons, Call first, one thing at a time */
html.easy .need-btns button { min-height: 56px; font-size: 17px; }
html.easy #card .primary-act, html.easy .ask-call { font-size: 18px; padding: 12px 16px; min-height: 52px; }
html.easy #card a[href^="tel:"] { order: -1; font-size: 18px !important; padding: 12px 16px; min-height: 48px; }
html.easy .home-sec .idea-chips { display: none; }
.read-aloud { display: block; width: 100%; margin: 4px 0 8px; font-size: 16px; padding: 10px; }
.first-lang { display: flex; gap: 6px; margin: 0 0 8px; }
.first-lang button { flex: 1; font-size: 13px; padding: 6px; }
