/* PCM Consulting blog. Built on the landing page classes (header, hero-eyebrow, heading-section,
   text-caption, link-large, text-link, footer). Large type scales in vw like the landing, small text stays fixed.
   Palette from the landing: ink #000, grey #767676, line #adadad, light blue #EDF5FF, blue line #C0D4EC */

.blog-hero {
  padding: 15.278vw 3.889vw 4.444vw;
}

.blog-hero .hero-eyebrow { text-align: left; }
.blog-hero .heading-section { max-width: 69.444vw; }

.eyebrow-link { color: inherit; text-decoration: none; }

.post-dek {
  max-width: 55.556vw;
  margin: 2.222vw 0 0;
  font-size: max(18px, 1.667vw);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #333;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.667vw;
  row-gap: 6px;
  margin-top: 2.222vw;
  color: #767676;
}

.post-section { padding-top: 0; }

/* Covers: line art on light blue, rounded like the service cards */
.post-cover-wrap { padding: 0 3.889vw 5.556vw; }

.post-cover,
.post-card-cover {
  overflow: hidden;
  border-radius: max(10px, .833vw);
  background: #edf5ff;
}

.post-cover svg,
.post-card-cover svg {
  display: block;
  width: 100%;
  height: auto;
}

.post-cover { max-width: 92.222vw; aspect-ratio: 1200 / 600; }
.post-cover svg { height: 100%; object-fit: cover; }

/* Index grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2.222vw;
  row-gap: 11.111vw;
}

.post-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3.333vw; }

.post-card {
  display: flex;
  flex-direction: column;
  row-gap: 1.111vw;
  color: #000;
  text-decoration: none;
}

.post-card-cover { margin-bottom: .833vw; }
.post-card-cover svg { transition: transform 1s cubic-bezier(.19, 1, .22, 1); }

.post-card-cat {
  font-size: max(15px, 1.111vw);
  line-height: 1.45;
  color: #767676;
}

.post-card-title {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.944vw;
  font-weight: 600;
  line-height: 1.05;
}

.post-grid.is-three .post-card-title { font-size: 1.944vw; }

.post-card-title span {
  text-decoration-line: none;
  text-decoration-thickness: max(1px, .06em);
  text-underline-offset: .12em;
}

.post-card-desc {
  margin: 0;
  max-width: none;
  font-size: max(15px, 1.111vw);
  line-height: 1.45;
  color: #4d4d4d;
}

@media (hover: hover) {
  .post-card:hover .post-card-title span { text-decoration-line: underline; }
  .post-card:hover .post-card-cover svg { transform: scale(1.03); }
}

.blog-empty {
  padding: 2.778vw 0;
  border-top: 1px solid #adadad;
  border-bottom: 1px solid #adadad;
  color: #767676;
}

/* Article body */
.post-body {
  width: min(100%, max(620px, 47.222vw));
  margin: 0 auto 0 21.944vw;
  font-size: max(17px, 1.319vw);
  line-height: 1.62;
  letter-spacing: -.005em;
}

.post-body > :first-child { margin-top: 0; }

.post-body p,
.post-body ul,
.post-body ol { margin: 0 0 1.1em; }

.post-body ul,
.post-body ol { padding-left: 1.2em; }

