/* ============================================================
   Claude · Área Restrita GLMMMSP — folha compartilhada
   Reusa os tokens visuais do site atual (navy, dourado,
   off-white, serifas) e a linguagem da área de documentos.
   Namespace: .ar-  (área restrita)
   ============================================================ */

:root {
  --primary-navy: #071F52;
  --navy-700: #0b2a6b;
  --navy-900: #051535;
  /* Azul aço institucional (banner real do Grão-Mestrado) */
  --hero-blue: linear-gradient(180deg, #30426c 0%, #52658c 100%);
  --hero-blue-diag: linear-gradient(135deg, #2f406a 0%, #52658c 100%);
  --secondary-gold: #D3A13B;
  --gold-soft: rgba(211, 161, 59, 0.14);
  --gold-line: rgba(211, 161, 59, 0.42);
  --bg-offwhite: #F9F9F7;
  --bg-lightgray: #F1F1EE;
  --surface-white: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --heading-color: var(--primary-navy);
  --border-color: #E4E4DE;
  --border-strong: #D5D5CC;
  --shadow-sm: 0 1px 3px rgba(7, 31, 82, 0.06);
  --shadow-md: 0 10px 30px -18px rgba(7, 31, 82, 0.45);
  --shadow-lg: 0 30px 70px -40px rgba(7, 31, 82, 0.6);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: Lato, system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-symbolic: Cinzel, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-offwhite);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  color: var(--heading-color);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
}

.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Chrome do site (topo, header, faixa ritual) ---------- */

.ar-topbar {
  min-height: 35px;
  background: var(--primary-navy);
  color: #fff;
  border-bottom: 2px solid var(--secondary-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 8px 5%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.ar-topbar-right { display: flex; align-items: center; gap: 14px; }
.ar-topbar a { color: rgba(255, 255, 255, 0.8); }
.ar-topbar a:hover { color: #fff; }
.ar-topbar-access {
  color: var(--secondary-gold);
  display: inline-flex; align-items: center; gap: 6px;
}

.ar-header {
  position: sticky; top: 0; z-index: 30;
  min-height: 84px;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 13px 5%;
}

.ar-logo { display: flex; align-items: center; gap: 14px; }
.ar-logo-mark {
  width: 54px; height: 54px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--secondary-gold);
  font-family: var(--font-symbolic);
  font-weight: 700; font-size: 1rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(211, 161, 59, 0.16), transparent 62%);
}
.ar-logo-text h1 { font-size: 1.12rem; letter-spacing: 0.5px; line-height: 1.15; }
.ar-logo-text span {
  color: var(--text-muted); display: block;
  font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase;
}

.ar-header-nav { display: flex; align-items: center; gap: 18px; }
.ar-header-nav a {
  color: var(--text-dark); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}
.ar-header-nav a:hover, .ar-header-nav a[aria-current="page"] { color: var(--secondary-gold); }

.ar-ritual {
  background: var(--primary-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-serif);
  font-style: italic; font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  padding: 9px 20px;
}
.ar-ritual b { color: var(--secondary-gold); font-style: normal; font-weight: 700; }

.ar-proposal-tabs {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-color);
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 9px 20px;
}
.ar-proposal-tabs a {
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--heading-color);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 12px;
}
.ar-proposal-tabs a:hover, .ar-proposal-tabs a[aria-current="page"] {
  background: var(--primary-navy); border-color: var(--primary-navy); color: #fff;
}

/* ---------- Kickers / rótulos cerimoniais ---------- */

.ar-kicker {
  color: var(--secondary-gold);
  font-family: var(--font-symbolic);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.ar-kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--gold-line);
}
.ar-kicker.no-rule::before { display: none; }

/* =====================================================================
   PROTÓTIPO 01 — PÓRTICO RESTRITO (portal com trilha lateral / SPA)
   ===================================================================== */

