/*
Theme Name: AMMA - Associação dos Magistrados do Maranhão
Theme URI: https://amma.com.br
Author: AMMA
Description: Tema institucional moderno para a AMMA. Design glassmorphism, azul e branco.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: amma-theme
Tags: blog, news, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, right-sidebar
*/

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --blue:        #2B5BE8;
  --blue-dark:   #1A3FBF;
  --blue-mid:    #4A78F5;
  --blue-pale:   #EEF2FF;
  --bg:          #EEF3FB;
  --white:       #FFFFFF;
  --card:        rgba(255,255,255,0.72);
  --ink:         #0F1B3D;
  --ink2:        #2A3A5C;
  --muted:       #7B8DB0;
  --muted2:      #A8B8D8;
  --border:      rgba(43,91,232,0.1);
  --radius:      18px;
  --radius-sm:   12px;
  --logo-h:      58px; /* overridden by customizer */
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(43,91,232,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(43,91,232,0.06) 0%, transparent 55%);
}

a { text-decoration: none; color: var(--blue); transition: color .15s; }
a:hover { color: var(--blue-dark); }
img { display: block; max-width: 100%; height: auto; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; }
h1,h2,h3,h4,h5,h6 { color: var(--ink); font-weight: 700; line-height: 1.2; }

.screen-reader-text {
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; margin:-1px; overflow:hidden; padding:0;
  position:absolute; width:1px; word-wrap:normal;
}
.skip-link {
  position:absolute; top:-999px; left:1rem;
  background:var(--blue); color:#fff;
  padding:.5rem 1rem; border-radius:4px; z-index:9999;
}
.skip-link:focus { top:1rem; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.site { position: relative; z-index: 1; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(238,243,251,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(43,91,232,0.08);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(43,91,232,0.12); }

.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 70px; max-width: 1320px; margin: 0 auto; padding: 0 40px;
}

/* Branding / Logo */
.site-branding { flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; gap: 10px; }
.custom-logo-link img {
  height: var(--logo-h);
  width: auto;
  display: block;
}
.site-title { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.site-description { font-size: 11px; color: var(--muted); letter-spacing: .5px; display: block; }

/* ============================================================
   5. NAVIGATION — submenus SEMPRE para BAIXO
   ============================================================ */
.main-navigation { margin-left: auto; }
.main-navigation > ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
/* sub-menus: vertical list, never flex */
.main-navigation ul ul {
  display: block;
  list-style: none; padding: 0; margin: 0;
}
.main-navigation li { position: relative; }

/* All menu links */
.main-navigation a {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 9px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  color: var(--blue); background: rgba(43,91,232,0.08);
}

/* ---- DROPDOWN — ALL levels open DOWNWARD / below parent ---- */
.main-navigation .sub-menu {
  display: block;      /* MUST be block, not flex */
  flex-direction: column;
  position: absolute;
  top: 100%;   /* directly below the parent li */
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid rgba(43,91,232,0.12);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 12px 40px rgba(43,91,232,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 200;
  padding: 6px 0;
  list-style: none;
}

/* Show on hover */
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Sub-menu links — NOT uppercase */
.main-navigation .sub-menu a {
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink2);
  padding: 10px 18px;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}
.main-navigation .sub-menu a:hover {
  background: var(--blue-pale); color: var(--blue);
}

/* Nested submenus — still below parent li, shifted right slightly */
.main-navigation .sub-menu li { position: relative; }
.main-navigation .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: 1px solid rgba(43,91,232,0.12);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
}

/* Caret indicator */
.main-navigation li.menu-item-has-children > a::after {
  content: ' ▾'; font-size: 9px; opacity: .55;
}
.main-navigation .sub-menu li.menu-item-has-children > a::after {
  content: ' ›'; font-size: 12px;
}

/* Portal CTA */
.nav-portal-btn {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(43,91,232,0.3);
  transition: background .15s !important;
  margin-left: 10px;
}
.nav-portal-btn:hover { background: var(--blue-dark) !important; color: var(--white) !important; }

/* Mobile toggle */
.menu-toggle {
  display: none; background: none;
  border: 1px solid rgba(43,91,232,0.2);
  border-radius: 8px; padding: 8px 12px;
  cursor: pointer; color: var(--ink); font-size: 18px;
  margin-left: auto;
}

/* ============================================================
   6. HERO SLIDER
   ============================================================ */
.site-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 580px;
  max-height: 820px;
  overflow: hidden;
  z-index: 1;
  user-select: none;
  cursor: grab;
}
.site-hero:active { cursor: grabbing; }

/* Track: flex row, JS moves via translateX */
.hs-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}

/* Each slide = 100% width, full height, stacks in the flex row */
.hs-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Background image fills the slide */
.hs-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 7s ease;
  z-index: 1;
}
.hs-slide.active .hs-img { transform: scale(1); }

/* Gradient overlay — strong at bottom, transparent at top */
.hs-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to top,
    rgba(5,12,35,0.90) 0%,
    rgba(5,12,35,0.55) 40%,
    rgba(5,12,35,0.15) 70%,
    transparent 100%
  );
}

/* Text content at the bottom */
.hs-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 0 72px 64px;
}

/* Category label */
.hs-cat {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Slide title — clean white, no color bleed */
.hs-title {
  font-family: inherit;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 860px;
  margin: 0 0 12px 0;
  color: #fff;
}
.hs-title a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}
.hs-title a:hover { color: rgba(255,255,255,0.88); }

/* Date */
.hs-date {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* Arrows */
.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .22s, border-color .22s, transform .22s;
  line-height: 1; padding: 0;
}
.hs-arrow:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-50%) scale(1.05); }
.hs-arrow-prev { left: 28px; }
.hs-arrow-next { right: 28px; }

/* Dots */
.hs-dots {
  position: absolute; bottom: 24px; right: 72px; z-index: 10;
  display: flex; gap: 8px; align-items: center;
}
.hs-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.35);
  cursor: pointer; transition: all .22s; padding: 0;
}
.hs-dot.active { background: #fff; width: 22px; border-radius: 4px; }
.hs-dot:hover:not(.active) { background: rgba(255,255,255,0.65); }

/* Progress bar at bottom */
.hs-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.1); z-index: 10;
}
.hs-progress-bar { height: 100%; background: var(--blue); width: 0%; transition: width .1s linear; }

/* ============================================================
   7. QUICK ACCESS BUTTONS
   ============================================================ */
