/* explorer-trending-v2.css — scoped to resource 146 (Explorer Trending article).
   v1 content preserved verbatim (figure.ex-guide image ratio protection).
   v2 adds .ex-guide-pricing: a 4-column desktop table that converts to
   labelled stacked cards at narrow mobile widths, so no horizontal cramming.
   Unique selectors only; nothing shared with other articles. */

/* ---- v1 (unchanged): authentic 1440x900 capture keeps 16:10 proportions ---- */
figure.ex-guide{margin:1.75rem auto;max-width:760px}
figure.ex-guide img{display:block!important;width:100%!important;max-width:760px!important;height:auto!important;aspect-ratio:auto!important;max-height:none!important;object-fit:contain!important;object-position:center top;border-radius:10px}
figure.ex-guide figcaption{margin-top:.6rem;font-size:14px;line-height:1.45;opacity:.8}

/* ---- v2: pricing table ---- */
.ex-guide-pricing{margin:1.5rem 0}
.ex-guide-pricing table{width:100%!important;border-collapse:collapse;table-layout:auto}
.ex-guide-pricing th,.ex-guide-pricing td{text-align:left;vertical-align:top;padding:.7rem .8rem;line-height:1.4}
.ex-guide-pricing thead th{font-size:14px;letter-spacing:.01em;white-space:nowrap}
.ex-guide-pricing td{font-size:15px}
.ex-guide-pricing td:first-child{font-weight:600}

/* Desktop and tablet: traditional 4-column table. */
@media (min-width:721px){
  .ex-guide-pricing table{min-width:0}
}

/* Mobile: each row becomes a labelled card. Labels come from data-label. */
@media (max-width:720px){
  .ex-guide-pricing table,
  .ex-guide-pricing thead,
  .ex-guide-pricing tbody,
  .ex-guide-pricing tr,
  .ex-guide-pricing th,
  .ex-guide-pricing td{display:block!important;width:auto!important}
  .ex-guide-pricing thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;padding:0!important;margin:-1px!important}
  .ex-guide-pricing table{border:0!important}
  .ex-guide-pricing tbody tr{
    border:1px solid rgba(255,255,255,.14);
    border-radius:12px;
    padding:.85rem 1rem 1rem;
    margin:0 0 .85rem;
    background:rgba(255,255,255,.035);
  }
  .ex-guide-pricing tbody tr:last-child{margin-bottom:0}
  .ex-guide-pricing tbody td{
    border:0!important;
    padding:.3rem 0!important;
    font-size:15px;
    display:flex!important;
    gap:.75rem;
    align-items:baseline;
    justify-content:space-between;
  }
  .ex-guide-pricing tbody td:first-child{
    display:block!important;
    font-size:17px;
    font-weight:700;
    padding:0 0 .55rem!important;
    margin-bottom:.4rem;
    border-bottom:1px solid rgba(255,255,255,.1)!important;
  }
  .ex-guide-pricing tbody td:first-child::before{content:none!important}
  .ex-guide-pricing tbody td::before{
    content:attr(data-label);
    flex:0 0 auto;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.04em;
    opacity:.62;
    font-weight:600;
    white-space:nowrap;
  }
  .ex-guide-pricing tbody td > span{text-align:right;font-weight:600}
}

/* ---- v3: narrow-viewport body min-width floor release ----
   The global theme puts a 375px min-width floor on <body> (Tailwind
   .min-w-93\.75), which forces a horizontal scrollbar at 360px wide
   viewports and squeezes the pricing cards. Release it ONLY on this
   article: :has(.ex-guide-pricing) matches no other page, and the rule
   is further fenced behind a max-width:374px query so every viewport
   at or above 375px keeps the theme's own layout untouched. */
@media (max-width:374px){
  body:has(.ex-guide-pricing){min-width:0!important}
}
