/* Editorial home page blocks (inc/home-blocks.php), same layout as on foodboxen.nl. */

.tmf-choice {
  --tmf-green: #5EAD39;
  --tmf-dark: #243F2F;
  --tmf-grey: #6b6b6b;
  --tmf-line: #e4e7e4;
  margin: 0 auto;
  padding: 0 50px;
}

.tmf-choice__heading {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.63px;
  color: var(--tmf-dark);
  text-align: center;
}

.tmf-choice__intro {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tmf-grey);
  text-align: center;
}

.tmf-choice__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.tmf-choice__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tmf-line);
  border-radius: 20px;
}

.tmf-choice__image { line-height: 0; background: #f6f8f5; }
.tmf-choice__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
/* The COOK photo has the logo across the top. */
.tmf-choice__image--low img { object-position: center 85%; }

.tmf-choice__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px 28px;
}

.tmf-choice__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--tmf-dark); }
.tmf-choice__sub { margin: 0; font-size: 15px; font-weight: 600; color: var(--tmf-green); }
.tmf-choice__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--tmf-dark); }
.tmf-choice__names { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tmf-grey); }
.tmf-choice__names a { color: var(--tmf-dark); text-decoration: underline; }
.tmf-choice__names a:hover { color: var(--tmf-green); }

.tmf-choice__link {
  margin-top: 8px;
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--tmf-green);
  font-size: 15px;
  font-weight: 700;
  color: var(--tmf-dark);
  text-decoration: none;
}
.tmf-choice__link:hover { color: var(--tmf-green); }

@media (max-width: 880px) {
  .tmf-choice__cards { grid-template-columns: 1fr; }
  .tmf-choice__heading { font-size: 26px; letter-spacing: -0.9px; }
}
@media (min-width: 768px) and (max-width: 1024px) { .tmf-choice { padding: 0 30px; } }
@media (max-width: 767px) { .tmf-choice { padding: 0 20px; } }
