/* Páginas internas — padrão COPAD adaptado à paleta PR-6 */
.page-head {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}
.page-head::before {
    content: "";
    position: absolute; inset: 0;
    background: url('header-uerj.jpg') center/cover no-repeat;
    z-index: -2;
}
.page-head::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(110deg,
        rgba(31, 41, 55, .88) 0%,
        rgba(142, 27, 27, .80) 45%,
        rgba(185, 40, 40, .55) 100%);
    z-index: -1;
}
.page-head .container {
    max-width: 880px;
    margin-right: auto;
    margin-left: 0;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    width: 100%;
    max-width: var(--container);
}
.page-head__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: #fff;
    margin: .5rem 0 1rem;
    max-width: 760px;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.page-head .section-head__eyebrow {
    color: var(--pr6-gold) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.page-head__lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.92);
    max-width: 640px;
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.page-head__search {
    display: flex; align-items: center;
    margin-top: 1.75rem;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;
    padding: .25rem .25rem .25rem 1.25rem;
    max-width: 480px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.page-head__search input {
    flex: 1; border: 0; background: transparent;
    color: var(--ink); padding: .65rem 0;
    font-size: 14.5px;
    outline: none;
}
.page-head__search input::placeholder { color: var(--ink-mute); }
.page-head__search button {
    width: 40px; height: 40px;
    background: var(--pr6-primary);
    color: #fff;
    border-radius: 999px;
    display: grid; place-items: center;
}
.page-head__search button svg { width: 16px; height: 16px; }

/* Faixa decorativa estilo COPAD (azul/dourado/azul) adaptada para PR-6 (vermelho/dourado/vermelho) */
.page-head .page-head__stripe,
.page-head::before + ::after { display: none; }
.page-head__stripe {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--pr6-primary) 0%,
        var(--pr6-gold) 50%,
        var(--pr6-primary) 100%);
    opacity: .95;
    z-index: 1;
}

/* Variante por tenant: tinta o overlay com a cor accent da diretoria */
.vertical-theme .page-head::after {
    background: linear-gradient(110deg,
        rgba(31, 41, 55, .88) 0%,
        color-mix(in srgb, var(--accent-deep) 80%, rgba(0,0,0,.4)) 45%,
        color-mix(in srgb, var(--accent) 60%, rgba(0,0,0,.2)) 100%);
}

/* Hero variante das verticais: maior, com CTAs */
.page-head--hero { padding: clamp(5rem, 11vw, 8rem) 0 clamp(4rem, 9vw, 7rem); }
.page-head--hero .page-head__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 880px;
}
.page-head--hero .page-head__lead {
    font-size: 1.2rem;
    max-width: 720px;
    margin-bottom: 2rem;
}
.page-head__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn--gold {
    background: linear-gradient(135deg, var(--pr6-gold), color-mix(in srgb, var(--pr6-gold) 70%, #6B4F1F));
    color: #1F1810;
    box-shadow: 0 10px 24px rgba(201,163,91,.35);
}
.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(201,163,91,.5);
}
.btn--white-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.6);
}
.btn--white-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
}

/* ========== Documento — detalhe ========== */
.doc-show__meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    margin-top: 1.25rem;
    color: rgba(255,255,255,.85);
    font-size: 13.5px;
}
.doc-show__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.doc-show__meta svg { width: 14px; height: 14px; opacity: .8; }

.doc-show { padding: clamp(2rem, 5vw, 4rem) 0; }
.doc-show__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .doc-show__inner { grid-template-columns: 1fr; }
}

