/* WordPress additions */
.home-history__marquee {
  overflow: hidden;
  width: 100%;
}

.home-history__track {
  display: flex;
  width: max-content;
  animation: nara-marquee var(--nara-marquee-duration, 55s) linear infinite;
}

.home-history__group {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 24px;
  padding-right: 24px;
}

.home-history__list__item {
  flex: 0 0 auto;
  width: clamp(125px, 15vw, 210px);
}

.home-history__list__item img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes nara-marquee {
  to {
    transform: translateX(calc(-1 * var(--nara-marquee-distance, 50%)));
  }
}

@media(prefers-reduced-motion:reduce) {
  .home-history__track {
    animation: none;
  }

  .home-history__marquee {
    overflow-x: auto;
  }
}

.nara-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 50vh;
}

.nara-content h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  margin-bottom: 1em;
}

.nara-content article {
  margin-bottom: 35px;
}

.nara-content a {
  color: inherit;
}

.nara-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
}

.nara-archive-card img {
  width: 100%;
  height: auto;
  display: block;
}

.nara-archive-card h2 {
  font-size: 16px;
  margin-top: 12px;
}

.nara-entry {
  margin: 30px 0;
  line-height: 1.9;
}

.nara-empty {
  padding: 20px;
}

/* Responsive navigation */
.header__toggle {
  display: none;
}

@media(max-width: 1023px) {
  .header {
    position: relative;
    z-index: 100;
    justify-content: space-between;
  }

  .header__toggle {
    display: flex;
    position: relative;
    z-index: 102;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
  }

  .header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #4f6a34;
    transition: transform .25s, opacity .25s;
  }

  .header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header .header__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 5% 30px;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .12);
    z-index: 101;
  }

  .header .header__menu.is-open {
    display: block;
  }

  .header .header__menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
  }

  .header .header__menu ul li {
    width: 100%;
    border-bottom: 1px solid #ddd;
  }

  .header .header__menu ul li a {
    display: block;
    padding: 16px 5px;
    text-decoration: none;
    color: inherit;
  }

  .header .header__btn {
    width: 100%;
  }

  .header .header__btn a {
    padding: 17px 20px;
  }
}

@media(min-width:1024px) {
  .header__toggle {
    display: none !important;
  }

  .header .header__menu {
    display: flex !important;
  }
}

/* Announcements listing and detail */
.nara-announcements {
  max-width: 1050px;
  padding-top: 90px;
  padding-bottom: 110px;
}

.nara-page-heading {
  padding-bottom: 34px;
  margin-bottom: 40px;
  border-bottom: 1px solid #dce2d6;
}

.nara-page-heading h1 {
  margin: 8px 0 14px;
  font-weight: 400;
  line-height: 1.4;
}

.nara-page-heading>p:last-child {
  line-height: 1.8;
}

.nara-eyebrow {
  font-size: 13px;
  letter-spacing: .2em;
  font-weight: 700;
  color: #68824f;
}

.nara-news-list {
  border-top: 1px solid #dce2d6;
}

.nara-news-item {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  padding: 25px 6px;
  margin: 0 !important;
  border-bottom: 1px solid #dce2d6;
}

.nara-news-item h2 {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
}

.nara-news-item h2 a {
  text-decoration: none;
  transition: color .2s;
}

.nara-news-item h2 a:hover {
  color: #607947;
}

.nara-news-date {
  font-size: 14px;
  letter-spacing: .05em;
  color: #68824f;
  line-height: 1.8;
}

.nara-news-excerpt {
  grid-column: 2;
  margin-top: 8px;
  line-height: 1.8;
  color: #666;
}

.nara-news-single .nara-page-heading {
  margin-bottom: 45px;
}

.nara-news-single .nara-page-heading h1 {
  max-width: 900px;
}

.nara-news-single .nara-article-body {
  max-width: 860px;
  margin: 0 auto;
}

.nara-news-back {
  margin-top: 75px;
  text-align: center;
}

.nara-news-back a {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid #698351;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.nara-news-back a:hover {
  background: #698351;
  color: #fff;
}

.nara-pagination {
  margin-top: 45px;
  text-align: center;
}

.nara-pagination .page-numbers {
  display: inline-block;
  padding: 8px 13px;
  margin: 0 3px;
  text-decoration: none;
}

.nara-pagination .page-numbers.current {
  background: #698351;
  color: #fff;
}

@media(max-width:640px) {
  .nara-announcements {
    padding: 55px 20px 75px;
  }

  .nara-news-item {
    display: block;
    padding: 20px 0;
  }

  .nara-news-item h2 {
    margin-top: 7px;
  }

  .nara-news-excerpt {
    margin-top: 8px;
  }

  .nara-page-heading {
    margin-bottom: 25px;
  }

  .nara-news-single .nara-page-heading {
    margin-bottom: 30px;
  }
}
