/*
  The Grand-Place Award
  ---------------------
  Loaded only on /awards/, after style.css and places.css. The page head,
  the .place-facts panel and the .place-card grid all come from places.css;
  everything here is specific to the rules page.

  Conventions followed from css/style.css rather than re-chosen: 4 px on
  panels, hairline borders instead of shadows, uppercase labels at
  11px / 700 / .1em, Montserrat for headings and Open Sans for prose.
*/

.aw-lede{
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 18px;
}

.aw-intro{
  margin: 0 0 8px;
  color: var(--text-body);
}

/* The seal. Given room rather than shrunk into a corner: it is the thing a
   reader will be looking for in a window later, so it wants to be memorable
   at this size. */
.aw-seal{
  margin: 0;
  display: flex;
  justify-content: center;
}
.aw-seal img{
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* --- The five tests ------------------------------------------------------
   Numbered because they genuinely are a sequence a place is put through,
   and all five have to pass. */

.aw-tests{
  counter-reset: aw;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.aw-tests > li{
  counter-increment: aw;
  position: relative;
  background: var(--surface);
  padding: 22px 26px 24px 74px;
}

.aw-tests > li::before{
  content: counter(aw);
  position: absolute;
  left: 26px;
  top: 22px;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--accent);
}

.aw-tests h3{
  margin: 0 0 6px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}

.aw-tests p{
  margin: 0;
  color: var(--text-body);
}

/* --- By category --------------------------------------------------------- */

.aw-cats{ margin-top: 10px; }

.aw-cat{
  height: 100%;
  padding: 22px 24px 24px;
  margin-bottom: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.aw-cat h3{
  margin: 0 0 8px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}

.aw-cat p{ margin: 0; color: var(--text-body); }

/* --- Laureates, and the honest empty state ------------------------------- */

.aw-empty{
  margin: 24px 0 0;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-warm);
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  color: var(--text-body);
}

/* --- The disclosures ----------------------------------------------------- */

.section-title.aw-left{ text-align: left; }

.aw-rules{ margin: 26px 0 0; }

.aw-rules dt{
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 22px 0 4px;
}
.aw-rules dt:first-child{ margin-top: 0; }

.aw-rules dd{
  margin: 0;
  color: var(--text-body);
}

.aw-nothing{
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
  font-size: 13.5px;
  color: var(--text-muted);
}

.aw-close{
  margin: 46px 0 0;
  padding-top: 24px;
  border-top: 2px solid var(--text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

@media (max-width: 767px){
  .aw-lede{ font-size: 17px; }
  .aw-seal{ margin-top: 26px; }
  .aw-seal img{ max-width: 220px; }
  .aw-tests > li{ padding: 20px 20px 22px 62px; }
  .aw-tests > li::before{ left: 20px; }
  .aw-close{ font-size: 16px; }
}
