/* =============================================
   HSJ Blog Article — v3 Design
   Fonts: Poppins (inherits from hsj-reset.css)
   Brand: #1A4B89 (blue) · #E07A1B (orange)
   ============================================= */

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

:root {
  --brand:       #1A4B89;
  --brand-dark:  #0f2a4f;
  --brand-light: #2466b8;
  --orange:      #E07A1B;
  --orange-dark: #c9690f;
  --fg:          #111827;
  --fg-muted:    rgba(55,65,90,0.65);
  --bg:          #ffffff;
  --bg-soft:     #f4f7fb;
  --border:      rgba(0,0,0,0.08);
  --font-display:'Poppins', system-ui, sans-serif;
  --font-body:   'Poppins', system-ui, sans-serif;
}

/* ── READING PROGRESS ── */
#art-reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--orange); z-index: 9999;
  width: 0%; transition: width 0.1s linear;
  pointer-events: none;
}

/* ── ARTICLE HERO ── */
.art-hero {
  position: relative; height: 56vh;
  min-height: 420px; max-height: 580px; overflow: hidden;
}
.art-hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.art-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(15,42,79,0.92) 0%,
    rgba(15,42,79,0.4) 55%,
    rgba(15,42,79,0.15) 100%);
}
.art-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 64px 52px; max-width: 900px;
}
.art-hero-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.art-hero-cat {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--orange); color: white;
  padding: 4px 12px; border-radius: 3px; font-family: var(--font-body);
}
.art-hero-date, .art-hero-read {
  font-size: 12px; color: rgba(200,220,240,0.7); font-family: var(--font-body);
}
.art-hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.5px; color: white; margin: 0;
}

/* ── LAYOUT ── */
.art-layout {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 64px; padding: 52px 64px 88px;
  align-items: start;
}

/* ── ARTICLE BODY ── */
.art-body { min-width: 0; }

.art-intro {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.8; color: var(--fg-muted);
  font-weight: 300; padding-bottom: 28px;
  border-bottom: 2px solid var(--brand); margin-bottom: 36px;
}

