/*--------------------------------------------------------------
# Styles for generated pages: page heroes, articles (blog posts,
# feature pages, guides), post lists, changelog and shortcuts.
# Colors follow style.css: #5777ba (accent), #47536e (headings),
# #f2f5fa (section background), #e8ecf5 (borders).
--------------------------------------------------------------*/

/* Keep the logo square when the image pipeline sets its size. */
#header .logo img {
  width: auto;
}

.navbar a.active,
.navbar a.active:focus {
  color: #5777ba;
}

/*--------------------------------------------------------------
# Page hero (smaller than the home page hero)
--------------------------------------------------------------*/
#hero.page-hero {
  padding: 130px 0 40px 0;
}

#hero.page-hero h1 {
  font-size: 40px;
  line-height: 1.2;
  max-width: 900px;
}

#hero.page-hero .lead {
  color: #515f7d;
  font-size: 19px;
  max-width: 820px;
  margin-bottom: 0;
}

.crumbs {
  font-size: 14px;
  margin-bottom: 12px;
  color: #8a8c95;
}

.crumbs a {
  color: #5777ba;
}

.crumbs span {
  margin: 0 6px;
}

.article-meta {
  margin: 16px 0 0 0;
  font-size: 14px;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-meta time {
  margin-right: 6px;
}

@media (max-width: 768px) {
  #hero.page-hero {
    padding: 110px 0 24px 0;
    text-align: left;
  }

  #hero.page-hero h1 {
    font-size: 30px;
  }

  #hero.page-hero .lead {
    font-size: 17px;
  }
}

/*--------------------------------------------------------------
# Tags
--------------------------------------------------------------*/
.tag-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  background: #e8ecf5;
  color: #47536e;
  font-size: 13px;
  line-height: 1.6;
  transition: 0.2s;
}

.tag-pill:hover,
.tag-pill.active {
  background: #5777ba;
  color: #fff;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

/*--------------------------------------------------------------
# Articles
--------------------------------------------------------------*/
section.article {
  padding-top: 30px;
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: #3b4356;
}

.prose h2 {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #47536e;
  margin: 40px 0 14px 0;
}

.prose h3 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #47536e;
  margin: 28px 0 10px 0;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 18px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(71, 83, 110, 0.18);
  margin: 10px 0 6px 0;
}

.prose figure {
  margin: 24px 0;
}

.prose figcaption {
  font-size: 14px;
  color: #6c757d;
  text-align: center;
  margin-top: 6px;
}

.prose blockquote,
.prose .note {
  border-left: 4px solid #5777ba;
  background: #f2f5fa;
  padding: 12px 18px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
}

.prose blockquote p:last-child,
.prose .note p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 24px 0;
  font-size: 15px;
  line-height: 1.5;
}

.prose th,
.prose td {
  border-bottom: 1px solid #e8ecf5;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #f2f5fa;
  color: #47536e;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.prose code {
  color: #47536e;
  background: #f2f5fa;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-word;
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: "Segoe UI", "Open Sans", sans-serif;
  font-size: 0.85em;
  line-height: 1.5;
  color: #47536e;
  background: #fff;
  border: 1px solid #c9d1e3;
  border-bottom-width: 2px;
  border-radius: 5px;
  white-space: nowrap;
}

/*--------------------------------------------------------------
# Download call to action
--------------------------------------------------------------*/
.download-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 50px 0 20px 0;
  padding: 24px 28px;
  background: #f2f5fa;
  border-radius: 12px;
}

.download-cta img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.download-cta-text {
  flex: 1;
}

.download-cta h2 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #47536e;
  margin: 0 0 4px 0;
}

.download-cta p {
  margin: 0;
  color: #515f7d;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5777ba;
  color: #fff;
  padding: 11px 24px;
  border-radius: 50px;
  white-space: nowrap;
  transition: 0.3s;
}

.btn-store:hover {
  background: #748ec6;
  color: #fff;
}

