/* Desktop retains native tables. Mobile labels are static markup, not script-generated. */
.r-table__label{display:none}
@media(max-width:1100px){
  body .article-table__scroll[data-table-layout]{max-width:100%;min-width:0;overflow:visible;overscroll-behavior:auto}
  body .article-table__scroll[data-table-layout]>table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
  body .article-table__scroll[data-table-layout] :is(th,td){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  body .article-table__scroll[data-table-layout="pair"] tr>:first-child{width:32%}
  body .article-table__scroll[data-table-layout="cards"]{border:0;border-radius:0}
  body .article-table__scroll[data-table-layout="cards"]>table{display:block;position:relative;border:0}
  body .article-table__scroll[data-table-layout="cards"] thead{display:block;position:absolute;left:0;top:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
  body .article-table__scroll[data-table-layout="cards"] tbody{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:12px}
  body .article-table__scroll[data-table-layout="cards"] tbody tr{display:block;min-width:0;border:1px solid var(--wk-line);border-radius:var(--r-sm);background:var(--wk-white);overflow:visible}
  body .article-table__scroll[data-table-layout="cards"] tbody :is(th,td){display:grid;grid-template-columns:minmax(5em,30%) minmax(0,1fr);gap:12px;width:auto;margin:0;padding:10px 12px;border:0;border-top:1px solid var(--wk-line)}
  body .article-table__scroll[data-table-layout="cards"] tbody tr>:first-child{display:block;padding:10px 12px;background:var(--wk-mist);border:0;border-radius:var(--r-sm) var(--r-sm) 0 0}
  body .article-table__scroll[data-table-layout="cards"] .r-table__label{display:block;min-width:0;color:var(--wk-ink-3);font-size:var(--fs-xs);line-height:inherit}
  body .article-table__scroll[data-table-layout="cards"] .r-table__value{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere}
}

/* Extend the existing brand comparison layout to landscape phones and tablets. */
@media(min-width:761px) and (max-width:1100px){

  body.brands-v2-page .cmp2[data-table-layout="brand"] { padding: 4px 16px; }
  body.brands-v2-page .cmp2[data-table-layout="brand"] table, body.brands-v2-page .cmp2[data-table-layout="brand"] tbody, body.brands-v2-page .cmp2[data-table-layout="brand"] tr, body.brands-v2-page .cmp2[data-table-layout="brand"] th, body.brands-v2-page .cmp2[data-table-layout="brand"] td { display: block; width: auto; }
  body.brands-v2-page .cmp2[data-table-layout="brand"] thead { display: none; }
  body.brands-v2-page .cmp2[data-table-layout="brand"] tbody tr { padding: 14px 0 12px; border-top: 1px solid var(--wk-line); }
  body.brands-v2-page .cmp2[data-table-layout="brand"] tbody:first-of-type tr:first-child { border-top: 0; }
  body.brands-v2-page .cmp2[data-table-layout="brand"] th, body.brands-v2-page .cmp2[data-table-layout="brand"] td { border-top: 0; padding: 0; }
  body.brands-v2-page .cmp2[data-table-layout="brand"] tbody th { margin-bottom: 8px; }
  body.brands-v2-page .cmp2[data-table-layout="brand"] tbody td { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); align-items: start; gap: 10px; padding: 4px 0; }
  /* 手机上每格前面写店名，店色小圆点画在店名前，和文字第一行对齐 */
  body.brands-v2-page .cmp2[data-table-layout="brand"] tbody td::before { content: none; }
  body.brands-v2-page .cmp2__label {
    display: block; min-width: 0; padding-left: 14px; white-space: normal; line-height: inherit;
    background: radial-gradient(circle, var(--c) 3.5px, transparent 4px) 0 50% / 8px 8px no-repeat;
    background-position: 0 .62em;
    font-family:var(--wk-font-latin-display); font-weight:400; font-size: .8125rem; letter-spacing: .02em; color: var(--wk-ink-2);
  ;--wk-emphasis-weight:700;--wk-medium-weight:400;--wk-semibold-weight:700;--wk-heavy-weight:700;}
  body.brands-v2-page .cmp2__group { padding: 12px 0 0 !important; border-top: 1px dashed var(--wk-line-strong) !important; }
  body.brands-v2-page .cmp2__group th { border: 0; padding: 0; }
  body.brands-v2-page .cmp2__work tr:not(.cmp2__group) { border-top: 0; padding-top: 8px; }

body.brands-v2-page .cmp2[data-table-layout="brand"]{min-width:0;max-width:100%;overflow:visible}
body.brands-v2-page .cmp2[data-table-layout="brand"] table{min-width:0;max-width:100%}
}
