/* CD-Hacker Theme — JetBrains Mono + DM Sans, neon green accent */
:root {
  --bg: #060606;
  --s1: #0f0f0f;
  --s2: #161616;
  --b1: #1e1e1e;
  --b2: #2c2c2c;
  --g:   #00ff88;
  --g8:  rgba(0,255,136,.08);
  --g15: rgba(0,255,136,.15);
  --g25: rgba(0,255,136,.25);
  --tx: #e2e2e2;
  --tm: #777;
  --td: #3a3a3a;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --nav-h: 58px;
}

[data-theme="light"] {
  --bg: #fafaf9;
  --s1: #f5f5f4;
  --s2: #efefed;
  --b1: #e7e5e4;
  --b2: #d6d3d1;
  --tx: #292524;
  --tm: #78716f;
  --td: #d6d3d1;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 9999;
}

/* ─── NAV ─────────────────────────────── */
.hk-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
  border-bottom: 1px solid var(--b1);
  background: rgba(6,6,6,.88);
  backdrop-filter: blur(16px);
}
[data-theme="light"] .hk-nav { background: rgba(250,250,249,.88); }

.hk-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--g);
  letter-spacing: -.3px;
  white-space: nowrap;
}
.hk-logo em { color: var(--td); font-style: normal; }
.hk-logo sup { color: var(--g); opacity: .6; font-style: normal; font-size: .85em; }

.hk-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.hk-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tm);
  transition: color .15s;
}
.hk-links a:hover, .hk-links a.is-active { color: var(--tx); }

.hk-right { display: flex; gap: 10px; align-items: center; }

.hk-theme-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tm);
  padding: 6px 14px;
  border: 1px solid var(--b1);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hk-theme-btn:hover { border-color: var(--b2); color: var(--tx); }

.hk-search-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tm);
  padding: 6px 14px;
  border: 1px solid var(--b1);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hk-search-btn:hover { border-color: var(--b2); color: var(--tx); }

.hk-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--b1);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--tm);
  font-size: 18px;
  line-height: 1;
}

/* Mobile nav drawer */
.hk-mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 499;
  background: var(--bg);
  border-bottom: 1px solid var(--b1);
  padding: 12px 20px;
  flex-direction: column;
  gap: 4px;
}
.hk-mobile-nav.is-open { display: flex; }
.hk-mobile-nav a, .hk-mobile-nav button {
  display: block;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--tm);
  border-radius: 4px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: color .15s, background .15s;
}
.hk-mobile-nav a:hover, .hk-mobile-nav button:hover { color: var(--tx); background: var(--s1); }

main { margin-top: var(--nav-h); min-height: 100vh; }

/* ─── SEARCH MODAL ─────────────────────── */
.hk-search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px,10vw,120px);
}
.hk-search-modal.is-open { display: flex; }
.hk-search-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 20px;
  position: relative;
}
.hk-search-form {
  display: flex;
  background: var(--s1);
  border: 1px solid var(--b2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.8);
}
.hk-search-form input {
  flex: 1;
  padding: 16px 20px;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--tx);
}
.hk-search-form input::placeholder { color: var(--td); }
.hk-search-form button {
  padding: 0 20px;
  background: var(--g);
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #000;
  transition: background .15s;
}
.hk-search-form button:hover { background: #2dffaa; }
.hk-search-close {
  position: absolute;
  top: -44px; right: 0;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 4px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--tm);
  font-size: 18px;
  line-height: 1;
  transition: color .15s, border-color .15s;
}
.hk-search-close:hover { color: var(--tx); border-color: var(--b2); }

/* ─── READING PROGRESS ─────────────────── */
.reading-progress {
  position: fixed;
  top: var(--nav-h); left: 0;
  height: 2px;
  width: 0%;
  background: var(--g);
  z-index: 400;
  transition: width .1s linear;
}

/* ─── CONTAINER ────────────────────────── */
.hk-wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px; }

/* ─── SECTION LABELS ───────────────────── */
.hk-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--g);
  background: var(--g8);
  border: 1px solid var(--g15);
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hk-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.hk-section-head h2 {
  font-family: var(--mono);
  font-size: clamp(24px,3vw,36px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--tx);
  margin-top: 6px;
}
[data-theme="dark"] .hk-section-head h2,
:root:not([data-theme="light"]) .hk-section-head h2 { color: #fff; }

.hk-link-arrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--g);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s;
}
.hk-link-arrow:hover { gap: 10px; }

/* ─── HERO ──────────────────────────────── */
.hk-hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--b1);
}
.hk-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hk-hero-content h1 {
  font-family: var(--mono);
  font-size: clamp(28px,3.5vw,48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 16px;
}
[data-theme="light"] .hk-hero-content h1 { color: var(--tx); }
.hk-hero-content h1 mark { background: none; color: var(--g); }
.hk-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--tm);
  font-family: var(--mono);
}
.hk-hero-excerpt { font-size: 15px; color: var(--tm); line-height: 1.75; margin-bottom: 24px; }
.hk-hero-image {
  aspect-ratio: 16/10;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.hk-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hk-hero-image-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-family: var(--mono);
  font-weight: 700;
  color: rgba(0,255,136,.3);
}

