/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.rr-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--rr-dark);
	color: var(--rr-white);
}
.rr-skip:focus { top: 8px; color: var(--rr-white); }
.rr-main:focus { outline: none; }

.rr-header { position: relative; z-index: 50; background: var(--rr-white); }
.rr-header ul { margin: 0; padding: 0; list-style: none; }

/* Barra superior ------------------------------------------------------------ */
.rr-topbar { background: var(--rr-primary); color: var(--rr-white); font-size: 13px; line-height: 1.4; }
.rr-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; }
.rr-header--article .rr-topbar__inner { min-height: 36px; }
.rr-topbar__right { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.rr-topbar__menu { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.rr-topbar a { color: var(--rr-white); }
.rr-topbar a:hover { color: var(--rr-white); text-decoration: underline; text-underline-offset: 3px; }
.rr-topbar__social { display: flex; gap: 6px; margin-right: -4px; }
.rr-topbar__social a { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.rr-topbar__social a:hover { text-decoration: none; opacity: 0.8; }
.rr-topbar__social svg { width: 15px; height: 15px; }

/* Logo + busca + botão ------------------------------------------------------ */
.rr-masthead { border-bottom: 1px solid var(--rr-border); }
.rr-masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.rr-masthead__actions { display: flex; align-items: center; gap: 12px; }
.rr-masthead__cta { min-height: 48px; padding-inline: 24px; white-space: nowrap; }

.rr-logo { display: inline-flex; align-items: center; gap: 17px; color: var(--rr-dark); line-height: 1; }
.rr-logo:hover { color: var(--rr-dark); }
.rr-logo__mark { width: 48px; height: 48px; flex: none; }
.rr-logo__img { display: block; max-height: 48px; width: auto; }
.rr-logo__text { display: flex; flex-direction: column; gap: 8px; }
.rr-logo__name { display: flex; align-items: center; font-family: var(--rr-sans); font-size: 24px; line-height: 1; white-space: nowrap; }
.rr-logo__name strong { font-weight: 700; letter-spacing: 0.1em; }
.rr-logo__bar { margin: 0 10px 0 6px; color: var(--rr-primary); font-weight: 400; }
.rr-logo__light { font-weight: 300; letter-spacing: 0.06em; }
.rr-logo__tagline { font-size: 11px; font-weight: 600; letter-spacing: 0.27em; color: var(--rr-primary); white-space: nowrap; }
.rr-logo--dark, .rr-logo--dark:hover { color: var(--rr-white); }
.rr-logo--dark .rr-logo__tagline { color: var(--rr-white); }
.rr-logo--dark .rr-logo__bar { color: var(--rr-primary); }

.rr-search { position: relative; display: flex; width: 450px; max-width: 100%; }
.rr-search .rr-search__input {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 48px 0 15px;
	border: 1px solid var(--rr-border);
	border-radius: 0;
	background: var(--rr-white);
	color: var(--rr-text);
	font-family: var(--rr-sans);
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
}
.rr-search__input::placeholder { color: #757575; opacity: 1; }
.rr-search .rr-search__input:focus { border-color: var(--rr-primary); outline: none; box-shadow: inset 0 0 0 1px var(--rr-primary); }
.rr-search .rr-search__submit {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--rr-dark);
	cursor: pointer;
}
.rr-search__submit:hover { color: var(--rr-primary); background: transparent; }
.rr-search__submit svg { width: 18px; height: 18px; }

.rr-icon-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--rr-border);
	border-radius: 0;
	background: var(--rr-white);
	color: var(--rr-dark);
	cursor: pointer;
}
.rr-icon-btn:hover, .rr-icon-btn:focus { background: var(--rr-bg-soft); color: var(--rr-dark); }
.rr-icon-btn svg { width: 20px; height: 20px; }
.rr-menu-toggle__close { display: none; }
.rr-menu-toggle[aria-expanded="true"] .rr-menu-toggle__open { display: none; }
.rr-menu-toggle[aria-expanded="true"] .rr-menu-toggle__close { display: block; }

/* Menu principal --------------------------------------------------------------- */
.rr-nav { border-bottom: 1px solid var(--rr-border); }
.rr-nav__inner { display: flex; align-items: stretch; min-height: 53px; }
.rr-nav__menu { display: flex; align-items: stretch; gap: 2px; }
.rr-nav__menu > li { display: flex; }
.rr-nav__menu a {
	display: flex;
	align-items: center;
	padding: 2px 14px 0;
	border-bottom: 2px solid transparent;
	color: var(--rr-dark);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}
.rr-nav__menu a:hover { color: var(--rr-primary); }
.rr-nav__menu .current-menu-item > a,
.rr-nav__menu .current-menu-ancestor > a,
.rr-nav__menu .current-post-ancestor > a,
.rr-nav__menu .current-category-ancestor > a,
.rr-nav__menu a[aria-current="page"] { color: var(--rr-primary); border-bottom-color: var(--rr-primary); }
.rr-nav .rr-nav__menu--right { margin-left: auto; padding-left: 4px; border-left: 1px solid var(--rr-border); }
.rr-nav__menu--right a { padding-right: 0; padding-left: 14px; }
.rr-nav__menu--extra { display: none; }

/* Na matéria, “Na prática” segue o menu, sem divisor. */
.rr-header--article .rr-nav .rr-nav__menu--right { margin-left: 0; padding-left: 0; border-left: 0; }
.rr-header--article .rr-nav__menu--right a { padding: 2px 14px 0; }

/* Faixa EM PAUTA ------------------------------------------------------------------ */
.rr-pauta { border-bottom: 1px solid var(--rr-border); background: var(--rr-bg-soft); }
.rr-pauta__inner { display: flex; align-items: center; gap: 21px; min-height: 49px; }
.rr-pauta__label {
	flex: none;
	padding: 5px 9px 4px;
	background: var(--rr-dark);
	color: var(--rr-white);
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.rr-pauta__nav { min-width: 0; }
.rr-pauta__list { display: flex; align-items: center; }
.rr-pauta__list li { display: flex; align-items: center; white-space: nowrap; }
.rr-pauta__list li + li::before { content: "|"; margin: 0 21px 0 22px; color: #c4c4c4; font-weight: 400; }
.rr-pauta__list a { color: var(--rr-dark); font-size: 13px; font-weight: 600; }
.rr-pauta__list a:hover { color: var(--rr-primary); }

/* Responsivo ---------------------------------------------------------------------- */
/* Até 1199px: o menu de editorias vira hambúrguer (10 itens não cabem em uma linha). */
@media (max-width: 1199px) {
	.rr-search { width: 340px; }
	.rr-menu-toggle { display: inline-flex; }
	.rr-masthead { position: relative; }

	.rr-nav { display: none; border-bottom: 1px solid var(--rr-border); }
	.rr-nav.is-open { display: block; }
	.rr-nav__inner { flex-direction: column; padding-block: 8px 16px; }
	.rr-nav__menu { flex-direction: column; gap: 0; }
	.rr-nav__menu a { padding: 12px 0; border-bottom: 1px solid var(--rr-border); }
	.rr-nav__menu .current-menu-item > a, .rr-nav__menu .current-post-ancestor > a, .rr-nav__menu .current-category-ancestor > a { border-bottom-color: var(--rr-border); box-shadow: inset 3px 0 0 var(--rr-primary); padding-left: 12px; }
	.rr-nav .rr-nav__menu--right { margin: 0; padding: 0; border-left: 0; }
	.rr-nav__menu--right a, .rr-header--article .rr-nav__menu--right a { padding: 12px 0; }

	.rr-pauta__nav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.rr-pauta__nav::-webkit-scrollbar { display: none; }
}

/* Até 1023px: busca recolhida e links da barra superior dentro do menu. */
@media (max-width: 1023px) {
	.rr-topbar__nav { display: none; }
	.rr-topbar__inner, .rr-header--article .rr-topbar__inner { min-height: 36px; }
	.rr-masthead__inner { min-height: 80px; gap: 12px; }
	.rr-search-toggle { display: inline-flex; }
	.rr-search { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; width: auto; padding: 12px var(--rr-gutter); background: var(--rr-white); border-bottom: 1px solid var(--rr-border); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06); }
	.rr-search.is-open { display: flex; }
	.rr-search .rr-search__submit { right: var(--rr-gutter); top: 12px; }
	.rr-masthead__inner { position: static; }
	.rr-nav__menu--extra { display: flex; margin-top: 12px; }
	.rr-nav__menu--extra a { font-weight: 400; border-bottom: 0; padding: 8px 0; }
}

@media (max-width: 767px) {
	.rr-topbar { font-size: 12px; }
	.rr-masthead__inner { min-height: 72px; }
	.rr-masthead__cta { display: none; }
	.rr-logo { gap: 10px; }
	.rr-logo__mark { width: 36px; height: 36px; }
	.rr-logo__text { gap: 6px; }
	.rr-logo__name { font-size: 17px; }
	.rr-logo__bar { margin: 0 6px 0 4px; }
	.rr-logo__tagline { font-size: 8px; letter-spacing: 0.22em; }
	.rr-pauta__inner { gap: 14px; min-height: 44px; }
	.rr-pauta__list li + li::before { margin: 0 14px; }
}

@media (max-width: 359px) {
	.rr-logo__tagline { display: none; }
}
