:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #111827;
  --primary-contrast: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92vw); margin: 0 auto; }

/* Keep tables with square corners across public pages */
table,
thead,
tbody,
tfoot,
tr,
th,
td {
  border-radius: 0 !important;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 24px 0 14px;
}
.brand h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.2px;
}
.brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.site-nav {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

.main-menu-item {
  position: relative;
}

.main-menu-item.has-sub > .main-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-arrow {
  font-size: 11px;
  opacity: 0.75;
  transform: translateY(-1px);
}

.main-menu-sub {
  list-style: none;
  padding: 10px;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 0;
  z-index: 10;
}

.main-menu-link {
  display: inline-block;
}

.main-menu-item.has-sub::after {
  /* Hover bridge: prevents the dropdown from closing while moving the mouse
     from the parent link down into the submenu (covers the margin-top gap). */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.main-menu-item.has-sub:hover > .main-menu-sub,
.main-menu-item.has-sub:focus-within > .main-menu-sub {
  display: flex;
}

.main-menu-sub .main-menu-item {
  position: static;
}

.main-menu-sub .main-menu-link {
  font-weight: 600;
  display: block;
  padding: 6px 8px;
}

.main-menu-sub .main-menu-link:hover,
.main-menu-sub .main-menu-link:focus {
  background: rgba(0,0,0,0.04);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 24px 0;
}

.hero.hero--no-slider {
  grid-template-columns: 1fr;
}
.slider {
  position: relative;
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.68));
}
.slider-content {
  position: relative;
  color: #fff;
  max-width: 760px;
  width: 100%;
}
.slider-item {
  display: none;
  cursor: pointer;
}
.slider-item.is-active {
  display: block;
}
.slider-kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.slider h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
}
.slider p {
  margin: 0;
  opacity: 0.95;
  font-size: 15px;
  max-width: 62ch;
}
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}
.slider-controls button {
  pointer-events: all;
  border: 0;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 0;
  font-size: 18px;
  cursor: pointer;
}

.current-issue {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
}
.current-issue-heading {
  flex-shrink: 0;
}
.current-issue-kicker {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--muted);
}
.current-issue-title {
  margin: 0.15rem 0 10px;
  font-size: 22px;
  line-height: 1.2;
}
.current-issue--empty .current-issue-empty-msg {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}
.read-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 10px 14px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
}

