/**
 *
 * Open Journal Systems
 * Copyright (c) 2013-2016 Simon Fraser University Library
 * Copyright (c) 2003-2016 John Willinsky
 *
 *
 **/

@import url(//fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic);
@import url(//fonts.googleapis.com/css?family=Cuprum:400,400italic,700,700italic);

#header {
  background-color: transparent;
  padding-bottom: 40px;
}

#navbar {
  background: #592807;

  /*warna Navbar*/
  background-repeat: repeat-x;
  border: 0;
  height: 40px;
  margin-bottom: 0px;
  margin-left: 0 !important;
  padding: 0;
  text-align: left;
  width: 1200px;
  margin-top: -5px;
  border-top: 2px solid #ffffff;
}

#navbar ul {
  margin: 0;
  padding: 0 0 0 10px;
}

#navbar ul li {
  float: left;
  margin: 0;
  padding: 0;
}

#navbar a,
#navbar a:link,
#navbar a:visited {
  color: white;
  /*warna huruf navbar*/
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 40px;
  margin: 0;
  padding-left: 10px;
  padding-right: 10px;
}

#navbar a::after,
#navbar a::before {
  content: "";
  display: block;
  height: 30px;
  position: absolute;
  top: 5px;
  width: 1px;
  margin-top: -5px;
}

#navbar a:after {
  margin-left: -14px;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.8);
  background: linear-gradient(to top, rgba(0, 0, 0, 0), #fff, rgba(0, 0, 0, 0));
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), #fff, rgba(0, 0, 0, 0));
  background: -ms-linear-gradient(top, rgba(0, 0, 0, 0), #fff, rgba(0, 0, 0, 0));
  background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.01), #fff, rgba(255, 255, 255, 0.01));
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0), #fff, rgba(0, 0, 0, 0));
}

#buttonx {
  /*untuk atur lebar menu */
  width: 209px;
  /*----------------------- */
  border: 1px solid #000;
  border-top: 1px solid #b5aec0;
  padding: 0;
  margin-top: -13px;
  background-color: #F4F2F2;
  color: #333;
  position: absolute;
  list-style: none;
  margin-left: -10px;
}

#buttonx ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

#buttonx li {
  border-bottom: 1px solid #592807;
  margin: 0;
  list-style: none;
  list-style-image: none;
}

#buttonx li a {
  display: block;
  padding: 7px 5px;
  border-left: 5px solid #592807;
  border-right: 5px solid #592807;
  background-color: #F4F2F2;
  color: #592807;
  text-decoration: none;
  width: 100%;
  font-weight: bold;
  list-style: none;
}

html > body #buttonx li a {
  width: auto;
}

#buttonx li a:hover {
  border-left: 5px solid #6B3512;
  border-right: 5px solid #F4F2F2;
  background-color: #F4F2F2;
  color: #1b1b1b;
}

#navbar a::before {
  background: -moz-linear-gradient(center top, rgba(0, 0, 0, 0), #000, rgba(0, 0, 0, 0)) rgba(0, 0, 0, 0);
  margin-left: -7px;
  opacity: 0.15;
}

#navbar a::after {
  background: -moz-linear-gradient(center top, rgba(255, 255, 255, 0.01), #fff, rgba(255, 255, 255, 0.01)) rgba(0, 0, 0, 0);
  margin-left: -9px;
  opacity: 0.35;
}

#navbar li:first-child a::after,
#navbar li:first-child a::before {
  background-color: #000;
  display: none;
}

#navbar a:hover {
  background: #3D1B05;
  /*warna pointer navbar*/
  text-shadow: 1px 1px #000;
  color: #FFFFFF;
  /*warna shadown text menu navbar*/
}

#body,
#header,
#navbar,
#sidebar,
#main {
  display: inline-block !important;
}

#leftSidebar div.block span.blockTitle,
#rightSidebar div.block span.blockTitle,
#sidebarDevelopedBy.block,
#sidebarHelp.block {
  background: url(stripes.png) #ccc;
}

#body,
#main,
body {
  background-color: #fff;
}

#additionalHomeContent,
#announcementsHome,
#navbar {
  clear: both;
}

