/* ==========================================================================
   Article V2 — new-article.css
   Figma: My Service Animal / Article
   ========================================================================== */

body,
html {
  scroll-behavior: smooth;
  @media screen and (min-width: 1100px) {
    overflow-x: visible !important;
  }
}
/* ---------- Layout ---------- */

.article-v2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
}

.article-v2__container {
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Hero / Title ---------- */

.article-v2__hero {
  padding: 64px 0 44px;

  @media screen and (max-width: 1100px) {
    padding: var(--gap-xl) 0 var(--gap-md);
  }

  @media screen and (max-width: 768px) {
    padding: var(--space-md) 0 var(--gap-sm);
  }
}

.article-v2__title {
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: var(--text-h1-lh);
  color: var(--color-text);
  margin: 0;

  @media screen and (max-width: 1100px) {
    font-size: var(--text-display);
    line-height: var(--text-display-lh);
  }
}

/* ---------- Breadcrumbs ---------- */

.article-v2__breadcrumbs {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-v2__breadcrumbs a {
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm-lh);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.article-v2__breadcrumbs a:hover {
  text-decoration: underline;
}

.article-v2__breadcrumbs-sep {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-text);
  flex-shrink: 0;
}

.article-v2__breadcrumbs-current {
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm-lh);
  font-weight: 500;
  color: var(--color-text);
}

.article-v2__breadcrumbs-home {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.article-v2__breadcrumbs-home svg {
  width: 20px;
  height: 20px;
}

/* ---------- Two-column layout ---------- */

.article-v2__layout {
  display: flex;
  gap: var(--gap-xl);
  margin-top: var(--gap-xxl);
  overflow: visible;

  @media screen and (max-width: 1100px) {
    flex-direction: column;
    margin-top: var(--gap-md);
  }
}

.article-v2__main {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 44px;

  @media screen and (max-width: 1100px) {
    gap: var(--gap-md);
  }
}

.article-v2__content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.article-v2__sidebar {
  flex-shrink: 0;
  width: 340px;

  @media screen and (max-width: 1100px) {
    width: 100%;
    order: -1;
  }
}

.article-v2__sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
  position: sticky;
  top: 120px;

  @media screen and (max-width: 1100px) {
    gap: var(--gap-md);
  }
}

/* ---------- Content sections ---------- */

.article-v2__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.article-v2__content h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--text-h2-lh);
  color: var(--color-text);
  margin: 0 0 10px 0;
}

.article-v2__content h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--text-h3-lh);
  color: var(--color-text);
  margin: 0 0 4px 0;
}

.article-v2__text {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--text-body-lh);
  color: var(--color-text);
}

.article-v2__content p a:not([class]) {
  color: var(--color-accent);
}

.article-v2__content p a:not([class]):hover {
  color: var(--color-accent-2);
}

.article-v2__text p {
  margin: 0;
}

.article-v2__text ul,
.article-v2__text ol {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.article-v2__text ul li::marker,
.article-v2__text ol li::marker {
  color: var(--color-error);
}

/* ---------- Bullet lists ---------- */

.article-v2__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-left: var(--gap-lg);
}

.article-v2__bullet {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.article-v2__bullet-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 5px;
  background: var(--color-error);
  margin-top: 8px;
}

.article-v2__bullet-text {
  flex: 1;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--text-body-lh);
  color: var(--color-text);
}

.article-v2__bullet-text strong {
  font-weight: 700;
}

/* ---------- Blockquote ---------- */

.article-v2__content blockquote {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--gap-xxl) var(--gap-md) var(--gap-md) var(--gap-md);
  margin: var(--gap-xl) auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  border-left: none; /* Override default WP blockquote style */

  @media screen and (max-width: 1100px) {
    max-width: 100%;
  }
}

