/* BabbarOps article styles — /articles/
   Mirrors the inline styles used by root-level articles for visual consistency. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff; --bg-soft: #f8f9fb; --bg-art: #f4f6fa;
  --ink: #0b1020; --muted: rgba(11,16,32,0.58);
  --brand: #007AFF; --brand-dk: #0051D5;
  --border: rgba(10,20,40,0.08); --pill: 999px; --w: 1080px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg-art);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Header ── */

.a-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.a-header-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.a-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.a-brand-mark { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.a-brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.a-brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }

.a-nav-cta {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--pill);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.a-nav-cta:hover { background: var(--brand-dk); }

.a-back {
  font-size: 14px;
  font-weight: 600;
  color: rgba(11,16,32,0.52);
  text-decoration: none;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.a-back:hover { color: var(--ink); }

/* ── Article layout ── */

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}

.wrap h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
}

.standfirst {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 18px;
}

.meta {
  font-size: 13px;
  color: rgba(11,16,32,0.38);
  padding-bottom: 30px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.wrap h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 750;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  line-height: 1.2;
  color: var(--ink);
}

.wrap h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--ink);
}

.wrap p {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(11,16,32,0.72);
  margin-bottom: 18px;
}

.wrap p b { color: var(--ink); font-weight: 600; }
.wrap em { color: rgba(11,16,32,0.72); }

.wrap ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.wrap li {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(11,16,32,0.72);
  margin-bottom: 12px;
  padding-left: 26px;
  position: relative;
}

.wrap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 2px;
  background: rgba(11,16,32,0.22);
}

.wrap li b { color: var(--ink); font-weight: 600; }

.pull {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  border-left: 3px solid var(--brand);
  padding: 6px 0 6px 22px;
  margin: 34px 0;
}

.a-faq{margin-top:52px;padding-top:36px;border-top:1px solid var(--border);}
.a-faq-label{font-size:11px;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:rgba(11,16,32,0.35);margin-bottom:24px;}
.a-faq-item{padding:20px 0;border-bottom:1px solid var(--border);}
.a-faq-q{font-size:17px;font-weight:700;color:var(--ink);margin-bottom:8px;letter-spacing:-0.01em;}
.a-faq-a{font-size:16px;line-height:1.65;color:rgba(11,16,32,0.72);margin:0;}

.related {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.related h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11,16,32,0.35);
  margin-bottom: 14px;
  font-weight: 700;
}

.related a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.15s;
}
.related a:hover { color: var(--brand-dk); }

.cta {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.cta a {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  transition: background 0.15s;
}
.cta a:hover { background: var(--brand-dk); text-decoration: none; }

.disclaimer {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(11,16,32,0.38);
  line-height: 1.6;
}

/* ── Footer ── */

.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.container { max-width: var(--w); margin: 0 auto; padding: 0 40px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.footer-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.015em; }
.footer-meta { font-size: 13px; color: rgba(11,16,32,0.40); margin-top: 8px; line-height: 1.6; }

.footer-nav { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-nav a,
.footer-nav button {
  color: rgba(11,16,32,0.52);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
  text-align: right;
}
.footer-nav a:hover { color: var(--ink); }
.footer-nav button { color: var(--brand); }
.footer-nav button:hover { color: var(--brand-dk); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: rgba(11,16,32,0.38); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-legal a:hover { color: var(--ink); }
.footer-copy { font-size: 13px; color: rgba(11,16,32,0.30); }
.footer-disclaimer { margin-top: 20px; font-size: 11px; color: rgba(11,16,32,0.28); line-height: 1.6; }

/* ── Modals ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,16,32,0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 64px rgba(11,16,32,0.18);
  overflow: hidden;
}

.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.modal-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.12s;
}
.icon-btn:hover { background: rgba(10,20,40,0.06); color: var(--ink); }

.modal-body { padding: 20px 24px 24px; }

/* ── Form ── */

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(10,20,40,0.12);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,122,255,0.12); }
.form-textarea { resize: vertical; }

.form-submit {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  margin-top: 4px;
}
.form-submit:hover { background: var(--brand-dk); }
.form-submit:disabled { opacity: 0.6; cursor: default; }
#demo-status { margin-top: 12px; font-size: 14px; min-height: 20px; color: rgba(11,16,32,0.55); }

/* ── Portal ── */

.portal-input-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-email-input {
  flex: 1;
  min-width: 200px;
  padding: 13px 14px;
  min-height: 48px;
  border: 1.5px solid rgba(10,20,40,0.12);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.portal-email-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,122,255,0.12); }

.btn-portal-go {
  height: 44px;
  padding: 0 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-portal-go:hover { background: var(--brand-dk); }

.portal-result { margin-top: 12px; font-size: 14px; color: rgba(11,16,32,0.60); }
.portal-result[hidden] { display: none; }

/* ── Responsive ── */

@media (max-width: 767px) {
  .a-header-inner { padding: 0 20px; height: 60px; }
  .a-back { display: none; }
  .wrap { padding: 48px 20px 72px; }
  .portal-input-wrap { flex-direction: column; }
  .btn-portal-go { width: 100%; height: 48px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-navs-wrap { flex-direction: column !important; gap: 28px !important; }
  .footer-nav { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
