/* ==========================================================================
   BR-LINUX - estrutura e tipografia

   style.css - Augusto Campos - 23.5.2026
   ========================================================================== */


:root {
  --bg-principal: #FFFFFF;
  --bg-topo-azul: #004499; 
  --bg-sidebar: #F9F9F9;
  --bg-caixas: #F5F5F5;
  --texto-principal: #222222;
  --texto-suave: #555555;
  --texto-links: #004499;
  --texto-links-hover: #FF6600;
  --borda-suave: #DDDDDD;
  --borda-destaque: #004499;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-code: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  --max-width-site: 1200px;
  --side-padding: 1.5rem;   
}

* { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  background-color: var(--bg-principal);
  color: var(--texto-principal);
  font-family: var(--font-stack);
  font-size: 1.05rem;   
  line-height: 1.65;   
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--texto-links); text-decoration: none; transition: color 0.15s ease; }
a:hover, a:focus { color: var(--texto-links-hover); text-decoration: underline; }
p { margin-top: 0; margin-bottom: 1.5rem; }
hr { display: none; }

#page { max-width: var(--max-width-site); margin: 0 auto; padding: 0 var(--side-padding); }

.top-navigation-container { 
  width: 100%; 
  margin-bottom: 1rem; 
  padding-top: 0.75rem; 
}
.top-navigation-container .submit-news-accent { color: #0d1a81; }

/* ==========================================================================
   BANNER SUPERIOR - BRANDING - BR-Linux.org, Linux levado a sério etc.
   ========================================================================== */
#header {
  background: #004499 linear-gradient(135deg, #00367c 0%, #004499 60%, #0056be 100%) !important;
  padding: 2.5rem 1.5rem !important; 
  border-radius: 6px !important; 
  margin-bottom: 1.5rem !important;
  display: flex !important; 
  flex-direction: column !important; 
  justify-content: center !important;
  box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

#header h1 { 
  margin: 0 0 0.35rem 0 !important; 
  padding: 0 !important; 
  font-size: 2.6rem !important; 
  line-height: 1.05 !important; 
  white-space: nowrap !important; 
}

#header h1 a { 
  text-decoration: none !important; 
  display: inline-flex !important; 
  align-items: baseline !important; 
}

#header h1 a .brand-gold { 
  color: #ffcc00 !important; 
  font-weight: 800 !important; 
  letter-spacing: -0.03em !important;
}

#header h1 a .brand-white { 
  color: #ffffff !important; 
  font-weight: 400 !important; 
  font-size: 2.15rem !important; 
  opacity: 0.7 !important; 
  margin-left: 0.05rem !important;
  letter-spacing: -0.03em !important;
}

#header .description { 
  margin: 0 !important; 
  padding: 0 !important; 
  font-size: 0.8rem !important; 
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important; 
  line-height: 1.2 !important; 
  color: rgba(255, 255, 255, 0.8) !important; 
}
#header .description a { 
  color: rgba(255, 255, 255, 0.9) !important; 
  font-weight: 700 !important; 
  text-decoration: none !important;
}
#header .description a:hover {
  text-decoration: underline !important;
}


/* ==========================================================================
   LAYOUT E ESTRUTURA - WORKSPACE, GRID, COLUNAS
   ========================================================================== */
#wrapper { width: 100%; clear: both; }
#content { float: left; width: calc(100% - 360px); padding-right: 2rem; min-width: 0; }
#sidebar { float: right; width: 320px; margin: 0; padding: 0; }

#sidebar .sidebar-widgets { padding-left: 1rem; padding-right: 1rem; }
#sidebar .widget { margin-bottom: 2.5rem; }
#sidebar .widget h2 { font-size: 1.25rem; margin-top: 0; margin-bottom: 1.25rem; border-bottom: 2px solid var(--borda-suave); padding-bottom: 0.25rem; }
#sidebar ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
#sidebar li { list-style-type: none !important; margin-bottom: 0.65rem !important; font-size: 0.95rem; }

#sidebar .site-search form { display: flex; gap: 0.5rem; margin-top: 1.25rem; width: 100%; }
#sidebar .site-search input[type="text"] { flex: 1; min-width: 0; padding: 0.45rem 0.75rem; border: 1px solid var(--borda-suave); border-radius: 4px; font-family: var(--font-stack); font-size: 0.9rem; }
#sidebar .site-search input[type="submit"] { background-color: var(--bg-topo-azul); color: #FFFFFF; border: none; padding: 0.45rem 1rem; border-radius: 4px; font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap; transition: background-color 0.15s ease; }
#sidebar .site-search input[type="submit"]:hover { background-color: var(--texto-links-hover); }
#sidebar .banner-container { display: flex; justify-content: center; padding: 0.5rem 0; }
#sidebar .widget p { font-size: 0.85rem; line-height: 1.5; color: var(--texto-suave); margin-bottom: 0.75rem; }