.ar-shell {
  max-width: 1360px;
  margin: 20px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ar-rail {
  position: sticky; top: 100px;
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--secondary-gold);
  background: var(--hero-blue);
  color: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ar-rail-member { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.ar-rail-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  color: var(--secondary-gold);
  font-family: var(--font-symbolic); font-weight: 700;
  margin-bottom: 12px;
}
.ar-rail-member strong {
  display: block; font-family: var(--font-serif);
  font-size: 1.06rem; line-height: 1.25; color: #fff;
}
.ar-rail-member small {
  display: block; color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem; margin-top: 3px;
}
.ar-rail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ar-rail-badge {
  border: 1px solid rgba(211, 161, 59, 0.4);
  background: rgba(211, 161, 59, 0.12);
  color: var(--secondary-gold);
  font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px;
}

.ar-rail-nav { padding: 10px 0; display: grid; }
.ar-rail-link {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.82);
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 11px 18px; text-align: left;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.ar-rail-link .icon { color: var(--secondary-gold); opacity: 0.85; }
.ar-rail-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.ar-rail-link.is-active {
  background: rgba(211, 161, 59, 0.14);
  border-left-color: var(--secondary-gold);
  color: #fff;
}
.ar-rail-count {
  font-size: 0.66rem; font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px; padding: 2px 8px; min-width: 26px; text-align: center;
}
.ar-rail-link.is-active .ar-rail-count { color: var(--secondary-gold); }

.ar-rail-foot {
  padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.04em;
}

.ar-stage { min-width: 0; }
.ar-view { display: none; animation: ar-fade 0.3s ease; }
.ar-view.is-active { display: block; }
@keyframes ar-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ar-view-head { margin-bottom: 16px; }
.ar-view-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.02; margin: 6px 0 6px;
}
.ar-view-head p { color: var(--text-muted); max-width: 720px; }

/* ---------- Cartões genéricos ---------- */

.ar-card {
  border: 1px solid var(--border-color);
  background: var(--surface-white);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.ar-card.navy-top { border-top: 4px solid var(--primary-navy); }
.ar-card.gold-top { border-top: 4px solid var(--secondary-gold); }

.ar-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 14px;
}
.ar-card-head h3 { font-size: 1.32rem; margin-top: 4px; }
.ar-card-head p { color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }
.ar-card-badge {
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1px solid var(--gold-line); border-radius: 4px;
  background: var(--gold-soft); color: var(--secondary-gold);
  display: grid; place-items: center;
}
.ar-card-link {
  border: 0; background: transparent; color: var(--heading-color);
  border-top: 1px solid var(--border-color);
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 9px 0 0; margin-top: 14px; width: 100%;
}
.ar-card-link:hover { color: var(--secondary-gold); }

.ar-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ar-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ar-grid-2 > *, .ar-grid-3 > * { min-width: 0; }
.ar-stack { display: grid; gap: 18px; }

/* ---------- Painel: hero da próxima sessão ---------- */

.ar-hero {
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--secondary-gold);
  background: var(--hero-blue-diag);
  color: #fff;
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
  padding: 26px 28px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.ar-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(211, 161, 59, 0.18);
  box-shadow: 0 0 0 26px rgba(211, 161, 59, 0.05);
}
.ar-hero-kicker {
  color: var(--secondary-gold); font-family: var(--font-symbolic);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.ar-hero h2 {
  color: #fff; font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; margin: 8px 0 6px;
}
.ar-hero p { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.ar-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ar-hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px; padding: 5px 10px;
  font-size: 0.74rem; font-weight: 700; color: rgba(255, 255, 255, 0.85);
  display: inline-flex; align-items: center; gap: 6px;
}
.ar-hero-date {
  position: relative; z-index: 1;
  border: 1px solid rgba(211, 161, 59, 0.4);
  background: rgba(211, 161, 59, 0.1);
  border-radius: 6px; padding: 16px 22px; text-align: center; min-width: 128px;
}
.ar-hero-date b {
  display: block; font-family: var(--font-serif); color: #fff;
  font-size: 2.6rem; line-height: 1;
}
.ar-hero-date span { display: block; color: var(--secondary-gold); font-size: 0.8rem; margin-top: 6px; letter-spacing: 0.06em; }

/* ---------- Métricas ---------- */

.ar-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ar-metric {
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--secondary-gold);
  background: var(--surface-white);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}
