/* Shared article page styles — Roamler Tech Blog (ported from Roamler Retail's
   own article.css, same structure/class names, retoned to Tech's own design
   tokens — see tech/home/index.html's :root for the source of truth) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0b1a30; --navy-mid: #0f2440;
  --orange: #eb5e38; --orange-dk: #c64521;
  --off-white: #f6f7f9; --ink: #111827;
  --ink-mid: #3a4760; --ink-soft: #5a6884;
  --border: rgba(11,26,48,.10); --border-md: rgba(11,26,48,.18);
  --radius: 8px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow-md: 0 8px 32px rgba(11,26,48,.10);
  --shadow-lg: 0 20px 60px rgba(11,26,48,.15);
}
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; line-height: 1.15; }
.hi { color: var(--orange); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── NAV (full block, matching tech/home & tech/contact's own inline copy —
   nav-tech.js only injects the HTML, same "CSS lives per-page" gotcha as
   Roamler Retail's nav.js) ── */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; height: 72px; max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.nav-logo { margin-right: 40px; flex-shrink: 0; text-decoration: none; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-logo .wordmark { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--navy); }
.nav-logo .wordmark span { color: var(--orange); }
.nav-links { display: flex; align-items: center; flex: 1; list-style: none; }
.nav-links a { display: block; padding: 0 15px; height: 72px; line-height: 72px; font-size: 14.5px; color: var(--ink-mid); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--orange); }
.nav-sep { width: 1px; height: 24px; background: var(--border-md); margin: 0 12px; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }
.nav-login { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.nav-login:hover { color: var(--ink); }
.btn-nav { background: var(--orange); color: #fff; padding: 10px 20px; border-radius: var(--radius); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.btn-nav:hover { background: var(--orange-dk); transform: translateY(-1px); }
.nav-hamburger { display: none; cursor: pointer; background:none; border:none; padding:14px 8px; font:inherit; color:inherit; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border); padding: 8px 20px 20px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 13px 4px; font-size: 15px; color: var(--ink-mid); text-decoration: none; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-cta { margin-top: 12px; background: var(--orange); color: #fff !important; text-align: center; border-radius: var(--radius); font-weight: 700; font-family: 'Montserrat', sans-serif; }
@media (max-width: 1000px) { .nav-links, .nav-sep, .nav-login, .nav-right { display: none; } .nav-hamburger { display: flex; } .nav-inner { padding: 0 20px; } }

/* ── ARTICLE HERO ── */
.article-hero { background: radial-gradient(ellipse 70% 60% at 10% 50%, #123056 0%, transparent 65%), radial-gradient(ellipse 55% 70% at 85% 20%, rgba(235,94,56,.18) 0%, transparent 60%), var(--navy); padding: 42px 0 58px; position: relative; overflow-x: clip; overflow-y: visible; }
.article-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; z-index: 0; }
.article-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; }
.article-hero-text { min-width: 0; }
.article-hero-img { position: relative; display: flex; align-items: center; justify-content: flex-end; transform: translateX(-32px); }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.article-hero-img-back { position: absolute; width: 200px; height: 148px; border-radius: 18px; background: var(--teal, #1f9e8f); right: -32px; bottom: -24px; z-index: 0; }
.article-hero-img-card { position: relative; z-index: 1; width: 272px; height: 182px; border-radius: 18px; overflow: hidden; background: #0f2440; box-shadow: 0 20px 56px rgba(0,0,0,.55); flex-shrink: 0; animation: hero-float 2.8s ease-in-out infinite; }
.article-hero-img-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.88; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.85); }
.article-cat-badge { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.article-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 28px; }
.article-byline { display: flex; align-items: center; gap: 14px; }
.author-avatar-hero { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.85); flex-shrink: 0; }
.byline-name { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); display: block; }
.byline-meta { font-size: 13px; color: rgba(255,255,255,.45); display: block; }

/* ── HERO BACK RECT + CATEGORY BADGE COLOURS — 3 real categories ── */
.article-hero-img-back.back-company   { background: #eb5e38; }
.article-hero-img-back.back-insights  { background: #1f9e8f; }
.article-hero-img-back.back-diary     { background: #7c4dff; }
.cat-company   { background: rgba(235,94,56,.18); color: #ff8a68; }
.cat-insights  { background: rgba(31,158,143,.2); color: #4fd6c4; }
.cat-diary     { background: rgba(124,77,255,.2); color: #a080ff; }

/* ── ARTICLE LAYOUT ── */
.article-main { padding: 64px 0 80px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 72px; align-items: start; }
.article-content { min-width: 0; }

/* ── ARTICLE CONTENT TYPOGRAPHY ── */
.article-lead { font-size: 18px; color: var(--ink-mid); line-height: 1.75; margin-bottom: 32px; padding-left: 20px; border-left: 3px solid var(--orange); }
.article-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.025em; margin: 40px 0 14px; }
.article-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.article-content p { font-size: 16px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 8px; }
.article-content strong { color: var(--ink); font-weight: 700; }
.article-content blockquote { margin: 32px 0; padding: 24px 28px; background: var(--off-white); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; font-size: 18px; font-style: italic; color: var(--ink-mid); line-height: 1.65; }
.article-content blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--ink-soft); font-family: 'Montserrat', sans-serif; font-weight: 700; }

/* ── IN-ARTICLE PHOTO ── */
.article-img-single { width: 100%; border-radius: 12px; margin: 28px 0; display: block; }
.article-chart-img { width: 100%; border-radius: 12px; margin: 12px 0 28px; display: block; }

/* ── ARTICLE CTA BOX ── */
.article-cta-box { background: var(--navy); border-radius: var(--radius-xl); padding: 40px 44px; margin-top: 48px; position: relative; overflow: hidden; }
.article-cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 120% at 5% 50%, rgba(235,94,56,.15) 0%, transparent 60%); pointer-events: none; }
.article-cta-box h3 { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 10px; position: relative; z-index: 1; }
.article-cta-box p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; margin-bottom: 24px; position: relative; z-index: 1; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; padding: 13px 26px; border-radius: var(--radius); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; position: relative; z-index: 1; }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); }