.article-v2__content blockquote::before {
  content: '';
  display: block;
  position: absolute;
  top: var(--gap-md);
  left: var(--gap-md);
  width: 24px;
  height: 24px;
  background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.5101 18.52C16.1017 18.52 14.9187 18.0412 13.9611 17.0835C13.0222 16.1071 12.5527 14.7081 12.5527 12.8867C12.5527 11.8163 12.7311 10.8211 13.0879 9.901C13.4635 8.96211 13.9705 8.14528 14.6089 7.4505C15.2473 6.73694 15.9703 6.20178 16.7777 5.845C18.0171 5.28167 19.8385 5 22.2421 5V5.73233C19.8197 5.73233 18.064 6.12667 16.9749 6.91533C15.9046 7.704 15.3694 8.81189 15.3694 10.239C15.5196 10.0324 15.8576 9.85406 16.3834 9.70383C16.928 9.53483 17.4913 9.45033 18.0734 9.45033C18.8996 9.45033 19.6226 9.6475 20.2422 10.0418C20.8619 10.4362 21.3501 10.9713 21.7069 11.6473C22.0637 12.3046 22.2421 13.0369 22.2421 13.8443C22.2421 15.1963 21.8102 16.3136 20.9464 17.1962C20.1014 18.0787 18.956 18.52 17.5101 18.52Z' fill='%23135894'/%3E%3Cpath d='M6.95733 18.52C5.549 18.52 4.366 18.0412 3.40833 17.0835C2.46944 16.1071 2 14.7081 2 12.8867C2 11.8163 2.17839 10.8211 2.53517 9.901C2.91072 8.96211 3.41772 8.14528 4.05617 7.4505C4.69461 6.73694 5.41756 6.20178 6.225 5.845C7.46433 5.28167 9.28578 5 11.6893 5V5.73233C9.267 5.73233 7.51128 6.12667 6.42217 6.91533C5.35183 7.704 4.81667 8.81189 4.81667 10.239C4.96689 10.0324 5.30489 9.85406 5.83067 9.70383C6.37522 9.53483 6.93856 9.45033 7.52067 9.45033C8.34689 9.45033 9.06983 9.6475 9.6895 10.0418C10.3092 10.4362 10.7974 10.9713 11.1542 11.6473C11.5109 12.3046 11.6893 13.0369 11.6893 13.8443C11.6893 15.1963 11.2574 16.3136 10.3937 17.1962C9.54867 18.0787 8.40322 18.52 6.95733 18.52Z' fill='%23135894'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.article-v2__content blockquote::after {
  content: none;
}

.article-v2__content blockquote p {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--text-body-lh);
  color: var(--color-text);
  margin: 0;
}

.article-v2__content blockquote cite {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: var(--text-body-lh);
  color: var(--color-text);
  font-style: normal;
  margin-top: 4px;
}

.article-v2__content blockquote cite::before {
  content: '';
  display: block;
  width: 2px;
  height: 20px;
  background: #135894;
  flex-shrink: 0;
}

/* ---------- Comparison table ---------- */

.article-v2__content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 600px;
}

.article-v2__table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin: 0;
  box-sizing: border-box;

  @media screen and (max-width: 768px) {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-left: calc(var(--container-padding) * -1);
    margin-right: calc(var(--container-padding) * -1);
    width: calc(100% + var(--container-padding) * 2);
    max-width: none;
    padding: 0;
  }
}

.article-v2__content table th,
.article-v2__content table td {
  padding: 12px;
  text-align: center;
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm-lh);
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}

.article-v2__content table th {
  background: var(--color-bg-secondary);
  font-weight: 600;
  color: var(--color-text);
}

.article-v2__content table td {
  font-weight: 500;
  color: var(--color-text-secondary);
  min-width: 140px;
  word-wrap: break-word;
  white-space: normal;
}

.article-v2__content table tbody tr:last-child td {
  border-bottom: none;
}

.article-v2__content table td:not(:last-child),
.article-v2__content table th:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

/* ---------- FAQ ---------- */

.article-v2__faq {
  display: flex;
  flex-direction: column;
  margin: var(--gap-xxl) 0;
}

.article-v2__faq-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  color: var(--color-text);
  margin: 0;
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid #dfdfdf;
}

.article-v2__faq-list {
  display: flex;
  flex-direction: column;
}

.article-v2__faq-item {
  border-bottom: 1px solid #dfdfdf;
}

