/* Tip ask (CONTEXT.md): the ask after a case story (or the closed-case notice), the About page's closing ask,
   and the phone action bar on case pages.
   What a button looks like (ink primary, outlined ghost) is shared with other buttons and stays in site.css until
   controls.css; this module sets the tip ask's layout and button sizes. !important only where it outranks the shared
   32px button size, which is itself !important. */

/* ---------- after a case story ---------- */
html[data-theme] .ncc-tip-card { display: flex; flex-direction: column; align-items: stretch; gap: 20px; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow:none; color: var(--ncc-ink); font-size: var(--ncc-step-small); line-height: 1.45; }
html[data-theme] .ncc-tip-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html[data-theme] .ncc-tip-card h2 { margin: 0 !important; color: var(--ncc-ink); font: 500 var(--ncc-step-title)/1.2 var(--ncc-serif) !important; }
html[data-theme] .ncc-tip-card p { margin: 0 !important; color: var(--ncc-muted); text-wrap: pretty; }
html[data-theme] .ncc-tip-card p.ncc-muted { color: var(--ncc-secondary); font-size: var(--ncc-step-body); line-height: 1.5; }
html[data-theme] .ncc-tip-card p.ncc-tip-ref { color: var(--ncc-muted); font-size: var(--ncc-step-small); line-height: 1.45; }
html[data-theme] .ncc-tip-card p.ncc-urgent { color: var(--ncc-ink); font-size: var(--ncc-step-body); font-weight: 500; line-height: 1.5; } /* missing persons: the 911 line reads as an instruction, not a note */
html[data-theme] .ncc-tip-ref span { color: var(--ncc-ink); font-variant-numeric: tabular-nums; }
html[data-theme] .ncc-tip-card .ncc-actions { display: none; } /* case pages: the buttons alone; the Contact page lists the channels */
html[data-theme] .ncc-tip-buttons { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
html[data-theme] .ncc-tip-card .ncc-tip-buttons .ncc-button { position: relative; width: auto; min-height: 0; height: 44px !important; padding: 0 20px !important; font-size: var(--ncc-step-small) !important; }
html[data-theme] .ncc-tip-card .ncc-tip-buttons .ncc-button::before { content: ""; position: absolute; inset: 0; }
html[data-theme] .ncc-tip-card .ncc-tip-buttons .ncc-button { gap: 8px; }
html[data-theme] .ncc-tip-card .ncc-tip-buttons .ncc-button > svg { flex: none; width: 18px; height: 18px; } /* the message and phone glyphs, ahead of the label */
html[data-theme] .ncc-tip-card .ncc-tip-buttons .ncc-button--ghost { transition: box-shadow var(--ncc-dur-fade) ease-out, scale var(--ncc-dur-release) var(--ncc-ease-out); }

@media (max-width: 767px) {
  html[data-theme] .ncc-tip-card { gap: 16px; }
  html[data-theme] .ncc-tip-card h2 { font-size: var(--ncc-step-title) !important; line-height: 1.25 !important; }
  html[data-theme] .ncc-tip-text { gap: 4px; }
  html[data-theme] .ncc-tip-buttons { flex-direction: column; gap: 10px; }
  html[data-theme] .ncc-tip-card .ncc-tip-buttons .ncc-button { width: 100%; height: 52px !important; border-radius: var(--ncc-radius-control) !important; font-size: var(--ncc-step-small) !important; font-weight: 500; }
  html[data-theme] .ncc-tip-card .ncc-tip-buttons .ncc-button::before { display: none; }
  html[data-theme] .ncc-tip-card .ncc-tip-buttons .ncc-button--ghost { box-shadow:none !important; }
  html[data-theme] .ncc-tip-ref { display: none; }
}

/* ---------- About: the closing ask ---------- */
html[data-theme] .ncc-about-cta-buttons { display: flex; gap: 8px; }
html[data-theme] .ncc-about-cta-buttons .ncc-button { height: 44px !important; padding: 0 20px !important; font-size: var(--ncc-step-small) !important; }

@media (max-width: 767px) {
  html[data-theme] .ncc-about-cta-buttons { flex-direction: column; width: 100%; gap: 10px; }
  html[data-theme] .ncc-about-cta-buttons .ncc-button { width: 100%; height: 52px !important; border-radius: var(--ncc-radius-control) !important; font-size: var(--ncc-step-small) !important; font-weight: 500; }
}

.ncc-tip-cta { margin: 0; }