.quick-access {
  position: relative; z-index: 1;
  background: var(--bg);
  padding: 0 40px;
}
.qa-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px;
  transform: translateY(-32px);
}
.qa-btn {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 32px rgba(43,91,232,0.1);
  cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit;
}
.qa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(43,91,232,0.16);
  border-color: rgba(43,91,232,0.3);
  color: inherit;
}
.qa-btn--blue { background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 32px rgba(43,91,232,0.35); }
.qa-btn--blue:hover { background: var(--blue-dark); color: #fff; }
.qa-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.qa-label { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.qa-btn--blue .qa-label { color: #fff; }
.qa-sub { font-size: 11.5px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.qa-btn--blue .qa-sub { color: rgba(255,255,255,0.65); }
.qa-arrow { font-size: 16px; color: rgba(43,91,232,0.4); transition: all .2s; flex-shrink: 0; }
.qa-btn--blue .qa-arrow { color: rgba(255,255,255,0.5); }
.qa-btn:hover .qa-arrow { color: var(--blue); transform: translateX(4px); }
.qa-btn--blue:hover .qa-arrow { color: rgba(255,255,255,0.9); transform: translateX(4px); }

/* ============================================================
   8. TICKER
   ============================================================ */
.site-ticker { position: relative; z-index: 1; background: var(--bg); padding: 0 40px 28px; }
.ticker-wrap {
  max-width: 1320px; margin: 0 auto;
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 50px; padding: 10px 20px;
  display: flex; align-items: center;
  box-shadow: 0 4px 16px rgba(43,91,232,0.06);
  overflow: hidden; gap: 0;
}
.ticker-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-right: 16px;
  box-shadow: 0 3px 10px rgba(43,91,232,0.35);
}
.ticker-scroll {
  overflow: hidden; flex: 1;
  -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-track {
  display: flex; width: max-content;
  animation: tickroll 32s linear infinite;
}
.ticker-track span {
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  padding: 0 36px; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.ticker-track span::before { content: '·'; color: var(--blue-mid); font-size: 20px; line-height: 1; }
.ticker-track a { color: var(--muted); }
.ticker-track a:hover { color: var(--blue); }
@keyframes tickroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   9. MAIN CONTENT AREA
   ============================================================ */
.content-area {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 40px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

/* Section heading */
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.section-header::before {
  content: ''; display: block;
  width: 3px; height: 20px;
  background: var(--blue); border-radius: 2px; flex-shrink: 0;
}
.section-header h2 {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink2);
}
.section-header-line { flex: 1; height: 1px; background: rgba(43,91,232,0.1); }
.section-header-link {
  font-size: 11.5px; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 3px;
  transition: gap .15s; white-space: nowrap;
}
.section-header-link:hover { gap: 7px; }

/* Category pill */
.cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(43,91,232,0.09); color: var(--blue);
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 50px;
  margin-bottom: 10px;
}

/* Entry titles */
.entry-title { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.25; letter-spacing: -.3px; margin-bottom: 9px; }
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--blue); }
.entry-title.small { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.entry-meta { font-size: 11px; color: var(--muted2); font-weight: 500; display: block; margin-top: 6px; }
.entry-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   10. FEATURED GRID
   ============================================================ */
.featured-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.featured-main {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px rgba(43,91,232,0.07);
  transition: transform .2s, box-shadow .2s;
}
.featured-main:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(43,91,232,0.12); }
.featured-main .post-thumbnail { height: 210px; overflow: hidden; }
.featured-main .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-main:hover .post-thumbnail img { transform: scale(1.04); }
.featured-main .post-body { padding: 22px; }

.featured-side { display: flex; flex-direction: column; gap: 14px; }
.side-post {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex; gap: 14px;
  box-shadow: 0 4px 16px rgba(43,91,232,0.06);
  transition: transform .2s, border-color .2s;
  flex: 1;
  min-height: 100px;
}
.side-post:hover { transform: translateX(4px); border-color: rgba(43,91,232,0.2); }

/* THUMBNAIL: fills the full height of its container */
.side-post .post-thumbnail {
  width: 90px;
  flex-shrink: 0;
  align-self: stretch;   /* fill card height */
  border-radius: 10px;
  overflow: hidden;
}
.side-post .post-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ============================================================
   11. POSTS LIST (thumbnail fills card height)
   ============================================================ */
.posts-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
  background: var(--card); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex; gap: 18px;
  align-items: stretch;      /* key: children stretch to full height */
  margin-bottom: 10px;
  box-shadow: 0 3px 14px rgba(43,91,232,0.05);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  min-height: 110px;
}
.post-list-item:hover { transform: translateX(4px); border-color: rgba(43,91,232,0.2); box-shadow: 0 6px 22px rgba(43,91,232,0.1); }

/* Thumbnail: full height of the card */
.post-list-item .post-thumbnail {
  width: 130px;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 10px;
  overflow: hidden;
}
.post-list-item .post-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.post-list-item .post-thumbnail a {
  display: block; width: 100%; height: 100%;
}
.post-list-item .post-thumbnail a img {
  width: 100%; height: 100%; object-fit: cover;
}

.post-list-item .post-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ============================================================
   12. JURIDICAL NEWS
   ============================================================ */
.juridical-section { margin-top: 36px; }
.juridical-item {
  background: var(--card); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start;
  margin-bottom: 8px;
  box-shadow: 0 3px 12px rgba(43,91,232,0.04);
  transition: transform .18s, border-color .18s;
}
.juridical-item:hover { transform: translateX(4px); border-color: rgba(43,91,232,0.2); }
.juridical-num { font-size: 22px; font-weight: 900; color: rgba(43,91,232,0.18); line-height: 1.1; text-align: right; }
.juridical-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.juridical-title a { color: inherit; }
.juridical-title a:hover { color: var(--blue); }
.juridical-meta { font-size: 10.5px; color: var(--muted2); margin-top: 4px; font-weight: 500; }
.badge-stj {
  display: inline-block; font-size: 8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  background: rgba(43,91,232,0.1); color: var(--blue); padding: 2px 7px; border-radius: 50px; margin-left: 7px;
}

/* ============================================================
   13. ARTICLES SECTION
   ============================================================ */
.articles-section { position: relative; z-index: 1; background: var(--bg); padding: 0 40px 60px; }
.articles-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.article-card {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(43,91,232,0.07);
  transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(43,91,232,0.13); }
.article-accent { height: 4px; }
.article-body { padding: 22px; }
.article-author { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.article-card .entry-title { font-size: 17px; font-weight: 800; }
.article-footer { padding: 14px 22px; border-top: 1px solid rgba(43,91,232,0.07); display: flex; justify-content: space-between; align-items: center; }
.article-date { font-size: 11px; color: var(--muted2); font-weight: 500; }
.article-link { font-size: 12px; font-weight: 800; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; transition: gap .15s; }
.article-link:hover { gap: 7px; }

/* ============================================================
   14. TV SECTION
   ============================================================ */
.tv-section { position: relative; z-index: 1; background: var(--ink); padding: 60px 0; }
.tv-wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.tv-section .section-header h2 { color: #fff; }
.tv-section .section-header { border-bottom-color: rgba(255,255,255,0.08); }
.tv-section .section-header-link { color: rgba(255,255,255,0.4); }
.tv-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 14px; }
.tv-card { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.07); transition: transform .2s, box-shadow .2s; }
.tv-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(43,91,232,0.2); }
.tv-thumb {
  height: 180px; background: linear-gradient(135deg,#0a1628,#1B3FD8);
  display: flex; align-items: center; justify-content: center;
}
.tv-card.big .tv-thumb { height: 230px; }
.tv-play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; transition: all .2s;
}
.tv-card:hover .tv-play { background: var(--blue); border-color: var(--blue); transform: scale(1.1); }
.tv-info { padding: 16px 18px; background: rgba(255,255,255,0.04); }
.tv-info h4 { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.8); line-height: 1.4; }
.tv-info span { font-size: 10.5px; color: rgba(255,255,255,0.3); margin-top: 5px; display: block; font-weight: 500; }

/* ============================================================
   15. SIDEBAR
   ============================================================ */
.primary-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Banner widget area */
.widget-area-banner { margin-bottom: 0; }
.widget-area-banner img { width: 100%; border-radius: var(--radius); display: block; }

/* Portal */
.widget-portal {
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius); padding: 28px 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(43,91,232,0.35);
}
.widget-portal::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 60% at 90% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.widget-portal .widget-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 7px; position: relative; z-index: 1; }
.widget-portal p { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 20px; position: relative; z-index: 1; }
.widget-portal .portal-btn {
  display: block; text-align: center;
  background: #fff; color: var(--blue);
  font-size: 13px; font-weight: 800;
  padding: 13px; border-radius: 50px;
  transition: all .15s; position: relative; z-index: 1;
  margin-bottom: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.widget-portal .portal-btn:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); color: var(--blue-dark); }

/* Generic widget */
.widget {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(43,91,232,0.06);
}
.widget .widget-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink2);
  padding: 14px 20px; border-bottom: 1px solid rgba(43,91,232,0.07);
  display: flex; align-items: center; gap: 9px; margin-bottom: 0;
}
.widget .widget-title::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.widget-content { padding: 16px 20px; }

/* Events */
.widget-events-list { list-style: none; padding: 0; }
.widget-event { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(43,91,232,0.07); }
.widget-event:last-child { border-bottom: none; }
.event-cal { flex-shrink: 0; width: 48px; background: rgba(43,91,232,0.08); border-radius: 12px; text-align: center; padding: 8px 4px; }
.event-cal .event-month { font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); display: block; }
.event-cal .event-day { font-size: 24px; font-weight: 900; color: var(--ink); display: block; line-height: 1.1; }
.event-info h5 { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.event-info p { font-size: 11px; color: var(--muted); margin-top: 2px; margin-bottom: 0; }

/* Nav menu widget */
.widget_nav_menu ul, .widget-quick-links ul { list-style: none; padding: 0; }
.widget_nav_menu li, .widget-quick-links li { border-bottom: 1px solid rgba(43,91,232,0.07); }
.widget_nav_menu li:last-child, .widget-quick-links li:last-child { border-bottom: none; }
.widget_nav_menu a, .widget-quick-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; font-size: 13px; font-weight: 500; color: var(--ink2); transition: all .12s;
}
.widget_nav_menu a::after, .widget-quick-links a::after { content: '›'; font-size: 16px; color: var(--muted2); transition: all .15s; }
.widget_nav_menu a:hover, .widget-quick-links a:hover { color: var(--blue); padding-left: 4px; }
.widget_nav_menu a:hover::after, .widget-quick-links a:hover::after { color: var(--blue); transform: translateX(3px); }

/* Recent posts */
.widget_recent_entries ul { list-style: none; padding: 0; }
.widget_recent_entries li { padding: 10px 0; border-bottom: 1px solid rgba(43,91,232,0.07); }
.widget_recent_entries li:last-child { border-bottom: none; }
.widget_recent_entries a { font-size: 13px; font-weight: 600; color: var(--ink2); line-height: 1.35; }
.widget_recent_entries a:hover { color: var(--blue); }
.widget_recent_entries .post-date { font-size: 11px; color: var(--muted2); display: block; margin-top: 3px; }

/* Search */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; border: 1px solid rgba(43,91,232,0.15); border-radius: 50px; padding: 10px 16px; font-size: 13px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s; }
.search-field:focus { border-color: var(--blue); }
.search-submit { background: var(--blue); color: #fff; border: none; border-radius: 50px; padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.search-submit:hover { background: var(--blue-dark); }

/* ============================================================
   16. SINGLE POST
   ============================================================ */
.single-post-header { margin-bottom: 32px; }
.single-post-thumbnail { width: 100%; height: 420px; overflow: hidden; border-radius: var(--radius); margin-bottom: 28px; }
.single-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.single-post-header .entry-title { font-size: clamp(24px,3vw,40px); letter-spacing: -1px; margin-bottom: 16px; }
.post-meta-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted2); margin-bottom: 8px; }
.post-meta-bar .cat-pill { margin-bottom: 0; }

.entry-content {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius); padding: 40px;
  box-shadow: 0 4px 24px rgba(43,91,232,0.07);
}
.entry-content h2 { font-size: 22px; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 18px; margin: 1.5rem 0 .75rem; }
.entry-content p { font-size: 16px; line-height: 1.8; color: var(--ink2); margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: .5rem; font-size: 16px; color: var(--ink2); }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content blockquote { border-left: 4px solid var(--blue); padding: 16px 24px; margin: 2rem 0; background: var(--blue-pale); border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink2); }
.entry-content img { border-radius: 10px; margin: 1.5rem 0; }