.section-title {
  margin: 12px 0 16px;
  font-size: 28px;
  line-height: 1.1;
}
.articles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.article-card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
a.article-card--link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.article-card--link:hover,
a.article-card--link:focus-visible {
  border-color: #94a3b8;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  outline: none;
}
.article-card-media {
  flex: 0 0 30%;
  min-height: 0;
  background: #f3f4f6;
}
.article-card-cover {
  width: 100%;
  height: 100%;
  min-height: 66px;
  object-fit: cover;
  display: block;
  border: 0;
}
.article-card-cover--placeholder {
  min-height: 66px;
  background: #e5e7eb;
}
.article-card-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.article-card-main {
  min-height: 0;
}
.article-card-cta {
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.article-card--link:hover .article-card-cta,
a.article-card--link:focus-visible .article-card-cta {
  text-decoration-thickness: 2px;
}
.article-tags {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.article-card h4 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
}
.article-card a {
  font-weight: 700;
  font-size: 14px;
}

.instagram {
  margin-top: 26px;
  border: 1px dashed #cbd5e1;
  border-radius: 0;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer-copy {
  margin: 0;
  flex: 1 1 200px;
  min-width: 0;
}

.site-footer-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-footer-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  text-decoration: none;
  line-height: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-footer-lang-link:hover {
  border-color: #94a3b8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-footer-lang-link.is-current {
  border-color: #0f172a;
  box-shadow: inset 0 0 0 1px #0f172a;
}

.site-footer-lang-flag {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .main-menu-sub {
    position: static;
    display: flex;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0 12px;
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .brand h1 { font-size: 32px; }
  .slider h2 { font-size: 22px; }
  .articles { grid-template-columns: 1fr; }
}
.standalone-page { padding: 28px 16px 40px; }
.standalone-content { background: #fff; border: 1px solid #e5e7eb; padding: 24px; }
/* CMS standalone pages (/pt/about, etc.): same rhythm as artigos/edições — no card border */
.content-standalone-page {
  padding-bottom: 48px;
}
.content-standalone-body {
  overflow-wrap: anywhere;
}
.publication-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.publication-badge {
  display: inline-block;
  background: #6b6b6b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 7px 12px;
  margin-bottom: 0;
}
.publication-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}
.publication-date {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.publication-date span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.publication-date .meta-icon {
  width: 18px;
  height: 18px;
  color: #7b7b7b;
  flex: 0 0 auto;
  min-width: 18px;
  min-height: 18px;
  width: 18px !important;
  height: 18px !important;
}
.publication-date span + span::before {
  content: "•";
  margin-right: 12px;
  color: #9ca3af;
}
.publication-detail h1 {
  margin: 0 0 12px;
  font-size: 58px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.publication-excerpt {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.publication-body {
  font-size: 17px;
  line-height: 1.75;
}

.publication-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}

.publication-body th,
.publication-body td {
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  vertical-align: top;
}

.publication-body th {
  background: #f9fafb;
  font-weight: 700;
}
/* Exclude profile widget avatar: .publication-body img wins over .user-profile-widget__img alone (higher specificity), which breaks the circle */
.publication-body img:not(.user-profile-widget__img) {
  max-width: 100%;
  height: auto;
}
.publication-body { overflow-wrap: anywhere; }
.publication-detail { border: 0; padding: 0; background: transparent; }
@media (max-width: 640px) {
  .publication-detail h1 { font-size: 38px; }
}

/* Public member profile (/pt/perfil/{display-name-slug}) */
.standalone-content.member-profile {
  border: 0;
  padding: 0;
  background: transparent;
}
.member-profile-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
.member-profile-photo-col {
  flex: 0 0 auto;
}
.member-profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
  background: #f3f4f6;
}
.member-profile-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}
.member-profile-main {
  flex: 1;
  min-width: min(100%, 280px);
}
.member-profile-name {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.member-profile-bio {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}
.member-profile-description--empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}
.member-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.member-profile-links li {
  margin: 0;
  padding: 0;
}
.member-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid var(--line);
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.member-social:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
  border-color: #d1d5db;
}
.member-social:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.member-social svg {
  display: block;
}
@media (max-width: 640px) {
  .member-profile-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .member-profile-main {
    text-align: center;
  }
  .member-profile-links {
    justify-content: center;
  }
}

/* Embedded user teaser [user_profile=email] on standalone pages */
.user-profile-widget {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 1.25rem 0;
  border: none;
  background: transparent;
  padding: 0;
}
.user-profile-widget__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
}
.user-profile-widget__media {
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
  color: inherit;
}
.user-profile-widget__media--static {
  cursor: default;
}
.user-profile-widget__img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  display: block;
  background: #f3f4f6;
}
.user-profile-widget__placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-profile-widget__body {
  flex: 1;
  min-width: 0;
}
.user-profile-widget__name {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}
.user-profile-widget__name-link {
  color: var(--text);
  text-decoration: none;
}
.user-profile-widget__name-link:hover {
  text-decoration: underline;
}
.user-profile-widget__name-text {
  color: var(--text);
}
.user-profile-widget__excerpt {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.user-profile-widget__cta-wrap {
  margin: 0;
}
.user-profile-widget__cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
}
.user-profile-widget__cta:hover {
  text-decoration: none;
}
@media (max-width: 480px) {
  .user-profile-widget__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .user-profile-widget__cta-wrap {
    width: 100%;
  }
}

