/* ==========================================================================
   Reset (minimal)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Momo+Trust+Sans:wght@200..800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
    font-family: "Momo Trust Sans", sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 16px;
  position: relative;
}

.site-branding img {
  max-height: 48px;
  width: auto;
}

.site-title-link {
  font-size: 1.4rem;
  font-weight: 700;
}

/* Hamburger button — visible on mobile only */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Primary nav — mobile: full-width dropdown panel */
.primary-navigation {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
  padding: 80px 20px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.primary-navigation.is-open {
  transform: translateX(0);
}

.primary-menu .menu-item {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.menu-link {
  display: block;
  padding: 14px 8px;
  font-weight: 500;
}

/* Submenu toggle button (mobile) */
.submenu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
}

.submenu-toggle__icon {
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-right: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
  transform: rotate(-135deg);
}

.sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 12px;
}

.has-submenu.is-open > .sub-menu {
  max-height: 600px;
}

/* Author section  */

/* Top author bio */
.author-detail-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 32px;
}
.author-img-con img {
  border-radius: 50%;
  width: 56px;
  height: 56px;
}
.date-author-cl a {
  color: #2c1172;
  font-weight: 600;
}
.author-paragraph {
  margin: 4px 0 0;
  font-size: 16px;
  color: #1a1a1a !important;
}

/* Author archive page */
.author-box-wrapper .container {
  /* max-width: 800px; */
  padding-block: 40px;
}
.profile-header-container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 20px;
}
.header-avatar-container img {
  border-radius: 50%;
}
.header-name-container h2 {
  margin: 0;
  font-size: 1.3rem;
}
.profile-fields-group {
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 10px;
}
.group-title {
  margin: 0 0 18px;
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #2c1172;
  display: inline-block;
}
.profile-fields-table > div {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.profile-fields-table .label {
  color: #1a1a1a;
}
.profile-fields-table .data {
  color: #1a1a1a;
}
.author-description-name {
  flex-direction: column;
}
.author-description-name .data p {
  margin: 6px 0 0;
}
main.site-main.container.page-content {
    padding: 15px 0;
}

/* ==========================================================================
   Desktop layout (menu becomes horizontal, hover dropdowns)
   ========================================================================== */
@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .primary-navigation {
    position: static;
    height: auto;
    width: auto;
    box-shadow: none;
    padding: 0;
    transform: none;
    overflow: visible;
    background: transparent;
  }

  .primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .primary-menu .menu-item {
    border-bottom: 0;
  }

  .primary-menu > .menu-item {
    position: relative;
  }

  .menu-link {
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.2s ease;
  }

  .menu-link:hover,
  .menu-link:focus {
    background: #f2f2f2;
  }

  /* Hide the mobile toggle button on desktop entirely */
  /* Hide the mobile toggle button on desktop entirely */
  .submenu-toggle {
    display: none;
  }

  /* Show a small decorative arrow next to items that have a submenu */
  .primary-menu > .menu-item.has-submenu {
    display: flex;
    align-items: center;
  }

  .primary-menu .has-submenu > .submenu-toggle {
    display: inline-flex;
    position: static;
    width: auto;
    height: auto;
    pointer-events: none;
    margin-left: -10px;
  }

  .primary-menu .submenu-toggle__icon {
    width: 6px;
    height: 6px;
    margin: 0;
    transform: rotate(45deg);
  }

  .primary-menu .has-submenu:hover > .submenu-toggle .submenu-toggle__icon,
  .primary-menu
    .has-submenu:focus-within
    > .submenu-toggle
    .submenu-toggle__icon {
    transform: rotate(-135deg);
  }

  /* Desktop dropdown: shown on hover / focus-within */
  .primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
    padding: 6px;
    z-index: 10;
  }

  .primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }

  .primary-menu .has-submenu:hover > .sub-menu,
  .primary-menu .has-submenu:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-menu .sub-menu .menu-link {
    border-radius: 4px;
  }
}

/* Overlay behind mobile menu panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
  z-index: 998;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Main content (basic, so index.php looks reasonable)
   ========================================================================== */

.post-card {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.post-card__title {
  margin: 12px 0 8px;
  font-size: 1.3rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* ==========================================================================
   Page content typography (headings, tables, lists, blockquote, etc.)
   ========================================================================== */
.page-article__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 24px;
}

.page-article__content {
  max-width: 100%;
}

.page-article__content h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 24px 0 10px;
}

.page-article__content h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.64rem);
  margin: 24px 0 14px;
}

.page-article__content h4 {
  font-size: clamp(1.15rem, 2.5vw, 1.44rem);
}
.page-article__content h5 {
  font-size: clamp(1.15rem, 2.5vw, 1.34rem);
}
.page-article__content h6 {
  font-size: clamp(1.15rem, 2.5vw, 1.24rem);
}

.page-article__content h4,
.page-article__content h5,
.page-article__content h6 {
  margin: 24px 0 10px;
}

.page-article__content p {
  margin: 0 0 18px;
}

.page-article__content ul,
.page-article__content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.page-article__content ul {
  list-style: disc;
}

.page-article__content ol {
  list-style: decimal;
}

.page-article__content li {
  margin-bottom: 6px;
}

.page-article__content dl {
  margin: 0 0 18px;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.page-article__content dt {
  font-weight: 700;
  margin-top: 12px;
  background: #ddd;
  padding: 12px;
  border-radius: 4px;
}

.page-article__content dd {
  margin: 4px 0 0;
  padding: 6px 24px;
}

.page-article__content blockquote {
  margin: 24px 0;
  padding: 12px 20px;
  border-left: 3px solid #ddd;
  color: #555;
  font-style: italic;
}

.page-article__content table {
  /* 	min-width: 100%; */
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  overflow-x: auto;
  /* 	display: block; */
  white-space: nowrap;
}

.page-article__content table tbody,
.page-article__content table thead,
.page-article__content table tr {
  /* 	display: table; */
  width: 100%;
  table-layout: auto;
}

.page-article__content table th,
.page-article__content table td {
  border: 1px solid #e2e2e2;
  padding: 10px 12px;
  text-align: left;
}

.page-article__content table th {
  background: #f7f7f7;
  font-weight: 600;
}

.page-article__content img {
  border-radius: 6px;
  margin: 20px auto;
}

.page-article__content code {
  background: #f2f2f2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.page-article__content mark {
  background: #fff3b0;
  padding: 0 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #111;
  color: #ddd;
  margin-top: 0px;
}

.site-footer__inner {
  padding-block: 10px 24px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-widget__title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid #444444;
} */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.footer-bottom.has-menu {
    padding: 20px 0;
    border-bottom: 1px solid #444;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-menu a {
  color: #bbb;
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: #fff;
}

.footer-divider {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
}

.site-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

.site-copyright p {
  margin: 0;
}

.footer-copyright-widget {
  margin: 0;
}
@media (max-width: 819px) {
  .page-article__content table {
    display: block;
  }
	.site-branding img{
		max-height: 38px;
	}
}
