/* Shared additions for server-backed content; approved page styles stay separate. */
.published-posts {
  padding-block: 5rem;
}
.published-posts h2 {
  margin-bottom: 1.5rem;
}
.post-filters, .post-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0;
}
.post-filters a, .post-pagination a, .post-pagination span {
  padding: .5rem 1rem;
  border: 1px solid #c9d9cd;
  border-radius: 999px;
}
.post-filters [aria-current], .post-pagination [aria-current] {
  background: #12643c;
  color: white;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}
.post-card {
  overflow: hidden;
  border: 1px solid #d8e3d8;
  border-radius: 16px;
  background: #fff;
}
.post-card > a {
  display: block;
  height: 100%;
  text-decoration: none;
}
.post-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.post-card-copy {
  padding: 1.5rem;
}
.post-card h3 {
  margin: .75rem 0;
  font-size: 1.35rem;
}
.post-card p {
  color: #52645b;
}
@media (max-width: 850px) {
  .post-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 540px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}
/* Aligned three-column navigation shared by English and Norwegian pages. */
.header-inner {
  position: relative;
}
.nav {
  gap: 10px;
}
.nav-group {
  position: static;
}
.nav-group > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-group > summary:hover, .nav-group[open] > summary {
  color: var(--green);
  background: #f0f5f0;
}
.nav-group > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.nav-chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .15s;
}
.nav-group[open] .nav-chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}
.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: 22px 12px;
  background: #fff;
  border: 1px solid #e2e9e3;
  border-radius: 14px;
  box-shadow: 0 16px 36px #173b2414, 0 2px 6px #173b2408;
  max-height: calc(100dvh - 132px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cad7ce transparent;
}
.nav-column {
  min-width: 0;
  padding: 0 14px;
}
.nav-column + .nav-column {
  border-left: 1px solid #e8eee8;
}
.nav-column-title {
  color: #173d29;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  padding: 0 10px 10px;
  border-bottom: 1px solid #edf1ed;
}
.nav-column ul {
  display: grid;
  grid-auto-rows: minmax(38px, auto);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-column li {
  min-width: 0;
}
.nav-column a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  height: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  color: #3b4e41;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  overflow-wrap: normal;
  transition: background .15s, color .15s;
}
.nav-column a::after {
  content: "→";
  flex-shrink: 0;
  opacity: 0;
}
.nav-column a:hover, .nav-column a:focus-visible, .nav-column a[aria-current="page"] {
  color: var(--green);
  background: #f0f6ee;
}
.nav-column a:hover::after, .nav-column a:focus-visible::after, .nav-column a[aria-current="page"]::after {
  opacity: 1;
}
.nav > a:not(.btn) {
  padding: 10px 12px;
}
.nav > a[aria-current="page"] {
  color: var(--green);
}
.nav > .btn {
  margin-left: 10px;
}
@media (max-width: 1100px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc((100vw - 100%) / -2);
    right: calc((100vw - 100%) / -2);
    padding: 14px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px #102c1110;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }
  .nav.open {
    display: flex;
  }
  .nav-group > summary {
    justify-content: space-between;
    padding: 12px;
    font-size: 14px;
  }
  .nav-panel {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 8px;
    margin: 4px 0 8px;
    border: 1px solid #edf1ed;
    border-radius: 10px;
    box-shadow: none;
    background: #fafcf9;
    max-height: none;
    overflow: visible;
  }
  .nav-column {
    padding: 0 4px;
  }
  .nav-column + .nav-column {
    border-left: 0;
  }
  .nav-column-title {
    font-size: 14px;
    padding-bottom: 8px;
    margin-bottom: 4px;
  }
  .nav-column a {
    min-height: 40px;
    padding: 10px;
    font-size: 14px;
  }
  .nav > a:not(.btn) {
    font-size: 14px;
    padding: 12px;
  }
  .nav > .btn {
    margin: 10px 0 0;
  }
}
/* Balanced footer: four link groups with five rows each. */
.site-footer {
  padding: 38px 0 18px;
  border-top: 1px solid #e7ece7;
}
.footer-layout {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}
.footer-brand {
  min-width: 0;
}
.footer-brand > a {
  display: inline-block;
}
.site-footer .footer-logo {
  display: block;
  width: 160px;
  height: auto;
}
.footer-brand p {
  max-width: 230px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #637067;
}
.footer-brand .footer-owner {
  margin-top: 5px;
  font-size: 12px;
}
.footer-owner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-section {
  min-width: 0;
  padding-top: 4px;
}
.site-footer .footer-section h3 {
  margin: 0 0 12px;
  color: #203d2c;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.footer-link-list {
  display: grid;
  grid-auto-rows: minmax(32px, auto);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-link-list li {
  min-width: 0;
}
.footer-link-list a {
  display: flex;
  align-items: center;
  min-height: 32px;
  height: 100%;
  padding: 6px 0;
  font-size: 13px;
  line-height: 20px;
  color: #5a685f;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-link-list a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer .footer-bottom {
  align-items: center;
  margin-top: 26px;
  padding-top: 16px;
  gap: 16px;
  font-size: 12px;
  line-height: 20px;
}
.site-footer .footer-bottom > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .footer-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 180px minmax(0, 350px);
    column-gap: 24px;
    align-items: center;
  }
  .footer-brand > a {
    grid-row: 1 / 3;
  }
  .footer-brand p {
    max-width: none;
    margin: 0;
  }
  .footer-brand .footer-owner {
    margin-top: 4px;
  }
}
@media (max-width: 700px) {
  .site-footer {
    padding: 28px 0 18px;
  }
  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .footer-brand {
    display: block;
  }
  .site-footer .footer-logo {
    width: 150px;
  }
  .footer-brand p {
    max-width: 340px;
    margin-top: 10px;
  }
  .footer-brand .footer-owner {
    margin-top: 4px;
  }
  .footer-section {
    padding-top: 0;
  }
  .site-footer .footer-section h3 {
    margin-bottom: 8px;
  }
  .footer-link-list {
    grid-auto-rows: minmax(44px, auto);
  }
  .footer-link-list a {
    min-height: 44px;
    padding: 4px 0;
    line-height: 18px;
  }
  .site-footer .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    margin-top: 24px;
    padding-top: 14px;
  }
}
