/* Long-form pages (/about/, /apparel-sourcing-bangladesh/, /guides/…).

   Loaded after inara-product-page.css, which provides the header, intro,
   FAQ, call to action, "more" links and footer. This adds readable prose,
   a key-facts grid, tables and guide cards. Built by tools/build-pages.py. */

.ip-intro .ip-lede {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.ip-intro h1.is-long {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
}

.ip-meta {
  margin-top: 20px;
  color: var(--ip-muted);
  font-size: 14px;
  letter-spacing: -0.02em;
}

/* Key facts: a grid of white tiles with a big figure and a label. */
.ip-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 var(--ip-gutter) 4px;
}

.ip-fact {
  padding: 24px;
  border-radius: 18px;
  background: var(--ip-card);
}

.ip-fact strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}

.ip-fact span {
  color: var(--ip-muted);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

/* Prose */
.ip-article {
  margin: 4px var(--ip-gutter) 0;
  padding: 48px 40px;
  border-radius: 18px;
  background: var(--ip-card);
}

.ip-article > * {
  max-width: 760px;
}

.ip-article h2 {
  margin: 48px 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.ip-article h2:first-child {
  margin-top: 0;
}

.ip-article h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ip-article p,
.ip-article li {
  color: rgba(10, 10, 10, 0.78);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.ip-article p {
  margin: 0 0 16px;
}

.ip-article ul,
.ip-article ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.ip-article li {
  margin-bottom: 8px;
}

.ip-article li strong,
.ip-article p strong {
  color: var(--ip-ink);
  font-weight: 600;
}

.ip-article a {
  color: var(--ip-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ip-article a:hover {
  opacity: 0.7;
}

.ip-table-wrap {
  max-width: 100%;
  margin: 8px 0 24px;
  overflow-x: auto;
}

.ip-article table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.ip-article th,
.ip-article td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--ip-dot);
  text-align: left;
  vertical-align: top;
}

.ip-article th {
  font-weight: 600;
}

.ip-article td {
  color: rgba(10, 10, 10, 0.78);
}

.ip-note {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--ip-page);
}

/* Guide cards on /guides/ */
.ip-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 var(--ip-gutter);
  padding: 0;
  list-style: none;
}

.ip-guides a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  min-height: 240px;
  padding: 28px;
  border-radius: 18px;
  background: var(--ip-card);
}

.ip-guides a:hover {
  background: var(--ip-ink);
  color: var(--ip-card);
}

.ip-guides h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.ip-guides p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  opacity: 0.7;
}

@media (max-width: 1199.98px) {
  .ip-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-guides {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 809.98px) {
  .ip-article {
    padding: 28px 22px;
  }

  .ip-article p,
  .ip-article li {
    font-size: 16px;
  }

  .ip-guides {
    grid-template-columns: 1fr;
  }

  .ip-guides a {
    min-height: 0;
  }
}
