@charset "UTF-8";
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #3a3526;
  background-color: #faf8f2;
}

html {
  width: 100%;
}

html body {
  width: 100% !important;
  max-width: 100% !important;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: 600;
}

p {
  margin: 0.75rem 0;
}

ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

.svg-inline--fa,
.wp-rich-text-font-awesome-icon svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: #faf8f2;
}

.admin-bar .layout {
  height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .layout {
    height: calc(100vh - 46px);
  }
}
.banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #edebdf 0%, #c4c097 60%, #b2ac76 100%);
  color: #3a3526;
  padding: 0.6rem 2rem;
  border-bottom: 1px solid #7c7746;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
.banner .banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.banner .banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.banner .banner-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.banner .banner-logo-link {
  display: inline-flex;
}
.banner .banner-logo {
  height: 56px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .banner .banner-logo {
    height: 40px;
  }
}
.banner .mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.banner .mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #3a3526;
  border-radius: 2px;
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .banner .mobile-menu-toggle {
    display: flex;
  }
}

.main-container {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.sidebar {
  width: 280px;
  background-color: #f3efe4;
  border-right: 1px solid #e6e1d3;
  overflow-y: auto;
  padding: 2rem 0;
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #f3efe4;
    z-index: 999;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}
.sidebar .nav-menu {
  padding: 0 1rem;
}
.sidebar .nav-section {
  margin-bottom: 2rem;
}
.sidebar .nav-section .section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #8a7d4f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 1rem 1rem 1rem;
  padding: 0;
}
.sidebar .nav-section .section-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.sidebar .nav-section .section-title a:hover {
  color: #a89b6a;
}
.sidebar .nav-section .nav-empty {
  margin: 0 1rem;
  font-size: 0.85rem;
  color: #888;
}
.sidebar .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .nav-list .accordion-item {
  margin-bottom: 0.5rem;
}
.sidebar .nav-list .accordion-item .nav-toplink {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  color: #3a3526;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.sidebar .nav-list .accordion-item .nav-toplink:hover {
  background-color: rgba(138, 125, 79, 0.05);
  color: #8a7d4f;
}
.sidebar .nav-list .accordion-item .nav-toplink.active {
  background-color: rgba(138, 125, 79, 0.1);
  color: #8a7d4f;
  font-weight: 600;
}
.sidebar .nav-list .accordion-item .accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  background: none;
  color: #3a3526;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar .nav-list .accordion-item .accordion-header:hover {
  background-color: rgba(138, 125, 79, 0.05);
  color: #8a7d4f;
}
.sidebar .nav-list .accordion-item .accordion-header.expanded {
  background-color: rgba(138, 125, 79, 0.1);
  color: #8a7d4f;
  font-weight: 600;
}
.sidebar .nav-list .accordion-item .accordion-header .accordion-title {
  flex: 1;
  text-align: left;
}
.sidebar .nav-list .accordion-item .accordion-header .accordion-icon {
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.sidebar .nav-list .accordion-item .accordion-header.expanded .accordion-icon {
  transform: rotate(90deg);
}
.sidebar .nav-tree {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid #e6e1d3;
  display: none;
}
.sidebar .nav-tree .nav-tree {
  margin: 0.25rem 0 0.5rem 0;
}
.sidebar .nav-tree .tree-item {
  margin-bottom: 0.25rem;
}
.sidebar .nav-tree .tree-link {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease;
  text-align: left;
}
.sidebar .nav-tree .tree-link:hover {
  color: #8a7d4f;
  background-color: rgba(138, 125, 79, 0.05);
}
.sidebar .nav-tree .tree-link.active {
  color: #8a7d4f;
  font-weight: 600;
  background-color: rgba(138, 125, 79, 0.08);
}
.sidebar .nav-tree .tree-branch-header {
  display: flex;
  align-items: center;
}
.sidebar .nav-tree .tree-branch-header .branch-link {
  flex: 1;
  font-weight: 500;
}
.sidebar .nav-tree .tree-branch-header .branch-label {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.sidebar .nav-tree .tree-branch-header .branch-toggle {
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  color: #666;
  transition: color 0.2s ease;
}
.sidebar .nav-tree .tree-branch-header .branch-toggle:hover {
  color: #8a7d4f;
}
.sidebar .nav-tree .tree-branch-header .branch-toggle .accordion-icon {
  display: inline-block;
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.sidebar .nav-tree .tree-branch-header.expanded .branch-link {
  color: #8a7d4f;
  font-weight: 600;
}
.sidebar .nav-tree .tree-branch-header.expanded .branch-toggle {
  color: #8a7d4f;
}
.sidebar .nav-tree .tree-branch-header.expanded .branch-toggle .accordion-icon {
  transform: rotate(90deg);
}
.sidebar .accordion-header.expanded + .nav-tree,
.sidebar .tree-branch-header.expanded + .nav-tree {
  display: block;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 2rem;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .content {
    padding: 1.5rem 1rem;
  }
}

.search-container {
  width: 280px;
  max-width: 100%;
}
.search-container .search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}
.search-container .search-box .search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border: 1px solid #6c673d;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.search-container .search-box .search-input:focus {
  outline: none;
  border-color: #8a7d4f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(138, 125, 79, 0.1);
}
.search-container .search-box .search-input::placeholder {
  color: #999;
}
.search-container .search-box::before {
  content: "🔍";
  position: absolute;
  left: 0.6rem;
  font-size: 1rem;
  pointer-events: none;
}
.search-container .search-box .search-clear {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.search-container .search-box .search-clear:hover {
  color: #8a7d4f;
}

.page-content {
  max-width: 900px;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e6e1d3;
}
.page-header .breadcrumb-link {
  color: #8a7d4f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-block;
  margin-bottom: 1rem;
}
.page-header .breadcrumb-link:hover {
  color: #a89b6a;
}
.page-header .page-title {
  font-size: 2rem;
  color: #000;
  margin: 0;
}

.page-body {
  line-height: 1.8;
  color: #3a3526;
  font-size: 1rem;
}
.page-body .entry-header {
  display: none;
}
.page-body h2, .page-body h3, .page-body h4 {
  color: #8a7d4f;
  font-weight: 600;
}
.page-body h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem 0;
}
.page-body h3 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.75rem 0;
}
.page-body p {
  margin: 0.75rem 0;
}
.page-body ul, .page-body ol {
  margin: 1rem 0;
  padding-left: 2rem;
}
.page-body ul li, .page-body ol li {
  margin: 0.5rem 0;
}
.page-body img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.page-body figure {
  margin: 1.5rem 0;
  max-width: 100%;
}
.page-body figure img {
  margin: 0;
}
.page-body strong {
  color: #8a7d4f;
  font-weight: 600;
}
.page-body code {
  background-color: #f3efe4;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9em;
}
.page-body pre {
  background-color: #f3efe4;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
}
.page-body a {
  color: #8a7d4f;
  text-decoration: none;
}
.page-body a:hover {
  text-decoration: underline;
  color: #a89b6a;
}
.page-body hr {
  border: none;
  border-top: 1px solid #e6e1d3;
  margin: 1.5rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.help-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e6e1d3;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.help-card:hover {
  border-color: #8a7d4f;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.help-card h3 {
  font-size: 1.2rem;
  color: #8a7d4f;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}
.help-card .help-card-count {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
}
.help-card.home-card {
  background: linear-gradient(135deg, #f3efe4 0%, #faf8f2 100%);
}

.home {
  max-width: 1100px;
}

.home-header {
  margin-bottom: 2rem;
}
.home-header .home-title {
  font-size: 2.5rem;
  color: #8a7d4f;
  margin: 0 0 0.5rem 0;
}
.home-header .home-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

.section-cards {
  margin-top: 2.5rem;
}
.section-cards .section-cards-title {
  font-size: 1.3rem;
  color: #8a7d4f;
  margin: 0 0 1rem 0;
}

.search-results {
  max-width: 900px;
}
.search-results h2 {
  font-size: 1.8rem;
  color: #8a7d4f;
  margin-bottom: 1.5rem;
}
.search-results .result-count {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.search-results .results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.search-results .result-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e6e1d3;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.search-results .result-item:hover {
  border-color: #8a7d4f;
  background-color: #f3efe4;
  transform: translateX(4px);
}
.search-results .result-item h3 {
  font-size: 1.2rem;
  color: #8a7d4f;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}
.search-results .result-item .result-category {
  font-size: 0.85rem;
  color: #a89b6a;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}
.search-results .result-item .result-preview {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}
.search-results .no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
  font-size: 1.1rem;
}

.pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  padding: 0.4rem 0.75rem;
  border: 1px solid #e6e1d3;
  border-radius: 4px;
  color: #8a7d4f;
}
.pagination .page-numbers.current {
  background: #8a7d4f;
  color: #fff;
  border-color: #8a7d4f;
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .search-container {
    width: 150px;
  }
}
