.jrb-rootbeer-theme .article h1,
.jrb-rootbeer-theme .article h2,
.jrb-rootbeer-theme .article h3,
.jrb-rootbeer-theme .article h4,
.jrb-rootbeer-theme .article h5,
.jrb-rootbeer-theme .article h6,
.jrb-rootbeer-theme .entry-title,
.jrb-rootbeer-theme .sidebar h2,
.jrb-rootbeer-theme .sidebar h3 {
  color: var(--rb-dark);
  font-family: var(--rb-body-font);
  letter-spacing: 0.02em;
}

.jrb-rootbeer-theme .article h2 {
  border-left: 6px solid var(--rb-caramel);
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(255, 235, 196, 0.8), rgba(255, 235, 196, 0));
}

.jrb-rootbeer-theme .entry-title {
  margin: 14px 0 10px 14px !important;
}

.jrb-rootbeer-theme .sidebar .widget {
  padding: 18px 18px 20px;
}

.jrb-rootbeer-theme .sidebar .widget > *:last-child {
  margin-bottom: 0;
}


.jrb-rootbeer-theme .sidebar h2,
.jrb-rootbeer-theme .sidebar h3,
.jrb-rootbeer-theme .sidebar .widget-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 14px 8px;
  border-radius: 999px;
  border: 1px solid rgba(90, 51, 24, 0.22);
  background: linear-gradient(180deg, #f8e5c0 0%, #efd1a1 100%);
  box-shadow: 0 4px 12px rgba(61, 35, 20, 0.12);
  color: var(--rb-dark);
  font-size: 0.95em;
}

.jrb-rootbeer-theme .sidebar h2::before,
.jrb-rootbeer-theme .sidebar h3::before,
.jrb-rootbeer-theme .sidebar .widget-title::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: url("../../img/Beer_mug.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.jrb-rootbeer-theme .sidebar .search-edit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.jrb-rootbeer-theme .sidebar .search-edit input[type="text"] {
  min-height: 52px;
  padding: 10px 14px;
}

.jrb-rootbeer-theme .sidebar .search-edit input[type="submit"] {
  min-height: 52px;
  padding: 0 22px;
}

.jrb-rootbeer-theme .button,
.jrb-rootbeer-theme .wp-block-button__link,
.jrb-rootbeer-theme input[type="submit"] {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(61, 35, 20, 0.26);
  background: linear-gradient(180deg, #bf7135 0%, #8f4f1f 100%);
  color: #fff8eb;
  font-weight: 700;
  font-family: var(--rb-body-font);
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(61, 35, 20, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.jrb-rootbeer-theme .button::after,
.jrb-rootbeer-theme .wp-block-button__link::after,
.jrb-rootbeer-theme input[type="submit"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 245, 225, 0.36), rgba(255, 255, 255, 0));
  transition: left 0.4s ease;
}

.jrb-rootbeer-theme .button:hover,
.jrb-rootbeer-theme .wp-block-button__link:hover,
.jrb-rootbeer-theme input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(61, 35, 20, 0.28);
  filter: saturate(1.08) brightness(1.04);
}

.jrb-rootbeer-theme .button:hover::after,
.jrb-rootbeer-theme .wp-block-button__link:hover::after,
.jrb-rootbeer-theme input[type="submit"]:hover::after {
  left: 140%;
}