#container,
#headerTitle {
  margin: 0 auto;
  display: inline-block;
}

#announcements,
#container {
  width: auto;
}

#body,
#container,
#headerTitle,
#headerTitle img {
  display: inline-block;
}

#header,
#navbar,
ul.sidemenu li:before {
  display: none;
}

body {
  color: #222;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

a:active,
a:link,
a:visited {
  color: #592807;
  /*warna link visited, seperti warna link history klik dan tulisan di sidebar*/
  text-decoration: none;
}

#navbar a:active,
a:hover {
  background: rgba(0, 0, 0, 0);
  text-decoration: underline;
}

#container {
  background-color: #F4F2F2;
  /*background web*/
  min-width: 0 !important;
  text-align: center;
}

#headerTitle {
  width: 1200px;
}

#header h1 {
  color: #111;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 120px;
  padding: 0;
  text-shadow: 1px 1px #fff;
}

#headerTitle img {
  float: left;
  margin-right: 20px;
  height: 100%;
  width: 100%;
}

#body {
  margin: -40px auto 0;
  width: 1200px !important;
  padding-bottom: 20px;
}

#main {
  float: left;
  margin-left: 0;
  margin-right: 0 !important;
  overflow: visible !important;
  padding: 0;
  position: relative;
  width: 805px;
  display: none;
}

#content h1,
#content h2,
#content h3,
#content h4,
#main > h1,
#main > h2,
#main > h3,
#main > h4 {
  color: #592807;
  font-family: Cuprum, sans-serif;
  font-weight: 700;
}

#content h1 { font-size: 1.5rem; line-height: 1.2; }
#content h2, #main > h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
#content h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
#content h4 { font-size: 1rem; font-weight: 600; line-height: 1.2; }

#content {
  border-top: 0 dotted #000;
}

ul.sidemenu li a,
ul.sidemenu li:first-child a {
  border-top: 1px solid white;
}

ul.sidemenu {
  padding-left: 0 !important;
  margin: -10px -10px 0;
}

ul.sidemenu li {
  padding: 0;
}

ul.sidemenu li a,
a.visited {
  background: linear-gradient(45deg, #3D1B05 10%, #592807 100%);

  /*warna background sidemenu*/
  /*border-bottom: 1px solid #592807;*/
  color: white;
  /*warna huruf*/
  /*font-weight: 700;*/
  display: block;
  padding: 0.66em 10px 0.6em 13px;
  text-decoration: none;
  transition: 0.5s;
}

#leftSidebar {
  display: none;
  border-right: 1px solid #ccc;
  float: left;
  width: 0;
}

ul.sidemenu li:last-child a {
  border-bottom: 0;
}

ul.sidemenu li a:hover {
  background: linear-gradient(45deg, #592807 10%, #3D1B05 100%);
  /*hover side-menu*/
  text-decoration: underline;
  padding: 15px;
}

#breadcrumb {
  margin: 0 20px;
  padding: 0.7em 0;
  border-bottom: 1px dotted #333;
}

#content,
#main > h2 {
  padding-left: 20px;
  padding-right: 20px;
}

#cpr {
  border: 0 #fff;
}

#leftSidebar,
#rightSidebar {
  font-size: 0.875rem;
  height: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  padding: 50px 10px 10px;
}

#rightSidebar {
  border-left: 1px solid #ccc;
  float: right;
  box-sizing: border-box;
  flex: 0 0 22%;
  min-width: 268px;
  width: 22%;
  background: transparent none;
  /*background rightbar*/
}

.sidemenu.full {
  margin-top: -13px !important;
}

#leftSidebar div.block,
#rightSidebar div.block {
  border: 0;
  color: inherit;
  padding: 0 0 10px;
  margin-bottom: 10px;
}

#leftSidebar div.block span.blockTitle,
#rightSidebar div.block span.blockTitle,
#sidebarDevelopedBy.block,
#sidebarHelp.block {
  color: white;
  font-weight: bold;
  /*warna huruf block title*/
  display: block;
  letter-spacing: 0;
  margin-bottom: 10px;
  background: radial-gradient(circle, #592807 0%, #3D1B05 100%);
  /*warna block-title sidebar*/
  padding: 0.4em 10px !important;
  text-transform: uppercase;
  margin-left: -12px;
  margin-right: -12px;
}

