
body {
    background: #1a0a2e !important;
}

footer {
    display: block;
    width: fit-content;
    max-width: 90%;
    margin: 3em auto 4em auto !important;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    text-align: center;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 6px 6px 0px #000;
    border-radius: 0;
    padding: 16px 28px !important;
}

footer p {
    margin: 0;
}

footer p + p {
    margin-top: 6px;
    font-size: 10px;
}

.post-wrapper {
    background-color: rgba(255, 248, 235, 0.35);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.post-title-large {
    display: block;
    width: fit-content;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    padding: 0.35em 0.6em;
    margin: 0.5em auto;
    max-width: 90%;
}

.post-container{
    /* display: inline-block; */
    /* justify-content: center; */
    align-items: center;
    align-content: center;
    width: 100%;
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: 8px 8px 0px #000;
    background-color: #eee;
    padding: 5%;
    height:auto;
    margin: auto;

}

.post-container p{
    font-size: 20px;
    padding: 1vh;
    font-weight: 500;
}

.post-container strong{
    font-size: 22px;
    color: #000;
    background-color: rgb(188, 183, 255);
}

.post-image{
    /* max-width: 100%; */
    width: 100%;
    height: auto;
    padding: 1vh;
    border: 10px #000;
}

.header-post-image{
    width: auto;
    height: 10vh;
    padding: 1vh;
    border: 10px #000;
    box-shadow: 8px 8px 0px #000;
    background-color:rgb(196, 163, 201);
    border: 3px solid #000;
    margin: 2%;

}

.post-image-container{
    display: block;
    align-content: center;
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: 8px 8px 0px #000;
    width: 55%;
    height:auto;
    background: repeating-linear-gradient(
                135deg,
                rgb(188, 183, 255),
                rgb(188, 183, 255) 10px,
                #874099 10px,
                #874099 20px
                );
    margin: 5% auto;
}

.post-image-caption {
    font-weight: bold;
    text-align: center;
    padding: 1vh;
    background-color: #fdfb94;
}

.post-datetime{
    display: block;
    width: fit-content;
    margin: 0 auto 1em auto;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: yellow;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px #000;
    padding: 3px 10px;
}

.notes-container {
    display: block;
    align-content: center;
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: 8px 8px 0px #000;
    width: 100%;
    height:auto;
    background-color: rgb(188, 183, 255);
    /* margin: 5% auto; */
    padding: 1%;

}

iframe {
    padding: 0%;
    width: 100%;  /* A4 width in pixels */
    height: 90vh; /* A4 height in pixels */
    border: 1px solid #ccc; /* Optional border for visual clarity */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for aesthetic */
    margin: 0 auto;
    display: block; /* Ensure block layout */
}

.nav-tabs {
    background-color: rgb(188, 183, 255);
    color: #000;
}

.nav-tabs button{
    background-color: #d1d0d0;
}
.nav-tabs button:hover{
    background-color: #000;
    color: #fff;
    font-weight: bold;
}
.nav-tabs button:active{
    font-weight: bold;
}
.nav-link.active{
    font-weight: bold;
}

.neobrutalist-button {
    font-family: monospace;
    background-color: #f5f5f5; /* Light gray background */
    border: 4px solid #000; /* Bold black border */
    box-shadow: 7px 7px 0px 0px #000; /* Enhanced shadow */
    color: #000 !important; /* Black text */
    background-color: yellow;
    font-weight: bold; /* Bold text */
    font-size: larger;
    /* padding: 10px 20px; */
    text-transform: uppercase; /* Make text uppercase */
    letter-spacing: 1px; /* Slight letter spacing */
    cursor: pointer; /* Pointer cursor */
    position: relative; /* For hover effect */
    width: auto;
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.neobrutalist-button:hover {
    background-color: #000;
    transform: translate(-2px, -2px); /* Slight "pressed" effect */
    box-shadow: 7px 7px 0px 0px #000; /* Enhanced shadow */
    color: yellow !important;
}

.neobrutalist-button a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit button text color */
    color: black;
}

.neobrutalist-button:active {
    transform: translate(2px, 2px); /* Button pressed effect */
    box-shadow: 3px 3px 0px 0px #000; /* Subtle shadow */
    color: black;
}

a[href="#sidebar"]{
    text-decoration: none;
    color: #000;
    font-weight: bold;
    background-image: inherit; 
    font-family: 'Font Awesome 6 Free';
}

.new-tag {
    position: absolute; 
    top: 10px; 
    left: 10px; 
    z-index: 2; 
    max-width:25%;
    width: auto;
}

.highlight-tag{
    position: absolute; 
    top: 0px; 
    right: 10px; 
    z-index: 2; 
    max-width:30%;
    }

.post-description{
    font-size: 10px;
    padding: 1vh;
    font-weight: 500;
}
.not-ready{
    background: repeating-linear-gradient(
                135deg,
                #000000,
                #000000 10px,
                #eeff00 10px,
                #eeff00 20px
                ) !important;
    color:#fff;
    opacity: 30%;
    cursor: not-allowed;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);

}

