/* ============================================ */
/* CITĀDA PASAULE — STABILS CSS                 */
/* Fons + krāsas + droša galvenes centrēšana    */
/* ============================================ */


/* ============================================ */
/* 1. ĀRĒJAIS FONS                              */
/* ============================================ */

body {
  background-color: #111111 !important;
  background-repeat: repeat !important;
  background-position: center top !important;
  background-attachment: fixed !important;
}


/* ============================================ */
/* 2. LAPAS FONS                                */
/* ============================================ */

.site,
#page,
.site-inner,
.site-content,
.content-area,
.site-main {
  background-color: #d8d8bf !important;
}


/* ============================================ */
/* 3. DROŠS DESKTOP PLATUMS                     */
/* ============================================ */

@media screen and (min-width: 769px) {
  .site,
  #page {
    max-width: 1580px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ============================================ */
/* 4. GALVENES CENTRĒŠANA                       */
/* ============================================ */

.site-header,
#masthead {
  text-align: center !important;
  padding-top: 10px !important;
  padding-bottom: 4px !important;
}

/* Logo / header attēla ārējais bloks */
.header-image,
.custom-header,
.wp-custom-header,
.site-header .header-image,
.site-header .custom-header,
.site-header .wp-custom-header {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Ja header attēls ir saitē */
.header-image a,
.custom-header a,
.wp-custom-header a {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Centrē tikai galvenes attēlu, nevis rakstu attēlus */
.header-image img,
.custom-header img,
.wp-custom-header img,
.site-header .header-image img,
.site-header .custom-header img,
.site-header .wp-custom-header img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ============================================ */
/* 5. VIETNES NOSAUKUMS UN APRAKSTS             */
/* ============================================ */

.site-branding {
  text-align: center !important;
  margin: 6px auto 12px !important;
}

/* Vizuāli nolaiž vietnes virsrakstu zemāk */
.site-header .site-title,
.site-header .site-description {
  text-align: center !important;
  position: relative !important;
  top: 24px !important;
}

.site-header .site-title,
.site-header .site-title a {
  color: #5a1f1f !important;
  font-weight: 700 !important;
}

.site-header .site-title {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  line-height: 1.12 !important;
}

.site-header .site-description {
  color: #6a3434 !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  line-height: 1.25 !important;
}

/* ============================================ */
/* 6. NAVIGĀCIJA                                */
/* ============================================ */

.main-navigation,
.primary-navigation {
  text-align: center !important;
  margin-top: 6px !important;
  margin-bottom: 12px !important;
}

.main-navigation ul,
.primary-menu {
  text-align: center !important;
}

.main-navigation li,
.primary-menu li {
  float: none !important;
  display: inline-block !important;
}

.main-navigation a,
.primary-menu a {
  color: #5a3530 !important;
  font-weight: 600 !important;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
  color: #800000 !important;
  font-weight: 700 !important;
}

.main-navigation a:hover,
.primary-menu a:hover {
  color: #9b1c1c !important;
}
/* ============================================ */
/* 7. SATURA APGABALS                           */
/* ============================================ */

.site-content {
  padding-top: 0 !important;
}

.content-area,
.site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.entry-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 10px !important;
}

.entry-title,
.entry-title a,
.page-title {
  color: #6b2525 !important;
  font-weight: 700 !important;
}

.entry-title,
.page-title {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  line-height: 1.18 !important;
}


/* ============================================ */
/* 8. SATURA TEKSTS UN VIRSRaksti               */
/* ============================================ */

.entry-content,
.entry-summary,
.widget,
.widget-area {
  color: #4a3732 !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  margin-top: 20px !important;
  margin-bottom: 10px !important;
  line-height: 1.22 !important;
}

.entry-content p,
.entry-content figure {
  margin-bottom: 12px !important;
}


/* ============================================ */
/* 9. SĀNJOSLA                                  */
/* ============================================ */

.widget-title {
  color: #6b2525 !important;
  font-weight: 700 !important;
  border-color: #8a4a4a !important;
}

.widget a {
  color: #6a3434 !important;
  font-weight: 600 !important;
}

.widget a:hover {
  color: #9b1c1c !important;
}


/* ============================================ */
/* 10. MOBILAIS SKATS                           */
/* ============================================ */

@media screen and (max-width: 768px) {
  body,
  .site,
  #page,
  .site-inner,
  .site-content,
  .content-area,
  .site-main {
    background-color: #d8d8bf !important;
  }

  .site-header,
  #masthead {
    text-align: center !important;
    padding-top: 10px !important;
    padding-bottom: 8px !important;
  }

  .site-branding {
    text-align: center !important;
    margin-top: 6px !important;
    margin-bottom: 14px !important;
  }

  .main-navigation,
  .primary-navigation {
    text-align: center !important;
    margin-top: 8px !important;
    margin-bottom: 14px !important;
  }

  .main-navigation li,
  .primary-menu li {
    display: block !important;
  }

  .entry-header {
    margin-bottom: 12px !important;
  }
}

