/* WordPress-specific additions not in the engine's look.css: native comments,
   the plain (non-JS) search form, WP admin bar offset, and wp_nav_menu markup
   that didn't exist in the engine's hand-built nav. */

#wpadminbar ~ .topband { position: relative; }

/* Base the engine got from its own reset: nothing wider than its column. */
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
input, textarea, select, button { box-sizing: border-box; max-width: 100%; }
.article-body .wp-block-image, .article-body figure { max-width: 100%; }

.sbox form.np-search { display: block; }
.sbox .field input[type="search"] { }

.secs-in .current-menu-item > a, .secs-in .current_page_item > a { box-shadow: inset 0 -3px 0 var(--lilac); padding: 14px 0 11px; color: var(--violet); }
.secs-in li { list-style: none; display: inline-block; }
.secs-in ul { display: flex; gap: 26px; margin: 0; padding: 0; }

/* native WP comments, styled to sit inside .story */
.story .comments-area { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--head); }
.story .comments-title, .story .comment-reply-title { font: 600 27px var(--font-head); margin: 0 0 18px; color: var(--head); }
.story .comment-list { list-style: none; margin: 0; padding: 0; }
.story .comment-list .comment { border-top: 1px solid var(--rule); padding: 16px 0; }
.story .comment-list .children { list-style: none; margin: 0 0 0 28px; padding: 0; }
.story .comment-author .fn { font: 600 15px var(--font-ui); color: var(--head); font-style: normal; }
.story .comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.story .comment-metadata { font-size: 12.5px; color: var(--muted); }
.story .comment-metadata a { color: var(--muted); }
.story .comment-content p { font: 400 16px/1.6 var(--font-head); margin: 8px 0 0; }
.story .comment-content { overflow-wrap: anywhere; }
.story .reply a { font: 700 13px var(--font-ui); color: var(--violet); }
.story .comment-form { margin-top: 10px; }
.story .comment-form p { margin: 0 0 14px; }
.story .comment-form label { display: block; font: 700 12px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.story .comment-form input[type="text"], .story .comment-form input[type="email"], .story .comment-form input[type="url"], .story .comment-form textarea {
  width: 100%; border: 2px solid var(--rule); border-radius: 10px; padding: 11px 14px; font: 400 16px var(--font-body); color: var(--ink); background: var(--surface);
}
.story .comment-form input:focus, .story .comment-form textarea:focus { outline: none; border-color: var(--head); }
.story .comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.story .comment-form .comment-form-cookies-consent label { display: inline; font: 400 13.5px/1.4 var(--font-ui); letter-spacing: 0; text-transform: none; margin: 0; }
.story .comment-form .comment-form-cookies-consent input { margin-top: 2px; }
.story .comment-respond { margin-top: 28px; }
.story .comment-form .form-submit input[type="submit"] {
  background: var(--purple); color: #fff; font-weight: 800; padding: 12px 22px; border: 0; border-radius: 999px; font-size: 15.5px; cursor: pointer;
}
.story .comment-awaiting-moderation { color: var(--violet); font-weight: 700; font-size: 13px; }
.story .comment-navigation { display: flex; justify-content: space-between; font: 700 13.5px var(--font-ui); margin-bottom: 10px; }
.story .no-comments { color: var(--muted); font-size: 14.5px; }

/* ---------- images: whole 1.91:1 cover cards, never cropped ----------
   Covers are 1200x628 with the headline baked in. Every frame keeps that shape
   and uses contain, so a native cover fills it exactly and anything else
   (portraits, square logos) is letterboxed on a neutral tint instead of cut. */
.mm-fig { display: block; position: relative; width: 100%; aspect-ratio: 1200 / 628; background: var(--tint2); border-radius: 6px; overflow: hidden; }
.mm-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; border-radius: 0; }
.np-lead .mm-fig { margin-bottom: 4px; border-radius: 8px; }
.np-sec .mm-fig, .desk .mm-fig { margin-bottom: 10px; }
.story .hero-img .mm-fig { border-radius: 8px; }
.story .hero-img img { border-radius: 0; }