/* Share */
.post-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(43,91,232,0.1); }
.share-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.share-link { font-size: 12.5px; font-weight: 700; color: var(--blue); padding: 6px 14px; border-radius: 50px; background: var(--blue-pale); transition: all .15s; }
.share-link:hover { background: var(--blue); color: #fff; }

/* Post navigation */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.post-nav-link {
  background: var(--card); border: 1px solid rgba(255,255,255,0.85); border-radius: var(--radius-sm);
  padding: 18px 20px; display: flex; align-items: center; gap: 10px;
  transition: border-color .2s, transform .2s; color: var(--ink2);
}
.post-nav-link:hover { border-color: rgba(43,91,232,0.25); transform: translateY(-2px); color: var(--ink2); }
.post-nav-link--prev { justify-content: flex-start; }
.post-nav-link--next { justify-content: flex-end; text-align: right; }
.nav-arrow { font-size: 22px; color: var(--blue); flex-shrink: 0; }
.post-nav-link .nav-title { font-size: 13.5px; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Comments */
.comments-area { margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid rgba(43,91,232,0.07); }
.comment-author img { width: 40px; height: 40px; border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-size: 14px; }
.comment-metadata { font-size: 11px; color: var(--muted2); }
.reply a { font-size: 12px; font-weight: 700; color: var(--blue); }
.comment-form label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink2); margin-bottom: 6px; }
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form textarea {
  width: 100%; border: 1px solid rgba(43,91,232,0.15); border-radius: 10px; padding: 12px 16px;
  font-size: 14px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s; margin-bottom: 16px;
}
.comment-form input:focus,.comment-form textarea:focus { border-color: var(--blue); }
.comment-form .submit { background: var(--blue); color: #fff; border: none; border-radius: 50px; padding: 12px 28px; font-size: 14px; font-weight: 700; cursor: pointer; }
.comment-form .submit:hover { background: var(--blue-dark); }

/* ============================================================
   17. PAGE TEMPLATES
   ============================================================ */
.page-content, .entry-content { /* merged above */ }
.page-header { margin-bottom: 32px; }
.page-title { font-size: clamp(24px,3vw,36px); letter-spacing: -.5px; margin-bottom: 8px; }

.archive-header {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85); border-radius: var(--radius);
  padding: 32px 36px; margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(43,91,232,0.07);
}
.archive-title { font-size: 28px; letter-spacing: -.5px; }
.archive-description { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* 404 */
.error-404 .page-content { text-align: center; padding: 80px 40px; }
.error-code { font-size: 120px; font-weight: 900; color: var(--blue); opacity: .15; line-height: 1; display: block; }

/* ============================================================
   18. PAGINATION
   ============================================================ */
/* Posts nav (prev/next) */
.nav-links { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 20px 0; }
.nav-links .nav-previous a,
.nav-links .nav-next a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 10px rgba(43,91,232,0.06);
  font-size: 0; color: transparent; transition: background .15s;
}
.nav-links .nav-previous a::before { content: '←'; font-size: 18px; color: var(--blue); }
.nav-links .nav-next a::after     { content: '→'; font-size: 18px; color: var(--blue); }
.nav-links .nav-previous a:hover, .nav-links .nav-next a:hover { background: var(--blue); }
.nav-links .nav-previous a:hover::before, .nav-links .nav-next a:hover::after { color: #fff; }

/* Numbered pagination */
.navigation.pagination .nav-links { display: flex; gap: 6px; justify-content: center; padding: 20px 0; }
.navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid rgba(255,255,255,0.85);
  color: var(--ink2); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .15s;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next { font-size: 20px; }

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer { background: #060E1C; position: relative; z-index: 1; }

.footer-wrap {
  max-width: 1320px; margin: 0 auto;
  padding: 60px 48px 40px;
  display: grid; grid-template-columns: 2.2fr 1.2fr;
  gap: 64px; align-items: start;
}
.ft-logo-text { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: 2px; display: block; margin-bottom: 16px; }
.ft-desc { font-size: 13.5px; color: rgba(255,255,255,0.38); line-height: 1.75; margin-bottom: 0; max-width: 520px; }
.ft-social { display: flex; gap: 10px; margin-top: 24px; }
.ft-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5); transition: all .2s;
}
.ft-social-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.ft-col-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ft-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ft-contact-item { display: flex; flex-direction: column; gap: 3px; }
.ft-contact-label { font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #4A78F5; display: block; }
.ft-contact-value { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.5; }
.ft-col-widget .widget-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,0.07); background: none; }
.ft-col-widget .widget-title::before { display: none; }
.ft-col-widget ul { list-style: none; padding: 0; }
.ft-col-widget ul li { margin-bottom: 10px; }
.ft-col-widget ul a { font-size: 13px; color: rgba(255,255,255,0.35); }
.ft-col-widget ul a:hover { color: rgba(255,255,255,0.75); }
.ft-bottom { border-top: 1px solid rgba(255,255,255,0.06); }
.ft-bottom-inner { max-width: 1320px; margin: 0 auto; padding: 18px 48px; display: flex; justify-content: space-between; align-items: center; }
.ft-bottom-inner p { font-size: 12px; color: rgba(255,255,255,0.55); margin: 0; }
.ft-bottom-inner a { font-size: 12px; color: rgba(255,255,255,0.45); margin-left: 20px; }
.ft-bottom-inner a:hover { color: rgba(255,255,255,0.5); }

/* ============================================================
   20. SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   21. WP ADMIN BAR
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ============================================================
   22. GUTENBERG
   ============================================================ */
.wp-block-image img { border-radius: 10px; }
.wp-block-quote { border-left: 4px solid var(--blue); padding: 16px 24px; background: var(--blue-pale); border-radius: 0 8px 8px 0; font-style: italic; }
.wp-block-button__link { background: var(--blue); color: #fff; border-radius: 50px; padding: 12px 24px; font-weight: 700; }
.wp-block-button__link:hover { background: var(--blue-dark); }

/* ============================================================
   23. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .content-area { grid-template-columns: 1fr; }
  .primary-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .tv-grid { grid-template-columns: 1fr 1fr; }
  .footer-wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
  .qa-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container, .header-inner { padding-left: 20px; padding-right: 20px; }

  /* Mobile nav */
  .main-navigation { display: none; }
  .main-navigation.toggled {
    display: block; position: fixed; inset: 70px 0 0 0;
    background: rgba(238,243,251,0.97); backdrop-filter: blur(20px);
    padding: 20px; overflow-y: auto; z-index: 499;
  }
  .main-navigation.toggled > ul { flex-direction: column; gap: 4px; }
  .main-navigation.toggled li { width: 100%; }
  .main-navigation.toggled a { border-radius: var(--radius-sm); }
  /* Mobile: submenus open below (static) */
  .main-navigation.toggled .sub-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    padding-left: 16px; background: rgba(43,91,232,0.04);
    border-radius: var(--radius-sm); display: none;
  }
  .main-navigation.toggled .submenu-open > .sub-menu { display: block; }
  .menu-toggle { display: block; }

  /* Hero */
  .hs-body { padding: 0 24px 56px; }
  .hs-title { font-size: clamp(18px, 5.5vw, 28px); }
  .hs-arrow { display: none; }
  .hs-dots { right: 24px; }

  /* Quick access */
  .quick-access { padding: 0 20px; }
  .qa-inner { grid-template-columns: 1fr; transform: translateY(-16px); }

  /* Ticker */
  .site-ticker { padding: 0 20px 20px; }

  /* Content */
  .content-area { padding: 20px 20px 40px; }
  .featured-grid { grid-template-columns: 1fr; }
  .articles-section { padding: 0 20px 40px; }
  .articles-grid { grid-template-columns: 1fr; }
  .tv-grid { grid-template-columns: 1fr; }
  .tv-wrap { padding: 0 20px; }
  .primary-sidebar { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .entry-content, .page-content { padding: 24px; }

  /* Footer */
  .footer-wrap { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 28px; }
  .ft-bottom-inner { flex-direction: column; gap: 8px; padding: 16px 24px; text-align: center; }

  /* Thumbnails mobile */
  .post-list-item .post-thumbnail { width: 88px; }
  .side-post .post-thumbnail { width: 72px; }
}