#sidebarDevelopedBy.block a,
#sidebarHelp.block a {
  color: white;
  /*warna block-title sidebar*/
  text-transform: uppercase;
  text-decoration: underline;
}

#content h4 a,
input[type="button"],
input[type="submit"],
table.tocArticle a {
  text-decoration: none;
}

.block p {
  margin: 0 !important;
}

.block ul {
  list-style: none;
  padding-left: 1.2em;
}

.block li:before {
  content: "\00BB";
  display: block;
  height: 0;
  left: -1em;
  position: relative;
  width: 0;
}

.banner-img,
.indexers a,
.intro {
  display: inline-block;
}

#sidebarFontSize.block {
  padding-bottom: 35px !important;
}

table.tocArticle:nth-child(2n + 1) tr {
  background-color: #F4F2F2;
}

table.tocArticle:nth-child(2n) tr {
  background-color: #FFFFFF;
}

table.tocArticle tr:hover {
  background-color: #E8DDD6;
}

table.tocArticle td {
  padding: 5px 10px;
}

.tocTitle {
  font-weight: 700;
}

.tocAuthors {
  font-style: italic;
}

td.tocGalleys {
  padding-right: 10px;
}

#content ul.menu {
  margin: 0;
}

#content ul.menu li {
  background-image: linear-gradient(to bottom, #592807 0, #3D1B05 100%);
  background-repeat: repeat-x;
  border-radius: 3px;
  padding: 5px 8px;
}

#content ul.menu li.current,
#content ul.menu li:hover {
  background-image: linear-gradient(to bottom, #592807 0, #3D1B05 100%);
  background-repeat: repeat-x;
}

#content ul.menu a {
  color: #fff;
}

#content ul.menu a:hover {
  color: #fff;
}

input.textField,
input.uploadField,
select.selectMenu,
textarea.textArea {
  background-color: #F4F2F2;
  border: 1px solid #aaa;
  color: #222;
  padding: 0.3em;
}

input.textField:focus,
input.uploadField:focus,
select.selectMenu:focus,
textarea.textArea:focus {
  border: 2px solid #592807;
}

input[type="button"],
input[type="submit"] {
  background-image: linear-gradient(to bottom, #ddd 0, #c4c4c4 100%);
  background-repeat: repeat-x;
  border: 1px solid #9d9d9d;
  border-radius: 2px;
  color: #444;
  padding: 3px 5px;
  text-shadow: 1px 1px #f6f6f6;
}

input[type="button"]:hover,
input[type="submit"]:hover {
  background-image: linear-gradient(to bottom, #c4c4c4 0, #aaa 100%);
  background-repeat: repeat-x;
  cursor: pointer;
  text-decoration: none;
}

input.defaultButton {
  color: #2b2b2b;
  font-weight: 700;
}

div.separator {
  border-bottom: 1px dotted #222;
}

.banner-img {
  margin-bottom: 10px;
}

.banner-img:hover {
  opacity: 0.7;
  filter: alpha(opacity=70);
}

.indexers {
  margin: 10px 0;
}

.indexers a {
  border: 2px solid transparent;
  padding: 5px 3px;
}

.indexers a:hover {
  background: 0 0;
  border: 2px dotted #592807;
  opacity: 0.75;
  filter: alpha(opacity=75);
}

a img {
  border: 0;
}

div.thickSeparator {
  margin-bottom: 10px;
}

span.highlight {
  background-color: #ffff80;
}

.intro {
  background-color: #F4F2F2;
  border: 1px dotted #592807;
  padding: 10px;
}

.intro ul {
  margin: 0;
  padding-left: 1em;
}

.highlight {
  background-color: ivory;
  border: 1px dashed #b5aec0;
  padding-bottom: 6px;
  padding-top: 6px;
}

.issueCoverImage {
  border: 1px solid #fff;
  margin: 0;
  padding: 0;
}

.issueCoverImage img {
  border: 0 solid #fff;
  box-shadow: 4px 4px 6px #aaa;
  margin: 1em 2em 1em 0;
  width: 100px;
}

.cover-image-intro {
  border: 1px solid #eee;
  box-shadow: 1px 1px 12px #ccc;
  margin: 0 0 0 1em;
  width: 100px;
}

.color-box {
  display: block;
  float: left;
  height: 40px;
  margin-right: 5px;
  width: 60px;
}

.color1 {
  background-color: #6B3512;
}

.color1-light {
  background-color: #F4F2F2;
}

.color2 {
  background-color: #F4F2F2;
}

.color2-light {
  background-color: #ffedcc;
}

.color-grey-light {
  background-color: #F4F2F2;
}

#journalDescription {
  float: left;
  width: 60%;
}

#homepageImage {
  float: right;
  width: 38%;
  margin-bottom: 10px;
}

