/* Icearth Part Page Template — scoped styles */
:root {
  --icearth-navy: #112744;
  --icearth-ink: #1a2d4a;
  --icearth-blue: #146bdd;
  --icearth-blue-dark: #0f59bd;
  --icearth-pale: #eff6ff;
  --icearth-line: #dce7f2;
  --icearth-muted: #61748f;
  --icearth-soft: #f7fbff;
  --icearth-orange: #ff542d;
}

.icearth-part-page {
  background: linear-gradient(180deg, #f5faff 0, #ffffff 38rem);
  color: var(--icearth-ink);
  padding: 0 0 5rem;
}

.icearth-part-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 2.2rem;
}

.icearth-part-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  color: #75879e;
  font-size: .82rem;
  margin: 0 0 1.4rem;
}

.icearth-part-breadcrumbs a {
  color: #4d6785;
  text-decoration: none;
}

.icearth-part-breadcrumbs a:hover { color: var(--icearth-blue); }

.icearth-part-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, .78fr);
  gap: 3.4rem;
  align-items: start;
  padding: 2rem 0 3.8rem;
}

.icearth-part-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.1rem;
}

.icearth-part-eyebrow span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cde0f6;
  background: rgba(235, 245, 255, .8);
  color: #2166bb;
  border-radius: 999px;
  padding: .34rem .7rem;
  font-size: .73rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.icearth-part-page h1,
.icearth-part-page h2,
.icearth-part-page h3,
.icearth-part-page p { margin-top: 0; }

.icearth-part-page h1 {
  color: var(--icearth-navy);
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
  margin-bottom: 1.25rem;
}

.icearth-part-lead {
  max-width: 45rem;
  color: #58718e;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
}

.icearth-part-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  font-size: .82rem;
}

.icearth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .78rem;
  border-radius: 999px;
  border: 1px solid #d6e8fb;
  background: #f2f8ff;
  color: #2a6097;
  font-weight: 800;
}

.icearth-status-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #5b85b5; }
.icearth-status-not-recommended-for-new-designs-nrnd .icearth-status-dot,
.icearth-status-nrnd .icearth-status-dot { background: #f4a100; }
.icearth-status-end-of-life-eol .icearth-status-dot,
.icearth-status-eol .icearth-status-dot,
.icearth-status-obsolete .icearth-status-dot { background: var(--icearth-orange); }
.icearth-status-active .icearth-status-dot { background: #24a56a; }
.icearth-last-verified { color: #71849b; }

.icearth-rfq-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(210, 224, 239, .9);
  border-radius: 1.15rem;
  box-shadow: 0 1.25rem 3.25rem rgba(26, 69, 115, .11);
  padding: 1.75rem;
  overflow: hidden;
}

.icearth-rfq-card::after {
  content: '';
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,107,221,.10), transparent 67%);
  pointer-events: none;
}