@media (max-width: 480px) {
  .hs-title { font-size: 18px; }
  .qa-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PATCH v1.4 — Menu, Mobile, Cards, Footer
   ============================================================ */

/* ── POST LIST CARD — square thumb + title beside + text below ── */
.post-list-item--card {
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.plc-top {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.plc-thumb {
  width: 110px;
  min-width: 110px;
  flex-shrink: 0;
}
.plc-thumb a { display: block; width: 100%; height: 100%; }
.plc-thumb img {
  width: 110px !important;
  height: 110px !important;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.plc-header {
  flex: 1;
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plc-header .cat-pill { margin-bottom: 6px; }
.plc-header .entry-title.small { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.plc-header .entry-meta { font-size: 11px; color: var(--muted2); }

.plc-excerpt {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(43,91,232,0.06);
  padding-top: 10px;
}
.plc-excerpt .entry-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0;
}

/* ── TICKER ICON — Raio / Lightning ── */
.ticker-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-right: 16px;
  box-shadow: 0 3px 10px rgba(43,91,232,0.35);
}
.ticker-icon svg path { fill: white; }

/* ── FOOTER COPYRIGHT — readable ── */
.ft-bottom-inner p { color: rgba(255,255,255,0.60) !important; }
.ft-bottom-inner a { color: rgba(255,255,255,0.50) !important; }
.ft-bottom-inner a:hover { color: rgba(255,255,255,0.85) !important; }

/* ============================================================
   MOBILE DRAWER MENU
   ============================================================ */
/* Hide mobile toggle on desktop */
.menu-toggle { display: none; }

/* Hamburger lines */
.hamburger-line {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Full-screen overlay */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 700;
  background: rgba(5,12,35,0.55);
  backdrop-filter: blur(2px);
}
.mobile-overlay.visible { display: block; }

/* Side drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: -340px;
  width: 320px; max-width: 88vw;
  height: 100%;
  background: var(--white);
  z-index: 800;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 40px rgba(5,12,35,0.18);
  transition: right .32s cubic-bezier(0.77,0,0.175,1);
  overflow: hidden;
}
.mobile-drawer.open { right: 0; }

/* Drawer header */
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(43,91,232,0.08);
  flex-shrink: 0;
  background: var(--bg);
}
.mobile-drawer-header .custom-logo-link img {
  height: 38px !important; width: auto !important;
}
.mobile-close {
  background: rgba(43,91,232,0.08);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 16px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.mobile-close:hover { background: rgba(43,91,232,0.16); }

/* Drawer body — scrollable */
.mobile-drawer-body { flex: 1; overflow-y: auto; padding: 8px 0 32px; }

/* Mobile menu list */
.mobile-drawer-body ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer-body .mob-item { border-bottom: 1px solid rgba(43,91,232,0.07); }

/* Each row: link + toggle button */
.mob-item-row {
  display: flex; align-items: stretch;
}

.mob-link {
  display: flex; align-items: center;
  flex: 1;
  padding: 15px 20px;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ink2);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.mob-link:hover { color: var(--blue); background: var(--blue-pale); }

/* Toggle arrow button */
.mob-toggle {
  background: none; border: none;
  border-left: 1px solid rgba(43,91,232,0.08);
  padding: 0 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .15s, background .15s;
  flex-shrink: 0;
}
.mob-toggle:hover { color: var(--blue); background: var(--blue-pale); }
.mob-toggle svg { transition: transform .25s; }
.mob-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mob-toggle[aria-expanded="true"] { color: var(--blue); }

/* Submenu — hidden by default, accordion */
.mob-sub {
  display: none;
  background: rgba(43,91,232,0.03);
  border-top: 1px solid rgba(43,91,232,0.06);
}
.mob-sub.open { display: block; }

.mob-sub .mob-item { border-bottom: 1px solid rgba(43,91,232,0.05); }
.mob-sub .mob-item:last-child { border-bottom: none; }

.mob-sub .mob-link {
  padding-left: 36px;
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Nested sub-sub */
.mob-sub .mob-sub .mob-link { padding-left: 52px; font-size: 13px; }

/* Current item */
.mob-item.current-menu-item > .mob-item-row .mob-link,
.mob-item.current-menu-ancestor > .mob-item-row .mob-link {
  color: var(--blue);
}

/* ============================================================
   RESPONSIVE MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {

  /* Show hamburger */
  .menu-toggle {
    display: flex; flex-direction: column;
    gap: 5px; align-items: center; justify-content: center;
    background: none; border: 1px solid rgba(43,91,232,0.18);
    border-radius: 9px; padding: 9px 10px;
    cursor: pointer; margin-left: auto;
  }

  /* Hide desktop nav on mobile */
  .main-navigation { display: none !important; }

  /* ── HERO: half height on mobile ── */
  .site-hero {
    height: 45vh !important;
    min-height: 280px !important;
    max-height: 380px !important;
  }
  .hs-body { padding: 0 20px 32px !important; }
  .hs-cat { font-size: 8.5px; padding: 4px 10px; margin-bottom: 10px; }
  .hs-title { font-size: clamp(15px, 5vw, 22px) !important; letter-spacing: 0; }
  .hs-date { font-size: 11px; }
  .hs-arrow { display: none !important; }
  .hs-dots { bottom: 10px; right: 16px; gap: 6px; }
  .hs-dot { width: 6px; height: 6px; }
  .hs-dot.active { width: 16px; }

  /* ── QUICK ACCESS: 2x2 on mobile ── */
  .quick-access { padding: 0 16px; }
  .qa-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    transform: translateY(-14px);
  }
  .qa-btn { padding: 16px 14px; gap: 8px; }
  .qa-label { font-size: 12.5px; }
  .qa-sub { font-size: 10px; }
  .qa-arrow { display: none; }

  /* ── POST LIST CARD — mobile ── */
  .plc-thumb { width: 90px; min-width: 90px; }
  .plc-thumb img { width: 90px !important; height: 90px !important; }
  .plc-header { padding: 12px 14px 10px; }
  .plc-excerpt { padding: 0 14px 14px; padding-top: 8px; }

  /* ── FEATURED GRID: stack on mobile ── */
  .featured-grid { grid-template-columns: 1fr !important; }
  .featured-main .post-thumbnail { height: 200px; }

  /* ── CONTENT AREA ── */
  .content-area { padding: 16px 16px 40px !important; gap: 24px !important; }

  /* ── SECTIONS ── */
  .articles-section { padding: 0 16px 40px !important; }
  .articles-grid { grid-template-columns: 1fr !important; }
  .tv-wrap { padding: 0 16px !important; }
  .tv-grid { grid-template-columns: 1fr !important; }

  /* ── TICKER ── */
  .site-ticker { padding: 0 16px 16px !important; }

  /* ── SIDEBAR: single column ── */
  .primary-sidebar { grid-template-columns: 1fr !important; }

  /* ── FOOTER ── */
  .footer-wrap { grid-template-columns: 1fr !important; gap: 28px !important; padding: 36px 20px 24px !important; }
  .ft-bottom-inner { flex-direction: column; gap: 6px; padding: 14px 20px; text-align: center; }
  .ft-social { gap: 8px; }
  .ft-social-btn { width: 40px; height: 40px; }

  /* ── SINGLE POST ── */
  .single-post-thumbnail { height: 220px !important; }
  .entry-content { padding: 20px !important; }
  .post-navigation { grid-template-columns: 1fr !important; }

  /* ── HEADER ── */
  .header-inner { padding: 0 16px !important; height: 62px !important; }
  .custom-logo-link img { height: 42px !important; }

}

@media (max-width: 480px) {
  .qa-inner { grid-template-columns: 1fr 1fr !important; }
  .hs-title { font-size: 15px !important; }
  .site-hero { height: 42vh !important; min-height: 260px !important; }
}

/* ============================================================
   AJUSTES AMMA — fora do tema original
   Fica no fim do arquivo de propósito: tudo acima é o amma-theme
   como veio, e este bloco pode ser removido inteiro sem sobra.
   ------------------------------------------------------------
   25/08/2026 — placa azul do logo.
   A barra do menu continua clara, como no tema. Só o logo passa a
   morar numa placa azul presa no alto do cabeçalho: os cantos de
   CIMA são retos (encostam na borda da página) e só os de BAIXO
   são arredondados, então a placa fica pendurada na barra.
   ============================================================ */
:root {
  --placa-fundo:  linear-gradient(180deg, #14295E 0%, #0C1B3F 100%);
  --placa-raio:   20px;   /* só na base */
  /* Quanto a placa desce abaixo da barra. O cabeçalho é fixo, então tudo que
     avança aqui passa por cima do conteúdo que rola por baixo. 10px já basta
     para a base arredondada se ler como placa pendurada, sem comer texto. */
  --placa-avanco: 12px;
  --logo-h:       64px;   /* era 58px — o fundo escuro deixa o logo respirar */

  /* Folga entre a última linha do logo e a base arredondada da placa.
     Entra como padding-bottom, não como altura extra: assim o respiro
     cresce SÓ embaixo, sem a placa avançar mais por cima do conteúdo. */
  --placa-folga-base: 18px;
}

/* A barra cresce um pouco para caber a folga sem espremer o topo do logo. */
.header-inner { height: 84px; }

.site-branding {
  align-self: stretch;                                  /* toma a altura toda da barra */
  margin-bottom: calc(var(--placa-avanco) * -1);        /* ...e avança para baixo dela */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px var(--placa-folga-base);
  background: var(--placa-fundo);
  border-radius: 0 0 var(--placa-raio) var(--placa-raio);
  box-shadow: 0 10px 24px rgba(9, 20, 48, 0.22);
}

/* O logo é dourado: no fundo escuro ele aparece sem precisar de filtro. */
.site-branding .custom-logo-link img { height: var(--logo-h); width: auto; display: block; }

/* A placa passa por cima do hero, então precisa ficar na frente. */
.site-header { z-index: 600; }

/* ---- Celular: placa menor, para não comer a barra de 62px ---- */
@media (max-width: 768px) {
  :root { --placa-raio: 14px; --placa-avanco: 8px; --placa-folga-base: 12px; }
  .header-inner { height: 74px !important; }
  .site-branding { padding: 0 16px var(--placa-folga-base); }
  .site-branding .custom-logo-link img { height: 46px !important; }
}

/* ---- Ícones de compartilhar (no lugar dos nomes escritos) ---- */
.post-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-share .share-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.share-icone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--ink2); background: var(--white);
  border: 1px solid var(--border);
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.share-icone svg { width: 17px; height: 17px; display: block; }
.share-icone:hover { transform: translateY(-2px); color: #fff; }
.share-icone--whatsapp:hover { background: #25D366; border-color: #25D366; }
.share-icone--facebook:hover { background: #1877F2; border-color: #1877F2; }
.share-icone--x:hover        { background: #000000; border-color: #000000; }
.share-icone--linkedin:hover { background: #0A66C2; border-color: #0A66C2; }

/* ============================================================
   ÁREA RESTRITA
   ============================================================ */

/* ---- Telas de entrada (CPF, senha, primeiro acesso) ---- */
.rs-entrada {
  min-height: calc(100vh - 260px);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 20px 72px;
}
.rs-cartao {
  width: 100%; max-width: 430px;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(15, 27, 61, .10);
  padding: 40px 36px 32px; text-align: center;
}
.rs-marca { height: 58px; width: auto; display: block; margin: 0 auto 26px; }
.rs-titulo { font-size: 25px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.rs-sub { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 24px; }
.rs-cpf { font-variant-numeric: tabular-nums; }
.rs-troca { color: var(--blue); font-weight: 600; }
.rs-form { text-align: left; }
.rs-campo { display: block; margin-bottom: 16px; }
.rs-campo > span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink2); margin-bottom: 7px;
}
.rs-campo input {
  width: 100%; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--blue-pale);
  border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px;
  transition: border-color .15s, background .15s;
}
.rs-campo input:focus {
  outline: none; background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 91, 232, .14);
}
.rs-botao {
  width: 100%; margin-top: 8px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--blue); border: 0; border-radius: 10px; padding: 14px 20px;
  transition: background .15s;
}
.rs-botao:hover { background: var(--blue-dark); }
.rs-aviso { font-size: 13.5px; line-height: 1.5; text-align: left; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.rs-aviso--erro    { background: #FDECEC; color: #8E1C1C; border: 1px solid #F5C6C6; }
.rs-aviso--atencao { background: #FFF6E5; color: #7A5200; border: 1px solid #F3DFB0; }
.rs-rodape {
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}
.rs-rodape a { color: var(--blue); font-weight: 600; }
.rs-rodape--nota { text-align: left; }

/* ---- Barra do associado logado ---- */
.rs-barra { background: #0C1B3F; color: rgba(255, 255, 255, .82); }
.rs-barra-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  height: 46px; display: flex; align-items: center; gap: 18px; font-size: 12.5px;
}
.rs-barra-marca { color: #E4C87A; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.rs-barra-nome { margin-left: auto; color: rgba(255, 255, 255, .72); }
.rs-barra-sair button {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .12);
  border: 0; border-radius: 7px; padding: 6px 14px;
}
.rs-barra-sair button:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---- Faixa de cabeçalho da seção ---- */
.rs-capa {
  background-color: #0C1B3F; background-repeat: no-repeat;
  background-position: right center; background-size: cover;
}
.rs-capa-inner { max-width: 1180px; margin: 0 auto; padding: 40px 32px 44px; color: #fff; }
/* O tema define cor para h1; sem repetir aqui, o titulo sai escuro sobre a faixa escura. */
.rs-capa h1, .rs-capa .rs-capa-inner h1 { color: #fff; }
.rs-capa h1 {
  font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.025em;
  max-width: 22ch; text-wrap: balance;
}
.rs-capa p { margin-top: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .74); max-width: 52ch; }
.rs-migalhas {
  font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); margin-bottom: 14px;
}
.rs-migalhas a { color: #E4C87A; }
.rs-migalhas i { font-style: normal; margin: 0 7px; opacity: .5; }

.rs-largura { max-width: 1180px; margin: 0 auto; padding: 34px 32px 80px; }
.rs-secao {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 38px 0 14px;
  padding-bottom: 9px; border-bottom: 1px solid var(--border);
}
.rs-conta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.rs-nota { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.rs-nada { font-size: 14px; color: var(--muted); padding: 26px 0; }

/* ---- Pastas do portal ---- */
.rs-pastas { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.rs-pasta {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.rs-pasta:hover {
  transform: translateY(-3px); border-color: rgba(43, 91, 232, .3);
  box-shadow: 0 14px 32px rgba(15, 27, 61, .13);
}
.rs-pasta-capa {
  display: block; height: 92px;
  background-color: #0C1B3F; background-position: right center; background-size: cover;
}
.rs-pasta-corpo { display: block; padding: 16px 18px 18px; }
.rs-pasta-nome { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.rs-pasta-resumo { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.rs-pasta-conta {
  display: inline-block; margin-top: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue); background: var(--blue-pale); border-radius: 20px; padding: 4px 11px;
}

/* ---- Filtro de ano ---- */
.rs-anos { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.rs-ano {
  font-size: 13px; font-weight: 700; color: var(--ink2);
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px;
  font-variant-numeric: tabular-nums;
}
.rs-ano span { color: var(--muted); font-weight: 500; margin-left: 3px; }
.rs-ano:hover { border-color: var(--blue); color: var(--blue); }
.rs-ano.ativo { background: #0C1B3F; border-color: #0C1B3F; color: #fff; }
.rs-ano.ativo span { color: rgba(255, 255, 255, .6); }

/* ---- Lista de documentos ---- */
.rs-lista { display: flex; flex-direction: column; gap: 8px; }
.rs-item {
  display: flex; align-items: baseline; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 15px 18px;
  transition: border-color .15s, background .15s;
}
.rs-item:hover { border-color: rgba(43, 91, 232, .32); background: #FCFDFF; }
.rs-item-tipo {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); flex-shrink: 0; min-width: 158px;
}
.rs-item-titulo { flex: 1; font-size: 15px; font-weight: 600; color: var(--ink); }
.rs-item-anexo {
  font-size: 11.5px; font-weight: 600; color: var(--blue);
  background: var(--blue-pale); border-radius: 20px; padding: 3px 10px; flex-shrink: 0;
}
.rs-item-anexo--texto { color: var(--muted); background: var(--bg); font-weight: 500; }
.rs-item-data { font-size: 12.5px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---- Visor de PDF: o documento abre aqui dentro ---- */
.rs-visor {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: 0 12px 30px rgba(15, 27, 61, .09);
}
.rs-visor-abas {
  display: flex; gap: 2px; overflow-x: auto;
  background: #F5F8FE; border-bottom: 1px solid var(--border); padding: 8px 10px 0;
}
.rs-aba {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  color: var(--ink2); background: transparent; border: 1px solid transparent;
  border-bottom: 0; border-radius: 9px 9px 0 0; padding: 9px 15px;
  max-width: 230px; overflow: hidden; text-overflow: ellipsis;
}
.rs-aba:hover { color: var(--blue); }
.rs-aba.ativa {
  color: var(--ink); background: #fff;
  border-color: var(--border); box-shadow: 0 -1px 0 #fff inset;
}
.rs-visor-topo {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.rs-visor-nome { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.rs-visor-peso { font-size: 12.5px; color: var(--muted); }
.rs-botao-linha {
  margin-left: auto; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: var(--ink2); background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 15px;
}
.rs-botao-linha + .rs-botao-linha { margin-left: 0; }
.rs-botao-linha:hover { border-color: var(--blue); color: var(--blue); }
.rs-botao-linha--forte { color: #fff; background: var(--blue); border-color: var(--blue); }
.rs-botao-linha--forte:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.rs-visor-quadro {
  display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #EDF1F8;
}
.rs-visor-alternativa { padding: 44px 24px; text-align: center; }
.rs-visor-alternativa p { font-size: 14px; color: var(--ink2); margin-bottom: 16px; }

/* ---- Arquivos que o navegador não exibe: só download ---- */
.rs-arquivos { display: flex; flex-direction: column; gap: 8px; }
.rs-arquivo {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px;
  transition: border-color .15s, background .15s;
}
.rs-arquivo:hover { border-color: var(--blue); background: #FCFDFF; }
.rs-arquivo-tipo {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: #fff;
  background: var(--muted); border-radius: 5px; padding: 5px 8px; flex-shrink: 0;
}
.rs-arquivo-tipo--pdf { background: #B02A2A; }
.rs-arquivo-tipo--doc { background: #1E5AA8; }
.rs-arquivo-tipo--xls { background: #146B4A; }
.rs-arquivo-tipo--img { background: #7A5AB0; }
.rs-arquivo-nome { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.rs-arquivo-peso { font-size: 12.5px; color: var(--muted); flex-shrink: 0; }
.rs-arquivo-baixar {
  font-size: 12.5px; font-weight: 700; color: var(--blue); flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px;
}
.rs-arquivo:hover .rs-arquivo-baixar { background: var(--blue); border-color: var(--blue); color: #fff; }

.rs-texto .entry-content {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 28px 32px; overflow-x: auto;
}
.rs-texto .entry-content table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.rs-texto .entry-content td, .rs-texto .entry-content th {
  border: 1px solid var(--border); padding: 7px 10px;
}

@media (max-width: 768px) {
  .rs-cartao { padding: 32px 22px 26px; }
  .rs-barra-inner, .rs-capa-inner, .rs-largura { padding-left: 16px; padding-right: 16px; }
  .rs-barra-nome { display: none; }
  .rs-capa-inner { padding-top: 26px; padding-bottom: 30px; }
  .rs-capa { background-size: 190% auto; background-position: right top; }
  .rs-item { flex-wrap: wrap; gap: 6px 12px; }
  .rs-item-tipo { min-width: 0; }
  .rs-item-titulo { flex-basis: 100%; order: 2; }
  .rs-item-data { order: 3; }
  .rs-visor-quadro { height: 62vh; }
  .rs-visor-topo { gap: 8px; }
  .rs-botao-linha { margin-left: 0; flex: 1; text-align: center; }
  .rs-arquivo { flex-wrap: wrap; }
  .rs-arquivo-nome { flex-basis: 100%; order: 2; }
}

/* ---- Seletor de arquivo, quando o documento tem mais de 4 PDFs ---- */
.rs-seletor { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.rs-seletor select {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 12px; max-width: 340px; min-width: 0; flex: 1; cursor: pointer;
}
.rs-seletor select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 91, 232, .14);
}
.rs-passo {
  font: inherit; font-size: 17px; line-height: 1; cursor: pointer; flex-shrink: 0;
  color: var(--ink2); background: #fff; border: 1px solid var(--border);
  border-radius: 8px; width: 34px; height: 34px;
}
.rs-passo:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.rs-passo:disabled { opacity: .35; cursor: default; }
.rs-contador {
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}

@media (max-width: 768px) {
  .rs-seletor { flex-basis: 100%; }
  .rs-contador { display: none; }
}

/* ============================================================
   BARRA DA EQUIPE — só aparece para quem está logado no painel.
   Vale no site público e na área restrita. O visitante comum
   e o associado nunca veem nada disto.
   ============================================================ */
.barra-equipe {
  position: sticky; top: 0; z-index: 900;
  background: #0A1734; color: rgba(255, 255, 255, .8);
  border-bottom: 1px solid rgba(201, 168, 76, .35);
}
.barra-equipe-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  height: 40px; display: flex; align-items: center; gap: 16px;
  font-size: 12.5px;
}
.be-marca {
  color: #E4C87A; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  font-size: 11px; white-space: nowrap;
}
.be-marca:hover { color: #fff; text-decoration: none; }
.be-editar {
  font-weight: 700; color: #0A1734; background: #E4C87A;
  border-radius: 7px; padding: 5px 13px; white-space: nowrap;
}
.be-editar:hover { background: #fff; text-decoration: none; }
.be-link { color: rgba(255, 255, 255, .74); white-space: nowrap; }
.be-link:hover { color: #fff; text-decoration: none; }
.be-quem { margin-left: auto; color: rgba(255, 255, 255, .5); white-space: nowrap; }

/* O cabeçalho do site é grudento no topo; com a barra da equipe acima, ele desce. */
body.com-barra-equipe .site-header { top: 40px; }

/* ---- A mesma barra dentro da área restrita, avisando que é a equipe olhando ---- */
.rs-barra--equipe { background: #14295E; }
.rs-barra-modo {
  margin-left: 18px; color: #E4C87A; font-size: 12.5px;
}
.rs-barra-voltar {
  margin-left: auto; white-space: nowrap;
  font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .12);
  border-radius: 7px; padding: 6px 14px;
}
.rs-barra-voltar:hover { background: rgba(255, 255, 255, .24); color: #fff; text-decoration: none; }

@media (max-width: 768px) {
  .barra-equipe-inner { padding: 0 16px; gap: 10px; }
  .be-quem, .be-link { display: none; }
  body.com-barra-equipe .site-header { top: 40px; }
  .rs-barra-modo { display: none; }
}

/* ============================================================
   GUIA DE CONVÊNIOS
   Três formas de achar — buscando, pela categoria, ou descendo
   pela ordem alfabética. O benefício é o que fica em destaque.
   ============================================================ */

.cv-capa {
  background: linear-gradient(160deg, #14295E 0%, #0A1734 100%);
  color: #fff; position: relative; overflow: hidden;
}
/* Malha discreta ao fundo, a mesma linguagem das faixas da área restrita. */
.cv-capa::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cv-capa-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; padding: 46px 32px 40px;
}
.cv-sobre {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #C9A84C; margin-bottom: 10px;
}
.cv-capa h1 {
  font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.03em;
  color: #fff; margin-bottom: 12px;
}
.cv-resumo { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.76); max-width: 58ch; }

.cv-busca { display: flex; gap: 9px; margin-top: 26px; max-width: 680px; }
.cv-busca input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px;
  color: var(--ink); background: #fff;
  border: 0; border-radius: 11px; padding: 15px 18px;
}
.cv-busca input:focus { outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,.5); }
.cv-busca button {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  color: #0A1734; background: #C9A84C; border: 0; border-radius: 11px; padding: 15px 26px;
  transition: background .15s;
}
.cv-busca button:hover { background: #E4C87A; }
.cv-baixar {
  display: inline-block; margin-top: 16px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(201,168,76,.6); padding-bottom: 2px;
}
.cv-baixar:hover { color: #C9A84C; }

.cv-largura { max-width: 1180px; margin: 0 auto; padding: 30px 32px 80px; }

/* ---- Categorias ---- */
.cv-categorias {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--border);
}
.cv-cat {
  font-size: 12.5px; font-weight: 600; color: var(--ink2);
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 7px 14px;
  transition: border-color .15s, color .15s, background .15s;
}
.cv-cat span { color: var(--muted); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.cv-cat:hover { border-color: var(--blue); color: var(--blue); }
.cv-cat.ativa { background: #0C1B3F; border-color: #0C1B3F; color: #fff; }
.cv-cat.ativa span { color: rgba(255,255,255,.6); }

/* ---- Resultado da busca ---- */
.cv-resultado {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 22px 0 6px; font-size: 14.5px; color: var(--ink2);
}
.cv-resultado strong { color: var(--ink); }
.cv-limpar { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--blue); }
.cv-dica {
  font-size: 13px; color: #7A5200; background: #FFF6E5;
  border: 1px solid #F3DFB0; border-radius: 9px; padding: 9px 13px; margin-bottom: 14px;
}

/* ---- Índice A–Z ---- */
.cv-alfabeto {
  position: sticky; top: 96px; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 3px; margin: 22px 0 26px;
  background: rgba(238,243,251,.94); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px;
}
.cv-alfabeto a, .cv-alfabeto span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cv-alfabeto a { color: var(--blue); }
.cv-alfabeto a:hover { background: var(--blue); color: #fff; }
.cv-alfabeto span { color: var(--muted2); }

/* ---- Seção por letra ---- */
.cv-secao { margin-bottom: 34px; scroll-margin-top: 150px; }
.cv-letra {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
  padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  scroll-margin-top: 150px;
}
.cv-letra span { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---- Cartão do conveniado ---- */
.cv-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.cv-cartao {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 22px 18px; scroll-margin-top: 150px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cv-cartao:hover {
  transform: translateY(-2px); border-color: rgba(43,91,232,.28);
  box-shadow: 0 12px 28px rgba(15,27,61,.10);
}
.cv-cartao-topo { margin-bottom: 12px; }
.cv-nome { font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.cv-etiqueta {
  display: inline-block; margin-top: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue); background: var(--blue-pale); border-radius: 20px; padding: 3px 10px;
}
.cv-etiqueta:hover { background: var(--blue); color: #fff; }
.cv-beneficio {
  font-size: 14px; line-height: 1.6; color: var(--ink2);
  background: #FAFCFF; border-left: 3px solid #C9A84C; border-radius: 0 8px 8px 0;
  padding: 11px 14px; margin-bottom: 14px;
}
.cv-percentual { color: var(--ink); font-weight: 800; }

.cv-dados { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.cv-dados dt {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted2); margin-bottom: 2px;
}
.cv-dados dd { font-size: 13px; line-height: 1.5; color: var(--ink2); }
.cv-zap {
  display: inline-block; margin-left: 6px;
  font-size: 11px; font-weight: 700; color: #128C4B;
  background: #E7F6EE; border-radius: 20px; padding: 2px 9px;
}
.cv-zap:hover { background: #128C4B; color: #fff; }
.cv-observacao { font-size: 12.5px; color: var(--muted); margin-top: 10px; font-style: italic; }

.cv-nada { text-align: center; padding: 60px 20px; color: var(--muted); }
.cv-nada p { font-size: 15px; margin-bottom: 8px; }
.cv-nada a { color: var(--blue); font-weight: 600; }
.cv-rodape {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 70ch;
}

/* ---- Página só de PDF (calendário de eventos) ---- */
.cv-largura--pdf { padding-top: 34px; }
.pdf-topo {
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
}
.pdf-topo h1 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.025em; color: var(--ink); }
.pdf-topo p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.pdf-acoes { margin-left: auto; display: flex; gap: 9px; }
.pdf-quadro {
  display: block; width: 100%; height: min(82vh, 1000px);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #EDF1F8;
}

@media (max-width: 768px) {
  .cv-capa-inner, .cv-largura { padding-left: 16px; padding-right: 16px; }
  .cv-capa-inner { padding-top: 30px; padding-bottom: 28px; }
  .cv-busca { flex-direction: column; }
  .cv-alfabeto { top: 78px; }
  .cv-grade { grid-template-columns: 1fr; }
  .pdf-acoes { margin-left: 0; width: 100%; }
  .pdf-acoes a { flex: 1; text-align: center; }
  .pdf-quadro { height: 66vh; }
}

/* ============================================================
   RESERVA DE ESPAÇOS
   ------------------------------------------------------------
   Referência: calendário de reservas do Volkshotel — a grade do
   mês É a interface, com o PREÇO IMPRESSO DENTRO DA CÉLULA e o
   dia ocupado visível e morto em vez de escondido. Painel de
   agendamentos do Calendly para o lado da gestão.
   Adaptado à paleta da AMMA: marinho, dourado e o azul do site.
   ============================================================ */
.rv-capa {
  background: linear-gradient(160deg, #14295E 0%, #0A1734 100%);
  color: #fff; position: relative; overflow: hidden;
}
.rv-capa::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
}
.rv-capa-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 46px 32px 40px; }
.rv-sobre {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #C9A84C; margin-bottom: 10px;
}
.rv-capa h1 {
  font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.03em;
  color: #fff; margin-bottom: 12px; text-wrap: balance;
}
.rv-resumo { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.76); max-width: 60ch; }

.rv-largura { max-width: 1180px; margin: 0 auto; padding: 30px 32px 70px; }

/* ---------------- escolha do espaço ---------------- */
.rv-espacos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.rv-espaco {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.rv-espaco:hover { border-color: rgba(43,91,232,.35); transform: translateY(-2px); text-decoration: none; }
/* O espaço escolhido manda na grade toda: a marca tem de ser inequívoca. */
.rv-espaco--atual {
  border-color: #14295E; box-shadow: 0 0 0 2px #14295E, 0 10px 30px rgba(20,41,94,.10);
}
.rv-espaco-topo { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rv-espaco-topo h2 { font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.rv-cap {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--blue-pale); border-radius: 20px; padding: 3px 9px;
}
.rv-espaco-resumo { font-size: 13.5px; line-height: 1.55; color: var(--ink2); margin-top: 8px; }
.rv-preco { display: flex; align-items: baseline; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.rv-preco-valor { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.rv-preco-quem { font-size: 12px; color: var(--muted); }
.rv-preco-outro {
  font-size: 12.5px; color: var(--ink2); margin-top: 5px;
  border-top: 1px dashed var(--border); padding-top: 8px;
}
.rv-preco-outro b { color: #8A6D14; }

/* ---------------- calendário + lado ---------------- */
.rv-corpo { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 22px; margin-top: 22px; align-items: start; }

.rv-calendario { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 18px; }
.rv-mes { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 16px; }
.rv-mes h3 {
  font-size: 19px; letter-spacing: -.02em; color: var(--ink);
  text-transform: capitalize; min-width: 200px; text-align: center;
}
.rv-mes h3 span { color: var(--muted); font-weight: 500; }
.rv-mes-seta {
  width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; line-height: 1;
  border: 1px solid var(--border); border-radius: 10px; color: var(--ink); text-decoration: none;
}
.rv-mes-seta:hover { background: var(--blue-pale); border-color: rgba(43,91,232,.3); text-decoration: none; }
.rv-mes-seta--morta { color: var(--muted2); border-color: transparent; cursor: default; }

/* Faixa escura dos dias da semana — o traço que ancora a grade, direto da referência. */
.rv-semana {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: #14295E; border-radius: 10px; overflow: hidden; margin-bottom: 6px;
}
.rv-semana span {
  padding: 8px 0; text-align: center; color: rgba(255,255,255,.82);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

.rv-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rv-dia {
  min-height: 66px; border-radius: 10px; padding: 7px 6px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
  position: relative; text-decoration: none;
}
.rv-dia--fora { background: none; }
.rv-dia-num { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.1; }
/* O preço dentro da célula é o traço que não pode se perder na adaptação. */
.rv-dia-preco { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.rv-dia-nota {
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted2);
}

.rv-dia--livre { background: var(--blue-pale); border: 1px solid transparent; }
.rv-dia--livre:hover {
  background: #fff; border-color: var(--blue); text-decoration: none;
  box-shadow: 0 4px 14px rgba(43,91,232,.14);
}
.rv-dia--livre:hover .rv-dia-preco { color: var(--blue-dark); }
.rv-dia--escolhido {
  background: #14295E; border-color: #14295E;
  box-shadow: 0 6px 20px rgba(20,41,94,.28);
}
.rv-dia--escolhido .rv-dia-num { color: #fff; }
.rv-dia--escolhido .rv-dia-preco { color: #C9A84C; }
/* Dia com pedido em análise continua clicável — ele não está tomado. */
.rv-dia-marca {
  position: absolute; top: 6px; right: 6px; width: 6px; height: 6px;
  border-radius: 50%; background: #C9A84C;
}
.rv-dia--escolhido .rv-dia-marca { background: #fff; }

.rv-dia--ocupado {
  background: repeating-linear-gradient(135deg, #F4F6FB 0 6px, #EDF0F7 6px 12px);
  border: 1px solid var(--border);
}
.rv-dia--ocupado .rv-dia-num { color: var(--muted2); text-decoration: line-through; }
.rv-dia--passado { background: none; }
.rv-dia--passado .rv-dia-num { color: var(--muted2); font-weight: 500; }

.rv-legenda {
  list-style: none; display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--ink2);
}
.rv-legenda li { display: flex; align-items: center; gap: 7px; }
.rv-bolha { width: 11px; height: 11px; border-radius: 4px; flex: none; }
.rv-bolha--livre { background: #DCE5FC; border: 1px solid rgba(43,91,232,.55); }
.rv-bolha--analise { background: #C9A84C; }
.rv-bolha--ocupado { background: repeating-linear-gradient(135deg, #F4F6FB 0 3px, #DFE4EF 3px 6px); border: 1px solid var(--border); }

/* ---------------- painel lateral ---------------- */
.rv-lado {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 96px;
}
.rv-lado--vazio { background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FE 100%); }
.rv-lado--feito { border-color: rgba(20,41,94,.3); box-shadow: 0 0 0 2px rgba(20,41,94,.08); }
.rv-selo {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #C9A84C; margin-bottom: 6px;
}
.rv-lado h3 { font-size: 18px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 12px; text-wrap: balance; }
.rv-lado-texto { font-size: 13.5px; line-height: 1.6; color: var(--ink2); margin-bottom: 14px; }
.rv-lado-nota { font-size: 12px; line-height: 1.55; color: var(--muted); margin-top: 10px; }

.rv-tabela-precos { margin-top: 4px; }
.rv-tabela-precos > div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.rv-tabela-precos dt { font-size: 13px; color: var(--ink2); }
.rv-tabela-precos dd { font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

.rv-conta { background: var(--blue-pale); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.rv-conta-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ink2); padding: 4px 0; }
.rv-conta-linha b { font-weight: 600; color: var(--ink); }
.rv-conta-linha--abate { color: #1F7A4D; }
.rv-conta-linha--abate b { color: #1F7A4D; }
.rv-conta-linha--total {
  border-top: 1px solid rgba(43,91,232,.18); margin-top: 6px; padding-top: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.rv-conta-linha--total b { font-size: 22px; letter-spacing: -.03em; }
.rv-conta-nota { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin-top: 8px; }

.rv-erro {
  background: #FDECEE; color: #8A2733; border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 13px; margin-bottom: 14px;
}

.rv-campo { display: block; margin-bottom: 12px; }
.rv-campo > span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink2); margin-bottom: 5px;
}
.rv-campo > span em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.rv-campo input, .rv-campo textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
}
.rv-campo textarea { resize: vertical; line-height: 1.5; }
.rv-campo input:focus, .rv-campo textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,91,232,.13);
}
.rv-campo-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rv-botao {
  display: block; width: 100%; text-align: center; font: inherit; font-size: 14.5px; font-weight: 600;
  border-radius: 11px; padding: 12px 18px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; margin-top: 6px;
}
.rv-botao--forte { background: var(--blue); color: #fff; }
.rv-botao--forte:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.rv-botao--fantasma { background: #fff; color: var(--ink); border-color: var(--border); }
.rv-botao--fantasma:hover { background: var(--blue-pale); color: var(--ink); text-decoration: none; }

.rv-rodape {
  margin-top: 26px; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center;
}

@media (max-width: 940px) {
  .rv-corpo { grid-template-columns: 1fr; }
  .rv-lado { position: static; }
}
@media (max-width: 700px) {
  .rv-capa-inner, .rv-largura { padding-left: 18px; padding-right: 18px; }
  .rv-espacos { grid-template-columns: 1fr; }
  .rv-dia { min-height: 56px; }
  .rv-dia-preco { font-size: 9.5px; }
  .rv-mes h3 { min-width: 0; font-size: 17px; }
}

/* ============================================================
   ÁREA DO ASSOCIADO — meus dados, carteirinha, minha senha
   ------------------------------------------------------------
   A carteirinha reproduz o cartão do SISAMMA: mesma arte, mesmas
   posições. As medidas vêm do canvas de 2048×1284 convertidas em
   porcentagem, e o texto usa `cqw` para escalar junto com o
   cartão — no celular e no PDF de impressão.
   ============================================================ */
.md-largura { max-width: 1060px; margin: 0 auto; padding: 30px 32px 70px; }
.md-largura--estreita { max-width: 620px; }

.md-topo {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
}
.md-topo h1 { font-size: clamp(24px, 3.2vw, 33px); letter-spacing: -.03em; color: var(--ink); }
.md-sub { font-size: 14px; color: var(--ink2); margin-top: 5px; max-width: 62ch; }

.md-colunas { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.md-bloco {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}
.md-bloco h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.md-bloco--pedido { margin-top: 18px; }

.md-lista { display: block; }
.md-linha {
  display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
.md-linha:last-child { border-bottom: 0; }
.md-linha dt { font-size: 12.5px; color: var(--muted); }
.md-linha dd { font-size: 14.5px; color: var(--ink); white-space: pre-line; word-break: break-word; }
.md-vazio { color: var(--muted2); font-style: italic; }

.md-nota { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-top: 14px; }
.md-nota--solta { margin-top: 20px; text-align: center; }
.md-aviso { border-radius: var(--radius-sm); padding: 11px 15px; font-size: 14px; margin-bottom: 16px; }
.md-aviso--certo { background: #E9F6EF; color: #1F7A4D; }
.md-aviso--erro  { background: #FDECEE; color: #8A2733; }

.md-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 16px; align-items: start; }
.md-form--coluna { grid-template-columns: 1fr; }
.md-campo { display: block; }
.md-campo--largo { grid-column: 1 / -1; }
.md-campo > span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink2); margin-bottom: 5px;
}
.md-campo > span em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.md-campo input, .md-campo textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
}
.md-campo textarea { resize: vertical; line-height: 1.5; }
.md-campo input:focus, .md-campo textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,91,232,.13);
}
/* O placeholder mostra o valor atual: a pessoa vê o que vai substituir. */
.md-campo input::placeholder { color: var(--muted2); }

.md-botao {
  display: inline-block; font: inherit; font-size: 14.5px; font-weight: 600;
  border-radius: 11px; padding: 11px 20px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
}
.md-form .md-botao { grid-column: 1 / -1; justify-self: start; }
.md-botao--forte { background: var(--blue); color: #fff; }
.md-botao--forte:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.md-botao--forte[disabled] { opacity: .6; cursor: default; }
.md-botao--claro { background: #fff; color: var(--ink); border-color: var(--border); }
.md-botao--claro:hover { background: var(--blue-pale); color: var(--ink); text-decoration: none; }

.md-pedido-itens { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.md-pedido-itens li {
  font-size: 13.5px; color: var(--ink); background: var(--blue-pale);
  border-radius: 9px; padding: 9px 12px;
}
.md-de { color: var(--muted); text-decoration: line-through; }

.md-tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.md-tabela th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.md-tabela td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.md-tabela tr:last-child td { border-bottom: 0; }
.md-nowrap { white-space: nowrap; }
.md-selo {
  font-size: 11px; font-weight: 700; border-radius: 20px; padding: 3px 10px;
  background: var(--blue-pale); color: var(--ink2);
}
.md-selo--aberto   { background: #FDF3DC; color: #7A5200; }
.md-selo--aplicado { background: #E9F6EF; color: #1F7A4D; }
.md-selo--recusado { background: #FBEDEE; color: #8A2733; }
.md-resposta { font-size: 12.5px; color: var(--muted); }

/* ---------------- a carteirinha ---------------- */
.ct-cartao {
  position: relative; width: 100%; max-width: 720px; margin: 0 auto;
  aspect-ratio: 2048 / 1284; container-type: inline-size;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 46px rgba(15,27,61,.18);
}
.ct-fundo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.ct-foto {
  position: absolute;
  left: var(--ct-foto-x); top: var(--ct-foto-y);
  width: var(--ct-foto-l); height: var(--ct-foto-a);
  border-radius: 2.4cqw; overflow: hidden; background: #eef3fb;
}
.ct-foto-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-foto-vazia {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 10.5cqw; font-weight: 700; color: #1a4a8f; letter-spacing: -.02em;
}

.ct-qr {
  position: absolute;
  left: var(--ct-qr-x); top: var(--ct-qr-y);
  width: var(--ct-qr-t); height: var(--ct-qr-t);
}
.ct-qr svg { width: 100%; height: 100%; display: block; }

/* Bloco de texto ancorado na linha de base do número, como no canvas. */
.ct-texto {
  position: absolute; left: var(--ct-txt-x); top: 54.6%;
  display: flex; flex-direction: column; color: #16549e;
  /* text-align explícito: a página de conferência centraliza o conteúdo, e sem
     isto o MESMO cartão sai alinhado à esquerda logado e centralizado no QR. */
  text-align: left;
}
.ct-numero { font-size: 4.1cqw; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.ct-papel  { font-size: 2.25cqw; line-height: 1.9; letter-spacing: .02em; }
.ct-nome   { font-size: 4.3cqw; font-weight: 700; line-height: 1.16; letter-spacing: -.02em; }

.ct-acoes { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------------- conferência pelo QR ---------------- */
.ct-conferencia { max-width: 760px; margin: 0 auto; padding: 40px 24px 70px; text-align: center; }
.ct-selo {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; border-radius: 20px; padding: 5px 14px;
  background: #E9F6EF; color: #1F7A4D; margin-bottom: 14px;
}
.ct-selo--fora { background: #FBEDEE; color: #8A2733; }
.ct-conferencia h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.03em; color: var(--ink); }
.ct-sub { font-size: 15px; color: var(--ink2); margin: 8px 0 26px; }
.ct-rodape { font-size: 12.5px; color: var(--muted); margin-top: 22px; line-height: 1.6; }

/* ---------------- impressão ---------------- */
@media print {
  .rs-barra, .pn-espia, .cabecalho, .rodape, .ct-acoes, .md-topo a { display: none !important; }
  body { background: #fff; }
  .ct-cartao { box-shadow: none; max-width: 100%; page-break-inside: avoid; }
}
body.carteirinha-impressa .rs-barra,
body.carteirinha-impressa .ct-acoes { display: none; }

@media (max-width: 820px) {
  .md-colunas { grid-template-columns: 1fr; }
  .md-form { grid-template-columns: 1fr; }
  .md-linha { grid-template-columns: 1fr; gap: 2px; }
  .md-largura { padding-left: 18px; padding-right: 18px; }
}

/* Atalhos da conta do associado, no topo do portal. Vêm antes das pastas de
   documento de propósito: o que é DELE tem precedência sobre o que é da AMMA. */
.rs-eu { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 26px; }
.rs-eu-item {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 15px 17px; text-decoration: none;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.rs-eu-item:hover {
  border-color: rgba(43,91,232,.35); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,27,61,.07); text-decoration: none;
}
.rs-eu-nome { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.rs-eu-desc { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 860px) { .rs-eu { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .rs-eu { grid-template-columns: 1fr; } }

/* Figura vinda das páginas destravadas do Divi. No original ela ficava numa
   coluna ao lado do texto; aqui entra no fluxo, com teto de altura para a foto
   do complexo não empurrar o texto três telas para baixo. */
.entry-content .pg-figura { margin: 22px 0; }
.entry-content .pg-figura img {
  width: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--radius-sm); display: block;
}
/* O Divi deixava align="justify" solto em alguns blocos: um parágrafo saía
   justificado e o vizinho não. A página inteira segue o alinhamento do tema. */
.entry-content [align] { text-align: inherit !important; }

/* ============================================================
   OUVIDORIA / FALE COM A REDAÇÃO
   ------------------------------------------------------------
   Formulário sóbrio, na mesma linguagem do Guia de Convênios e
   da Reserva: capa marinho com o dourado, corpo claro.
   ============================================================ */
.ov-capa {
  background: linear-gradient(160deg, #14295E 0%, #0A1734 100%);
  color: #fff; position: relative; overflow: hidden;
}
.ov-capa::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
}
.ov-capa-inner { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: 44px 32px 38px; }
.ov-sobre {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #C9A84C; margin-bottom: 10px;
}
.ov-capa h1 {
  font-size: clamp(27px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em;
  color: #fff; margin-bottom: 12px; text-wrap: balance;
}
.ov-resumo { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.76); max-width: 58ch; }

.ov-largura { max-width: 1060px; margin: 0 auto; padding: 30px 32px 70px; }
.ov-grade { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }

.ov-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px;
}
.ov-campo { display: block; margin-bottom: 15px; }
.ov-campo > span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink2); margin-bottom: 6px;
}
.ov-campo > span i { color: #B02A2A; font-style: normal; }
.ov-campo input, .ov-campo textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px;
}
.ov-campo textarea { resize: vertical; line-height: 1.55; }
.ov-campo input:focus, .ov-campo textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,91,232,.13);
}
.ov-par { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ov-dica { font-size: 12.5px; color: var(--muted); margin: -6px 0 16px; }

/* Fora da tela, mas alcançável por robô que preenche tudo. `display:none` é
   detectado por alguns; posição negativa passa por campo comum. */
.ov-armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ov-erro {
  background: #FDECEE; color: #8A2733; border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14px; margin-bottom: 16px;
}

.ov-botao {
  display: inline-block; font: inherit; font-size: 15px; font-weight: 600;
  border-radius: 11px; padding: 12px 26px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
}
.ov-botao--forte { background: var(--blue); color: #fff; }
.ov-botao--forte:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.ov-botao--claro { background: #fff; color: var(--ink); border-color: var(--border); margin-top: 18px; }
.ov-botao--claro:hover { background: var(--blue-pale); color: var(--ink); text-decoration: none; }

.ov-lado {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FE 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 96px;
}
.ov-lado h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.ov-contatos > div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.ov-contatos > div:last-child { border-bottom: 0; }
.ov-contatos dt {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.ov-contatos dd { font-size: 14px; color: var(--ink); line-height: 1.5; }
.ov-lado-nota {
  font-size: 12.5px; line-height: 1.6; color: var(--ink2);
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}

.ov-feito {
  background: #fff; border: 1px solid rgba(20,41,94,.28);
  box-shadow: 0 0 0 2px rgba(20,41,94,.06);
  border-radius: var(--radius); padding: 34px 32px; max-width: 640px;
}
.ov-selo {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #1F7A4D; background: #E9F6EF;
  border-radius: 20px; padding: 5px 13px; margin-bottom: 14px;
}
.ov-feito h2 { font-size: clamp(20px, 3vw, 26px); letter-spacing: -.03em; color: var(--ink); margin-bottom: 12px; }
.ov-feito p { font-size: 15px; line-height: 1.65; color: var(--ink2); }
.ov-feito-nota {
  font-size: 13.5px; color: var(--muted); margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .ov-grade { grid-template-columns: 1fr; }
  .ov-lado { position: static; }
}
@media (max-width: 620px) {
  .ov-capa-inner, .ov-largura { padding-left: 18px; padding-right: 18px; }
  .ov-par { grid-template-columns: 1fr; }
}

/* ============================================================
   ASSISTENTE DA ÁREA RESTRITA
   ------------------------------------------------------------
   Conversa sóbria, na mesma paleta do resto: marinho e dourado
   no cabeçalho, corpo claro. A janela da conversa tem altura
   fixa e rola por dentro — a página não cresce sem fim, e o
   campo de escrever fica sempre à vista.
   ============================================================ */
.as-largura { max-width: 880px; margin: 0 auto; padding: 26px 24px 60px; }

.as-topo {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
}
.as-sobre {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #C9A84C; margin-bottom: 6px;
}
.as-topo h1 { font-size: clamp(24px, 3.4vw, 33px); letter-spacing: -.03em; color: var(--ink); }
.as-resumo { font-size: 14px; color: var(--ink2); margin-top: 5px; max-width: 58ch; }
.as-sair { font-size: 13px; color: var(--muted); }

.as-desligado {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; font-size: 15px; line-height: 1.7; color: var(--ink2);
}

.as-caixa {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

.as-conversa {
  height: min(56vh, 520px); overflow-y: auto;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 40%);
}

.as-fala { max-width: 84%; border-radius: 16px; padding: 13px 16px; font-size: 14.5px; line-height: 1.6; }
.as-fala p + p { margin-top: 9px; }
.as-fala--eu {
  align-self: flex-end; background: #14295E; color: #fff;
  border-bottom-right-radius: 5px;
}
.as-fala--assistente {
  align-self: flex-start; background: var(--blue-pale); color: var(--ink);
  border-bottom-left-radius: 5px;
}
.as-fala--pensando { color: var(--muted); font-style: italic; }
.as-fala--erro { background: #FDECEE; color: #8A2733; }
.as-limite {
  font-size: 12.5px; color: var(--ink2); margin-top: 10px;
  padding-top: 9px; border-top: 1px solid rgba(43,91,232,.16);
}

/* Links que ESTE código monta a partir do texto — nunca HTML do modelo. */
.as-link {
  display: inline-block; margin: 9px 8px 0 0; font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px;
}
.as-link:hover { border-color: var(--blue); color: var(--blue-dark); text-decoration: none; }

/* ---------------- proposta de reserva ---------------- */
.as-proposta {
  margin-top: 12px; background: #fff; border: 1px solid rgba(20,41,94,.26);
  border-radius: var(--radius-sm); padding: 15px 16px;
}
.as-proposta-titulo {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #C9A84C; margin-bottom: 10px;
}
.as-proposta-linha {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  font-size: 13.5px; color: var(--ink2); padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.as-proposta-linha:last-of-type { border-bottom: 0; }
.as-proposta-linha b { color: var(--ink); text-align: right; }
.as-proposta-campo { display: block; margin-top: 12px; }
.as-proposta-campo span {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink2); margin-bottom: 5px;
}
.as-proposta-campo input {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px;
}
.as-proposta-campo input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,91,232,.13);
}
.as-proposta-nota { font-size: 12px; line-height: 1.55; color: var(--muted); margin-top: 11px; }
.as-proposta-botao {
  width: 100%; margin-top: 11px; font: inherit; font-size: 14.5px; font-weight: 600;
  background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 18px; cursor: pointer;
}
.as-proposta-botao:hover { background: var(--blue-dark); }
.as-proposta-botao:disabled { opacity: .6; cursor: default; }
.as-proposta--feita { border-color: #1F7A4D; background: #F4FBF7; }
.as-proposta--feita .as-proposta-nota { color: #1F7A4D; font-weight: 500; }

/* ---------------- atalhos e campo ---------------- */
.as-atalhos {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 22px 14px; border-top: 1px solid var(--border); padding-top: 14px;
}
.as-atalho {
  font: inherit; font-size: 12.5px; color: var(--ink2); cursor: pointer;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 7px 14px;
}
.as-atalho:hover { border-color: var(--blue); color: var(--blue-dark); }

.as-form {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 14px 22px 18px; border-top: 1px solid var(--border); background: #fff;
}
.as-rotulo { position: absolute; left: -9999px; }
.as-form textarea {
  flex: 1; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; resize: none; max-height: 160px;
}
.as-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,91,232,.13);
}
.as-form button {
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  background: var(--blue); color: #fff; border: 0; border-radius: 11px; padding: 12px 22px;
}
.as-form button:hover { background: var(--blue-dark); }
.as-form button:disabled { opacity: .6; cursor: default; }

.as-aviso {
  font-size: 12px; line-height: 1.6; color: var(--muted);
  margin-top: 12px; text-align: center;
}

@media (max-width: 620px) {
  .as-largura { padding-left: 16px; padding-right: 16px; }
  .as-fala { max-width: 92%; }
  .as-conversa { height: 60vh; padding: 16px; }
  .as-form, .as-atalhos { padding-left: 16px; padding-right: 16px; }
}

/* Lista do assistente — montada com createElement, nunca com innerHTML. */
.as-lista { margin: 8px 0 0 18px; display: grid; gap: 5px; }
.as-lista li { font-size: 14.5px; line-height: 1.55; }

/* Faixa de quem está conferindo: a equipe precisa saber que não é a visão
   dela, mesma linguagem da barra da área restrita. */
.as-equipe {
  background: #FDF3DC; border: 1px solid rgba(201,168,76,.5); color: #6B5210;
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px;
  font-size: 13.5px; line-height: 1.6;
}
.as-equipe a { margin-left: 6px; font-weight: 600; }
