/*
Theme Name: Clique Nerd
Theme URI: https://cliquenerd.com.br
Author: Clique Nerd
Author URI: https://cliquenerd.com.br
Description: Tema WordPress do Clique Nerd — portal de notícias de tecnologia. Convertido a partir do layout original em HTML/CSS (index.html e template.html). Inclui página inicial com destaque, grade de matérias recentes, categorias e newsletter, além de template de matéria individual com sumário, relacionadas e bio do autor.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: cliquenerd
*/

:root{
  --bg:#efeded;
  --surface:#ffffff;
  --cyan:#00f5ff;
  --blue:#0085ff;
  --grad: linear-gradient(120deg, #00f5ff, #0085ff);
  --text:#10151a;
  --text-2:#4a545c;
  --text-3:#838d94;
  --border: rgba(0,0,0,0.09);
  --radius: 22px;
  --radius-sm: 14px;
}

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

html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}

img{ max-width:100%; height:auto; display:block; }

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

ul, ol{ list-style:none; }

:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
}

.mono{
  font-family:'JetBrains Mono', monospace;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.eyebrow{
  font-family:'JetBrains Mono', monospace;
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-size:12.5px;
  font-weight:700;
  color:var(--blue);
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:16px;
  height:2px;
  background:var(--grad);
  border-radius:2px;
  display:inline-block;
}

h1,h2,h3,h4,h5{
  font-family:'Fraunces', serif;
  font-weight:600;
  letter-spacing:-0.01em;
  color:var(--text);
}

/* ---------- SCREEN READER TEXT (padrão WP) ---------- */
.screen-reader-text{
  position:absolute !important;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

/* ---------- HEADER ---------- */
header.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(239,237,237,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
  gap:24px;
}

.logo{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:22px;
  letter-spacing:-0.01em;
  display:flex;
  align-items:center;
  gap:2px;
}
.logo .nerd-fx-accent{
  background:var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.logo img.custom-logo{ max-height:36px; width:auto; }

/* ---------- NERD HOVER/CLICK EFFECT (logo) ---------- */
.nerd-fx{
  position:relative;
  display:inline-flex;
  align-items:center;
  cursor:pointer;
}
.nerd-fx-svg{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:8em;
  height:2.56em;
  overflow:visible;
  pointer-events:none;
}
.nerd-fx-word{
  position:relative;
  z-index:1;
}
.nerd-fx-pointer{
  opacity:0;
  transform-origin:38% 42%;
}
.nerd-fx-pointer path{
  fill:none;
  stroke:var(--cyan);
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nerd-fx-pointer circle{
  fill:var(--bg);
  stroke:var(--cyan);
  stroke-width:1.3;
}
.nerd-fx:hover .nerd-fx-pointer{
  animation:nerdFxPointer 2s ease-in-out infinite;
}
.nerd-fx-net{
  opacity:0;
  transition:opacity .25s ease;
}
.nerd-fx-net-line{
  fill:none;
  stroke:var(--cyan);
  stroke-width:1;
  opacity:.85;
  stroke-dasharray:1;
  stroke-dashoffset:1;
}
.nerd-fx-net-node{
  fill:var(--bg);
  stroke:var(--cyan);
  stroke-width:1.3;
  opacity:0;
  filter:drop-shadow(0 0 3px var(--cyan));
}
.nerd-fx-net-node.core{ stroke:var(--blue); }
.nerd-fx.nerd-fx-open .nerd-fx-net{ opacity:1; }
.nerd-fx.nerd-fx-open .nerd-fx-net-line{
  animation:nerdFxDrawLine .55s ease forwards;
  animation-delay:calc(var(--d) * .55s);
}
.nerd-fx.nerd-fx-open .nerd-fx-net-node{
  animation:nerdFxPopNode .4s ease forwards;
  animation-delay:calc(var(--d) * .55s);
}
@keyframes nerdFxPointer{
  0%{ opacity:0; transform:scale(.85); }
  12%{ opacity:1; transform:scale(1); }
  70%{ opacity:1; transform:scale(1); }
  88%{ opacity:0; transform:scale(1.05); }
  100%{ opacity:0; }
}
@keyframes nerdFxDrawLine{ to{ stroke-dashoffset:0; } }
@keyframes nerdFxPopNode{
  0%{ opacity:0; transform:scale(.2); }
  60%{ opacity:1; transform:scale(1.25); }
  100%{ opacity:1; transform:scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .nerd-fx:hover .nerd-fx-pointer{ animation:none !important; opacity:.9; }
  .nerd-fx.nerd-fx-open .nerd-fx-net-line,
  .nerd-fx.nerd-fx-open .nerd-fx-net-node{ animation:none !important; opacity:.9; }
}

nav.primary-nav{
  display:flex;
  gap:34px;
}

.nav-link{
  position:relative;
  font-size:14.5px;
  font-weight:600;
  color:var(--text-2);
  padding:8px 2px;
  transition: color .2s ease;
}
.nav-link:hover{ color:var(--text); }

.nav-link.active,
.nav-link.current-menu-item{ color:var(--text); }
.nav-link.active::after,
.nav-link.current-menu-item::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-2px;
  height:2px;
  background:var(--grad);
  border-radius:2px;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.icon-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.04);
  border:1px solid var(--border);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}
.icon-btn:hover{
  background:rgba(0,0,0,0.07);
  transform:translateY(-1px);
}
.icon-btn svg{ width:18px; height:18px; stroke:var(--text); }

.hamburger{ display:none; }

/* Correção do "realce azul" (tap highlight) padrão do navegador ao tocar/clicar em links, especialmente no logo com efeito de clique */
a, button{
  -webkit-tap-highlight-color: transparent;
}
.nerd-fx, .nerd-fx *{
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Buttons */
.btn{
  font-family:'Inter', sans-serif;
  font-weight:700;
  font-size:14px;
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:12px 24px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary{
  background:var(--grad);
  color:#04121a;
  box-shadow: 0 6px 18px rgba(0,133,255,0.28);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,133,255,0.36);
}
.btn-ghost{
  background:rgba(0,0,0,0.045);
  color:var(--text);
  border:1px solid var(--border);
}
.btn-ghost:hover{
  background:rgba(0,0,0,0.075);
  transform:translateY(-2px);
}

/* Search overlay */
.search-panel{
  max-height:0;
  overflow:hidden;
  transition: max-height .3s ease, padding .3s ease;
  border-bottom:1px solid var(--border);
  background:rgba(239,237,237,0.9);
  backdrop-filter: blur(14px);
}
.search-panel.open{
  max-height:100px;
  padding:16px 0;
}
.search-panel .wrap{ display:flex; }
.search-panel form{ width:100%; display:flex; }
.search-panel input[type="search"],
.search-panel input[type="text"]{
  width:100%;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:999px;
  padding:14px 22px;
  font-family:'Inter',sans-serif;
  font-size:15px;
  color:var(--text);
}
.search-panel input:focus{ outline:none; box-shadow:0 0 0 2px var(--blue); }

/* ---------- HERO (página inicial) ---------- */
.hero{
  padding:64px 0 72px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.hero-copy h1{
  font-size:52px;
  line-height:1.06;
  margin-bottom:22px;
}
.hero-copy p{
  font-size:17px;
  color:var(--text-2);
  max-width:480px;
  margin-bottom:30px;
}
.hero-meta{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:30px;
  font-size:13px;
  color:var(--text-3);
  flex-wrap:wrap;
}
.hero-meta .dot{ width:4px; height:4px; border-radius:50%; background:var(--text-3); }

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-media{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio: 4/3.1;
  background: linear-gradient(160deg,#1a2530,#0e1319);
}
.hero-media img{
  width:100%; height:100%; object-fit:cover;
  opacity:0.92;
}
.cover-tag{
  position:absolute;
  top:18px; left:18px;
  background:var(--cyan);
  color:#04121a;
  font-family:'JetBrains Mono',monospace;
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  padding:7px 14px;
  border-radius:999px;
  z-index:2;
}

/* ---------- SECTION HEAD ---------- */
.section{ padding:56px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:34px;
  flex-wrap:wrap;
  gap:14px;
}
.section-head h2{ font-size:32px; }
.section-head .see-all{
  font-family:'JetBrains Mono', monospace;
  font-size:12.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--blue);
  display:flex; align-items:center; gap:6px;
}

/* ---------- CARDS GRID ---------- */
.grid-articles{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: 0 2px 10px rgba(16,21,26,0.04);
  transition: transform .22s ease, box-shadow .22s ease;
  display:flex;
  flex-direction:column;
}
.card:hover{
  transform:translateY(-5px);
  box-shadow: 0 18px 34px rgba(16,21,26,0.10);
}
.card-media{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#dfe3e6;
}
.card-media img{ width:100%; height:100%; object-fit:cover; }

.card-body{ padding:22px 22px 26px; flex:1; display:flex; flex-direction:column; }
.card-body h3{
  font-size:20px;
  line-height:1.28;
  margin-bottom:10px;
}
.card-body h3 a{ color:inherit; }
.card-body h3 a:hover{ color:var(--blue); }
.card-body p{
  font-size:14.5px;
  color:var(--text-2);
  margin-bottom:16px;
  flex:1;
}
.card-foot{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.07em;
  color:var(--text-3);
}
.card-foot .dot{ width:3px; height:3px; border-radius:50%; background:var(--text-3); }

/* ---------- CATEGORIES ---------- */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:20px;
}
.cat-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px 20px;
  text-align:left;
  box-shadow: 0 2px 10px rgba(16,21,26,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
  display:block;
}
.cat-card:hover{
  transform:translateY(-4px);
  box-shadow: 0 14px 28px rgba(16,21,26,0.09);
}
.cat-icon{
  width:44px; height:44px;
  border-radius:12px;
  background: linear-gradient(120deg, rgba(0,245,255,0.14), rgba(0,133,255,0.14));
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.cat-icon svg{ width:22px; height:22px; stroke:var(--blue); fill:none; }
.cat-card h4{ font-size:15.5px; margin-bottom:6px; }
.cat-card span{
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  color:var(--text-3);
  text-transform:uppercase;
  letter-spacing:0.07em;
}

/* ---------- BREADCRUMB (matéria) ---------- */
.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  padding:28px 0 0;
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.07em;
  color:var(--text-3);
  flex-wrap:wrap;
}
.breadcrumb a{ color:var(--text-3); transition:color .18s ease; }
.breadcrumb a:hover{ color:var(--blue); }
.breadcrumb .current{ color:var(--text-2); }

/* ---------- ARTICLE HEAD ---------- */
.article-head{
  max-width:800px;
  margin:18px auto 0;
  padding-bottom:32px;
}
.article-head h1{
  font-size:44px;
  line-height:1.14;
  margin-bottom:18px;
}
.article-head .dek{
  font-size:18px;
  line-height:1.55;
  color:var(--text-2);
  margin-bottom:26px;
}

.byline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  padding-top:22px;
  border-top:1px solid var(--border);
}
.byline-author{
  display:flex;
  align-items:center;
  gap:12px;
}
.avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--grad);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:16px;
  color:#04121a;
  flex-shrink:0;
  overflow:hidden;
}
.avatar img{ width:100%; height:100%; object-fit:cover; }
.byline-author .info{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.byline-author .name{
  font-weight:700;
  font-size:14.5px;
}
.share-row{ display:flex; gap:8px; }

/* ---------- ARTICLE MEDIA ---------- */
.article-media{
  position:relative;
  max-width:1040px;
  margin:0 auto 8px;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio: 16/8.2;
  background: linear-gradient(160deg,#1a2530,#0e1319);
}
.article-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.92;
}
.media-caption{
  max-width:1040px;
  margin:0 auto;
  padding:12px 32px 0;
  font-family:'JetBrains Mono', monospace;
  font-size:11.5px;
  letter-spacing:0.05em;
  color:var(--text-3);
}

/* ---------- ARTICLE LAYOUT: corpo + aside ---------- */
.article-wrap{
  max-width:1040px;
  margin:44px auto 0;
  display:grid;
  grid-template-columns: 1fr 260px;
  gap:56px;
  align-items:start;
}

.article-body{
  font-size:18px;
  line-height:1.75;
}
.article-body p{ margin-bottom:24px; }
.article-body > p:first-of-type::first-letter{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:3.6em;
  float:left;
  line-height:0.85;
  padding:6px 10px 0 0;
}
.article-body h2{ font-size:28px; margin:44px 0 18px; }
.article-body h3{ font-size:22px; margin:34px 0 14px; }
.article-body ul,
.article-body ol{ margin:0 0 24px 22px; list-style:revert; }
.article-body li{ margin-bottom:10px; }
.article-body a{
  color:var(--blue);
  text-decoration:underline;
  text-decoration-color: rgba(0,133,255,0.35);
  text-underline-offset:3px;
}
.article-body a:hover{ text-decoration-color: var(--blue); }
.article-body img{ border-radius:var(--radius-sm); }

blockquote{
  margin:36px 0;
  padding:4px 0 4px 26px;
  border-left:3px solid transparent;
  border-image: var(--grad) 1;
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:24px;
  line-height:1.4;
  letter-spacing:-0.005em;
}
blockquote cite{
  display:block;
  margin-top:12px;
  font-family:'JetBrains Mono', monospace;
  font-style:normal;
  font-size:11.5px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--text-3);
}

.article-figure{ margin:36px 0; }
.article-figure img{
  width:100%;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
}
.article-figure figcaption{
  margin-top:10px;
  font-family:'JetBrains Mono', monospace;
  font-size:11.5px;
  letter-spacing:0.05em;
  color:var(--text-3);
}

.callout{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:22px 24px;
  margin:32px 0;
  box-shadow: 0 2px 10px rgba(16,21,26,0.04);
}
.callout p{ font-size:15.5px; color:var(--text-2); margin-bottom:0; }
.callout p + p{ margin-top:12px; }

.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:44px 0 0;
  padding-top:28px;
  border-top:1px solid var(--border);
}
.tag-pill{
  font-family:'JetBrains Mono', monospace;
  font-size:11.5px;
  text-transform:uppercase;
  letter-spacing:0.07em;
  font-weight:700;
  padding:9px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,133,255,0.05);
  color:var(--text-2);
  transition: all .18s ease;
}
.tag-pill:hover{
  transform:translateY(-2px);
  box-shadow: 0 14px 28px rgba(16,21,26,0.09);
  color:var(--blue);
}