/* ── SIDEBAR ── */
.article-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.sidebar-author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--off-white); border: 2px solid var(--border-md); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink-soft); margin-bottom: 14px; }
.sidebar-author-name { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.sidebar-author-role { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.sidebar-author-bio { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
.sidebar-section-title { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.related-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.related-list li:first-child { padding-top: 0; }
.related-list li:last-child { border-bottom: none; padding-bottom: 0; }
.related-list a { font-size: 14px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; transition: color .2s; display: block; }
.related-list a:hover { color: var(--orange); }
.sidebar-cta-card { background: var(--navy); border-radius: var(--radius-lg); padding: 28px; text-align: center; overflow: hidden; }
.sidebar-cta-card h2, .sidebar-cta-card h3 { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.sidebar-cta-card p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 20px; }
.btn-cta-sidebar { display: block; background: var(--orange); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; transition: background .15s; }
.btn-cta-sidebar:hover { background: var(--orange-dk); }

/* ── FOOTER ── */
.site-footer { background: var(--navy); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-logo-mark { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; display: inline-block; margin-bottom: 14px; letter-spacing: -.02em; }
.footer-logo-mark span { color: var(--orange); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 300px; }
.footer-col h3 { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: rgba(255,255,255,.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.32); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,.32); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── RESPONSIVE ── */
@media (min-width: 1200px) { .article-hero-img-back { right: -72px; } }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { position: static; } }
@media (max-width: 720px) { .article-hero-inner { grid-template-columns: 1fr; } .article-hero-img { display: none; } .article-main { padding-top: 64px; } }
@media (max-width: 600px) { .article-hero { padding: 48px 0 56px; } .article-cta-box { padding: 32px 28px; } }