.doc-show__current {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem; align-items: center;
    padding: 1.75rem;
    background: linear-gradient(135deg, var(--accent-soft), var(--paper-elev) 80%);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
}
.doc-show__current-icon {
    width: 64px; height: 64px;
    background: var(--accent);
    color: #fff;
    border-radius: 16px;
    display: grid; place-items: center;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.doc-show__current-icon svg { width: 28px; height: 28px; }
.doc-show__current-tag {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--accent-deep);
    margin-bottom: .25rem; display: block;
}
[data-theme="dark"] .doc-show__current-tag { color: var(--accent); }
.doc-show__current-body h2 {
    font-size: 1.5rem; font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .15rem;
}
.doc-show__current-body p { font-size: 14px; color: var(--ink-soft); }
.doc-show__current-body small { font-size: 12px; color: var(--ink-mute); display: block; margin-top: .25rem; }
.doc-show__download { white-space: nowrap; }
@media (max-width: 760px) {
    .doc-show__current { grid-template-columns: auto 1fr; }
    .doc-show__download { grid-column: 1 / -1; justify-content: center; }
}

.doc-show__section-title {
    font-size: 1.25rem; font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 1.25rem;
}

.doc-timeline {
    list-style: none; padding: 0; margin: 0;
    position: relative;
    border-left: 2px solid var(--line);
    padding-left: 2rem;
    margin-left: 8px;
}
.doc-timeline__item { position: relative; padding-bottom: 1.5rem; }
.doc-timeline__item:last-child { padding-bottom: 0; }
.doc-timeline__dot {
    position: absolute;
    left: -2.4rem; top: .5rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--paper-elev);
    border: 3px solid var(--ink-mute);
}
.doc-timeline__item.is-current .doc-timeline__dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.doc-timeline__content {
    background: var(--paper-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}
.doc-timeline__content header {
    display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
    margin-bottom: .35rem;
}
.doc-timeline__content header strong {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 800;
    color: var(--ink);
}
.doc-timeline__badge {
    background: var(--accent);
    color: #fff;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
}
.doc-timeline__content time {
    margin-left: auto;
    font-size: 12px; color: var(--ink-mute);
}
.doc-timeline__content p {
    color: var(--ink-soft);
    font-size: 14px; line-height: 1.5;
    margin-bottom: .65rem;
}
.doc-timeline__footer {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    font-size: 12px; color: var(--ink-mute);
    padding-top: .5rem;
    border-top: 1px dashed var(--line);
}
.doc-timeline__download {
    margin-left: auto;
    color: var(--accent);
    font-weight: 600;
    display: inline-flex; align-items: center; gap: .25rem;
    transition: gap .25s var(--ease);
}
.doc-timeline__download:hover { gap: .5rem; }
.doc-timeline__download svg { width: 12px; height: 12px; }

.doc-show__side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 180px; }
@media (max-width: 900px) { .doc-show__side { position: static; } }

.doc-show__side-card {
    background: var(--paper-elev);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent, var(--pr6-primary));
    border-radius: var(--radius-md);
    padding: 1.25rem;
}
.doc-show__side-card small {
    font-size: 11px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: .12em;
    font-weight: 700;
    display: block; margin-bottom: .35rem;
}
.doc-show__side-card strong {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    display: block; margin-bottom: .25rem;
}
.doc-show__side-card p { font-size: 13px; color: var(--ink-soft); }
.doc-show__side-card a { color: var(--pr6-primary); font-size: 13px; font-weight: 600; }

.doc-show__share { display: flex; gap: .5rem; margin-top: .35rem; }
.doc-show__share a, .doc-show__share button {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--ink-soft);
    display: grid; place-items: center;
    transition: background .2s, color .2s;
    cursor: pointer; border: 0;
}
.doc-show__share a:hover, .doc-show__share button:hover {
    background: var(--pr6-accent-soft); color: var(--pr6-primary);
}
.doc-show__share svg { width: 16px; height: 16px; }

.doc-card__version {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    margin-bottom: .15rem;
}
a.doc-card { text-decoration: none; color: inherit; }

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--ink-mute);
    background: var(--paper-elev);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}