/* ==========================================================================
   ARQUITETURA DOS POSTS
   ========================================================================== */
.post { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--borda-suave); }
.post h2, .entry-title { font-size: 1.85rem; line-height: 1.3; margin-top: 0; margin-bottom: 1rem; }
.post h2 a, .entry-title a { text-decoration: none; }
.postmetadata { font-size: 0.85rem; color: var(--texto-suave); margin-top: 1rem; }
.post .entry { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.post .entry .tags-label { font-weight: 600; color: var(--texto-suave); font-size: 0.9rem; }
.post .entry-content { margin-top: 1rem; }

/* In-Post Clean Link Design */
.post .entry-content a {
  color: var(--texto-links);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 68, 153, 0.15);
  transition: all 0.12s ease;
}
.post .entry-content a:hover {
  color: var(--texto-links-hover);
  border-bottom-color: var(--texto-links-hover);
  text-decoration: none;
}

/* listas em posts: ul, ol, li */
.post .entry-content ul, 
.post .entry-content ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}
.post .entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* <pre>,  */
.post .entry-content pre {
  background-color: var(--bg-caixas);
  border: 1px solid var(--borda-suave);
  border-left: 4px solid var(--borda-destaque);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}
.post .entry-content pre code {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #333333;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
}
.post .entry-content :not(pre) > code {
  font-family: var(--font-code);
  font-size: 0.9rem;
  background-color: var(--bg-caixas);
  color: #c7254e;
  padding: 2px 6px;
  border: 1px solid var(--borda-suave);
  border-radius: 4px;
}

/* Social, compartilhamento */
.post .socialplugs { margin: 1.5rem 0; font-size: 0.9rem; color: var(--texto-suave); display: flex; align-items: center; gap: 0.4rem; }
.post .socialplugs .share-label { font-weight: 600; margin-right: 0.5rem; }
.post .socialplugs a, 
.post .socialplugs button, 
.post .socialplugs input[type="submit"] { 
  display: inline-block; 
  padding: 4px 10px; 
  background-color: var(--bg-caixas); 
  border: 1px solid var(--borda-suave); 
  border-radius: 4px; 
  font-family: var(--font-stack);
  font-size: 0.85rem; 
  color: var(--texto-links);
  cursor: pointer;
  outline: none;
  text-decoration: none;
  transition: all 0.15s ease; 
}
.post .socialplugs a:hover,
.post .socialplugs button:hover,
.post .socialplugs input[type="submit"]:hover { 
  background-color: var(--borda-destaque); 
  color: #FFFFFF !important; 
  text-decoration: none; 
  border-color: var(--borda-destaque); 
}
.post::after { content: ""; display: table; clear: both; }



/* Blocos de <p><figure><img><figcaption></figure></p> gerados pelo imgput + Axe */
/*
O bloco gerado pelas ferramentas fica assim cheio de <br /> (em 24.5.2026):

	<p><figure><br />
		<img alt="alt-text" src="https://.../abc.png"><br />
		<figcaption>legenda</figcaption><br />
	</figure></p>

*/
figure { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  max-width: 95%; 
  margin: 1.25rem auto; 
  padding: 0; 
  line-height: 0; /* Evita o espaçamento causado por BRs estruturais */
}

/* Oculta SOMENTE as tags BR atuando como espaçadores de layout diretamente dentro da figura */
figure > br { 
  display: none !important; 
}

figure img { 
  max-width: 100%; 
  height: auto; 
  border-radius: 4px; 
  display: block;
}

figcaption { 
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-style: italic; 
  color: var(--texto-suave); 
  text-align: center;
  line-height: 1.4; /* Redefine explicitamente a altura da linha, zerada no elemento “figure” */
  display: block;   /* Garante que os BRs internos no texto da legenda sejam respeitados */
}

/* Garante que os parágrafos vazios injetados pelo CMS sejam anulados */
p:empty {
  display: none;
}

aside, .comments, .box, #rodapes { background-color: var(--bg-caixas); padding: 1.5rem; border-radius: 6px; border: 1px solid var(--borda-suave); margin: 2rem 0; }