#homepageImage img {
  height: auto;
  max-width: 100%;
  margin-top: -1em;
}

#setupForm #homepageImage,
#setupForm #journalDescription {
  width: 100%;
}

#setupForm #homepageImage img {
  margin-left: 0;
  margin-top: 0;
}

#body {
  display: none;
}

#setupForm .uploadField {
  width: 400px !important;
  margin-right: 10px;
  float: left !important;
}

#sidebar {
  float: right;
}

.tocDOI,
.tocAuthors {
  background: url(/public/site/images/rizal88/icon-group.png) 1px 2px no-repeat rgba(0, 0, 0, 0);
  font-style: italic;
  margin-top: 4px;
  padding-bottom: 5px;
  padding-left: 30px;
}

a:link,
a:visited,
a:active {
  color: #592807;
}

#container {
  background: #F4F2F2;
  /*background web*/
  min-width: 0 !important;
  text-align: center;
}

#pageHeaderTitle img,
#journalTitleAndLogo img {
  width: 100%;
  height: 100%;
}

#pageFooter {
  background: rgba(41, 72, 23, 0.08);
  padding: 20px;
}

#homepageImage {
  box-shadow: 2px 2px 5px 2px #888888;
}

.deskripsi {
  /* border: 9px #002060 ridge; */
  padding: 10px;
  background-color: #F4F2F2;
  text-align: left;
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
}

.deskripsi td {
  vertical-align: top;
  padding: 4px 6px;
}

.deskripsi td.label {
  font-weight: bold;
  white-space: nowrap;
}

.deskripsi td.colon {
  width: 10px;
  text-align: center;
}

/* Accessible color accents: white text sits on dark green; orange uses dark text. */
#body,
body {
  background-color: #fff;
}

#navbar a:hover,
#navbar a:focus {
  color: #FFFFFF;
}

#buttonx li a:hover,
#content ul.menu li {
  color: #1b1b1b;
  background-color: #F4F2F2;
}

/* Keep the main column before the sidebar despite their source order in OJS. */
#body {
  align-items: flex-start;
  display: flex !important;
  flex-direction: row;
  gap: 24px;
}

#main {
  box-sizing: border-box;
  display: block !important;
  flex: 1 1 0;
  float: none;
  font-size: 0.875rem;
  min-width: 0;
  order: 1;
  width: auto;
}

#main #content {
  font-size: 0.875rem;
}

#main #breadcrumb {
  font-size: 0.8rem;
}

#sidebar {
  box-sizing: border-box;
  display: block !important;
  flex: 0 0 22%;
  float: none;
  min-width: 268px;
  order: 2;
  width: 22%;
}

