/* telaHosting Domain Search. The comparison portal owns its own tokens. */
.thds-root,
.thds-compare-modal {
  --th-navy: #1a2b5d;
  --th-navy-2: #152348;
  --th-gold: #dd9933;
  --th-text: #17233b;
  --th-muted: #5b667a;
  --th-line: #e0e5ee;
  --th-soft: #f5f7fa;
  --th-white: #fff;
  --th-green: #167446;
  --th-radius: 12px;
  --th-shadow: 0 16px 45px rgba(21, 35, 72, .08);
  box-sizing: border-box;
  color: var(--th-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-align: start;
}
.thds-root {
  width: 100%; max-width: 100%; min-width: 0; isolation: isolate;
  container: thds-display / inline-size;
}
.thds-root *, .thds-root *::before, .thds-root *::after,
.thds-compare-modal *, .thds-compare-modal *::before, .thds-compare-modal *::after {
  box-sizing: border-box;
}
/* Visibility is an invariant for filtered rows, cells and dialog portals. */
.thds-root [hidden], .thds-root .thds-hidden, .thds-root .thds-compare-hidden,
.thds-compare-modal[hidden], .thds-compare-modal [hidden], .thds-compare-modal .thds-hidden {
  display: none !important;
}
.thds-root :is(button, input, select), .thds-compare-modal :is(button, input, select) {
  font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none;
}
.thds-root button, .thds-compare-modal button {
  appearance: none; margin: 0; cursor: pointer; box-shadow: none;
}
.thds-root :is(button, a, input, select):focus-visible,
.thds-compare-modal :is(button, a, input, select):focus-visible {
  outline: 3px solid var(--th-gold); outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--th-navy);
}
.thds-root :is(button, input, select):disabled,
.thds-compare-modal :is(button, input, select):disabled {
  opacity: .55; cursor: not-allowed;
}
.thds-root .screen-reader-text, .thds-compare-modal .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.thds-root .thds-section-head {
  margin: 0 0 20px; padding: 0; max-width: 760px;
}
.thds-root .thds-section-head h2 {
  color: var(--th-navy); margin: 8px 0 7px;
  font-size: clamp(24px, 3vw, 34px); font-weight: 750; line-height: 1.2;
  letter-spacing: -.025em; overflow-wrap: anywhere;
}
.thds-root .thds-section-head p {
  margin: 0; color: var(--th-muted); font-size: 14px; line-height: 1.6;
}
.thds-root .thds-kicker {
  display: inline-flex; align-items: center; gap: 7px; color: var(--th-navy);
  font-size: 11px; font-weight: 750; line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase;
}
.thds-root .thds-kicker::before {
  content: ""; width: 18px; height: 2px; background: var(--th-gold);
}