.error-kicker { color: #667085; font-size: 0.95rem; margin: 0 0 10px; }
.error-title { margin: 0 0 10px; }
.error-desc { color: #344054; }

/* Archive / artigos listing (WordPress-style) */
.archive-body {
  background: #fff;
}
.archive-main {
  max-width: 720px;
  padding: 28px 16px 48px;
}
.archive-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.archive-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.archive-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.archive-empty {
  color: var(--muted);
  font-size: 1rem;
}
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.archive-entry {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.archive-entry:last-of-type {
  border-bottom: 0;
}
.archive-entry-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}
.archive-entry-title a {
  color: #111827;
  text-decoration: none;
}
.archive-entry-title a:hover,
.archive-entry-title a:focus {
  color: var(--primary);
  text-decoration: underline;
  outline: none;
}
.archive-entry-meta {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: var(--muted);
}
.archive-entry-summary {
  margin: 0 0 12px;
}
.archive-entry-summary p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
}
.archive-read-more {
  margin: 0;
  font-size: 0.95rem;
}
.archive-read-more a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.archive-read-more a:hover,
.archive-read-more a:focus {
  text-decoration: underline;
  outline: none;
}
.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.archive-pagination .page-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
}
.archive-pagination .page-link:hover:not(.is-disabled),
.archive-pagination .page-link:focus:not(.is-disabled) {
  text-decoration: underline;
  outline: none;
}
.archive-pagination .page-link.is-disabled {
  color: #9ca3af;
  cursor: default;
}
.archive-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.archive-pagination .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
}
.archive-pagination .page-num:hover:not(.is-current) {
  border-color: var(--primary);
  color: var(--primary);
}
.archive-pagination .page-num.is-current {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: var(--primary);
  cursor: default;
}
.archive-pagination .page-ellipsis {
  color: var(--muted);
  padding: 0 4px;
  user-select: none;
}
.archive-pagination-summary {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .archive-title { font-size: 1.65rem; }
  .archive-entry-title { font-size: 1.2rem; }
  .archive-pagination { flex-direction: column; }
}

/* Artigos archive: centered like standalone + two-column layout */
.artigos-page.standalone-page {
  padding-top: 28px;
  padding-bottom: 48px;
}
.artigos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}
.artigos-main {
  min-width: 0;
  text-align: left;
}
.artigos-sidebar {
  position: sticky;
  top: 16px;
}
.artigos-widget {
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 16px;
}
.artigos-widget-title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
}
.artigos-widget-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.artigos-archive-tree .artigos-year {
  border-bottom: 1px solid var(--line);
}
.artigos-archive-tree .artigos-year:last-child {
  border-bottom: 0;
}
.artigos-year-summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
  list-style: none;
  font-size: 0.95rem;
}
.artigos-year-summary::-webkit-details-marker {
  display: none;
}
.artigos-month-list {
  margin: 0 0 10px 0;
  padding: 0 0 0 14px;
  list-style: none;
}
.artigos-month-list li {
  margin: 0;
}
.artigos-month-list a {
  display: block;
  padding: 4px 0;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}
.artigos-month-list a:hover,
.artigos-month-list a:focus {
  text-decoration: underline;
  outline: none;
}
.artigos-cat-sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.artigos-cat-sidebar-list li {
  border-bottom: 1px solid #f3f4f6;
}
.artigos-cat-sidebar-list li:last-child {
  border-bottom: 0;
}
.artigos-cat-sidebar-list a {
  display: block;
  padding: 8px 0;
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
}
.artigos-cat-sidebar-list a:hover,
.artigos-cat-sidebar-list a:focus {
  color: var(--primary);
  outline: none;
}

.artigos-active-filters {
  margin-bottom: 22px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.artigos-filters-label {
  font-weight: 600;
  color: #374151;
}
.artigos-filters-chips {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.artigos-filters-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 10px;
}
.chip-remove {
  font-weight: 700;
  color: #6b7280;
  text-decoration: none;
  line-height: 1;
}
.chip-remove:hover,
.chip-remove:focus {
  color: #111;
  outline: none;
}
.artigos-clear-all {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
}
.artigos-clear-all:hover,
.artigos-clear-all:focus {
  text-decoration: underline;
  outline: none;
}

.artigos-list {
  display: flex;
  flex-direction: column;
}
.artigos-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.artigos-list .artigos-card:last-child {
  border-bottom: 0;
}
.artigos-cover-link {
  display: block;
}
.artigos-cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.artigos-cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  border: 1px solid var(--line);
}
.artigos-card-body {
  min-width: 0;
}
.artigos-card-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
}
.artigos-card-title a {
  color: #111827;
  text-decoration: none;
}
.artigos-card-title a:hover,
.artigos-card-title a:focus {
  color: var(--primary);
  text-decoration: underline;
  outline: none;
}
.artigos-card-date {
  margin: 0 0 6px;
  font-size: 0.875rem;
  color: var(--muted);
}
.artigos-card-cats {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.artigos-cat-sep {
  color: #9ca3af;
}
.artigos-card-cats a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.artigos-card-cats a:hover,
.artigos-card-cats a:focus {
  text-decoration: underline;
  outline: none;
}
.artigos-card-author {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #374151;
}
.artigos-card-author a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.artigos-card-author a:hover,
.artigos-card-author a:focus {
  text-decoration: underline;
  outline: none;
}
.artigos-card-excerpt p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
}
.artigos-card-more {
  margin: 12px 0 0;
  font-size: 0.95rem;
}
.artigos-card-more a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.artigos-card-more a:hover,
.artigos-card-more a:focus {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 900px) {
  .artigos-layout {
    grid-template-columns: 1fr;
  }
  .artigos-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .artigos-sidebar .artigos-widget {
    margin-bottom: 0;
  }
}
@media (max-width: 640px) {
  .artigos-sidebar {
    grid-template-columns: 1fr;
  }
  .artigos-card {
    grid-template-columns: 1fr;
  }
  .artigos-card-media {
    max-width: 320px;
  }
}