.icearth-rfq-kicker,
.icearth-sidebar-label,
.icearth-section-heading > span,
.icearth-bottom-cta > div > span {
  color: var(--icearth-blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.icearth-rfq-card h2 {
  position: relative;
  z-index: 1;
  color: var(--icearth-navy);
  font-size: 1.34rem;
  line-height: 1.25;
  letter-spacing: -.025em;
  margin: .55rem 0 .6rem;
}

.icearth-rfq-card p { color: var(--icearth-muted); font-size: .89rem; line-height: 1.65; }
.icearth-rfq-note { border-top: 1px solid var(--icearth-line); margin: 1rem 0 0; padding-top: .95rem; font-size: .75rem !important; }

.icearth-rfq-primary,
.icearth-rfq-secondary,
.icearth-bottom-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none !important;
  font-weight: 800;
  border-radius: .52rem;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.icearth-rfq-primary {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 1.1rem;
  padding: .9rem 1rem;
  color: #fff !important;
  background: var(--icearth-blue);
}
.icearth-rfq-primary:hover { color: #fff !important; background: var(--icearth-blue-dark); transform: translateY(-1px); box-shadow: 0 .7rem 1.4rem rgba(20,107,221,.18); }

.icearth-part-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(265px, .64fr);
  gap: 3rem;
  align-items: start;
}

.icearth-part-main-column { min-width: 0; }
.icearth-part-section { padding: 0 0 2.75rem; margin: 0 0 2.75rem; border-bottom: 1px solid var(--icearth-line); }
.icearth-part-section:last-child { border-bottom: 0; margin-bottom: 0; }

.icearth-section-heading { margin-bottom: 1.15rem; }
.icearth-section-heading h2 {
  color: var(--icearth-navy);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.035em;
  margin: .28rem 0 0;
}

.icearth-prose { color: #4f6783; line-height: 1.78; font-size: 1rem; }
.icearth-prose > *:last-child { margin-bottom: 0; }
.icearth-prose a { color: var(--icearth-blue); }

.icearth-spec-table-wrap { overflow-x: auto; border: 1px solid var(--icearth-line); border-radius: .9rem; background: #fff; }
.icearth-spec-table { width: 100%; border-collapse: collapse; min-width: 32rem; }
.icearth-spec-table th,
.icearth-spec-table td { padding: .95rem 1.1rem; border-bottom: 1px solid #e6eef7; text-align: left; vertical-align: top; }
.icearth-spec-table tr:last-child th,
.icearth-spec-table tr:last-child td { border-bottom: 0; }
.icearth-spec-table th { width: 38%; background: #f8fbff; color: #274b74; font-size: .86rem; font-weight: 800; }
.icearth-spec-table td { color: #536b86; font-size: .92rem; }

.icearth-sourcing-callout { border: 1px solid #d9e8f8; border-radius: .85rem; padding: 1.2rem 1.25rem; background: #f4f9ff; }
.icearth-sourcing-callout h3,
.icearth-alternatives h3,
.icearth-sourcing-notes h3 { color: var(--icearth-navy); font-size: 1rem; letter-spacing: -.015em; margin-bottom: .42rem; }
.icearth-sourcing-callout p,
.icearth-alternatives p { color: #58708c; line-height: 1.7; font-size: .91rem; margin-bottom: 0; }
.icearth-alternatives,
.icearth-sourcing-notes { margin-top: 1.25rem; }
.icearth-alternatives ul { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: .85rem 0 0; list-style: none; }
.icearth-alt-chip { display: inline-flex; border-radius: .45rem; border: 1px solid #d3e2f4; background: #fff; color: #285384; padding: .5rem .62rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .78rem; font-weight: 700; }

.icearth-part-sidebar { display: grid; gap: 1rem; position: sticky; top: 1.5rem; }
.icearth-sidebar-card { border: 1px solid var(--icearth-line); border-radius: .95rem; background: #fff; padding: 1.3rem; }
.icearth-sidebar-card h2 { color: var(--icearth-navy); font-size: 1.18rem; letter-spacing: -.02em; line-height: 1.28; margin: .4rem 0 1rem; }
.icearth-sidebar-card p { color: #607791; font-size: .88rem; line-height: 1.68; }
.icearth-document-actions { display: grid; gap: .65rem; }
.icearth-document-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid #d8e4f1; border-radius: .58rem; color: #285783; background: #f8fbff; padding: .76rem .82rem; text-decoration: none !important; font-size: .88rem; font-weight: 800; }
.icearth-document-link:hover { border-color: var(--icearth-blue); color: var(--icearth-blue); }
.icearth-empty-note { margin: 0; }
.icearth-sidebar-rfq { background: linear-gradient(145deg, #102945, #173b64); border-color: transparent; }
.icearth-sidebar-rfq .icearth-sidebar-label { color: #a5d0ff; }
.icearth-sidebar-rfq h2 { color: #fff; }
.icearth-sidebar-rfq p { color: #c0d5ec; }
.icearth-rfq-secondary { width: 100%; margin-top: .55rem; padding: .82rem 1rem; background: #fff; color: var(--icearth-navy) !important; }
.icearth-rfq-secondary:hover { transform: translateY(-1px); background: #edf5ff; }

.icearth-bottom-cta {
  margin-top: 4.25rem;
  padding: clamp(1.8rem, 4vw, 3.25rem);
  border-radius: 1.15rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #102743, #173b64);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.icearth-bottom-cta::after { content:''; position:absolute; width:19rem; height:19rem; border:1px solid rgba(255,255,255,.08); border-radius:50%; right:-8rem; top:-10rem; box-shadow:0 0 0 2.8rem rgba(255,255,255,.025), 0 0 0 5.6rem rgba(255,255,255,.016); }
.icearth-bottom-cta > div { position: relative; z-index: 1; }
.icearth-bottom-cta > div > span { color: #a9d3ff; }
.icearth-bottom-cta h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); color: #fff; letter-spacing: -.04em; margin: .32rem 0 .5rem; }
.icearth-bottom-cta p { margin: 0; max-width: 42rem; color: #c0d5ec; font-size: .96rem; line-height: 1.7; }
.icearth-bottom-cta-button { position:relative; z-index:1; flex: 0 0 auto; color: var(--icearth-navy) !important; background: #fff; padding: .95rem 1.15rem; }
.icearth-bottom-cta-button:hover { color: var(--icearth-navy) !important; transform: translateY(-1px); background: #edf5ff; }

@media (max-width: 900px) {
  .icearth-part-hero { grid-template-columns: 1fr; gap: 1.75rem; }
  .icearth-part-grid { grid-template-columns: 1fr; gap: 2rem; }
  .icearth-part-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .icearth-part-shell { width: min(1180px, calc(100% - 28px)); padding-top: 1.3rem; }
  .icearth-part-page { padding-bottom: 3rem; }
  .icearth-part-hero { padding: 1.2rem 0 2.5rem; }
  .icearth-part-page h1 { font-size: clamp(2.15rem, 12vw, 3.45rem); }
  .icearth-part-lead { font-size: .98rem; }
  .icearth-part-section { padding-bottom: 2.2rem; margin-bottom: 2.2rem; }
  .icearth-part-sidebar { grid-template-columns: 1fr; }
  .icearth-bottom-cta { flex-direction: column; align-items: stretch; text-align: left; margin-top: 2.5rem; }
  .icearth-bottom-cta-button { width: 100%; }
  .icearth-spec-table { min-width: 29rem; }
}

@media (prefers-reduced-motion: reduce) {
  .icearth-rfq-primary,
  .icearth-rfq-secondary,
  .icearth-bottom-cta-button { transition: none; }
}
