/* ═══════════════════════════════════════════════════════════ */
/*  Extra food today: /extra-food/ and /extra-food/post/      */
/*  "Day into night". Loaded after lists.min.css (the band,   */
/*  sections and chips) and uses brand.css tokens. A post is  */
/*  a card with a lantern bar; the empty state is an honest   */
/*  panel; the form is the guide's own 52px fields and pills. */
/* ═══════════════════════════════════════════════════════════ */
.xf-post [hidden],.xf-now [hidden]{display:none!important}
.xf-loading,.xf-noscript{margin:0 0 12px;font:400 16px/1.55 var(--f-ui);color:var(--muted)}
.xf-summary{margin:0 0 16px;font:500 16px/1.55 var(--f-ui);color:var(--ink)}

/* ── Buttons, and links that act like buttons: 48px and 44px targets ── */
.xf-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 26px;
  font:650 16px/1.2 var(--f-ui);text-align:center;text-decoration:none;
  color:var(--on-accent);background:var(--accent-fill);border:1px solid var(--accent-edge);border-radius:12px;cursor:pointer;
  box-shadow: none;
  transition:background-color .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease)}
.xf-btn:hover{background:var(--accent-hover)}
.xf-btn:focus-visible,.xf-act:focus-visible,.xf-linkbtn:focus-visible,.xf-keep summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.xf-btn[disabled]{opacity:.6;cursor:default}
.xf-btn--quiet{color:var(--ink);background:transparent;border-color:var(--line-strong);box-shadow:none}
.xf-btn--quiet:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);border-color:var(--ink)}
.xf-linkbtn,.xf-act,.xf-empty a,.xf-status a,.xf-keep summary{display:inline-flex;align-items:center;min-height:var(--control-min);padding:0;margin:0 16px 0 0;
  font:600 15px/1.2 var(--f-ui);color:var(--ink);background:none;border:0;cursor:pointer;
  text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:.22em;transition:text-decoration-color .16s var(--ease)}
.xf-linkbtn:hover,.xf-act:hover,.xf-empty a:hover,.xf-status a:hover,.xf-keep summary:hover{text-decoration-color:var(--accent)}

/* ── A post: a card with a lantern bar ── */
.xf-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.xf-card{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:22px 22px 18px 26px;border-radius:0;
  border:1px solid var(--line);background:var(--surface);overflow-wrap:anywhere;scroll-margin-top:90px}
