/* PPGL specialty metals directory: standalone light/dark tokens */
.alloy-page {
  font-family: Inter, sans-serif;
}
.al-hero {
  background: linear-gradient(115deg, #071525, #143752);
  color: #fff;
  padding: 86px 0;
}
.al-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 55px;
}
.al-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #e6b527;
}
.al-hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.055em;
  line-height: 1.07;
  margin: 18px 0 22px;
  color: #fff;
}
.al-hero h1 span {
  color: #ffd33f;
}
.al-hero p {
  color: #d0dce8;
  font-size: 16px;
  line-height: 1.8;
  max-width: 600px;
}
.al-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.al-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s;
}
.al-button:hover {
  transform: translateY(-2px);
}
.al-primary {
  background: #ffd12f;
  color: #0a1827;
}
.al-secondary {
  border: 1px solid #8193a5;
  color: #fff;
}
.al-visual {
  background: linear-gradient(145deg, #193a53, #0d2235);
  border: 1px solid #47657d;
  border-radius: 26px;
  padding: 28px;
  min-height: 350px;
  box-shadow: 0 25px 60px #0003;
}
.al-visual-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffd33f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.al-visual-title i {
  font-size: 25px;
}
.al-metal-lines {
  height: 140px;
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: center;
  overflow: hidden;
  margin: 10px 0 18px;
}
.al-metal-lines span {
  display: block;
  width: 15%;
  border-radius: 14px 14px 0 0;
  border: 1px solid #9bb2c2;
  background: linear-gradient(
    90deg,
    #2d526d,
    #bed1dc 40%,
    #5d7e93 75%,
    #1a3a51
  );
  height: 65%;
}
.al-metal-lines span:nth-child(2) {
  height: 90%;
}
.al-metal-lines span:nth-child(3) {
  height: 100%;
}
.al-metal-lines span:nth-child(4) {
  height: 83%;
}
.al-metal-lines span:nth-child(5) {
  height: 56%;
}
.al-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.al-visual-grid div {
  border: 1px solid #42617a;
  background: #ffffff0d;
  border-radius: 12px;
  padding: 13px;
  color: #e9f3fa;
  font-size: 12px;
  font-weight: 700;
}
.al-visual-grid i {
  color: #ffd33f;
  margin-right: 7px;
}
.al-directory {
  --al-bg: #f5f7fa;
  --al-card: #fff;
  --al-ink: #101d2d;
  --al-muted: #45576d;
  --al-line: #d7e0e9;
  --al-accent: #906a00;
  background: var(--al-bg);
  color: var(--al-ink);
  padding: 76px 0 88px;
}
.al-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.al-heading h2 {
  color: var(--al-ink);
  font-size: clamp(30px, 3.3vw, 46px);
  letter-spacing: -0.045em;
  margin: 10px 0;
}
.al-heading p {
  color: var(--al-muted);
  max-width: 700px;
  line-height: 1.75;
}
.al-counter {
  text-align: center;
  min-width: 110px;
}
.al-counter strong {
  display: block;
  color: var(--al-accent);
  font-size: 40px;
}
.al-counter span {
  color: var(--al-muted);
  font-size: 12px;
}
.al-controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.al-search,
.al-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--al-card);
  color: var(--al-ink);
  border: 1px solid var(--al-line);
  border-radius: 13px;
  padding: 14px 17px;
}
.al-search input,
.al-filter select {
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--al-ink);
  font: inherit;
}
.al-search input::placeholder {
  color: var(--al-muted);
  opacity: 1;
}
.al-filter span {
  color: var(--al-muted);
  white-space: nowrap;
  font-size: 12px;
}
.al-filter option {
  background: var(--al-card);
  color: var(--al-ink);
}
.al-search:focus-within,
.al-filter:focus-within {
  outline: 2px solid #d5a400;
  outline-offset: 2px;
}
.al-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.al-card {
  min-height: 175px;
  display: flex;
  flex-direction: column;
  background: var(--al-card);
  border: 1px solid var(--al-line);
  border-radius: 18px;
  padding: 24px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.al-card:hover {
  transform: translateY(-3px);
  border-color: #d1a62d;
}
.al-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--al-accent);
}
.al-card h3 {
  color: var(--al-ink);
  font-size: 19px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.al-card a {
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--al-accent);
}
.al-card a i {
  margin-left: 7px;
}
.al-note {
  color: var(--al-muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 27px;
}
.al-note i {
  color: var(--al-accent);
  margin-right: 8px;
}
.al-empty {
  padding: 40px;
  text-align: center;
  color: var(--al-ink);
}
.al-cta {
  background: #10293f;
  padding: 65px 0;
  color: #fff;
}
.al-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.al-cta h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  margin: 12px 0;
}
.al-cta p {
  color: #cad9e6;
  line-height: 1.7;
  max-width: 700px;
}
html[data-theme="dark"] .alloy-page .al-directory,
body[data-theme="dark"].alloy-page .al-directory,
html.dark .alloy-page .al-directory {
  --al-bg: #0b1725;
  --al-card: #142538;
  --al-ink: #f3f7fc;
  --al-muted: #bfd0e0;
  --al-line: #31475e;
  --al-accent: #ffd447;
}
@media (max-width: 900px) {
  .al-hero-grid {
    grid-template-columns: 1fr;
  }
  .al-visual {
    max-width: 600px;
  }
  .al-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .al-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 620px) {
  .al-hero {
    padding: 55px 0;
  }
  .al-directory {
    padding: 55px 0;
  }
  .al-grid,
  .al-controls {
    grid-template-columns: 1fr;
  }
  .al-heading {
    align-items: flex-start;
  }
  .al-card {
    min-height: 150px;
  }
  .al-visual {
    min-height: 280px;
    padding: 20px;
  }
  .al-visual-grid {
    gap: 7px;
  }
  .al-visual-grid div {
    padding: 10px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .al-card,
  .al-button {
    transition: none;
  }
}