/* Share row */
.art-share-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 36px;
  flex-wrap: wrap;
}
.art-share-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-muted);
  font-family: var(--font-body);
}
.art-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 4px; font-size: 12px;
  font-weight: 500; text-decoration: none; transition: opacity 0.2s;
  border: none; cursor: pointer; font-family: var(--font-body); line-height: 1;
}
.art-share-btn:hover { opacity: 0.85; text-decoration: none; }
.art-share-fb { background: #1877F2; color: white !important; }
.art-share-tw { background: #000; color: white !important; }
.art-share-wa { background: #25D366; color: white !important; }

/* ── PROSE ── */
.art-prose {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.85;
  color: var(--fg); font-weight: 300;
}
.art-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.5vw, 25px); font-weight: 500;
  color: var(--fg); line-height: 1.2; letter-spacing: -0.3px;
  margin-top: 44px; margin-bottom: 16px;
  padding-top: 44px; border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.art-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.art-prose h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500; color: var(--fg);
  margin-top: 28px; margin-bottom: 12px;
  scroll-margin-top: 100px;
}
.art-prose p { margin-bottom: 18px; }
.art-prose p:last-child { margin-bottom: 0; }
.art-prose strong { color: var(--fg); font-weight: 600; }
.art-prose a {
  color: var(--brand); text-decoration: underline;
  text-decoration-color: rgba(26,75,137,0.3); transition: text-decoration-color 0.2s;
}
.art-prose a:hover { text-decoration-color: var(--brand); }
.art-prose ul {
  margin: 16px 0 18px; padding-left: 0;
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.art-prose ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; line-height: 1.7;
}
.art-prose ul li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: 8px;
}
.art-prose ul li strong { color: var(--brand); }
.art-prose ol {
  margin: 16px 0 18px; padding-left: 24px;
}
.art-prose ol li { margin-bottom: 8px; line-height: 1.7; }
.art-prose blockquote {
  border-left: 3px solid var(--orange); margin: 24px 0;
  padding: 12px 20px; background: var(--bg-soft); border-radius: 0 6px 6px 0;
  font-style: italic; color: var(--fg-muted);
}
.art-prose img {
  width: 100%; border-radius: 8px; margin: 24px 0;
}
.art-prose table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px;
}
.art-prose table th {
  background: var(--brand); color: white; padding: 10px 14px;
  text-align: left; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.art-prose table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.art-prose table tr:hover td { background: rgba(26,75,137,0.04); }

/* Inline images with captions */
.art-prose-img {
  margin: 28px 0; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.art-prose-img img { width: 100%; display: block; max-height: 420px; object-fit: cover; margin: 0; border-radius: 0; }
.art-prose-img-caption {
  font-size: 12px; color: var(--fg-muted); padding: 10px 16px;
  background: var(--bg-soft); font-style: italic;
  font-family: var(--font-body);
}

/* Highlight box */
.art-highlight-box {
  background: rgba(26,75,137,0.05);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px; margin: 24px 0;
}
.art-highlight-box p { margin: 0; font-size: 14px; color: var(--fg); font-weight: 400; line-height: 1.7; }
.art-highlight-box strong { color: var(--brand); }

/* CTA box */
.art-cta-box {
  background: var(--brand); border-radius: 10px;
  padding: 28px 32px; margin: 36px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.art-cta-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 6px; font-family: var(--font-body);
}
.art-cta-title {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 500; color: white; line-height: 1.2; margin-bottom: 6px;
}
.art-cta-sub {
  font-size: 13px; color: rgba(255,255,255,0.65);
  font-weight: 300; font-family: var(--font-body);
}
.art-cta-btn {
  flex-shrink: 0; padding: 12px 24px; background: var(--orange);
  color: white; border-radius: 6px; text-decoration: none;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 0.2s; font-family: var(--font-body);
}
.art-cta-btn:hover { background: var(--orange-dark); color: white; text-decoration: none; }

/* Tags */
.art-tags { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.art-tags-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-muted);
  margin-bottom: 12px; font-family: var(--font-body);
}
.art-tags-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.art-tag-pill {
  padding: 5px 13px; border-radius: 100px; font-size: 12px;
  border: 1px solid var(--border); color: var(--fg-muted);
  text-decoration: none; transition: all 0.2s;
  font-family: var(--font-body);
}
.art-tag-pill:hover {
  border-color: var(--brand); color: var(--brand);
  background: rgba(26,75,137,0.05); text-decoration: none;
}

/* Share bottom */
.art-share-bottom {
  margin-top: 36px; padding: 24px; background: var(--bg-soft);
  border-radius: 8px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.art-share-bottom-text { font-size: 14px; font-weight: 500; color: var(--fg); font-family: var(--font-body); }
.art-share-bottom-text span {
  color: var(--fg-muted); font-weight: 300;
  font-size: 13px; display: block; margin-top: 2px;
}
.art-share-bottom-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Prev/Next nav */
.art-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px;
}
.art-nav-item {
  padding: 20px; border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s; display: block;
}
.art-nav-item:hover {
  border-color: var(--brand); background: rgba(26,75,137,0.03);
  text-decoration: none; color: inherit;
}
.art-nav-dir {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
}
.art-nav-title {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 500; color: var(--fg); line-height: 1.3;
}
.art-nav-item--right { text-align: right; }
.art-nav-item--right .art-nav-dir { justify-content: flex-end; }

/* ── SIDEBAR ── */
.art-sidebar {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 100px;
}

/* TOC */
.art-toc {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.art-toc-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.art-toc-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand);
  font-family: var(--font-body);
}
.art-toc-list { padding: 12px 0; list-style: none; margin: 0; }
.art-toc-list li {}
.art-toc-list li a {
  display: block; padding: 7px 20px; font-size: 13px;
  color: var(--fg-muted); text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.15s;
  line-height: 1.4; font-family: var(--font-body);
}
.art-toc-list li a:hover { color: var(--brand); background: rgba(26,75,137,0.04); }
.art-toc-list li a.active {
  color: var(--brand); border-left-color: var(--brand);
  background: rgba(26,75,137,0.06); font-weight: 500;
}