.author-bio{
  display:flex;
  gap:18px;
  margin-top:36px;
  padding:26px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow: 0 2px 10px rgba(16,21,26,0.04);
}
.author-bio .avatar{ width:56px; height:56px; font-size:20px; }
.author-bio h4{ font-size:17px; margin-bottom:6px; }
.author-bio p{ font-size:14px; color:var(--text-2); line-height:1.6; }

/* ---------- ASIDE ---------- */
.article-aside{
  position:sticky;
  top:100px;
  display:flex;
  flex-direction:column;
  gap:28px;
}
.aside-block .eyebrow{ margin-bottom:16px; }

.toc-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.toc-list a{
  font-size:13.5px;
  color:var(--text-2);
  padding:9px 0;
  border-bottom:1px solid var(--border);
  transition: color .18s ease, padding-left .18s ease;
  display:block;
}
.toc-list a:hover{ color:var(--blue); padding-left:4px; }

.related-item{
  display:flex;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.related-item:last-child{ border-bottom:none; }
.related-item .thumb{
  width:64px; height:64px;
  border-radius:var(--radius-sm);
  overflow:hidden;
  flex-shrink:0;
  background:#dfe3e6;
}
.related-item .thumb img{ width:100%; height:100%; object-fit:cover; }
.related-item h5{ font-size:13.5px; line-height:1.3; }

/* ---------- NEWSLETTER ---------- */
.newsletter{
  position:relative;
  background:var(--grad);
  border-radius:var(--radius);
  padding:56px 56px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:40px;
  align-items:center;
}
.newsletter::before{
  content:"";
  position:absolute;
  top:-120px; right:-80px;
  width:360px; height:360px;
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0) 70%);
  pointer-events:none;
}
.newsletter-copy{ position:relative; z-index:1; }
.newsletter-copy .eyebrow{ color:#04121a; opacity:0.75; }
.newsletter-copy .eyebrow::before{ background:#04121a; opacity:0.6; }
.newsletter-copy h2{ color:#04121a; font-size:30px; max-width:440px; margin-bottom:10px; }
.newsletter-copy p{ color:rgba(4,18,26,0.72); font-size:15px; max-width:420px; }
.newsletter-form{
  position:relative;
  z-index:1;
  display:flex;
  gap:10px;
}
.newsletter-form input{
  flex:1;
  border:none;
  border-radius:999px;
  padding:15px 20px;
  font-family:'Inter',sans-serif;
  font-size:14.5px;
  background:rgba(255,255,255,0.92);
  color:#10151a;
}
.newsletter-form input:focus{ outline:2px solid #04121a; outline-offset:2px; }
.newsletter-form button{
  background:#0a1016;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:15px 26px;
  font-family:'Inter',sans-serif;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .18s ease;
}
.newsletter-form button:hover{ transform:translateY(-2px); }

.newsletter-success{
  display:none;
  position:relative; z-index:1;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,0.92);
  border-radius:999px;
  padding:15px 22px;
  font-size:14.5px;
  font-weight:600;
  color:#04121a;
}
.newsletter-success svg{ width:18px; height:18px; stroke:#04121a; flex-shrink:0; }
.newsletter.sent .newsletter-form{ display:none; }
.newsletter.sent .newsletter-success{ display:flex; }

/* ---------- FOOTER ---------- */
footer.site-footer{
  border-top:1px solid var(--border);
  padding:48px 0 40px;
  margin-top:20px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:32px;
  margin-bottom:36px;
}
.footer-brand .logo{ margin-bottom:14px; }
.footer-brand p{ color:var(--text-2); font-size:14px; max-width:280px; }
.footer-col h5{
  font-family:'JetBrains Mono',monospace;
  font-size:11.5px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--text-3);
  margin-bottom:16px;
}
.footer-col a{
  display:block;
  color:var(--text-2);
  font-size:14.5px;
  margin-bottom:12px;
  transition:color .18s ease;
}
.footer-col a:hover{ color:var(--text); }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:24px;
  border-top:1px solid var(--border);
  font-size:13px;
  color:var(--text-3);
  flex-wrap:wrap;
  gap:14px;
}
.footer-social{ display:flex; gap:10px; }

/* ---------- ESTADOS SEM CONTEÚDO / PAGINAÇÃO ---------- */
.empty-state{ padding:80px 0; text-align:center; color:var(--text-2); }
.pagination{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:20px;
  flex-wrap:wrap;
}
.pagination a, .pagination span{
  padding:10px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
  font-family:'JetBrains Mono', monospace;
  font-size:12.5px;
}
.pagination .current{ background:var(--grad); color:#04121a; border-color:transparent; font-weight:700; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .wrap{ padding:0 22px; }
  nav.primary-nav{
    display:none;
    position:absolute;
    left:0; right:0; top:76px;
    background:var(--bg);
    border-bottom:1px solid var(--border);
    flex-direction:column;
    gap:0;
    padding:6px 22px 14px;
  }
  nav.primary-nav.mobile-open{ display:flex; }
  nav.primary-nav .nav-link{ padding:12px 4px; border-bottom:1px solid var(--border); }
  nav.primary-nav .nav-link.active::after{ display:none; }

  .hamburger{
    display:flex;
    width:40px; height:40px;
    border-radius:50%;
    align-items:center; justify-content:center;
    background:rgba(0,0,0,0.04);
    border:1px solid var(--border);
    cursor:pointer;
  }
  .hamburger svg{ width:18px; height:18px; stroke:var(--text); }

  .hero-grid{ grid-template-columns:1fr; gap:36px; }
  .hero-copy h1{ font-size:38px; }
  .hero-media{ order:-1; aspect-ratio:16/11; }

  .grid-articles{ grid-template-columns:1fr; }
  .cat-grid{ grid-template-columns:repeat(2,1fr); }

  .breadcrumb{ padding-top:22px; }
  .article-head h1{ font-size:34px; }
  .article-wrap{ grid-template-columns:1fr; gap:36px; }
  .article-aside{
    position:static;
    order:-1;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
  }

  .newsletter{ grid-template-columns:1fr; padding:36px 26px; }
  .newsletter-form{ flex-direction:column; }

  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:560px){
  .cat-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:14px; align-items:flex-start; }
  .hero-actions{ flex-direction:column; align-items:stretch; }

  .article-head h1{ font-size:27px; }
  .article-head .dek{ font-size:16px; }
  .article-body{ font-size:16.5px; }
  .article-aside{ grid-template-columns:1fr; }
  .byline{ flex-direction:column; align-items:flex-start; }
  blockquote{ font-size:20px; }
}
