.supplier-directory {
  --sd-navy: #0b1b32;
  --sd-accent: #2d44b5;
  --sd-muted: #52637b;
  --sd-line: #dae3ee;
  color: var(--sd-navy);
  background: #f4f7fb;
  font-family: Inter, Arial, sans-serif;
}

.supplier-directory [hidden] { display: none; }
.supplier-directory .mc-container { width: min(100% - 48px, 1160px); margin-inline: auto; }

.sd-hero {
  padding: clamp(44px, 7vw, 94px) 0 clamp(42px, 6vw, 74px);
  color: white;
  background:
    radial-gradient(ellipse at 88% 100%, #3a4da0 0, transparent 48%),
    linear-gradient(115deg, #0b1b32 18%, #1a2d59 100%);
  text-align: center;
}

.sd-hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(36px, 5vw, 68px); line-height: 1.05; letter-spacing: -.045em; }
.sd-hero p { max-width: 630px; margin: 20px auto 28px; color: #dce7fb; font-size: clamp(15px, 2vw, 19px); line-height: 1.6; }
.sd-search { position: relative; display: block; max-width: 565px; margin: auto; }
.sd-search svg { position: absolute; inset: 17px auto auto 18px; width: 22px; height: 22px; color: var(--sd-accent); pointer-events: none; }
.sd-search input { box-sizing: border-box; width: 100%; min-height: 56px; padding: 14px 18px 14px 51px; background: #fff; color: var(--sd-navy); border: 1px solid var(--sd-line); border-radius: 12px; font: inherit; font-size: 16px; }
.sd-search input::placeholder { color: var(--sd-muted); opacity: 1; }
.sd-search input:focus-visible { outline: 3px solid #aebcff; outline-offset: 3px; }

.sd-list { padding-block: 36px 42px; }
.sd-list h2, .sd-next h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.sd-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.sd-categories button {
  display: flex; gap: 8px; align-items: center; justify-content: space-between;
  min-height: 49px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--sd-line);
  background: white; color: var(--sd-navy); font: inherit; font-size: 14px; font-weight: 650;
  text-align: start; cursor: pointer;
}
.sd-categories button span { padding: 3px 8px; border-radius: 12px; background: #edf0fd; color: var(--sd-accent); font-size: 12px; }
.sd-categories button:hover { border-color: var(--sd-accent); }
.sd-categories button[aria-pressed="true"] { background: var(--sd-accent); border-color: var(--sd-accent); color: white; }
.sd-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-block: 24px 12px; }
.sd-results p { margin: 0; color: var(--sd-muted); font-size: 14px; }
.sd-results button { min-height: 38px; padding: 6px 10px; border: 1px solid #cdd7f8; border-radius: 8px; color: var(--sd-accent); background: white; font: inherit; cursor: pointer; }
.sd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sd-card { display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--sd-line); border-radius: 14px; background: white; }
.sd-card-brand { display: flex; align-items: center; gap: 12px; }
.sd-card-brand > div { min-width: 0; }
.sd-card-brand .sd-logo { box-sizing: border-box; flex: 0 0 auto; width: 104px; height: 58px; padding: 6px; border: 1px solid var(--sd-line); border-radius: 9px; background: white; object-fit: contain; }
.sd-card-brand .sd-logo--dark { background: var(--sd-navy); border-color: var(--sd-navy); }
.sd-card h3 { margin: 0; color: var(--sd-navy); font-size: 18px; }
.sd-card h3 a { color: inherit; text-decoration: none; }
.sd-card h3 a:hover { color: var(--sd-accent); text-decoration: underline; }
.sd-card-brand p { margin: 3px 0 0; color: var(--sd-muted); font-size: 12px; overflow-wrap: anywhere; }
.sd-description { margin: 15px 0 16px; color: var(--sd-muted); font-size: 14px; line-height: 1.65; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: auto 0 15px; padding: 0; }
.sd-tags li { background: #edf2f8; color: #344863; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.sd-card > a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--sd-line); color: var(--sd-accent); text-decoration: none; font-size: 14px; font-weight: 700; }
.sd-card > a:hover { text-decoration: underline; }
.sd-empty { margin: 0; padding: 24px; border: 1px solid var(--sd-line); border-radius: 12px; background: white; color: var(--sd-muted); }
.sd-source { margin-top: 20px; color: var(--sd-muted); font-size: 13px; line-height: 1.5; }
.sd-source p { margin: 4px 0; }
.sd-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; padding: clamp(18px, 4vw, 36px); border-radius: 15px; background: var(--sd-navy); color: white; }
.sd-next h2 { margin: 0; }
.sd-next a.mc-button { color: #fff; background: var(--sd-accent); }
.supplier-directory main :is(a,button):focus-visible { outline: 3px solid #7387e9; outline-offset: 3px; }

.sd-profile-main { padding-block: 32px 56px; }
.sd-back { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin-bottom: 12px; color: var(--sd-accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.sd-back:hover { text-decoration: underline; }
.sd-profile-hero { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); padding: clamp(20px, 4vw, 40px); border-radius: 16px; background: linear-gradient(120deg, #0b1b32, #273c78); color: #fff; }
.sd-profile-hero .sd-logo { box-sizing: border-box; width: clamp(84px, 16vw, 158px); height: clamp(62px, 10vw, 95px); flex-shrink: 0; padding: 8px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; object-fit: contain; }
.sd-profile-hero .sd-logo--dark { border-color: #516598; background: var(--sd-navy); }
.sd-profile-heading { min-width: 0; }
.sd-profile-heading h1 { margin: 0 0 12px; color: inherit; font-size: clamp(31px, 5vw, 56px); line-height: 1.07; letter-spacing: -.045em; overflow-wrap: anywhere; }
.sd-profile-heading .sd-tags { margin: 0; }
.sd-profile-heading .sd-tags li { padding: 0; background: #e7eeff; color: #283b72; }
.sd-profile-heading .sd-tags a { display: block; padding: 5px 8px; color: inherit; text-decoration: none; }
.sd-profile-heading .sd-tags a:hover { text-decoration: underline; }
.sd-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 34%); gap: 20px; align-items: start; margin-top: 20px; }
.sd-profile-content { display: grid; gap: 20px; }
.sd-profile-panel { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--sd-line); border-radius: 14px; background: #fff; }
.sd-profile-panel h2, .sd-related h2 { margin: 0 0 14px; color: var(--sd-navy); font-size: clamp(20px, 2.5vw, 27px); letter-spacing: -.025em; line-height: 1.2; }
.sd-profile-panel p { margin: 0; color: var(--sd-muted); font-size: 15px; line-height: 1.65; }
.sd-profile-panel .sd-checked { margin-top: 14px; font-size: 13px; }
.sd-profile-panel dl { margin: 0; }
.sd-profile-panel dt { color: var(--sd-muted); font-size: 13px; }
.sd-profile-panel dd { margin: 4px 0 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.sd-profile-panel .sd-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; margin-bottom: 16px; border-radius: 10px; background: #f4f7fb; }
.sd-profile-contact dl > div { padding: 12px 0; border-bottom: 1px solid var(--sd-line); }
.sd-profile-contact dl > div:first-child { padding-top: 0; }
.sd-profile-contact dd a { color: var(--sd-accent); text-decoration: none; }
.sd-profile-contact dd a:hover { text-decoration: underline; }
.sd-terms a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; margin-top: 16px; border-radius: 9px; background: var(--sd-accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.sd-terms a:hover { background: #233792; }
.sd-related { margin-top: 30px; }
.sd-related-card { flex-direction: row; align-items: center; gap: 10px; color: var(--sd-navy); text-decoration: none; }
.sd-related-card:hover { border-color: var(--sd-accent); }
.sd-related-card .sd-logo { width: 60px; height: 38px; object-fit: contain; border-radius: 5px; }
.sd-related-card .sd-logo--dark { background: var(--sd-navy); }
.sd-related-card small { display: block; margin-top: 3px; color: var(--sd-muted); overflow-wrap: anywhere; }
.sd-related-card > span:last-child { margin-left: auto; color: var(--sd-accent); }

.sd-review-panel { margin-top: 24px; }
.sd-review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: start; }
.sd-review { padding-block: 14px; border-bottom: 1px solid var(--sd-line); }
.sd-review header, .sd-review footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.sd-review header { justify-content: space-between; }
.sd-review time { color: var(--sd-muted); font-size: 13px; }
.sd-review p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sd-review footer { margin-top: 10px; }
.sd-official-reply { margin: 12px 0 0 14px; padding: 12px 14px; border-inline-start: 3px solid var(--sd-accent); border-radius: 6px; background: #f0f4fc; }
.sd-official-reply strong { color: var(--sd-accent); overflow-wrap: anywhere; }
.sd-reply-editor { margin: 10px 0 0 14px; }
.sd-reply-editor summary { color: var(--sd-accent); font-size: 14px; font-weight: 650; cursor: pointer; }
.sd-reply-editor form { margin-top: 8px; }
[data-reply-status]:empty, [data-representative-status]:empty { display: none; }
.sd-representative-panel { margin-bottom: 18px; }
.sd-representatives-form { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.sd-representatives-form :is(div,p) { grid-column: 1 / -1; }
.sd-representatives-form select { width: 100%; min-height: 40px; border: 1px solid #aebed3; border-radius: 8px; background: white; padding-inline: 8px; color: inherit; font: inherit; }
.sd-review-form { display: grid; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--sd-line); border-radius: 12px; background: #f4f7fb; }
.sd-review-form h3 { margin: 0; }
.sd-review-form label { display: grid; gap: 5px; color: var(--sd-navy); font-size: 14px; }
.sd-review-form :is(input,textarea) { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #aebed3; border-radius: 8px; background: #fff; color: inherit; font: inherit; font-size: 16px; }
.sd-review-form textarea { resize: vertical; }
.sd-review-form p { font-size: 13px; }
.sd-review-form [data-submit-status]:empty, [data-list-status]:empty, [data-admin-status]:empty { display: none; }
.sd-review-primary, .sd-review-secondary { box-sizing: border-box; min-height: 40px; padding: 7px 13px; border: 1px solid var(--sd-accent); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.sd-review-primary, .sd-review-secondary[aria-pressed="true"] { background: var(--sd-accent); color: #fff; }
.sd-review-secondary:not([aria-pressed="true"]) { background: #fff; color: var(--sd-accent); }
.sd-review-primary:disabled, .sd-review-secondary:disabled { opacity: .65; cursor: default; }
.sd-review-panel [data-more], .sd-review-panel [data-retry], [data-admin-more], [data-admin-retry] { margin-top: 12px; }
.sd-review-admin { width: min(100% - 32px, 960px); margin: 24px auto; }
.sd-review-admin-head, .sd-review-filters { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.sd-review-filters { justify-content: flex-start; margin-bottom: 12px; }
.sd-review-admin a { color: var(--sd-accent); }

@media (max-width: 900px) { .sd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sd-profile-grid, .sd-review-layout, .sd-representatives-form { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .supplier-directory .mc-container { width: calc(100% - 32px); }
  .sd-grid { grid-template-columns: 1fr; }
  .sd-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-categories button { font-size: 13px; }
  .mc-public-nav { flex-wrap: wrap; column-gap: 8px; }
}