.article-v2__faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: var(--space-md) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  outline: none;
}

.article-v2__faq-question:focus {
  outline: none;
}

.article-v2__faq-qtext {
  flex: 1;
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: var(--text-h3-lh);
  color: var(--color-text);

  @media screen and (max-width: 768px) {
    font-size: var(--text-body);
    line-height: var(--text-body-lh);
  }
}

.article-v2__faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 33px;
  background: #f6f6f6;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.article-v2__faq-icon::before,
.article-v2__faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent);
  border-radius: 2px;
}

.article-v2__faq-icon::before {
  width: 12px;
  height: 2.5px;
}

.article-v2__faq-icon::after {
  width: 2.5px;
  height: 12px;
  transition: opacity 0.3s ease;
}

.article-v2__faq-item.is-open .article-v2__faq-icon::after {
  opacity: 0;
}

.article-v2__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.article-v2__faq-inner {
  padding-bottom: var(--space-md);
  padding-right: 60px; /* space for icon alignment */
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--text-body-lh);
  color: var(--color-text);

  @media screen and (max-width: 768px) {
    font-size: var(--text-body-sm);
    line-height: var(--text-body-sm-lh);
  }
}

.article-v2__faq-inner p {
  margin: 0 0 10px 0;
}

.article-v2__faq-inner p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .article-v2__faq-inner {
    padding-right: 0;
  }
}

/* ---------- References ---------- */
.article-v2__ref-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.article-v2__ref-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: 0;
  margin: 0;
}

.article-v2__ref-title {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--text-h3-lh);
  color: var(--color-text);
}

.article-v2__ref-item {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

.article-v2__ref-num {
  width: 16px;
  flex-shrink: 0;
  font-size: var(--text-body-sm);
  font-weight: 600;
  line-height: var(--text-body-sm-lh);
  color: var(--color-text);
}

.article-v2__ref-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-v2__ref-author {
  font-size: var(--text-body-sm);
  font-weight: 600;
  line-height: var(--text-body-sm-lh);
  color: var(--color-text);
}

.article-v2__ref-link {
  font-size: var(--text-label);
  font-weight: 500;
  line-height: var(--text-label-lh);
  color: var(--color-accent);
  text-decoration: none;
}

.article-v2__ref-link:hover {
  text-decoration: underline;
}

.article-v2__ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0;
  border: none;
  border-bottom: 2px solid var(--color-text-secondary);
  background: transparent;
  font-size: var(--text-body-sm);
  font-weight: 600;
  line-height: var(--text-btn-lh);
  color: var(--color-text-secondary);
  cursor: pointer;
  align-self: flex-start;
  transition:
    color 0.2s,
    border-color 0.2s;
  margin: 0;
}

.article-v2__ref-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* ---------- Disclaimer ---------- */

.article-v2__disclaimer {
  border: 1px solid rgba(245, 67, 54, 0.5);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: var(--gap-sm);
  align-items: flex-start;
}

.article-v2__disclaimer-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.article-v2__disclaimer-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.article-v2__disclaimer-title {
  font-size: var(--text-body);
  font-weight: 600;
  line-height: var(--text-body-lh);
  color: var(--color-text);
  margin: 0;
}

.article-v2__disclaimer-text {
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--text-body-sm-lh);
  color: var(--color-text);
  margin: 0;
}

/* ---------- Sidebar: Share ---------- */

.article-v2__share {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);

  @media screen and (max-width: 1100px) {
    order: 3;
  }
}

.article-v2__share-title {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--text-h3-lh);
  color: #000;
  margin: 0;
}

.article-v2__share-icons {
  display: flex;
  gap: var(--gap-sm);
}

.article-v2__share-link {
  width: 40px;
  height: 40px;
  border-radius: 200px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.2s;
}

.article-v2__share-link:hover {
  opacity: 0.7;
}

.article-v2__share-link img {
  width: 32px;
  height: 32px;
}

/* ---------- Sidebar: TOC ---------- */

.article-v2__toc {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);

  @media screen and (max-width: 1100px) {
    order: 2;
  }
}

