/* ═══════════════════════════════════════════════════
   WORKWEAR GUIDES — articles layer
   Extends the Clean Factory Green system (styles.css)
═══════════════════════════════════════════════════ */

/* ---------- HUB GRID ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px var(--gold-glow);
  border-color: var(--border-2);
}
.article-card-photo {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.article-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.article-card:hover .article-card-photo img { transform: scale(1.06); }
.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 30px;
  flex: 1;
}
.article-tag {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  padding: 6px 12px;
  border-radius: 100px;
}
.article-card-body h3 { font-size: 1.3rem; line-height: 1.25; }
.article-card-body p { font-size: .9rem; margin: 0; }
.article-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--text-dim);
  font-weight: 500;
}
.article-card-link {
  color: var(--gold);
  font-weight: 600;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-card-link::after { content: '→'; transition: transform .3s ease; }
.article-card:hover .article-card-link::after { transform: translateX(4px); }

/* ---------- ARTICLE READING LAYOUT ---------- */
.article-shell { padding: 80px 0 110px; }
.article-wrap {
  width: min(100% - 48px, 820px);
  margin: 0 auto;
}
.article-back {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .02em;
  display: inline-flex;
  gap: 7px;
  margin-bottom: 28px;
}
.article-back::before { content: '←'; }
.article-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 14px 0 18px;
}
.article-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-2);
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-dim);
  font-weight: 500;
}
.article-cover {
  margin: 38px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }

.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 48px 0 16px;
  letter-spacing: -.01em;
}
.article-body h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.article-body p { font-size: 1.02rem; line-height: 1.85; margin-bottom: 18px; }
.article-body ul, .article-body ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body ul li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
  line-height: 1.7;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.article-body ol { counter-reset: step; padding-left: 0; }
.article-body ol li {
  position: relative;
  padding-left: 40px;
  color: var(--text-2);
  line-height: 1.7;
}
.article-body ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  background: var(--gold-glow);
  color: var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}
.article-body strong { color: var(--text); font-weight: 600; }

/* "what is useful for what" comparison table */
.use-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0 30px;
  font-size: .93rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.use-table thead th {
  background: #14361A;
  color: #EAF5EC;
  text-align: left;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 14px 16px;
}
.use-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.6;
}
.use-table tbody tr:nth-child(even) { background: var(--glass); }
.use-table td:first-child { font-weight: 600; color: var(--text); }

/* callout / tip box */
.callout {
  background: var(--gold-glow);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p { margin: 0; color: var(--text); font-size: .98rem; }
.callout .callout-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* end-of-article CTA */
.article-cta {
  margin-top: 56px;
  padding: 40px;
  background: #14361A;
  border-radius: var(--r-md);
  text-align: center;
  color: #EAF5EC;
}
.article-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.article-cta p { color: rgba(234,245,236,.8); margin-bottom: 22px; }

/* related guides */
.related-wrap { width: min(100% - 48px, 1100px); margin: 0 auto; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 28px; }
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 22px;
  transition: border-color .3s ease, transform .3s ease;
}
.related-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.related-card span { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.related-card h4 { font-size: 1.05rem; margin-top: 8px; line-height: 1.3; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .article-grid { grid-template-columns: 1fr; }
  .use-table { font-size: .86rem; }
  .use-table thead th, .use-table td { padding: 10px 11px; }
}