/* Revista — lista sem barra lateral (largura do .container, como artigos/publicação) */
.edicoes-single-col .artigos-layout {
  grid-template-columns: 1fr;
}

/* Capa na home (current issue) */
.issue-cover {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f9fafb;
  padding: 8px;
}
.issue-cover-thumb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  text-decoration: none;
}
.issue-cover-thumb img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.issue-cover-hint {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
}

/* Página da edição + PDF.js */
.issue-detail-page {
  padding-bottom: 3rem;
}
.issue-back-nav {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}
.issue-back-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.issue-back-nav a:hover,
.issue-back-nav a:focus {
  text-decoration: underline;
}
.issue-detail-header {
  margin-bottom: 1.5rem;
}
.issue-detail-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.issue-detail-date {
  margin: 0 0 0.75rem;
  color: var(--muted, #64748b);
  font-size: 0.95rem;
}
.issue-detail-description {
  line-height: 1.55;
  font-size: 17px;
}
.issue-detail-hero {
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.issue-detail-cover-frame {
  margin: 0;
  padding: 0;
  max-width: min(420px, 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  background: #fff;
}
.issue-detail-cover-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.issue-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.issue-detail-hero-actions--no-cover {
  margin: 0 0 1.25rem;
}
.issue-show-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  border: none;
  background: var(--primary, #2563eb);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.issue-show-pdf-btn:hover,
.issue-show-pdf-btn:focus {
  filter: brightness(1.06);
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
}
.issue-open-pdf-inline-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.issue-open-pdf-inline-link:hover,
.issue-open-pdf-inline-link:focus {
  text-decoration: underline;
}
.issue-pdf-section--collapsed {
  display: none;
}
.issue-download-row {
  margin: 1rem 0 0;
}
.issue-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.issue-download-link:hover,
.issue-download-link:focus {
  text-decoration: underline;
}
.issue-pdf-missing {
  padding: 1rem;
  background: #fef3c7;
  border-radius: 8px;
  color: #92400e;
}
.issue-pdf-section {
  margin-top: 0.5rem;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.issue-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.issue-pdf-page {
  font-size: 0.95rem;
  min-width: 8rem;
  text-align: center;
}
.issue-pdf-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #cbd5e1);
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.issue-pdf-btn:hover,
.issue-pdf-btn:focus {
  border-color: var(--primary);
  outline: none;
}
.issue-pdf-canvas-wrap {
  overflow: auto;
  max-height: min(85vh, 1200px);
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.issue-pdf-canvas-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15);
  background: #fff;
}

/* ── Cookie-consent banner ── */
.dp-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary, #111827);
  color: var(--primary-contrast, #fff);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.dp-cookie-banner[hidden] {
  display: block !important;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.dp-cookie-banner.dp-cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.dp-cookie-banner__inner {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.dp-cookie-banner__text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.55;
}
.dp-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.dp-cookie-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.dp-cookie-btn--primary {
  background: #fff;
  color: var(--primary, #111827);
}
.dp-cookie-btn--primary:hover { opacity: 0.88; }
.dp-cookie-btn--secondary {
  background: transparent;
  color: var(--primary-contrast, #fff);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.dp-cookie-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 600px) {
  .dp-cookie-banner__inner { flex-direction: column; text-align: center; }
  .dp-cookie-banner__actions { justify-content: center; width: 100%; }
}