/* Things to do anytime (/things-to-do/). Wow review 2026-11-23: a sunlit header photo with the day's hook, one chooser
   (kind-of-day photo tiles, then the dated pages and guides), the day's picks, a sticky jump strip, and each group as
   seven photo cards with the rest in a counted, ruled text list. No stand-in photos. .fine-print and .cta-short come
   from the shared styles */
.at-h2 { margin: 0 0 var(--sp-12); display: flex; align-items: baseline; gap: var(--sp-8); font: 400 var(--h2-sec) var(--serif); }
.at-n { font: 600 .82rem/1 var(--sans); color: var(--ink-2); background: var(--paper-2); padding: var(--sp-4) var(--sp-8); border-radius: 999px; }

/* ---------- header ---------- */
.ph.at-hero { padding-bottom: var(--sp-24); background: radial-gradient(70% 80% at 85% 0%, rgba(239, 161, 58, .22), transparent 62%), var(--paper); }
.at-hero h1 { max-width: 12ch; }
.at-hero .lede { max-width: 34em; }
.at-hero-ph { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-2); }
.at-hero-ph img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.at-hero-ph figcaption { position: absolute; left: var(--sp-12); bottom: var(--sp-12); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(14, 26, 36, .5); color: #fffaf2; font: 500 .75rem/1.3 var(--sans); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 900px) {
  .at-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
  /* Share at the page's top right, level with the title, as on the other hub pages; the photo starts under it and is
     that much shorter, so the header is no taller than before (design review 2026-11-23) */
  .at-hero .ph-top.solo { position: absolute; top: var(--sp-8); right: 0; margin: 0; float: none; } /* 8px down, as beside the other titles */
  .at-hero-ph { margin-top: calc(34px + var(--sp-16)); } /* under the Share button */
  .at-hero-ph img { aspect-ratio: 4 / 3; max-height: 360px; }
}
@media (max-width: 899px) { .at-hero-ph { margin-top: var(--sp-16); } }

/* the day's hook: one line from today's conditions, down to its picks */
.at-hook { margin-top: var(--sp-20); }
.at-hook-day { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-4) var(--sp-12); align-items: center; padding: var(--sp-12) var(--sp-16); border-radius: var(--radius); background: var(--sea-deep); color: #fffaf2; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.at-hook-day[hidden] { display: none; }
.at-hook-day:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.at-hook-day:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.at-hook-ic { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(247, 197, 111, .16); }
.at-hook-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--sun-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.at-hook-t { font: 500 1rem/1.35 var(--sans); }
.at-hook-t b { color: var(--sun-2); font-weight: 700; margin-right: var(--sp-4); }
.at-hook-go { font: 600 .82rem/1.3 var(--sans); color: var(--seaglass); }
.at-hook-day:hover .at-hook-go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the chooser ---------- */
.at-sec { padding-top: var(--sp-32); }
.at-choose { margin: 0 0 var(--sp-48); }
.at-choose-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-8) var(--sp-16); flex-wrap: wrap; }
.at-showing { min-height: 1.4em; margin: 0 0 var(--sp-12); color: var(--ink-2); font: 600 .9rem var(--sans); }
.at-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-12); }
.at-filters.has-big { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 150px; }
.at-filters.has-big .at-tile { aspect-ratio: auto; height: 100%; }
.at-filters.has-big .at-tile-w.is-big { grid-column: span 2; grid-row: span 2; }
/* a tile and its photo credit: the credit button sits on the photo's top corner, beside the button, not inside it */
.at-tile-w { position: relative; min-width: 0; }
.at-tile-w > .at-tile { width: 100%; }
.at-tile-w > .pcred { top: var(--sp-8); right: var(--sp-8); bottom: auto; z-index: 3; }
.at-tile-w > .pcred .pcred-t { top: 34px; bottom: auto; }
.at-tile { position: relative; display: block; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: var(--sea-deep); color: #fffaf2; text-align: left; font: inherit; }
.at-tile-ph, .at-tile-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.at-tile-ph img { transition: transform .4s var(--ease); }
.at-tile-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 26, 36, .8), rgba(14, 26, 36, .05) 62%); }
.at-tile-l { position: absolute; left: var(--sp-12); right: var(--sp-12); bottom: var(--sp-12); font: 600 1rem/1.15 var(--sans); }
.at-tile-l small { display: block; margin-top: var(--sp-4); font-weight: 500; font-size: .75rem; opacity: .85; }
.at-tile.is-big .at-tile-l { left: var(--sp-20); bottom: var(--sp-20); font: 400 var(--h3-card)/1.1 var(--serif); }
.at-tile.is-big .at-tile-l small { font: 500 .82rem var(--sans); }
.at-tile-tag[hidden] { display: none; }
.at-tile-tag { position: absolute; top: var(--sp-12); left: var(--sp-12); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: var(--sun); color: var(--ink); font: 700 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.at-tile:hover .at-tile-ph img { transform: scale(1.05); }
.at-tile[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--sun); }
.at-tile[aria-pressed="true"] .at-tile-l::before { content: "✓ "; color: var(--sun-2); }
.at-tile:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* the dated pages and guides, under the tiles */
.at-links { display: grid; gap: var(--sp-8); margin-top: var(--sp-16); padding-top: var(--sp-12); border-top: 1px solid var(--line); }
.at-links-row { display: grid; grid-template-columns: 9.5rem 1fr; align-items: baseline; gap: var(--sp-12); }
.at-links-k { margin: 0; font: 700 .68rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.at-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-4); }
.at-links a { display: block; padding: .4em .8em; border-radius: var(--r-ctl); font: 600 .9rem/1.3 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; transition: background .2s; }
.at-links a:hover, .at-links a:focus-visible { background: var(--paper-2); }
.at-links li:first-child a { margin-left: -.8em; }

