.nav-link[aria-current="page"] {
  background: rgba(16, 39, 29, 0.1);
}

.page-main {
  min-height: 70vh;
}

.page-intro {
  padding: 152px 24px 88px;
  border-bottom: 1px solid var(--line);
}

.page-intro-inner,
.content-inner,
.breadcrumb-row,
.page-subnav-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 64px;
}

.page-intro .mini-label {
  color: var(--rust);
}

.page-intro h1,
.image-page-intro h1,
.detail-header h1 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.page-intro-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-weight: 750;
}

.primary-action {
  color: var(--white);
  background: var(--forest);
}

.primary-action:hover,
.primary-action:focus-visible {
  color: var(--forest);
  background: var(--lime);
  border-color: var(--lime);
  outline: none;
}

.secondary-action {
  background: transparent;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: var(--white);
  outline: none;
}

.primary-action svg,
.secondary-action svg {
  width: 17px;
  height: 17px;
}

.page-subnav {
  position: sticky;
  top: 92px;
  z-index: 40;
  color: var(--white);
  background: var(--forest);
  border-bottom: 1px solid var(--line-light);
}

.page-subnav-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.page-subnav a {
  min-width: max-content;
  padding: 9px 14px;
  border-radius: 5px;
  color: rgba(255, 254, 248, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.page-subnav a:hover,
.page-subnav a:focus-visible,
.page-subnav a[aria-current="page"] {
  color: var(--forest);
  background: var(--lime);
  outline: none;
}

.content-section {
  padding: 88px 24px;
}

.content-section.tinted {
  background: var(--white);
}

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

.content-section.blue {
  color: var(--white);
  background: var(--blue);
}

.content-section.rust {
  color: var(--white);
  background: var(--rust);
}

.content-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 54px;
  margin-bottom: 42px;
}

.content-head h2 {
  max-width: 780px;
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.content-head > p {
  margin: 0;
  color: var(--ink-soft);
}

.dark .content-head > p,
.blue .content-head > p,
.rust .content-head > p {
  color: rgba(255, 254, 248, 0.72);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic-tile {
  min-width: 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-tile svg {
  color: var(--rust);
}

.topic-tile h3 {
  margin: auto 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.topic-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.topic-tile:hover,
.topic-tile:focus-visible {
  background: var(--white);
  outline: none;
}

.dark .topic-grid {
  border-color: var(--line-light);
}

.dark .topic-tile {
  border-color: var(--line-light);
}

.dark .topic-tile p {
  color: rgba(255, 254, 248, 0.65);
}

.dark .topic-tile:hover,
.dark .topic-tile:focus-visible {
  color: var(--forest);
  background: var(--lime);
}

.dark .topic-tile:hover p,
.dark .topic-tile:focus-visible p {
  color: var(--forest);
}

.classification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.classification-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 250px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.classification-card img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
}

.classification-card > div {
  min-height: 188px;
  padding: 24px;
}

.classification-card span {
  color: var(--rust);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.classification-card h3 {
  margin: 16px 0 9px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.04;
  letter-spacing: 0;
}

.classification-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.classification-card:hover,
.classification-card:focus-visible {
  border-color: var(--rust);
  outline: none;
}

.diagnostic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.diagnostic-item {
  min-width: 0;
  min-height: 154px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}

.diagnostic-item:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.diagnostic-item:nth-child(even) {
  padding-left: 28px;
}

.diagnostic-item > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.diagnostic-item h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: 0;
}

.diagnostic-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.diagnostic-item svg {
  width: 18px;
  height: 18px;
}

.directory-search {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 7px 8px 7px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.directory-search input {
  min-width: 0;
  height: 54px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 17px;
}

.directory-search button {
  height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: var(--white);
  background: var(--rust);
  border: 0;
  border-radius: 5px;
  font-weight: 750;
  cursor: pointer;
}

.directory-search button:hover,
.directory-search button:focus-visible {
  color: var(--forest);
  background: var(--lime);
  outline: none;
}

.dictionary-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  border: 1px solid var(--line);
}

.dictionary-switcher button,
.dictionary-switcher a {
  min-width: 0;
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.dictionary-switcher button:last-child,
.dictionary-switcher a:last-child {
  border-right: 0;
}

.dictionary-switcher button[aria-selected="true"],
.dictionary-switcher a[aria-selected="true"] {
  color: var(--white);
  background: var(--forest);
}

.dictionary-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.dictionary-meta strong {
  color: var(--ink);
  font-size: 14px;
}

.alphabet-bar {
  display: flex;
  gap: 2px;
  margin: 36px 0 16px;
  overflow-x: auto;
}

.alphabet-bar a,
.alphabet-bar span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.alphabet-bar span {
  opacity: 0.28;
}

.alphabet-bar a:hover,
.alphabet-bar a:focus-visible,
.alphabet-bar a.active {
  color: var(--white);
  background: var(--rust);
  outline: none;
}

.dictionary-list {
  border-top: 1px solid var(--line);
}

.dictionary-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: 56px minmax(180px, 0.7fr) minmax(240px, 1.3fr) auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.dictionary-letter {
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 42px;
}

.dictionary-name strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.08;
}

.dictionary-name em,
.dictionary-description {
  color: var(--muted);
  font-size: 14px;
}

.dictionary-row > svg {
  width: 17px;
  height: 17px;
}

.dictionary-empty {
  margin: 0;
  padding: 34px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.article-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  min-height: 500px;
  border: 1px solid var(--line);
}

.article-feature-image {
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.article-feature-image img,
.image-page-intro > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 44px;
  color: var(--white);
  background: var(--blue);
}

.article-feature-copy h2 {
  margin: 14px 0 20px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.article-feature-copy p {
  color: rgba(255, 254, 248, 0.74);
}

.article-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.story-tile {
  min-width: 0;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-tile h3 {
  margin: auto 0 12px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: 0;
}

.story-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--rust);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-tile:hover,
.story-tile:focus-visible {
  background: var(--white);
  outline: none;
}

.breadcrumb-row {
  padding: 116px 0 22px;
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb-row a:hover,
.breadcrumb-row a:focus-visible {
  color: var(--rust);
  outline: none;
}

.detail-header {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0 70px;
  text-align: center;
}

.detail-header p {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-image {
  width: min(1180px, calc(100% - 48px));
  height: 560px;
  margin: 0 auto;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-layout {
  width: min(980px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 70px;
  margin: 0 auto;
  padding: 80px 0 110px;
}

.detail-layout.no-toc {
  grid-template-columns: minmax(0, 1fr);
}

.detail-toc {
  position: sticky;
  top: 170px;
  align-self: start;
  padding-top: 8px;
}

.detail-toc span {
  display: block;
  margin-bottom: 12px;
  color: var(--rust);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.detail-prose {
  min-width: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.72;
}

.detail-prose h2 {
  margin: 68px 0 18px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.detail-prose h2:first-child {
  margin-top: 0;
}

.detail-prose p {
  margin: 0 0 24px;
}

.detail-prose ul {
  padding-left: 22px;
}

.detail-prose a {
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-underline-offset: 4px;
}

.detail-prose blockquote {
  margin: 36px 0;
  padding: 22px 24px;
  background: var(--white);
  border-left: 4px solid var(--yellow);
  font-style: italic;
}

.detail-callout {
  margin: 38px 0;
  padding: 24px;
  background: var(--white);
  border-left: 4px solid var(--yellow);
  font-family: var(--sans);
  font-size: 15px;
}

.image-page-intro {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: flex-end;
  padding: 150px 24px 76px;
  color: var(--white);
  overflow: hidden;
}

.image-page-intro > img {
  position: absolute;
  inset: 0;
}

.image-page-shade {
  position: absolute;
  inset: 0;
  background: rgba(5, 25, 15, 0.64);
}

.image-page-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.image-page-content p {
  max-width: 640px;
  color: rgba(255, 254, 248, 0.76);
  font-size: 19px;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.profile-fact {
  min-height: 116px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-fact small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.profile-fact strong {
  font-family: var(--serif);
  font-size: 20px;
}

.level-scale {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.level-scale i {
  width: 10px;
  height: 10px;
  display: block;
  background: var(--green);
  border-radius: 50%;
}

.level-scale i.off {
  background: rgba(16, 39, 29, 0.14);
}

.service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.service-option {
  min-height: 220px;
  padding: 26px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.service-option h3 {
  margin: 70px 0 10px;
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: 0;
}

.service-option p {
  margin: 0;
  color: rgba(255, 254, 248, 0.7);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  border: 1px solid var(--line);
}

.contact-aside {
  padding: 38px;
  color: var(--white);
  background: var(--forest);
}

.contact-aside h2 {
  margin: 16px 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.contact-aside p {
  color: rgba(255, 254, 248, 0.7);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 38px;
  background: var(--white);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  min-height: 52px;
  color: var(--white);
  background: var(--rust);
  border: 0;
  border-radius: 5px;
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  color: var(--forest);
  background: var(--lime);
  outline: none;
}

@media (max-width: 1080px) {
  .page-intro h1,
  .image-page-intro h1,
  .detail-header h1 {
    font-size: 62px;
  }

  .topic-grid,
  .profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .page-intro {
    padding: 124px 20px 62px;
  }

  .page-intro-inner,
  .content-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-intro h1,
  .image-page-intro h1,
  .detail-header h1 {
    font-size: 48px;
    overflow-wrap: anywhere;
  }

  .page-intro-lead {
    font-size: 16px;
  }

  .page-subnav {
    top: 74px;
  }

  .content-section {
    padding: 66px 20px;
  }

  .content-head h2 {
    font-size: 42px;
  }

  .content-head > p {
    font-size: 14px;
  }

  .topic-grid,
  .diagnostic-list,
  .article-list-grid,
  .profile-facts,
  .service-options,
  .classification-grid {
    grid-template-columns: 1fr;
  }

  .classification-card {
    grid-template-rows: 210px 1fr;
  }

  .classification-card img {
    height: 210px;
  }

  .topic-tile {
    min-height: 190px;
  }

  .diagnostic-item,
  .diagnostic-item:nth-child(odd),
  .diagnostic-item:nth-child(even) {
    padding: 22px 4px;
    border-right: 0;
  }

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

  .dictionary-switcher button:nth-child(2),
  .dictionary-switcher a:nth-child(2) {
    border-right: 0;
  }

  .dictionary-switcher button:nth-child(-n + 2),
  .dictionary-switcher a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .dictionary-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 0;
  }

  .dictionary-description {
    display: none;
  }

  .article-feature {
    grid-template-columns: 1fr;
  }

  .article-feature-image {
    min-height: 320px;
  }

  .article-feature-copy {
    padding: 30px 24px;
  }

  .article-feature-copy h2 {
    font-size: 40px;
  }

  .breadcrumb-row,
  .detail-header,
  .detail-image,
  .detail-layout {
    width: calc(100% - 40px);
  }

  .breadcrumb-row {
    padding-top: 94px;
    overflow-x: auto;
  }

  .detail-header {
    padding: 42px 0 54px;
    text-align: left;
  }

  .detail-header p {
    font-size: 16px;
  }

  .detail-meta {
    justify-content: flex-start;
  }

  .detail-image {
    height: 320px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 58px 0 80px;
  }

  .detail-toc {
    position: static;
  }

  .detail-prose {
    font-size: 18px;
  }

  .detail-prose h2 {
    font-size: 32px;
  }

  .image-page-intro {
    min-height: 650px;
    padding: 130px 20px 60px;
  }

  .image-page-content p {
    font-size: 16px;
  }

  .contact-layout,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label.full,
  .contact-form button {
    grid-column: 1;
  }

  .contact-aside,
  .contact-form {
    padding: 28px 22px;
  }
}

@media (max-width: 390px) {
  .page-intro h1,
  .image-page-intro h1,
  .detail-header h1 {
    font-size: 42px;
  }

  .content-head h2 {
    font-size: 38px;
  }

  .directory-search {
    grid-template-columns: auto minmax(0, 1fr) 48px;
    padding-right: 6px;
  }

  .directory-search button {
    width: 48px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .dictionary-name strong {
    font-size: 21px;
  }

  .contact-aside h2 {
    font-size: 38px;
  }
}