/* Author card */
.art-author {
  background: white; border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
}
.art-author-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.art-author-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 2px solid var(--border);
}
.art-author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.art-author-name { font-size: 14px; font-weight: 600; color: var(--fg); font-family: var(--font-body); }
.art-author-role { font-size: 12px; color: var(--fg-muted); margin-top: 2px; font-family: var(--font-body); }
.art-author-bio {
  font-size: 13px; line-height: 1.65; color: var(--fg-muted);
  font-weight: 300; font-family: var(--font-body);
}

/* Trek promo */
.art-trek-promo {
  background: var(--brand); border-radius: 10px; overflow: hidden;
}
.art-trek-promo-img { height: 130px; overflow: hidden; position: relative; }
.art-trek-promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-trek-promo-dim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--brand));
}
.art-trek-promo-body { padding: 14px 20px 20px; }
.art-trek-promo-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 5px; font-family: var(--font-body);
}
.art-trek-promo-title {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 500; color: white; line-height: 1.2; margin-bottom: 6px;
}
.art-trek-promo-price {
  font-size: 18px; font-weight: 700; color: var(--orange);
  font-family: var(--font-display); margin-bottom: 12px;
}
.art-trek-promo-btn {
  display: block; width: 100%; padding: 10px; background: var(--orange);
  color: white; text-align: center; border-radius: 6px;
  text-decoration: none; font-size: 13px; font-weight: 600;
  transition: background 0.2s; font-family: var(--font-body);
}
.art-trek-promo-btn:hover { background: var(--orange-dark); color: white; text-decoration: none; }

/* Newsletter */
.art-newsletter {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
}
.art-newsletter-title {
  font-size: 14px; font-weight: 600; color: var(--fg);
  margin-bottom: 4px; font-family: var(--font-body);
}
.art-newsletter-sub {
  font-size: 12px; color: var(--fg-muted); font-weight: 300;
  margin-bottom: 14px; line-height: 1.5; font-family: var(--font-body);
}
.art-newsletter-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--font-body); font-size: 13px;
  color: var(--fg); outline: none; background: white; margin-bottom: 8px;
}
.art-newsletter-input:focus { border-color: var(--brand); }
.art-newsletter-btn {
  width: 100%; padding: 10px; background: var(--brand); color: white;
  border: none; border-radius: 6px; font-family: var(--font-body);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.art-newsletter-btn:hover { background: var(--brand-light); }

/* ── RELATED ARTICLES ── */
.art-related {
  background: var(--bg-soft); border-top: 1px solid var(--border);
  padding: 56px 64px;
}
.art-related-inner { max-width: 1280px; margin: 0 auto; }
.art-related-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 28px;
}
.art-related-heading {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 500; color: var(--fg); letter-spacing: -0.3px; margin: 0;
}
.art-related-heading em { font-style: italic; color: var(--brand); }
.art-related-link {
  font-size: 13px; color: var(--fg-muted); text-decoration: none;
  font-family: var(--font-body);
}
.art-related-link:hover { color: var(--brand); }
.art-related-link::after { content: ' →'; }
.art-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.art-related-card {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s; display: block;
}
.art-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.09);
  text-decoration: none; color: inherit;
}
.art-related-img { aspect-ratio: 16/10; overflow: hidden; }
.art-related-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s; display: block;
}
.art-related-card:hover .art-related-img img { transform: scale(1.05); }
.art-related-body { padding: 18px 20px; }
.art-related-cat {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
  font-family: var(--font-body);
}
.art-related-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 500; color: var(--fg); line-height: 1.35; margin-bottom: 8px;
}
.art-related-date { font-size: 12px; color: var(--fg-muted); font-family: var(--font-body); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .art-layout {
    grid-template-columns: 1fr;
    padding: 40px 32px 64px; gap: 40px;
  }
  .art-sidebar { position: static; }
  .art-related-grid { grid-template-columns: 1fr 1fr; }
  .art-related { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .art-hero-content { padding: 0 24px 36px; }
  .art-layout { padding: 32px 20px 56px; }
  .art-cta-box { flex-direction: column; }
  .art-nav { grid-template-columns: 1fr; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-related { padding: 40px 20px; }
  .art-share-bottom { flex-direction: column; }
  .art-related-header { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .art-hero { min-height: 320px; }
  .art-hero-content { padding: 0 20px 28px; }
}