/* CP RESPONSIVE OUTER MARGINS 2026-10-18 BEGIN */
body.custom-background { background-color:#111 !important; }
/* Citada Pasaule: kompaktas arejas malas, nemainot desktop satura 1200px platumu. */
body.custom-background #page.site {
  background:transparent !important;
}
body.custom-background #page > .site-inner {
  width:calc(100% - 24px) !important;
  max-width:1248px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  background:#d8d8bf !important;
  box-sizing:border-box;
}
body.custom-background #page > .site-inner > #masthead,
body.custom-background #page > .site-inner > #content,
body.custom-background #page > .site-inner > #colophon {
  padding-left:24px !important;
  padding-right:24px !important;
}
@media (max-width:909px) {
  body.custom-background #page > .site-inner {
    width:calc(100% - 16px) !important;
  }
  body.custom-background #page > .site-inner > #masthead,
  body.custom-background #page > .site-inner > #content,
  body.custom-background #page > .site-inner > #colophon {
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

/* CP RESPONSIVE OUTER MARGINS 2026-10-18 END */


/* CP OPTIMIZED BACKGROUND 2026-10-18 BEGIN */
body.custom-background {
  background-image:url("https://citadapasaule.com/wp-content/uploads/2026/10/image-sakumlapa-opt.webp") !important;
}
/* CP OPTIMIZED BACKGROUND 2026-10-18 END */


/* CP SHARED HEADER 2026-10-18 BEGIN */
/* Citada Pasaule: vienota galvene visai vietnei, 2026-10-18 */
body.wp-theme-twentysixteen #masthead .site-branding {
  width:100% !important;
  max-width:1109px !important;
  margin:6px auto 20px !important;
  box-sizing:border-box;
  text-align:center;
}
body.wp-theme-twentysixteen #masthead .site-logo-link {
  display:block;
  width:100%;
  max-width:100%;
}
body.wp-theme-twentysixteen #masthead img.site-logo {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  aspect-ratio:4.5 / 1;
  object-fit:cover;
  object-position:center;
  margin:0 auto !important;
  border-radius:4px;
  box-shadow:0 5px 18px rgba(66,44,32,0.14);
}
body.wp-theme-twentysixteen #masthead .site-title {
  margin:20px 0 8px !important;
  font-family:"Palatino Linotype","Book Antiqua",Palatino,Georgia,serif !important;
  font-size:clamp(30px,4.2vw,56px) !important;
  line-height:1.15 !important;
  font-weight:700 !important;
  font-style:italic !important;
  letter-spacing:0.01em;
  text-shadow:0 1px 0 rgba(255,248,225,0.85),1px 2px 0 rgba(90,31,31,0.12);
  text-align:center;
}
body.wp-theme-twentysixteen #masthead .site-title a {
  color:#5a1f1f !important;
  font-size:inherit !important;
  font-weight:inherit !important;
  font-style:inherit !important;
  line-height:inherit !important;
  text-decoration:none;
}
body.wp-theme-twentysixteen #masthead .site-description {
  display:block !important;
  margin:0 !important;
  color:#6a3434 !important;
  font-family:"Libre Baskerville",Georgia,"Times New Roman",serif !important;
  font-size:clamp(13px,1.35vw,18px) !important;
  font-weight:400 !important;
  line-height:1.5 !important;
  letter-spacing:0.065em;
  text-align:center;
}
body.wp-theme-twentysixteen #masthead .site-description::after {
  content:"\2766";
  display:block;
  width:190px;
  max-width:70%;
  height:28px;
  margin:12px auto 0;
  color:#91704f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:27px;
  font-weight:400;
  font-style:normal;
  line-height:28px;
  letter-spacing:0;
  text-align:center;
  background:linear-gradient(to right,transparent,#9a7657) left center / 65px 1px no-repeat,linear-gradient(to left,transparent,#9a7657) right center / 65px 1px no-repeat;
}
@media (max-width:600px) {
  body.wp-theme-twentysixteen #masthead .site-branding { margin:4px auto 16px !important; }
  body.wp-theme-twentysixteen #masthead img.site-logo { aspect-ratio:2.8 / 1; min-height:110px; }
  body.wp-theme-twentysixteen #masthead .site-title { margin-top:16px !important; letter-spacing:0.01em; }
  body.wp-theme-twentysixteen #masthead .site-description { letter-spacing:0.025em; }
}
/* CP SHARED HEADER 2026-10-18 END */