#main {
    background: linear-gradient(180deg, #1a0a2e 0%, #6d1950 45%, #d48849 75%, #f0d171 100%);
    min-height: 100vh;
}

.grid {
    columns: 2;
    column-gap: 20px;
    padding: 20px;
}

@media (min-width: 576px) {
    .grid { columns: 2; }
}
@media (min-width: 768px) {
    .grid { columns: 3; }
}
@media (min-width: 992px) {
    .grid { columns: 4; }
}
@media (min-width: 1200px) {
    .grid { columns: 5; }
}
@media (min-width: 1500px) {
    .grid { columns: 6; }
}

.grid > a {
    /* inline-block torna o item monolítico nas colunas CSS: o que fica fora do card
       (argolas do caderno acima, bolhas do devaneio abaixo, margens) não pode ser
       separado dele numa quebra de coluna e "flutuar" no fim da coluna anterior. */
    display: inline-block;
    width: 100%;
    vertical-align: top;
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
}
.grid > a[hidden] {
    /* o display acima venceria o display: none padrão do atributo hidden */
    display: none;
}
.grid > a:hover {
    /* eleva o item inteiro da grade (não só o card) acima de tudo que o tooltip pode
       cruzar: vizinhos com transform próprio (devaneios flutuando), o canvas do cabeçalho
       (z-index 0) e a barra de filtros grudada (z-index 50). A grade não tem camada
       própria de propósito: se tivesse, o tooltip ficaria preso abaixo da barra. */
    z-index: 60;
}

.index-post-container{
    font-family: "IBM Plex Mono", monospace;
    display: block;
    align-content: center;
    background-color: rgb(188, 183, 255);
    border: 4px solid #000;
    box-shadow: 10px 10px 0px #000;
    width: 100%;
    height:auto;
    position: relative;
    font-size: clamp(18px, 4vw, 12px);
    text-transform: uppercase;
    text-overflow: ellipsis;
    transition: transform 0.1s ease, background-color 0.3s ease, border-radius 0.3s ease;
    padding: 10px 20px;
    border-radius: 12px;

}

.index-post-container:hover{
    z-index: 10;
    font-weight: bold;
    text-overflow: ellipsis;
    background-color: #f0d171;
}

.index-post-image{
    width: 100%;
    height: auto;
    padding: 1vh;
}
/* Capa transparente é o marcador de "sem capa" (ex.: Este Website): reserva menos
   espaço que um quadrado, só o bastante para o selo de destaque. */
.index-post-image[src$="/transparent.png"] {
    height: 110px;
}

/* Identidade dos cards: cada tipo mostra o que é, no vocabulário neobrutalista do site
   (borda preta grossa, sombra dura, cores chapadas). Hover comum: o card "levanta". */
.projeto, .caderno, .leitura {
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}
@media (hover: hover) {
  .projeto:hover, .caderno:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #000;
  }
}

/* Projeto: janela de programa. Barra de título amarela com 3 botões, tela preta,
   título com prompt e cursor que pisca no hover. */