@media (max-width: 575px) {
  .download-cta {
    flex-direction: column;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# Post cards, related links and guide list
--------------------------------------------------------------*/
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ecf5;
  border-radius: 12px;
  overflow: hidden;
  color: #3b4356;
  transition: 0.25s;
}

.post-card:hover {
  border-color: #9fb2d8;
  box-shadow: 0 6px 24px rgba(71, 83, 110, 0.14);
  transform: translateY(-2px);
  color: #3b4356;
}

.post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.post-card-body {
  padding: 18px 20px 20px 20px;
}

.post-card time {
  font-size: 13px;
  color: #6c757d;
}

.post-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #47536e;
  margin: 6px 0 8px 0;
  line-height: 1.35;
}

.post-card p {
  font-size: 15px;
  margin: 0;
  color: #515f7d;
}

.feed-note {
  margin-top: 30px;
  text-align: center;
}

.related-title {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #47536e;
  margin: 40px 0 18px 0;
}

.related-links {
  columns: 2;
  padding-left: 18px;
}

.related-links li {
  margin-bottom: 8px;
  break-inside: avoid;
}

@media (max-width: 575px) {
  .related-links {
    columns: 1;
  }
}

.guide-item {
  display: block;
  padding: 22px 24px;
  margin-bottom: 16px;
  border: 1px solid #e8ecf5;
  border-radius: 12px;
  color: #3b4356;
  transition: 0.25s;
}

.guide-item:hover {
  border-color: #9fb2d8;
  box-shadow: 0 6px 24px rgba(71, 83, 110, 0.14);
  color: #3b4356;
}

.guide-item h2 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #47536e;
  margin: 4px 0 6px 0;
}

.guide-item p {
  margin: 0;
  color: #515f7d;
}

.guide-app {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5777ba;
}

/* Feature boxes whose titles are links (home page and /features/) */
.features .content .icon-box h3,
.features .content .icon-box h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 5px 0 10px 60px;
}

.features .content .icon-box h3 a,
.features .content .icon-box h2 a {
  color: #47536e;
}

.features .content .icon-box h3 a:hover,
.features .content .icon-box h2 a:hover {
  color: #5777ba;
}

/*--------------------------------------------------------------
# Rating
--------------------------------------------------------------*/
.rating-stars {
  font-size: 28px;
  color: #ffc107;
  margin: 6px 0 10px 0;
}

/*--------------------------------------------------------------
# Changelog
--------------------------------------------------------------*/
.changelog-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: #f2f5fa;
  border-radius: 8px;
  font-size: 15px;
}

.changelog-jump span {
  color: #6c757d;
}

.changelog-group {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #5777ba;
  margin: 50px 0 10px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8ecf5;
  scroll-margin-top: 90px;
}

.changelog-entry {
  padding: 18px 0 6px 0;
  border-bottom: 1px solid #e8ecf5;
  scroll-margin-top: 90px;
}