.jrb-rootbeer-theme blockquote {
  border: 1px solid rgba(143, 79, 31, 0.26);
  border-left: 5px solid var(--rb-caramel);
  background: linear-gradient(180deg, #fff7e9 0%, #fff2dd 100%);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(61, 35, 20, 0.08);
}

.jrb-rootbeer-theme .widget_recent_entries ul li,
.jrb-rootbeer-theme .widget_categories ul li,
.jrb-rootbeer-theme .widget_archive ul li {
  border-bottom: 1px dashed rgba(90, 51, 24, 0.24);
  padding: 8px 0;
}

.jrb-rootbeer-theme .entry-title a {
  background-image: linear-gradient(rgba(185, 114, 53, 0.35), rgba(185, 114, 53, 0.35));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 7px;
  transition: background-size 0.26s ease;
}

.jrb-rootbeer-theme .entry-title a:hover {
  background-size: 100% 7px;
}

.jrb-rootbeer-theme .toc {
  background: linear-gradient(180deg, #fffaf0 0%, #f8ead1 100%);
  border: 1px solid rgba(90, 51, 24, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(61, 35, 20, 0.1);
  padding: 14px 18px;
}

.jrb-rootbeer-theme .toc-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(90, 51, 24, 0.2);
  background: linear-gradient(180deg, #f8e5c0 0%, #efd1a1 100%);
  color: var(--rb-dark);
  font-weight: 700;
}

.jrb-rootbeer-theme .toc-title::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: url("../../img/Beer_mug.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.jrb-rootbeer-theme .toc .toc-list {
  padding-left: 0.4em;
}

.jrb-rootbeer-theme .toc .toc-list ul,
.jrb-rootbeer-theme .toc .toc-list ol {
  margin-top: 6px;
  padding-left: 14px;
  border-left: 1px dashed rgba(143, 79, 31, 0.34);
}

.jrb-rootbeer-theme .toc .toc-list li {
  position: relative;
  margin: 0.45em 0;
  padding-left: 14px;
}

.jrb-rootbeer-theme .toc:not(.tnt-number-detail) .toc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6df 0%, #c98a49 70%, #8f4f1f 100%);
  box-shadow: 0 0 0 1px rgba(90, 51, 24, 0.12);
}

@media (max-width: 640px) {
  .jrb-rootbeer-theme .sidebar .widget {
    padding: 14px 14px 16px;
  }

  .jrb-rootbeer-theme .sidebar .search-edit {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jrb-rootbeer-theme .sidebar .search-edit input[type="submit"] {
    width: 100%;
  }
}

.jrb-rootbeer-theme .toc .toc-list a {
  color: var(--rb-dark);
  text-decoration: none;
}

.jrb-rootbeer-theme .toc .toc-list a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(143, 79, 31, 0.56);
}

.jrb-rootbeer-theme .jrb-admin-profile {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: start;
}

.jrb-rootbeer-theme .jrb-admin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid rgba(90, 51, 24, 0.24);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 250, 236, 0.6), rgba(255, 250, 236, 0) 56%),
    linear-gradient(180deg, #f7e6c6 0%, #e9cfa8 100%);
  box-shadow: 0 4px 10px rgba(61, 35, 20, 0.15);
  position: relative;
}

.jrb-rootbeer-theme .jrb-admin-avatar::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: url("../../img/smile.svg") center / contain no-repeat;
}

.jrb-rootbeer-theme .jrb-admin-bubble {
  position: relative;
  padding: 10px 12px;
  border: 1px solid rgba(90, 51, 24, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7e8 0%, #f7e5c7 100%);
  box-shadow: 0 4px 12px rgba(61, 35, 20, 0.1);
}

.jrb-rootbeer-theme .jrb-admin-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(90, 51, 24, 0.2);
  border-bottom: 1px solid rgba(90, 51, 24, 0.2);
  background: #fcefd8;
  transform: rotate(45deg);
}

.jrb-rootbeer-theme .jrb-admin-name {
  margin: 0;
  font-weight: 700;
  color: var(--rb-dark);
  line-height: 1.3;
}

.jrb-rootbeer-theme .jrb-admin-role {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: rgba(61, 35, 20, 0.72);
}

.jrb-rootbeer-theme .jrb-admin-message {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .jrb-rootbeer-theme .jrb-admin-profile {
    grid-template-columns: 56px 1fr;
    gap: 8px;
  }

  .jrb-rootbeer-theme .jrb-admin-avatar {
    width: 56px;
    height: 56px;
  }
}