blockquote { margin: 6pt 28pt; padding: 0.8em 8pt 0.8em 16pt; line-height: 1.6; border-left: 8px solid var(--borda-destaque); background: var(--bg-caixas); }
blockquote p { margin: 0; color: var(--texto-suave); font-size: 1.05rem; }
h2.mylead { font-size: 1.35rem !important; font-weight: 500; line-height: 1.5; color: var(--texto-principal); margin-top: -0.5rem; margin-bottom: 2rem; border: none !important; padding: 0 !important; text-transform: none !important; }
.leftq:before { content: attr(data-q); font-family: var(--font-stack); display: block; padding: 12px 15px; margin-top: 4px; margin-left: 0px; margin-right: 18px; width: 140px; float: left; background: #555555; color: #D5D5D5; font-weight: normal; line-height: 14pt; font-size: 12pt; font-style: italic; border-radius: 5px; }
q { quotes: "" "" "" ""; display: block; text-align: center; color: var(--texto-links-hover); font-family: -apple-system-font, Georgia, serif; font-size: 1.45rem; line-height: 1.5; border-top: 2px solid var(--texto-links-hover); border-bottom: 2px solid var(--texto-links-hover); margin: 1.2em 10% 0.8em 10%; padding: 12pt 0; }
h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bg-topo-azul); margin-top: 2.5rem; margin-bottom: 0.5rem; }
kbd { display: inline; display: inline-block; min-width: 1em; padding: .2em .4em; font: normal .8em/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-weight: 600; text-align: center; text-decoration: none; border-radius: .3em; user-select: none; background: rgb(250, 250, 250); color: rgb(50, 50, 50); text-shadow: 0 0 2px rgb(255, 255, 255); box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9); }
mark { background-color: #FFFFCC; color: #000000; text-decoration: none; padding-left: 4px; padding-right: 4px; border-radius: 4px; }
.next, .prev { display: block; margin-top: 2rem; }
.next { float: left; } .prev { float: right; }
.next a, .prev a { display: inline-block; padding: 8px 14px; border-radius: 6px; font-family: var(--font-stack); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 2px solid var(--texto-suave); color: var(--texto-suave) !important; transition: all 0.15s ease; }
.next a:hover, .prev a:hover { border-color: var(--texto-links-hover); color: var(--texto-links-hover) !important; text-decoration: none !important; }
#content hr { display: block; margin: 1.5rem 0 2rem 0; padding: 0; text-align: center; border-width: 0; background-color: transparent; clear: both; }
#content hr:after { font-size: 18pt; color: var(--texto-principal); content: "⁂"; letter-spacing: 0; line-height: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }


/* ==========================================================================
   RESPONSIVIDADE: COLUNAS FLUIDAS - BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 950px) {
  #content { float: none !important; width: 100% !important; padding-right: 0 !important; }
  #sidebar { float: none !important; width: 100% !important; border-top: 2px solid var(--borda-suave) !important; padding: 2rem 0.5rem 0 0.5rem !important; margin-top: 3rem !important; }
  #sidebar .sidebar-widgets { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 550px) { #header { padding: 1.5rem !important; } }


/* ==========================================================================
   BR-LINUX - navegação no menu do cabeçalho da página
   ========================================================================== */
.header-navigation {
  width: 100%;
  margin-bottom: 2.5rem; 
}

.header-navigation .menu-item {
  display: inline-flex;
  align-items: center;
  font-size: 1.0rem;      
  font-weight: 600;       
  color: var(--texto-links);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
  cursor: pointer;
}
.header-navigation .menu-item:hover {
  color: var(--texto-links-hover);
  text-decoration: none;
}

/* Audited Immutable Icon Box Locks */
.header-navigation .menu-item::before {
  content: "";
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  margin-right: 0.5rem;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0 !important;
}

.header-navigation .item-folder::after,
.header-navigation .item-network::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 0.35rem;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform 0.2s ease;
}

.nav-toggle-input {
  display: none !important;
}

/* DESKTOP HOVER ENGINES */
@media screen and (min-width: 768px) {
  .header-navigation .main-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important; 
    gap: 1.75rem !important;
  }

  .header-navigation .main-menu .menu-root-item {
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
  }

  .header-navigation .dropdown-trigger {
    position: relative;
    display: inline-flex !important;
  }

  .header-navigation .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid var(--borda-suave);
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    list-style: none !important;
    margin: 0 !important;
    z-index: 9999;
  }

  .header-navigation .tier-1 {
    top: 100%;
    left: auto;
    right: 0;
    min-width: 195px;
    padding: 0.5rem 0;
  }

  .header-navigation .tier-1::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
    background: transparent;
  }

  .header-navigation .tier-2 {
    top: -6px !important;
    left: auto;
    right: 100%;
    min-width: 195px;
    padding: 0.5rem 0;
    padding-left: 8px; 
  }

  .header-navigation .tier-2::before {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 12px;
    height: 100%;
    background: transparent;
  }

  .header-navigation .level-1:hover > .tier-1,
  .header-navigation .level-2:hover > .tier-2 {
    display: block;
  }

  .header-navigation .level-1:hover > .item-folder::after { transform: rotate(180deg); }
  .header-navigation .level-2:hover > .item-network::after { transform: rotate(90deg); }
}

