/*
Theme Name: JSMS
Theme URI: https://jsms.com.br/
Author: JSMS
Description: Tema editorial brasileiro para programação, inteligência artificial, tecnologia, carreira e produtos digitais.
Version: 1.6.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: jsms
Tags: blog, news, technology, e-commerce, custom-menu, featured-images, threaded-comments, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --bg: #061f19;
  --bg-deep: #041712;
  --surface: #092a22;
  --surface-light: #0d352a;
  --header: #0d3a2e;
  --line: rgba(155, 194, 174, .22);
  --line-strong: rgba(155, 194, 174, .38);
  --text: #eef5ef;
  --text-soft: #c7d6cd;
  --muted: #91aa9e;
  --green: #5beb8a;
  --yellow: #f1d15b;
  --yellow-soft: #f8e69c;
  --content: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(68, 164, 111, .08), transparent 38%),
    var(--bg);
  font-family: Aptos, "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: "Segoe UI Variable Display", Aptos, "Segoe UI", sans-serif; font-weight: 600; }
strong, b { font-weight: 600; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; padding: 10px 14px; clip: auto; color: var(--bg); background: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 58, 46, .97);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; min-height: 68px; }
.brand-wordmark {
  flex: 0 0 auto;
  color: var(--yellow);
  font-family: "Bitcount Grid Double", sans-serif;
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  text-shadow: 0 0 2px rgba(241, 209, 91, .95), 0 0 9px rgba(241, 209, 91, .38), 0 0 22px rgba(241, 209, 91, .16);
  text-transform: uppercase;
}
.brand-wordmark:hover { color: var(--yellow-soft); }
.primary-nav { min-width: 0; margin-left: auto; }
.primary-nav ul { padding: 0; margin: 0; list-style: none; }
.primary-nav > .menu { display: flex; align-items: stretch; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a,
.more-toggle {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  color: #d9e6de;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.more-toggle:hover { color: var(--yellow); background: rgba(2, 21, 15, .22); }
.more-toggle span { margin-left: 5px; color: var(--green); font-size: 16px; line-height: 1; }
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 10;
  display: none;
  width: 230px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
}
.primary-nav .sub-menu .sub-menu { top: -8px; left: calc(100% + 8px); }
.primary-nav .sub-menu a { min-height: 0; padding: 10px 11px; font-size: 10px; line-height: 1.35; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav .menu-more.is-open > .sub-menu { display: block; }
.menu-toggle { display: none; place-items: center; width: 38px; height: 38px; margin-left: auto; border: 1px solid var(--line-strong); color: var(--yellow); background: transparent; cursor: pointer; }
.topic-strip { border-top: 1px solid rgba(255,255,255,.035); background: rgba(4, 23, 18, .58); }
.topic-strip-inner { display: flex; align-items: center; gap: 27px; min-height: 34px; overflow-x: auto; scrollbar-width: none; }
.topic-strip-inner::-webkit-scrollbar { display: none; }
.topic-link { flex: 0 0 auto; color: #b3c8bd; font-size: 10px; font-weight: 550; }
.topic-link:hover { color: var(--yellow); }

/* Home */
.site-main { min-height: 70vh; }
.home-shell { padding-top: 30px; padding-bottom: 70px; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(200px, 245px) minmax(500px, 1fr) minmax(230px, 285px);
  gap: 26px;
  align-items: start;
}
.home-rail-left { padding-right: 24px; border-right: 1px solid var(--line); }
.home-rail-right { padding-left: 24px; border-left: 1px solid var(--line); }
.stream-list, .recent-list, .featured-feed, .featured-rows { display: grid; }
.post-card { min-width: 0; }
.post-card-body { min-width: 0; }
.post-card-media { position: relative; display: block; overflow: hidden; background: var(--bg-deep); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .25s ease; }
.post-card:hover .post-card-media img { opacity: .94; transform: scale(1.065); }
.media-category { position: absolute; right: 8px; bottom: 8px; z-index: 2; max-width: calc(100% - 16px); padding: 5px 9px; overflow: hidden; color: var(--bg-deep); background: var(--yellow); font: 600 9px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .035em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.post-title { margin: 0; color: var(--text); font-weight: 600; line-height: 1.28; letter-spacing: -.018em; overflow-wrap: anywhere; }
.post-title a:hover { color: var(--yellow); }
.post-excerpt { color: var(--text-soft); font-size: 13px; line-height: 1.52; }
.post-excerpt p { margin: 0; }
.category-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.meta-author { color: #afc5b9; }
.meta-divider { opacity: .55; }
.meta-comments { margin-left: auto; }

.post-card-stream { padding: 17px 0; border-bottom: 1px dotted var(--line-strong); }
.post-card-stream:first-child { padding-top: 0; }
.post-card-stream .post-title { font-family: "Changa", sans-serif; font-size: 17px; font-weight: 500; line-height: 1.22; }
.post-card-stream .post-excerpt, .post-card-stream .post-meta { display: none; }

.post-card-lead { overflow: hidden; padding: 0; border: 0; background: transparent; }
.post-card-lead .post-card-media { aspect-ratio: 16 / 8.7; margin: 0; }
.post-card-lead .post-card-body { padding: 15px 0 3px; }
.post-card-lead .post-title { max-width: 790px; font-size: clamp(25px, 2.7vw, 36px); line-height: 1.15; }
.post-card-lead .post-excerpt { display: -webkit-box; overflow: hidden; max-width: 760px; margin-top: 7px; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.post-card-lead .post-meta { display: none; }
.featured-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 25px 0 5px; border: 0; }
.post-card-compact { overflow: hidden; border: 0; background: transparent; }
.post-card-compact .post-card-media { aspect-ratio: 16 / 9; }
.post-card-compact .post-card-body { padding: 12px 0 14px; }
.post-card-compact .post-title { font-size: 18px; }
.post-card-compact .post-excerpt { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.post-card-compact .post-meta { display: none; }
.featured-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 20px; }
.post-card-row { display: block; overflow: hidden; padding: 0; border: 0; background: transparent; }
.post-card-row .post-card-media { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post-card-row .post-card-body { padding: 10px 0 12px; }
.post-card-row .post-title { font-size: 15px; line-height: 1.3; }
.post-card-row .post-excerpt { display: -webkit-box; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.post-card-row .post-meta { display: none; }
.post-card-recent { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start; padding: 16px 0; border-bottom: 1px dotted var(--line-strong); }
.post-card-recent:first-child { padding-top: 0; }
.post-card-recent .post-title { font-family: "Changa", sans-serif; font-size: 17px; font-weight: 500; line-height: 1.22; }
.post-card-recent .post-excerpt { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.post-card-recent .post-meta { display: none; }
.post-category-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #8b9992; background: rgba(139,153,146,.09); }
.category-icon-svg { width: 20px; height: 20px; }
.center-latest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.post-card-center-list { padding: 16px 0; border-bottom: 1px dotted var(--line-strong); }
.post-card-center-list .post-title { font-size: 17px; }
.post-card-center-list .post-excerpt { display: -webkit-box; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.post-card-center-list .post-meta { display: none; }

/* Archives and categories */
.archive-header { padding: 50px 0 28px; border-bottom: 1px solid var(--line); }
.eyebrow, .section-kicker { display: block; margin: 0 0 7px; color: var(--yellow); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.archive-title { max-width: 900px; margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; }
.archive-description { max-width: 760px; margin-top: 15px; color: var(--text-soft); }
.posts-area { padding: 32px 0 72px; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card-default { padding-bottom: 22px; border-bottom: 1px dotted var(--line-strong); }
.post-card-default .post-card-media { aspect-ratio: 16 / 9; margin-bottom: 13px; }
.post-card-default .post-title { font-size: 21px; }
.post-card-default .post-excerpt { margin-top: 8px; }
.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: grid; place-items: center; min-width: 35px; height: 35px; padding: 0 10px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; }
.page-numbers.current, .page-numbers:hover { border-color: var(--yellow); color: var(--bg-deep); background: var(--yellow); }

.category-header { padding: 55px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(91,235,138,.055), transparent 48%); }
.category-header-inner { display: block; }
.category-header h1 { margin: 6px 0 0; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.048em; }
.category-description { max-width: 780px; margin-top: 14px; color: var(--text-soft); }
.category-description p { margin: 0; }
.category-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 250px; gap: 40px; align-items: start; padding-top: 38px; padding-bottom: 75px; }
.category-index, .category-popular { position: sticky; top: 120px; }
.category-index h2, .category-popular h2, .category-feed-heading h2 { margin: 0; font-size: 14px; }
.category-index ul { padding: 0; margin: 13px 0 0; border-top: 1px solid var(--line); list-style: none; }
.category-index li { border-bottom: 1px dotted var(--line-strong); }
.category-index a { display: block; padding: 9px 0; color: var(--muted); font-size: 12px; }
.category-index .is-current a, .category-index a:hover { color: var(--yellow); }
.category-feed-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.category-feed-heading span { color: var(--muted); font-size: 10px; }
.category-story { padding: 25px 0 27px; border-bottom: 1px dotted var(--line-strong); }
.category-story-meta { display: flex; gap: 13px; margin-bottom: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.category-story h2 { margin: 0; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.category-story-excerpt { margin-top: 11px; color: var(--text-soft); font-size: 14px; line-height: 1.58; }
.category-story-excerpt p { margin: 0; }
.category-story-author { margin-top: 12px; color: var(--green); font-size: 10px; }
.category-popular > p { margin: 6px 0 13px; color: var(--muted); font-size: 11px; }
.category-popular ol { padding: 0; margin: 0; border-top: 1px solid var(--line); list-style: none; counter-reset: popular; }
.category-popular li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px dotted var(--line-strong); counter-increment: popular; }
.category-popular li::before { content: counter(popular, decimal-leading-zero); position: absolute; top: 15px; left: 0; color: var(--yellow); font: 500 9px/1 ui-monospace, monospace; }
.category-popular a { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; }
.category-popular span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }

/* Articles and pages */
.article-page { padding-bottom: 80px; }
.article-hero { padding-top: 58px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.article-intro { width: 100%; }
.single-title { max-width: none; margin: 10px 0 27px; font-size: clamp(45px, 6vw, 76px); font-weight: 600; line-height: 1.02; letter-spacing: -.048em; text-wrap: balance; }
.article-byline { display: flex; align-items: center; gap: 10px; }
.article-byline img { border-radius: 50%; }
.article-byline div { display: grid; }
.article-byline strong { font-size: 11px; }
.article-byline span { color: var(--muted); font-size: 10px; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 44px; }
.article-aside { position: sticky; top: 120px; }
.article-summary { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.aside-label { color: var(--yellow); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.article-summary p { margin: 8px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.55; }
.article-facts { padding: 15px 0; border-bottom: 1px solid var(--line); }
.article-facts div { display: grid; grid-template-columns: 68px 1fr; gap: 8px; padding: 4px 0; font-size: 10px; }
.article-facts span { color: var(--muted); }
.article-facts strong { overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.article-toc { margin-top: 20px; }
.article-toc h2 { margin: 0 0 8px; font-size: 12px; }
.toc-list { padding: 0; margin: 0; border-top: 1px dotted var(--line-strong); list-style: none; counter-reset: toc; }
.toc-list li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px dotted var(--line-strong); counter-increment: toc; }
.toc-list li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 9px; color: var(--yellow); font: 500 8px/1 ui-monospace, monospace; }
.toc-list a { display: block; color: var(--muted); font-size: 10px; line-height: 1.35; }
.toc-list a:hover { color: var(--yellow); }
.toc-list .toc-subitem { padding-left: 33px; }
.article-main { min-width: 0; }
.entry-content { color: #e0eae3; font-size: 17px; line-height: 1.78; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2, .entry-content h3, .entry-content h4 { scroll-margin-top: 125px; margin: 1.85em 0 .7em; color: var(--text); line-height: 1.17; letter-spacing: -.025em; }
.entry-content h2 { padding-top: .75em; border-top: 1px solid var(--line); font-size: 31px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 19px; }
.entry-content a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(91,235,138,.35); text-underline-offset: .18em; }
.entry-content blockquote { margin: 28px 0; padding: 15px 20px; border-left: 3px solid var(--yellow); color: var(--text); background: var(--surface); font-size: 19px; }
.entry-content pre { overflow-x: auto; padding: 20px; border: 1px solid var(--line); color: #c1f3cf; background: var(--bg-deep); font-size: 13px; }
.entry-content code { padding: .12em .3em; color: #c1f3cf; background: var(--bg-deep); font-family: ui-monospace, Consolas, monospace; font-size: .86em; }
.entry-content pre code { padding: 0; background: transparent; }
.entry-content img { margin-block: 25px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 9px; border: 1px solid var(--line); text-align: left; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-list a { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; }
.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-navigation a { display: grid; gap: 5px; min-height: 85px; padding: 15px; border: 1px solid var(--line); background: var(--surface); }
.post-navigation .nav-next { text-align: right; }
.nav-direction { color: var(--yellow); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.post-navigation strong { font-size: 12px; line-height: 1.35; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; padding: 48px 0 75px; }
.single-header { margin-bottom: 24px; }
.single-deck { color: var(--text-soft); font-size: 18px; }
.single-featured { margin: 25px 0; }
.post-sidebar { position: sticky; top: 120px; }
.sidebar-box { padding: 17px; border: 1px solid var(--line); background: var(--surface); }
.sidebar-box + .sidebar-box { margin-top: 15px; }
.sidebar-title { margin: 0 0 10px; color: var(--yellow); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

/* Footer, forms and supporting components */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-simple { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; min-height: 82px; }
.footer-identity { display: grid; }
.footer-identity strong { color: var(--yellow); font-family: "Bitcount Grid Double", sans-serif; font-size: 20px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 0 7px rgba(241,209,91,.25); }
.footer-identity span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 20px; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: var(--text-soft); font-size: 11px; }
.footer-links a:hover { color: var(--yellow); }
.comments-area { margin-top: 45px; padding-top: 25px; border-top: 1px solid var(--line); }
.comments-area h2, .comment-reply-title { font-size: 21px; }
.comment-list { padding: 0; list-style: none; }
.comment-body { margin: 16px 0; padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.comment-meta { color: var(--muted); font-size: 10px; }
.comment-form label { display: block; margin-bottom: 5px; color: var(--text-soft); font-size: 11px; font-weight: 600; }
.comment-form input:not([type="checkbox"]), .comment-form textarea, .search-form .search-field { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 0; outline: none; color: var(--text); background: var(--bg-deep); }
.comment-form input:focus, .comment-form textarea:focus, .search-form .search-field:focus { border-color: var(--yellow); }
.submit, .search-submit, .button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 0 15px; border: 1px solid var(--yellow); border-radius: 0; color: var(--bg-deep); background: var(--yellow); font-size: 11px; font-weight: 600; cursor: pointer; }
.empty-state { grid-column: 1 / -1; padding: 42px 20px; border: 1px dotted var(--line-strong); text-align: center; }
.empty-state h1, .empty-state h2 { margin: 0 0 8px; }
.empty-state p { color: var(--muted); }
.error-code { margin: 0; color: var(--yellow); font: 500 clamp(90px, 18vw, 190px)/.8 "Bitcount Grid Double", sans-serif; letter-spacing: -.08em; }

/* Products */
.product-grid, .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card, .woocommerce ul.products li.product { min-width: 0; padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.product-card-media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-deep); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 12px 2px 2px; }
.product-card h3 { margin: 0 0 7px; font-size: 14px; }
.product-price, .woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--yellow); font-weight: 600; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border: 1px solid var(--yellow); border-radius: 0; color: var(--bg-deep); background: var(--yellow); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--yellow); color: var(--text); background: var(--surface); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--yellow); }

/* WordPress core */
.wp-caption, .gallery-caption { max-width: 100%; color: var(--muted); font-size: 11px; }
.sticky { position: relative; }
.sticky::after { content: "Destaque"; position: absolute; top: 8px; right: 8px; z-index: 2; padding: 4px 6px; color: var(--bg-deep); background: var(--yellow); font: 600 8px/1 ui-monospace, monospace; text-transform: uppercase; }
.bypostauthor { border-color: var(--yellow); }
.alignleft { float: left; margin: 0 22px 16px 0; }
.alignright { float: right; margin: 0 0 16px 22px; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
.alignwide { width: min(100%, 1100px); max-width: none; }

@media (max-width: 1120px) {
  .primary-nav { margin-left: auto; }
  .primary-nav a, .more-toggle { padding-inline: 9px; font-size: 10px; }
  .home-grid { grid-template-columns: minmax(185px, 215px) minmax(430px, 1fr) minmax(205px, 245px); gap: 21px; }
  .home-rail-left { padding-right: 20px; }
  .home-rail-right { padding-left: 20px; }
  .category-layout { grid-template-columns: 180px minmax(0, 1fr) 220px; gap: 28px; }
}

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 60px; }
  .menu-toggle { display: grid; }
  .primary-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 60px);
    margin: 0;
    padding: 12px 20px 20px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line-strong);
    background: var(--bg-deep);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > .menu { display: grid; }
  .primary-nav a, .more-toggle { justify-content: space-between; min-height: 42px; padding: 0; border-bottom: 1px dotted var(--line-strong); }
  .primary-nav .sub-menu, .primary-nav .sub-menu .sub-menu { position: static; width: auto; padding: 2px 0 8px 15px; border: 0; box-shadow: none; }
  .primary-nav li:hover > .sub-menu { display: none; }
  .primary-nav li:focus-within > .sub-menu, .primary-nav .menu-more.is-open > .sub-menu { display: block; }
  .home-grid { grid-template-columns: 1fr; }
  .home-center { grid-row: 1; }
  .home-rail-left { grid-row: 2; padding: 27px 0 0; border-top: 1px solid var(--line); border-right: 0; }
  .home-rail-right { grid-row: 3; padding: 27px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .stream-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .category-layout { grid-template-columns: minmax(0, 1fr) 220px; }
  .category-index { position: static; grid-column: 1 / -1; }
  .category-index ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .category-index li { border: 1px solid var(--line); }
  .category-index a { padding: 7px 9px; }
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--content)); }
  .brand-wordmark { font-size: 25px; }
  .topic-strip-inner { gap: 19px; }
  .home-shell { padding-top: 20px; }
  .stream-list, .featured-pair, .featured-rows, .center-latest-list, .content-grid, .product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .post-card-lead .post-title { font-size: 29px; }
  .featured-rows { grid-template-columns: 1fr; }
  .category-layout, .article-layout, .single-layout { grid-template-columns: 1fr; }
  .category-popular, .article-aside, .post-sidebar { position: static; }
  .category-feed-heading { align-items: start; flex-direction: column; gap: 4px; }
  .single-title { font-size: 42px; }
  .article-toc { display: none; }
  .article-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .article-facts div { display: block; }
  .article-facts span, .article-facts strong { display: block; }
  .entry-content { font-size: 16px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .footer-simple { grid-template-columns: 1fr; gap: 18px; padding-block: 24px; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