.xf-card::before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:4px;border-radius:0 4px 4px 0;background:var(--accent-fill)}
.xf-card p,.xf-card dl{margin:0}
.xf-card-head{display:flex;flex-direction:column;gap:2px}
.xf-card-name{margin:0;font: 800 30px/1.05 var(--f-serif);color:var(--ink)}
.xf-card-name a{display:inline-flex;align-items:center;min-height:var(--control-min);margin:-8px 0;color:var(--ink);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:.16em;transition:text-decoration-color .16s var(--ease)}
.xf-card-name a:hover{text-decoration-color:currentColor}
.xf-card-town{font:650 12px/1.3 var(--f-ui);letter-spacing: 0;text-transform: none;color:var(--muted)}
.xf-card-what{max-width:40em;font:400 18px/1.5 var(--f-ui);color:var(--ink)}
.xf-card-offer{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font:600 15px/1.4 var(--f-ui)}
.xf-tag{color:var(--muted)}
.xf-tag--free{color:var(--accent);font-weight:700}
.xf-card-price{color:var(--ink);font-variant-numeric:lining-nums}
.xf-card-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;font:400 15px/1.45 var(--f-ui)}
.xf-card-facts dt{color:var(--muted)}
.xf-card-facts dd{margin:0;color:var(--ink)}
.xf-card-until{font:650 16px/1.4 var(--f-ui);color:var(--accent);font-variant-numeric:lining-nums tabular-nums}
.xf-card-where{display:flex;flex-direction:column;gap:4px}
.xf-card-addr{font:400 15px/1.45 var(--f-ui);color:var(--muted)}
.xf-card-actions{display:flex;flex-wrap:wrap}
.xf-card-small{font:400 14px/1.5 var(--f-ui);color:var(--muted)}
.xf-card--target{border-color:var(--accent-edge);box-shadow:inset 0 0 0 1px var(--accent-edge)}
.xf-card:focus{outline:none}
.xf-card:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@media (min-width:1080px){.xf-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ── Nothing posted: an honest panel ── */
.xf-empty{position:relative;max-width:46rem;padding:24px;border-radius:12px;border:1px solid var(--line);background:var(--surface)}
/* The steaming bowl from the icon set, on a small tile, above the words. */
.xf-empty::before{content:"";display:block;width:52px;height:52px;margin-bottom:18px;border-radius:12px;background:color-mix(in srgb,var(--accent) 13%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 32%,transparent)}
.xf-empty::after{content:"";position:absolute;left:38px;top:38px;width:24px;height:24px;background:var(--accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.25h13v2.75a4.5 4.5 0 0 1-4.5 4.5H8A4.5 4.5 0 0 1 3.5 15Z'/%3E%3Cpath d='M16.5 13.5h4.25'/%3E%3Cpath d='M7 9.5c.9-1.6-.9-2.6 0-4.5M10 9.5c.9-2.1-.9-3.4 0-6M13 9.5c.9-1.6-.9-2.6 0-4.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.25h13v2.75a4.5 4.5 0 0 1-4.5 4.5H8A4.5 4.5 0 0 1 3.5 15Z'/%3E%3Cpath d='M16.5 13.5h4.25'/%3E%3Cpath d='M7 9.5c.9-1.6-.9-2.6 0-4.5M10 9.5c.9-2.1-.9-3.4 0-6M13 9.5c.9-1.6-.9-2.6 0-4.5'/%3E%3C/svg%3E") center/contain no-repeat}

.xf-empty p{margin:0 0 12px;font:400 16px/1.6 var(--f-ui);color:var(--muted)}
.xf-empty p:last-child{margin-bottom:0}
.xf-empty-title{font: 750 clamp(21px,1rem + .5vw,26px)/1.15 var(--f-serif)!important;color:var(--ink)!important}
.xf-empty a{display:inline;min-height:0;margin:0;padding:12px 0;color:var(--ink)}

/* ── How it works: two panels ── */
.xf-how{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px}
.xf-how-col{padding:24px 24px 26px;border-radius:12px;border:1px solid var(--line);background:var(--surface)}
.xf-how-col .ix-h3{margin-top:0;margin-bottom:14px}
.xf-how-col .ix-about-list{font-size:16px}
.xf-how-cta{margin:16px 0 0}

/* ── The post form ── */
.xf-form{display:flex;flex-direction:column;align-items:flex-start;gap:24px;max-width:46rem;margin-top:8px}
.xf-field{display:flex;flex-direction:column;gap:8px;align-self:stretch;min-width:0;margin:0;padding:0;border:0}
.xf-label{display:flex;justify-content:space-between;gap:8px;font:650 15px/1.35 var(--f-ui);color:var(--ink)}
legend.xf-label{padding:0;margin:0 0 8px}
.xf-optional,.xf-count{font-weight:500;color:var(--muted)}
.xf-hint{margin:0;font:400 14px/1.45 var(--f-ui);color:var(--muted)}
.xf-input{width:100%;min-width:0;min-height:52px;padding:12px 16px;font:500 17px/1.4 var(--f-ui);
  color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;box-sizing:border-box;transition:border-color .16s var(--ease)}
.xf-input::placeholder{color:var(--placeholder);opacity:1}
.xf-input:hover{border-color:var(--ink)}
.xf-input:focus{border-color:var(--ink);outline:3px solid var(--focus);outline-offset:2px}
.xf-input[aria-invalid="true"]{border-color:var(--error);border-width:2px}
.xf-textarea{resize:vertical;min-height:110px}
.xf-time{max-width:12rem}
/* Free or a lower price: two pills; the chosen one fills amber. */
.xf-choices{display:flex;flex-wrap:wrap;gap:8px}
.xf-choice{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 20px;border:1px solid var(--line-strong);border-radius:12px;
  background:transparent;color:var(--ink);font:600 15px/1.2 var(--f-ui);cursor:pointer;transition:border-color .2s,background-color .2s}
.xf-choice:hover{border-color:var(--ink)}
.xf-choice input{width:18px;height:18px;margin:0;accent-color:var(--accent-fill)}
.xf-choice:has(input:checked){background:color-mix(in srgb,var(--accent-fill) 14%,var(--surface));border-color:var(--accent-edge)}
.xf-choice:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
.xf-price{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.xf-status{margin:0;min-height:1.4em;font:500 15px/1.55 var(--f-ui);color:var(--muted)}
.xf-status:empty{min-height:0}
.xf-status--ok{color:var(--accent);font-weight:650}
.xf-status--error{color:var(--error);font-weight:650}
.xf-status a{display:inline;min-height:0;margin:0}
/* A field's error: words in the error colour, named by the field's aria-describedby. */
.xf-error{margin:0;font:600 14px/1.5 var(--f-ui);color:var(--error)}
.xf-error p{margin:0 0 8px}
.xf-suggest{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.xf-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.xf-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.xf-mine-title{margin-top:48px}
.xf-mine{list-style:none;margin:0;padding:0;max-width:46rem;display:grid;gap:8px}
.xf-mine-item{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;padding:14px 18px;border-radius:12px;border:1px solid var(--line);background:var(--surface);overflow-wrap:anywhere}
.xf-mine-item p{margin:0;flex:1 1 220px;min-width:0}
.xf-mine-what{font: 800 22px/1.15 var(--f-serif);color:var(--ink)}
.xf-mine-meta{font:400 14px/1.45 var(--f-ui);color:var(--muted)}
.xf-mine-empty{padding:12px 0;font:400 15px/1.5 var(--f-ui);color:var(--muted)}
.xf-keep{margin-top:32px;max-width:46rem}
.xf-keep summary{list-style:none}
.xf-keep summary::-webkit-details-marker{display:none}
.xf-keep-row{display:flex;gap:8px;flex-wrap:wrap}
.xf-keep-row .xf-input{flex:1 1 14rem;font-size:15px}
.xf-signout{margin:24px 0 0}
.xf-signout .xf-hint{display:inline}
@media (max-width:560px){.xf-card{padding:18px 16px 14px 20px}.xf-form .xf-btn{width:100%}}
@media (prefers-reduced-motion:reduce){.xf-btn,.xf-input,.xf-choice{transition:none}}
/* Each step of posting sits on one panel, the form on the surface tone. */
.xf-step{max-width:52rem;padding:28px 28px 32px;border-radius:12px;border:1px solid var(--line);background:var(--surface)}
.xf-step>.ix-h2{font-size:clamp(34px,1.3rem + 2vw,52px)}
.xf-step .xf-input{background:var(--bg)}
.xf-step .ix-note,.xf-step>p{max-width:62ch}
@media (max-width:560px){.xf-step{padding:22px 16px 24px;border-radius:12px}}
/* Wide screens: "Right now" sits beside the opening instead of under it,
   so the page does not leave its right half empty. Same markup and order;
   phones and tablets keep the single column. */
@media (min-width:1180px){
.ix-main:has(> .xf-now){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:64px;align-items:start}
.ix-main:has(> .xf-now) > *{grid-column:1 / -1}
.ix-main:has(> .xf-now) > .ix-head{grid-column:1;grid-row:1}
.ix-main:has(> .xf-now) > .xf-now{grid-column:2;grid-row:1;margin-top:clamp(40px,4vw,64px)}
.xf-now .ix-h2{margin-top:0}
.xf-now .xf-cards{grid-template-columns:minmax(0,1fr)}
.xf-now .xf-empty{max-width:none}
}
