/* Comparison pages on phones: a calmer page. Desktop is untouched — everything is inside the phone breakpoint.
   Hides secondary text and repeats; keeps every number a visitor acts on. (Approved from the draft, 2026-10-25.) */
@media (max-width: 640px) {
  /* top: no ticker line; the first line under the header gets room to breathe */
  .tk { display: none; }
  .ed-hero .ed-eyebrow-row { margin-top: 14px; }

  /* hero: headline, team size, map — drop the second sentence */
  .ed-built span { display: none; }
  .ed-mapcard-head .ed-eyebrow:first-child { display: none; }
  /* team-size box: a narrower number so "on your team" never runs into the button */
  .ed-zip .in { gap: 6px; padding: 0 6px; }
  .ed-zip .in #teamsize { width: 1.9em; font-size: 15px; }

  /* "your plan to switch": titles and buttons only */
  .ed-todo-card p { display: none; }
  .ed-todo { gap: 10px; }
  .ed-todo-card { padding: 16px 18px; }
  .ed-todo-card h3 { margin: 6px 0 12px; }

  /* money: the big number and bars, no stat grid, no long note, no share banner */
  .ed-mcard .dk-stats { display: none; }
  #money .ed-note, .ed-outrage { display: none; }
  .ed-money-auto { display: none; }

  /* score bars: keep the bar, drop the double legends and footnotes */
  .ed-ctl-legend, #features > .ed-wrap > .ed-note, #ai > .ed-wrap > .ed-note { display: none; }
  #features .ed-small, #ai .ed-small { display: none; }

  /* price and AI boards: only the key (pink) chips per company */
  .ed-board .ed-rchip:not(.feat) { display: none; }
  .ed-board .ed-chips { max-height: none; }
  .ed-board .ed-bcol { padding-bottom: 8px; }

  /* directory: compact rows — icon, name, lean tag */
  .dir-comp, .dir-hero .dir-lede { display: none; }
  .dir-h { font-size: 32px; margin-bottom: 10px; }
  .dir-hero { padding-bottom: 18px; gap: 0; }
  .dir-card .dir-mid { display: none; }
  .dir-card { padding: 12px 14px; }
  .dir-av { width: 44px; height: 44px; }
  .dir-av svg { width: 20px; height: 20px; }
  .dir-grid { gap: 8px; }
  .dir-row2 .dir-sort { display: none; }

  /* follow area: the follow box only */
  .ed-engage .ed-prep { display: none; }

  /* methodology: no coverage lines */
  .ed-method .ed-cov { display: none; }

  /* references: folded into "References (N)" by follow.js; a reference number opens it */
  .ed-refs details > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
    font: 700 11px/1.6 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #6E6660;
    padding: 14px 16px; border: 1px solid #EAE2D6; border-radius: 12px; background: #fff; }
  .ed-refs details > summary::-webkit-details-marker { display: none; }
  .ed-refs details[open] > summary { margin-bottom: 12px; }
  .ed-refs li { font-size: 12px; }

  /* footer: brand, Product and Compare */
  .sf-top { grid-template-columns: 1fr 1fr; padding: 36px 0 28px; gap: 24px 16px; }
  .sf-col:nth-of-type(4), .sf-col:nth-of-type(5) { display: none; }
  .sf-brand p { font-size: 17px; margin: 12px 0 16px; }
}
/* small phones (360px and below 375): a slightly smaller map so the right-hand tiles stay inside the card */
@media (max-width: 374px) {
  .ed-hero-grid { --t: 21px; }
  .ed-tilemap { width: 300px; height: 200px; }
  .ed-tile { width: 22px; height: 22px; font-size: 7.5px; border-radius: 4px; }
}
