/* ===== Salt Detail Page ===== */

.sd-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sd-header-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.5rem;
  height: 3.75rem; display: flex; align-items: center; justify-content: space-between;
}

/* Nav */
.sd-nav-dropdown { position: relative; }
.sd-nav-btn {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted-fg);
  padding: 0.375rem 0.75rem; border-radius: 0.5rem; transition: all 0.15s;
}
.sd-nav-btn:hover { color: var(--fg); background: var(--muted); }
.sd-nav-btn .sd-chevron { transition: transform 0.2s; }
.sd-nav-btn.open .sd-chevron { transform: rotate(180deg); }
.sd-nav-menu {
  position: absolute; right: 0; top: 100%; margin-top: 0.5rem;
  width: 12rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.375rem 0; z-index: 50;
  opacity: 0; transform: translateY(-4px);
  animation: sdDropIn 0.2s ease forwards;
}
.sd-nav-menu a {
  display: block; padding: 0.625rem 1rem; font-size: 0.875rem;
  transition: background 0.15s;
}
.sd-nav-menu a:hover { background: var(--muted); }
@keyframes sdDropIn { to { opacity: 1; transform: translateY(0); } }

.sd-nav-dropdown { display: none; }
.sd-mobile-toggle { display: block; padding: 0.5rem; color: var(--muted-fg); }
@media (min-width: 641px) {
  .sd-nav-dropdown { display: block; }
  .sd-mobile-toggle { display: none; }
}
.sd-mobile-menu {
  border-top: 1px solid var(--border); background: var(--card);
}
.sd-mobile-menu a {
  display: block; padding: 0.75rem 1.5rem; font-size: 0.875rem;
  transition: background 0.15s;
}
.sd-mobile-menu a:hover { background: var(--muted); }

/* Main */
.sd-main {
  max-width: 72rem; margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

/* Breadcrumb */
.sd-breadcrumb {
  font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap;
}
.sd-breadcrumb a { transition: color 0.15s; }
.sd-breadcrumb a:hover { color: var(--primary); }
.sd-bc-sep { color: var(--border); }

/* Overview Layout */
.sd-overview-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .sd-overview-layout { grid-template-columns: 1fr 20rem; }
}

.sd-api-label {
  display: inline-block;
  font-size: 0.625rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--primary);
  padding: 0.1875rem 0.5rem; background: var(--secondary);
  border-radius: 0.25rem; margin-bottom: 0.5rem;
}
.sd-salt-name {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}
@media (min-width: 640px) { .sd-salt-name { font-size: 2rem; } }

.sd-primary-function {
  font-size: 1rem; color: var(--muted-fg); margin-bottom: 1.25rem;
  line-height: 1.5;
}

.sd-overview-text p {
  font-size: 0.875rem; line-height: 1.7; color: var(--fg);
  margin-bottom: 0.875rem;
}
.sd-overview-text strong { font-weight: 600; }

/* Technical Profile Card */
.sd-tech-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  align-self: start;
}
.sd-tech-header {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted-fg);
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.sd-tech-list { margin: 0; }
.sd-tech-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.5rem 0; border-bottom: 1px solid hsla(210, 15%, 90%, 0.5);
}
.sd-tech-row:last-child { border-bottom: none; }
.sd-tech-row dt {
  font-size: 0.75rem; color: var(--muted-fg); font-weight: 400;
}
.sd-tech-row dd {
  font-size: 0.8125rem; font-weight: 500; text-align: right;
  margin: 0;
}

/* Brands Section */
.sd-brands-section { margin-top: 1rem; }
.sd-brands-heading {
  font-size: 1.125rem; font-weight: 700; margin-bottom: 0.375rem;
}
.sd-brands-sub {
  font-size: 0.8125rem; color: var(--muted-fg); margin-bottom: 1.25rem;
}

.sd-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.sd-brands-table {
  width: 100%; min-width: 36rem;
  border-collapse: collapse; font-size: 0.8125rem;
}
.sd-brands-table thead {
  background: var(--muted);
}
.sd-brands-table th {
  padding: 0.75rem 1rem; text-align: left;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted-fg);
  border-bottom: 1px solid var(--border);
}
.sd-brands-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsla(210, 15%, 90%, 0.5);
}
.sd-brands-table tbody tr:last-child td { border-bottom: none; }
.sd-brands-table tbody tr:hover { background: hsla(174, 20%, 97%, 0.6); }

.sd-brand-name { font-weight: 600; }
.sd-brand-mfr { color: var(--muted-fg); }
.sd-brand-price { font-weight: 500; }

.sd-view-btn {
  font-size: 0.6875rem; font-weight: 500; color: var(--primary);
  padding: 0.3125rem 0.75rem; border: 1px solid hsla(174, 55%, 40%, 0.3);
  border-radius: 0.375rem; transition: all 0.15s; white-space: nowrap;
}
.sd-view-btn:hover { background: var(--secondary); }

/* Ad Banners */
.sd-ad-banner {
  max-width: 72rem; margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  background: hsla(210, 15%, 97%, 0.7);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.sd-ad-label {
  display: inline-block;
  font-size: 0.5625rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.sd-ad-content {}
.sd-ad-title {
  font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.25rem;
}
.sd-ad-text {
  font-size: 0.75rem; color: var(--muted-fg); line-height: 1.5;
}