.post-body li { margin-bottom: .45em; }
.post-body li::marker { color: #767676; }

.post-body h2 {
  scroll-margin-top: 120px;
  letter-spacing: -.03em;
  margin: 2.2em 0 .7em;
  font-size: max(26px, 2.5vw);
  font-weight: 600;
  line-height: 1.05;
}

.post-body h3 {
  letter-spacing: -.02em;
  margin: 1.8em 0 .5em;
  font-size: max(20px, 1.597vw);
  font-weight: 600;
  line-height: 1.15;
}

.post-body strong { font-weight: 600; }

.post-body blockquote {
  margin: 1.6em 0;
  padding: 0;
  border: 0;
  font-family: Romie, Times New Roman, serif;
  font-style: italic;
  font-size: max(24px, 2.222vw);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.post-body blockquote p { margin: 0; }

.post-body a {
  color: #000;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: .05em;
  transition: background-size 1s cubic-bezier(.19, 1, .22, 1);
}

@media (hover: hover) {
  .post-body a:hover { background-size: 0% 1px; }
}

.post-body hr {
  height: 1px;
  margin: 2.4em 0;
  border: 0;
  background: #adadad;
}

.post-body .table-wrap { overflow-x: auto; margin: 1.4em 0; }

.post-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .86em;
  line-height: 1.45;
}

.post-body th,
.post-body td {
  padding: .7em .9em .7em 0;
  border-bottom: 1px solid #d9d9d9;
  text-align: left;
  vertical-align: top;
}

.post-body th { font-weight: 600; border-bottom-color: #000; }

/* Key takeaways: light blue card, same corners as the service cards */
.post-takeaways {
  margin: 0 0 2.4em;
  padding: max(24px, 2.222vw) max(24px, 2.5vw);
  border: 1px solid #c0d4ec;
  border-radius: max(10px, .833vw);
  background: #edf5ff;
}

.post-takeaways-label { margin-bottom: .9em; color: #000; font-weight: 500; }
.post-takeaways ul { margin: 0; }
.post-takeaways li:last-child { margin-bottom: 0; }

/* FAQ accordion: smooth open and close, the plus turns into a cross */
.faq { border-top: 1px solid #adadad; }

.faq-item { border-bottom: 1px solid #adadad; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  padding: 1.05em 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  transition: transform .8s cubic-bezier(.19, 1, .22, 1);
}

.faq-icon svg { display: block; width: 100%; height: 100%; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-a { overflow: hidden; }
.faq-a-inner { padding: 0 52px 1.2em 0; color: #333; }
.faq-a-inner > :last-child { margin-bottom: 0; }

/* References: small, quiet, but every link visible */
.post-refs {
  margin-top: 3.4em;
  font-size: max(14px, .972vw);
  line-height: 1.5;
  color: #4d4d4d;
}

.post-refs h2 { margin-top: 0; font-size: max(20px, 1.597vw); color: #000; }
.post-refs ol { padding-left: 1.4em; }
.post-refs li { margin-bottom: .6em; overflow-wrap: anywhere; }
.post-refs a { color: #4d4d4d; }

.post-next ul { list-style: none; padding-left: 0; }
.post-next li { padding-left: 1.3em; position: relative; }
.post-next li::before { content: "→"; position: absolute; left: 0; color: #767676; }

.post-disclaimer { margin: 2.4em 0 0; color: #767676; }

/* Author box: photo and name side by side, bio and LinkedIn link under them */
.post-author {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "photo name" "photo bio" "photo link";
  align-items: start;
  column-gap: max(20px, 2.222vw);
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #adadad;
}

.post-author-photo {
  grid-area: photo;
  width: max(115px, 10vw);
  height: max(115px, 10vw);
  border-radius: 50%;
  background-color: #edf5ff;
  background-position: 50%;
  background-size: cover;
}

.post-author-name { grid-area: name; margin-bottom: .4em; font-weight: 600; letter-spacing: -.01em; }
.post-author-bio { grid-area: bio; margin: 0 0 .9em; font-size: .92em; line-height: 1.55; color: #333; }
.post-author-link { grid-area: link; justify-self: start; }

.post-end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 3.889vw;
}

.post-end .heading-section { max-width: 56.944vw; }

.post-end-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 3.889vw;
  row-gap: 16px;
}

.post-related { padding-top: 0; }

@media screen and (max-width: 991px) {
  .post-body { margin-left: auto; margin-right: auto; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card-title { font-size: 2.5vw; }
  .post-grid.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid.is-three .post-card:nth-child(3) { display: none; }
  .post-grid.is-three .post-card-title { font-size: 2.5vw; }
}

@media screen and (max-width: 767px) {
  .blog-hero { padding: 34vw 5.128vw 8.205vw; }
  .blog-hero .heading-section { max-width: none; font-size: 9.231vw; }
  .post-dek { max-width: none; margin-top: 5.128vw; font-size: 17px; }
  .post-meta { column-gap: 4.103vw; margin-top: 5.128vw; }

  .post-cover-wrap { padding: 0 5.128vw 10.256vw; }
  .post-cover { max-width: none; aspect-ratio: 1200 / 750; border-radius: 3.077vw; }
  .post-card-cover { border-radius: 3.077vw; margin-bottom: 2.051vw; }

  .post-grid,
  .post-grid.is-three { grid-template-columns: 1fr; row-gap: 18.462vw; }
  .post-grid.is-three .post-card:nth-child(3) { display: flex; }
  .post-card { row-gap: 2.564vw; }
  .post-card-title,
  .post-grid.is-three .post-card-title { font-size: 6.667vw; }
  .post-card-desc,
  .post-card-cat { max-width: none; font-size: 15px; }

  .blog-empty { padding: 6.154vw 0; }

  .post-body { width: 100%; margin: 0; font-size: 17px; }
  .post-body h2 { font-size: 24px; }
  .post-body h3 { font-size: 19px; }
  .post-body blockquote { font-size: 22px; }
  .faq-icon { width: 24px; height: 24px; }
  .faq-a-inner { padding-right: 0; }
  .post-refs { font-size: 14px; }
  .post-author { grid-template-areas: "photo name" "bio bio" "link link"; align-items: center; column-gap: 18px; }
  .post-author-photo { width: 115px; height: 115px; margin-bottom: 18px; }
  .post-author-name { margin-bottom: 18px; font-size: 19px; line-height: 1.2; }

  .post-end { row-gap: 8.205vw; }
  .post-end .heading-section { max-width: none; }
  .post-end-links { column-gap: 8.205vw; }
}

/* Touch screens have no hover: article titles in cards are underlined so it is clear they open the article */
@media (hover: none) {
  .post-card-title span { text-decoration-line: underline; }
}

/* Images inside articles: the same small rounding as the covers */
.post-body img { border-radius: max(10px, .833vw); }
@media screen and (max-width: 767px) { .post-body img { border-radius: 3.077vw; } }

/* Category in the article meta line: a small mint pill, so it reads as a category among others */
.post-meta { align-items: center; }
.post-cat {
  display: inline-block;
  padding: .28em .8em;
  border-radius: 999px;
  background: #e3f4ec;
  color: #1d5a45;
  font-size: .87em;
  line-height: 1.3;
  white-space: nowrap;
}

/* Credential line under the author's name (instead of an academic title) */
.post-author-cred { display: block; margin-top: .25em; font-weight: 400; font-size: .85em; letter-spacing: 0; color: #767676; }

/* Author name in the meta line reads in black, reading time stays grey */
.post-meta-author { color: #000; }

/* About page: author card on top, a clear gap before the text */
.about-body .about-head { margin-top: 0; margin-bottom: 3.333vw; padding-top: 0; border-top: 0; }
@media screen and (max-width: 767px) { .about-body .about-head { margin-bottom: 10.256vw; } }

/* Desktop article: meta line (author, category, reading time) at half the caption size,
   cover only as wide as the text column, aligned with it */
@media screen and (min-width: 768px) {
  .post-meta { font-size: max(13px, .833vw); column-gap: 1.111vw; }
  .post-cover-wrap { padding: 0 0 4.444vw; }
  .post-cover { width: min(100%, max(620px, 47.222vw)); max-width: none; margin: 0 auto 0 25.833vw; }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .post-cover { margin: 0 auto; }
}
/* Author box: LinkedIn and Read more side by side */
.post-author-links { grid-area: link; display: flex; flex-wrap: wrap; column-gap: max(20px, 2.222vw); row-gap: 12px; }
.post-author-links .post-author-link { grid-area: auto; }
