/*
Theme Name: hackerinside
Theme URI: https://hackerinside.me
Author: Anas
Author URI: https://hackerinside.me
Description: Dark, terminal-flavored WordPress theme for a bug bounty writeups & hacking tutorials blog. Converted from the hackerinside.me static design.
Version: 2.0.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hackerinside
Tags: blog, dark, one-column, two-columns, custom-menu, featured-images, sticky-post, translation-ready
*/

/* ============ 1. BASE (from styles.css) ============ */
/* ============================================================
   hackerinside.me — homepage styles
   ============================================================ */

:root {
  --bg:        #0A0C10;
  --surface:   #0F131B;
  --surface-2: #0C0F16;
  --surface-3: #141925;
  --border:    #1A1F2A;
  --border-2:  #1E2430;
  --border-hi: #2F3A49;
  --line:      #171C26;

  --text:      #ECEFF4;
  --text-soft: #E8EBF0;
  --muted:     #8B94A6;
  --muted-2:   #636C7D;
  --muted-3:   #4D5668;
  --faint:     #2A3340;

  --accent:    #3DDC84;
  --accent-dk: #34c877;
  --on-accent: #06130C;
  --accent-tint: rgba(61, 220, 132, .08);
  --accent-bd:   #1E2A22;

  --blue:   #6EA8FF;
  --blue-tint: rgba(110, 168, 255, .07);
  --blue-bd:   #1C2634;

  --sev-crit: #F2555A;
  --sev-high: #F0A35E;
  --sev-med:  #6EA8FF;

  --maxw: 1200px;
  --radius: 12px;
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0; }
.mono { font-family: var(--mono); }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: 32px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* blinking cursor ------------------------------------------- */
.cursor {
  display: inline-block; width: 9px; height: 1em;
  background: var(--accent); vertical-align: text-bottom;
  margin-left: 2px; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* ===== NAV ================================================= */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; background: rgba(10, 12, 16, .82); backdrop-filter: blur(10px); }
.nav { max-width: var(--maxw); margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--text-soft); display: inline-flex; align-items: baseline; }
.logo-prompt { color: var(--accent); }

.nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.navlink { color: var(--muted); font-size: 13px; letter-spacing: .2px; transition: color .15s ease; }
.navlink:hover { color: var(--text-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-soft); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* buttons --------------------------------------------------- */
.btn-primary {
  font-size: 14px; font-weight: 500;
  background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: 8px; padding: 13px 22px; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(61, 220, 132, .22); }

.btn-ghost {
  font-size: 13px; color: #C3CAD6;
  border: 1px solid var(--border-hi); border-radius: 8px; padding: 10px 17px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text-soft); background: var(--accent-tint); }

