/* The Free Five (/free/). .badge comes from site.css, .fine-print and .cta-short from weekend.css */
.ff-five { list-style: none; margin: 0 0 var(--sp-48); padding: 0; display: grid; gap: var(--sp-16); }
@media (min-width: 900px) { .ff-five { grid-template-columns: repeat(2, 1fr); } .ff-five > :first-child:has(.ff-ph) { grid-column: 1 / -1; } }
.ff-card { position: relative; display: flex; gap: var(--sp-16); padding: var(--sp-20) var(--sp-24); border-radius: var(--radius); background: #fffaf2; border: 0; box-shadow: var(--shadow-1);  }
.ff-n { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 600 1.3rem/1 var(--serif); }
.ff-body { min-width: 0; display: flex; flex-direction: column; }
.ff-when { margin: 0 0 var(--sp-4); font: 500 .9rem var(--sans); color: var(--ink-3); }
.ff-when b { color: var(--tile); font-weight: 650; }
.ff-card h3 { margin: 0 0 var(--sp-8); font: 500 var(--h3-card)/1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.ff-card h3 a { color: inherit; text-decoration: none; }
.ff-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ff-card:hover h3 a { text-decoration: underline; text-underline-offset: 3px; }
.ff-card h3 a:focus-visible { outline: none; }
.ff-card:has(h3 a:focus-visible) { outline: 2.5px solid var(--tile); outline-offset: 3px; }
.ff-where, .ff-note { margin: 0 0 var(--sp-8); color: var(--ink-2); font-size: .9rem; }
.ff-note { font-size: .9rem; color: var(--ink-3); }
.ff-tags { margin: var(--sp-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.ff-checked { margin: var(--sp-8) 0 0; font-size: .82rem; color: var(--ink-3); }

.ff-rest { margin: 0 0 var(--sp-32); }
.ff-resthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-8) var(--sp-16); margin: 0 0 var(--sp-12); }
.ff-resthead h2 { margin: 0; display: flex; align-items: baseline; gap: var(--sp-8); }
.ff-cnt { font: 600 .82rem/1 var(--sans); color: var(--ink-2); background: var(--paper-2); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); }
.ff-tog { font: 600 .9rem/1 var(--sans); min-height: 44px; padding: .7em 1.05em; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: #fffaf2; color: var(--ink-2); cursor: pointer; }
.ff-tog small { font-weight: 500; color: var(--ink-3); margin-left: var(--sp-4); }
.ff-tog:focus-visible { outline: 2.5px solid var(--tile); outline-offset: 2px; }
.ff-tog[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.ff-tog[aria-pressed="true"] small { color: rgba(255, 255, 255, .78); }
.ff-day { margin: 0 0 var(--sp-16); }
.ff-day[hidden] { display: none; }
.ff-dayh { margin: 0 0 var(--sp-4); font: 600 .82rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tile); }
.ff-dayh span { color: var(--ink-3); font-weight: 500; letter-spacing: .04em; margin-left: var(--sp-4); }
.ff-day ul { list-style: none; margin: 0; padding: 0; }
.ff-day li { display: flex; align-items: baseline; gap: var(--sp-16); padding: var(--sp-12) 0; border-bottom: 1px solid var(--line); }
.ff-day li[hidden] { display: none; }
.ff-t { flex: none; width: 5.6em; font: 600 .9rem var(--sans); color: var(--ink-2); }
.ff-x { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ff-x a { font: 600 1rem/1.35 var(--sans); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ff-x a:hover { text-decoration: underline; }
.ff-x small { font-size: .82rem; color: var(--ink-3); overflow-wrap: anywhere; }
.ff-empty { margin: var(--sp-8) 0 0; color: var(--ink-3); font: 500 italic 1rem var(--sans); }

/* Free museum days: two short lists (dated free days with the next one, then the always-free places), a row each */
.ff-museums { padding: var(--sp-20) var(--sp-24) var(--sp-8); border-radius: var(--radius); background: #fffaf2; border: 0; box-shadow: var(--shadow-1); }
.ff-museums h2 { margin: 0 0 var(--sp-4); }
.ff-m-h { margin: var(--sp-16) 0 0; font: 600 .82rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tile); }
.ff-mus { list-style: none; margin: 0; padding: 0; }
.ff-m { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-8) var(--sp-16); padding: var(--sp-12) 0; border-bottom: 1px solid var(--line); }
.ff-mus > :last-child { border-bottom: 0; }
.ff-m-main { min-width: 0; }
.ff-m-main a { font: 600 1rem/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.ff-m-main a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ff-m-town { margin-left: var(--sp-4); font-size: .82rem; color: var(--ink-3); }
.ff-m-main small { display: block; margin-top: 2px; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.ff-m-next { flex: none; font: 600 .82rem/1 var(--sans); color: var(--ink); background: var(--sun); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); white-space: nowrap; }
.ff-museums > p { margin: var(--sp-12) 0; }
.ff-museums > p a { color: var(--sea); font-weight: 600; }
.ff-museums > .ff-chk { margin: var(--sp-8) 0 var(--sp-12); font-size: .82rem; color: var(--ink-3); }
@media (min-width: 900px) { .ff-mus-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-48); } .ff-mus-2 > :nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
@media (max-width: 560px) { .ff-m { flex-direction: column; align-items: flex-start; gap: var(--sp-8); padding: var(--sp-8) 0; } }
/* The five picks carry a photo: on top of the first, beside the rest. The number rides on the photo; a photo that
   fails to load takes its frame with it (site.js) and the number drops back beside the text. */
.ff-pick { padding: var(--sp-12); gap: var(--sp-16); }
.ff-ph { flex: none; align-self: flex-start; width: 104px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: #e9e1d2; }
.ff-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ff-pick:has(.ff-ph) .ff-n { position: absolute; top: 18px; left: 18px; width: 30px; height: 30px; font: 700 .9rem/1 var(--sans); box-shadow: 0 1px 4px rgba(20, 30, 40, .35); }
.ff-pick .ff-body { padding: 2px var(--sp-4) 2px 0; }
.ff-pick:not(:has(.ff-ph)) { padding: var(--sp-20) var(--sp-24); }
.ff-pick:first-child:has(.ff-ph) { flex-direction: column; gap: var(--sp-12); }
.ff-pick:first-child .ff-ph { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
.ff-pick:first-child:has(.ff-ph) .ff-n { width: 38px; height: 38px; font-size: 1.12rem; }
.ff-pick:first-child:has(.ff-ph) .ff-body { padding: 0 var(--sp-8) var(--sp-8); }
@media (min-width: 900px) {
  .ff-pick { padding: var(--sp-16); gap: var(--sp-16); }
  .ff-ph { width: 168px; aspect-ratio: 4 / 3; }
  .ff-pick:first-child:has(.ff-ph) { flex-direction: row; gap: var(--sp-24); align-items: center; }
  .ff-pick:first-child .ff-ph { width: 46%; aspect-ratio: 16 / 9; }
  .ff-pick:first-child h3 { font-size: 1.75rem; }
  .ff-pick:first-child:has(.ff-ph) .ff-body { padding: 0 var(--sp-8) 0 0; }
}
/* The rest of the weekend's free listings are This Weekend's list rows (.ev, weekend.css); free.js hides ended ones */
.ff-eday { margin: 0 0 var(--sp-16); }
.ff-eday[hidden], .ff-eday .ev[hidden] { display: none; }
/* a pick that already ended stays in the five (it matches the newsletter) but steps back (free.js) */
.ff-card.ff-ended { opacity: .6; }
.ff-card.ff-ended h3 a { text-decoration: line-through; text-decoration-thickness: 1px; }
.ff-endb { background: var(--ink); color: var(--paper); }
/* Season guides (season.mjs) reuse the Free Five cards and day lists */
.ss-big .ff-card, .ss-card { padding-left: var(--sp-24); }
.ss-more { margin: var(--sp-8) 0 var(--sp-16); color: var(--ink-2); }
