/* ======================================================================
   REDP4W / SECURITY NOTES
   Manutenção rápida: altere as cores e o tamanho máximo da página em :root.
   O HTML está em _layouts/ e _includes/; os artigos ficam em _posts/.
   Não depende de frameworks, fontes externas nem de tema do GitHub Pages.
   ====================================================================== */

/* 01 / Tema e reset ----------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #080f12;
  --surface: #0f1b1e;
  --surface-2: #132528;
  --stroke: #294043;
  --text: #e1eee8;
  --muted: #9bb2ae;
  --green: #b0ff69;
  --red: #ff5b6e; /* Reservado à assinatura p4w: o glow geral permanece verde. */
  --cyan: #70e0d7;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --max-width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--green); color: var(--bg); }
.shell { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: 30px; }
.glow, .prompt { color: var(--green); }
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 20; padding: 10px 16px; background: var(--green); color: var(--bg); }
.skip-link:focus { top: 12px; }
.ambient { pointer-events: none; position: fixed; z-index: -1; inset: 0;
  background: radial-gradient(circle at 90% 2%, #22544866, transparent 35%),
              linear-gradient(90deg, #b0ff6905 1px, transparent 1px),
              linear-gradient(#b0ff6905 1px, transparent 1px);
  background-size: auto, 62px 62px, 62px 62px;
}

/* 02 / Topo e navegação ------------------------------------------- */
.topbar { border-bottom: 1px solid var(--stroke); background: #080f12ed; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.topbar-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.brand { font: bold 22px/1 var(--mono); letter-spacing: -1px; white-space: nowrap; }
.brand .prompt { margin-right: 9px; }
.brand-red { color: var(--red); text-shadow: 0 0 15px #ff5b6e40; }
.brand-tail { color: var(--muted); font-size: 12px; letter-spacing: normal; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font: 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav a[aria-current="page"]::before { content: '> '; }
.main-content { padding-top: 56px; padding-bottom: 90px; min-height: calc(100vh - 166px); }

/* 03 / Capa ------------------------------------------------------- */
.hero { overflow: hidden; position: relative; border: 1px solid var(--stroke); background: linear-gradient(135deg, #142b2b, #0d1719 74%); padding: 53px 54px 0; box-shadow: 0 25px 80px #0005; }
.hero-avatar { position: absolute; right: 2%; top: 4%; width: min(34%, 330px); aspect-ratio: 1; z-index: 0; pointer-events: none; opacity: .21; filter: grayscale(1) contrast(1.12); -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%); mask-image: radial-gradient(circle, #000 35%, transparent 72%); }
.hero-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Avatar decorativo: conteúdo da capa sempre acima da imagem. */
.hero-actions, .hero-line, .eyebrow { position: relative; z-index: 1; }
.hero::after { content: '01'; position: absolute; right: -20px; top: -42px; font: bold 240px/1 var(--mono); color: #b0ff6908; pointer-events: none; }
.eyebrow, .section-number, .hero-index, .track-id, .post-meta, .article-meta, .breadcrumb { font: 12px/1.6 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--cyan); }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px #b0ff6999; vertical-align: middle; }
.hero-index { color: var(--muted); margin-left: 14px; }
.hero h1 { position: relative; z-index: 1; font: 760 clamp(37px, 5vw, 63px)/1.16 var(--sans); letter-spacing: -.06em; margin: 28px 0 20px; max-width: 840px; }
.hero-lead { max-width: 690px; position: relative; z-index: 1; color: var(--muted); font-size: 17px; }
.cursor { font-family: var(--mono); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 33px 0 50px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--stroke); padding: 13px 18px; font: bold 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #09140f; }
.btn.primary:hover { background: #d4ffad; }
.btn.quiet { background: var(--surface); }
.btn.quiet:hover { border-color: var(--green); }
.hero-line { border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 0; color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .04em; }

/* 04 / Seções e cartões ------------------------------------------- */
.section { margin-top: 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: 28px; letter-spacing: -.04em; line-height: 1.25; margin: 5px 0 0; }
.section-number { color: var(--green); }
.text-link { white-space: nowrap; font: 12px/1.5 var(--mono); color: var(--green); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; min-width: 0; min-height: 235px; padding: 27px; border: 1px solid var(--stroke); background: linear-gradient(145deg, var(--surface), #0a1315); transition: border-color .2s, transform .2s; }
.post-card:hover, .post-card:focus-within { border-color: #b0ff6980; transform: translateY(-2px); }
.post-meta { font-size: 11px; color: var(--muted); letter-spacing: .015em; }
.meta-separator { margin-inline: 8px; color: #6b8780; }
.post-card h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.025em; margin: 16px 0 10px; }
.post-card h3 span { color: var(--green); white-space: nowrap; font-family: var(--mono); font-size: 15px; }
.post-card p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tag { display: inline-block; border: 1px solid #31524a; padding: 4px 8px; background: #142c29; color: var(--cyan); font: 11px/1.45 var(--mono); overflow-wrap: anywhere; }
a.tag:hover { border-color: var(--green); color: var(--green); }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.track { background: var(--surface); border: 1px solid var(--stroke); padding: 24px; }
.track-id { color: var(--cyan); }
.track strong { display: block; font-size: 18px; margin: 19px 0 9px; }
.track p { color: var(--muted); font-size: 13px; margin: 0; }
.signature { border-left: 3px solid var(--green); background: var(--surface); padding: 16px 20px; margin-top: 72px; font: 13px/1.9 var(--mono); }
.signature > span:last-child { color: var(--muted); }

/* 05 / Arquivo único, busca e tags -------------------------------- */
.archive-intro { padding: 20px 0 32px; border-bottom: 1px solid var(--stroke); }
.archive-intro h1 { font-size: clamp(37px, 5vw, 58px); line-height: 1.2; letter-spacing: -.06em; margin: 15px 0; }
.archive-intro p { max-width: 730px; color: var(--muted); }
.archive-intro code { color: var(--green); }
.archive-tools { padding: 29px; margin-top: 30px; border: 1px solid var(--stroke); background: var(--surface); }
.archive-tools label { display: block; font: 12px/1.5 var(--mono); text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.archive-tools input { width: 100%; min-width: 0; padding: 13px 16px; background: var(--bg); color: var(--text); border: 1px solid var(--stroke); border-radius: 0; outline-offset: 3px; }
.archive-tools input::placeholder { color: #809993; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.filter-chip { border: 1px solid #34544b; background: #122623; color: var(--muted); padding: 7px 11px; font: 11px/1.35 var(--mono); }
.filter-chip.active, .filter-chip:hover { border-color: var(--green); color: #0b1510; background: var(--green); }
.result-count { color: var(--muted); font: 11px/1.5 var(--mono); margin: 17px 0 0; }
.archive-results { margin-top: 42px; }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--stroke); color: var(--muted); padding: 24px; font: 13px/1.6 var(--mono); }
.empty-state code { color: var(--green); }

/* 06 / Leitura de artigos (Markdown, tabelas e códigos) ----------- */
.article-page { max-width: 835px; margin: 0 auto; }
.breadcrumb { text-transform: none; letter-spacing: 0; color: var(--muted); margin: 6px 0 25px; overflow-wrap: anywhere; }
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { padding-inline: 9px; color: #63827b; }
.article-meta { letter-spacing: .01em; font-size: 11px; color: var(--muted); margin-bottom: 25px; }
.article-content { border-top: 1px solid var(--stroke); padding-top: 15px; }
.prose { overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { line-height: 1.28; letter-spacing: -.035em; scroll-margin-top: 100px; }
.prose h1 { font-size: clamp(32px, 4vw, 47px); margin: 24px 0 29px; }
.prose h2 { font-size: 26px; margin: 43px 0 16px; border-bottom: 1px solid var(--stroke); padding-bottom: 10px; }
.prose h2::before { content: '// '; color: var(--green); font: .8em var(--mono); }
.prose h3 { font-size: 21px; margin: 32px 0 13px; }
.prose p, .prose li { color: #c6d7d0; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #f3fff7; }
.prose blockquote { background: var(--surface); border-left: 3px solid var(--green); margin-left: 0; padding: 12px 20px; }
.prose code { font: .9em/1.5 var(--mono); color: var(--green); background: #162620; padding: 2px 5px; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 18px 20px; border: 1px solid var(--stroke); border-left: 3px solid var(--cyan); background: #060b0d; line-height: 1.55; }
.prose pre code { background: transparent; color: #d1eadc; padding: 0; white-space: pre; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; margin: 25px 0; font-size: 13px; }
.prose th, .prose td { text-align: left; min-width: 110px; padding: 9px 12px; border: 1px solid var(--stroke); }
.prose th { background: #172820; color: var(--green); }
.prose td { background: var(--surface); }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--stroke); margin: 35px 0; }
.article-footer { margin-top: 43px; padding-top: 25px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 12px; }
.article-footer .tag-list { margin-bottom: 20px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 23px; }

/* 07 / Rodapé e responsividade ------------------------------------ */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding-top: 25px; padding-bottom: 34px; border-top: 1px solid var(--stroke); color: var(--muted); font: 11px/1.7 var(--mono); }
.footer a { color: var(--cyan); }
.divider-mark { color: #63827b; padding: 0 8px; }
@media (max-width: 850px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 17px; padding-top: 17px; padding-bottom: 17px; }
  .post-grid { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 30px 0; }
  .hero-line span:nth-child(2) { display: none; }
  .main-content { padding-top: 35px; }
}
@media (max-width: 500px) {
  .shell { padding-inline: 17px; }
  .brand { font-size: 20px; }
  .nav { gap: 20px; flex-wrap: wrap; }
  .nav a { font-size: 11px; }
  .hero { padding: 30px 23px 0; }
  .hero-avatar { right: -10%; top: 5%; width: 55%; opacity: .12; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .post-card, .archive-tools { padding: 20px; }
  .article-meta { line-height: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* 08 / Glossário global e definições contextuais ------------------- */
.glossary-term {
  appearance: none;
  border: 0;
  border-bottom: 1px dotted var(--cyan);
  border-radius: 0;
  padding: 0;
  margin: 0;
  color: var(--cyan);
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: help;
  white-space: normal;
  text-decoration: none;
}
.glossary-term:hover, .glossary-term[aria-expanded="true"] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.glossary-term:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.glossary-popover {
  position: fixed;
  z-index: 90;
  width: min(350px, calc(100vw - 20px));
  max-height: min(360px, calc(100vh - 20px));
  overflow-y: auto;
  border: 1px solid #497967;
  background: #102025;
  color: var(--text);
  box-shadow: 0 16px 50px #000c;
  padding: 18px 19px;
  line-height: 1.6;
}
.glossary-popover small {
  display: block;
  color: var(--green);
  font: 11px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-right: 26px;
  margin-bottom: 6px;
}
.glossary-popover strong {
  display: block;
  font-size: 17px;
  padding-right: 25px;
}
.glossary-popover p { font-size: 13px; color: #c6d7d0; margin: 8px 0 14px; }
.glossary-actions { display: flex; gap: 10px 17px; flex-wrap: wrap; }
.glossary-actions a { color: var(--cyan); text-decoration: none; font: 11px/1.5 var(--mono); }
.glossary-actions a:hover { color: var(--green); }
.glossary-close {
  position: absolute;
  top: 7px;
  right: 8px;
  background: none;
  border: 0;
  color: var(--muted);
  font: 24px/1 var(--sans);
  padding: 5px 8px;
}
.glossary-close:hover { color: var(--green); }
.glossary-page { max-width: 860px; margin: 0 auto; }
.glossary-header h1 { font-size: clamp(35px, 5vw, 55px); line-height: 1.2; margin: 13px 0 18px; letter-spacing: -.04em; }
.glossary-header p { color: var(--muted); }
.glossary-hint { font-size: 13px; }
.glossary-hint kbd { color: var(--green); font-family: var(--mono); }
.glossary-filter { margin: 33px 0 26px; padding: 20px; background: var(--surface); border: 1px solid var(--stroke); }
.glossary-filter label { display: block; color: var(--cyan); font: 12px/1.4 var(--mono); margin-bottom: 12px; }
.glossary-filter input { width: 100%; background: var(--bg); border: 1px solid var(--stroke); color: var(--text); padding: 12px 14px; border-radius: 0; }
.glossary-filter input::placeholder { color: #809993; }
.glossary-filter p { margin: 10px 0 0; color: var(--muted); font: 11px/1.4 var(--mono); }
.glossary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.glossary-entry { padding: 17px 20px; background: var(--surface); border: 1px solid var(--stroke); }
.glossary-entry-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 13px; }
.glossary-entry h2 { font-size: 18px; line-height: 1.3; margin: 0; letter-spacing: -.02em; }
.glossary-entry-heading span { color: var(--cyan); font: 10px/1.5 var(--mono); }
.glossary-entry p { margin: 8px 0; color: #c6d7d0; font-size: 13px; }
.glossary-entry small { display: block; margin: 6px 0; color: var(--muted); font-size: 11px; }
.glossary-entry > a { color: var(--cyan); font: 11px/1.5 var(--mono); }
.glossary-sources { border-top: 1px solid var(--stroke); margin-top: 34px; padding-top: 20px; color: var(--muted); }
.glossary-sources h2 { color: var(--text); }
.glossary-sources a { color: var(--cyan); overflow-wrap: anywhere; }
@media (max-width: 500px) {
  .glossary-entry { padding: 15px; }
  .glossary-popover { width: calc(100vw - 20px); }
}


/* 09 / Índice lateral automático para posts ------------------------ */
.post-layout { width: 100%; max-width: 835px; margin-inline: auto; }
.post-layout.has-toc {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(195px, 240px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}
.post-layout.has-toc > .article-page {
  width: 100%;
  max-width: 835px;
  min-width: 0;
  margin: 0;
}
.post-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 118px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--stroke) transparent;
  padding-right: 8px;
}
.post-toc-details { border-left: 1px solid var(--stroke); }
.post-toc-details > .post-toc-summary { display: none; }
.post-toc-heading {
  padding: 2px 0 12px 16px;
  color: var(--cyan);
  font: 11px/1.5 var(--mono);
  letter-spacing: .07em;
}
.post-toc-heading .post-toc-count {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: normal;
  text-transform: lowercase;
}
.post-toc-list { list-style: none; margin: 0; padding: 0 0 12px; }
.post-toc-item { margin: 0; padding: 0; }
.post-toc-item > a {
  display: block;
  padding: 7px 10px 7px 16px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--muted);
  font: 12px/1.45 var(--sans);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .15s, background .15s, border-color .15s;
}
.post-toc-depth-1 > a { padding-left: 29px; font-size: 11px; }
.post-toc-depth-2 > a { padding-left: 42px; font-size: 11px; }
.post-toc-item > a:hover, .post-toc-item > a:focus-visible {
  color: var(--cyan);
  background: #13252890;
}
.post-toc-item > a[aria-current="location"] {
  border-left-color: var(--green);
  color: var(--green);
  background: #b0ff690c;
  font-weight: 650;
}
.post-layout .article-content :is(h1,h2,h3) { scroll-margin-top: 100px; }

@media (max-width: 980px) {
  .post-layout.has-toc { display: block; max-width: 835px; }
  .post-layout.has-toc > .article-page { max-width: 835px; margin-inline: auto; }
  .post-toc {
    position: static;
    overflow: visible;
    max-height: none;
    padding: 0;
    margin-bottom: 26px;
  }
  .post-toc-details {
    border: 1px solid var(--stroke);
    background: var(--surface);
  }
  .post-toc-details > .post-toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 13px 17px;
    color: var(--green);
    font: 12px/1.5 var(--mono);
    list-style: none;
    user-select: none;
  }
  .post-toc-summary::-webkit-details-marker { display: none; }
  .post-toc-summary::after { content: '+'; font-size: 20px; line-height: 1; }
  .post-toc-details[open] > .post-toc-summary::after { content: '−'; }
  .post-toc-summary .post-toc-count { color: var(--muted); font-size: 10px; }
  .post-toc-heading { display: none; }
  .post-toc-nav {
    border-top: 1px solid var(--stroke);
    max-height: min(55vh, 340px);
    overflow-y: auto;
  }
  .post-toc-list { padding: 8px 0; }
  .post-toc-item > a { padding-block: 9px; padding-right: 16px; }
}


/* 10 / Notes como página principal — banner e busca compactos */
.main-content:has(.archive-head) { padding-top: 28px; }
.archive-head.hero {
  padding: 21px 26px 0; box-shadow: none;
  background: linear-gradient(115deg, #112727, #0d181b 72%);
}
.archive-head.hero::after { content: none; }
.archive-head .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; }
.archive-head .hero-index { margin-left: 7px; }
.archive-head .cursor { margin-left: 8px; }
.archive-head .hero-line { margin-top: 18px; padding: 12px 0; gap: 10px 25px; font-size: 11px; }
.archive-tools {
  position: sticky; top: 76px; z-index: 8; padding: 17px 20px 12px;
  margin-top: 14px; background: #101c1ff5; border-color: #35504c;
  box-shadow: 0 16px 28px #0006; backdrop-filter: blur(12px);
}
.archive-tools label { margin-bottom: 6px; font-size: 10px; letter-spacing: .025em; }
.archive-tools input, .archive-tools select {
  width: 100%; min-width: 0; height: 42px; padding: 9px 12px;
  color: var(--text); border: 1px solid var(--stroke); border-radius: 0;
  background: var(--bg); font: 12px/1.4 var(--mono);
}
.archive-tools select { appearance: auto; cursor: pointer; }
.archive-tools select option { background: var(--surface); color: var(--text); }
.archive-facets {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 9px; align-items: end; margin-top: 10px;
}
.clear-filters {
  height: 42px; padding: 0 15px; background: transparent;
  color: var(--cyan); border: 1px solid var(--stroke); font: 11px/1.4 var(--mono);
}
.clear-filters:hover { color: var(--green); border-color: var(--green); }
.archive-search-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.archive-search-status .result-count { margin: 0; font-size: 11px; }
.active-tag { font: 11px/1.4 var(--mono); color: var(--muted); }
.active-tag strong { color: var(--green); }
.active-tag button { background: transparent; color: var(--cyan); border: none; font-size: 16px; padding: 0 5px; }
.archive-results { margin-top: 34px; }
.archive-results .section-heading { margin-bottom: 17px; }
.archive-results .section-heading h2 { font-size: 23px; }
.archive-order { color: var(--muted); font: 11px/1.5 var(--mono); }
.archive-results .post-grid { gap: 12px; }
.archive-results .post-card { min-height: 197px; padding: 22px; }
.archive-results .post-card h3 { font-size: 18px; margin: 12px 0 8px; }
.archive-results .post-card p { margin-bottom: 14px; }
@media (max-width: 850px) {
  .archive-tools { position: static; box-shadow: none; }
  .archive-head .hero-line span:nth-child(2) { display: inline; }
}
@media (max-width: 600px) {
  .archive-head.hero { padding: 18px 16px 0; }
  .archive-head .hero-line { flex-direction: column; gap: 4px; }
  .archive-facets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-facets .facet:nth-child(3) { grid-column: 1; }
  .clear-filters { grid-column: 2; }
  .archive-order { display: none; }
  .archive-tools { padding: 15px; }
}
