/* Impulsa Ruralia: Noticias (news.php).
   Visual source of truth: the client prototype view ?vista=novedades
   (.rb-simple-view, .rb-simple-head, .rb-news-card).
   Loaded from news.php only, after setup_page. Not part of $THEME->sheets.
   Work Sans, olive #6e7d41, yellow #fdc608, beige #f2e7dd, ink #263619. */

/* The prototype pins these views to light. */
:root {
  color-scheme: light;
}

/* lib.php adds body.impulsa-page; impulsa.css also uses .impulsa-page as a
   content wrapper (max-width 1120 + auto margins), which boxes the whole body.
   Undo that on these two pages so the chrome stays full width. */
body.path-local-impulsa.impulsa-page {
  max-width: none;
  margin: 0;
  background: #fff;
  color: #000;
}

body.path-local-impulsa #page,
body.path-local-impulsa #page-wrapper,
body.path-local-impulsa #topofscroll,
body.path-local-impulsa #region-main {
  background: #fff;
}

/* The prototype has no Moodle page heading band. */
body.path-local-impulsa #page-header {
  display: none;
}

body.path-local-impulsa #region-main {
  padding-block: 0;
  border: 0;
  box-shadow: none;
}

.impulsa-simple {
  max-width: 960px;
  min-height: 55vh;
  margin: 0 auto;
  padding: 38px 0 70px;
  font-family: "Work Sans", Arial, sans-serif;
  line-height: normal;
  color: #000;
}

.impulsa-simple *,
.impulsa-simple *::before,
.impulsa-simple *::after {
  box-sizing: border-box;
}

.impulsa-simple a.impulsa-simple__back {
  color: #4d622c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.impulsa-simple a.impulsa-simple__back:hover {
  text-decoration: underline;
}

.impulsa-simple__head {
  max-width: 700px;
  margin: 30px 0 27px;
}

.impulsa-simple__head span {
  color: #56683b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.impulsa-simple__head h1 {
  margin: 7px 0 12px;
  color: #263619;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 37px;
  font-weight: 700;
  line-height: 1.16;
}

.impulsa-simple__head p {
  margin: 0;
  color: #4c5547;
  font-size: 16px;
  line-height: 1.55;
}

.impulsa-simple__card {
  border: 1px solid #ded9cc;
  border-radius: 15px;
  background: #fffdfa;
}

/* News card. */
.impulsa-news-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 25px;
  max-width: 770px;
  padding: 27px;
}

.impulsa-news-card__date {
  display: grid;
  place-content: center;
  width: 75px;
  height: 80px;
  border-radius: 10px;
  background: #fdc608;
  color: #263619;
  text-align: center;
}

.impulsa-news-card__date strong {
  font-size: 30px;
  line-height: 1;
}

.impulsa-news-card__date span {
  font-size: 11px;
  font-weight: 800;
}

.impulsa-news-card small {
  color: #56683b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.impulsa-news-card h2 {
  margin: 5px 0 9px;
  color: #263619;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
}

.impulsa-news-card p {
  margin: 0 0 17px;
  color: #4c5547;
  font-size: 15px;
  line-height: 1.5;
}

.impulsa-news-card a {
  color: #4a6128;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.impulsa-simple a:focus-visible {
  outline: 3px solid #fdc608;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .impulsa-simple {
    padding-inline: 20px;
  }
}

@media (max-width: 560px) {
  .impulsa-simple__head h1 {
    font-size: 30px;
  }

  .impulsa-news-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
}
