/* Drop-In (/drop-in/). Lists and the program page are built from the events styles (landing.css, events-pages.css,
   home-v2.css, core.css); only the section's own controls live here. */

.neh-dropin { --di-line: #e1e6f4; --di-ink: var(--primary-color, #101a4f); --di-muted: #6b7390; }
/* header: the action button keeps to one line */
.neh-dropin-page .header-actions .btn-primary { white-space: nowrap; width: auto; min-width: 0; padding-left: 20px; padding-right: 20px; }
.neh-dropin .neh-results-bar { margin: 0 0 18px; }
/* page top: the landing hero's dark band ends just under the search; the program page uses the site's own gap under the header */
body.neh-dropin-is-archive .site-header .header-overlay:not(.filtered) { min-height: 0 !important; bottom: -70px !important; }
body.neh-dropin-is-archive .neh-dropin { padding-top: 8px; }

/* ── week: seven equal day cells ── */
.neh-di-week { display: flex; align-items: stretch; gap: 8px; margin: 0 0 18px; }
.neh-di-cells { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
a.neh-di-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px 8px; border: 1px solid var(--di-line); border-radius: 14px; background: #fff; color: var(--di-ink) !important; text-decoration: none !important; line-height: 1.15; transition: border-color .15s, background .15s; }
a.neh-di-cell small { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--di-muted); }
a.neh-di-cell b { font-family: var(--font-family-secondary); font-size: 22px; font-weight: 700; }
a.neh-di-cell i { font-style: normal; font-size: 12px; color: var(--di-muted); }
a.neh-di-cell:hover { border-color: var(--accent-color-bright-blue, #02a6ff); background: #f6f9ff; }
a.neh-di-cell.is-empty b, a.neh-di-cell.is-empty small { opacity: .45; }
a.neh-di-cell.is-on { background: var(--di-ink); border-color: var(--di-ink); color: #fff !important; }
a.neh-di-cell.is-on small, a.neh-di-cell.is-on i { color: rgba(255, 255, 255, .78); }
.neh-di-arrow { flex: none; display: grid; place-items: center; width: 40px; border: 1px solid var(--di-line); border-radius: 14px; background: #fff; color: var(--di-ink) !important; font-size: 22px; line-height: 1; text-decoration: none !important; }
a.neh-di-arrow:hover { border-color: var(--accent-color-bright-blue, #02a6ff); }
.neh-di-arrow.is-off { opacity: .3; }

/* ── what (chips) + who / when / where (small dropdowns) on one line ── */
.neh-di-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 10px; margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--di-line); }
.neh-di-acts { display: flex; flex-wrap: wrap; gap: 6px; }
a.neh-di-act { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--di-line); border-radius: 999px; background: #fff; color: var(--di-ink) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
a.neh-di-act[style]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
a.neh-di-act:hover { border-color: var(--accent-color-bright-blue, #02a6ff); }
a.neh-di-act.is-on { background: var(--di-ink); border-color: var(--di-ink); color: #fff !important; }
.neh-di-more { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; }
.neh-di-more select { height: 36px; padding: 0 24px 0 10px; border: 1px solid var(--di-line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23101a4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; color: var(--di-ink); font: 600 13.5px var(--font-family-primary); appearance: none; -webkit-appearance: none; cursor: pointer; }
.neh-di-more select:hover { border-color: var(--accent-color-bright-blue, #02a6ff); }
.neh-di-more select.is-set { border-color: var(--di-ink); background-color: #eef2fb; }
a.neh-di-clear { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; border: 1px solid var(--di-line, #e1e6f4); border-radius: 50%; background: #fff; color: var(--di-ink, #101a4f) !important; font-size: 18px; line-height: 1; text-decoration: none !important; }
a.neh-di-clear:hover { border-color: #e5484d; color: #e5484d !important; }

/* ── sessions ── */
.neh-di-list .neh-ev-group { column-span: all; margin-bottom: 14px; }
.neh-di-list .neh-ev-group .neh-rows, .neh-di-place .neh-rows { columns: 340px 3; column-gap: 40px; }
.neh-di-row .neh-row-meta { white-space: normal; overflow: visible; }
.neh-di-row .neh-di-note { font-style: italic; }
/* second line of a row: age, lowest price and the activity pill side by side */
.neh-di-row .neh-row-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; }
.neh-di-row .neh-row-l2 .neh-row-cat, .neh-di-row .neh-row-l2 .neh-ll-fee { margin: 0; align-self: center; }
.neh-di-done { opacity: .55; }
.neh-di-foot { column-span: all; font-size: 14px; color: var(--di-muted); margin: 6px 0 0; }
/* the whole row opens the program; the activity pill stays its own link (filters by that activity) */
.neh-di-row a.neh-row-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.neh-di-row a.neh-row-cat { position: relative; z-index: 1; }
.neh-di-row { cursor: pointer; }
.neh-di-row.is-plain { grid-template-columns: minmax(0, 1fr); }
.neh-di-now { font-style: normal; font-size: 12px; font-weight: 700; color: #0a8f4d; margin-right: 2px; }
.neh-di-now::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #0a8f4d; vertical-align: 1px; }
.neh-di-list .neh-di-empty { column-span: all; padding: 26px 20px; text-align: center; }
.neh-di-empty p { margin: 0 0 10px; }
.neh-di-empty p:last-child { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ── landing sections ("Pick an activity", "Pick for me", "Browse by place") are .neh-sec: the site's own spacing ── */
.neh-di-list { margin-bottom: 56px; }
.neh-di-pick-when { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--primary-color, #101a4f); }
.neh-di-pick-meta { margin: 2px 0 0; font-size: 14px; color: #6b7390; }
.neh-di-place { margin-bottom: 8px; }
.neh-di-place .neh-di-tl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.neh-di-place .neh-di-tl .neh-row-cat { margin: 0; }

/* ── program page: the schedule first, the facts and actions in a card beside it ── */
.neh-di-article .neh-di-back { margin: 0 0 18px; font-size: 14px; }
.neh-di-article .entry-title { margin-bottom: 8px; }
.neh-di-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 16px; color: var(--di-muted, #6b7390); }
a.neh-di-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--c, #02a6ff) 16%, #fff); color: #2b3358 !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
a.neh-di-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #02a6ff); }
.neh-di-single { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 36px; align-items: start; }
.neh-di-article h2.neh-di-h { font-family: var(--font-family-secondary); font-size: 20px !important; font-weight: 600; color: var(--primary-color, #101a4f) !important; margin: 0 0 16px !important; }
/* the next session: one band under the title, the two main buttons beside it */
.neh-di-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 14px; padding: 18px 22px; border: 1px solid #e1e6f4; border-radius: 16px; background: #f4f6fb; }
.neh-di-next.is-stale { background: #fff8db; border-color: #f1dd8c; }
.neh-di-next p { margin: 0 !important; }
.em.pixelbones .neh-di-next p.neh-di-next-k { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: #6b7390 !important; }
.em.pixelbones .neh-di-next p.neh-di-next-m { font-family: var(--font-family-secondary) !important; font-size: clamp(19px, 2.6vw, 24px) !important; font-weight: 600 !important; line-height: 1.25 !important; color: var(--primary-color, #101a4f) !important; }
.neh-di-next-n { margin-top: 4px !important; font-size: 14px !important; color: #7a5b00 !important; }
.neh-di-next-act { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.em.pixelbones .neh-di-next .neh-di-next-act a.neh-btn.neh-btn-primary { background: var(--accent-color-bright-blue, #02a6ff) !important; border-color: var(--accent-color-bright-blue, #02a6ff) !important; color: #fff !important; }
.em.pixelbones .neh-di-next .neh-di-next-act a.neh-btn.neh-btn-primary:hover { background: var(--accent-color-blue, #2f6fed) !important; border-color: var(--accent-color-blue, #2f6fed) !important; }
.em.pixelbones .neh-di-next .neh-di-next-act a.neh-btn:not(.neh-btn-primary) { background: #fff !important; color: var(--primary-color, #101a4f) !important; }
/* "Add to calendar" sits with the session: Events Manager pads every <details>; this one is just a button */
.em.pixelbones .neh-di-next details.neh-cal { padding: 0 !important; margin: 0 !important; position: relative; }
.em.pixelbones .neh-di-next details.neh-cal summary.neh-btn { background: #fff !important; color: var(--primary-color, #101a4f) !important; }
.neh-di-next .neh-cal summary { list-style: none; }
.neh-di-next .neh-cal summary::-webkit-details-marker { display: none; }
.neh-di-next .neh-cal summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.neh-di-next .neh-cal summary svg { width: 16px; height: 16px; }
.neh-di-next .neh-cal-menu { left: auto; right: 0; }
.neh-di-next .neh-cal summary.neh-btn { display: inline-flex !important; align-items: center; gap: 8px; font-size: 15px !important; font-weight: 600 !important; color: var(--primary-color) !important; cursor: pointer; height: 100%; }
.neh-di-next .neh-cal[open] .neh-cal-menu { display: flex; }
/* said once: who it is for, the rules, the fee */
ul.neh-di-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 30px !important; padding: 0 !important; }
ul.neh-di-tags li { margin: 0 !important; padding: 6px 12px !important; border: 1px solid #e1e6f4; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--primary-color, #101a4f); list-style: none !important; }
ul.neh-di-tags li::before, ul.neh-di-tags li::marker { content: none !important; }
ul.neh-di-tags li.is-fee { background: #eaf6ff; border-color: #cfe9fb; }
ul.neh-di-tags li.is-quiet { color: #6b7390; font-weight: 400; }
/* weekly schedule: one bordered box, the same inner padding on every cell */
.neh-di-tablebox { border: 1px solid #e1e6f4; border-radius: 14px; overflow: hidden; background: #fff; }
.em.pixelbones table.neh-di-table { width: 100%; border-collapse: collapse; border-top: 0; margin: 0 !important; }
.em.pixelbones table.neh-di-table th, .em.pixelbones table.neh-di-table td { padding: 14px 18px !important; border: 0; border-bottom: 1px solid #e1e6f4; text-align: left; vertical-align: top; background: none; }
.em.pixelbones table.neh-di-table tr:last-child th, .em.pixelbones table.neh-di-table tr:last-child td { border-bottom: 0; }
table.neh-di-table th { width: 38%; font-size: 17px; font-weight: 700; color: var(--primary-color, #101a4f); white-space: nowrap; }
.neh-di-line { display: block; }
.neh-di-line + .neh-di-line { margin-top: 6px; }
.neh-di-line b { font-size: 17px; font-weight: 600; color: var(--primary-color, #101a4f); }
.neh-di-line small { display: block; font-size: 14px; color: #6b7390; }
.em.pixelbones table.neh-di-table tr.is-today th, .em.pixelbones table.neh-di-table tr.is-today td { background: #f6f9ff; }
table.neh-di-table tr.is-today th { box-shadow: inset 4px 0 0 var(--accent-color-bright-blue, #02a6ff); }
.em.pixelbones p.neh-di-changes { margin: 14px 0 0 !important; font-size: 15px; color: #4a5275; }
/* dates: a plain list of tiles (no links, so no hover) */
.neh-di-dates { margin: 30px 0 0; }
.neh-di-dates ul { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)) !important; }
.em.pixelbones .neh-di-dates li a, .em.pixelbones .neh-di-dates li a:hover { border-color: #dfe3f0 !important; cursor: default; text-decoration: none !important; }
.em.pixelbones .neh-di-dates li a:hover b { color: #1b2559 !important; }
.em.pixelbones .neh-di-dates li a:hover span { color: #5a6282 !important; }
.neh-di-off li a { background: #f6f7fb; }
.neh-di-off li b { text-decoration: line-through; color: #6b7390; font-weight: 500; }
.neh-di-about { margin-top: 30px; }
.neh-di-about p { font-size: 16px; line-height: 1.55; max-width: 62ch; }
/* the place card: where, directions, share */
aside.neh-facts.neh-facts-v5.neh-di-card { display: block; margin: 0; padding: 22px; border: 1px solid #e1e6f4; border-left: 1px solid #e1e6f4; border-radius: 16px; background: #f4f6fb; }
.em.pixelbones aside.neh-di-card .neh-di-facts { margin: 0 0 16px !important; }
.neh-di-facts dt { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7390; }
.neh-di-facts dt:first-child { margin-top: 0; }
.neh-di-facts dt svg { width: 16px; height: 16px; }
.neh-di-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--primary-color, #101a4f); }
.neh-di-facts dd small { display: block; font-size: 14px; font-weight: 400; color: #4a5275; }
.em.pixelbones aside.neh-di-card .neh-facts-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.neh-di-card .neh-facts-actions > * { margin: 0 !important; }
.neh-di-card .neh-facts-actions a.neh-di-dir { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.em.pixelbones aside.neh-di-card a.neh-di-dir { background: #fff !important; color: var(--primary-color, #101a4f) !important; }
.em.pixelbones aside.neh-di-card .neh-facts-note { margin: 12px 0 0 !important; }
.neh-di-article .neh-related .neh-rows { columns: 340px 3; column-gap: 40px; }
.neh-di-article .neh-related .neh-row.is-plain { display: block; }
@media (min-width: 992px) {
  .neh-di-single { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  aside.neh-facts.neh-di-card { position: sticky; top: 24px; }
}

@media (max-width: 640px) {
  .neh-di-next { padding: 16px; }
  .neh-di-next-act { width: 100%; }
  .neh-di-next-act .neh-btn { flex: 1; }
  table.neh-di-table th { width: 42%; font-size: 16px; white-space: normal; }
  .neh-di-week { gap: 4px; }
  .neh-di-cells { gap: 3px; }
  a.neh-di-cell { padding: 7px 2px 6px; border-radius: 10px; }
  a.neh-di-cell small { font-size: 10px; letter-spacing: 0; }
  a.neh-di-cell b { font-size: 17px; }
  a.neh-di-cell i span { display: none; }
  .neh-di-arrow { width: 28px; border-radius: 10px; }
  .neh-di-acts { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .neh-di-acts::-webkit-scrollbar { display: none; }
  .neh-di-more { width: 100%; flex-wrap: wrap; }
  .neh-di-more select { flex: 1; min-width: 0; }
  body.neh-dropin-is-archive .neh-dropin { padding-top: 70px; }
  .neh-di-list { margin-bottom: 44px; }
}

/* suggest form (/drop-in/suggest/): "What is it about?" is the first field of the first block */
.neh-dtip-kind { margin: 0 0 16px; }
.neh-dtip-label { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--primary-color, #14215c); }
form.em.pixelbones.neh-dtip-form section.event-form-details textarea { min-height: 132px !important; padding: 12px 14px !important; }
form.em.pixelbones.neh-dtip-form section.event-form-submit { padding-top: 4px !important; }
/* the two blocks sit side by side (the events form gives its Details block the full width) */
@media (min-width: 992px) {
  form.em.pixelbones.em-event-admin-editor.em-event-editor.neh-dtip-form section.event-form-details { grid-column: span 1 !important; }
  form.em.pixelbones.neh-dtip-form section.event-form-details .input { display: flex; flex-direction: column; height: calc(100% - 44px); }
  form.em.pixelbones.neh-dtip-form section.event-form-details .input > p:last-child { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  form.em.pixelbones.neh-dtip-form section.event-form-details textarea { flex: 1; }
}

/* "Members only": marked in every list row and at the top of the program page */
em.neh-di-members { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: #fde7e7; color: #8a1f1f; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
ul.neh-di-tags li.is-members { background: #fde7e7; border-color: #f3c4c4; color: #8a1f1f; font-weight: 700; }
.neh-di-membersnote { margin-bottom: 14px; }

/* "Rent a court" at the bottom of the landing (inc/dropin/rentals.php) */
.neh-di-rent-lead { margin: -6px 0 10px; font-size: 14px; color: #6b7390; }
/* by town; a place is three short lines, the rest opens under "Details" */
.neh-di-rent-towns { columns: 340px 3; column-gap: 40px; }
.neh-di-rent-town { break-inside: avoid; margin: 0 0 22px; }
.neh-di-rent-town h3.neh-day-title { margin-top: 0; font-size: 13px; }
.neh-di-rent .neh-di-tl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.neh-di-rent .neh-di-tl .neh-row-cat { margin: 0; }
.neh-di-rent-price strong { font-weight: 600; color: var(--primary-color, #101a4f); }
.neh-di-rent-more { position: relative; z-index: 1; margin-top: 2px; font-size: 13px; color: #6b7390; }
.neh-di-rent-more summary { display: inline-block; cursor: pointer; color: var(--accent-color-bright-blue, #0b6bcb); font-weight: 500; list-style: none; }
.neh-di-rent-more summary::-webkit-details-marker { display: none; }
.neh-di-rent-more summary::after { content: " +"; }
.neh-di-rent-more[open] summary::after { content: " –"; }
.neh-di-rent-more summary:hover, .neh-di-rent-more summary:focus-visible { text-decoration: underline; }
.neh-di-rent-more p { margin: 4px 0 0; line-height: 1.4; }
em.neh-di-members.is-soft { background: #fff4d6; color: #7a5600; }

/* the line for people who organize games (under "Rent a court") */
.neh-di-tool { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 18px 0 44px; padding: 16px 20px; border: 1px solid #e1e6f4; border-radius: 16px; background: #f4f6fb; }
.neh-di-tool p { margin: 0; font-size: 15px; color: var(--primary-color, #101a4f); }
.neh-di-tool p small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: #6b7390; }
/* "Rent a court" link at the end of the hero line (inc/sections.php); kept out of the filter chips so the filters fit one row */
.home-lead a.neh-di-rentlead { color: #ffcd00; font-weight: 500; text-decoration: none; white-space: nowrap; }
.home-lead a.neh-di-rentlead:hover { text-decoration: underline; }
html { scroll-behavior: smooth; }
/* under a free / kids list: the events page of the same kind */
.neh-di-mood { margin-top: 14px; }
.neh-di-mood a { font-weight: 600; color: var(--accent-color-bright-blue) !important; }
