/*
 * Additions to the mockup's styles (mockup.css, taken unchanged from v35)
 * for things the WordPress build needs: real images, links on cards,
 * Google Maps, the ended-event notice, the autocomplete box.
 */

[hidden] { display: none !important; }

/* Cards are links: the title's link stretches over the whole card. */
.card .cardlink, .promo .cardlink { color: inherit; text-decoration: none; }
.card .cardlink::after, .promo .cardlink::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .cardlink:focus-visible { outline: none; }
.card:has(.cardlink:focus-visible), .promo:has(.cardlink:focus-visible) { outline: 2px solid var(--ember); outline-offset: 2px; }
.card .savebtn { z-index: 3; }
.card .when .rel { color: var(--ink-3); font-weight: 400; }
.card .when .rel:not(:empty)::before { content: "·"; color: var(--ink-4); margin-right: 6px; }

/* Real images from Adventist Place fill the same boxes as the gradients. */
.coverimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .stamp { z-index: 2; }
.dmedia.hasimg, .dhero.hasimg { background: var(--surface-2); }
.credit { margin-top: -8px; font-size: 11.5px; color: var(--ink-4); text-align: right; }

.railsep { width: 1px; flex: none; background: var(--line); margin: 4px 4px; }
.listlede { color: var(--ink-3); font-size: 15px; margin: 0 0 4px; max-width: 60ch; }
.loadnote { color: var(--ink-3); font-size: 14px; padding: 24px 0; }

/* Ended events keep their page, with this at the top. */
.endednote { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-lg);
  border: 1px solid var(--line-strong); background: var(--surface-2); }
.endednote > svg { width: 19px; height: 19px; stroke: var(--ink-3); flex: none; margin-top: 2px; }
.endednote b { display: block; font-size: 15px; margin-bottom: 3px; }
.endednote p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* Maps */
.gmap { position: relative; }
.gmap-canvas { width: 100%; aspect-ratio: 2 / 1; }
.gmap-note { position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 600;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-sm); }
.privnote { display: block; margin-top: 6px; color: var(--ink-4); font-weight: 400; font-size: 12px; line-height: 1.45; }
.kv.dist .v small { display: block; }

.occrow.here { background: var(--ember-wash); }
.occrow .d a { color: inherit; }

/* Language menu items are links. */
.langmenu .langopt { text-decoration: none; }

/* Location sheet */
.lp-search-host { margin: 4px 0 12px; }
.lp-search-host gmp-place-autocomplete { width: 100%; color-scheme: light dark; }
.lp-note { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; line-height: 1.5; }
.lp-item > svg { width: 16px; height: 16px; stroke: var(--ink-3); flex: none; }
.lp-item.on > svg:first-child { stroke: var(--ember-deep); }
.lp-current { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Report: shown, deliberately inert for v1. */
.reportlink { cursor: default; }

/* Contact form honeypot: present for bots, invisible to people. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Room for the sticky bar on event pages. */
.eap-event .foot { padding-bottom: 110px; }

.skiplink:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 8px 12px;
  background: var(--surface); color: var(--ink); z-index: 100; border-radius: var(--r-md); box-shadow: var(--shadow-md); }

/* The brand mark plays once per visit; later pages show it finished. */
html:not(.bm-play) .brandmark--anim .bm-unfurl { animation: none; transform: none; }
html:not(.bm-play) .brandmark--anim .bm-draw { animation: none; stroke-dashoffset: 78; }

/* The sticky search band must sit below the WordPress admin bar for signed-in editors. */
.admin-bar .top { top: 32px; }
.admin-bar .searchzone { top: calc(var(--hh) + 32px); }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } .admin-bar .searchzone { top: calc(var(--hh) + 46px); } }

/* The contact form uses the mockup's report-form layout. */
#contactform { margin-top: 26px; display: flex; flex-direction: column; gap: 20px; }
.switch { text-align: left; }
.lede { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
