/* 0.2.364.0-preview polish (lib/polish-364.js). Every rule needs html[data-pol~="..."], which is only written when that switch is on.
   No color, wording or layout-order change. */

/* HQ_POLISH_WRAP: break at word gaps. "anywhere" let table cells, tabs and headings split normal words ("EXAMPL / E INSUR / ANCE").
   break-word keeps a whole word together and still breaks a single word that is longer than its line (a long code or URL). */
html[data-pol~="wrap"] :is(h1,h2,h3,h4,th,td,dt,button,summary,label,.btn,.chip,.hq-tabs a,.dir-row-t,.pg-hero,.pg-hero *,.report-head,.report-head *,.hq264-val,.fr-id dd){overflow-wrap:break-word!important;word-break:normal!important;hyphens:manual!important}
html[data-pol~="wrap"] .report-page table.rt2 td:first-child{overflow-wrap:break-word!important}

/* HQ_POLISH_CLIP: a placeholder that does not fit ends in an ellipsis; very narrow phones get a slightly smaller placeholder (the typed text is unchanged).
   The city pager wraps onto a second row, so Next is never off the edge. */
html[data-pol~="clip"] input::placeholder{text-overflow:ellipsis}
html[data-pol~="clip"] input:placeholder-shown{text-overflow:ellipsis}
@media (max-width:379px){html[data-pol~="clip"] body.hm-home #hq-q::placeholder{font-size:14px}}
html[data-pol~="clip"] .dir-pager,html[data-pol~="clip"] .dir-pager-row{overflow-x:visible!important}
html[data-pol~="clip"] .dir-pager-row,html[data-pol~="clip"] .dir-pager-nums{flex-wrap:wrap!important;row-gap:8px}

/* HQ_POLISH_TABLES (0.2.364.1-preview, design pass Nov 17 2026).
   601px and up: a normal table that fits its box. Long headers ("Filing anniversary") wrap at the word gap and the cells sit a little
   closer, so every column is fully visible. A table that still cannot fit may be swiped inside its box (soft shadow on the side with more).
   Phone (600px and down): tables marked .pol-stack by lib/polish-364.js show each row as a small card of "label  value" lines. The label is
   the column's own header word (data-label). Nothing swipes and no column is cut off. No new colors: the card uses the table box's own
   white, line color and corner. */
html[data-pol~="tables"] .table-wrap{max-width:100%}
html[data-pol~="tables"] .table-wrap>table.rt2 th{white-space:normal!important;padding-left:6px;padding-right:6px;letter-spacing:.02em}
html[data-pol~="tables"] .table-wrap>table.rt2 td{padding-left:6px;padding-right:6px}
html[data-pol~="tables"] table.rt2 td[data-pol-nw]{white-space:nowrap!important}
@media (min-width:601px){
  html[data-pol~="tables"] .table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    background:linear-gradient(to right,#fff 40%,rgba(255,255,255,0)) left center/36px 100% no-repeat local,
               linear-gradient(to left,#fff 40%,rgba(255,255,255,0)) right center/36px 100% no-repeat local,
               linear-gradient(to right,rgba(15,29,51,.22),rgba(15,29,51,0)) left center/12px 100% no-repeat scroll,
               linear-gradient(to left,rgba(15,29,51,.22),rgba(15,29,51,0)) right center/12px 100% no-repeat scroll,#fff!important}
  html[data-pol~="tables"] .table-wrap>table,html[data-pol~="tables"] .table-wrap>table.rt2 th{background:transparent}
}
@media (max-width:600px){
  html[data-pol~="tables"] .table-wrap:has(>table.pol-stack){overflow:visible!important;border:0!important;background:transparent!important;border-radius:0!important}
  html[data-pol~="tables"] table.rt2.pol-stack,html[data-pol~="tables"] table.rt2.pol-stack tbody{display:block;width:100%!important;min-width:0!important}
  html[data-pol~="tables"] table.rt2.pol-stack thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  html[data-pol~="tables"] table.rt2.pol-stack tr{display:block;margin:0 0 8px;padding:2px 12px;background:#fff;border:1px solid var(--line);border-radius:10px}
  html[data-pol~="tables"] table.rt2.pol-stack tr:last-child{margin-bottom:0}
  html[data-pol~="tables"] table.rt2.pol-stack td{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:8px 0!important;border-bottom:1px solid var(--line);font-size:14px;line-height:1.35;text-align:right;white-space:normal;overflow-wrap:break-word;word-break:normal}
  html[data-pol~="tables"] table.rt2.pol-stack td:last-child{border-bottom:0}
  html[data-pol~="tables"] table.rt2.pol-stack td::before{content:attr(data-label);flex:0 0 40%;max-width:40%;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;line-height:1.35;color:var(--muted);overflow-wrap:break-word}
}

/* HQ_POLISH_FOOTER: the added footer spans the page like it does elsewhere, and clears the report's bottom bar */
html[data-pol~="footer"] footer[data-pol-footer]{clear:both;margin-top:24px}

/* HQ_POLISH_ICONS: one small navy mark where an emoji was (decorative; the label next to it says what it is) */
html[data-pol~="icons"] .pol-ic{display:inline-block;width:.62em;height:.62em;margin:0 .35em 0 .05em;border-radius:2px;background:#172946;box-shadow:inset 0 -.2em 0 #F79B07;vertical-align:.08em}
