/* Linked only on compact touch screens. No device detection or hydration is required. */
html :is(.atlas-lead, .atlas-manager-tools, .atlas-directory, .atlas-portfolio-title, .atlas-summary, .atlas-chart,
  .atlas-holdings, .atlas-short-disclosure, .atlas-watch-updates, .atlas-dialog, .ownership-timeline, .ohb-panel,
  .dc-filings, .dc-document, .dc-search-results, .ip-summary, .ip-records, .it-stat-grid, .it-book,
  .np-stat-grid, .np-holdings, .np-scope-note, .np-method, .np-warnings,
  .md-panel, .md-warnings, .macro-indicator-card, .market-stat, .market-symbol-results) {
  --ink: #fff;
  --muted: #fff;
}
html .atlas-lead :is(.atlas-hero p, .atlas-coverage > span), html .atlas-primary { color: #fff; }

html .atlas-app :is(.atlas-search,.np-search-box,.np-holding-search,.dc-search-input,.it-search-box,.ip-searchbox,
  .dc-reader-tools,.dc-original-tools,.ohb-controls,.market-symbol-search,.it-filters) input:is([type='search'],:not([type])) {
  min-width:0; max-width:100%; font-size:16px;
}

html :is(.atlas-frame, .research-main, .research-header-inner, .research-footer-inner) { min-width: 0; overflow-wrap: anywhere; }
html :is(.atlas-frame, .research-main) :is(form, select, fieldset, section, article, aside, nav, header, dl, li) { min-width: 0; max-width: 100%; }
html :is(.atlas-status-controls, .it-tabs, .ip-record-tabs, .dc-section-nav, .md-category-tabs, .hw-tabs, .dc-original-tools, .market-chain-filters) {
  flex-wrap: wrap; overflow: visible; row-gap: 4px;
}
html .atlas-app .dc-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr)); overflow: visible; }
html .atlas-app .dc-categories button { min-width: 0; }
html .atlas-app .atlas-manager-tools form { flex: 1 1 20rem; }
html .atlas-app :is(.dc-search-results, .market-symbol-results) { max-width: 100%; }
html .atlas-app :is(.it-filters, .dc-list-filters) :is(input, select), html .hw-control select { width: 100%; min-width: 0; max-width: 100%; }
html .atlas-app :is(.atlas-dialog dl > div, .dc-workspace > *, .md-panel > *, .it-filters > label) { min-width: 0; }
html .atlas-app .atlas-dialog dd { white-space: normal; overflow-wrap: anywhere; }
html .atlas-app :is(.atlas-charts, .dc-workspace, .atlas-workspace) { grid-template-columns: minmax(0, 1fr); }
html .atlas-app .atlas-directory { position: static; }
html .atlas-app .atlas-manager-list { max-height: 255px; }

html :is(.atlas-table-scroll, .md-table-scroll, .dc-table-scroll, .it-table-scroll, .ot-reporters-scroll,
  .research-table-wrap, .guide-table-wrap, .ohb-scroll):has(> table[data-mobile-records]) { overflow: visible; min-width: 0; max-width: 100%; }
