/* =====================================================================
   Edgewater Insider — v0.2.3.1 report additions  (CONSOLIDATED)
   Load AFTER edgewater-shared.css (and after edgewater-v0.2-additions.css
   if present). This file SUPERSEDES edgewater-v0.2.2-additions.css —
   load this one instead of the 0.2.2 file to avoid duplicate rules.

   Scoped entirely under .amr-ew. Contents:
     1. Justified body copy (prose/commentary only)
     2. Micro-market anchor navigation
     3. Micro-market sections
     4. Compact tables + horizontal scroll on mobile
     5. Date column no-wrap
     6. Mobile responsiveness (cards, sections, newsletter on dark)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. JUSTIFIED BODY COPY  (prose + editorial commentary ONLY)
   Not applied to headings, buttons, table cells, form labels, KPI cards,
   breadcrumbs, eyebrows, or stat lines.
   --------------------------------------------------------------------- */
.amr-ew p,
.amr-ew .ew-card p,
.amr-ew .ew-note,
.amr-ew .ew-copy,
.amr-ew .ew-copy p,
.amr-ew .ew-story,
.amr-ew .ew-interp p,
.amr-ew .ew-lede,
.amr-ew .ew-methodology {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hanging-punctuation: first last;
}

.amr-ew h1, .amr-ew h2, .amr-ew h3, .amr-ew h4,
.amr-ew .ew-eyebrow,
.amr-ew .ew-card-kicker,
.amr-ew .ew-card h3,        /* KPI value lives in an <h3> — keep unjustified */
.amr-ew .ew-crumb,
.amr-ew .ew-mm-stats,
.amr-ew .ew-mm-nav,
.amr-ew .ew-btn,
.amr-ew th, .amr-ew td,
.amr-ew label,
.amr-ew caption {
  text-align: left;
  text-justify: auto;
  hyphens: manual;
}

@media (max-width: 640px) {
  .amr-ew p,
  .amr-ew .ew-copy,
  .amr-ew .ew-copy p,
  .amr-ew .ew-interp p,
  .amr-ew .ew-note,
  .amr-ew .ew-methodology,
  .amr-ew .ew-lede {
    text-align: left;
    hyphens: manual;
  }
}

/* ---------------------------------------------------------------------
   2. MICRO-MARKET ANCHOR NAVIGATION  (crawlable in-page anchors, no JS)
   --------------------------------------------------------------------- */
.amr-ew .ew-mm-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 0 0 28px; padding: 14px 16px;
  background: var(--ew-paper-2, #f4f6fb);
  border: 1px solid var(--ew-line, #e3e7f0); border-radius: 10px;
}
.amr-ew .ew-mm-nav > span {
  font-family: var(--ew-font-head, "Oswald", sans-serif);
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  color: var(--ew-ink-faint, #6b7280); margin-right: 2px;
}
.amr-ew .ew-mm-nav a {
  display: inline-block; padding: 5px 12px; font-size: 14px; line-height: 1.2;
  color: var(--ew-primary, #4A60A1); background: #fff;
  border: 1px solid var(--ew-line, #e3e7f0); border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.amr-ew .ew-mm-nav a:hover,
.amr-ew .ew-mm-nav a:focus {
  background: var(--ew-primary, #4A60A1); border-color: var(--ew-primary, #4A60A1); color: #fff;
}

/* ---------------------------------------------------------------------
   3. MICRO-MARKET SECTIONS
   --------------------------------------------------------------------- */
.amr-ew .ew-mm-section {
  scroll-margin-top: 90px; padding: 22px 0 8px;
  border-top: 1px solid var(--ew-line, #e3e7f0); margin-top: 8px;
}
.amr-ew .ew-mm-section:first-of-type { border-top: 0; }
.amr-ew .ew-mm-title {
  font-family: var(--ew-font-head, "Oswald", sans-serif);
  font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 6px; color: var(--ew-ink, #1f2433);
}
.amr-ew .ew-mm-stats { margin: 0 0 14px; font-size: 14px; color: var(--ew-ink-faint, #6b7280); }

/* ---------------------------------------------------------------------
   4. TABLES — compact variant + horizontal scroll wrapper
   .ew-table-wrap should wrap every table so wide tables scroll, not bleed.
   --------------------------------------------------------------------- */
.amr-ew .ew-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.amr-ew .ew-table { width: 100%; border-collapse: collapse; }
.amr-ew .ew-table-compact { font-size: 14px; }
.amr-ew .ew-table-compact th,
.amr-ew .ew-table-compact td { padding: 8px 10px; }
.amr-ew .ew-table-compact thead th { font-size: 11px; letter-spacing: .06em; }

/* ---------------------------------------------------------------------
   5. DATE COLUMN — never wrap "2026-05-21" mid-value
   --------------------------------------------------------------------- */
.amr-ew .ew-nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------------
   6. JUMP LINKS
   --------------------------------------------------------------------- */
.amr-ew .ew-jump { margin: 10px 0 4px; font-size: 13px; }
.amr-ew .ew-jump a {
  color: var(--ew-ink-faint, #6b7280); text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.amr-ew .ew-jump a:hover, .amr-ew .ew-jump a:focus { color: var(--ew-primary, #4A60A1); }
.amr-ew #full-table { scroll-margin-top: 90px; }

/* ---------------------------------------------------------------------
   7. MOBILE RESPONSIVENESS
   Cards stay inside their container; grids collapse; sections stack;
   newsletter stays readable on its dark background.
   --------------------------------------------------------------------- */
.amr-ew .ew-grid { display: grid; gap: 16px; }
.amr-ew .ew-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amr-ew .ew-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.amr-ew .ew-card,
.amr-ew .ew-interp { min-width: 0; }            /* prevent grid blowout / bleed */
.amr-ew .ew-card h3 { overflow-wrap: anywhere; }/* long "highest sale" value wraps cleanly */

@media (max-width: 900px) {
  .amr-ew .ew-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amr-ew .ew-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .amr-ew .ew-grid-3,
  .amr-ew .ew-grid-4 { grid-template-columns: 1fr; }
  .amr-ew .ew-hero .ew-btns { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .amr-ew .ew-mm-stats { font-size: 13px; }
}

/* Newsletter block: ensure text/inputs remain legible on the dark panel. */
.amr-ew .ew-news { overflow: hidden; }
.amr-ew .ew-news, .amr-ew .ew-news h2, .amr-ew .ew-news p, .amr-ew .ew-news .ew-eyebrow { color: #fff; }
.amr-ew .ew-news input[type="text"],
.amr-ew .ew-news input[type="email"],
.amr-ew .ew-news .wpforms-field input {
  background: #fff; color: var(--ew-ink, #1f2433); border: 1px solid rgba(255,255,255,.6);
  max-width: 100%;
}
.amr-ew .ew-news .wpforms-field-label { color: #fff; }

/* ---------------------------------------------------------------------
   Admin generator renders in wp-admin (NOT inside .amr-ew), so none of the
   above affects it; admin styling stays inline in the plugin.
   --------------------------------------------------------------------- */