@media (max-width: 1024px) {
  #navbar {
    box-sizing: border-box;
    display: block !important;
    height: auto;
    margin: 0;
    max-width: 100%;
    overflow: visible;
    position: relative;
    width: 100%;
  }

  #navbar ul {
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 30px;
    width: 100%;
  }

  #navbar ul::-webkit-scrollbar {
    display: none;
  }

  #navbar::before,
  #navbar::after {
    align-items: center;
    background: rgba(32, 56, 18, 0.45);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    font-size: 1.75rem;
    height: 36px;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    z-index: 2;
  }

  #navbar::before {
    content: "‹";
    left: 2px;
  }

  #navbar::after {
    content: "›";
    right: 2px;
  }

  #navbar ul li {
    float: none;
    flex: 0 0 auto;
  }

  #navbar a,
  #navbar a:link,
  #navbar a:visited {
    box-sizing: border-box;
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    padding: 10px 12px;
    text-align: center;
    white-space: nowrap;
  }

  #navbar a::before,
  #navbar a::after {
    display: none;
  }

  #container,
  #headerTitle,
  #body {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
  }

  #body {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    margin: 0 auto;
  }

  #main {
    box-sizing: border-box;
    display: block !important;
    float: none;
    order: 1 !important;
    width: 100%;
  }

  #sidebar {
    box-sizing: border-box;
    display: block !important;
    float: none;
    order: 2 !important;
    width: 100%;
  }

  #rightSidebar,
  #leftSidebar {
    box-sizing: border-box;
    float: none;
    height: auto;
    overflow: visible;
    order: 2;
    padding: 16px;
    min-width: 0;
    width: 100%;
    flex: 0 0 auto;
  }

  #content,
  #main > h2 {
    padding-left: 16px;
    padding-right: 16px;
  }

  #content h1 { font-size: 1.5rem; }
  #content h2, #main > h2 { font-size: 1.25rem; }
  #content h3 { font-size: 1.125rem; }
  #content h4 { font-size: 1rem; }

  #journalDescription,
  #homepageImage {
    float: none;
    width: 100%;
  }

  table {
    max-width: 100%;
  }
}


/* =========================================================
   Accessible brand palette
   Primary: #592807 | Secondary: #AA6238 (decorative accent)
   Neutral: #F4F2F2 | Dark text: #2B160B
   Contrast target: WCAG AAA (7:1 for normal text)
   ========================================================= */
:root {
  --brand-primary: #592807;
  --brand-primary-dark: #3D1B05;
  --brand-secondary: #AA6238;
  --brand-secondary-accessible: #6B3512;
  --surface: #F4F2F2;
  --surface-white: #FFFFFF;
  --text-primary: #21140D;
  --text-on-dark: #FFFFFF;
  --focus-ring: #592807;
}

/* Keep the page surround distinct from both the body and navbar. */
html {
  background-color: #E8DDD6;
}
body {
  background-color: #E8DDD6;
  color: var(--text-primary);
}
#container {
  background-color: var(--surface);
  background-image: none;
}
#body,
#main,
#content {
  background-color: var(--surface-white);
  color: var(--text-primary);
}

/* Navigation: dark primary background with high-contrast white text. */
#navbar {
  background: var(--brand-primary);
  border-top-color: #E8DDD6;
}
#navbar a,
#navbar a:link,
#navbar a:visited {
  color: var(--text-on-dark);
}
#navbar a:hover,
#navbar a:focus,
#navbar a:focus-visible {
  background: var(--brand-primary-dark);
  color: #FFFFFF;
  text-shadow: none;
  outline: 3px solid #FFFFFF;
  outline-offset: -3px;
}

/* Links and headings use the dark primary, not the lighter secondary. */
a:link,
a:visited,
a:active,
#content h1,
#content h2,
#content h3,
#content h4,
#main > h1,
#main > h2,
#main > h3,
#main > h4 {
  color: var(--brand-primary);
}
a:hover,
a:focus-visible {
  color: var(--brand-primary-dark);
  text-decoration: underline;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Sidebar/menu backgrounds are dark enough for white text at AAA. */
ul.sidemenu li a,
ul.sidemenu li:first-child a,
#leftSidebar div.block span.blockTitle,
#rightSidebar div.block span.blockTitle,
#sidebarDevelopedBy.block,
#sidebarHelp.block,
#content ul.menu li,
#content ul.menu li.current,
#content ul.menu li:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
}
ul.sidemenu li a:hover,
ul.sidemenu li a:focus-visible {
  background: var(--brand-primary-dark);
  color: #FFFFFF;
}
#sidebarDevelopedBy.block a,
#sidebarHelp.block a,
#content ul.menu a,
#content ul.menu a:hover {
  color: #FFFFFF;
}

