/* Blogs: the index (blogs.html) and articles (blogs/<slug>.html), built by tools/build_blogs.py.
   Cards follow the home page's dark tiles; articles use a single reading column. */

/* ---- Index -------------------------------------------------------------- */
.blog-index {
  padding-bottom: 140px;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -120px auto 72px;
  max-width: 980px;
}

.blog-filter__chip {
  padding: 10px 18px;
  border: 1px solid rgba(17, 20, 16, 0.18);
  border-radius: 999px;
  background: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.blog-filter__chip:hover {
  border-color: #111410;
}

.blog-filter__chip.is-active {
  border-color: #111410;
  background: #111410;
  color: var(--c-lime);
}

.blog-group + .blog-group {
  margin-top: 80px;
}

.blog-group__title {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #111410;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
}

.blog-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid rgba(205, 242, 0, 0.12);
  border-radius: 20px;
  background: #111410;
  color: #c9cbc0;
  box-shadow: 0 24px 48px -32px rgba(11, 15, 8, 0.55);
  transition: transform 450ms var(--ease-expo), border-color 350ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

.blog-card__link:hover,
.blog-card__link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(205, 242, 0, 0.55);
  box-shadow: 0 30px 56px -30px rgba(11, 15, 8, 0.6), 0 0 0 1px rgba(205, 242, 0, 0.12);
}

.blog-card__cat {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f9483;
}

.blog-card__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-lime);
}

.blog-card__text {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.blog-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f3f6e8;
}

/* ---- Article ------------------------------------------------------------ */
.post-hero {
  padding-bottom: 64px;
}

.post-hero__crumbs {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6f63;
}

.post-hero__crumbs a {
  color: inherit;
}

.post-hero__crumbs a:hover {
  color: var(--c-lime-ink, #586f00);
}

.post-hero__title {
  max-width: 900px;
  margin: 18px auto 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #111410;
}

.post-hero__meta {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: #6b6f63;
}

.post-layout {
  max-width: 760px;
  padding-bottom: 140px;
}

.prose {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.75;
  color: #2c3024;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #111410;
}

.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111410;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: #6f8a00;
}

.prose strong {
  font-weight: 600;
  color: #111410;
}

.prose a {
  color: #111410;
  text-decoration: underline;
  text-decoration-color: #b5d600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: #111410;
}

.post-cta {
  margin-top: 64px;
  padding: 36px 32px;
  border-radius: 24px;
  background: #111410;
  color: #c9cbc0;
  text-align: center;
}

.post-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--c-lime);
}

.post-cta__text {
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.post-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.post-cta .btn--outline {
  border-color: rgba(243, 246, 232, 0.5);
  background: transparent;
  color: #f3f6e8;
}

.post-cta .btn--outline:hover {
  border-color: var(--c-lime);
  background: transparent;
  color: var(--c-lime);
}

.post-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(17, 20, 16, 0.12);
}

.post-related__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #111410;
}

.post-related ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.post-related ul a {
  color: #2c3024;
  text-decoration: underline;
  text-decoration-color: #b5d600;
  text-underline-offset: 3px;
}

.post-related__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
  color: #111410;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1023px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-filter {
    margin-top: -80px;
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .blog-filter {
    justify-content: flex-start;
    margin: -40px 0 48px;
  }

  .blog-index,
  .post-layout {
    padding-bottom: 96px;
  }

  .post-cta {
    padding: 28px 20px;
  }
}

/* ---- Employee login (employees.html) ------------------------------------ */
.portal {
  padding-bottom: 160px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.portal-card .blog-card__link {
  padding: 36px 32px 32px;
}

.portal-card__title {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
}

@media (max-width: 899px) and (min-width: 600px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .portal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .portal {
    padding-bottom: 96px;
  }
}

.portal-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border: 1px solid rgba(205, 242, 0, 0.35);
  border-radius: 18px;
  background: radial-gradient(circle at 30% 25%, rgba(205, 242, 0, 0.22), rgba(205, 242, 0, 0.04) 70%);
  color: var(--c-lime);
}

.portal-card__icon svg {
  width: 34px;
  height: 34px;
}

.portal-logo {
  display: block;
  width: auto;
  height: 88px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 12px 24px rgba(141, 170, 0, 0.35));
}

@media (max-width: 599px) {
  .portal-logo {
    height: 68px;
  }
}
