/* Insight article pages */
:root {
  --navy: #002d54;
  --navy-deep: #001a31;
  --blue: #0091bd;
  --sky: #7fd6f0;
  --ink: #0c1830;
  --text: #28344c;
  --text-dim: #5a6b86;
  --text-muted: #8493ac;
  --bg-alt: #f4f6fb;
  --border: rgba(20, 45, 100, 0.10);
  --border-strong: rgba(20, 45, 100, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: transparent; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--sky)); }

/* Top bar */
.ar-top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.ar-top .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.ar-top img { height: 38px; }
.ar-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); }
.ar-back svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.ar-back:hover svg { transform: translateX(-4px); }

/* Hero */
.ar-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 90% -20%, #0a4c80, transparent 60%), linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.ar-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 0%, #000 10%, transparent 70%); }
.ar-hero .container { position: relative; padding-top: 72px; padding-bottom: 150px; }
.ar-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--sky); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px; }
.ar-hero h1 { font-weight: 400; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 20px; max-width: 860px; }
.ar-hero .lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 700px; margin: 0 0 28px; }
.ar-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.ar-meta span { display: inline-flex; align-items: center; gap: 8px; }
.ar-meta svg { width: 16px; height: 16px; opacity: .8; }
.ar-cover { position: relative; z-index: 2; margin-top: -110px; }
.ar-cover img { width: 100%; height: clamp(260px, 42vw, 500px); object-fit: cover; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(0, 26, 49, .6); }

/* Layout */
.ar-main { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 64px; padding: 64px 0 80px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.4; color: var(--text-dim); text-decoration: none; transition: color .25s, border-color .25s; }
.toc a:hover { color: var(--navy); }
.toc a.on { color: var(--navy); font-weight: 700; border-left-color: var(--blue); }
.toc .share { margin-top: 28px; display: flex; gap: 8px; }
.toc .share a, .toc .share button { width: 40px; height: 40px; padding: 0; margin: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s; }
.toc .share a:hover, .toc .share button:hover { background: var(--navy); color: #fff; }
.toc .share svg { width: 17px; height: 17px; }
.toc .copied { font-size: 13px; color: var(--blue); margin-top: 8px; min-height: 18px; }

/* Article body */
.ar-body > p:first-of-type::first-letter { float: left; font-size: 4.2em; line-height: .85; padding: 6px 12px 0 0; color: var(--navy); font-weight: 700; }
.ar-body h2 { font-weight: 400; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.2; color: var(--navy); margin: 52px 0 16px; }
.ar-body h3 { font-size: 20px; color: var(--ink); margin: 30px 0 8px; }
.ar-body p { margin: 0 0 20px; }
.ar-body ul { margin: 0 0 22px; padding-left: 22px; }
.ar-body li { margin-bottom: 8px; }
.ar-body strong { color: var(--ink); }

.takeaway { background: var(--bg-alt); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 16px; padding: 24px 26px; margin: 0 0 40px; }
.takeaway h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.takeaway ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.takeaway li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.55; margin: 0; }
.takeaway li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 28px; }
.cards div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; font-size: 16px; line-height: 1.55; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.cards div:hover { border-color: var(--blue); box-shadow: 0 18px 40px -26px rgba(0, 45, 84, .5); transform: translateY(-3px); }
.cards b { display: block; color: var(--navy); font-size: 17px; margin-bottom: 4px; }
.cards .n { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--blue); margin-bottom: 6px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 28px; font-size: 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 600; }
.compare tbody th { color: var(--text-dim); font-weight: 600; width: 30%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td:last-child { background: rgba(0, 145, 189, .05); color: var(--navy); font-weight: 600; }

blockquote.pull { margin: 36px 0; padding: 0 0 0 24px; border-left: 3px solid var(--navy); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4; letter-spacing: -.02em; color: var(--navy); }

.ar-cta { margin-top: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--navy), #014a7d); color: #fff; border-radius: 20px; padding: 30px 32px; }
.ar-cta h3 { margin: 0 0 6px; font-weight: 400; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.ar-cta p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .8); }
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: #fff; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 12px 22px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* Related */
.related { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 72px; }
.related h2 { font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; color: var(--navy); margin: 0 0 24px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rel-card { position: relative; display: block; height: 280px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; }
.rel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 26, 49, .05), rgba(0, 20, 38, .92)); }
.rel-card:hover img { transform: scale(1.06); }
.rel-card div { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; }
.rel-card small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.rel-card strong { display: block; font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin-top: 6px; }

.ar-foot { background: var(--navy-deep); color: rgba(255, 255, 255, .7); font-size: 14px; padding: 24px 0; }
.ar-foot .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ar-foot a { color: #fff; text-decoration: none; }

.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .ar-main { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
  .toc { position: static; margin-bottom: 32px; padding: 20px; background: var(--bg-alt); border-radius: 16px; }
}
@media (max-width: 640px) {
  .ar-hero .container { padding-top: 48px; padding-bottom: 120px; }
  .ar-cover { margin-top: -90px; }
  .cards, .rel-grid { grid-template-columns: 1fr; }
  .ar-cta { grid-template-columns: 1fr; padding: 24px; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 10px 12px; }
  .rel-card { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}
