/* The News section: /news/ and its stories.

   The list is the Knowledge Hub's layout (knowledge-hub.css) under the hub's
   own banner (main.css, .blog__banner); a story is a Knowledge Hub article
   (kh-article.css) with the guides' type, links and image badge. This file
   adds only what a news story has that a guide does not: an "at a glance"
   panel, photos with a credit, quotes with who said them, and a call to
   action. Colours and type are the article's own (.kha in kh-article.css). */

/* ------------------------------------------------------------- banner */
/* the hub's banner (main.css), with its heading and text a little higher */
@media (min-width: 767px) { .blog__banner.news-banner { padding-bottom: 72px; } }
@media (min-width: 1280px) { .blog__banner.news-banner { padding-bottom: 120px; } }

/* --------------------------------------------------------------- list */
/* a story's picture is 16:9, the shape its page and its card show it in */
.kh-lead__image { aspect-ratio: 16 / 9; }

/* -------------------------------------------------------------- story */
/* headings as a guide's, which are bold (a <b> inside the CMS's <h2>) */
.kha__main .news-article h2 { font-weight: 700; scroll-margin-top: 96px; }

/* a photo, full column width: the guides' Tyres.co.uk badge over its corner
   (main.css .article__logo), and its credit underneath */
.news-figure { margin: 4px 0 30px; }
.kha__main .news-figure .article__image-wrap { margin: 0; }
/* the credit shares a line with the badge, clear of it */
.news-figure figcaption { margin-top: -6px; padding-right: 140px; font-size: 14px; line-height: 1.5; color: var(--kha-soft); }
@media (min-width: 767px) { .news-figure figcaption { margin-top: -14px; padding-right: 200px; } }

/* the story in five lines: a small spec sheet */
.news-facts {
  margin: 4px 0 34px;
  border: 1px solid var(--kha-line);
  border-radius: 14px;
  overflow: hidden;
}
.kha__main .news-facts__title {
  margin: 0;
  padding: 12px 22px;
  border-bottom: 1px solid var(--kha-line);
  background: var(--kha-grey);
  font-family: var(--kha-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kha-ink);
}
.news-facts dl { margin: 0; padding: 2px 22px; }
.news-facts dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 2px 20px; padding: 12px 0; }
.news-facts dl > div + div { border-top: 1px solid var(--kha-line); }
.news-facts dt { font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--kha-soft); }
.news-facts dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--kha-ink); }
@media (max-width: 599px) {
  .news-facts dl > div { grid-template-columns: minmax(0, 1fr); }
}

/* what each side said: the words large, then who said them. A quote follows
   the one before it under a hairline, so two read as one exchange. */
.news-quote { margin: 4px 0 30px; padding-top: 22px; border-top: 1px solid var(--kha-line); }
.news-quote + .news-quote { margin-top: -4px; }
h2 + .news-quote { padding-top: 6px; border-top: 0; }
.news-quote::before {
  content: "\201C";
  display: block;
  height: 30px;
  margin-bottom: 10px;
  font-family: var(--kha-head);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--kha-red);
}
.kha__main .news-quote blockquote { margin: 0; padding: 0; border: 0; }
.kha__main .news-quote blockquote p {
  margin: 0;
  padding: 0;
  font-family: var(--kha-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--kha-ink);
}
.news-quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
/* the speaker's side: Cardiff Racing's dragon, or the Tyres.co.uk tyre */
.news-quote__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--kha-line);
  border-radius: 50%;
  background: #fff;
}
.kha__main .news-quote__mark img { display: block; width: 36px; height: 36px; border-radius: 0; }
.news-quote__mark--tyres::before {
  content: "";
  width: 26px;
  height: 26px;
  background: var(--kha-ink);
  -webkit-mask: url("../img/tyre-mark.png") center / contain no-repeat;
  mask: url("../img/tyre-mark.png") center / contain no-repeat;
}
.news-quote__who { display: flex; flex-direction: column; min-width: 0; }
.news-quote__name { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--kha-ink); }
.news-quote__role { font-size: 14px; line-height: 1.4; color: var(--kha-soft); }
/* where the words were first published, when they were not said to us */
.news-quote__source { margin-left: auto; font-size: 13px; line-height: 1.4; color: var(--kha-soft); }
@media (max-width: 639px) {
  .kha__main .news-quote blockquote p { font-size: 18px; }
  .news-quote__source { flex: 0 0 100%; box-sizing: border-box; margin-left: 0; padding-left: 60px; }
}

/* what a reader near the team can do next */
.news-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin: 4px 0 34px;
  padding: 24px 28px;
  border-radius: 14px;
  background: var(--kha-grey);
}
.news-cta__text { flex: 1 1 320px; min-width: 0; }
.kha__main .news-cta__text p { margin: 0; padding: 0; font-size: 16px; line-height: 1.55; color: var(--kha-body); }
.kha__main .news-cta__text p.news-cta__title {
  margin-bottom: 4px;
  font-family: var(--kha-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--kha-ink);
}
.news-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.news-cta__link { font-size: 15px; font-weight: 600; }
