/* Wikipedia-inspired Theme CSS */

/* Typography - Wikipedia uses Linux Libertine and fallbacks */
body {
  font-family: "Linux Libertine", "Georgia", "Times", serif;
  font-size: 14px;
  line-height: 1.6;
  color: #000;
  background: #fff;
  margin: 0;
  padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Linux Libertine", "Georgia", "Times", serif;
  font-weight: normal;
  margin: 0.5em 0;
  color: #000;
  border-bottom: none;
}

h1 {
  font-size: 2.3em;
  margin-bottom: 0.25em;
  border-bottom: 3px solid #a2a9b1;
  padding-bottom: 0.25em;
}

h2 {
  font-size: 1.8em;
  margin-top: 1em;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 0.25em;
}

h3 {
  font-size: 1.4em;
  margin-top: 0.8em;
}

h4 {
  font-size: 1.2em;
  margin-top: 0.6em;
}

/* Links */
a {
  color: #0645ad;
  text-decoration: none;
}

a:visited {
  color: #0b0080;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: #faa700;
}

/* Main content wrapper */
.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
}

/* Header */
.region-header {
  background: #f8f9fa;
  border-bottom: 1px solid #a2a9b1;
  padding: 0.5em 1em;
}

/* Navigation */
.region-primary-menu {
  background: #f8f9fa;
  border-bottom: 1px solid #a2a9b1;
  padding: 0.5em 1em;
}

.region-primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.region-primary-menu li {
  margin-right: 1.5em;
}

.region-primary-menu a {
  color: #0645ad;
  font-size: 0.9em;
}

/* Sidebar */
.region-sidebar-first,
.region-sidebar-second {
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 1em;
  margin: 1em 0;
}

/* Content area */
.region-content {
  padding: 1em;
  background: #fff;
}

/* Paragraphs */
p {
  margin: 0.5em 0 1em 0;
  text-align: justify;
}

/* Lists */
ul, ol {
  margin: 0.3em 0 1.5em 1.6em;
  padding: 0;
}

li {
  margin-bottom: 0.1em;
}

/* Tables */
table {
  border-collapse: collapse;
  margin: 1em 0;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
}

th, td {
  border: 1px solid #a2a9b1;
  padding: 0.2em 0.4em;
  text-align: left;
}

th {
  background: #eaecf0;
  font-weight: bold;
}

/* Infobox styling */
.infobox {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  float: right;
  margin: 0 0 1em 1em;
  padding: 0.5em;
  width: 22em;
  font-size: 0.9em;
}

.infobox th {
  background: #ccccff;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
}

/* References and citations */
.references {
  font-size: 0.9em;
  margin-top: 2em;
}

.references ol {
  list-style-type: decimal;
}

/* Categories */
.categories {
  border-top: 1px solid #a2a9b1;
  margin-top: 2em;
  padding-top: 1em;
  font-size: 0.9em;
}

/* Footer */
.region-footer {
  background: #f8f9fa;
  border-top: 1px solid #a2a9b1;
  padding: 1em;
  font-size: 0.8em;
  color: #54595d;
}

#block-usacustomercare-site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

#block-usacustomercare-main-menu h2 {
  display: none;
}

#block-usacustomercare-site-branding img {
  width: 20px;
  height: 20px;
}

#block-usacustomercare-main-menu ul:not(.contextual-links) {
  display: flex;
  gap: 10px;
}

#block-usacustomercare-main-menu ul:not(.contextual-links) li {
  list-style: none;
  margin: 0;
}

#block-usacustomercare-main-menu ul:not(.contextual-links) li a{
  text-decoration: underline;
}

#atoc {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 9999;
  transform: rotate(90deg);
  transform-origin: right top 0;
  background-color: rgb(218 218 218) !important;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  text-align: center;
  border: 1px solid #000000;
  text-decoration: none;
  padding: 6px 20px;
  border-radius: 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
  transition: all 0.3s ease;
}

#atoc:hover {
  background-color: rgb(255 255 255) !important;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes blink-animation {
  to {
      visibility: hidden;
  }
}

@-webkit-keyframes blink-animation {
  to {
      visibility: hidden;
  }
}

.highlight {
  animation: blink-animation 1s steps(5,start) infinite;
  -webkit-animation: blink-animation 1s steps(5,start) infinite;
}

