/* ==========================================================
   lededit2014.com — shared article stylesheet
   Upload to: /guides/article-style.css
   ========================================================== */

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

:root {
  --primary: #0a1628;
  --accent: #00c6ff;
  --accent2: #7B2FFF;
  --text: #1a1a2e;
  --text-muted: #5a6a85;
  --bg: #f8faff;
  --white: #ffffff;
  --border: #e2e8f4;
  --green: #00b37e;
  --amber: #d98800;
  --red: #d94a48;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
}

/* ---------- HEADER ---------- */
header {
  background: var(--primary);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  flex-wrap: wrap;
  gap: 8px;
}
.logo { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; text-decoration: none; }
.logo span { color: var(--accent); }
nav a { color: rgba(255,255,255,0.75); text-decoration: none; margin-left: 22px; font-size: 14px; transition: color .2s; }
nav a:hover, nav a:focus { color: var(--accent); }
@media(max-width:600px){ nav { display:flex; flex-wrap:wrap; } nav a { margin-left:0; margin-right:18px; } }

/* ---------- ARTICLE HEAD ---------- */
.article-head {
  background: linear-gradient(135deg, #0a1628, #1a2850);
  color: #fff;
  padding: 48px 24px 44px;
}
.article-head .wrap { max-width: 760px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.kicker {
  display: inline-block; background: rgba(0,198,255,0.15);
  border: 1px solid rgba(0,198,255,0.4); color: var(--accent);
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.article-head h1 {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.7px; margin-bottom: 14px;
}
.article-head .standfirst { color: rgba(255,255,255,0.75); font-size: 17px; }
.meta-row {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 22px; font-size: 13px; color: rgba(255,255,255,0.55);
}

/* ---------- LAYOUT ---------- */
main { max-width: 760px; margin: 0 auto; padding: 44px 24px 64px; }

/* ---------- TOC ---------- */
.toc {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 22px 26px; margin-bottom: 36px;
}
.toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent2); margin-bottom: 12px; }
.toc ol { margin-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover, .toc a:focus { color: var(--accent2); text-decoration: underline; }

/* ---------- BODY TYPE ---------- */
article h2 {
  font-size: 26px; font-weight: 800; color: var(--primary);
  letter-spacing: -0.4px; line-height: 1.25;
  margin: 44px 0 14px; scroll-margin-top: 80px;
}
article h3 { font-size: 19px; font-weight: 700; color: var(--primary); margin: 28px 0 10px; }
article p { color: #3d4a5f; margin-bottom: 18px; }
article ul, article ol { color: #3d4a5f; margin: 0 0 20px 22px; }
article li { margin-bottom: 10px; }
article a { color: #0a58ca; }
article strong { color: var(--text); font-weight: 700; }
article em { font-style: normal; background: #eef4ff; padding: 1px 6px; border-radius: 4px; font-weight: 600; color: #1a4fa0; }

/* ---------- CALLOUTS ---------- */
.box { border-radius: 12px; padding: 18px 22px; margin: 26px 0; font-size: 16px; line-height: 1.7; }
.box p:last-child { margin-bottom: 0; }
.box strong { display: block; margin-bottom: 6px; font-size: 15px; }
.tip    { background: #eafaf3; border-left: 4px solid var(--green);  color: #24614c; }
.warn   { background: #fff6e6; border-left: 4px solid var(--amber);  color: #7a5200; }
.danger { background: #fdeceb; border-left: 4px solid var(--red);    color: #8a2b2a; }
.note   { background: #f0f5ff; border-left: 4px solid var(--accent2); color: #3d4a6f; }

/* ---------- TABLES ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
th {
  background: var(--primary); color: #fff; text-align: left;
  padding: 13px 16px; font-weight: 600; font-size: 14px; white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: #3d4a5f; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fafcff; }

/* ---------- STEPS ---------- */
.step {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 24px 26px 20px; margin: 22px 0;
  position: relative;
}
.step-num {
  position: absolute; top: -13px; left: 22px;
  background: var(--accent2); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
  letter-spacing: 0.5px;
}
.step h3 { margin-top: 6px; }
.step p:last-child { margin-bottom: 0; }

/* ---------- MEDIA ---------- */
figure { margin: 30px 0; }
figure img { width: 100%; height: auto; border-radius: 12px; border: 1.5px solid var(--border); display: block; }
figcaption { font-size: 14px; color: var(--text-muted); margin-top: 10px; text-align: center; }
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 12px; overflow: hidden; margin: 30px 0;
  background: var(--primary);
}
.video-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

/* ---------- AD SLOT ---------- */
.ad-slot { margin: 34px auto; text-align: center; max-width: 728px; }

/* ---------- AUTHOR ---------- */
.author-box {
  display: flex; gap: 18px; align-items: center;
  background: #f0f5ff; border: 1.5px solid #c6d8f8;
  border-radius: 14px; padding: 22px; margin: 44px 0 0;
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; }
.author-box h3 { font-size: 16px; color: var(--primary); margin-bottom: 2px; }
.author-box .role { font-size: 12px; color: var(--accent2); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.author-box p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
@media(max-width:540px){ .author-box { flex-direction: column; text-align: center; } }

/* ---------- RELATED ---------- */
.related { margin-top: 44px; }
.related h2 { font-size: 20px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; }
.related-card {
  display: block; background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 20px; text-decoration: none; transition: border-color .2s, transform .2s;
}
.related-card:hover, .related-card:focus { border-color: var(--accent); transform: translateY(-3px); }
.related-card span { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent2); display:block; margin-bottom: 6px; }
.related-card h3 { font-size: 16px; color: var(--primary); margin: 0; line-height: 1.4; }

/* ---------- FOOTER ---------- */
footer { background: var(--primary); color: rgba(255,255,255,0.55); text-align: center; padding: 40px 24px; font-size: 14px; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { margin-bottom: 14px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.disclaimer { max-width: 700px; margin: 16px auto 0; font-size: 12px; opacity: .55; line-height: 1.6; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media(max-width:600px){
  body { font-size: 16px; }
  main { padding: 32px 20px 48px; }
  article h2 { font-size: 22px; margin-top: 36px; }
}
