/* =========================================================
   Keystone - Single blog post (article) page
   Loads after style.css, service.css and blog.css
   ========================================================= */

/* Reading progress bar */
.ar-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1100; background: transparent; pointer-events: none; }
.ar-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ktp-primary), var(--ktp-secondary)); transition: width .1s linear; }

/* Banner */
.ar-banner h1 { font-size: clamp(26px, 3.2vw, 40px); max-width: 980px; line-height: 1.2; }
.ar-banner__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,.75); animation: svUp .8s .2s var(--ktp-ease) both; }
.ar-banner__meta span { display: inline-flex; align-items: center; gap: 8px; }
.ar-banner__meta span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ktp-secondary); margin-right: 4px; }

/* Article shell */
.ar-article { min-width: 0; }
.ar-hero { margin: 0 0 30px; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(11,58,92,.14); }
.ar-hero img { width: 100%; aspect-ratio: 900 / 467; object-fit: cover; }

/* Table of contents */
.ar-toc { background: var(--ktp-hero-tint); border-left: 4px solid var(--ktp-primary); border-radius: 0 12px 12px 0; padding: 18px 24px; margin-bottom: 34px; }
.ar-toc__head { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; font: 700 16px var(--ktp-font); color: var(--sv-navy); }
.ar-toc__head::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); transition: transform .3s; }
.ar-toc__head[aria-expanded="false"]::after { transform: rotate(45deg); }
.ar-toc__list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.ar-toc__list[hidden] { display: none; }
.ar-toc__list a { font-size: 15px; color: var(--ktp-text); transition: color .2s, padding .2s; }
.ar-toc__list a:hover { color: var(--ktp-primary); }
.ar-toc__list a.is-current { color: var(--ktp-primary); font-weight: 600; }
.ar-toc__list li::marker { color: var(--ktp-primary); font-weight: 700; }