.news-list, .agenda-list, .services-grid, .docs-list {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.news-feed__grid--list { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
@media (max-width: 1080px) { .news-feed__grid--list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .news-feed__grid--list { grid-template-columns: 1fr; } }

.pagination-wrapper { margin-top: 2rem; display: flex; justify-content: center; }
.pagination-wrapper nav > div { display: flex; gap: .25rem; flex-wrap: wrap; }
.pagination-wrapper a, .pagination-wrapper span {
    padding: .5rem .85rem;
    border-radius: 8px;
    background: var(--paper-elev);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
}

/* Documentos */
.docs-list__inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
}
.docs-list__filters h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
    color: var(--ink-mute); margin-bottom: .75rem;
}
.docs-list__filters ul { display: flex; flex-direction: column; gap: .25rem; }
.docs-list__filters a {
    display: block; padding: .5rem .75rem;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 14px;
    transition: background .2s, color .2s;
}
.docs-list__filters a:hover, .docs-list__filters a.is-active {
    background: var(--pr6-accent-soft); color: var(--pr6-primary);
}
.docs-list__grid { display: flex; flex-direction: column; gap: .75rem; }
.doc-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem; align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--paper-elev);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doc-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.doc-card__icon {
    width: 48px; height: 48px;
    background: color-mix(in srgb, var(--accent) 12%, var(--paper-elev));
    color: var(--accent);
    border-radius: 12px;
    display: grid; place-items: center;
}
.doc-card__icon svg { width: 22px; height: 22px; }
.doc-card__body h3 {
    font-size: 1.05rem; font-weight: 700;
    line-height: 1.3; margin-bottom: .15rem;
}
.doc-card__body small {
    font-size: 12px; color: var(--accent); font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
}
.doc-card__body p { font-size: 13.5px; color: var(--ink-soft); margin-top: .35rem; }
.doc-card__tenant {
    display: inline-block;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    margin-bottom: .35rem;
}
.doc-card__meta {
    text-align: right;
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .docs-list__inner { grid-template-columns: 1fr; }
    .doc-card { grid-template-columns: auto 1fr; }
    .doc-card__meta { grid-column: 1 / -1; text-align: left; }
}

/* Serviços */
.services-grid__inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.service-card {
    display: flex; flex-direction: column; gap: .75rem;
    padding: 1.75rem;
    background: var(--paper-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.service-card::before {
    content: ""; position: absolute; inset: auto auto 0 0;
    width: 0; height: 4px; background: var(--accent);
    transition: width .4s var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 18%, transparent);
    border-color: var(--accent);
}
.service-card:hover::before { width: 100%; }
.service-card__icon {
    width: 48px; height: 48px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    display: grid; place-items: center;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.service-card p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.service-card small {
    font-size: 12px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: .08em;
    font-weight: 600;
}
.service-card__cta {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--accent); font-weight: 700; font-size: 14px;
    transition: gap .25s var(--ease);
}
.service-card__cta svg { width: 14px; height: 14px; }
.service-card:hover .service-card__cta { gap: .7rem; }

.service-detail__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
    padding: clamp(2rem, 5vw, 4rem) 0;
}
.service-detail__main { font-size: 16px; line-height: 1.7; color: var(--ink); }
.service-detail__main h3 {
    font-size: 1.25rem; font-weight: 700;
    margin-top: 2rem; margin-bottom: .75rem;
}
.service-detail__side {
    background: var(--paper-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    position: sticky; top: 100px;
}

@media (max-width: 900px) {
    .service-detail__inner { grid-template-columns: 1fr; }
    .service-detail__side { position: static; }
}

/* Article (notícia) */
.article__head {
    color: #fff;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}
.article__badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: #fff;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}
.article__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.article__lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,.9);
    margin-bottom: 1.25rem;
    max-width: 760px;
}
.article__meta { color: rgba(255,255,255,.8); font-size: 14px; }
.article__body {
    padding: clamp(2rem, 5vw, 4rem) 0;
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px; line-height: 1.75;
    color: var(--ink);
}
.article__body p { margin-bottom: 1.25rem; }
.article__body h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
