/* Home: Student Voices (partials/home_students.html). Lato. One story per row: a square photo with
   softly rounded corners on the left; on the right a small green label, a bold title, a short summary,
   the date with a calendar icon, and small grey tags. Rows are divided by thin full-width rules. */
.hs {
  --hs-green: #0b3a26;
  --hs-green-2: #0f6843;
  --hs-pill: #34c47c;
  --hs-blue: #2b86bf;
  --hs-ink: #111a15;
  --hs-soft: #4d5b54;
  --hs-line: #d9dfdb;
  --hs-tag: #e6e9e7;
  background: #ffffff;
  padding: clamp(64px, 7vw, 104px) 0;
  font-family: "Lato", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--hs-ink);
}
:where(.hs) * { font-family: inherit; }   /* the site-wide stylesheet sets `* { Poppins }` */
.hs p, .hs h2, .hs ul { margin: 0; }
.hs-shell { width: min(1100px, calc(100% - 56px)); margin-inline: auto; }

/* heading */
.hs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.hs-head h2 {
  font-size: clamp(26px, 1.1rem + 1.5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--hs-green);
}
.hs-head h2 span { color: var(--hs-blue); }
.hs-more {
  display: inline-flex;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hs-green-2);
  text-decoration: none;
  white-space: nowrap;
}
.hs-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.hs-more span { transition: transform 0.2s ease; }
.hs-more:hover span { transform: translateX(3px); }

/* the rows */
.hs-list { list-style: none; padding: 0; }
.hs-list li + li { border-top: 1px solid var(--hs-line); }
.hs-row {
  display: grid;
  grid-template-columns: clamp(180px, 25vw, 272px) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
  align-items: center;
  padding: clamp(20px, 2.2vw, 26px) 0;
  color: inherit;
  text-decoration: none;
}
.hs-row__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #e8eeea;
}
.hs-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hs-row:hover .hs-row__media img { transform: scale(1.03); }
.hs-row__text { display: flex; flex-direction: column; align-items: flex-start; max-width: 640px; }

.hs-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--hs-pill);
  color: #062417;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.hs-row__title {
  margin-top: 12px;
  font-size: clamp(19px, 0.9rem + 0.75vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--hs-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.hs-row:hover .hs-row__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hs-row__summary {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hs-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.hs-row__date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--hs-ink);
}
.hs-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.hs-tags span {
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--hs-tag);
  font-size: 11px;
  line-height: 1.4;
  color: var(--hs-ink);
}
.hs-row:focus-visible, .hs-more:focus-visible { outline: 2px solid var(--hs-blue); outline-offset: 4px; }

/* phones: smaller photo, still beside the text */
@media (max-width: 640px) {
  .hs-shell { width: calc(100% - 40px); }
  .hs-row { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; }
  .hs-row__title { margin-top: 8px; font-size: 16px; }
  .hs-row__summary { display: none; }
  .hs-row__date { margin-top: 8px; font-size: 12px; }
  .hs-tags { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-row__media img, .hs-more span { transition: none; }
}

/* dark theme (the site's own toggle) */
html[data-theme="dark"] .hs { background: #0f1713; --hs-ink: #e8f0ec; --hs-soft: #a9bab1; --hs-line: #24352c; --hs-tag: #22312a; }
html[data-theme="dark"] .hs-head h2 { color: #e8f0ec; }
html[data-theme="dark"] .hs-head h2 span { color: #8fd0f2; }
html[data-theme="dark"] .hs-more { color: #86d5b2; }