/* Search panels: dark toggle, light hero, split banner, compact and minimal. */
.thds-root.thds-search { max-width: 1120px; margin-inline: auto; }
.thds-root .thds-shell {
  --th-panel-text: #fff;
  --th-panel-muted: #dce2f0;
  --th-panel-wash: rgba(255, 255, 255, .08);
  --th-panel-line: rgba(255, 255, 255, .18);
  position: relative; min-width: 0; padding: 24px; color: var(--th-panel-text);
  border: 1px solid var(--th-navy-2); border-radius: var(--th-radius);
  background: linear-gradient(120deg, var(--th-navy), var(--th-navy-2));
  box-shadow: var(--th-shadow);
}
.thds-root .thds-search-copy { min-width: 0; margin: 0 0 22px; }
.thds-root .thds-search-copy .thds-kicker { color: var(--th-panel-muted); }
.thds-root .thds-search-copy :is(h2, h3) {
  color: var(--th-panel-text); margin: 10px 0;
  font-size: clamp(27px, 3.8vw, 42px); font-weight: 750; line-height: 1.14;
  letter-spacing: -.035em; overflow-wrap: anywhere;
}
.thds-root .thds-search-copy p {
  color: var(--th-panel-muted); margin: 0; font-size: 14px; line-height: 1.6;
}
.thds-root .thds-head, .thds-root .thds-form, .thds-root .thds-foot {
  min-width: 0; padding: 0; margin: 0;
}
.thds-root .thds-tabs {
  display: flex; align-items: center; width: fit-content; max-width: 100%;
  gap: 4px; padding: 4px; margin: 0 0 14px; overflow-x: auto;
  border: 1px solid var(--th-panel-line); border-radius: var(--th-radius);
  background: var(--th-panel-wash); scrollbar-width: thin;
}
.thds-root .thds-tab {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border: 0; border-radius: 8px;
  background: transparent; color: var(--th-panel-text);
  font-size: 13px; font-weight: 650; line-height: 1.3; white-space: nowrap;
}
.thds-root .thds-tab:hover { background: var(--th-panel-wash); }
.thds-root .thds-tab.is-active {
  color: var(--th-navy); background: var(--th-white);
  box-shadow: 0 2px 6px rgba(21, 35, 72, .08);
}
.thds-root .thds-inputwrap {
  display: flex; align-items: center; gap: 4px; min-width: 0; padding: 6px;
  border: 1px solid #c8d1e0; border-radius: var(--th-radius); background: var(--th-white);
}
.thds-root .thds-inputwrap:focus-within { border-color: var(--th-navy); box-shadow: 0 0 0 3px #1a2b5d12; }
.thds-root .thds-field-label { display: block; margin: 0 0 8px; color: var(--th-panel-text); font-size: 12px; font-weight: 650; line-height: 1.5; }
.thds-root .thds-input-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; color: #68758b; }
.thds-root .thds-input-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.5; }
.thds-root .thds-clear-domain { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--th-muted); font-size: 25px; font-weight: 400; line-height: 1; }
.thds-root .thds-clear-domain:hover { background: var(--th-soft); color: var(--th-navy); }
.thds-root .thds-input {
  appearance: none; flex: 1 1 0; width: 100%; min-width: 0; height: 52px;
  padding: 12px 7px; margin: 0; border: 0; border-radius: 6px;
  background: var(--th-white); color: var(--th-text); font-size: 16px;
  line-height: 1.5; box-shadow: none;
}
.thds-root .thds-input::placeholder { color: var(--th-muted); opacity: 1; }
.thds-root .thds-btn, .thds-root .thds-card-open, .thds-root .thds-mini-btn,
.thds-root .thds-compare-config,
.thds-compare-modal .thds-mini-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; min-width: 0; min-height: 44px; margin: 0; padding: 10px 16px;
  border: 1px solid var(--th-navy); border-radius: var(--th-radius);
  background: var(--th-navy); color: var(--th-white); font-size: 13px;
  font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.thds-root .thds-btn {
  flex: 0 1 auto; min-width: 126px; min-height: 52px; max-width: 48%; border-color: var(--th-gold);
  background: var(--th-gold); color: var(--th-navy-2); overflow-wrap: anywhere;
}
.thds-root :is(.thds-card-open, .thds-mini-btn, .thds-compare-config):hover,
.thds-compare-modal .thds-mini-btn:hover {
  background: var(--th-navy-2); border-color: var(--th-navy-2); color: var(--th-white);
}
.thds-root .thds-btn:hover {
  background: #e8ab4d; border-color: #e8ab4d; color: var(--th-navy-2);
}
.thds-root .thds-btn-ic {
  display: inline-block; width: 14px; height: 14px; flex: 0 0 auto;
  border: 2px solid currentColor; border-radius: 50%; position: relative;
}
.thds-root .thds-btn-ic::after {
  content: ""; position: absolute; width: 6px; height: 2px; top: 10px; left: 9px;
  background: currentColor; transform: rotate(45deg);
}
.thds-root :is(.thds-btn, .thds-mini-btn).is-searching { opacity: .7; cursor: progress; }
.thds-root .thds-hint {
  margin: 12px 0 0; color: var(--th-panel-muted); font-size: 12px; line-height: 1.5;
}
.thds-root .thds-status, .thds-root .thds-entry-status {
  margin: 12px 0 0; color: var(--th-muted); font-size: 13px; line-height: 1.5;
  overflow-wrap: anywhere;
}
.thds-root .thds-status:empty, .thds-root .thds-entry-status:empty { display: none; }
.thds-root .thds-shell > .thds-foot .thds-status {
  color: var(--th-status-color, var(--th-panel-muted));
}
.thds-root :is(.thds-status, .thds-entry-status)[data-state="error"] {
  --th-status-color: #9a2525;
  padding: 10px 12px; border: 1px solid #e9c1c1; border-radius: var(--th-radius);
  background: #fff6f6; color: #9a2525;
}
.thds-root .thds-spotlights {
  min-width: 0; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--th-panel-line);
}
.thds-root .thds-spot-row {
  display: flex; flex-wrap: nowrap; gap: 10px; min-width: 0;
  padding: 3px 3px 10px; margin-inline: -3px; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-inline: contain; scrollbar-width: thin;
  scrollbar-color: var(--th-gold) transparent;
}
.thds-root .thds-tld {
  display: flex; flex: 0 0 auto; flex-direction: column; align-items: start;
  justify-content: center; gap: 4px; min-width: 112px; min-height: 66px;
  margin: 0; padding: 10px 14px; border: 1px solid var(--th-panel-line);
  border-radius: var(--th-radius); background: var(--th-panel-wash);
  color: var(--th-panel-text); text-align: start;
}
.thds-root .thds-tld:hover { border-color: var(--th-gold); }
.thds-root .thds-tld .tld { color: inherit; font-size: 19px; font-weight: 750; line-height: 1.2; }
.thds-root .thds-tld .price { color: var(--th-panel-muted); font-size: 12px; font-weight: 500; }
.thds-root .thds-no-tlds { color: var(--th-panel-muted); font-size: 13px; }
/* The default panel fits a homepage hero while keeping prices and feedback in
   normal flow. Wrapping follows the available column width, not the viewport. */