/* ─── CARD GRID ─────────────────────────── */
.hk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 20px;
}

.hk-card {
  border: 1px solid var(--b1);
  border-radius: 8px;
  background: var(--s1);
  overflow: hidden;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.hk-card:hover {
  border-color: var(--b2);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
[data-theme="light"] .hk-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }

.hk-card-img {
  aspect-ratio: 16/9;
  background: var(--s2);
  overflow: hidden;
  position: relative;
}
.hk-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hk-card-img-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: clamp(28px,5vw,48px);
  font-weight: 700;
  color: rgba(0,255,136,.35);
  background: var(--s2);
}

.hk-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hk-card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--g);
  background: var(--g8);
  border: 1px solid var(--g15);
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
  width: fit-content;
}

.hk-card h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -.4px;
}
[data-theme="light"] .hk-card h3 { color: var(--tx); }
.hk-card h3 a { color: inherit; }
.hk-card h3 a:hover { color: var(--g); }

.hk-card-desc {
  font-size: 13px;
  color: var(--tm);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.hk-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--b1);
  font-size: 11px;
  color: var(--tm);
  font-family: var(--mono);
}
.hk-card-author::before { content: '✓ '; color: var(--g); }

/* ─── BUTTONS ───────────────────────────── */
.hk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.hk-btn--primary { background: var(--g); color: #000; }
.hk-btn--primary:hover { background: #2dffaa; transform: translateY(-1px); }
.hk-btn--ghost { background: none; border: 1px solid var(--b1); color: var(--tm); }
.hk-btn--ghost:hover { border-color: var(--b2); color: var(--tx); }

/* ─── PAGINATION ────────────────────────── */
.hk-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 12px;
}
.hk-pagination a, .hk-pagination span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--b1);
  border-radius: 4px;
  color: var(--tm);
  transition: all .15s;
}
.hk-pagination a:hover { border-color: var(--g); color: var(--g); }
.hk-pagination .is-current { border-color: var(--g); color: var(--g); background: var(--g8); }
.hk-pagination .gap { border: none; padding: 7px 4px; }

/* ─── ARTICLE ───────────────────────────── */
.hk-article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

.hk-article-main { min-width: 0; }

.hk-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tm);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hk-breadcrumb a:hover { color: var(--g); }
.hk-breadcrumb-sep { color: var(--td); }

.hk-article-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  border: 1px solid var(--b1);
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
}
.hk-article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hk-article-cover-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 80px;
  font-weight: 700;
  color: rgba(0,255,136,.2);
  background: var(--s1);
}

.hk-article-tag-line { margin-bottom: 16px; }

.hk-article-title {
  font-family: var(--mono);
  font-size: clamp(26px,4vw,44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 16px;
}
[data-theme="light"] .hk-article-title { color: var(--tx); }

.hk-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tm);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hk-article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hk-article-meta-sep { color: var(--td); }

.hk-article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tx);
}
.hk-article-body h2 {
  font-family: var(--mono);
  font-size: clamp(20px,2.5vw,28px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
[data-theme="light"] .hk-article-body h2 { color: var(--tx); }
.hk-article-body h3 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -.5px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
[data-theme="light"] .hk-article-body h3 { color: var(--tx); }
.hk-article-body p { margin-bottom: 20px; }
.hk-article-body ul, .hk-article-body ol { margin-left: 24px; margin-bottom: 20px; }
.hk-article-body li { margin-bottom: 8px; }
.hk-article-body a { color: var(--g); text-decoration: underline; text-decoration-color: var(--g15); }
.hk-article-body a:hover { text-decoration-color: var(--g); }
.hk-article-body code {
  background: var(--s1);
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--g);
  font-family: var(--mono);
  font-size: .9em;
  border: 1px solid var(--b1);
}
.hk-article-body pre {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.hk-article-body pre code { background: none; border: none; padding: 0; }
.hk-article-body strong { color: #fff; font-weight: 600; }
[data-theme="light"] .hk-article-body strong { color: var(--tx); }
.hk-article-body blockquote {
  border-left: 3px solid var(--g);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--g8);
  border-radius: 0 6px 6px 0;
  color: var(--tm);
  font-style: italic;
}
.hk-article-body img { max-width: 100%; border-radius: 6px; margin: 16px 0; }
.hk-article-body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.hk-article-body th, .hk-article-body td { padding: 10px 14px; border: 1px solid var(--b1); text-align: left; }
.hk-article-body th { background: var(--s1); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

/* ─── SHARE ──────────────────────────────── */
.hk-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--b1);
  margin-top: 12px;
  margin-bottom: 12px;
}
.hk-share-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tm);
}
.hk-share-btn {
  width: 34px; height: 34px;
  border-radius: 4px;
  border: 1px solid var(--b1);
  background: var(--s1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-size: 14px;
  font-weight: 700;
  color: var(--tm);
  text-decoration: none;
}
.hk-share-btn:hover { border-color: var(--g); color: var(--g); }

/* ─── TAGS ───────────────────────────────── */
.hk-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
  margin: 20px 0;
}
.hk-tags-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tm);
}
.hk-tag-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--g);
  background: var(--g8);
  border: 1px solid var(--g15);
  padding: 3px 10px;
  border-radius: 3px;
  transition: all .15s;
}
.hk-tag-pill:hover { background: var(--g15); border-color: var(--g25); }

