/* =========================================================
   POST CONTENT
========================================================= */

#post-content {
  max-width: 720px;
}

/* =========================================================
   HEADINGS
========================================================= */

#post-content h2 {
  display: flex;
  align-items: center;
  gap: .6rem;

  margin-top: 2.8rem;
  margin-bottom: 1rem;

  font-size: 1.65rem;
  line-height: 1.3;
}

#post-content h2::before {
  content: '';

  flex-shrink: 0;

  width: 4px;
  height: 1.2em;

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      #059669,
      #0ea5e9
    );
}

#post-content h3 {
  margin-top: 2rem;
  margin-bottom: .75rem;

  font-size: 1.25rem;
  font-weight: 700;

  color: #fff;
}

/* =========================================================
   PARAGRAPHS
========================================================= */

#post-content p {
  margin-bottom: 1rem;

  line-height: 1.75;
}

/* =========================================================
   LISTS
========================================================= */

#post-content ul,
#post-content ol {
  margin: 1.2rem 0;
  padding-left: 1.5rem;
}

#post-content li {
  margin-bottom: .5rem;
  line-height: 1.7;
}

#post-content ul li::marker {
  color: #10b981;
}

/* =========================================================
   LINKS
========================================================= */

#post-content a {
  color: #0ea5e9;
  text-decoration: none;

  transition: opacity .2s ease;
}

#post-content a:hover {
  opacity: .8;
  text-decoration: underline;
}

/* =========================================================
   IMAGES
========================================================= */

.post-image {
  margin: 2.5rem 0;

  overflow: hidden;

  border: 1px solid #1e293b;
  border-radius: 18px;

  background: #0f172a;
}

.post-image img {
  width: 100%;
  height: auto;

  display: block;
}

.post-image figcaption {
  padding: 1rem;

  font-size: .9rem;
  text-align: center;

  color: #94a3b8;
}

/* =========================================================
   TABLES
========================================================= */

#post-content table {
  width: 100%;

  margin: 2rem 0;

  overflow: hidden;

  border-collapse: collapse;

  border: 1px solid #1e293b;
  border-radius: 16px;
}

#post-content thead {
  background: #111827;
}

#post-content th {
  padding: 1rem;

  text-align: left;

  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;

  color: #fff;
}

#post-content td {
  padding: 1rem;

  border-top: 1px solid #1e293b;

  color: #cbd5e1;
}

/* =========================================================
   COMPARISON TABLE
========================================================= */

.table-comparison img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;

  object-fit: contain;

  flex-shrink: 0;
}

/* =========================================================
   BLOCKQUOTES
========================================================= */

#post-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;

  border-left: 4px solid #10b981;
  border-radius: 12px;

  background: rgba(15, 23, 42, .6);

  color: #cbd5e1;
}

/* =========================================================
   CODE
========================================================= */

#post-content code {
  padding: .2rem .4rem;

  border-radius: 6px;

  background: #111827;

  color: #93c5fd;

  font-size: .9rem;
}

#post-content pre {
  overflow-x: auto;

  margin: 2rem 0;
  padding: 1rem;

  border-radius: 14px;

  background: #0f172a;
  border: 1px solid #1e293b;
}

/* =========================================================
   INTERACTIVE CHECKLIST
========================================================= */

.interactive-checklist {
  margin: 2rem 0;
  padding: 1.5rem;

  border: 1px solid #1e293b;
  border-radius: 16px;

  background: #0f172a;
}

.interactive-checklist__title {
  margin-bottom: 1rem;

  color: #fff;

  font-size: 1.375rem;
  font-weight: 700;
}

.interactive-checklist__progress {
  overflow: hidden;

  margin-bottom: 1rem;

  border-radius: 999px;

  background: #1e293b;
}

.interactive-checklist__bar {
  width: 0%;
  height: 10px;

  background:
    linear-gradient(
      90deg,
      #22c55e,
      #16a34a
    );

  transition: width .3s ease;
}

.interactive-checklist__score {
  margin-bottom: 1.25rem;

  color: #94a3b8;

  font-size: .875rem;
}

.interactive-checklist__section {
  margin-bottom: 1.25rem;
}

.interactive-checklist__section h3 {
  margin-bottom: .625rem;

  color: #e2e8f0;

  font-size: 1rem;
  font-weight: 700;
}

.interactive-checklist__item {
  display: flex;
  align-items: center;
  gap: .625rem;

  margin-bottom: .5rem;
  padding: .625rem .75rem;

  border-radius: 10px;

  background: #1e293b;

  color: #cbd5e1;

  cursor: pointer;
}

.interactive-checklist__item input {
  width: 1rem;
  height: 1rem;

  accent-color: #22c55e;
}

.interactive-checklist__result {
  margin-top: 1.25rem;
  padding: .875rem;

  border-radius: 10px;

  font-weight: 600;
}

.interactive-checklist__result.is-low {
  background: #7f1d1d;
  color: #fecaca;
}

.interactive-checklist__result.is-medium {
  background: #78350f;
  color: #fde68a;
}

.interactive-checklist__result.is-high {
  background: #064e3b;
  color: #bbf7d0;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  #post-content h2 {
    font-size: 1.4rem;
  }

  #post-content table {
    font-size: .9rem;
  }

  #post-content td,
  #post-content th {
    padding: .75rem;
  }

}