/* Cantinho Luso: identidade visual autêntica do portal e lobby */
:root {
	--primary: #804600;
	--primary-dark: #6a3a00;
	--primary-light: #96630b;
	--accent-gold: #d4a34b;
	--bg-page: #e9dfca;
	--bg-card: #ffffff;
	--border: #d8ceb8;
	--text-main: #2b2b2b;
	--text-muted: #666666;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 24px 14px 40px 14px;
	background: #e9dfca url('../lobby/skins/salas/luso/back.jpg') repeat;
	font-family: Arial, Helvetica, "Trebuchet MS", sans-serif;
	font-size: 13px;
	color: #2b2b2b;
	line-height: 1.55;
}

a {
	color: #804600;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.skip {
	position: absolute;
	left: -100vw;
	top: 0;
	background: #fff;
	padding: 10px 14px;
	z-index: 999;
	font-weight: bold;
}

.skip:focus {
	left: 14px;
	top: 14px;
}

.page-wrap, .wrap {
	max-width: 980px;
	margin: 0 auto;
}

/* Barra de Topo Autêntica Cantinho Luso */
.top-bar {
	position: relative;
	background: #ffffff;
	border: 1px solid #d8ceb8;
	border-radius: 6px;
	padding: 10px 18px 10px 112px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	margin-bottom: 14px;
	min-height: 58px;
}

.brand-box {
	position: absolute;
	left: 14px;
	top: -18px;
	z-index: 10;
	text-decoration: none;
	display: block;
}

.brand-box img {
	width: 84px;
	height: 84px;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.22));
	transition: transform 0.2s ease;
}

.brand-box img:hover {
	transform: scale(1.05);
}

.top-title, .top-bar h1 {
	margin: 0;
	font-size: 19px;
	font-weight: bold;
	color: #804600;
	flex: 1;
}

.btn-back-chat {
	background: #804600;
	color: #ffffff;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
	padding: 8px 18px;
	border-radius: 4px;
	border: 1px solid #6b3900;
	box-shadow: 0 1px 2px rgba(0,0,0,0.12);
	transition: background 0.15s;
	white-space: nowrap;
}

.btn-back-chat:hover {
	background: #6a3a00;
	color: #ffffff;
	text-decoration: none;
}

/* Layout com Barra Lateral e Conteúdo */
.main-layout, .columns {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

/* Sidebar de Navegação */
.sidebar-nav, .nav {
	width: 220px;
	flex-shrink: 0;
	background: #ffffff;
	border: 1px solid #d8ceb8;
	border-radius: 6px;
	padding: 10px 8px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.sidebar-title {
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	color: #804600;
	padding: 4px 10px 8px;
	border-bottom: 1px solid #eee;
	margin-bottom: 6px;
	letter-spacing: 0.5px;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
	color: #555555;
	transition: background 0.15s, color 0.15s;
	margin-bottom: 3px;
}

.nav-item:last-child {
	margin-bottom: 0;
}

.nav-item:hover {
	background: #fdfaf4;
	color: #96630b;
	text-decoration: none;
}

.nav-item.active, .nav-item[aria-current="page"] {
	background: #fbf5ea;
	color: #804600;
	border-left: 3px solid #804600;
	padding-left: 7px;
}

/* Caixa de Conteúdo Principal */
.content-card, .content {
	flex: 1;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #d8ceb8;
	border-radius: 6px;
	padding: 22px 26px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.intro-note {
	background: #fffcf4;
	border: 1px solid #f3e6cf;
	padding: 12px 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 12.5px;
	color: #5c4511;
	line-height: 1.5;
}

.content-card h2, .content h2 {
	margin: 24px 0 10px 0;
	font-size: 16px;
	font-weight: bold;
	color: #804600;
	border-bottom: 1px solid #eee;
	padding-bottom: 6px;
}

.content-card h2:first-child, .content h2:first-child {
	margin-top: 0;
}

.content-card h3, .content h3 {
	margin: 18px 0 6px 0;
	font-size: 13.5px;
	font-weight: bold;
	color: #96630b;
}

.content-card p, .content p {
	margin: 0 0 12px 0;
}

.content-card ul, .content-card ol, .content ul, .content ol {
	margin: 0 0 14px 0;
	padding-left: 22px;
}

.content-card li, .content li {
	margin-bottom: 5px;
}

/* Tabelas */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0;
	font-size: 12.5px;
}

th {
	background: #fbf5ea;
	color: #804600;
	font-weight: bold;
	padding: 8px 10px;
	border: 1px solid #d8ceb8;
	text-align: left;
}

td {
	padding: 8px 10px;
	border: 1px solid #d8ceb8;
	vertical-align: top;
}

/* Caixas de Alerta */
.note {
	background: #fffcf4;
	border: 1px solid #f3e6cf;
	border-left: 4px solid #ad7622;
	padding: 10px 14px;
	border-radius: 4px;
	margin: 14px 0;
	font-size: 12px;
}

.note.important {
	border-left-color: #990000;
	background: #fff2f2;
	color: #990000;
}

.muted {
	font-size: 11.5px;
	color: #777;
}

/* Botões de Ação */
.action-link, .cl-btn-primary {
	display: inline-block;
	background: #804600;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: bold;
	padding: 8px 16px;
	border-radius: 4px;
	border: 1px solid #6b3900;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	cursor: pointer;
	margin: 6px 0;
	transition: background 0.15s;
}

.action-link:hover, .cl-btn-primary:hover {
	background: #6a3a00;
}

/* Rodapé Simples e Harmonioso */
.simple-footer, .footer {
	margin-top: 14px;
	background: #ffffff;
	border: 1px solid #d8ceb8;
	border-radius: 6px;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 11.5px;
	color: #666;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
	text-align: left;
}

.simple-footer a, .footer a {
	color: #804600;
	text-decoration: none;
	font-weight: bold;
	margin: 0;
}

.simple-footer a:hover, .footer a:hover {
	text-decoration: underline;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
	.top-bar {
		padding: 54px 14px 12px 14px;
	}
	.brand-box {
		left: 14px;
		top: -14px;
	}
	.brand-box img {
		width: 62px;
		height: 62px;
	}
	.top-title {
		width: 100%;
		font-size: 17px;
		margin-bottom: 6px;
	}
	.main-layout, .columns {
		flex-direction: column;
	}
	.sidebar-nav, .nav {
		width: 100%;
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		white-space: nowrap;
		padding: 8px;
		gap: 6px;
	}
	.sidebar-title {
		display: none;
	}
	.nav-item {
		flex: 0 0 auto;
		margin-bottom: 0;
	}
	.content-card, .content {
		padding: 16px 14px;
	}
	.simple-footer, .footer {
		flex-direction: column;
		text-align: center;
	}
}