.special {
    color: red;
    background-color: lightyellow;
    display: inline-block;
    font-weight: bold;
    font-size: 180%;
}

/* Comment Thread Styles */

.comments__title {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #000;
}

.comments__count {
  background: #eaecf0;
  padding: 0.2em 0.5em;
  border-radius: 12px;
  font-size: 0.8em;
  margin-left: 0.5em;
}

.comment {
  border: 1px solid #a2a9b1;
  border-radius: 8px;
  margin: 1em 0;
  padding: 1em;
  background: #f8f9fa;
  display: flex;
  gap: 1em;
}

.comment--level-1 {
  margin-left: 0;
}

.comment .comment {
  margin-left: 2em;
  border-left: 3px solid #0645ad;
  background: #fff;
}

.comment__picture-wrapper {
  flex-shrink: 0;
}

.comment__picture img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #a2a9b1;
}

.comment__text-wrapper {
  flex: 1;
}

.comment__meta {
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #a2a9b1;
  display: flex;
  gap: 0.5em;
}

.comment__author {
  font-weight: bold;
  margin: 0;
  color: #0645ad;
}

.comment__time {
  font-size: 0.9em;
  color: #54595d;
  margin: 0.2em 0 0 0;
}

.comment__content {
  line-height: 1.6;
}

.add-comment__picture img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #a2a9b1;
}

.add-comment__form {
  flex: 1;
}

/* Comment Show/Hide Functionality */
.has-children {
  position: relative;
}

.show-hide-wrapper {
  margin: 0.5em 0;
}

.show-hide-btn {
  background: #0645ad;
  color: white;
  border: none;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.show-hide-btn:hover {
  background: #0b0080;
}

.indented {
  margin-left: 2em;
  transition: opacity 0.3s ease;
}

.indented.hidden {
  display: none;
}

.comment__content ul.links.inline {
  display: flex;
  gap: 0.5em;
  margin: 0;
}

.comment__content .links li {
  list-style: none;
}

/* Mobile Header Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.wiki-search {
  flex: 1;
  max-width: 400px;
  margin-left: auto;
  margin-right: 1em;
}

.wiki-header-right {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}

main.main-container.container {
  min-height: 550px;
}

.gsc-control-cse {
  padding: 0 !important;
  position: relative;
}

.wiki-search table {
  margin: 0 !important;
  background: #fff !important;
}

.wiki-search th, .wiki-search td {
  border: none !important;
}

.wiki-search .gsc-wrapper {
  position: absolute;
  background: #fff;
  max-width: 395px;
  z-index: 999;
  border: 1px solid;
  max-height: 350px;
  overflow: hidden;
  overflow-y: auto;
}

.wiki-search .gsc-input-box {
  border: unset !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wiki-search  form.gsc-search-box {
  margin: 0 !important;
}

.wiki-search  .gsc-above-wrapper-area {
  display: none;
}

.node__content__header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
  .layout-container {
    margin: 0;
    padding: 0;
  }

  main.main-container.container {
    padding: 0 0.5rem;
  }
  
  .infobox {
    float: none;
    width: 100%;
    margin: 1em 0;
  }
  
  .region-primary-menu ul {
    flex-direction: column;
  }
  
  .region-primary-menu li {
    margin-right: 0;
    margin-bottom: 0.5em;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .wiki-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
  }
  
  .wiki-header-top {
    position: relative;
  }
  
  .mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-backdrop.show {
    display: block;
    opacity: 1;
  }
  
  #block-usacustomercare-main-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  #block-usacustomercare-main-menu.mobile-menu-open {
    right: 0;
  }
  
  #block-usacustomercare-main-menu .visually-hidden {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eaecf0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    position: static;
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
  }
  
  #block-usacustomercare-main-menu ul {
    flex-direction: column;
    margin: 0;
    padding: 20px 0;
  }
  
  #block-usacustomercare-main-menu li {
    margin: 0;
  }
  
  #block-usacustomercare-main-menu a {
    display: block;
    padding: 5px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
  }
  
  #block-usacustomercare-main-menu a:hover {
    background: #f8f9fa;
    color: #0645ad;
    padding-left: 32px;
  }
  
  .mobile-menu-toggle span {
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .wiki-search {
    width: 200px;
  }

  .node__content__header {
    display: flex;
    gap: 0;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .wiki-search {
    width: 150px;
  }
}