* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fafaf7;
  font-family: Montserrat, Arial, sans-serif;
  color: #132d46;
  line-height: 1.55;
}
.knowledge {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 64px;
}
.knowledge,
.knowledge * {
  min-width: 0;
}
.knowledge a {
  color: inherit;
  text-underline-offset: 0.2em;
}
.knowledge p {
  margin: 0.5em 0 1em;
}
.knowledge h1,
.knowledge h2,
.knowledge h3 {
  line-height: 1.23;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--blue);
}
.knowledge h1 {
  font-weight: 590;
  font-size: clamp(2.45rem, 4.4vw, 4.2rem);
}
.knowledge h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 600;
}
.knowledge h3 {
  font-weight: 610;
  font-size: 1.12rem;
}
.knowledge .subtitle {
  font-size: clamp(1.12rem, 1.7vw, 1.48rem);
  margin: 0.55rem 0 0.65rem;
  font-weight: 470;
  line-height: 1.45;
}
.support {
  max-width: 82ch;
  color: #48565e;
  font-size: 1rem;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8em;
  color: #53616a;
  font-size: 0.84rem;
  margin: 25px 0 32px;
}
.crumb a {
  text-decoration: none;
}
.crumb i {
  font-style: normal;
  color: #849197;
}
.intro {
  border-left: 3px solid #bc3d3d;
  padding-left: clamp(16px, 2vw, 29px);
  margin-bottom: 27px;
}
.intro .support {
  margin: 0;
}
.k-icon {
  width: 23px;
  height: 23px;
  display: block;
  flex: none;
}
.knowledge button,
.knowledge input,
.knowledge select,
.knowledge textarea {
  font: inherit;
}
.knowledge button,
.knowledge select,
summary {
  cursor: pointer;
}
.knowledge input:not([type="checkbox"]),
.knowledge textarea,
.knowledge select {
  display: block;
  width: 100%;
  border: 1px solid #a6b0b3;
  border-radius: 3px;
  background: white;
  color: var(--blue);
  padding: 11px 12px;
  margin-top: 5px;
}
.knowledge select {
  appearance: none;
  padding-right: 36px;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23132d46' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
}
.knowledge textarea {
  resize: vertical;
  line-height: 1.5;
}
.knowledge label,
legend {
  display: block;
  font-size: 0.91rem;
  font-weight: 560;
}
.knowledge label + label {
  margin-top: 12px;
}
.knowledge :focus-visible,
.skip:focus-visible {
  outline: 3px solid #9b3335;
  outline-offset: 3px;
}
.skip,
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  clip-path: none;
  width: auto;
  height: auto;
  z-index: 1000;
  background: white;
  padding: 12px;
  top: 0;
  left: 0;
}
.knowledge .primary,
.knowledge .secondary,
.knowledge .text-link {
  font-weight: 600;
  font-size: 0.9rem;
}
.knowledge .primary,
.knowledge .secondary {
  cursor: pointer;
  border-radius: 3px;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.35;
}
.knowledge .primary {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
}
.knowledge .primary:hover {
  background: #23455e;
}
.knowledge .secondary {
  background: white;
  color: var(--blue);
  border: 1px solid #9caaaf;
}
.search-form {
  position: relative;
  max-width: 100%;
}
.searchbar {
  border: 1px solid #81939d;
  border-radius: 4px;
  padding: 6px 6px 6px 17px;
  background: white;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px #132d4607;
}
.searchbar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.knowledge .searchbar input {
  font-size: 1.05rem;
  margin: 0;
  padding: 9px 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
}
.searchbar .primary {
  padding: 0.85rem 1.8rem;
}
.searchbar .k-icon {
  color: #526777;
}
.searchbar input::placeholder {
  color: #52616e;
  opacity: 1;
}
#quick {
  position: absolute;
  top: 63px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #a8b5bb;
  border-radius: 4px;
  box-shadow: 0 10px 20px #132d4618;
  z-index: 8;
  padding: 4px;
}
#quick a {
  display: block;
  padding: 10px;
  text-decoration: none;
}
#quick a:hover,
#quick a:focus {
  background: #edf1f1;
}
.filters {
  margin: 10px 0 18px;
}
.filters summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.89rem;
  font-weight: 560;
  padding: 5px 0;
}
.filters summary::-webkit-details-marker {
  display: none;
}
.filters .k-icon {
  width: 17px;
  height: 17px;
}
.filters-row {
  background: #f1f2ee;
  border: 1px solid #d5dcdc;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 16px;
  margin: 5px 0;
}
.filters-row label + label {
  margin: 0;
}
.library-nav,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 50px);
  border-block: 1px solid #d6dcdb;
  align-items: stretch;
}
.library-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 560;
  font-size: 0.93rem;
  text-decoration: none;
  padding: 15px 0;
}
.library-nav .k-icon {
  width: 19px;
  height: 19px;
}
.library-nav a:hover,
.admin-tabs a:hover,
.crumb a:hover {
  text-decoration: underline;
}
.block {
  margin: clamp(32px, 4vw, 54px) 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 19px;
}
.count,
.meta,
.verified,
.fine,
.inventory span {
  color: #4a5a64;
  font-size: 0.85rem;
}
.count {
  font-weight: 500;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.cat-card,
.result-card,
.tools-row > a {
  background: #fff;
  border: 1px solid #d3dad9;
  border-radius: 4px;
  text-decoration: none;
  display: block;
}
.cat-card {
  padding: 19px 18px 18px;
  min-height: 162px;
}
.cat-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #edf1f0;
  border-radius: 6px;
  margin-bottom: 13px;
  color: #26475a;
}
.cat-icon .k-icon {
  width: 22px;
  height: 22px;
}
.cat-card:hover,
.result-card:hover,
.tools-row > a:hover {
  border-color: #7c929d;
  background: #fcfdfb;
}
.knowledge .cat-card p,
.knowledge .result-card p,
.tools-row p {
  color: #4c5b62;
  line-height: 1.55;
  font-size: 0.93rem;
  margin: 7px 0 0;
}
.featured,
.tools-row,
.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.result-card {
  padding: 21px 23px;
}
.result-card h3,
.result-card h2 {
  margin-top: 6px;
}
.meta {
  font-weight: 590;
  letter-spacing: 0.015em;
}
.tools-row {
  margin: 42px 0;
}
.tools-row > a {
  display: flex;
  gap: 15px;
  padding: 25px;
  align-items: flex-start;
  background: #eef2ef;
}
.tools-row .k-icon {
  margin-top: 4px;
}
.tools-row h2 {
  font-size: 1.35rem;
}
.suggest {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(25px, 6vw, 100px);
  padding: clamp(23px, 4vw, 49px);
  background: #edf1ef;
  border-top: 2px solid #45616d;
}
.suggest h2 {
  margin: 12px 0;
}
.suggest p {
  max-width: 54ch;
}
.knowledge .check {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-weight: 450;
  font-size: 0.88rem;
}
.check input {
  accent-color: var(--blue);
  flex: none;
}
.notice,
.issue {
  padding: 14px 18px;
  background: #edf4ec;
  border-left: 3px solid #4c7158;
}
.issue {
  background: #faeeed;
  border-color: var(--red);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(200px, 1fr);
  gap: clamp(30px, 7vw, 115px);
  margin-top: 25px;
}
.reading h1 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}
.reading section {
  margin: 30px 0;
}
.reading section h2,
.article-layout aside h2,
.steps h2 {
  font-size: 1.3rem;
}
.reading .answer {
  border-left: 3px solid var(--red);
  padding: 15px 20px;
  background: #eff2ef;
  font-size: 1.1rem;
  line-height: 1.65;
}
.reading .verified {
  margin: 14px 0;
}
.article-layout aside {
  align-self: start;
  border-top: 2px solid var(--blue);
  padding-top: 16px;
}
.article-layout aside a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid #d8dddd;
  font-size: 0.97rem;
}
.reading section p {
  white-space: pre-line;
}
.sources li {
  margin-bottom: 7px;
}
.article-end,
.letters,
.admin-tabs,
.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
.letters {
  margin: 25px 0;
}
.letters a,
.admin-tabs a {
  padding: 9px 14px;
  text-decoration: none;
  border: 1px solid #cad1d0;
  border-radius: 3px;
}
.current {
  background: var(--blue) !important;
  color: white !important;
}
.inline-form {
  margin: 20px 0;
}
.inline-form label {
  min-width: min(100%, 280px);
}
.gloss {
  max-width: 850px;
}
.gloss dt {
  font-size: 1.22rem;
  font-weight: 600;
  margin-top: 20px;
}
.gloss dd {
  margin: 7px 0;
  padding-bottom: 19px;
  border-bottom: 1px solid #cdd6d4;
}
.gloss dd a {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.91rem;
}
.steps li {
  margin: 15px 0;
  padding: 15px;
  background: white;
  border-bottom: 1px solid #d1d8d7;
}
.steps li::marker {
  font-weight: 650;
}
.steps h2 {
  margin-bottom: 6px;
}
.narrow,
.admin-block {
  max-width: 860px;
}
.admin-tabs {
  align-items: center;
  padding: 12px 0;
  margin: 16px 0;
}
.admin-block {
  padding: 20px 0;
}
.admin-block h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.admin-form {
  max-width: 780px;
}
.admin-form > *,
.narrow form > * {
  margin-block: 12px;
}
.admin-form fieldset {
  border: 1px solid #b9c5c8;
  padding: 13px;
}
.pick-many {
  max-height: 160px;
  overflow: auto;
}
.inventory,
.catalog {
  padding: 0;
  list-style: none;
}
.inventory li,
.catalog li,
.entry {
  padding: 10px 0;
  border-bottom: 1px solid #d1dbd8;
}
.inventory span {
  display: block;
}
.admin-block li {
  margin-bottom: 4px;
}
.footer {
  border-top: 1px solid var(--line);
}
.sources,
.reading,
.suggest,
.entry,
.admin-block,
.gloss {
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .knowledge {
    width: 87%;
  }
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-layout aside {
    max-width: 760px;
  }
  .filters-row {
    grid-template-columns: 1fr 1fr;
  }
  .suggest {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .library-nav {
    gap: 17px;
  }
}
@media (max-width: 640px) {
  .knowledge {
    width: calc(100% - 40px);
    padding-bottom: 35px;
  }
  .crumb {
    margin: 17px 0 24px;
  }
  .intro {
    padding-left: 14px;
  }
  .knowledge h1 {
    font-size: 2.23rem;
  }
  .intro .support {
    font-size: 0.97rem;
  }
  .searchbar {
    gap: 8px;
    padding: 5px 5px 5px 10px;
  }
  .searchbar .k-icon {
    width: 18px;
  }
  .searchbar .primary {
    font-size: 0.86rem;
    padding: 10px;
  }
  .knowledge .searchbar input {
    font-size: 1rem;
  }
  .filters-row,
  .featured,
  .results,
  .tools-row {
    grid-template-columns: 1fr;
  }
  .library-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
    padding: 4px 0;
  }
  .library-nav a {
    padding: 9px 0;
    font-size: 0.9rem;
  }
  .cat-grid {
    gap: 9px;
  }
  .cat-card {
    padding: 14px;
    min-height: auto;
  }
  .cat-card h3 {
    font-size: 1rem;
  }
  .cat-card p {
    font-size: 0.875rem;
  }
  .knowledge input:not([type="checkbox"]),
  .knowledge textarea,
  .knowledge select {
    font-size: 1rem;
  }
  .suggest {
    padding: 21px 16px;
  }
  .article-layout {
    gap: 25px;
  }
  .tools-row {
    margin: 25px 0;
  }
  .section-head {
    margin-bottom: 13px;
  }
  .count {
    font-size: 0.8rem;
  }
  .admin-tabs {
    gap: 5px;
  }
  .admin-tabs a {
    padding: 8px;
  }
}
@media (max-width: 420px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .cat-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0 12px;
    align-items: start;
  }
  .cat-icon {
    grid-row: span 2;
    margin: 0;
  }
  .cat-card p {
    grid-column: 2;
  }
  .searchbar {
    display: grid;
    grid-template-columns: 19px 1fr;
  }
  .searchbar .primary {
    grid-column: 1/-1;
    margin: 0 0 1px;
  }
  .searchbar .k-icon {
    margin-left: 1px;
  }
  .searchbar input {
    width: 100%;
  }
  .searchbar {
    padding: 8px;
  }
  .search-form #quick {
    top: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