/* ─── AUTHOR BOX ─────────────────────────── */
.hk-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 8px;
  margin: 32px 0;
}
.hk-author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--g15);
  border: 1px solid var(--g25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--g);
  flex-shrink: 0;
}
.hk-author-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 6px;
}
.hk-author-desc { font-size: 13px; color: var(--tm); line-height: 1.6; }
.hk-author-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--g);
}
.hk-author-link:hover { text-decoration: underline; }

/* ─── SIDEBAR ────────────────────────────── */
.hk-aside { position: sticky; top: calc(var(--nav-h) + 24px); }

.hk-toc {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.hk-toc-title {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tm);
  margin-bottom: 14px;
}
.hk-toc a {
  display: block;
  font-size: 12px;
  color: var(--tm);
  padding: 5px 0;
  border-left: 2px solid var(--b1);
  padding-left: 12px;
  transition: all .15s;
  line-height: 1.4;
}
.hk-toc a:hover, .hk-toc a.is-active { color: var(--g); border-left-color: var(--g); }
.hk-toc .toc-h3 { padding-left: 24px; font-size: 11px; }

.hk-related-box {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.hk-related-box-title {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tm);
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--b1);
}
.hk-related-box a {
  display: block;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx);
  border-bottom: 1px solid var(--b1);
  transition: color .15s, background .15s;
  line-height: 1.4;
}
.hk-related-box a:last-child { border-bottom: none; }
.hk-related-box a:hover { color: var(--g); background: var(--g8); }

/* ─── RELATED (below article) ────────────── */
.hk-related { padding: 64px 0; }

/* ─── TAG BADGE ──────────────────────────── */
.hk-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 8px;
  margin-bottom: 36px;
}
.hk-tag-badge-icon { font-size: 28px; }
.hk-tag-badge h3 { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--g); margin-bottom: 2px; }
.hk-tag-badge p { font-size: 12px; color: var(--tm); }

/* ─── FOOTER ─────────────────────────────── */
.hk-footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--b1);
}
.hk-foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 52px;
}
.hk-foot-brand h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--g);
  margin-bottom: 10px;
}
.hk-foot-brand p { font-size: 13px; color: var(--tm); line-height: 1.7; max-width: 240px; }
.hk-foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hk-foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hk-foot-col ul li a { font-size: 13px; color: var(--tm); transition: color .15s; }
.hk-foot-col ul li a:hover { color: var(--tx); }
.hk-foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--b1);
}
.hk-foot-bottom p { font-family: var(--mono); font-size: 11px; color: var(--td); }

/* ─── NETWORK ────────────────────────────── */
.hk-network {
  padding: 28px 0 0;
  border-top: 1px solid var(--b1);
  margin-top: 40px;
}
.hk-network-title {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tm);
  margin-bottom: 14px;
}
.hk-network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.hk-network-link {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--b1);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tm);
  transition: all .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hk-network-link:hover { border-color: var(--g); color: var(--g); }

/* ─── AD SLOTS ───────────────────────────── */
.hk-ad { margin: 40px 0; text-align: center; }
.hk-ad-label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--td); margin-bottom: 8px; display: block; }

/* ─── EMPTY STATE ────────────────────────── */
.hk-empty { text-align: center; padding: 80px 20px; }
.hk-empty-icon { font-size: 64px; margin-bottom: 20px; color: var(--tm); }
.hk-empty-text { font-family: var(--mono); font-size: 14px; color: var(--tm); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 960px) {
  .hk-nav { padding: 0 20px; }
  .hk-links { display: none; }
  .hk-search-btn { display: none; }
  .hk-menu-btn { display: flex; align-items: center; justify-content: center; }
  .hk-wrap { padding: 0 20px; }
  .hk-hero { padding: 48px 0; }
  .hk-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hk-grid { grid-template-columns: 1fr 1fr; }
  .hk-article-wrap { grid-template-columns: 1fr; padding: 0 20px; }
  .hk-aside { position: static; }
  .hk-foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .hk-nav { padding: 0 16px; height: 52px; }
  --nav-h: 52px;
  .hk-logo { font-size: 11px; }
  .hk-wrap { padding: 0 16px; }
  main { margin-top: 52px; }
  .hk-grid { grid-template-columns: 1fr; }
  .hk-foot-top { grid-template-columns: 1fr; gap: 24px; }
  .hk-foot-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