/* MOBILE ACCORDION ENGINE */
@media screen and (max-width: 767px) {
  .header-navigation .main-menu {
    list-style: none !important;
    padding: 0 0.5rem !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important; 
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 1.25rem !important;
  }

  .header-navigation .main-menu .dropdown-menu li {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
  }

  .header-navigation .main-menu .menu-root-item,
  .header-navigation .main-menu .dropdown-trigger {
    display: inline-flex !important;
    width: auto !important; 
    position: relative;
  }

  .header-navigation .menu-item {
    font-size: 1.0rem; 
    width: auto;
    padding: 0.25rem 0;
  }

  .header-navigation .dropdown-menu {
    display: none;
    position: absolute !important; 
    top: 100%;
    left: auto;
    right: 0;
    width: 100% !important;
    min-width: 240px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--borda-suave) !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
    z-index: 9999;
  }

  .nav-toggle-input:checked ~ .dropdown-menu {
    display: block !important;
  }

  .nav-toggle-input:checked ~ .menu-item::after {
    transform: rotate(180deg) !important;
  }
  
  .nav-toggle-input:checked ~ .sub-item::after {
    transform: rotate(90deg) !important;
  }
}

/* SUBMENU */
.header-navigation .sub-item {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--texto-suave) !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
  cursor: pointer;
}

.header-navigation .sub-item::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.6rem;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}

.header-navigation .sub-item:hover {
  background-color: var(--bg-caixas) !important;
  color: var(--texto-links-hover) !important;
  text-decoration: none !important;
}

#sidebar .feeds-list a {
  display: inline-flex;
  align-items: center;
  line-height: 2.0;
  font-weight: 500;
  color: var(--texto-links);
}
#sidebar .feeds-list a:hover { color: var(--texto-links-hover); text-decoration: none; }

#sidebar .feeds-list a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0;
  filter: drop-shadow(0px 1px 0px rgba(0, 0, 0, 0.05));
  transition: all 0.15s ease;
}


/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.site-footer {
  clear: both !important;
  margin-top: 5rem !important;
  padding: 3.5rem 0 2.5rem 0 !important;
  border-top: 1px solid var(--borda-suave) !important;
  width: 100% !important;
}

.site-footer .footer-columns-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 2.5rem !important;
  margin-bottom: 3rem !important;
}

.site-footer .footer-column {
  flex: 1 1 calc(25% - 2.5rem) !important;
  min-width: 220px !important;
}

.site-footer .branding-summary {
  flex: 1 1 calc(40% - 2.5rem) !important;
}

.site-footer .footer-column h3 {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--texto-principal) !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
}

.site-footer .footer-column .nested-header {
  margin-top: 1.75rem !important;
}

.site-footer .footer-column p {
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: var(--texto-suave) !important;
  margin: 0 !important;
}

.site-footer .footer-column ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .footer-column li {
  list-style-type: none !important;
  margin-bottom: 0.6rem !important;
  font-size: 0.9rem !important;
}

.site-footer .footer-column a {
  color: var(--texto-links) !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.site-footer .footer-column a:hover {
  color: var(--texto-links-hover) !important;
  text-decoration: underline !important;
}

/* Legal Disclaimers & Attribution Row Layer */
.site-footer .footer-legal-attributions {
  border-top: 1px solid var(--borda-suave) !important;
  padding-top: 1.75rem !important;
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  color: var(--texto-suave) !important;
}

.site-footer .footer-legal-attributions p {
  margin: 0 0 0.5rem 0 !important;
}

.site-footer .footer-legal-attributions a {
  color: var(--texto-principal) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

.site-footer .footer-legal-attributions a:hover {
  color: var(--texto-links-hover) !important;
}

.site-footer .footer-legal-attributions .trademark-notice {
  font-style: italic !important;
  opacity: 0.85 !important;
}

/* BREAKPOINTS DO RODAPÉ (RESPONSIVIDADE) */
@media screen and (max-width: 767px) {
  .site-footer {
    padding-top: 2.5rem !important;
  }
  .site-footer .footer-columns-grid {
    flex-direction: column !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
  }
  .site-footer .footer-column {
    width: 100% !important;
    flex: none !important;
  }
}