.changelog-entry h3 {
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.changelog-entry h3 a {
  color: #47536e;
}

.changelog-date {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6c757d;
}

.changelog-label {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  background: #e8ecf5;
  color: #47536e;
  padding: 1px 8px;
  border-radius: 50px;
}

.changelog-entry ul,
.changelog-entry ol {
  padding-left: 22px;
}

.changelog-entry li > p {
  margin-bottom: 4px;
}

.changelog-story {
  font-size: 15px;
  background: #f2f5fa;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/*--------------------------------------------------------------
# Keyboard shortcuts
--------------------------------------------------------------*/
.shortcut-group {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #47536e;
  margin: 34px 0 12px 0;
  scroll-margin-top: 90px;
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.shortcut-table th,
.shortcut-table td {
  border-bottom: 1px solid #e8ecf5;
  padding: 9px 10px;
  vertical-align: middle;
}

.shortcut-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 600;
}

.shortcut-table td:first-child {
  width: 45%;
}

.shortcut-table .or {
  font-size: 13px;
  color: #6c757d;
  margin: 0 4px;
}

/* Darker feature text than style.css for readable contrast. */
.features .content .icon-box p {
  color: #6c757d;
}

/* Banner for post cards without a screenshot */
.post-card-banner {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #47536e 0%, #5777ba 55%, #47b2e4 100%);
}

.post-card-banner.srenamer {
  background: linear-gradient(135deg, #3d2a6b 0%, #7a4fc4 55%, #b18bf0 100%);
}

.post-card-banner .banner-app {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.post-card-banner .banner-version {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

/*--------------------------------------------------------------
# Embedded videos
--------------------------------------------------------------*/
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 10px 0 20px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 24px rgba(71, 83, 110, 0.18);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-title {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #47536e;
  line-height: 1.4;
  min-height: 2.8em;
}

/* FAQ: style.css makes every link in the accordion a block, which is meant for the
   questions. Links inside an answer should flow with the sentence instead. */
.faq .accordion-list .collapse a {
  display: inline;
  position: static;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: #5777ba;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/*--------------------------------------------------------------
# History images in posts and the changelog
--------------------------------------------------------------*/
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 12px 28px;
  margin: 24px 0;
}

.prose .logo-row figure {
  margin: 0;
  text-align: center;
}

.prose .logo-row img,
.changelog-media img.logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.logo-row .arrow {
  align-self: center;
  font-size: 24px;
  color: #9fb2d8;
  padding-bottom: 24px;
}

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.prose .figure-pair figure {
  margin: 0;
}

@media (max-width: 575px) {
  .figure-pair {
    grid-template-columns: 1fr;
  }
}

.changelog-media {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 14px 0;
}

.changelog-media figure {
  margin: 0;
  max-width: 560px;
}

.changelog-media img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.changelog-media figcaption {
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
}

.figure-pair-caption {
  font-size: 14px;
  color: #6c757d;
  text-align: center;
  margin-top: -12px;
}

/* Images with a transparent background, such as badges: no frame or shadow. */
.prose img.plain {
  box-shadow: none;
  border-radius: 0;
}

/* Square or tall images that would otherwise fill the whole column. */
.prose figure.narrow img {
  display: block;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark panel for artwork with white text on a transparent background. */
.prose figure.badge-panel {
  background: #27304a;
  border-radius: 10px;
  padding: 24px 28px;
}

.prose figure.badge-panel img {
  margin: 0;
}

/* Grids of screenshots in posts and feature pages */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.figure-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.figure-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.prose .figure-grid figure {
  margin: 0;
}

.prose .figure-grid img {
  margin: 0;
}

.prose .figure-grid figcaption {
  margin-top: 4px;
}

@media (max-width: 767px) {
  .figure-grid.cols-3,
  .figure-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .figure-grid {
    grid-template-columns: 1fr;
  }
}

/* Logo timeline in the logo history post */
.logo-timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.logo-timeline li {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e8ecf5;
}

.prose .logo-timeline img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.logo-timeline .when {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #47536e;
}

.logo-timeline p {
  margin: 2px 0 0 0;
}

/* Tweet screenshots: shown at their natural size, never stretched */
.prose figure.tweet img {
  display: block;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: none;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
}

/* Home page: award note and featured quote */
.award-note {
  text-align: center;
  margin: 14px 0 0 0;
  font-size: 15px;
}

.award-note a {
  color: #47536e;
}

.award-note a:hover {
  color: #5777ba;
}

section.shout-out {
  padding: 50px 0;
}

.shout-out-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.shout-out-quote blockquote {
  margin: 0 0 14px 0;
}

.shout-out-quote blockquote p {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  color: #5777ba;
  margin: 0;
}

.shout-out-quote blockquote p::before {
  content: "\201C";
}

.shout-out-quote blockquote p::after {
  content: "\201D";
}

.shout-out-quote figcaption {
  color: #515f7d;
  font-size: 15px;
}

.shout-out-quote figcaption a {
  margin-left: 6px;
}

@media (max-width: 575px) {
  .shout-out-quote blockquote p {
    font-size: 21px;
  }
}

/* The award banner is wrapped in a link; keep it within the page width. */
#award a img {
  max-width: 100%;
  height: auto;
}