.ar-metric span {
  color: var(--text-muted); display: block;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.ar-metric b {
  color: var(--heading-color); display: block;
  font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.1; margin-top: 6px;
}
.ar-metric small { color: var(--text-muted); font-size: 0.74rem; }

/* ---------- Módulo de documentos (fidelidade à área atual) ---------- */

.ar-doc-strip {
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--secondary-gold);
  background: var(--surface-white);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 14px; padding: 9px 12px 9px 14px;
}
.ar-doc-path { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.ar-doc-path .seg {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--heading-color); font-family: var(--font-serif); font-size: 0.98rem;
}
.ar-doc-path .seg svg { color: var(--secondary-gold); width: 13px; height: 13px; }
.ar-doc-back {
  border: 0; background: transparent; color: var(--heading-color);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.ar-doc-back:hover { color: var(--secondary-gold); }

.ar-search { position: relative; min-width: min(320px, 100%); }
.ar-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--text-muted); pointer-events: none;
}
.ar-search input {
  width: 100%; min-height: 42px;
  border: 1px solid var(--border-color); border-radius: 4px;
  background: var(--surface-white); color: var(--text-dark);
  padding: 9px 12px 9px 38px;
}
.ar-search input:focus { outline: none; border-color: var(--secondary-gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.ar-section-heading {
  color: var(--heading-color); border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 18px 0 12px; padding-bottom: 8px;
  font-family: var(--font-symbolic); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary-gold);
}
.ar-section-heading:first-child { margin-top: 0; }
.ar-section-heading strong { color: var(--heading-color); font-family: var(--font-sans); letter-spacing: 0; font-size: 0.9rem; }

.ar-index {
  border: 1px solid var(--border-color); border-left: 4px solid var(--secondary-gold);
  background: var(--surface-white); box-shadow: var(--shadow-sm);
}
.ar-index-row {
  width: 100%; border: 0; border-bottom: 1px solid var(--border-color);
  background: transparent; color: var(--text-dark);
  display: grid; grid-template-columns: 48px 44px minmax(0, 1fr) 24px;
  gap: 12px; align-items: center; padding: 14px 16px 14px 6px; text-align: left;
}
.ar-index-row:last-child { border-bottom: 0; }
.ar-index-row:hover { background: linear-gradient(90deg, rgba(211, 161, 59, 0.12), rgba(211, 161, 59, 0.02) 60%, transparent); }
.ar-index-num { color: var(--secondary-gold); font-family: var(--font-symbolic); font-weight: 700; text-align: center; font-size: 0.9rem; }
.ar-index-icon, .ar-row-icon {
  border: 1px solid var(--gold-line); border-radius: 4px;
  background: var(--gold-soft); color: var(--secondary-gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.ar-index-icon { width: 38px; height: 38px; }
.ar-index-body { min-width: 0; display: grid; gap: 2px; }
.ar-index-body span, .ar-row-label {
  color: var(--secondary-gold); font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ar-index-body strong, .ar-row-body strong {
  color: var(--heading-color); font-family: var(--font-serif);
  font-size: 1rem; line-height: 1.28;
}
.ar-index-arrow { color: var(--secondary-gold); justify-self: end; }

.ar-list {
  border: 1px solid var(--border-color); background: var(--surface-white);
  box-shadow: var(--shadow-sm);
}
.ar-row {
  width: 100%; border: 0; border-bottom: 1px solid var(--border-color);
  background: transparent; color: var(--text-dark);
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px; align-items: center; padding: 14px 16px; text-align: left;
}
.ar-row:last-child { border-bottom: 0; }
.ar-row:hover { background: var(--bg-offwhite); }
.ar-row-icon { width: 34px; height: 34px; }
.ar-row-body { min-width: 0; display: grid; gap: 3px; }
.ar-row-body small { color: var(--text-muted); font-size: 0.82rem; }
.ar-row-meta {
  align-self: center; border-left: 1px solid var(--border-color);
  color: var(--heading-color); font-size: 0.78rem; font-weight: 700;
  min-width: 84px; padding-left: 14px; text-align: right; white-space: nowrap;
}

.ar-reader { border: 1px solid var(--border-color); background: var(--surface-white); box-shadow: var(--shadow-md); margin-top: 16px; }
.ar-reader-bar {
  min-height: 46px; border-bottom: 1px solid var(--border-color);
  background: var(--bg-offwhite); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 8px 12px;
}
.ar-reader-bar span { color: var(--text-muted); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ar-download {
  min-height: 36px; border: 1px solid var(--primary-navy); border-radius: 4px;
  color: var(--heading-color); display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 12px;
}
.ar-download:hover { background: var(--primary-navy); color: #fff; }
.ar-pdf { min-height: 430px; background: linear-gradient(90deg, #2b2b2b, #383838); display: grid; place-items: center; padding: 30px; }
.ar-pdf-page { width: min(360px, 88%); min-height: 360px; background: #fff; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3); padding: 34px; }
.ar-pdf-page span { color: var(--secondary-gold); display: block; font-family: var(--font-symbolic); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.ar-pdf-page strong { color: var(--heading-color); display: block; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.15; }
.ar-pdf-page p { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; }
.ar-pdf-page .rule { height: 1px; background: var(--border-strong); margin: 18px 0; }

/* ---------- Agenda / timeline ---------- */

.ar-timeline { display: grid; gap: 10px; }
.ar-event {
  border: 1px solid var(--border-color); background: var(--bg-offwhite);
  display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 14px;
  padding: 12px 14px; align-items: center;
}
.ar-event time {
  border-right: 1px solid var(--border-strong); padding-right: 12px;
  display: grid; align-content: center; color: var(--heading-color);
  font-weight: 800; line-height: 1.05; text-align: center;
}
.ar-event time b { font-family: var(--font-serif); font-size: 1.15rem; }
.ar-event time span { color: var(--secondary-gold); font-size: 0.72rem; margin-top: 3px; }
.ar-event-body strong { color: var(--heading-color); font-family: var(--font-serif); font-size: 1.02rem; display: block; }
.ar-event-body small { color: var(--text-muted); }
.ar-tag {
  border: 1px solid var(--gold-line); border-radius: 3px; color: var(--heading-color);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; white-space: nowrap;
}

/* ---------- Tabelas ---------- */

.ar-table-wrap { overflow-x: auto; }
.ar-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.ar-table th, .ar-table td { border-bottom: 1px solid var(--border-color); padding: 12px 10px; text-align: left; vertical-align: top; }
.ar-table th { color: var(--text-muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ar-table td b { color: var(--heading-color); display: block; }
.ar-table td span { color: var(--text-muted); display: block; font-size: 0.82rem; }
.ar-table tbody tr:hover, .ar-table tbody tr:hover { background: var(--bg-offwhite); }
.ar-pill {
  border: 1px solid var(--gold-line); border-radius: 20px; color: var(--heading-color);
  display: inline-flex; font-size: 0.72rem; font-weight: 800; padding: 3px 10px;
}
.ar-pill.warn { border-color: #d1a13b; background: var(--gold-soft); color: #8a6a1e; }
.ar-pill.ok { border-color: #86a37a; background: rgba(134, 163, 122, 0.12); color: #486b3c; }

/* ---------- Aniversários ---------- */

.ar-cake-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ar-cake-group h4 {
  font-family: var(--font-symbolic); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--secondary-gold);
  border-bottom: 1px solid var(--border-color); padding-bottom: 8px; margin-bottom: 8px;
}
.ar-cake-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-color); }
.ar-cake-item:last-child { border-bottom: 0; }
.ar-cake-date { font-family: var(--font-serif); font-weight: 700; color: var(--secondary-gold); font-size: 0.98rem; }
.ar-cake-item strong { color: var(--heading-color); font-family: var(--font-serif); font-size: 0.98rem; display: block; }
.ar-cake-item small { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- Meus dados / presença ---------- */

.ar-progress { height: 9px; border: 1px solid var(--border-color); background: var(--bg-lightgray); overflow: hidden; border-radius: 20px; }
.ar-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary-gold), #e6bd63); }
.ar-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ar-field { border-left: 3px solid var(--secondary-gold); background: var(--bg-offwhite); padding: 9px 11px; }
.ar-field span { color: var(--text-muted); display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ar-field strong { color: var(--heading-color); display: block; font-size: 0.92rem; }
.ar-pending { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ar-pending li {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-color); border-left: 3px solid #d1a13b;
  background: var(--surface-white); padding: 10px 12px; font-size: 0.9rem; color: var(--text-dark);
}
.ar-pending li .icon { color: #b5852a; }

.ar-att-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ar-att-stat { border: 1px solid var(--border-color); background: var(--bg-offwhite); text-align: center; padding: 14px 10px; }
.ar-att-stat b { display: block; font-family: var(--font-serif); font-size: 1.7rem; color: var(--heading-color); }
.ar-att-stat span { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* =====================================================================
   PROTÓTIPO 02 — SALÃO DO IRMÃO (home pessoal com abas)
   ===================================================================== */

.ar-salon { max-width: 1180px; margin: 0 auto; padding: 22px 24px 60px; }

.ar-welcome {
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--secondary-gold);
  background: var(--hero-blue-diag);
  color: #fff; box-shadow: var(--shadow-md);
  padding: 30px 30px 26px; position: relative; overflow: hidden;
}
.ar-welcome::after {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(211, 161, 59, 0.16); box-shadow: 0 0 0 30px rgba(211, 161, 59, 0.05);
}
.ar-welcome .ar-hero-kicker { position: relative; z-index: 1; }
.ar-welcome h1 {
  position: relative; z-index: 1; color: #fff; font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; margin: 8px 0 4px;
}
.ar-welcome-sub { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.72); max-width: 620px; }
.ar-welcome-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; align-items: center; }
.ar-next-session {
  border: 1px solid rgba(211, 161, 59, 0.4); background: rgba(211, 161, 59, 0.1);
  border-radius: 6px; padding: 14px 18px; display: flex; align-items: center; gap: 16px;
}
.ar-next-session .cal { text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.18); padding-right: 16px; }
.ar-next-session .cal b { display: block; font-family: var(--font-serif); font-size: 2rem; color: #fff; line-height: 1; }
.ar-next-session .cal span { color: var(--secondary-gold); font-size: 0.72rem; letter-spacing: 0.05em; }
.ar-next-session .info span { display: block; color: var(--secondary-gold); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ar-next-session .info strong { display: block; color: #fff; font-family: var(--font-serif); font-size: 1.06rem; }
.ar-next-session .info small { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; }
.ar-welcome-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.ar-tabs {
  position: sticky; top: 84px; z-index: 20;
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--bg-offwhite);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0 0; margin-bottom: 22px;
}
.ar-tab {
  border: 1px solid transparent; border-bottom: 0;
  background: transparent; color: var(--text-muted);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 11px 16px; border-radius: 4px 4px 0 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.ar-tab .icon { width: 16px; height: 16px; }
.ar-tab:hover { color: var(--heading-color); }
.ar-tab.is-active {
  color: var(--primary-navy); background: var(--surface-white);
  border-color: var(--border-color); border-bottom: 2px solid var(--surface-white);
  box-shadow: 0 -3px 0 var(--secondary-gold) inset;
  margin-bottom: -1px;
}

.ar-panel { display: none; animation: ar-fade 0.3s ease; }
.ar-panel.is-active { display: block; }
.ar-panel-head { margin-bottom: 18px; }
.ar-panel-head h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; margin: 4px 0 4px; }
.ar-panel-head p { color: var(--text-muted); max-width: 700px; }

/* ---------- Responsivo ---------- */

@media (max-width: 1080px) {
  .ar-header, .ar-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ar-header { position: static; padding: 14px 5%; }
  .ar-header-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 16px; -webkit-overflow-scrolling: touch; }
  .ar-header-nav::-webkit-scrollbar,
  .ar-rail-nav::-webkit-scrollbar,
  .ar-tabs::-webkit-scrollbar { height: 0; }

  .ar-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 16px; margin: 16px auto 44px; }

  /* Trilha lateral vira barra de módulos horizontal e fixa no topo */
  .ar-rail { position: static; overflow: visible; }
  .ar-rail-member { padding: 16px 16px 14px; }
  .ar-rail-nav {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-overflow-scrolling: touch;
  }
  .ar-rail-link {
    flex: 0 0 auto; grid-template-columns: 18px auto; gap: 8px;
    border-left: 0; border-bottom: 3px solid transparent; border-radius: 5px;
    padding: 9px 13px; white-space: nowrap;
  }
  .ar-rail-link .ar-rail-count { display: none; }
  .ar-rail-link.is-active { border-left: 0; border-bottom-color: var(--secondary-gold); }
  .ar-rail-foot { display: none; }

  .ar-metrics, .ar-att-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-grid-2, .ar-grid-3, .ar-cake-groups { grid-template-columns: minmax(0, 1fr); }
  .ar-hero { grid-template-columns: minmax(0, 1fr); }
  .ar-hero h2 { font-size: clamp(1.5rem, 6vw, 2rem); overflow-wrap: anywhere; }
  .ar-tabs { position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-top: 8px; }
  .ar-view-head h2, .ar-panel-head h2 { font-size: clamp(1.7rem, 6.5vw, 2.3rem); }
}

@media (max-width: 620px) {
  .ar-topbar { font-size: 0.66rem; letter-spacing: 1px; padding: 8px 16px; }
  .ar-ritual { font-size: 0.82rem; padding: 9px 16px; }
  .ar-fields { grid-template-columns: 1fr; }
  .ar-card { padding: 16px; }
  .ar-index-row { grid-template-columns: 30px 34px minmax(0, 1fr) 16px; gap: 8px; padding: 12px 10px; }
  .ar-index-body strong, .ar-row-body strong { font-size: 0.95rem; }
  .ar-row { grid-template-columns: 32px minmax(0, 1fr); }
  .ar-row-meta { grid-column: 2; border-left: 0; padding-left: 0; text-align: left; margin-top: 3px; }
  .ar-event { grid-template-columns: 56px minmax(0, 1fr); }
  .ar-event .ar-tag { grid-column: 2; justify-self: start; }
  .ar-hero { padding: 20px 18px; }
  .ar-hero-date { justify-self: start; }
  .ar-welcome { padding: 24px 18px; }
  .ar-welcome-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .ar-next-session { width: 100%; }
  .ar-doc-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* =====================================================================
   PROTÓTIPO 03 — ÁTRIO DO IRMÃO
   Reproduz o chrome real do site (top bar, header com brasão, linha
   dourada, frase ritual) e usa a faixa azul do banner institucional
   (--hero-gradient real) como área de contexto do Irmão.
   Namespace: .ar3-
   ===================================================================== */

:root {
  --ar3-hero: linear-gradient(180deg, #30426c 0%, #52658c 100%);
}

.ar3-topbar {
  background: var(--primary-navy);
  color: #fff;
  border-bottom: 2px solid var(--secondary-gold);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 8px 5%;
  font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.ar3-topbar-left { font-weight: 700; }
.ar3-topbar-right { display: flex; align-items: center; gap: 20px; }
.ar3-topbar-right a, .ar3-topbar-access {
  color: #fff; display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; cursor: pointer; transition: var(--transition);
}
.ar3-topbar-right a:hover, .ar3-topbar-access:hover { color: var(--secondary-gold); }
.ar3-topbar-access { color: var(--secondary-gold); letter-spacing: 1.6px; }
.ar3-topbar-access svg { width: 14px; height: 14px; }
.ar3-topbar-sep { opacity: 0.5; }
.ar3-toggle {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36); border-radius: 4px;
  background: transparent; color: #fff;
}
.ar3-toggle:hover { border-color: var(--secondary-gold); color: var(--secondary-gold); background: rgba(255, 255, 255, 0.08); }
.ar3-toggle svg { width: 15px; height: 15px; }

.ar3-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-white); box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 15px 5%;
}
.ar3-logo { display: flex; align-items: center; gap: 15px; }
.ar3-logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }
.ar3-logo-fallback {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-line); color: var(--secondary-gold);
  font-family: var(--font-symbolic); font-weight: 700;
}
.ar3-logo-text h1 { font-size: 1.15rem; line-height: 1.2; letter-spacing: 0.5px; white-space: nowrap; }
.ar3-logo-text span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: block; }
.ar3-nav ul { display: flex; list-style: none; gap: 16px; margin: 0; padding: 0; }
.ar3-nav a {
  position: relative; font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  color: var(--text-dark); letter-spacing: 1px; padding: 8px 4px; white-space: nowrap; transition: var(--transition);
}
.ar3-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--secondary-gold); transition: var(--transition); }
.ar3-nav a:hover, .ar3-nav a[aria-current="page"] { color: var(--secondary-gold); }
.ar3-nav a:hover::after, .ar3-nav a[aria-current="page"]::after { width: 100%; }

.ar3-ritual {
  background: var(--primary-navy); color: #fff; text-align: center; padding: 10px 20px;
  font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- A FAIXA AZUL: banner de contexto do Irmão ---------- */
.ar3-banner {
  background: var(--ar3-hero);
  color: #fff;
  border-bottom: 4px solid var(--secondary-gold);
  padding: 60px 5% 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.ar3-banner-kicker {
  color: var(--secondary-gold); font-family: var(--font-symbolic);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.ar3-banner h2 {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: 1px; line-height: 1.05; margin: 0;
}
.ar3-banner-sub {
  color: var(--secondary-gold); font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 2px; font-weight: 700; margin: 10px 0 0;
}
.ar3-banner-context {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px;
  width: 100%; max-width: 940px;
}
.ar3-ctx {
  flex: 1 1 180px; min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid var(--secondary-gold);
  background: rgba(255, 255, 255, 0.08);
  padding: 13px 16px; text-align: left;
  display: flex; align-items: center; gap: 12px;
}
.ar3-ctx-icon { color: var(--secondary-gold); flex: 0 0 auto; }
.ar3-ctx span { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ar3-ctx strong { display: block; color: #fff; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.2; margin-top: 2px; }

/* ---------- Sub-navegação de seções (âncoras da própria página) ---------- */
.ar3-subnav {
  position: sticky; top: 86px; z-index: 40;
  background: var(--surface-white); border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  padding: 10px 5%;
}
.ar3-subnav button {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); padding: 8px 14px; border-radius: 3px; transition: var(--transition);
  border: 1px solid transparent; background: transparent;
}
.ar3-subnav button:hover { color: var(--heading-color); }
.ar3-subnav button.is-active { color: var(--primary-navy); border-color: var(--border-color); background: var(--bg-offwhite); box-shadow: 0 -2px 0 var(--secondary-gold) inset; }

.ar3-body { max-width: 1280px; margin: 0 auto; padding: 34px 24px 70px; }
.ar3-section { display: none; animation: ar-fade 0.3s ease; }
.ar3-section.is-active { display: block; }
.ar3-section-head { margin-bottom: 16px; text-align: center; }
.ar3-section-head .ar-kicker { justify-content: center; }
.ar3-section-head .ar-kicker.no-rule::after { content: ""; width: 22px; height: 1px; background: var(--gold-line); }
.ar3-section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 8px 0 4px; }
.ar3-section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

@media (max-width: 1080px) {
  .ar3-topbar, .ar3-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ar3-header { position: static; padding: 14px 5%; }
  .ar3-nav { width: 100%; }
  .ar3-nav ul { flex-wrap: nowrap; overflow-x: auto; gap: 18px; -webkit-overflow-scrolling: touch; }
  .ar3-nav ul::-webkit-scrollbar,
  .ar3-subnav::-webkit-scrollbar { height: 0; }
  .ar3-subnav {
    position: sticky; top: 0; z-index: 40;
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    padding: 8px 12px; -webkit-overflow-scrolling: touch;
  }
  .ar3-subnav button { flex: 0 0 auto; white-space: nowrap; }
  .ar3-body { padding: 24px 16px 56px; }
  .ar3-banner { padding: 40px 5% 30px; }
}
@media (max-width: 620px) {
  .ar3-topbar { font-size: 0.66rem; letter-spacing: 1px; padding: 8px 16px; }
  .ar3-ritual { font-size: 0.82rem; padding: 9px 16px; }
  .ar3-ctx { flex: 1 1 100%; }
  .ar3-banner { padding: 32px 18px 26px; }
  .ar3-banner h2 { font-size: 1.7rem; }
  .ar3-banner-sub { font-size: 0.8rem; letter-spacing: 1.4px; }
  .ar3-banner-context { margin-top: 20px; }
}

/* =====================================================================
   DECK / apresentação (índice raiz das versões Claude)
   ===================================================================== */

.ar-deck-body {
  min-height: 100vh; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--primary-navy) 80%);
  color: #fff;
}
.ar-deck { position: relative; min-height: 100vh; overflow: hidden; }
.ar-deck-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px clamp(18px, 4vw, 44px); color: rgba(255, 255, 255, 0.72);
}
.ar-deck-top strong { display: block; color: #fff; font-size: 0.92rem; }
.ar-deck-kicker { display: block; color: var(--secondary-gold); font-family: var(--font-symbolic); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.ar-deck-counter { display: flex; align-items: baseline; gap: 7px; font-size: 0.86rem; font-weight: 900; letter-spacing: 0.12em; }
.ar-deck-counter span:first-child { color: var(--secondary-gold); font-size: 1.45rem; }

.ar-slide {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 88px clamp(18px, 4vw, 54px) 92px;
  opacity: 0; pointer-events: none; transform: translateX(36px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.ar-slide.is-active { opacity: 1; pointer-events: auto; transform: none; }
.ar-slide-panel {
  width: min(1180px, 100%); max-height: calc(100vh - 188px); overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.64fr);
  gap: clamp(24px, 4vw, 54px); align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.16); border-top: 7px solid var(--secondary-gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)), rgba(3, 14, 38, 0.78);
  box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 56px);
}
.ar-slide-copy { display: grid; align-content: start; }
.ar-agent {
  width: fit-content; border: 1px solid var(--gold-line); border-radius: 4px;
  background: rgba(211, 161, 59, 0.1); color: var(--secondary-gold);
  display: inline-flex; padding: 5px 9px; font-size: 0.68rem; font-weight: 900;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ar-slide-folder { margin: 18px 0 8px; color: rgba(255, 255, 255, 0.55); font-family: var(--font-symbolic); font-size: 0.72rem; letter-spacing: 0.08em; }
.ar-slide h1 { max-width: 820px; color: #fff; font-family: var(--font-display); font-size: clamp(2.6rem, 6.5vw, 5.6rem); line-height: 0.95; }
.ar-slide-lead { max-width: 720px; margin-top: 20px; color: rgba(255, 255, 255, 0.78); font-size: clamp(1rem, 1.6vw, 1.24rem); }
.ar-slide-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.ar-slide-points li { min-height: 88px; border: 1px solid rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.06); padding: 14px; color: rgba(255, 255, 255, 0.74); font-size: 0.92rem; }
.ar-slide-points li b { color: var(--secondary-gold); font-weight: 800; }
.ar-slide-aside { display: grid; align-content: end; gap: 18px; border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: clamp(22px, 4vw, 42px); }
.ar-slide-aside h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.ar-slide-aside p { color: rgba(255, 255, 255, 0.68); }
.ar-slide-actions { display: grid; gap: 10px; }
.ar-btn {
  min-height: 48px; border: 1px solid #fff; background: #fff; color: var(--primary-navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
}
.ar-btn.ghost { background: transparent; color: #fff; }
.ar-btn:hover { border-color: var(--secondary-gold); color: var(--secondary-gold); }
.ar-btn.ghost:hover { background: rgba(211, 161, 59, 0.1); }
.ar-hit { position: fixed; top: 0; bottom: 0; z-index: 2; width: 18vw; border: 0; background: transparent; }
.ar-hit-left { left: 0; }
.ar-hit-right { right: 0; }

@media (max-width: 860px) {
  .ar-deck-body { overflow: auto; }
  .ar-slide { position: relative; display: none; min-height: 100vh; }
  .ar-slide.is-active { display: grid; }
  .ar-slide-panel { grid-template-columns: 1fr; max-height: none; }
  .ar-slide-points { grid-template-columns: 1fr; }
  .ar-slide-aside { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 22px 0 0; }
}