.projeto {
    background-color: #000;
    color: #f0d171;
    font-weight: bold;
    border-radius: 10px;
}
.projeto::before {
    content: "";
    display: block;
    height: 26px;
    margin: -10px -20px 10px;
    background:
        radial-gradient(circle, #ff5f57 0 5px, #000 5px 7px, transparent 7.5px) 10px 50% / 18px 18px no-repeat,
        radial-gradient(circle, #febc2e 0 5px, #000 5px 7px, transparent 7.5px) 30px 50% / 18px 18px no-repeat,
        radial-gradient(circle, #28c840 0 5px, #000 5px 7px, transparent 7.5px) 50px 50% / 18px 18px no-repeat,
        #f0d171;
    border-bottom: 4px solid #000;
    border-radius: 6px 6px 0 0;  /* acompanha o canto do card sem overflow: hidden, que cortaria o tooltip */
}
.projeto small::before {
    content: "> ";
}
.projeto small::after {
    content: "▌";
    opacity: 0;
}
@media (hover: hover) {
  .projeto:hover {
    background-color: #000;
    color: #f0d171;
  }
  .projeto:hover small::after {
    animation: projeto-cursor 0.9s steps(1) infinite;
  }
}
@keyframes projeto-cursor {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* Caderno: caderno espiral. Argolas no topo, papel quadriculado e margem vermelha. */
.caderno {
    background-color: #fff;
    background-image:
        linear-gradient(to right, transparent 12px, #e05a5a 12px 14px, transparent 14px),
        url("/static/blog/img/checkered.aae391b1cccb.png");
    color: #000;
    border-radius: 6px;
    margin-top: 14px;
    /* sem transição de cor: o quadriculado (PNG com alfa) some na hora do hover e o
       fundo branco piscaria antes de chegar ao roxo */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.caderno::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 12px;
    right: 12px;
    height: 26px;
    background: radial-gradient(circle, transparent 0 4px, #000 4px 7px, transparent 7.5px) 0 0 / 24px 26px space no-repeat;  /* space: só argolas inteiras */
    pointer-events: none;
}
.caderno small {
    background-color: white;
}
@media (hover: hover) {
  .caderno:hover {
    background-color: rgb(188, 183, 255);
    background-image: linear-gradient(to right, transparent 12px, #e05a5a 12px 14px, transparent 14px);
  }
}

/* Leitura: livro. Cartão branco limpo com as páginas empilhadas na sombra. */
.leitura {
    background-color: #fff;
    color: #000;
    border-radius: 6px;
    box-shadow: 4px 4px 0 #fff, 7px 7px 0 #000, 10px 10px 0 #fff, 13px 13px 0 #000;
}
@media (hover: hover) {
  .leitura:hover {
    transform: translate(-4px, -4px);
    background-color: #f0d171;
    box-shadow: 4px 4px 0 #fff, 7px 7px 0 #000, 10px 10px 0 #fff, 13px 13px 0 #000, 16px 16px 0 #fff, 19px 19px 0 #000;
  }
}

/* Devaneio: textos pessoais. Balão de pensamento neobrutalista que flutua: borda preta
   grossa, sombra dura, branco e bolhas de pensamento contornadas. Ritmo por post
   via data-variant, para a grade não subir e descer em bloco. */
.devaneio {
    background-color: #fff;
    border: 4px solid #000;
    border-radius: 32px;
    box-shadow: 8px 8px 0 #000;
    color: #000;
    margin-bottom: 26px;  /* espaço para as bolhas */
    animation: devaneio-flutua 6.5s ease-in-out infinite;
    transition: scale 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.devaneio[data-variant="1"] { animation-duration: 7.3s; animation-delay: -2.1s; }
.devaneio[data-variant="2"] { animation-duration: 5.9s; animation-delay: -3.7s; }
.devaneio[data-variant="3"] { animation-duration: 6.9s; animation-delay: -1.2s; }
@keyframes devaneio-flutua {
    0%, 100% { transform: translateY(0) rotate(-0.8deg); }
    50%      { transform: translateY(-9px) rotate(0.8deg); }
}
.devaneio .index-post-image {
    border: 3px solid #000;
    border-radius: 20px;
    padding: 0;
    margin: 6px 0 4px;
}
.devaneio::before,
.devaneio::after {
    /* bolhas de pensamento discretas: duas bolinhas descendo para a esquerda */
    content: "";
    position: absolute;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    pointer-events: none;
    transition: background-color 0.2s ease;
}
.devaneio::before { width: 11px; height: 11px; left: 16%; bottom: -19px; }
.devaneio::after  { width: 6px; height: 6px; left: 11%; bottom: -29px; }
@media (hover: hover) {
  .devaneio:hover {
    animation-play-state: paused;
    scale: 1.06;
    background-color: #dcf1ff;
    box-shadow: 12px 12px 0 #000;
  }
  .devaneio:hover::before,
  .devaneio:hover::after {
    background-color: #dcf1ff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .devaneio { animation: none; }
}

/* Devaneio: página do post. Mesma fonte e estilo dos outros posts (título e texto em
   branco), sem o fundo translúcido do post; a coluna de texto é mais estreita e termina
   com um ornamento. */
.post-devaneio .post-markdown {
    max-width: 80ch;
}
/* Fotos ocupam a coluna de texto inteira, com moldura neobrutalista (sem as listras,
   borda preta grossa e sombra dura). */
.post-devaneio .post-image-container {
    width: 100%;
    margin: 2em auto;
    background: #000;
    border: 4px solid #000;
    box-shadow: 10px 10px 0 #000;
}
.post-devaneio .post-image {
    display: block;
    padding: 0;
}
.post-devaneio .post-image-caption {
    border-top: 4px solid #000;
}
.post-devaneio .post-markdown img {
    width: 100%;
    height: auto;
}
.post-wrapper.post-devaneio {
    /* sem o fundo translúcido do post: título e texto ficam direto sobre o gradiente */
    background-color: transparent;
    box-shadow: none;
}
/* Botões dentro do texto (ex.: link do Diário de Restaurantes): grandões, neobrutalistas,
   levemente tortos e com uma sacudida no hover. !important vence o tema (color) e o
   style inline do markdown (padding). */
.post-devaneio .post-markdown a:has(> button) {
    display: block;
    margin: 2.5em 0 1.5em;
    text-decoration: none;
}
.post-devaneio .post-markdown button,
.post-devaneio .post-markdown .button {
    display: block;
    width: 100%;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(1.15rem, 3.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    height: auto;
    line-height: 1.25;
    padding: 1em 1.2em !important;
    color: #000 !important;
    background-color: #f0d171;
    border: 5px solid #000;
    border-radius: 0;
    box-shadow: 10px 10px 0 #000;
    transform: rotate(-1.2deg);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}
.post-devaneio .post-markdown button:hover,
.post-devaneio .post-markdown .button:hover {
    background-color: #ff6ec7;
    box-shadow: 14px 14px 0 #000;
    animation: botao-sacode 0.45s ease;
    transform: rotate(0deg) translate(-4px, -4px);
}
.post-devaneio .post-markdown button:active,
.post-devaneio .post-markdown .button:active {
    animation: none;
    transform: translate(10px, 10px);
    box-shadow: 0 0 0 #000;
}
/* Sinaliza que o botão é um link para fora do site: seta ↗ no botão e texto
   sublinhado no hover. */
.post-devaneio .post-markdown a[href^="http"] > button {
    position: relative;
    padding-right: 2.6em !important;
}
.post-devaneio .post-markdown a[href^="http"] > button::after {
    content: "↗";
    position: absolute;
    right: 0.55em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
}
.post-devaneio .post-markdown a[href^="http"] > button:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}
@keyframes botao-sacode {
    0%   { transform: rotate(-1.2deg) translate(0, 0); }
    25%  { transform: rotate(2deg) translate(-2px, -2px); }
    50%  { transform: rotate(-2deg) translate(-3px, -3px); }
    75%  { transform: rotate(1deg) translate(-4px, -4px); }
    100% { transform: rotate(0deg) translate(-4px, -4px); }
}
@media (prefers-reduced-motion: reduce) {
  .post-devaneio .post-markdown button:hover,
  .post-devaneio .post-markdown .button:hover { animation: none; }
}
.devaneio-fecho {
    text-align: center;
    font-size: 1.6rem;
    color: #7a5c3a;
    margin-top: 1.5rem;
}

.image-tooltip {
    position: relative;
    display: block;
    width: 100%;
  }

  .image-tooltip img {
    display: block;
    width: 100%;
    height: auto;
  }

  .image-tooltip .tooltiptext {
    width: 100%;
    position: absolute;
    bottom: 100%;            /* Position above the image */
    left: 50%;               /* Center horizontally */
    transform: translateX(-50%);
    margin-bottom: 10px;     /* Gap between image and tooltip */
    background-color: #fffc85; /* Post-it note yellow */
    color: #333;
    padding: 10px;
    border: 2px solid #e0df73;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0s;
    transition-delay: 0.4s;
  }

  /* Create an arrow for the speech bubble */
  .image-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;  /* Position arrow at the bottom edge of the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #fffc85 transparent transparent transparent;
  }
  .image-tooltip:hover .tooltiptext {
    opacity: 1 !important;
  }

/* Container to anchor the image and speech bubble */
.speech-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px;
    width: 100%;
  }


  /* Optional: restrict the image size */
  .speech-image {
    background-color:  yellow;
    width: 20%;
    height: auto;
    display:inline-flex;
}
  /* Speech bubble styling */
  .speech-bubble {
    position: relative;
    background: #eee;
    border: 4px solid #000;
    padding: 20px;
    width:50%;
    /* Remove border radius for a blockier look */
    border-radius: 0;
    /* Use a more pronounced shadow */
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 1);
  }
  .speech-bubble::before {
    content: "";
    position: absolute;
    /* 
       Position so that the arrow's tip (20px from top, given a total arrow height of 40px)
       aligns with 75px (the center of a 150px image):
       75px - 20px = 55px.
    */
    top: 55px;
    left: -40px;  /* width of arrow border */
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 40px solid #000;
  }
  /* The tail of the speech bubble */
  .speech-bubble::after {
    content: "";
    position: absolute;
    /* Offset by the border thickness (4px) */
    top: 55px + 4px;  /* equals 59px */
    left: -36px;      /* 40px - 4px = 36px */
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-right: 36px solid #eee;
  }
  /* Since calc() is needed for after, adjust it properly: */
  .speech-bubble::after {
    top: calc(75px - 20px + 4px); /* (75 - arrow tip offset) + border thickness */
    left: -36px;
  }
  
  
audio {
    width:100%;
    /* min-width: 10%; */
    background-color: black;
    border-color: #000;
  }
  
  audio::-webkit-media-controls-panel {
    background-color: black;
  }
  
  /* Style play and pause buttons (WebKit browsers only) */
  audio::-webkit-media-controls-play-button,
  audio::-webkit-media-controls-pause-button {
    background-color: white;
    margin-right: 10%;
  }

  audio::-webkit-media-controls-mute-button,
  audio::-webkit-media-controls-volume-slider-container,
  audio::-webkit-media-controls-volume-slider,
  audio::-webkit-media-controls-timeline {
    display: none !important;
    overflow: hidden;
  }
  
  audio::-webkit-media-controls-current-time-display,
  audio::-webkit-media-controls-time-remaining-display {
    color: white !important;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
  }

  .jp-subtext{
    font-size: 0.7rem;
    /* color:initial */
  }
/* Filtros por tipo no topo da home: barra creme que gruda no topo, com chips
   neobrutalistas (borda preta, sombra dura); o ativo fica amarelo, afundado e com ●.
   Seletores com .filtros na frente: o tema tem button:hover/:active (0,1,1) que
   trocariam o fundo; color com !important porque o tema força a cor dos botões. */
.filtros {
    /* barra de ferramentas que gruda no topo, à direita do ☰ do menu (fixo em
       left/top 1em, 3em de lado): mesma altura e linha dele, sem nunca ficar por baixo */
    position: sticky;
    top: 1em;
    z-index: 50;  /* acima dos cards, abaixo do card em hover (60) e do menu lateral */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    width: fit-content;
    max-width: calc(100% - 5.5em);
    min-height: 3em;
    margin: 0 20px 24px 5.5em;
    padding: 0.35em 0.9em;
    background-color: #fbf6ea;  /* creme, como a gaveta do menu: as sombras duras dos chips aparecem */
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 4px 4px 0 #000;
}
@media (min-width: 601px) {
  .filtros {
      /* sobe para a linha do botão "English" (centrado 31px acima da borda de baixo do
         cabeçalho, logo onde a barra começa); a barra tem 3em, então sobe 31px + 1.5em.
         A largura para antes do botão (~130px na direita). */
      margin-top: calc(-31px - 1.5em);
      max-width: calc(100% - 5.5em - 130px);
  }
}
@media (max-width: 600px) {
  .filtros {
      /* celular: não gruda (rola junto com a página) e os chips quebram em linhas, todos
         visíveis; alinhada com os cards, sem o recuo que só servia para ficar ao lado do ☰ */
      position: static;
      width: auto;
      max-width: none;
      margin: 0 12px 20px;
  }
}
.filtros .filtro {
    /* chips neobrutalistas: creme chapado, borda preta, cantos quase retos, sombra dura */
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    height: auto;
    line-height: 1.2;
    padding: 0.32em 0.7em;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #000 !important;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 3px;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease;
}
.filtros .filtro[hidden] {
    display: none;
}
.filtros .filtro-contagem {
    /* selinho preto com o número */
    font-size: 0.85em;
    line-height: 1;
    padding: 0.15em 0.4em;
    border-radius: 2px;
    background-color: #000;
    color: #fff;
}
.filtros .filtro-todos {
    /* mesmo tamanho dos outros (maior parecia torto); a hierarquia vem de um divisor
       vertical entre "Todos" e os tipos */
    position: relative;
    margin-right: 12px;
}
.filtros .filtro-todos::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 10%;
    bottom: 10%;
    width: 3px;
    background-color: #000;
    pointer-events: none;
}
@media (hover: hover) {
  .filtros .filtro:hover {
    background-color: #fff;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
  }
}
.filtros .filtro:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 #000;
}
/* ativo: amarelo com ●, alinhado com os outros (afundado fixo parecia torto);
   o "afundar" fica só no instante do clique (:active) */
.filtros .filtro[aria-pressed="true"],
.filtros .filtro[aria-pressed="true"]:hover {
    background-color: #f0d171;
    transform: none;
    box-shadow: 3px 3px 0 #000;
}
.filtros .filtro[aria-pressed="true"]::before {
    content: "●";
    font-size: 0.8em;
}

/* AI disclosure — discreet footer line at the end of each post */
.ai-disclosure {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: #777;
    margin: 2em 0 0 0;
    padding: 0 16px;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .ai-disclosure { padding: 0; }
}

.ai-disclosure-label {
    display: inline-block;
    color: #777;
    border: 1px solid #aaa;
    padding: 0 5px;
    margin-right: 6px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* flags.wip: post acessível, mas ainda incompleto. Rótulo sobre a capa do card da home. */
.index-post-cover {
    position: relative;
    container-type: inline-size; /* o rótulo wip escala com a largura da capa (cqw) */
}

.wip-tag {
    /* selo quadrado e torto (como o selo do post) com um martelo, no canto de baixo à direita
       da capa, espelhando a tag NEW (canto de cima à esquerda) */
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 27cqw, 62px);
    aspect-ratio: 1;
    transform: rotate(-8deg);
    background: rgb(234 234 234 / 75%); /* cinza-claro do menu lateral, um pouco translúcido; ícone e borda opacos */
    color: #000;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    font-size: clamp(19px, 15cqw, 34px);
    line-height: 1;
    cursor: help;
}


/* Selo sobre o título do post (h1 ou 1º livro): torto e por cima de um canto da caixa,
   semitransparente e sem capturar cliques, para o título continuar legível. Fica dentro
   da própria caixa (position: relative), então não altera a centralização dela. */
.has-wip-stamp { position: relative; }
.wip-stamp {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 3;
    transform: rotate(-8deg);
    pointer-events: none;
    white-space: nowrap;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(12px, 1.6vw, 18px);
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    background: yellow;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    padding: 4px 12px;
    opacity: 0.85;
}
@media (max-width: 768px) {
    .wip-stamp { top: -20px; right: -8px; }
}
