/* Public knowledge map: crawlable, readable, mobile-first directory. */

.kc-map {
  background: #fffaf5;
  color: var(--kc-cocoa);
}

.kc-map__shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.kc-map__hero {
  padding: 62px 0 68px;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 224, 188, .72), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(231, 222, 245, .78), transparent 34%),
    linear-gradient(180deg, #fffaf5, #fff7f1);
}

.kc-map__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.kc-map__eyebrow {
  margin: 0;
  color: #a95748;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.kc-map__hero h1 {
  max-width: 850px;
  margin: 12px 0 0;
  font-size: clamp(2.75rem, 5.8vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.045em;
}

.kc-map__lead {
  max-width: 780px;
  margin: 23px 0 0;
  color: #665753;
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}

.kc-map__count {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  margin: 24px 0 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #6f5e58;
  font-size: .84rem;
}

.kc-map__count strong {
  color: #a34f41;
  font-size: 1rem;
}

.kc-map__promise {
  padding: 29px;
  border: 1px solid rgba(59, 42, 33, .09);
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 54px rgba(79, 55, 48, .1);
}

.kc-map__promise > span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 50%;
  background: #e6f2e5;
  color: #315b3e;
  font-weight: 900;
}

.kc-map__promise h2 {
  margin: 17px 0 9px;
  font-size: 1.52rem;
  line-height: 1.2;
}

.kc-map__promise p {
  margin: 0;
  color: #70615d;
  line-height: 1.65;
}

.kc-map__section {
  padding: 70px 0;
  background: #fff;
}

.kc-map__section--soft {
  background: linear-gradient(180deg, #fffaf5, #f8f4ef);
}

.kc-map__section--tools {
  background: linear-gradient(135deg, #fff0df, #f3ecfb 55%, #edf6ee);
}

.kc-map__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.kc-map__heading h2 {
  margin: 7px 0 0;
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 1.08;
}

.kc-map__heading > p {
  margin: 0;
  color: #746763;
  line-height: 1.68;
}

.kc-map__hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.kc-map__hub-card {
  position: relative;
  display: grid;
  min-height: 160px;
  align-content: start;
  gap: 10px;
  padding: 22px 52px 22px 22px;
  border: 1px solid rgba(59, 42, 33, .09);
  border-radius: 23px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 34px rgba(79,55,48,.07);
  color: inherit;
  text-decoration: none;
}

.kc-map__hub-card strong {
  font-size: 1.24rem;
  line-height: 1.25;
}

.kc-map__hub-card span {
  color: #74645f;
  line-height: 1.55;
}

.kc-map__hub-card b {
  position: absolute;
  top: 21px;
  right: 20px;
  color: #a34f41;
  font-size: 1.2rem;
}

.kc-map__hub-card:hover,
.kc-map__hub-card:focus-visible {
  border-color: rgba(163,79,65,.22);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(79,55,48,.1);
}

.kc-map__link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
}

.kc-map__link-grid a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(59,42,33,.08);
  border-radius: 16px;
  background: #fff;
  color: #5e504b;
  font-weight: 850;
  text-decoration: none;
}

.kc-map__link-grid a:hover,
.kc-map__link-grid a:focus-visible {
  border-color: rgba(101,79,130,.25);
  color: #654f82;
}

.kc-map__directory-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.kc-map__directory {
  padding: 22px;
  border: 1px solid rgba(59,42,33,.09);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(79,55,48,.07);
}

.kc-map__directory-title {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(59,42,33,.08);
}

.kc-map__directory-title h3 {
  margin: 0;
  font-size: 1.3rem;
}

.kc-map__directory-title span {
  color: #87756f;
  font-size: .73rem;
  font-weight: 800;
  white-space: nowrap;
}

.kc-map__directory ul {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.kc-map__directory li {
  border-bottom: 1px solid rgba(59,42,33,.06);
}

.kc-map__directory li:last-child {
  border-bottom: 0;
}

.kc-map__directory li a {
  display: block;
  padding: 9px 2px;
  color: #5d4f49;
  line-height: 1.38;
  text-decoration: none;
}

.kc-map__directory li a:hover,
.kc-map__directory li a:focus-visible {
  color: #a34f41;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kc-map__article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kc-map-article;
}

.kc-map__article-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(59,42,33,.07);
  counter-increment: kc-map-article;
}

.kc-map__article-list a {
  color: #574944;
  font-weight: 750;
  line-height: 1.42;
  text-decoration: none;
}

.kc-map__article-list a:hover,
.kc-map__article-list a:focus-visible {
  color: #a34f41;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kc-map__article-list span {
  color: #8a7770;
  font-size: .72rem;
  white-space: nowrap;
}

.kc-map__more {
  display: inline-flex;
  margin-top: 18px;
  color: #a34f41;
  font-weight: 900;
  text-decoration: none;
}

.kc-map__more:hover,
.kc-map__more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .kc-map__hero-grid,
  .kc-map__heading {
    grid-template-columns: 1fr;
  }

  .kc-map__directory-columns {
    grid-template-columns: 1fr;
  }

  .kc-map__article-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .kc-map__shell {
    width: min(100% - 28px, 1180px);
  }

  .kc-map__hero {
    padding: 48px 0;
  }

  .kc-map__section {
    padding: 52px 0;
  }

  .kc-map__hub-card {
    min-height: 0;
  }

  .kc-map__article-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-map__hub-card {
    transition: none;
  }
}