.article-v2__toc-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.article-v2__toc-title {
  flex: 1;
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--text-h3-lh);
  color: var(--color-text);
  margin: 0;
}

.article-v2__toc-count {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: normal;
  color: var(--color-text);
}

.article-v2__toc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-v2__toc-item {
  display: flex;
}

.article-v2__toc-num {
  position: relative;
  width: 20px;
  flex-shrink: 0;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: normal;
  color: var(--color-text-tertiary);
  transform: translateY(3px);
}

.article-v2__toc-link {
  flex: 1;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--text-body-lh);
  color: var(--color-text-tertiary);
  text-decoration: none;
}

.article-v2__toc-link:hover {
  color: var(--color-text);
}

.article-v2__toc-item.is-active .article-v2__toc-num {
  font-weight: 500;
  color: var(--color-text);
}

.article-v2__toc-item.is-active .article-v2__toc-link {
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Sidebar: Author ---------- */

.article-v2__author {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);

  @media screen and (max-width: 1100px) {
    order: 1;
  }
}

.article-v2__author-top {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.article-v2__author-row {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.article-v2__author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-v2__author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-v2__author-name {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--text-h3-lh);
  color: var(--color-text);
}

.article-v2__author-name a {
  color: inherit;
  text-decoration: none;
}

.article-v2__author-name a:hover {
  text-decoration: underline;
}

.article-v2__author-role {
  font-size: var(--text-body-sm);
  font-weight: 500;
  line-height: var(--text-body-sm-lh);
  color: var(--color-text);
}

.article-v2__author-bio {
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--text-body-sm-lh);
  color: var(--color-text-secondary);
  margin: 0;
}

.article-v2__author-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-v2__author-meta-row {
  display: flex;
  align-items: baseline;
  gap: var(--gap-xs);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm-lh);
}

.article-v2__author-meta-label {
  font-weight: 400;
  color: var(--color-text);
}

.article-v2__author-meta-value {
  font-weight: 600;
  color: var(--color-text);
}

.article-v2__author-meta-link {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
}

.article-v2__author-meta-link:hover {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

/* ── Latest posts ── */

.article-v2__latest {
  margin: var(--gap-xxl) 0;
}

.article-v2__latest-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 var(--gap-xl) 0;

  @media screen and (max-width: 768px) {
    font-size: var(--text-h2);
    line-height: var(--text-h2-lh);
    margin: 0 0 var(--gap-md) 0;
  }
}

.article-v2__latest-grid {
  display: flex;
  gap: var(--gap-md);

  @media screen and (max-width: 768px) {
    flex-direction: column;
  }
}

.article-v2__latest-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  padding: var(--gap-md);
  border: 1px solid #dfdfdf;
  border-radius: var(--radius-2xl);
  text-decoration: none;
  color: inherit;

  @media screen and (max-width: 768px) {
    padding: var(--space-md);
    gap: var(--gap-sm);
  }
}

.article-v2__latest-img {
  position: relative;
  width: 100%;
  aspect-ratio: 495 / 380;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.article-v2__latest-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.article-v2__latest-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: var(--gap-md);
}

.article-v2__latest-meta {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);

  @media screen and (max-width: 768px) {
    gap: var(--gap-xs);
  }
}

.article-v2__latest-date {
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--text-body-lh);
  color: var(--color-text);

  @media screen and (max-width: 768px) {
    font-size: var(--text-body-sm);
    line-height: var(--text-body-sm-lh);
  }
}

.article-v2__latest-heading {
  font-size: var(--text-title);
  font-weight: 600;
  line-height: var(--text-title-lh);
  color: var(--color-text);
  margin: 0;

  @media screen and (max-width: 768px) {
    font-size: var(--text-h3);
    line-height: var(--text-h3-lh);
  }
}

.article-v2__latest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 48px;
  padding: 0 var(--space-md);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: var(--text-btn-lh);
  color: var(--color-white);
  transition:
    background 0.2s,
    color 0.2s;
}

.article-v2__latest-card:hover .article-v2__latest-btn {
  background: none;
  color: var(--color-accent);
}
