.legal-strip {
  color: var(--white);
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
}

.legal-strip__inner {
  display: flex;
  min-height: 34px;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.legal-strip__status,
.legal-strip__area {
  display: flex;
  gap: 1.125rem;
  align-items: center;
}

.legal-strip a {
  color: var(--lime);
  text-decoration: none;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: #79e88f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(121, 232, 143, 0.12);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(251, 250, 245, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-main {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto auto minmax(240px, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: 190px;
  height: 50px;
  align-items: center;
  overflow: hidden;
  color: var(--lime);
  background: #030403;
  border-radius: 10px;
  text-decoration: none;
}

.brand:hover {
  color: var(--lime);
}

.brand__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.location-pill {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 0.5625rem;
  padding: 0.5625rem 0.75rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.location-pill:hover {
  color: var(--ink);
  border-color: var(--green);
}

.location-pill small {
  display: block;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.1;
}

.mj420-search-form {
  position: relative;
  width: 100%;
  margin: 0;
}

.mj420-search-form .search-field {
  width: 100%;
  height: 46px;
  padding: 0 48px 0 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}

.mj420-search-form .search-field::-webkit-search-cancel-button {
  margin-right: 0.25rem;
}

.mj420-search-form .search-submit {
  position: absolute;
  top: 1px;
  right: 2px;
  border-color: transparent;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.icon-button:hover {
  color: var(--ink);
  background: var(--lime-2);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.count-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border: 2px solid var(--paper);
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: 800;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.menu-toggle {
  display: none;
}

.primary-nav {
  border-top: 1px solid rgba(220, 226, 217, 0.75);
}

.nav-shell {
  display: flex;
  min-height: 48px;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 1.6vw, 1.875rem);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list--utility {
  flex: 0 0 auto;
}

.nav-list li {
  position: relative;
  margin: 0;
}

.nav-list > li > a {
  position: relative;
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 0.3125rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list--utility > li > a {
  color: var(--green);
}

.nav-list > li > a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.nav-list > li > a:hover::after,
.nav-list > .current-menu-item > a::after,
.nav-list > .current-menu-ancestor > a::after,
.nav-list > li > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-list .sub-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% - 1px);
  left: -18px;
  width: max-content;
  min-width: 210px;
  margin: 0;
  padding: 0.6rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-list .sub-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 8px;
}

.nav-list .sub-menu a:hover {
  background: var(--lime-2);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: none;
  padding: 18px;
  background: rgba(16, 35, 27, 0.58);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.mobile-menu__panel {
  width: min(420px, 100%);
  height: 100%;
  margin-left: auto;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform 0.3s var(--ease);
}

.menu-open .mobile-menu {
  opacity: 1;
}

.menu-open .mobile-menu__panel {
  transform: none;
}

.mobile-menu__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 18px;
}

.mobile-menu__head .brand {
  width: 166px;
  height: 48px;
}

.mobile-menu__search {
  margin-bottom: 22px;
}

.mobile-menu__search .search-field {
  height: 50px;
  border-radius: 14px;
}

.mobile-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-list--utility {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.mobile-nav-list li {
  margin: 0;
}

.mobile-nav-list > li + li {
  border-top: 1px solid var(--line);
}

.mobile-nav-list a {
  display: flex;
  min-height: 52px;
  padding: 0.75rem 0.25rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav-list > li > a::after {
  flex: 0 0 auto;
  margin-left: 1rem;
  content: "→";
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.mobile-nav-list .sub-menu {
  margin: -0.25rem 0 0.75rem;
  padding: 0 0 0 1rem;
  list-style: none;
  border-left: 2px solid var(--lime);
}

.mobile-nav-list .sub-menu a {
  min-height: 42px;
  font-size: 0.95rem;
  font-weight: 650;
}

.mobile-menu__foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mobile-menu__quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.mobile-menu__quick-links a {
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 700;
}

.page-header {
  max-width: 980px;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.page-header h1 {
  margin-bottom: 0;
}

.page-featured-image {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.page-featured-image img {
  width: 100%;
}

.entry-footer {
  max-width: var(--content);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.archive-shell {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.archive-shell--sidebar {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.post-list,
.search-result-list {
  display: grid;
  gap: 1.125rem;
}

.post-card,
.search-result {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.post-card__image,
.search-result__image {
  min-height: 230px;
  overflow: hidden;
  background: var(--sand);
}

.post-card__image img,
.search-result__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.post-card:hover .post-card__image img,
.search-result:hover .search-result__image img {
  transform: scale(1.035);
}

.post-card__body,
.search-result__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.entry-meta,
.entry-type,
.result-count {
  margin-bottom: 0.65rem;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.post-card .entry-title,
.search-result h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.post-card .entry-title a,
.search-result h2 a {
  color: var(--ink);
  text-decoration: none;
}

.entry-summary {
  color: var(--muted);
}

.entry-summary > :last-child {
  margin-bottom: 0;
}

.site-sidebar {
  min-width: 0;
}

.widget {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  overflow-wrap: anywhere;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.widget-title {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

.widget li + li {
  margin-top: 0.6rem;
}

.widget a {
  color: var(--ink);
  text-decoration: none;
}

.widget a:hover {
  color: var(--green);
}

.navigation.pagination {
  margin-top: 2.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0.4rem 0.75rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.empty-state {
  padding: clamp(2rem, 6vw, 4rem);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.empty-state h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.empty-state .mj420-search-form {
  max-width: 620px;
  margin-top: 1.5rem;
}

.search-header__form,
.error-404__search {
  max-width: 680px;
  margin-top: 1.75rem;
}

.error-404__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 8vw, 7rem);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 4vw, 42px);
}

.error-404__inner > *:not(.error-404__code) {
  position: relative;
  z-index: 1;
}

.error-404__inner h1 {
  max-width: 780px;
}

.error-404__code {
  position: absolute;
  right: -0.04em;
  bottom: -0.36em;
  margin: 0;
  color: rgba(38, 116, 88, 0.08);
  font-size: clamp(12rem, 32vw, 32rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.error-404__inner .btn {
  margin-top: 1.25rem;
}

.mj-section {
  padding: clamp(3.75rem, 7vw, 7rem) 0;
}

.mj-section--sand {
  background: var(--sand);
}

.mj-section--forest {
  color: var(--white);
  background: var(--forest);
}

.mj-section-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}

.mj-section-heading > div {
  max-width: 44rem;
}

.mj-section-heading h2 {
  margin: 0.25rem 0 0.65rem;
  font-size: clamp(2.3rem, 4.5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.mj-section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  color: var(--white);
  background: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding: 74px 0 58px;
}

.footer-brand .brand {
  width: 230px;
  height: 68px;
  border: 1px solid rgba(200, 255, 0, 0.24);
  border-radius: 12px;
}

.footer-brand > p {
  max-width: 340px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 0.75rem;
  color: var(--lime);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 750;
}

.footer-extra {
  max-width: 340px;
  margin-top: 1.25rem;
}

.footer-extra .widget {
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
}

.footer-extra .widget-title {
  color: var(--white);
}

.footer-col h2,
.footer-col h3 {
  margin-bottom: 18px;
  color: var(--lime);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-menu,
.footer-legal-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu {
  display: grid;
  gap: 0.625rem;
}

.footer-menu a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-bottom a:hover {
  color: var(--white);
}

.footer-menu .sub-menu {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  display: flex;
  min-height: 74px;
  justify-content: space-between;
  gap: 1.875rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.6875rem;
}

.footer-bottom__links,
.footer-legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
}

.footer-bottom a,
.footer-legal-menu a {
  font-size: inherit;
}

@media (max-width: 1180px) {
  .header-main {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  .location-pill {
    display: none;
  }

  .nav-shell {
    gap: 1rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .nav-list--primary > li:nth-child(7),
  .nav-list--primary > li:nth-child(8) {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }

  .footer-col:last-child {
    display: none;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 900px) {
  .legal-strip__area {
    display: none;
  }

  .header-main {
    min-height: auto;
    grid-template-columns: auto 1fr auto;
    gap: 10px 14px;
    padding: 10px 0 12px;
  }

  .header-main > .brand {
    width: 160px;
    height: 46px;
    grid-column: 1;
    grid-row: 1;
  }

  .header-main > .header-search {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-main > .header-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .header-actions .header-search-trigger,
  .header-actions .account-link {
    display: none;
  }

  .header-search .search-field {
    height: 44px;
  }

  .archive-shell--sidebar {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .widget {
    margin-bottom: 0;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

}

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

@media (max-width: 640px) {
  .legal-strip__inner {
    justify-content: center;
  }

  .legal-strip__status > span:last-child {
    display: none;
  }

  .header-main > .brand {
    width: 144px;
    height: 42px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .account-link {
    display: none;
  }

  .header-actions .header-search-trigger {
    display: none;
  }

  .mobile-menu {
    padding: 10px;
  }

  .mobile-menu__panel {
    padding: 20px;
    border-radius: 20px;
  }

  .post-card,
  .search-result {
    grid-template-columns: 1fr;
  }

  .post-card__image,
  .search-result__image {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .site-sidebar {
    grid-template-columns: 1fr;
  }

  .mj-section-heading {
    display: grid;
    align-items: start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.375rem;
    padding-block: 58px 44px;
  }

  .footer-brand,
  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
  }
}

@media (max-width: 420px) {
  .header-main > .brand {
    width: 132px;
  }

  .header-actions .icon-button {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}