/* Latest rows: text left, a small whole cover card right (1.91:1, not a square). */
.front { grid-template-columns: 290px minmax(0,1fr) 300px; }
.lt { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lt-text { flex: 1; min-width: 0; }
.lt-thumb { flex: none; width: 104px; margin-top: 3px; }
.lt-thumb .mm-fig { border-radius: 5px; }
@media (max-width: 1100px) { .front { grid-template-columns: minmax(0,1fr) 300px; } }
@media (max-width: 700px) { .lt-thumb { width: 120px; } .lt { gap: 14px; } }

/* ---------- weather alert (latest MoCoFeed alert, hidden when none) ---------- */
.wx-wrap { padding-top: 18px; }
.wx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: var(--tint); border-left: 5px solid var(--violet); border-radius: 10px; padding: 12px 18px; }
.wx-k { font: 800 12px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.wx-t { font: 600 18px/1.3 var(--font-head); color: var(--head); flex: 1 1 320px; }
.wx-t:hover { text-decoration: underline; text-decoration-color: var(--lilac); }
.wx-go { font: 700 13.5px var(--font-ui); color: var(--violet); border-bottom: 2px solid var(--lilac); white-space: nowrap; }
@media (max-width: 700px) { .wx-wrap { padding-top: 14px; } .wx { padding: 11px 14px; } .wx-t { font-size: 16.5px; flex-basis: 100%; } }

/* ---------- ad slots: invisible until filled (or placeholders are on) ---------- */
.mm-ad-slot:empty { display: none; }
.mm-ad-slot { margin: 18px 0; text-align: center; }
.mm-ad-slot.is-placeholder { display: flex; align-items: center; justify-content: center; min-height: 250px; border: 1.5px dashed var(--rule); border-radius: 10px; background: repeating-linear-gradient(135deg, transparent 0 10px, var(--tint2) 10px 20px); }
.mm-ad-slot.is-placeholder span { font: 700 11px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.picks-rail .mm-ad-slot { margin: 6px 0 14px; }

/* ---------- static pages ---------- */
.look-nameplate .static-page .article-body p:empty { display: none; }
.look-nameplate .static-page .article-body h2 { font: 600 27px/1.25 var(--font-head); color: var(--head); margin: 28px 0 12px; }
.look-nameplate .static-page .article-body hr { border: 0; border-top: 1px solid var(--rule); margin: 30px 0; }

/* Deals: the page is two links to the deals databases; show them as cards. */
.page-deals .static-page .article-body { display: grid; gap: 16px; margin-top: 6px; }
.page-deals .static-page .article-body h2 { margin: 0; font: 500 19px/1.45 var(--font-head); color: var(--ink); background: var(--surface); border: 1.5px solid var(--rule); border-radius: 14px; padding: 20px 22px 20px 24px; position: relative; }
.page-deals .static-page .article-body h2:hover { border-color: var(--head); }
.page-deals .static-page .article-body h2 a { display: block; font: 600 23px/1.25 var(--font-head); color: var(--head); text-decoration: none; margin-top: 2px; }
.page-deals .static-page .article-body h2 a::after { content: "Open the database \2192"; display: block; margin-top: 12px; font: 800 14px var(--font-ui); color: var(--violet); }
.page-deals .static-page .article-body h2 a::before { content: ""; position: absolute; inset: 0; }
.page-deals .static-page .headline { margin-bottom: 6px; }
.page-deals .static-page .headline::after { content: "Local food and drink deals, updated by day of the week."; display: block; margin-top: 10px; font: 400 19px/1.45 var(--font-head); color: var(--muted); letter-spacing: 0; }

/* ---------- WPForms Lite, in the nameplate look ---------- */
.look-nameplate .wpforms-container {
  --wpforms-field-border-radius: 10px; --wpforms-field-border-size: 2px; --wpforms-field-border-color: var(--rule);
  --wpforms-field-background-color: var(--surface); --wpforms-field-text-color: var(--ink); --wpforms-field-size-input-height: 48px;
  --wpforms-field-size-font-size: 16px; --wpforms-field-size-padding-h: 14px;
  --wpforms-label-color: var(--head); --wpforms-label-size-font-size: 12.5px; --wpforms-label-sublabel-color: var(--muted);
  --wpforms-label-error-color: #B42318;
  --wpforms-button-background-color: var(--purple); --wpforms-button-text-color: #FFFFFF; --wpforms-button-border-radius: 999px;
  --wpforms-button-size-font-size: 16px; --wpforms-button-size-height: 48px; --wpforms-button-size-padding-h: 26px;
  --wpforms-page-break-color: var(--violet);
  max-width: 640px; margin: 8px 0 0 !important; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 24px 26px 8px !important;
}
.look-nameplate .wpforms-container .wpforms-field input.wpforms-field-medium, .look-nameplate .wpforms-container .wpforms-field textarea.wpforms-field-medium, .look-nameplate .wpforms-container .wpforms-field-row.wpforms-field-medium { max-width: 100% !important; }
.look-nameplate .wpforms-container .wpforms-field-label { font-family: var(--font-ui) !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; }
.look-nameplate .wpforms-container .wpforms-field-sublabel { font-family: var(--font-ui) !important; font-size: 12.5px !important; }
.look-nameplate .wpforms-container input:focus, .look-nameplate .wpforms-container textarea:focus { border-color: var(--head) !important; box-shadow: 0 0 0 4px var(--tint) !important; }
.look-nameplate .wpforms-container button[type=submit] { font-family: var(--font-ui) !important; font-weight: 800 !important; }
.look-nameplate .wpforms-container button[type=submit]:hover { background: var(--violet) !important; }
.look-nameplate .wpforms-confirmation-container-full { background: var(--tint) !important; border: 1px solid var(--lilac) !important; color: var(--head) !important; border-radius: 12px; font: 500 17px var(--font-head); }
@media (max-width: 700px) { .look-nameplate .wpforms-container { padding: 18px 16px 4px !important; } }

@media (max-width: 700px) {
  .page-deals .static-page .article-body h2 a { font-size: 20px; }
}

/* Deals databases (TablePress table 5 and friends): give wide tables room on
   desktop; on phones the table scrolls sideways inside its own box. */
.look-nameplate .static-page:has(table.tablepress), .look-nameplate .static-page:has(.wp-block-table) { max-width: 1140px; }
.look-nameplate .static-page table.tablepress { font-size: 15px; }
.look-nameplate .static-page table.tablepress thead th { background: var(--tint); color: var(--head); }

/* ---------- sister sites (MoCoFeed big in the rail; MarylandFeed and Capital
   Sideline small, side by side) and curator picks, as on the engine preview.
   Pictures keep their whole 1.91:1 shape, never cropped. ---------- */
.np-rail { align-self: start; min-width: 0; }
.np-rail .mm-ad-slot { margin: 16px 0 0; }
.mf-rail { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; }
.mf-rail .pk-head h2 { font-size: 22px; margin-bottom: 4px; }
.mf-i { display: block; padding: 11px 0; border-top: 1px solid var(--rule); }
.mf-i-img { border-top: 0; padding-top: 6px; }
.sf-img { display: block; position: relative; aspect-ratio: 1200 / 628; border-radius: 6px; overflow: hidden; background: var(--tint2); margin: 4px 0 8px; }
.sf-img img, .sf-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.sf-t { display: block; font: 600 15.5px/1.3 var(--font-head); color: var(--head); }
.sf-i:hover .sf-t, .mf-i:hover .sf-t { text-decoration: underline; text-decoration-color: var(--lilac); text-underline-offset: 3px; }
.sf-w { display: block; font: 500 12px var(--font-ui); color: var(--muted); margin-top: 4px; }
.sf-more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 13.5px; color: var(--violet); border-bottom: 2px solid var(--lilac); }
.sisters-wrap { padding-bottom: 8px; }
.sf-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px; border-top: 1px solid var(--rule); padding-top: 24px; }
.sf-small .sf-head { margin-bottom: 8px; }
.sf-k { font: 700 12px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.sf-small .sf-i { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--rule); }
.sf-text { min-width: 0; flex: 1; }
.sf-small .sf-t { font: 500 16px/1.3 var(--font-head); }
.sf-thumb { flex: none; position: relative; width: 120px; aspect-ratio: 1200 / 628; border-radius: 5px; overflow: hidden; background: var(--tint2); margin-top: 2px; }
.picks-band { padding: 30px 0; margin-top: 24px; border-top: 1px solid var(--rule); }
.pk-band-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px 28px; }
.pk-band-grid .pk { border-top: 1px solid var(--rule); }
@media (max-width: 1100px) { .pk-band-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .np-rail { order: 4; }
  .sf-row { grid-template-columns: 1fr; gap: 30px; }
  .sf-row > .sf-small + .sf-small { border-top: 1px solid var(--rule); padding-top: 22px; }
  .sf-thumb { width: 110px; }
  .picks-band { display: none; }
}

