/* WordPress-specific adjustments for MUYAN WOOD */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--white);
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  font-size: 14px;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Header menu output uses li wrappers. */
.nav > li {
  display: flex;
  align-items: center;
}

.nav > li > a {
  display: inline-block;
}

.nav > li.current-menu-item > .nav__link::after,
.nav > li.current_page_item > .nav__link::after {
  transform: scaleX(1);
}

.mobile-menu__nav > li > a {
  display: block;
}

.mobile-menu__nav .nav__link::after {
  display: none;
}

.footer-menu > li + li {
  margin-top: 10px;
}

.footer-menu a {
  font-size: 13px;
  transition: color 0.2s var(--ease);
}

.footer-menu a:hover {
  color: var(--paper);
}

.custom-logo {
  display: block;
  width: auto;
  max-height: 58px;
}

/* WordPress pagination output. */
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.pagination a.page-numbers:hover {
  border-color: var(--ink);
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

/* Post content typography. */
.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}

.entry-content > * + * {
  margin-top: 18px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin-top: 34px;
  margin-bottom: 12px;
}

.entry-content h2 {
  font-size: clamp(30px, 3.4vw, 42px);
}

.entry-content h3 {
  font-size: clamp(24px, 2.4vw, 30px);
}

.entry-content p {
  margin: 0 0 18px;
}

.entry-content a {
  color: var(--walnut);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 22px;
  margin: 0 0 18px;
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li + li {
  margin-top: 6px;
}

.entry-content blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 2px solid var(--copper);
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
}

.entry-content img {
  height: auto;
  max-width: 100%;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

/* Contact form card: avoid double padding/background. */
.contact-form-card .inquiry-form {
  padding: 0;
  background: transparent;
}

/* Polylang language switcher inside the top bar. */
.topbar__lang ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__lang li {
  display: inline;
}

.topbar__lang .current-lang a {
  color: var(--white);
}

/* Admin bar offsets for the sticky header. */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* WordPress block image captions and embeds. */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.wp-block-embed {
  margin: 24px 0;
}

.alignwide {
  width: min(1400px, calc(100vw - 40px));
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
