.business-services,
.library-hero,
.skill-about {
  background: #fcfcfd;
  border-block: 1px solid #e5e7eb;
  color: #111827;
}

.services-inner {
  max-width: 1200px;
  box-sizing: border-box;
  margin: auto;
  padding: 54px 40px;
}

.business-services h2,
.skill-about h2 {
  margin: 0 0 24px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.services-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.services-pair a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.services-pair a:hover,
.services-pair a:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.services-pair h3 {
  margin: 0;
  font-size: 1.25rem;
}

.services-pair p,
.skill-about p {
  max-width: 62ch;
  line-height: 1.75;
  color: #4b5563;
  margin: 12px 0 20px;
}

.services-pair strong {
  color: #2563eb;
  margin-top: auto;
}

.library-hero {
  padding: 56px 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(37, 99, 235, 0.09), transparent 70%),
    linear-gradient(180deg, #f3f5fa 0%, #fcfcfd 100%);
}

.library-hero h1 {
  font-weight: 800;
}

.library-hero h1 + p {
  max-width: 64ch;
  margin-top: 14px;
  color: #4b5563;
}

.skill-area,
.skill-about {
  padding-block: 44px;
}

#filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
}

#filter label {
  display: grid;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
}

#filter .keyword {
  width: 100%;
}

#filter select {
  max-width: 175px;
}

#filter .tick {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 6px;
}

#count {
  margin: 18px 0;
  font-size: 0.94rem;
  color: #4b5563;
}

#results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #111827;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.03);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.skill-tile:hover,
.skill-tile:focus-visible {
  background: #eff4ff;
  border-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.skill-tile small,
.skill-meta {
  font: 600 0.82rem/1.6 ui-monospace, monospace;
  color: #2563eb;
}

.skill-tile p {
  color: #4b5563;
  line-height: 1.65;
}

.skill-tile b {
  font-size: 1.12rem;
}

#more {
  margin-top: 22px;
}

#detail {
  max-width: 980px;
  overflow-wrap: anywhere;
}

#detail h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 20px 0 10px;
}

#detail h2 {
  font-size: 1.35rem;
  margin: 26px 0 10px;
}

#detail pre {
  background: #111827;
  color: #f9fafb;
  border-radius: 12px;
  padding: 16px 18px;
  white-space: pre-wrap;
  word-break: break-word;
}

#detail .resources-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

#detail details {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

@media (max-width: 800px) {
  #results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-inner {
    padding: 38px 20px;
  }
  .services-pair,
  #results {
    grid-template-columns: 1fr;
  }
  #filter label {
    min-width: 0;
  }
  #filter select {
    max-width: 100%;
  }
  .skill-tile {
    padding: 16px;
  }
}