/* Article content */
.ar-content { font-size: 16.5px; line-height: 1.9; color: #4a5260; }
.ar-content > h2 { font-size: clamp(23px, 2.2vw, 29px); color: var(--sv-navy); letter-spacing: -.5px; margin: 44px 0 16px; scroll-margin-top: 110px; }
.ar-content > h2:first-child { margin-top: 0; }
.ar-content p { margin: 0 0 20px; }
.ar-lead { font-size: 18.5px; color: var(--ktp-heading); line-height: 1.75; }

/* Tips as numbered cards */
.ar-tips { list-style: none; counter-reset: tip; margin: 26px 0 30px; padding: 0; display: grid; gap: 16px; }
.ar-tips li {
  counter-increment: tip; position: relative; padding: 22px 24px 22px 86px; border-radius: 14px; background: #fff;
  border: 1px solid #e8edf3; box-shadow: 0 2px 10px rgba(11,58,92,.05);
}
.ar-tips li::before {
  content: counter(tip, decimal-leading-zero); position: absolute; left: 22px; top: 22px; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font: 700 16px var(--ktp-font); color: var(--ktp-primary); background: var(--ktp-hero-tint);
  transition: background .3s, color .3s, transform .4s var(--ktp-ease);
}
.ar-tips h3 { font-size: 18px; color: var(--sv-navy); margin: 0 0 6px; }
.ar-tips p { margin: 0; font-size: 15.5px; line-height: 1.75; }
.ar-tips li.ktp-reveal { transition: opacity .7s var(--ktp-ease), transform .7s var(--ktp-ease), border-color .3s, box-shadow .3s; }
.ar-tips li.ktp-reveal.is-in:hover { transform: translateX(6px); border-color: var(--ktp-secondary); box-shadow: 0 12px 26px rgba(0,71,187,.12); transition: transform .3s var(--ktp-ease), border-color .3s, box-shadow .3s; }
.ar-tips li:hover::before { background: var(--ktp-primary); color: #fff; transform: rotate(-8deg); }

/* Call-out box */
.ar-callout { margin: 36px 0 10px; padding: 34px 34px 36px; border-radius: 16px; color: #fff; background: linear-gradient(130deg, var(--ktp-primary), var(--ktp-primary-dark)); position: relative; overflow: hidden; }
.ar-callout::after { content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; border-radius: 50%; border: 34px solid rgba(255,255,255,.07); }
.ar-callout__title { color: #fff; font-size: 22px; margin-bottom: 10px; }
.ar-callout p { color: rgba(255,255,255,.9); font-size: 15.5px; margin-bottom: 22px; position: relative; }
.ar-callout .ktp-btn { background: #fff; color: var(--ktp-primary); position: relative; }

/* Tags + share */
.ar-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 34px; padding: 22px 0; border-top: 1px solid #e8edf3; border-bottom: 1px solid #e8edf3; }
.ar-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ar-tags a { display: block; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 50px; background: var(--ktp-bg-light); color: var(--ktp-text); transition: background .25s, color .25s; }
.ar-tags a:hover { background: var(--ktp-primary); color: #fff; }
.ar-share { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sv-navy); position: relative; }
.ar-share__btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #dfe6f0; background: #fff; cursor: pointer; color: var(--sv-navy); transition: background .25s, color .25s, transform .25s var(--ktp-ease), border-color .25s; }
.ar-share__btn svg { width: 16px; fill: currentColor; }
.ar-share__btn:hover { background: var(--ktp-primary); border-color: var(--ktp-primary); color: #fff; transform: translateY(-3px); }
.ar-share__msg { position: absolute; right: 0; top: -30px; font-size: 12.5px; font-weight: 500; background: var(--sv-navy); color: #fff; padding: 4px 10px; border-radius: 6px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.ar-share__msg.is-on { opacity: 1; }

/* Previous / next */
.ar-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.ar-pager__link { display: block; padding: 20px 22px; border-radius: 14px; border: 1px solid #e8edf3; background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--ktp-ease); }
.ar-pager__link--next { text-align: right; }
.ar-pager__label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ktp-muted); margin-bottom: 6px; }
.ar-pager__link strong { color: var(--sv-navy); font-size: 15.5px; line-height: 1.4; transition: color .25s; }
.ar-pager__link:hover { border-color: var(--ktp-secondary); box-shadow: 0 12px 26px rgba(0,71,187,.1); transform: translateY(-3px); }
.ar-pager__link:hover strong { color: var(--ktp-primary); }

.bl-recent a[aria-current="page"] strong { color: var(--ktp-primary); }

/* Responsive */
@media (max-width: 640px) {
  .ar-content { font-size: 16px; }
  .ar-lead { font-size: 17px; }
  .ar-tips li { padding: 72px 20px 20px; }
  .ar-tips li::before { left: 20px; top: 18px; width: 40px; height: 40px; }
  .ar-callout { padding: 26px 22px 28px; }
  .ar-foot { flex-direction: column; align-items: flex-start; }
  .ar-pager { grid-template-columns: 1fr; }
  .ar-pager__link--next { text-align: left; }
}

/* Factor cards (what slows hiring down) */
.ar-factors { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 10px; padding: 0; }
.ar-factors li {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid #e8edf3;
  font-weight: 600; font-size: 15.5px; color: var(--sv-navy); line-height: 1.4; box-shadow: 0 2px 10px rgba(11,58,92,.05);
}
.ar-factors__icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #fff1ec; transition: background .3s, transform .4s var(--ktp-ease); }
.ar-factors__icon svg { width: 24px; fill: #d4572e; transition: fill .3s; }
.ar-factors li.ktp-reveal { transition: opacity .7s var(--ktp-ease) var(--rd, 0s), transform .7s var(--ktp-ease) var(--rd, 0s), border-color .3s, box-shadow .3s; }
.ar-factors li.ktp-reveal.is-in:hover { transform: translateY(-4px); border-color: #f2b8a4; box-shadow: 0 12px 26px rgba(212,87,46,.12); transition: transform .3s var(--ktp-ease), border-color .3s, box-shadow .3s; }
.ar-factors li:hover .ar-factors__icon { background: #d4572e; transform: rotate(-8deg); }
.ar-factors li:hover .ar-factors__icon svg { fill: #fff; }

/* Warning variant of the numbered cards */
.ar-tips--warn li::before { color: #d4572e; background: #fff1ec; }
.ar-tips--warn li:hover::before { background: #d4572e; color: #fff; }
.ar-tips--warn li.ktp-reveal.is-in:hover { border-color: #f2b8a4; box-shadow: 0 12px 26px rgba(212,87,46,.12); }

/* Pull quote */
.ar-quote { margin: 28px 0; padding: 22px 26px 22px 64px; border-radius: 14px; background: var(--ktp-hero-tint); position: relative; }
.ar-quote::before { content: "\201C"; position: absolute; left: 18px; top: 2px; font: 700 64px/1 Georgia, serif; color: var(--ktp-primary); opacity: .5; }
.ar-quote p { margin: 0; font-size: 17px; font-style: italic; color: var(--sv-navy); line-height: 1.7; }

@media (max-width: 640px) { .ar-factors { grid-template-columns: 1fr; } .ar-quote { padding: 20px 20px 20px 54px; } }
