/* Partner profiles and country selection share the public palette and card finish. */
.market-body .partner-profile {
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-xl, 20px);
  background: var(--theme-surface, #fff);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--theme-ink) 7%, transparent);
}
.market-body .partner-profile .partner-profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 32px;
  background: var(--theme-card-band);
}
.partner-profile-logo,
.partner-profile-heading,
.partner-profile-main,
.partner-profile-aside { min-width: 0; }
.market-body .partner-profile-logo .provider-logo { margin: 0; }
.market-body .partner-profile-heading .directory-type {
  min-height: 0;
  margin: 0;
  padding: 5px 10px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--theme-surface) 72%, transparent);
  color: var(--theme-ink);
  font-size: 13px;
  line-height: 1.5;
}
.market-body .partner-profile-heading h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.25;
  color: var(--theme-ink);
  overflow-wrap: anywhere;
}
.market-body .partner-profile-heading .partner-profile-description {
  max-width: 750px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--theme-text);
}
.partner-profile-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 25px;
  padding: 18px 32px;
  background: var(--theme-card-footer);
  color: var(--theme-muted);
}
.market-body .partner-profile-meta p,
.market-body .partner-profile-meta .directory-country {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.6;
  color: var(--theme-muted);
}
.partner-profile-meta .directory-country { font-weight: 650; }
.partner-profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .85fr);
  align-items: start;
  gap: 28px;
  padding: 32px;
}
.market-body .partner-profile-terms,
.market-body .partner-profile-checklist {
  padding: 24px;
  border-radius: var(--radius-lg, 18px);
  background: var(--theme-card-soft);
}
.market-body .partner-profile :is(.partner-profile-terms, .partner-profile-checklist) h2 {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--theme-ink);
}
.partner-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.partner-profile-facts>div {
  min-width: 0;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--theme-surface);
}
.partner-profile-facts>.partner-profile-fact-wide { grid-column: 1 / -1; }
.partner-profile-facts dt,
.partner-profile-facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--theme-ink);
  overflow-wrap: anywhere;
}
.partner-profile-facts dd { margin-top: 8px; font-weight: 650; }
.partner-profile-promotion {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: var(--theme-surface);
}
.market-body .partner-profile-promotion p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--theme-ink);
}
.market-body .partner-profile-promotion p+p { margin-top: 8px; }
.partner-profile-promotion-title { font-weight: 650; }
.market-body .partner-profile-data-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--theme-text);
}
.partner-profile-state-symbol,
.directory-page-error-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--theme-card-band);
  color: var(--theme-accent);
}
.partner-profile-state-symbol svg,
.directory-page-error-symbol svg { width: 26px; height: 26px; }
.market-body .partner-profile-unknown h3 {
  margin: 17px 0 12px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--theme-ink);
}
.market-body .partner-profile-unknown p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--theme-text);
}
.market-body .partner-profile-unknown p+p { margin-top: 14px; }
.market-body .partner-profile .partner-profile-sources {
  margin-top: 22px;
  padding: 18px 22px;
  border: 0;
  border-radius: var(--radius-lg, 18px);
  background: var(--theme-card-footer);
}
.market-body .partner-profile .partner-profile-sources summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  border-radius: 9px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 650;
  color: var(--theme-ink);
  list-style: none;
  cursor: pointer;
}
.partner-profile-sources summary::-webkit-details-marker { display: none; }
.partner-profile-sources summary>span:last-child { transition: transform .15s; }
.partner-profile-sources[open] summary>span:last-child { transform: rotate(180deg); }
.market-body .partner-profile-sources ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.market-body .partner-profile .partner-profile-sources li { margin: 0; }
.partner-profile-sources li>a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--theme-surface);
  color: var(--theme-ink);
  text-decoration: none;
}
.partner-profile-sources li>a:hover { background: var(--theme-highlight); }
.partner-profile-sources li>a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.partner-profile-source-copy { display: block; min-width: 0; }
.partner-profile-source-copy strong,
.partner-profile-source-copy small {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.partner-profile-source-copy small { margin-top: 3px; font-size: 13px; color: var(--theme-muted); }
.partner-profile-source-copy small:empty { display: none; }
.market-body .partner-profile-aside .directory-intermediary {
  margin: 0 0 20px;
  padding: 20px;
  border-radius: var(--radius-lg, 18px);
  background: var(--theme-card-soft);
  color: var(--theme-text);
}
.partner-profile-checklist ol { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.partner-profile-checklist li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; }
.partner-profile-checklist li>span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--theme-card-band);
  color: var(--theme-ink);
  font-size: 12px;
  font-weight: 700;
}
.market-body .partner-profile-checklist li>p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--theme-text); }
.market-body .partner-profile-context-note { margin: 18px 4px 0; font-size: 14px; line-height: 1.8; color: var(--theme-muted); }
.partner-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 32px;
  background: var(--theme-card-footer);
}
.partner-profile-action-copy { min-width: 0; max-width: 540px; }
.market-body .partner-profile-action-copy p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--theme-text); }
.market-body .partner-profile-action-copy p+p { margin-top: 10px; }
.partner-profile-ad-label { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--theme-muted); }
.partner-profile-action-links { display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 250px; max-width: 450px; }
.market-body .partner-profile-actions :is(.button, .directory-back) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin: 0;
  padding: 11px 16px;
  border-radius: var(--radius-md, 14px);
  font-size: 15px;
  line-height: 1.6;
  text-align: start;
}
.market-body .partner-profile-actions .directory-back:not(.button) { justify-content: flex-start; padding-inline: 0; color: var(--theme-ink); }
.partner-profile-actions .button>span:first-child { min-width: 0; overflow-wrap: anywhere; }
.partner-profile-actions .directory-back>span:last-child { min-width: 0; overflow-wrap: anywhere; }
.market-body .directory-page-error {
  display: grid;
  gap: 25px;
  max-width: 820px;
  margin: 25px auto 45px;
  padding: 38px;
  border-radius: var(--radius-xl, 20px);
  background: var(--theme-surface);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--theme-ink) 7%, transparent);
}
.market-body .directory-page-error h1 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 44px); line-height: 1.3; color: var(--theme-ink); }
.market-body .directory-page-error .directory-lead { font-size: 18px !important; line-height: 1.75; color: var(--theme-text); }
.directory-page-error-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 25px; }
.market-body .directory-page-error .button { display: inline-flex; justify-content: space-between; gap: 24px; min-height: 50px; border-radius: var(--radius-md, 14px); }
.directory-page-home { display: inline-flex; align-items: center; min-height: 44px; color: var(--theme-ink); font-weight: 650; }
.market-body .market-chooser-intro { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: 35px; max-width: none; margin-bottom: 32px; }
.market-chooser-intro>div { max-width: 800px; min-width: 0; }
.market-body .market-chooser-intro h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.2; }
.market-chooser-meta { padding: 23px; border-radius: var(--radius-xl, 20px); background: var(--theme-card-soft); }
.market-chooser-count { display: block; font-size: 38px; line-height: 1.15; font-weight: 650; color: var(--theme-accent); }
.market-chooser-meta>span+span { display: block; margin-top: 8px; color: var(--theme-ink); font-size: 15px; line-height: 1.6; }
.market-body .market-chooser-meta p { margin-top: 16px; color: var(--theme-muted); font-size: 13px; line-height: 1.7; }
.market-chooser-meta strong { display: block; font-weight: 600; }
.market-body .market-chooser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.market-body .market-chooser-main .market-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  background: var(--theme-surface);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--theme-ink) 7%, transparent);
}
.market-body .market-chooser-main .market-card:hover { transform: none; }
.market-body .market-chooser-card-head { margin: 0; padding: 22px; background: var(--theme-card-band); }
.market-body .market-chooser-main .market-card .market-iso { min-width: 52px; min-height: 52px; border-radius: 14px; background: var(--theme-surface); color: var(--theme-accent); font-size: 17px; }
.market-body .market-chooser-main .market-card .market-currency { padding: 6px 11px; border-radius: 10px; background: var(--theme-card-footer); color: var(--theme-ink); font-size: 14px; }
.market-chooser-card-body { padding: 22px; }
.market-body .market-chooser-main .market-card h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.35; color: var(--theme-ink); }
.market-body .market-chooser-card-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--theme-muted); }
.market-chooser-card-footer { margin-top: auto; padding: 18px 22px 22px; background: var(--theme-card-footer); }
.market-body .market-chooser-card-footer>p { margin: 0 0 11px; font-size: 13px; line-height: 1.6; color: var(--theme-muted); }
.market-body .market-chooser-main .market-card .market-languages { display: grid; gap: 9px; margin: 0; padding: 0; }
.market-body .market-chooser-main .market-card .market-languages a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; background: var(--theme-surface); color: var(--theme-ink); font-size: 16px; line-height: 1.5; }
.market-body .market-chooser-main .market-card .market-languages a:hover { background: var(--theme-highlight); }
.market-language-name { min-width: 0; overflow-wrap: anywhere; }
.market-body .market-chooser-main>.directory-notice { padding: 25px 28px; border-radius: var(--radius-xl, 20px); background: var(--theme-card-soft); }
html[lang^="si"] :is(.partner-profile-heading h1, .market-chooser-intro h1, .market-chooser-main .market-card h2),
html[lang^="ta"] :is(.partner-profile-heading h1, .market-chooser-intro h1, .market-chooser-main .market-card h2) { letter-spacing: 0; line-height: 1.5; }
@media (max-width: 1000px) {
  .partner-profile-content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .partner-profile-aside { display: grid; grid-template-columns: minmax(0, 1fr); }
  .market-body .market-chooser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .market-body .partner-profile .partner-profile-header { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 25px 22px; }
  .market-body .partner-profile-heading h1 { font-size: 32px; margin-top: 12px; }
  .partner-profile-meta { padding: 16px 22px; gap: 8px; }
  .partner-profile-meta p { width: 100%; }
  .partner-profile-content { padding: 22px; gap: 22px; }
  .market-body .partner-profile-terms,
  .market-body .partner-profile-checklist { padding: 21px; }
  .partner-profile-actions { display: block; padding: 22px; }
  .partner-profile-action-copy { max-width: none; }
  .partner-profile-action-links { min-width: 0; max-width: none; margin-top: 18px; }
  .market-body .partner-profile .partner-profile-sources { padding: 16px 18px; }
  .market-body .market-chooser-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .market-chooser-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 15px; padding: 19px 22px; }
  .market-chooser-count { font-size: 30px; }
  .market-chooser-meta>span+span { margin: 0; }
  .market-body .market-chooser-meta p { grid-column: 1 / -1; margin: 0; }
  .market-chooser-meta strong { display: inline; }
  .market-body .market-chooser-grid { grid-template-columns: minmax(0, 1fr); }
  .market-body .directory-page-error { padding: 26px; margin: 0 0 25px; gap: 22px; }
  .directory-page-error-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .directory-page-error-actions>.button { width: 100%; }
  .market-body .market-chooser-main>.directory-notice { padding: 23px 21px; }
}
@media (max-width: 400px) {
  .partner-profile-facts { grid-template-columns: minmax(0, 1fr); }
  .partner-profile-content { padding: 18px; }
  .market-body .partner-profile-terms,
  .market-body .partner-profile-checklist { padding: 18px; }
  .partner-profile-actions { padding: 20px; }
  .market-body .partner-profile-heading h1 { font-size: 29px; }
  .market-body .partner-profile .partner-profile-sources summary { font-size: 19px; }
  .market-body .market-chooser-card-head,
  .market-chooser-card-body { padding: 20px; }
  .market-chooser-card-footer { padding: 18px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .partner-profile-sources summary>span:last-child { transition: none; }
}

.partner-profile-sources li>a:hover .partner-profile-source-copy small { color:var(--theme-text); }
