/* 800+ shared column: header, subnav, sections, and footer share one 1120px box. */
:root {
  --pm8-max: 1280px;
  --pm8-pad: 20px;
  --pm8-green: #163F35;
  --pm8-line: #DCDED5;
  --pm8-bg: #F8F5EF;
  --pm8-ink: #163F35;
}
@media (max-width: 640px) {
  :root { --pm8-pad: 16px; }
}

body:has(.pm8-header) {
  background: var(--pm8-bg);
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.55;
}

.pm8-sticky {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
}

.pm8-header,
.pm8-subnav,
.pm8-footer,
.pm8-container,
section.pm8-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--pm8-max);
  margin-left: auto;
  margin-right: auto;
}

.pm8-header,
.pm8-subnav,
.pm8-footer,
section.pm8-container,
.pm8-container {
  padding-left: var(--pm8-pad);
  padding-right: var(--pm8-pad);
}

.pm8-header,
.pm8-subnav {
  background: var(--pm8-bg);
  color: var(--pm8-ink);
}

header.pm8-header {
  position: static;
  border: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}

.pm8-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.pm8-brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--pm8-green);
  text-decoration: none;
  line-height: 1.1;
}
.pm8-brand strong {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 3px;
}
.pm8-brand small {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
}
.pm8-brand-short { display: none; }

.pm8-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
}

.pm8-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px 18px;
  border: 1px solid var(--pm8-line);
  border-radius: 8px;
  background: #fff;
  color: var(--pm8-green);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.pm8-pill.is-primary {
  background: var(--pm8-green);
  border-color: var(--pm8-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(22, 63, 53, .28);
}
.pm8-pill[aria-current="page"]:not(.is-primary) {
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(22, 63, 53, .28);
}

.pm8-more { display: none; }
.pm8-more > summary {
  list-style: none;
  cursor: pointer;
}
.pm8-more > summary::-webkit-details-marker { display: none; }
.pm8-more-btn {
  min-width: 32px;
  padding-left: 8px;
  padding-right: 8px;
}
.pm8-more[open] .pm8-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: flex;
  padding: 6px;
  border: 1px solid var(--pm8-line);
  border-radius: 8px;
  background: #fff;
}
.pm8-more { position: relative; }

.pm8-header .pm-lang-control {
  position: relative;
  flex: 0 0 auto;
  z-index: 70;
}
.pm8-header .pm-lang-globe {
  width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pm8-line);
  border-radius: 50%;
  font-size: 16px;
}
.pm8-header .pm-lang-menu { top: 42px; }

.pm8-subnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
@media (min-width: 641px) {
  .pm8-subnav {
    flex-wrap: wrap;
    align-content: flex-start;
    max-height: 96px;
    overflow-y: auto;
  }
}
.pm8-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--pm8-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pm8-green);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.pm8-subnav a[aria-current="true"],
.pm8-subnav a:target {
  box-shadow: 0 0 0 2px rgba(22, 63, 53, .18);
}

.pm8-footer {
  margin-top: 28px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--pm8-line);
  background: var(--pm8-bg);
  color: var(--pm8-ink);
  text-align: left;
}
.pm8-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.pm8-foot strong { font-size: 16px; }
.pm8-foot p {
  margin: 4px 0 0;
  color: #74817b;
  font-size: 16px;
}
.pm8-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: 640px;
  justify-content: flex-end;
}
.pm8-foot-links a,
.pm8-footer a {
  color: #355c5d;
  font-size: 16px;
  text-decoration: none;
}

main.pm8-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.pm8-member-slot {
  padding-top: 12px;
  padding-bottom: 8px;
}
.pm8-member-slot > main,
.pm8-member-slot > .box {
  margin-left: auto;
  margin-right: auto;
}
body.pm8-shell main > .brand { display: none; }
body.pm8-shell main > .notice { display: none; }

.pm8-prose {
  max-width: 760px;
  margin: 28px auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--pm8-line);
  border-radius: 16px;
}
.pm8-prose h1 { font-size: 28px; margin: 4px 0 12px; }
.pm8-prose h2 { font-size: 18px; margin: 24px 0 6px; }
.pm8-prose p { margin: 8px 0; line-height: 1.85; }
.pm8-prose a { color: #28694e; }
.pm8-prose small { color: #627368; }

@media (max-width: 860px) {
  .pm8-brand strong { font-size: 22px; letter-spacing: 1px; }
  .pm8-pill { padding: 8px 12px; font-size: 14px; }
  .pm8-pills { gap: 8px; }
}

@media (max-width: 640px) {
  header.pm8-header { padding-top: 10px; padding-bottom: 10px; }
  .pm8-brand-full,
  .pm8-brand small { display: none; }
  .pm8-brand-short {
    display: inline;
    font-size: 15px;
    letter-spacing: 0;
    font-weight: 700;
  }
  .pm8-bar { gap: 6px; }
  .pm8-pills { gap: 4px; }
  .pm8-pill {
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 11.5px;
  }
  .pm8-header .pm-lang-globe {
    width: 28px;
    height: 28px;
    min-height: 28px;
    font-size: 14px;
  }
  .pm8-foot { display: block; }
  .pm8-foot-links { justify-content: flex-start; margin-top: 12px; }
  .pm8-prose { margin: 16px auto; padding: 20px; }
}

@media (max-width: 360px) {
  .pm8-pill-last { display: none; }
  .pm8-more { display: inline-flex; }
}