.thds-template-search-toggle-premium .thds-shell {
  --th-panel-text: var(--th-navy);
  --th-panel-muted: var(--th-muted);
  --th-panel-wash: var(--th-soft);
  --th-panel-line: var(--th-line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 26px; border-color: var(--th-line); border-radius: 18px;
  background: var(--th-white);
}
.thds-template-search-toggle-premium .thds-search-copy {
  flex: 1 1 500px; max-width: 100%; margin: 0;
}
.thds-template-search-toggle-premium .thds-search-copy :is(h2, h3) {
  margin: 6px 0 8px; font-size: clamp(26px, 3vw, 34px);
}
.thds-template-search-toggle-premium .thds-search-copy .thds-kicker { display: flex; }
.thds-template-search-toggle-premium .thds-head { display: contents; }
.thds-template-search-toggle-premium .thds-tabs { flex: 0 1 auto; margin: 0; }
.thds-template-search-toggle-premium .thds-tab.is-active { background: var(--th-navy); color: var(--th-white); box-shadow: 0 2px 5px #15234815; }
.thds-template-search-toggle-premium :is(.thds-form, .thds-spotlights, .thds-foot) {
  flex: 1 1 100%; width: 100%;
}
.thds-template-search-toggle-premium .thds-hint { margin-top: 8px; }
.thds-template-search-toggle-premium .thds-spotlights { margin-top: 0; padding-top: 10px; }
.thds-template-search-toggle-premium .thds-spot-row { padding-bottom: 5px; }
.thds-template-search-toggle-premium .thds-tld { gap: 4px; min-width: 104px; padding: 10px 12px; border-color: transparent; }
.thds-template-search-toggle-premium .thds-tld:hover { border-color: #b9c4d7; background: #edf1f7; }
.thds-template-search-toggle-premium .thds-tld .tld { font-size: 18px; }
.thds-template-search-toggle-premium .thds-tld .price {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.thds-template-search-toggle-premium .thds-tld .thds-price-period { display: inline; margin: 0; }
.thds-template-search-toggle-premium .thds-status { margin-top: 0; }
.thds-template-search-toggle-premium .thds-foot:has(> .thds-status:empty) {
  display: none;
}
/* Only the measured builder host receives these classes. Its original height
   remains the minimum; a wrapped panel or result can increase the hero safely. */
.banner.thds-banner-fit { min-height: var(--thds-banner-height, 0px); }
.banner.thds-banner-fit .text-box.banner-layer.thds-banner-layer-fit { height: auto; max-height: none; }
.thds-template-search-hero-light .thds-shell {
  --th-panel-text: var(--th-navy);
  --th-panel-muted: var(--th-muted);
  --th-panel-wash: #fff;
  --th-panel-line: var(--th-line);
  padding: 32px; border-color: var(--th-line);
  background: linear-gradient(120deg, #fffcf6, #f5f7fb);
}
.thds-template-search-hero-light .thds-search-copy { max-width: 680px; }
.thds-template-search-hero-light .thds-tab.is-active { background: var(--th-navy); color: var(--th-white); }
.thds-template-search-split-navy .thds-shell {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px 32px; padding: 32px; align-items: center;
}
.thds-template-search-split-navy .thds-search-copy { margin: 0; }
.thds-template-search-split-navy :is(.thds-spotlights, .thds-foot) { grid-column: 1 / -1; }
.thds-template-search-split-navy .thds-spotlights { margin-top: 0; }
.thds-template-search-inline-compact .thds-shell, .thds-template-search-minimal-clean .thds-shell {
  --th-panel-text: var(--th-navy);
  --th-panel-muted: var(--th-muted);
  --th-panel-wash: var(--th-soft);
  --th-panel-line: var(--th-line);
  padding: 16px; border-color: var(--th-line); background: var(--th-white); box-shadow: none;
}
.thds-template-search-inline-compact .thds-inputwrap { border: 0; padding: 0; }
.thds-template-search-inline-compact .thds-search-copy :is(h2, h3),
.thds-template-search-minimal-clean .thds-search-copy :is(h2, h3) { font-size: 24px; }
.thds-template-search-minimal-clean .thds-shell { padding: 0; border: 0; background: transparent; }
.thds-template-search-minimal-clean .thds-tabs { background: transparent; border: 0; padding: 0; }
.thds-template-search-minimal-clean .thds-tab.is-active {
  color: var(--th-navy); background: var(--th-soft); box-shadow: inset 0 -2px var(--th-gold);
}

/* Listing controls and optional currency controls. */
.thds-root .thds-filterbar {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 10px; margin: 0 0 18px; padding: 12px;
  border: 1px solid var(--th-line); border-radius: var(--th-radius); background: var(--th-soft);
}
.thds-root .thds-filterbar label, .thds-compare-modal .thds-compare-picker-filters label {
  display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0;
  color: var(--th-muted); font-weight: 500;
}
.thds-root .thds-filter-icon, .thds-compare-modal .thds-filter-icon {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 16px; color: var(--th-navy); font-size: 16px; line-height: 1;
}
.thds-root .thds-filterbar :is(input, select), .thds-root .thds-currency-select,
.thds-compare-modal .thds-compare-picker-filters :is(input, select) {
  display: block; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 9px 11px;
  border: 1px solid var(--th-line); border-radius: var(--th-radius);
  background-color: var(--th-white); color: var(--th-text); font-size: 14px;
  line-height: 1.5; box-shadow: none;
}
.thds-root .thds-filterbar input::placeholder, .thds-compare-modal input::placeholder {
  color: var(--th-muted); opacity: 1;
}
.thds-root .thds-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-width: 0; flex-wrap: wrap;
}
.thds-root .thds-currency {
  display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  min-width: 0; margin: 0; font-size: 12px; color: var(--th-muted);
}
.thds-root .thds-currency-select { width: auto; min-width: 100px; max-width: 160px; }

/* Adaptive card columns use the administrator's count as the maximum. */
.thds-root.thds-listing, .thds-root.thds-pricing-table, .thds-root.thds-compare {
  padding: 20px 0; margin: 0;
}
.thds-root .thds-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(210px, calc(100% / var(--thds-columns, 4) - 16px))), 1fr));
  gap: 16px; min-width: 0; align-items: stretch;
}
.thds-root .thds-domain-card {
  --th-card-title: var(--th-navy);
  --th-card-muted: var(--th-muted);
  --th-card-wash: var(--th-soft);
  --th-card-line: var(--th-line);
  position: relative; display: flex; flex-direction: column; gap: 18px;
  min-width: 0; min-height: 0; margin: 0; padding: 20px;
  border: 1px solid var(--th-card-line); border-radius: var(--th-radius);
  background: var(--th-white); color: var(--th-text);
  box-shadow: 0 4px 15px rgba(21, 35, 72, .035);
}
.thds-root .thds-domain-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 0; flex-wrap: wrap;
}
.thds-root .thds-domain-card h3 {
  min-width: 0; margin: 0; color: var(--th-card-title); font-size: 28px;
  font-weight: 750; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere;
}
.thds-root .thds-pill {
  display: inline-flex; align-items: center; padding: 4px 8px; max-width: 100%;
  border: 1px solid var(--th-card-line); border-radius: 4px; background: var(--th-card-wash);
  color: var(--th-card-muted); font-size: 10px; line-height: 1.5;
  font-weight: 600; overflow-wrap: anywhere;
}
.thds-root .thds-price-pair {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; min-width: 0;
}
.thds-root .thds-price-pair > div {
  min-width: 0; padding: 12px 0; border-top: 1px solid var(--th-card-line);
  border-bottom: 1px solid var(--th-card-line);
}
.thds-root .thds-price-pair span { display: block; color: var(--th-card-muted); font-size: 11px; line-height: 1.5; }
.thds-root .thds-price-pair strong {
  display: block; margin-top: 4px; color: var(--th-card-title); font-size: 17px;
  font-weight: 700; line-height: 1.35; overflow-wrap: anywhere;
}
.thds-root .thds-price-pair strong > [data-thds-price-tld] {
  color: inherit; font: inherit;
}
.thds-root .thds-price-period {
  display: block; margin-top: 3px; color: var(--th-card-muted, var(--th-muted));
  font-size: 10px; font-weight: 400; line-height: 1.5;
}
.thds-root .thds-tld .thds-price-period { color: var(--th-panel-muted); }
.thds-root .thds-feature-mini { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.thds-root .thds-feature-mini li {
  position: relative; margin: 0; padding-inline-start: 18px; color: var(--th-card-muted);
  font-size: 12px; line-height: 1.5; overflow-wrap: anywhere;
}
.thds-root .thds-feature-mini li::before {
  content: ""; position: absolute; inset-inline-start: 1px; top: .52em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--th-gold);
}
.thds-root .thds-card-open { width: 100%; margin-top: auto; }
.thds-root .thds-card-open.is-open { background: var(--th-soft); border-color: var(--th-line); color: var(--th-navy); }
.thds-template-cards-premium-grid .thds-domain-card { border-color: #dbe2ed; }
.thds-template-cards-premium-grid .thds-domain-card-top { padding-bottom: 4px; }
.thds-template-cards-spotlight .thds-domain-card {
  --th-card-title: #fff;
  --th-card-muted: #dce2f0;
  --th-card-wash: rgba(255, 255, 255, .06);
  --th-card-line: rgba(255, 255, 255, .18);
  border-color: var(--th-navy-2); background: linear-gradient(140deg, var(--th-navy), var(--th-navy-2));
}
.thds-template-cards-spotlight .thds-card-open {
  background: var(--th-gold); border-color: var(--th-gold); color: var(--th-navy-2);
}
.thds-template-cards-spotlight .thds-card-open:hover { background: #e8ab4d; }
.thds-template-cards-launch-tiles .thds-domain-card { background: #fffbf3; border-color: #ead8b8; }
.thds-template-cards-launch-tiles .thds-pill { background: #fff0d2; border-color: #e9cea1; color: #71501c; }
.thds-template-cards-launch-tiles .thds-domain-card h3 { font-size: 32px; }
.thds-template-cards-premium-tiles .thds-domain-card { background: var(--th-soft); box-shadow: none; }
.thds-template-cards-premium-tiles .thds-domain-card-top { flex-direction: column; align-items: start; }
.thds-template-cards-premium-tiles .thds-price-pair > div {
  padding: 10px; border: 1px solid var(--th-line); border-radius: 6px; background: var(--th-white);
}
.thds-template-cards-compact-strip .thds-card-grid { grid-template-columns: 1fr; gap: 10px; }
.thds-template-cards-compact-strip .thds-domain-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.35fr) auto;
  align-items: center; gap: 16px; padding: 16px 20px; box-shadow: none;
}
.thds-template-cards-compact-strip .thds-domain-card-top { align-items: start; flex-direction: column; }
.thds-template-cards-compact-strip .thds-domain-card h3 { font-size: 24px; }
.thds-template-cards-compact-strip .thds-price-pair > div { border: 0; padding: 0; }
.thds-template-cards-compact-strip .thds-card-open { width: auto; min-width: 100px; margin-top: 0; }
.thds-template-cards-compact-strip .thds-domain-entry { grid-column: 1 / -1; }

/* Inline forms keep register and transfer on one balanced action line. */
.thds-root .thds-domain-entry {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; padding: 12px;
  border: 1px solid var(--th-line); border-radius: var(--th-radius); background: var(--th-soft); color: var(--th-text);
}
.thds-root .thds-entry-field {
  display: flex; align-items: center; flex: 1 1 220px; min-width: 0;
  border: 1px solid var(--th-line); border-radius: 6px; background: var(--th-white);
}
.thds-root .thds-entry-field input {
  flex: 1 1 0; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 9px 10px;
  border: 0; border-radius: 6px; background: transparent; color: var(--th-text);
  font-size: 16px; line-height: 1.5; box-shadow: none;
}
.thds-root .thds-entry-tld {
  max-width: 48%; padding-inline: 8px 10px; color: var(--th-navy);
  font-size: 12px; font-weight: 650; overflow-wrap: anywhere;
}
.thds-root .thds-actionset { display: flex; flex: 1 1 200px; gap: 8px; min-width: 0; }
.thds-root .thds-actionset .thds-mini-btn { flex: 1 1 0; padding: 9px 10px; font-size: 12px; }
.thds-root .thds-mini-icon { flex: 0 0 auto; font-size: 18px; line-height: 1; }
.thds-root .thds-mini-label { min-width: 0; overflow-wrap: anywhere; }
.thds-root .thds-mini-btn--ghost, .thds-compare-modal .thds-mini-btn--ghost {
  border-color: var(--th-line); background: var(--th-white); color: var(--th-navy);
}
.thds-root .thds-domain-entry .thds-entry-status { flex: 1 0 100%; min-width: 0; margin: 0; }
.thds-root .thds-empty, .thds-compare-modal .thds-compare-empty {
  padding: 24px 16px; border: 1px dashed var(--th-line); border-radius: var(--th-radius);
  background: var(--th-soft); color: var(--th-muted); text-align: center; font-size: 13px;
}
.thds-root .thds-info-note { margin: 12px 0; color: var(--th-muted); font-size: 12px; line-height: 1.5; }
.thds-root .thds-shell .thds-info-note { color: var(--th-panel-muted); }
.thds-root .thds-shell .thds-info-note a {
  color: var(--th-panel-text); text-decoration: underline;
}


/* Tables scroll within their wrapper without changing the page width. */
.thds-root .thds-table-wrap, .thds-root .thds-compare-wrap {
  position: relative; width: 100%; max-width: 100%; min-width: 0; overflow: auto;
  overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--th-line); border-radius: var(--th-radius); background: var(--th-white);
  scrollbar-width: thin; scrollbar-color: #9ba8c0 var(--th-soft);
}
.thds-root .thds-domain-table, .thds-root .thds-compare-table {
  width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0;
  background: var(--th-white); color: var(--th-text);
}
.thds-root .thds-domain-table { min-width: 920px; }
.thds-root .thds-compare-table { min-width: 540px; }
.thds-root :is(.thds-domain-table, .thds-compare-table) :is(th, td) {
  padding: 14px 16px; border: 0; border-inline-end: 1px solid var(--th-line);
  border-bottom: 1px solid var(--th-line); background: var(--th-white); color: var(--th-text);
  font-size: 13px; font-weight: 400; line-height: 1.5; text-align: start; vertical-align: middle;
}
.thds-root :is(.thds-domain-table, .thds-compare-table) :is(th, td):last-child { border-inline-end: 0; }
.thds-root :is(.thds-domain-table, .thds-compare-table) tr:last-child > :is(th, td) { border-bottom: 0; }
.thds-root :is(.thds-domain-table, .thds-compare-table) th {
  background: var(--th-soft); color: var(--th-navy); font-size: 12px;
  font-weight: 650; text-transform: none; letter-spacing: normal;
}
.thds-root .thds-domain-table td strong, .thds-root .thds-compare-table thead strong {
  display: block; margin: 0; color: var(--th-navy); font-size: 17px; font-weight: 700; line-height: 1.3;
}
.thds-root .thds-domain-table td small, .thds-root .thds-compare-table thead span {
  display: block; margin-top: 4px; color: var(--th-muted); font-size: 11px; font-weight: 400; line-height: 1.5;
}
.thds-root .thds-domain-table td .thds-card-open { width: auto; min-width: 80px; padding-inline: 12px; }
.thds-root .thds-table-entry-row td { background: var(--th-soft); }
.thds-root .thds-table-entry-row .thds-domain-entry { max-width: 850px; background: var(--th-white); }
.thds-root .thds-table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 16px; color: var(--th-muted); font-size: 12px;
}
.thds-root .thds-table-foot > div { display: flex; gap: 8px; max-width: 100%; flex-wrap: wrap; }
.thds-root .thds-table-foot button {
  min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid var(--th-line);
  border-radius: var(--th-radius); background: var(--th-white); color: var(--th-navy);
  font-size: 12px; font-weight: 600;
}
.thds-root .thds-table-foot button:not(:disabled):hover { border-color: var(--th-navy); background: var(--th-soft); }
.thds-root .thds-compare-wrap { max-height: 75vh; }
.thds-root .thds-compare-table :is(th, td) { min-width: 180px; }
.thds-root .thds-compare-table :is(th, td):first-child {
  position: sticky; inset-inline-start: 0; z-index: 2; min-width: 140px; background: var(--th-soft);
}
.thds-root .thds-compare-table thead th { position: sticky; top: 0; z-index: 3; background: var(--th-soft); }
.thds-root .thds-compare-table thead th:first-child { z-index: 4; }
.thds-root .thds-compare-remove {
  display: inline-flex; align-items: center; justify-content: center; float: inline-end;
  width: 44px; height: 44px; min-height: 44px; margin-inline-start: 8px; padding: 0;
  border: 1px solid var(--th-line); border-radius: 5px; background: var(--th-white);
  color: var(--th-navy); font-size: 20px; font-weight: 400; line-height: 1;
}
.thds-root .thds-compare-remove:hover { border-color: var(--th-navy); }
.thds-root .thds-compare-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 0 0 16px;
}
.thds-root .thds-compare-toolbar [data-thds-compare-count] { color: var(--th-muted); font-size: 12px; }
.thds-root .thds-compare-table .thds-domain-entry { min-width: 230px; margin-top: 10px; }