/* ---------- the day's picks ---------- */
.at-today { margin: 0 0 var(--sp-48); scroll-margin-top: 96px; }
.at-today[hidden], .at-today-set[hidden] { display: none; }
.at-today-why { margin: calc(-1 * var(--sp-4)) 0 var(--sp-16); color: var(--ink-2); }

/* picked for this weekend's weather */
.at-picks { margin: 0 0 var(--sp-48); padding: var(--sp-20) var(--sp-24); border-radius: var(--radius); background: #fffaf2; box-shadow: var(--shadow-1); }
.at-picks .at-h2 { font-size: var(--h2-card); }
.at-picks ul { margin: 0 0 var(--sp-12); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-12) var(--sp-24); }
.at-picks li { display: grid; gap: 2px; align-content: start; } /* sp-ok: label to its name */
.at-picks b { color: var(--tile); font: 700 .75rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.at-picks li a { color: var(--ink); font: 400 var(--h2-card)/1.2 var(--serif); text-decoration: none; }
.at-picks li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.at-picks li span { color: var(--ink-3); font-size: .82rem; }
.at-picks p { margin: 0; font-size: .9rem; }
.at-picks p a { color: var(--sea); font-weight: 600; }

/* ---------- jump strip ---------- */
.at-jump { position: sticky; top: 76px; z-index: 20; margin: 0 0 var(--sp-24); padding: var(--sp-8) 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.at-jump ul { list-style: none; margin: 0; padding: var(--sp-4); display: flex; gap: var(--sp-4); overflow-x: auto; scrollbar-width: none; }
.at-jump ul::-webkit-scrollbar { display: none; }
.at-jump li[hidden] { display: none; }
.at-jump a { display: block; padding: .45em .85em; border-radius: 999px; font: 600 .9rem/1.2 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.at-jump a small { margin-left: var(--sp-4); font-size: .75rem; font-weight: 500; color: var(--ink-3); }
.at-jump a:hover { background: var(--paper-2); }
.at-jump a[aria-current="true"] { background: var(--ink); color: #fffaf2; }
.at-jump a[aria-current="true"] small { color: rgba(255, 250, 242, .7); }

/* ---------- groups ---------- */
.at-group { margin: 0 0 var(--sp-48); scroll-margin-top: 140px; }
.at-group[hidden] { display: none; }

/* photo cards (the day's picks and the top of each group) */
.at-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16); }
.at-bento { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* the day's picks: four or five sit in one row, six in two rows of three; never one card alone on a row */
@media (min-width: 901px) {
  .at-cards-today:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .at-cards-today:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.at-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fffaf2; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s; }
.at-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.at-card[hidden] { display: none; }
.at-ph { position: relative; flex: none; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.at-ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; } /* a tall photo never stretches its frame past 3:2 */
.at-ph .pcred { position: absolute; top: var(--sp-8); right: var(--sp-8); bottom: auto; z-index: 3; }
.at-ph .pcred-t { top: 34px; bottom: auto; max-width: 210px; } /* stays inside a 243px phone card */
:is(.at-card, .at-ph):has(.pcred[open]) { overflow: visible; }
.at-tx { padding: var(--sp-12) var(--sp-16) var(--sp-16); display: grid; gap: var(--sp-4); align-content: start; }
.at-card .at-name { font: 400 var(--h2-card)/1.15 var(--serif); }
.at-card .at-name::after { content: ""; position: absolute; inset: 0; } /* the whole card opens the place */
.at-card .at-town { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
@media (min-width: 901px) {
  /* seven cards: one wide lead (two columns, so a landscape photo keeps its shape) and six around it, two rows of
     four with no card alone; the lead swaps sides group to group */
  .at-bento.is-full { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
  .at-bento.is-full .is-lead { grid-column: span 2; }
  .at-group.is-flip .at-bento.is-full .is-lead { grid-column: 3 / span 2; }
  .at-bento.is-full .is-lead .at-ph { flex: 1 1 auto; aspect-ratio: auto; min-height: 220px; }
  .at-bento.is-full .is-lead .at-name { font-size: var(--h3-card); }
}

/* the rest of a group: a counted control, then ruled text rows */
.at-more { margin-top: var(--sp-16); }
.at-more > summary { display: inline-flex; align-items: center; gap: var(--sp-8); padding: .7em 1.1em; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line); background: #fffaf2; font: 600 .9rem/1.2 var(--sans); color: var(--ink); cursor: pointer; list-style: none; transition: background .2s; }
.at-more > summary::-webkit-details-marker { display: none; }
.at-more > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.at-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.at-more > summary:hover { background: var(--paper-2); }
.at-more > summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.at-more:not([open]) .at-more-hide, .at-more[open] .at-more-show { display: none; }
.at-more .at-list { margin-top: var(--sp-8); }
.at-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: var(--sp-32); }
.at-list .at-row { display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-12) 0; border-bottom: 1px solid var(--line); }
.at-row[hidden] { display: none; }
.at-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-12); }
.at-name { font: 600 1rem/1.3 var(--sans); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.at-name:hover, .at-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.at-town { flex: none; font: 500 .82rem var(--sans); color: var(--ink-3); text-align: right; white-space: nowrap; }
.at-what, .at-facts { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.at-facts { font-size: .82rem; color: var(--ink-3); }
.at-empty { margin: var(--sp-8) 0 0; color: var(--ink-3); font: 500 italic 1rem var(--serif); }

/* while a tile is pressed the matching places come straight under the chooser, every list open */
.at-filtering :is(.at-today, .at-picks) { display: none; }
.at-filtering .at-more > summary { display: none; }
.at-filtering .at-hook { display: none; }
.at-filtering .at-group .at-bento.is-full .is-lead { grid-row: auto; grid-column: auto; } /* outranks the flipped groups' columns 3-4 */
.at-filtering .at-group .at-bento.is-full .is-lead .at-ph { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
.at-filtering .at-group .at-bento.is-full .is-lead .at-name { font-size: var(--h2-card); }
.at-jump[hidden] { display: none; }

@media (max-width: 900px) {
  .at-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at-bento.is-full .is-lead { grid-column: 1 / -1; }
  .at-bento.is-full .is-lead .at-ph { aspect-ratio: 16 / 9; }
  /* the tiles become one swipe rail: the edge fades, so a cut tile reads as "more this way" */
  .at-filters, .at-filters.has-big { display: flex; gap: var(--sp-8); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * var(--sp-24)); padding: var(--sp-8) var(--sp-24); scroll-padding-inline: var(--sp-24); -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--sp-12), #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--sp-12), #000 calc(100% - 48px), transparent); } /* the padding keeps the pressed ring and focus outline inside the rail */
  .at-filters::-webkit-scrollbar { display: none; }
  .at-tile-w { flex: 0 0 136px; scroll-snap-align: start; }
  .at-tile, .at-filters.has-big .at-tile { aspect-ratio: 4 / 5; height: auto; }
  .at-tile.is-big .at-tile-l { left: var(--sp-12); bottom: var(--sp-12); font: 600 1rem/1.15 var(--sans); }
  .at-tile.is-big .at-tile-l small { font: 500 .75rem var(--sans); }
  .at-links-row { grid-template-columns: 1fr; gap: var(--sp-4); }
  .at-links ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--sp-24)); padding-inline: var(--sp-24); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .at-links ul::-webkit-scrollbar { display: none; }
  .at-links li:last-child { padding-right: var(--sp-32); }
  .at-jump { margin-inline: calc(-1 * var(--sp-24)); padding-inline: var(--sp-24); }
  .at-jump ul { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .at-jump li:last-child { padding-right: var(--sp-32); }
}
@media (max-width: 640px) {
  /* a long group name wraps with its count beside the last word, never on a line of its own */
  .at-h2 { display: block; }
  .at-h2 .at-n { display: inline-block; margin-left: var(--sp-4); vertical-align: .2em; }
  /* phone: the day's picks and each group's cards scroll sideways in one row, so the page stays short */
  .at-cards, .at-bento.is-full { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--sp-12); padding-bottom: var(--sp-4); margin-right: calc(-1 * var(--sp-24)); padding-right: var(--sp-24); scrollbar-width: none; }
  .at-cards::-webkit-scrollbar { display: none; }
  .at-card { scroll-snap-align: start; }
  .at-card:hover { transform: none; }
  .at-bento.is-full .is-lead { grid-column: auto; }
  .at-bento.is-full .is-lead .at-ph { aspect-ratio: 3 / 2; }
  .at-list { grid-template-columns: 1fr; }
  /* the counted control spans the column on one line: "Show 91 more" under the group's own heading */
  .at-more > summary { display: flex; justify-content: center; }
  .at-more-noun { display: none; }
  .at-picks { padding: var(--sp-16); }
  .at-filtering .at-cards { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; margin-right: 0; padding-right: 0; }
}
