/* =========================================================
   Sujok Homeo Clinic — Arthritis (health-topic article)
   Loaded after style-v3.css and homeopathy.css. The hero, Health Topics menu and
   two-column layout come from homeopathy.css unchanged; this file styles only the
   article, and every rule is scoped to .ar-article.
   ========================================================= */

.ar-article {
  --ar-tint: #eef5ec;          /* soft green panels (same as Constipation) */
  --ar-radius: 14px;
}
.ar-article p { line-height: 1.7; }
.ar-article .eyebrow { margin-bottom: 10px; }

/* Section heading with a short trailing rule, as on the Constipation page */
.ar-h3 { margin-bottom: 16px; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.2; color: var(--ink-900); }
.ar-h3::after {   /* the rule follows the last word, even when the heading wraps */
  content: ""; display: inline-block; width: 44px; height: 1.5px; margin-left: 16px;
  vertical-align: middle; background: var(--text-green);
}
.ar-h3-num { margin-right: 12px; font-family: var(--font-body, inherit); font-size: .8em; font-weight: 600; color: var(--text-green); }
.ar-h4 { margin: 22px 0 8px; font-size: 1.1rem; line-height: 1.3; color: var(--green-800); }

/* ---------- Introduction ---------- */
.ar-intro {
  display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: clamp(20px, 3vw, 36px);
  align-items: center; padding-bottom: 26px;
}
.ar-title { margin-bottom: 14px; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.01em; color: var(--ink-900); }
.ar-lead { font-size: 1.05rem; color: var(--ink-700); }
.ar-intro-photo { margin: 0; overflow: hidden; border-radius: var(--ar-radius); aspect-ratio: 468 / 250; }
.ar-intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- The two categories ---------- */
.ar-types {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.ar-type {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px;
  padding: 18px 48px 18px 18px; border: 1px solid var(--line); border-radius: var(--ar-radius);
  background: #ffffff; color: inherit; text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.ar-type-num {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ar-tint); font-weight: 700; font-size: .9rem; color: var(--green-800);
}
.ar-type-name { align-self: end; font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--ink-900); }
.ar-type-desc { font-size: .9rem; line-height: 1.45; color: var(--ink-500); }
.ar-type-arrow { position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--text-green); transition: translate .2s ease; }
.ar-type:hover { border-color: var(--text-green); background: var(--ar-tint); }
.ar-type:hover .ar-type-arrow { translate: 3px -50%; }
.ar-type:focus-visible { outline: 2px solid var(--text-green); outline-offset: 2px; }

/* ---------- Category sections: text + side panel ---------- */
.ar-section { padding-block: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.ar-row {
  display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: clamp(20px, 3vw, 36px); align-items: start;
}
.ar-copy p { color: var(--ink-500); }
.ar-copy p + p { margin-top: 10px; }

.ar-panel { padding: 20px 22px 22px; background: var(--ar-tint); border-radius: var(--ar-radius); }
.ar-panel-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.05rem; line-height: 1.3; color: var(--green-800); }
.ar-panel .icon-circle { flex: none; width: 46px; height: 46px; background: #ffffff; color: var(--green-800); }
.ar-panel .icon-circle .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.ar-panel-label { margin: 14px 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.ar-panel-title + .ar-panel-label { margin-top: 0; }
.ar-panel-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .08); font-size: .9rem; color: var(--ink-700); }
.ar-panel-fact { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.ar-panel-fact .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--green-800); }
.ar-panel-fact p { font-size: .9rem; line-height: 1.5; color: var(--ink-700); }
.ar-panel-fact strong { color: var(--ink-900); }

/* Pill tags (joints, other forms) */
.ar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-tags li {
  padding: 6px 14px; border-radius: 999px; background: #ffffff;
  font-size: .9rem; font-weight: 500; line-height: 1.3; color: var(--ink-900);
}
.ar-tags--outline li { border: 1px solid var(--line); background: transparent; color: var(--ink-700); }

.ar-others { margin-top: 26px; }
.ar-others .ar-h4 { margin-top: 0; margin-bottom: 12px; }

/* ---------- Homeopathic and Chiropractic Care ---------- */
.ar-care {
  display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: clamp(20px, 3vw, 36px); align-items: center;
  padding-top: 30px;
}
.ar-note { font-size: .88rem; font-style: italic; }
.ar-care-img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 40%;
  border-radius: 0 var(--ar-radius) var(--ar-radius) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28%);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  /* Narrower article column: panels drop below their text */
  .ar-row { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
}

@media (max-width: 900px) {
  .ar-intro, .ar-care { grid-template-columns: minmax(0, 1fr); }
  .ar-intro-photo { max-width: 560px; }
  .ar-care-img { max-width: 560px; border-radius: var(--ar-radius); -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 640px) {
  .ar-types { grid-template-columns: minmax(0, 1fr); }
}