/* Dialog panel uses one scrolling list between fixed controls and actions. */
html.thds-modal-open { overflow: hidden; }
.thds-compare-modal {
  position: fixed; inset: 0; z-index: 1000000; display: none;
  align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(13, 22, 46, .7);
}
.thds-compare-modal.is-open { display: flex; }
.thds-compare-modal .thds-compare-modal__panel {
  display: flex; flex-direction: column; width: 100%; max-width: 900px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
  min-width: 0; overflow: hidden;
  border: 1px solid var(--th-line); border-radius: var(--th-radius); background: var(--th-white);
  box-shadow: 0 25px 70px rgba(13, 22, 46, .3);
}
.thds-compare-modal .thds-compare-modal__head {
  display: flex; align-items: start; justify-content: space-between; gap: 16px;
  flex: 0 0 auto; padding: 20px; background: var(--th-navy); color: var(--th-white);
}
.thds-compare-modal .thds-compare-modal__head > div { min-width: 0; }
.thds-compare-modal .thds-compare-modal__head strong {
  display: block; color: var(--th-white); font-size: 20px;
  font-weight: 700; line-height: 1.3; overflow-wrap: anywhere;
}
.thds-compare-modal .thds-compare-modal__head span { display: block; margin-top: 6px; color: #dce2f0; font-size: 13px; line-height: 1.5; }
.thds-compare-modal .thds-modal-close {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--th-radius);
  background: transparent; color: var(--th-white); font-size: 28px; font-weight: 400; line-height: 1;
}
.thds-compare-modal .thds-modal-close:hover { background: rgba(255, 255, 255, .1); }
.thds-compare-modal .thds-compare-picker-filters {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 12px; flex: 0 0 auto; padding: 16px 20px; background: var(--th-soft); border-bottom: 1px solid var(--th-line);
}
.thds-compare-modal .thds-compare-picker-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start;
  gap: 10px; flex: 1 1 auto; min-height: 70px; overflow: auto; overscroll-behavior: contain;
  padding: 20px; scrollbar-width: thin;
}
.thds-compare-modal .thds-compare-pick {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center;
  gap: 4px 10px; min-width: 0; margin: 0; padding: 12px;
  border: 1px solid var(--th-line); border-radius: var(--th-radius);
  background: var(--th-white); color: var(--th-text); cursor: pointer;
}
.thds-compare-modal .thds-compare-pick:has(input:checked) { border-color: var(--th-navy); background: var(--th-soft); }
.thds-compare-modal .thds-compare-pick input { grid-row: 1 / 3; width: 18px; height: 18px; margin: 0; accent-color: var(--th-navy); }
.thds-compare-modal .thds-compare-pick strong { display: block; color: var(--th-navy); font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.thds-compare-modal .thds-compare-pick em { display: block; margin-top: 3px; color: var(--th-muted); font-size: 10px; font-weight: 400; font-style: normal; line-height: 1.5; }
.thds-compare-modal .thds-compare-pick b { grid-column: 2; color: var(--th-text); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.thds-compare-modal .thds-compare-empty { grid-column: 1 / -1; }
.thds-compare-modal .thds-compare-modal__foot {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-top: 1px solid var(--th-line); background: var(--th-soft); color: var(--th-muted); font-size: 12px;
}
.thds-compare-modal .thds-compare-modal__foot > div { display: flex; gap: 8px; min-width: 0; }

@media (max-width: 900px) {
  .thds-root .thds-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thds-template-search-split-navy .thds-shell { grid-template-columns: minmax(0, 1fr); }
  .thds-template-cards-compact-strip .thds-domain-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; }
  .thds-template-cards-compact-strip .thds-feature-mini { grid-column: 1 / 3; grid-row: 2; }
  .thds-template-cards-compact-strip .thds-card-open { grid-column: 3; grid-row: 1 / 3; }
  .thds-compare-modal .thds-compare-picker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .thds-root .thds-shell, .thds-template-search-hero-light .thds-shell, .thds-template-search-split-navy .thds-shell { padding: 20px 16px; }
  .thds-template-search-inline-compact .thds-shell { padding: 12px; }
  .thds-template-search-minimal-clean .thds-shell { padding: 0; }
  .thds-root .thds-tabs { width: 100%; }
  .thds-root .thds-tab { flex: 1 0 auto; padding-inline: 12px; }
  .thds-root .thds-inputwrap { gap: 6px; }
  .thds-root .thds-input { padding-inline: 8px; }
  .thds-root .thds-btn { min-width: 0; padding-inline: 12px; }
  .thds-root .thds-btn-ic, .thds-root .thds-input-icon { display: none; }
  .thds-root .thds-filterbar { gap: 10px; padding: 12px; }
  .thds-root .thds-filterbar .thds-filter-search { grid-column: 1 / -1; }
  .thds-root .thds-filter-icon { display: none; }
  .thds-root .thds-filterbar :is(input, select) { font-size: 16px; padding-inline: 8px; }
  .thds-root .thds-domain-card { padding: 18px; }
  .thds-template-cards-compact-strip .thds-domain-card { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .thds-template-cards-compact-strip .thds-domain-card-top { flex-direction: row; align-items: center; }
  .thds-template-cards-compact-strip .thds-card-open { width: 100%; }
  .thds-root .thds-compare-toolbar { gap: 8px; }
  .thds-root .thds-compare-table :is(th, td):first-child { min-width: 110px; max-width: 150px; padding-inline: 12px; }
  .thds-compare-modal { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .thds-compare-modal .thds-compare-modal__panel {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
  }
  .thds-compare-modal :is(.thds-compare-modal__head, .thds-compare-picker-list, .thds-compare-modal__foot) { padding: 16px; }
  .thds-compare-modal .thds-compare-modal__head strong { font-size: 18px; }
  .thds-compare-modal .thds-compare-picker-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; }
  .thds-compare-modal .thds-compare-picker-filters label:first-child { grid-column: 1 / -1; }
  .thds-compare-modal .thds-filter-icon { display: none; }
  .thds-compare-modal .thds-compare-picker-filters :is(input, select) { font-size: 16px; }
  .thds-compare-modal .thds-compare-picker-list { grid-template-columns: 1fr; }
  .thds-compare-modal .thds-compare-pick { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .thds-compare-modal .thds-compare-pick input { grid-row: 1; }
  .thds-compare-modal .thds-compare-pick b { grid-column: 3; font-size: 11px; }
  .thds-compare-modal .thds-compare-modal__foot { flex-wrap: wrap; gap: 10px; }
  .thds-compare-modal .thds-compare-modal__foot > div { width: 100%; }
  .thds-compare-modal .thds-compare-modal__foot .thds-mini-btn { flex: 1 1 0; padding-inline: 10px; font-size: 12px; }
}
/* Flatsome columns can be narrow on a wide screen. These rules follow the
   widget width, so the same saved display works in a hero, sidebar or footer. */
@container thds-display (max-width: 760px) {
  .thds-template-search-split-navy .thds-shell { grid-template-columns: minmax(0, 1fr); }
  .thds-root .thds-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thds-template-cards-compact-strip .thds-domain-card { display: flex; flex-direction: column; align-items: stretch; }
  .thds-template-cards-compact-strip .thds-card-open { width: 100%; }
}
@container thds-display (max-width: 600px) {
  .thds-root .thds-shell, .thds-template-search-hero-light .thds-shell, .thds-template-search-split-navy .thds-shell { padding: 20px 16px; }
  .thds-template-search-inline-compact .thds-shell { padding: 12px; }
  .thds-template-search-minimal-clean .thds-shell { padding: 0; }
  .thds-root .thds-tabs { width: 100%; }
  .thds-root .thds-tab { flex: 1 0 auto; padding-inline: 12px; }
  .thds-root .thds-filterbar .thds-filter-search { grid-column: 1 / -1; }
  .thds-root .thds-filter-icon, .thds-root .thds-input-icon { display: none; }
  .thds-root .thds-filterbar :is(input, select) { font-size: 16px; }
  .thds-root .thds-btn { min-width: 0; padding-inline: 12px; }
}
@container thds-display (max-width: 360px) {
  .thds-root .thds-inputwrap { display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
  .thds-root .thds-input { grid-column: 1 / -1; grid-row: 1; padding-inline-end: 46px; }
  .thds-root .thds-clear-domain { grid-column: 2; grid-row: 1; z-index: 1; }
  .thds-root .thds-btn { grid-column: 1 / -1; width: 100%; max-width: none; }
}
/* A short viewport still exposes the close and apply actions above the keyboard. */
@media (max-height: 500px) {
  .thds-compare-modal .thds-compare-modal__head,
  .thds-compare-modal .thds-compare-modal__foot { padding-block: 10px; }
  .thds-compare-modal .thds-compare-modal__head span { display: none; }
  .thds-compare-modal .thds-compare-picker-filters { padding-block: 8px; }
  .thds-compare-modal .thds-compare-picker-list { min-height: 44px; padding-block: 10px; }
  .thds-compare-modal .thds-compare-modal__foot [data-thds-compare-pick-count] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .thds-root *, .thds-compare-modal * { transition: none; animation: none; scroll-behavior: auto; }
}