/* Dropdown items: pale background and dark text; hover remains readable. */
#buttonx {
  background-color: #FFFFFF;
  border-color: var(--brand-primary);
  color: var(--text-primary);
}
#buttonx li {
  border-bottom-color: var(--brand-primary);
}
#buttonx li a {
  background-color: var(--surface);
  border-left-color: var(--brand-primary);
  border-right-color: var(--brand-primary);
  color: var(--brand-primary);
}
#buttonx li a:hover,
#buttonx li a:focus-visible {
  background-color: #E8DDD6;
  border-left-color: var(--brand-primary);
  border-right-color: var(--brand-primary);
  color: var(--brand-primary-dark);
}

/* Forms and controls */
input.textField,
input.uploadField,
select.selectMenu,
textarea.textArea {
  background-color: #FFFFFF;
  border-color: #592807;
  color: #21140D;
}
input.textField:focus,
input.uploadField:focus,
select.selectMenu:focus,
textarea.textArea:focus,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
  border: 2px solid #592807;
  outline: 2px solid #592807;
  outline-offset: 2px;
}
input[type="button"],
input[type="submit"] {
  background: #F4F2F2;
  border: 1px solid #592807;
  color: #592807;
  text-shadow: none;
}
input[type="button"]:hover,
input[type="submit"]:hover {
  background: #E8DDD6;
  color: #3D1B05;
}

/* Tables and supporting panels */
table.tocArticle:nth-child(2n + 1) tr,
table.tocArticle:nth-child(2n) tr {
  background-color: #FFFFFF;
}
table.tocArticle tr:hover {
  background-color: #F4F2F2;
}
#pageFooter {
  background-color: #E8DDD6;
  color: #21140D;
}
.deskripsi {
  background-color: #F4F2F2;
  color: #21140D;
}
.intro {
  background-color: #F4F2F2;
  border-color: #592807;
  color: #21140D;
}

/* The lighter brand secondary #AA6238 is retained for decorative accents.
   For text on light surfaces, use #6B3512 to preserve AAA contrast. */
.color1 { background-color: #592807; }
.color1-light { background-color: #F4F2F2; }
.color2 { background-color: #AA6238; }
.color2-light { background-color: #E8DDD6; }
.color-grey-light { background-color: #F4F2F2; }

/* Responsive navigation cue also uses high-contrast colors. */
@media (max-width: 1024px) {
  #navbar::before,
  #navbar::after {
    background: #3D1B05;
    color: #FFFFFF;
  }
}


/* =========================================================
   ADIPATI OJS 2 — Accessible warm secondary theme
   Requested secondary: #AA6238
   Surface: #F4F2F2
   Outer page background intentionally differs from #navbar.
   WCAG AAA normal-text target: contrast ratio >= 7:1.
   ========================================================= */
:root {
  --adipati-navbar: #592807;
  --adipati-secondary: #AA6238;
  --adipati-secondary-dark: #653416;
  --adipati-surface: #F4F2F2;
  --adipati-outer: #E8DDD6;
  --adipati-text: #21140D;
  --adipati-white: #FFFFFF;
}

/* Outside #body: warm pale background, distinct from dark navbar. */
html,
body {
  background-color: var(--adipati-outer);
  color: var(--adipati-text);
}

/* Page shell and body surface. */
#container {
  background: var(--adipati-surface);
  background-image: none;
}
#body,
#main,
#content {
  background-color: var(--adipati-white);
  color: var(--adipati-text);
}

/* Navbar remains dark so its white text meets AAA. */
#navbar {
  background-color: var(--adipati-navbar);
  background-image: none;
  border-top-color: var(--adipati-outer);
}
#navbar a,
#navbar a:link,
#navbar a:visited,
#navbar a:hover,
#navbar a:focus,
#navbar a:focus-visible {
  color: var(--adipati-white);
}
#navbar a:hover,
#navbar a:focus,
#navbar a:focus-visible {
  background-color: #3D1B05;
  text-shadow: none;
  outline: 3px solid #FFFFFF;
  outline-offset: -3px;
}

