/* ============================================================
   article.php — editorial template on top of css/styles.css
   ============================================================ */

html {
  scroll-behavior: smooth;
}

.article-main {
  padding-bottom: 72px;
}

/* ---------------- Breadcrumbs ---------------- */

.breadcrumbs {
  position: relative;
  z-index: 10;
  margin: 10px 0 12px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: #6b7280;
}

.breadcrumbs-list li + li::before {
  content: "\203A";
  margin-right: 6px;
  color: #9ca3af;
}

.breadcrumbs-list a {
  color: #6b7280;
  text-decoration: none;
}

.breadcrumbs-list a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------------- Article header ---------------- */

.article {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
}

.article-header {
  max-width: 860px;
  margin: 0 auto 20px;
  text-align: center;
}

.article-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--olive);
}

.article-kicker a {
  color: inherit;
  text-decoration: none;
}

.article-kicker a:hover {
  text-decoration: underline;
}

.article-kicker-sep {
  color: #c7b45a;
}

.article-title {
  max-width: 900px;
  margin: 10px auto 12px;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.article-dek {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.62;
  color: #374151;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: #6b7280;
}

.article-author strong {
  color: var(--ink);
  font-weight: 700;
}

.article-meta-sep {
  color: #d1d5db;
}

/* ---------------- Featured image ---------------- */

.article-figure {
  max-width: 960px;
  margin: 24px auto 0;
}

.article-image-shell {
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

.article-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #ffffff;
  object-fit: contain;
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
}

/* ---------------- Two-column body ---------------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
  margin-top: 30px;
}

.article-body {
  min-width: 0;
}

.article-takeaways {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: var(--yellow-soft);
}

.article-takeaways-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.article-takeaways ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1f2937;
}

.article-toc {
  margin: 0 0 26px;
  padding: 16px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
}

.article-toc-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.article-toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.article-toc a {
  color: #374151;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------------- Article body ---------------- */

.article-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: #1f2937;
}

.article-content p {
  margin: 0 0 16px;
}

.article-content h2 {
  margin: 34px 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  scroll-margin-top: 24px;
}

.article-content h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-content li {
  line-height: 1.65;
}

.article-content a {
  color: #0b63c5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--ink);
}

.article-content strong {
  color: var(--ink);
  font-weight: 700;
}

.article-content blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--yellow);
  background: #fffdf0;
  font-size: 15px;
}

.article-content .article-callout {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
  background: #fffbeb;
}

.article-content .article-callout-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
}

.article-content .article-callout p {
  margin-bottom: 0;
}

.article-content .article-callout p + p {
  margin-top: 8px;
}

.article-content .article-table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
}

.article-content .article-table-wrap table {
  margin-bottom: 0;
}

.article-content table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 13px;
}

.article-content th,
.article-content td {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.article-content th {
  background: #f9fafb;
  font-weight: 700;
}

/* ---------------- FAQ ---------------- */

.article-faq {
  margin-top: 34px;
  padding-top: 6px;
  border-top: 1px solid #ececec;
}

.article-faq-title {
  margin: 22px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  scroll-margin-top: 24px;
}

.article-faq-list {
  display: grid;
  gap: 8px;
}

.article-faq-item {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.article-faq-item summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.article-faq-item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #374151;
}

/* ---------------- Tags, CTA ---------------- */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
}

.article-tags-label {
  margin-right: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.article-tag {
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f3f4f6;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
}

.article-cta {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--yellow);
  border-radius: 18px;
  background: var(--yellow-soft);
  text-align: center;
}

.article-cta-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.article-cta-title {
  margin: 4px 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.article-cta-text {
  max-width: 520px;
  margin: 0 auto 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #4b5563;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 9999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.article-cta-btn:hover {
  background: var(--yellow-hover-alt);
}

.article-cta-btn:active {
  transform: scale(0.99);
}

/* ---------------- Sidebar ---------------- */

.article-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 20px;
}

.side-card {
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px -20px rgba(17, 17, 17, 0.4);
}

.side-card-title {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.side-deals {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-deal {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.side-deal-thumb {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.side-deal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.side-deal-body {
  min-width: 0;
}

.side-deal-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}

.side-deal-title:hover {
  text-decoration: underline;
}

.side-deal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: #6b7280;
}

.side-deal-price {
  font-weight: 700;
  color: var(--ink);
}

.side-deal-was {
  color: #9ca3af;
}

.side-deal-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--yellow-soft);
  font-size: 10px;
  font-weight: 700;
}

.side-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.related-articles {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-article {
  display: flex;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.related-article-media {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.related-article-img {
  flex: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-article-body {
  display: block;
  min-width: 0;
}

.related-article-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.related-article-title {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.related-article:hover .related-article-title {
  text-decoration: underline;
}

.related-article-meta {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: #9ca3af;
}

/* ---------------- Missing article ---------------- */

.article-missing {
  max-width: 520px;
  margin: 20px auto;
  padding: 28px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
}

.article-missing-text {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* Anchor-based header items on this page */

.dropdown-item,
.chip {
  text-decoration: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .article-title {
    font-size: 28px;
  }

  .article-dek {
    font-size: 14px;
  }

  .article-meta {
    font-size: 10.5px;
  }

  .article-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}