/* ---------- pictures of other shapes: a soft blurred copy behind (fig_backdrop = blur) ---------- */
.mm-fig.is-odd::before { content: ""; position: absolute; inset: -24px; background-image: var(--fig-bg); background-size: cover; background-position: center; filter: blur(16px) brightness(.6) saturate(1.15); transform: scale(1.08); }
.mm-fig--thumb.is-odd::before { inset: -10px; filter: blur(7px) brightness(.6) saturate(1.15); }
.mm-fig.is-odd img { z-index: 1; }
.sf-img.is-odd::before, .sf-thumb.is-odd::before { content: ""; position: absolute; inset: -12px; background-image: var(--fig-bg); background-size: cover; background-position: center; filter: blur(9px) brightness(.6) saturate(1.15); transform: scale(1.08); }
.sf-img.is-odd img, .sf-thumb.is-odd img { z-index: 1; }

/* ---------- missing persons strip ---------- */
.mp-wrap { padding-top: 14px; }
.mp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; background: var(--mp-bg, #FFF4EA); border-left: 5px solid var(--mp-rule, #C2410C); border-radius: 10px; padding: 12px 18px; }
.mp-k { font: 800 12px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--mp-ink, #9A3412); }
.mp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 320px; }
.mp-list a { font: 600 17px/1.3 var(--font-head); color: var(--head); }
.mp-list a:hover { text-decoration: underline; }
.mp-w { font: 500 13px var(--font-ui); color: var(--muted); margin-left: 4px; }
.mp-ask { font: 600 13.5px var(--font-ui); color: var(--mp-ink, #9A3412); }

/* ---------- small newsletter signup (in the homepage rail) ---------- */
.nl-box { margin-top: 18px; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.nl-box .lbl { margin-bottom: 6px; }
.nl-form { max-width: 100%; overflow: hidden; }
.nl-form .formkit-form { max-width: 100% !important; }

/* ---------- desktop: "Share a story" as a compact bar beside the search box ----------
   Owner 2026-11-25: on desktop the card sits next to the search, no taller than the
   search row (kicker + headline, the button, and the second link when it fits).
   Tablets (701-900px) and phones keep the full card. */
@media (min-width: 901px) {
  .hero { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "q q" "s t"; column-gap: 24px; row-gap: 0; align-items: center; }
  .hero > .ask { display: contents; }
  .hero .ask-top { grid-area: q; }
  .hero .sbox { grid-area: s; }
  .hero .tip-hero { grid-area: t; align-self: stretch; display: grid; grid-template-columns: auto auto; grid-template-areas: "k act" "h act"; align-content: center; align-items: center; column-gap: 20px; row-gap: 2px; padding: 0 14px 0 18px; border-radius: 12px; }
  .hero .tip-hero .tip-k { grid-area: k; font-size: 11px; letter-spacing: .12em; line-height: 1.2; }
  .hero .tip-hero .tip-h { grid-area: h; font-size: 21px; line-height: 1.05; margin: 0; white-space: nowrap; }
  .hero .tip-hero .tip-p { display: none; }
  .hero .tip-hero .tip-act { grid-area: act; flex-wrap: nowrap; gap: 16px; }
  .hero .tip-hero .tip-btn { padding: 9px 16px; font-size: 14.5px; white-space: nowrap; }
  .hero .tip-hero .tip-alt { display: none; }
}

/* ---------- seasonal Holiday band (homepage, under the menu; inc/holiday-band.php) ----------
   A featured promo in the site's dark palette color, not an alert. The seasonal
   touch is a ribbon of diagonal stripes down the left edge. One row on desktop. */
.hb-wrap { padding-top: 18px; }
.hb { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; padding: 12px 22px 12px 34px; border-radius: 14px; background: var(--purple); color: #fff; overflow: hidden; }
.hb::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(135deg, var(--lilac) 0 6px, transparent 6px 12px); opacity: .85; }
.hb-head { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.hb-k { font: 800 11.5px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--hb-kicker, var(--lilac)); }
.hb-t { font: 600 23px/1.1 var(--font-head); color: #fff; white-space: nowrap; }
.hb-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-p { flex: 1 1 220px; margin: 0; font: 400 16.5px/1.35 var(--font-head); color: var(--on-dark-soft); }
.hb-act { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.hb-btn { background: var(--lilac); color: var(--on-lilac); font: 800 15px var(--font-ui); padding: 10px 20px; border-radius: 999px; white-space: nowrap; }
.hb-btn:hover { background: var(--lilac-hover); }
.hb-l { font: 600 14px var(--font-ui); color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (min-width: 701px) and (max-width: 1179px) { .hb-p { display: none; } }
@media (max-width: 700px) {
  .hb-wrap { padding-top: 14px; }
  .hb { gap: 8px 16px; padding: 14px 16px 16px 26px; }
  .hb::before { width: 9px; }
  .hb-t { font-size: 21px; white-space: normal; }
  .hb-p { flex-basis: 100%; font-size: 15.5px; }
  .hb-act { margin-left: 0; width: 100%; gap: 10px 18px; }
}

/* ---------- menu links to a sister site: a small tag (e.g. "MM") ---------- */
.nav-tag { display: inline-block; margin-left: 5px; padding: 1px 4px 0; border: 1px solid currentColor; border-radius: 4px; font: 800 9.5px/1.35 var(--font-ui); letter-spacing: .06em; color: var(--violet); vertical-align: 2px; opacity: .9; }
.secs a:hover .nav-tag { opacity: 1; }
@media (max-width: 700px) { .nav-tag { margin-left: 4px; font-size: 9px; } }