/* Use dark text colors for links/headings on pale backgrounds. */
body,
#body,
#main,
#content,
#breadcrumb,
#rightSidebar,
#leftSidebar {
  color: var(--adipati-text);
}
a:link,
a:visited,
a:active,
#content h1,
#content h2,
#content h3,
#content h4,
#main > h1,
#main > h2,
#main > h3,
#main > h4 {
  color: #592807;
}
a:hover,
a:focus-visible {
  color: #3D1B05;
  text-decoration: underline;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Secondary #AA6238 is used as a background/accent, not small text.
   White text on #AA6238 is below AAA; use the darker accessible variant
   whenever text must sit on a warm-brown panel. */
ul.sidemenu li a,
ul.sidemenu li:first-child a,
#leftSidebar div.block span.blockTitle,
#rightSidebar div.block span.blockTitle,
#sidebarDevelopedBy.block,
#sidebarHelp.block,
#content ul.menu li,
#content ul.menu li.current,
#content ul.menu li:hover {
  background: #592807;
  color: #FFFFFF;
}
ul.sidemenu li a:hover,
ul.sidemenu li a:focus-visible {
  background: #3D1B05;
  color: #FFFFFF;
}
#sidebarDevelopedBy.block a,
#sidebarHelp.block a,
#content ul.menu a,
#content ul.menu a:hover {
  color: #FFFFFF;
}

/* Dropdowns, forms, and buttons. */
#buttonx,
#buttonx li a,
input.textField,
input.uploadField,
select.selectMenu,
textarea.textArea {
  background-color: var(--adipati-surface);
  color: #592807;
}
#buttonx {
  border-color: #592807;
}
#buttonx li {
  border-bottom-color: #592807;
}
#buttonx li a {
  border-left-color: #592807;
  border-right-color: #592807;
}
#buttonx li a:hover,
#buttonx li a:focus-visible {
  background-color: #E8DDD6;
  color: #3D1B05;
}
input.textField,
input.uploadField,
select.selectMenu,
textarea.textArea {
  border-color: #592807;
}
input.textField:focus,
input.uploadField:focus,
select.selectMenu:focus,
textarea.textArea:focus,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
  border: 2px solid #592807;
  outline: 2px solid #592807;
  outline-offset: 2px;
}
input[type="button"],
input[type="submit"] {
  background: var(--adipati-surface);
  border: 1px solid #592807;
  color: #592807;
  text-shadow: none;
}
input[type="button"]:hover,
input[type="submit"]:hover {
  background: #E8DDD6;
  color: #3D1B05;
}

/* Content panels and alternating rows. */
table.tocArticle:nth-child(2n + 1) tr,
table.tocArticle:nth-child(2n) tr {
  background-color: #FFFFFF;
}
table.tocArticle tr:hover {
  background-color: var(--adipati-surface);
}
.deskripsi,
.intro {
  background-color: var(--adipati-surface);
  color: var(--adipati-text);
  border-color: #592807;
}
#pageFooter {
  background-color: var(--adipati-outer);
  color: var(--adipati-text);
}

/* Color swatches: use the requested secondary as a surface accent.
   For small text on light surfaces, use #653416 (AAA-compatible). */
.color1 { background-color: #592807; }
.color1-light { background-color: #F4F2F2; }
.color2 { background-color: #AA6238; }
.color2-light { background-color: #E8DDD6; }
.color-grey-light { background-color: #F4F2F2; }

/* Mobile navigation controls. */
@media (max-width: 1024px) {
  #navbar::before,
  #navbar::after {
    background: #3D1B05;
    color: #FFFFFF;
  }
}


/* FINAL OVERRIDE: dark outer background requested (#592807) */
html,
body,
#container,
#headerTitle {
  background: #592807 !important;
  background-color: #592807 !important;
  background-image: none !important;
  color: #F4F2F2;
}

/* Keep navbar visually distinct from the outer background. */
#navbar {
  background: #AA6238 !important;
  background-color: #AA6238 !important;
  background-image: none !important;
  color: #FFFFFF !important;
}

/* Light content panels preserve readability. */
#body,
#main,
#content,
#journalDescription,
#homepageImage,
#rightSidebar,
#leftSidebar {
  background-color: #F4F2F2 !important;
  background-image: none !important;
  color: #21140D;
}

/* Distinct footer panel */
#pageFooter {
  background-color: #E8DDD6 !important;
  color: #21140D !important;
}
