/* ============ shared styling for the Smart Home League articles ============
   Loaded after style.css, so it only adds the long-form reading layer.
   Every colour comes from the shared tokens, so dark/light both work.        */

.ar-crumb { font-size: 12.5px; color: var(--muted); padding: 12px 0 0; }
.ar-crumb a { color: var(--accent); text-decoration: none; }
.ar-crumb a:hover { text-decoration: underline; }

.ar-head { text-align: center; padding: 26px 6px 4px; }
.ar-head h1 {
  font-size: clamp(23px, 4.2vw, 39px); font-weight: 900; line-height: 1.35; margin-bottom: 12px;
  background: var(--hero-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ar-head .lead { max-width: 740px; margin: 0 auto; color: var(--muted); font-size: clamp(14px, 2vw, 16.5px); line-height: 2.15; }
.ar-meta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.ar-meta span { display: inline-flex; align-items: center; gap: 6px; }

.ar-body { max-width: 820px; margin: 0 auto; }
.ar-body h2 { font-size: clamp(19px, 3vw, 26px); font-weight: 900; margin: 36px 0 12px; scroll-margin-top: 80px; }
.ar-body h2 span { color: var(--accent); }
.ar-body h3 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.ar-body p, .ar-body li { color: var(--muted); font-size: 14.5px; line-height: 2.15; }
.ar-body ul, .ar-body ol { padding-inline-start: 20px; margin: 8px 0; }
.ar-body li { margin-bottom: 6px; }
.ar-body b, .ar-body strong { color: var(--text); }
.ar-body a { color: var(--accent); text-decoration: none; }
.ar-body a:hover { text-decoration: underline; }

.ar-toc { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.ar-toc h2 { font-size: 15px !important; margin: 0 0 8px !important; }
.ar-toc ol { margin: 0; }
.ar-toc li { font-size: 13.5px; margin-bottom: 4px; }

.ar-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.ar-card.tip { border-inline-start: 3px solid var(--ok); }
.ar-card.note { border-inline-start: 3px solid var(--accent); }
.ar-card.warn { border-inline-start: 3px solid var(--gold); }
.ar-card h3 { margin-top: 0; }

.ar-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); margin: 16px 0 6px; }
.ar-cap { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 14px; }

.ar-tbl { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.ar-tbl th, .ar-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; color: var(--muted); vertical-align: top; }
.ar-tbl th { color: var(--text); font-weight: 800; background: var(--thead-bg); }
.ar-wrap { overflow-x: auto; }

.ar-code {
  display: block; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 12px 0; font-family: Consolas, "Courier New", monospace; font-size: 12.5px;
  line-height: 1.9; color: var(--text); white-space: pre; overflow-x: auto; direction: ltr; text-align: left;
}
.ar-body code:not(.ar-code) {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 7px; font-family: Consolas, "Courier New", monospace; font-size: 12.5px;
  direction: ltr; display: inline-block; unicode-bidi: isolate;
}

.ar-cta {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 24px; border-radius: 13px;
  font-size: 14.5px; font-weight: 700; text-decoration: none; margin: 6px 6px 0 0;
  background: var(--accent); color: #062026; -webkit-text-fill-color: #062026;
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.25);
}
.ar-cta.gold { background: var(--gold); color: #251c02; -webkit-text-fill-color: #251c02; }
.ar-cta.ghost {
  background: var(--panel); color: var(--text); -webkit-text-fill-color: currentColor;
  border: 1px solid var(--border); box-shadow: none;
}
.ar-cta:hover { filter: brightness(1.06); }

.ar-faq { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 18px; margin-top: 12px; }
.ar-faq details { border-bottom: 1px solid var(--border); padding: 13px 0; }
.ar-faq details:last-child { border-bottom: none; }
.ar-faq summary { cursor: pointer; font-weight: 800; font-size: 14.5px; color: var(--text); }
.ar-faq p { margin-top: 8px; }

.ar-src { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 30px; padding-top: 14px; }
.ar-src a { color: var(--accent); text-decoration: none; }
.ar-rel { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 14px; }
.ar-rel a {
  display: block; padding: 14px 16px; border-radius: var(--radius-sm); text-decoration: none;
  background: var(--panel); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 14px;
}
.ar-rel a:hover { border-color: var(--accent); }
.ar-rel a small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