/* ===== shared section bits ================================= */
.eyebrow { font-size: 13px; color: var(--accent); letter-spacing: .4px; margin: 0 0 10px; }
h2 { font-size: 30px; font-weight: 700; letter-spacing: -.8px; color: #F2F4F8; }
.lede { font-size: 16px; line-height: 1.6; color: var(--muted); }
.section { padding-block: 40px; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.viewall { color: var(--accent); font-size: 13px; transition: opacity .15s ease; }
.viewall:hover { opacity: .7; }

/* ===== HERO ================================================ */
.hero { padding-top: 64px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-term { flex: 1 1 400px; min-width: 0; }

.pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--accent-bd); background: rgba(61, 220, 132, .05); border-radius: 999px; padding: 6px 13px; margin-bottom: 26px; font-size: 12px; color: #9FB6AA; letter-spacing: .2px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(61, 220, 132, .8); }

.hero h1 { font-size: 52px; line-height: 1.05; font-weight: 700; letter-spacing: -1.4px; color: #F2F4F8; margin-bottom: 20px; }
.hero .lede { font-size: 18px; max-width: 500px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn-ghost { font-size: 14px; padding: 13px 22px; }

.creds { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted-2); }
.creds-check { color: var(--accent); }
.creds .sep { color: var(--faint); }

/* terminal -------------------------------------------------- */
.term { border: 1px solid var(--border-2); border-radius: var(--radius); background: #0D1118; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #0F141D; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--faint); }
.term-title { margin-left: 10px; font-size: 12px; color: var(--muted-3); }
.term-body { padding: 22px 20px; font-size: 13px; line-height: 1.95; color: #AEB6C4; overflow-x: auto; }
.term-gap { margin-top: 10px; }
.p-user { color: var(--accent); }
.p-path { color: var(--blue); }
.out-strong { color: var(--text-soft); }
.out-dim { color: var(--muted); }

/* ===== CARDS =============================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 24px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-hi); background: var(--surface-3); }
.card:hover .card-title { color: var(--accent); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.chip { font-size: 11.5px; border-radius: 5px; padding: 3px 9px; }
.chip-web { color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-bd); }
.chip-guide { color: var(--blue); background: var(--blue-tint); border: 1px solid var(--blue-bd); }

.sev { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sev-muted { color: var(--muted-2); }
.sev-dot { width: 7px; height: 7px; border-radius: 50%; }
.sev-crit { background: var(--sev-crit); }
.sev-high { background: var(--sev-high); }
.sev-med  { background: var(--sev-med); }

.card-title { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--text); letter-spacing: -.3px; margin-bottom: 10px; transition: color .15s ease; }
.card-ex { font-size: 14px; line-height: 1.6; color: var(--muted); flex: 1; margin: 0 0 18px; }
.card-meta { font-size: 12px; color: var(--muted-2); display: flex; gap: 12px; }
.card-meta .dot { color: var(--faint); }

/* ===== TOPICS ============================================== */
#topics { padding-top: 64px; }
.topics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.topic {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-size: 14px; color: #C3CAD6;
  border: 1px solid var(--border-2); border-radius: 9px; padding: 12px 17px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.topic:hover { border-color: var(--accent); color: var(--text-soft); background: var(--accent-tint); }
.topic .count { color: var(--muted-2); font-size: 12px; }

/* ===== START HERE BAND ===================================== */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); margin-top: 56px; padding-block: 60px; }
.start-list { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.startrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 11px; padding: 22px 24px;
  transition: border-color .15s ease, background .15s ease;
}
.startrow:hover { border-color: var(--border-hi); background: var(--surface-3); }
.startrow:hover .start-title { color: var(--accent); }
.start-num { font-size: 26px; font-weight: 700; color: #263140; min-width: 44px; }
.start-text { flex: 1 1 320px; min-width: 0; }
.start-title { display: block; font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; letter-spacing: -.2px; transition: color .15s ease; }
.start-sub { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; }
.start-go { color: var(--accent); font-size: 13px; }

/* ===== SUBSCRIBE =========================================== */
.subscribe { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; justify-content: space-between; }
.subscribe-copy { flex: 1 1 380px; min-width: 0; }
.subscribe-copy h2 { font-size: 28px; letter-spacing: -.7px; margin-bottom: 12px; }
.subscribe-copy .lede { max-width: 440px; font-size: 15px; margin: 0; }
.subscribe-form { flex: 1 1 360px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe-input {
  flex: 1 1 200px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: 8px; padding: 13px 15px; font-size: 14px; color: var(--text-soft);
}
.subscribe-input::placeholder { color: var(--muted-2); }
.subscribe-input:focus { outline: none; border-color: var(--accent); }
.subscribe-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; color: var(--accent); min-height: 1em; }

/* ===== FOOTER ============================================== */
.footer { border-top: 1px solid var(--border); background: var(--surface-2); padding-top: 56px; padding-bottom: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-brand { flex: 1 1 300px; min-width: 0; }
.footer-brand .logo { font-size: 17px; margin-bottom: 14px; }
.footer-about { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 320px; margin: 0 0 8px; }
.footer-loc { font-size: 12.5px; color: var(--muted-2); margin: 0; }

.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font-size: 12px; color: var(--muted-3); letter-spacing: .5px; margin: 0 0 4px; }
.foot-link { font-size: 14px; color: var(--muted); transition: color .15s ease; }
.foot-link:hover { color: var(--text-soft); }

.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted-3); }

/* ===== reveal-on-scroll ==================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== RESPONSIVE ========================================== */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 32px 20px; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .navlink, .nav-menu .btn-ghost { width: 100%; padding-block: 11px; font-size: 14px; }
  .nav-menu .btn-ghost { text-align: center; margin-top: 6px; }

  .hero { padding-top: 44px; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .hero .lede { font-size: 16px; }
  h2 { font-size: 25px; }
  .container { padding-inline: 20px; }
  .nav { padding-inline: 20px; }
}

/* ============ 2. POSTS (from post.css) ============ */
/* ============================================================
   hackerinside.me — single writeup / blog post styles
   Loads AFTER styles.css (reuses its tokens, nav, footer, cards)
   ============================================================ */

/* reading progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 60; transition: width .08s linear; }

/* ---- article shell ---- */
.article-wrap { max-width: 980px; margin: 0 auto; padding: 48px 32px 24px; }
.breadcrumb { font-size: 12.5px; color: var(--muted-2); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--muted); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .crumb-sep { color: var(--faint); }

.post-head .post-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.post-title { font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -1.2px; color: #F3F5F9; margin: 0 0 20px; max-width: 760px; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.post-byline .by-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); border: 1px solid var(--accent-bd); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.post-byline .by-name { color: var(--text-soft); font-weight: 500; }
.post-byline .by-sep { color: var(--faint); }

.post-divider { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---- severity / cvss stat row ---- */
.statrow { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; }
.stat { flex: 1 1 150px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 16px 18px; }
.stat-k { font-family: var(--mono); font-size: 11px; color: var(--muted-3); letter-spacing: .4px; margin: 0 0 7px; }
.stat-v { font-size: 17px; font-weight: 600; color: #E8EBF0; display: flex; align-items: center; gap: 8px; }
.stat-v .sev-dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---- TL;DR / summary ---- */
.tldr { border: 1px solid var(--accent-bd); background: rgba(61, 220, 132, .04); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 40px; max-width: 760px; }
.tldr-label { font-size: 12px; color: var(--accent); letter-spacing: .5px; margin: 0 0 8px; }
.tldr p { margin: 0; font-size: 15px; line-height: 1.65; color: #C9D0DB; }

/* ============================================================
   LAYOUT: sticky left ToC sidebar + article column
   ============================================================ */
.post-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 46px; align-items: start; }

.toc { position: sticky; top: 90px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 20px 22px; }
.toc-label { font-size: 12px; color: var(--muted-3); letter-spacing: .5px; margin: 0 0 14px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 11px; }
.toc li { counter-increment: toc; }
.toc a { font-size: 13.5px; line-height: 1.4; color: var(--muted); display: flex; gap: 9px; transition: color .15s ease; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted-3); font-family: var(--mono); font-size: 11.5px; flex: 0 0 auto; }
.toc a:hover { color: var(--text-soft); }
.toc a.active { color: var(--accent); }
.toc a.active::before { color: var(--accent); }

/* ---- article body typography ---- */
.article-body { font-size: 16.5px; line-height: 1.75; color: #C3CBD7; max-width: 720px; }
.article-body h2 { font-size: 25px; letter-spacing: -.6px; color: #F0F2F6; margin: 44px 0 16px; scroll-margin-top: 90px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; color: #E8EBF0; margin: 32px 0 12px; scroll-margin-top: 90px; }
.article-body p { margin: 0 0 20px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(61, 220, 132, .35); transition: text-decoration-color .15s ease; }
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body strong { color: #E8EBF0; font-weight: 600; }
.article-body em { color: #B2BBC9; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body li::marker { color: var(--muted-2); }
.article-body code { font-family: var(--mono); font-size: .86em; background: #11161F; border: 1px solid var(--border-2); border-radius: 5px; padding: 1.5px 6px; color: #9FE6C0; word-break: break-word; }

/* ---- code blocks ---- */
.codeblock { position: relative; margin: 0 0 24px; }
.codeblock .code-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0F141D; border: 1px solid var(--border-2); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 9px 14px; }
.codeblock .code-lang { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); letter-spacing: .3px; }
.copy-btn { font-family: var(--mono); font-size: 11px; color: var(--muted); background: transparent; border: 1px solid var(--border-hi); border-radius: 6px; padding: 4px 10px; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.codeblock pre { margin: 0; background: #0D1118; border: 1px solid var(--border-2); border-radius: 0 0 10px 10px; padding: 18px 16px; overflow-x: auto; }
.codeblock.no-cap pre { border-radius: 10px; }
.codeblock pre code { font-family: var(--mono); font-size: 13px; line-height: 1.7; background: none; border: 0; padding: 0; color: #B6C0CE; display: block; white-space: pre; }
.codeblock .c-method { color: var(--accent); }
.codeblock .c-key { color: var(--blue); }
.codeblock .c-str { color: #E5C07B; }
.codeblock .c-com { color: var(--muted-3); }
.codeblock .c-bad { color: var(--sev-crit); }

/* ---- callouts ---- */
.callout { display: flex; gap: 13px; border-radius: 10px; padding: 16px 18px; margin: 0 0 24px; font-size: 14.5px; line-height: 1.6; }
.callout .co-ic { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.callout p { margin: 0; }
.callout.note { background: rgba(110, 168, 255, .06); border: 1px solid var(--blue-bd); color: #C2D2EC; }
.callout.note .co-ic { color: var(--blue); }
.callout.warn { background: rgba(240, 163, 94, .06); border: 1px solid #332517; color: #E8D3BC; }
.callout.warn .co-ic { color: var(--sev-high); }

/* ---- disclosure timeline table ---- */
.timeline { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0 0 24px; }
.timeline .tl-row { display: flex; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline .tl-row:last-child { border-bottom: 0; }
.timeline .tl-date { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); flex: 0 0 110px; }
.timeline .tl-event { color: #C3CBD7; }

/* ---- tags footer ---- */
.post-footer-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 40px 0 0; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 13px; transition: border-color .15s ease, color .15s ease; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ---- author bio card ---- */
.author { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 24px; margin: 44px 0 0; }
.author-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-tint); border: 1px solid var(--accent-bd); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; font-family: var(--mono); }
.author-body { flex: 1 1 260px; min-width: 0; }
.author-name { font-size: 16px; font-weight: 600; color: #E8EBF0; margin: 0 0 4px; }
.author-bio { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--mono); font-size: 12.5px; }
.author-links a { color: var(--accent); }

/* ---- related ---- */
.related { max-width: var(--maxw); margin: 0 auto; padding: 48px 32px 88px; }
.related h2 { font-size: 22px; margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE — ToC moves to top, stops being sticky
   ============================================================ */
/* keep the sidebar down to tablet width; stack only on small screens */
@media (max-width: 720px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; top: auto; margin: 0 0 36px; }
  .toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; }
  .article-body, .post-title, .tldr { max-width: none; }
}

@media (max-width: 760px) {
  .article-wrap { padding: 32px 20px 20px; }
  .post-title { font-size: 30px; letter-spacing: -.8px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .related { padding-inline: 20px; }
}

/* ============ 3. PAGES (from pages.css) ============ */
/* ============================================================
   hackerinside.me — about / contact / category page styles
   Loads AFTER styles.css (reuses its tokens, nav, footer, cards)
   ============================================================ */

.navlink.active, .navlink[aria-current="page"] { color: var(--accent); }

/* ---- generic page header ---- */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: 64px 32px 40px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -1.3px; color: #F3F5F9; margin: 0 0 18px; }
.page-hero .lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 620px; margin: 0; }
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero .hero-cta .btn-ghost { font-size: 14px; padding: 13px 22px; }
.page-hero .btn-primary { font-size: 14px; }

.section { padding-block: 40px; }
.section-title { font-size: 26px; font-weight: 700; letter-spacing: -.6px; color: #F2F4F8; margin: 0 0 24px; }

/* ---- highlight stat cards (about) ---- */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.hl { border: 1px solid var(--border); background: var(--surface); border-radius: 11px; padding: 20px; }
.hl-k { font-family: var(--mono); font-size: 11px; color: var(--muted-3); letter-spacing: .4px; margin: 0 0 9px; }
.hl-v { font-size: 18px; font-weight: 600; color: #E8EBF0; margin: 0; letter-spacing: -.2px; }
.hl-v .accent { color: var(--accent); }

/* ---- feature blocks (about: what I do) ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 24px; }
.feature-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-tint); border: 1px solid var(--accent-bd); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; font-weight: 600; color: #ECEFF4; margin: 0 0 8px; letter-spacing: -.2px; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---- selected findings list (about) ---- */
.findings { display: flex; flex-direction: column; gap: 12px; }
.finding { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 18px 22px; }
.finding .f-title { font-size: 16px; font-weight: 600; color: #E8EBF0; }
.finding .f-title a { color: inherit; transition: color .15s ease; }
.finding .f-title a:hover { color: var(--accent); }
.finding .f-meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.finding .f-desc { flex-basis: 100%; font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 2px; }

/* ---- tool/stack chips (about) ---- */
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack .chip-tool { font-family: var(--mono); font-size: 13px; color: #C3CAD6; border: 1px solid var(--border-2); border-radius: 8px; padding: 9px 14px; }

/* ---- CTA band ---- */
.cta-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cta-band .cta-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: 24px; letter-spacing: -.6px; margin: 0 0 6px; color: #F2F4F8; }
.cta-band p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { max-width: var(--maxw); margin: 0 auto; padding: 24px 32px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }

.form-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 8px; letter-spacing: .2px; }
.field input, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-hi);
  border-radius: 8px; padding: 12px 14px; font-size: 14.5px; color: var(--text-soft);
  font-family: var(--font);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-card .btn-primary { font-size: 14px; width: auto; }
.form-msg { margin: 14px 0 0; font-family: var(--mono); font-size: 13px; min-height: 1em; }

.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 22px 24px; }
.aside-card h3 { font-size: 13px; font-family: var(--mono); color: var(--muted-3); letter-spacing: .4px; margin: 0 0 14px; font-weight: 500; }
.contact-method { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; }
.contact-method + .contact-method { border-top: 1px solid var(--line); }
.contact-method svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; }
.contact-method a { color: #C3CAD6; transition: color .15s ease; }
.contact-method a:hover { color: var(--accent); }
.aside-note { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.aside-note strong { color: #D7DCE4; }

/* ============================================================
   CATEGORY ARCHIVE
   ============================================================ */
.archive-head { max-width: var(--maxw); margin: 0 auto; padding: 56px 32px 10px; }
.archive-head .eyebrow { margin-bottom: 12px; }
.archive-head h1 { font-size: 40px; font-weight: 700; letter-spacing: -1.1px; color: #F3F5F9; margin: 0 0 12px; }
.archive-head .archive-desc { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 620px; margin: 0 0 18px; }
.archive-head .archive-count { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.archive-head .archive-count b { color: var(--accent); font-weight: 500; }

.cat-filter { max-width: var(--maxw); margin: 0 auto; padding: 18px 32px 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-filter a { font-family: var(--mono); font-size: 13px; color: var(--muted); border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 15px; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.cat-filter a:hover { border-color: var(--border-hi); color: var(--text-soft); }
.cat-filter a.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.archive-grid { max-width: var(--maxw); margin: 0 auto; padding: 24px 32px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.archive-main .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.archive-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.side-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 22px 24px; }
.side-card h3 { font-size: 12px; font-family: var(--mono); color: var(--muted-3); letter-spacing: .5px; margin: 0 0 14px; font-weight: 500; }
.side-topics { display: flex; flex-direction: column; gap: 2px; }
.side-topic { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; color: #C3CAD6; padding: 8px 0; transition: color .15s ease; }
.side-topic + .side-topic { border-top: 1px solid var(--line); }
.side-topic:hover { color: var(--accent); }
.side-topic .count { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.side-card .lead { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.side-card .btn-primary { font-size: 13px; padding: 10px 16px; display: inline-block; }
.side-sub { display: flex; flex-direction: column; gap: 10px; }
.side-sub input { width: 100%; background: var(--surface-2); border: 1px solid var(--border-hi); border-radius: 8px; padding: 11px 13px; font-size: 13.5px; color: var(--text-soft); font-family: var(--mono); }
.side-sub input:focus { outline: none; border-color: var(--accent); }
.side-sub button { font-family: var(--mono); }

/* ---- pagination ---- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 36px; }
.pagination a, .pagination span { font-family: var(--mono); font-size: 13px; min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-2); border-radius: 8px; color: var(--muted); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .contact-grid, .archive-grid { grid-template-columns: 1fr; gap: 32px; }
  .archive-side { position: static; top: auto; flex-direction: row; flex-wrap: wrap; }
  .archive-side .side-card { flex: 1 1 240px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 44px 20px 32px; }
  .page-hero h1, .archive-head h1 { font-size: 32px; letter-spacing: -.8px; }
  .container, .contact-grid, .archive-grid, .archive-head, .cat-filter, .cta-band .cta-inner, .section { padding-inline: 20px; }
  .section { max-width: var(--maxw); margin: 0 auto; }
}

/* ============ 4. WORDPRESS INTEGRATION ============ */

/* admin bar offset for the sticky header */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Gutenberg code blocks styled like the design's .codeblock */
.article-body pre.wp-block-code,
.article-body pre.wp-block-preformatted {
  margin: 0 0 24px; background: #0D1118; border: 1px solid var(--border-2);
  border-radius: 10px; padding: 18px 16px; overflow-x: auto;
}
.article-body pre.wp-block-code code,
.article-body pre.wp-block-preformatted code {
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  background: none; border: 0; padding: 0; color: #B6C0CE; display: block; white-space: pre;
}
/* copy button injected by JS onto wp code blocks */
.hi-codewrap { position: relative; }
.hi-codewrap .copy-btn { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* post content media */
.article-body img, .article-body figure img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }
.article-body figure { margin: 0 0 24px; }
.article-body figcaption { font-size: 13px; color: var(--muted-2); text-align: center; margin-top: 8px; }
.article-body blockquote {
  margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent);
  color: #D7DCE4; font-size: 17px;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--surface); color: #E8EBF0; font-family: var(--mono); font-size: 12.5px; }

/* single-column fallback when a post has no H2 headings (no ToC) */
.post-layout.no-toc { grid-template-columns: 1fr; }
.post-layout.no-toc .toc { display: none; }

/* WordPress core pagination -> match .pagination look */
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 36px; }
.nav-links .page-numbers {
  font-family: var(--mono); font-size: 13px; min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2); border-radius: 8px; color: var(--muted);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.nav-links a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.nav-links .page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.nav-links .page-numbers.dots { border-color: transparent; }

/* comments (on-theme) */
.comments-area { max-width: 720px; margin: 48px 0 0; }
.comments-area .comments-title, .comments-area .comment-reply-title { font-size: 20px; color: #F0F2F6; margin: 0 0 20px; letter-spacing: -.3px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment-list .children { list-style: none; margin: 16px 0 0; padding-left: 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.comment-body { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 18px 20px; }

/* author row: avatar + name on one line */
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; line-height: 1.2; }
.comment-author .avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-2); flex: 0 0 auto; }
.comment-author .fn { font-style: normal; font-weight: 600; font-size: 14.5px; color: #E8EBF0; }
.comment-author .fn a { color: #E8EBF0; text-decoration: none; }
.comment-author .fn a:hover { color: var(--accent); }
.comment-author .says { display: none; } /* hide the "says:" text */

/* meta row: date + edit, muted, aligned under the name (past the avatar) */
.comment-metadata { font-family: var(--mono); font-size: 12px; margin: 0 0 12px 42px; display: flex; gap: 12px; align-items: center; }
.comment-metadata a { color: var(--muted-2); text-decoration: none; }
.comment-metadata a:hover { color: var(--accent); }
.comment-metadata .edit-link a { color: var(--muted-3); }
.comment-metadata .edit-link a::before { content: "· "; color: var(--faint); }

.comment-content { font-size: 14.5px; line-height: 1.65; color: #C3CBD7; }
.comment-content p { margin: 0 0 10px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting-moderation { font-family: var(--mono); font-size: 12px; color: var(--sev-high); }

/* reply link as a small pill */
.reply { margin-top: 12px; }
.comment-reply-link, .comment-respond .comment-reply-link { font-family: var(--mono); font-size: 12.5px; color: var(--accent); text-decoration: none; border: 1px solid var(--border-2); border-radius: 7px; padding: 6px 13px; display: inline-block; transition: border-color .15s ease; }
.comment-reply-link:hover { border-color: var(--accent); }

/* comment form */
.comment-respond { margin-top: 28px; }
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form p { margin: 0; }
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-hi); border-radius: 8px;
  padding: 11px 13px; font-size: 14px; color: var(--text-soft); font-family: var(--font); margin-top: 6px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form label { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.comment-form .submit { font-family: var(--mono); font-size: 14px; font-weight: 500; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 8px; padding: 12px 20px; cursor: pointer; align-self: flex-start; }
.comment-form .submit:hover { background: var(--accent-dk); }

/* skip link (a11y) */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 10px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; font-family: var(--mono); font-size: 13px; }

/* author avatar via get_avatar() */
.author .avatar, .author img.author-avatar-img { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--accent-bd); flex: 0 0 auto; }

/* footer widget areas (Appearance → Widgets) */
.footer-widget { margin-bottom: 8px; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-widget ul a { font-size: 14px; color: var(--muted); transition: color .15s ease; }
.footer-widget ul a:hover { color: var(--text-soft); }
.footer-widget .footer-head { margin-bottom: 14px; }
.footer-widget select, .footer-widget .search-field { width: 100%; background: var(--surface-2); border: 1px solid var(--border-hi); border-radius: 8px; padding: 10px 12px; color: var(--text-soft); font-family: var(--mono); font-size: 13px; }