html body :is(.atlas-app, .research-page) table[data-mobile-records] {
  display: block; width: 100%; min-width: 0; max-width: 100%; table-layout: auto; white-space: normal; position: relative;
}
html body :is(.atlas-app, .research-page) table[data-mobile-records] > caption { display: block; }
html body :is(.atlas-app, .research-page) table[data-mobile-records] > thead,
html body .hw-scroll[data-view='current'] .hw-table .hw-weight-cell {
  display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0;
  border: 0; clip-path: inset(50%); white-space: nowrap;
}
html body :is(.atlas-app, .research-page) table[data-mobile-records] > tbody { display: block; width: 100%; }
html body :is(.atlas-app, .research-page) table[data-mobile-records] > tbody > tr {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px;
  width: 100%; min-width: 0; padding: 14px 12px; border-bottom: 1px solid var(--frame-line);
}
html body :is(.atlas-app, .research-page) table[data-mobile-records] > tbody > tr > :is(th, td):nth-child(n) {
  display: block; width: auto; min-width: 0; max-width: 100%; margin: 0;
  padding: 0; border: 0; text-align: start; white-space: normal; overflow-wrap: anywhere;
}
html body :is(.atlas-app, .research-page) table[data-mobile-records] > tbody > tr > :is(th[scope='row'], td[colspan], .hw-asset-cell) { grid-column: 1 / -1; }
html body :is(.atlas-app, .research-page) table[data-mobile-records] :is(button, a, small, strong, time) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
html body :is(.atlas-app, .research-page) table[data-mobile-records] td[data-label]::before {
  content: attr(data-label); display: block; margin: 0 0 4px;
  color: var(--muted); font: 600 12px/1.55 var(--font-sans); overflow-wrap: anywhere;
}
html body .hw-scroll[data-view='current'] .hw-table .hw-asset-cell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
html body .hw-scroll[data-view='current'] .hw-mobile-weight { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
html body .hw-scroll[data-view='changes'] .hw-table .hw-issuer-cell { grid-row: 1; }
html body .it-table th[scope='row'] { grid-row: 1; }
html .atlas-app .dc-comparison-basis { position: static; min-width: 0; max-width: 100%; }
html .atlas-app .dc-original-table { overflow: visible; }
html .atlas-app .dc-original-table :is(table, tbody) { display: block; width: 100%; min-width: 0; }
html .atlas-app .dc-original-table tr {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(90px, 100%), 1fr)); border-block-end: 1px solid var(--frame-line); padding-block: 6px;
}
html .atlas-app .dc-original-table td { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
html .atlas-app .dc-original-table td:first-child { grid-column: 1 / -1; }
html .atlas-app .dc-original-table td:not(:first-child)::before {
  content: attr(data-column) '열'; display: block; font: 550 11px/1.45 var(--font-sans); color: var(--muted);
}
html .atlas-app .dc-original-viewport { overflow-wrap: anywhere; }
html .atlas-app :is(.dc-original-block p, .dc-excerpt-text, .ip-registration-evidence blockquote) { white-space: pre-wrap; overflow-wrap: anywhere; }

html .atlas-app .thc-content { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-inline: 12px; }
html .atlas-app .thc-figure { justify-self: stretch; display: grid; place-items: center; }
html .atlas-app .hw-composition-overview { grid-template-columns: minmax(0, 1fr); }
html .atlas-app :is(.thc-ring, .asset-composition-ring) {
  position: relative; isolation: isolate; width: min(100%, 244px); height: auto; aspect-ratio: 1;
}
html .atlas-app :is(.thc-center, .asset-composition-center) {
  position: relative; z-index: 1; width: 48.333%; height: auto; aspect-ratio: 1; padding: 4px;
}
html .atlas-app .mobile-chart-ring {
  display: block !important; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
}
html .atlas-app .mobile-chart-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
html .atlas-app .mobile-chart-ring text { font: 750 12px/1 var(--font-sans); }
html .atlas-app .thc-entry { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; min-height: 44px; }
html .atlas-app .thc-entry .thc-marker, html .atlas-app .hw-composition-swatch { background: var(--slice-color) !important; }
html .atlas-app .thc-entry .thc-marker {
  width: 18px; height: 18px; display: grid; place-items: center; border-radius: 3px; box-shadow: inset 0 0 0 1px #ffffff60;
}
html .atlas-app .thc-marker[data-rank]::after { content: attr(data-rank); color: var(--slice-ink, #000); font: 750 12px/1 var(--font-sans); }
html .atlas-app .thc-mobile-ticker { display: inline !important; margin-right: 6px; color: #fff; font: 700 13px/1.5 var(--font-mono); }
html .atlas-app .thc-name { white-space: normal; overflow-wrap: anywhere; }
html .atlas-app .hw-composition-swatch { width: 10px; height: 10px; flex-basis: 10px; }
html .atlas-app .hw-composition-overview > .asset-composition-chart { border-right: 0; border-bottom: 1px solid var(--rule); }

@media (max-width: 600px) {
  html .atlas-app .atlas-header-inner, html .atlas-app .atlas-frame { padding-inline: clamp(10px, 3.3vw, 16px); }
  html .atlas-app .atlas-masthead { flex-wrap: wrap; gap: 5px 8px; padding-block: 8px; min-height: 58px; }
  html .atlas-app .atlas-header-source { margin-left: auto; }
  html .atlas-app .atlas-brand { font-size: clamp(22px, 6.8vw, 29px); }
  html .atlas-app .atlas-charts > .atlas-chart { padding: 12px; }
  html .atlas-app :is(.ip-record-heading, .it-book-heading, .md-panel-title, .hw-pagination, .atlas-short-disclosure) { flex-wrap: wrap; }
  html .atlas-app .atlas-manager-tools form, html .atlas-app .dc-original-tools form { flex: 1 1 100%; }
  html .atlas-app .atlas-manager-list { grid-template-columns: minmax(0, 1fr); }
  html .atlas-app .hw-composition-overview > .hw-composition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .atlas-app .hw-workspace .hw-composition-item > strong { overflow-wrap: anywhere; }
  html .atlas-app .atlas-dialog { width: calc(100% - 20px); max-width: calc(100% - 20px); padding-inline: 14px; }
  html .atlas-app :is(.it-filters,.np-contract-fields) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Recover space around large numbers without reducing labels, table rows or touch targets. */
html .atlas-app .atlas-summary { padding: 14px 10px; gap: 8px; }
html .atlas-app .atlas-summary > .atlas-metric { padding: 0 9px 8px; min-height: 0; }
html .atlas-app .atlas-summary > .atlas-metric > span { padding: 4px 9px; margin-inline: -9px; }
html .atlas-app .atlas-summary > .atlas-metric > strong {
  margin: 4px 0 3px; font-size: clamp(22px, 5.5vw, 27px); line-height: 1.15;
}
html .atlas-app :is(.np-stat-grid, .it-stat-grid, .ip-summary) > article { padding-block: 11px; }
html .atlas-app :is(.np-stat-grid, .it-stat-grid, .ip-summary) > article > strong { margin-block: 5px; }
html .atlas-app .atlas-hero { padding-block: 15px; }
html .atlas-app .atlas-hero-intro { padding-block: 5px 11px; }

@media (min-width: 650px) {
  html .atlas-app .ot-date-rail > i { right: 0; }
  html .atlas-app .ot-date-rail::after { right: 3px; }
  html .atlas-main-nav > a[aria-current='page']::before { inset-inline: 0; }
}
