:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --paper: #ffffff;
  --ink: #1d2522;
  --muted: #65716d;
  --line: #dce4df;
  --soft: #edf3ef;
  --accent: #266a54;
  --accent-dark: #183f33;
  --orange: #ff5a12;
  --orange-dark: #e94708;
  --shadow: 0 18px 45px rgba(30, 45, 39, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: #fff;
  padding: .55rem .8rem;
  border-radius: 6px;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 223, .85);
  background: rgba(247, 248, 246, .92);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 0;
  position: relative;
}

.brand-mark::before {
  content: "K";
  font-size: 1rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #40504b;
  font-size: .94rem;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  padding: .68rem 1rem;
  font-weight: 700;
  line-height: 1.1;
  border: 1px solid transparent;
}

.nav-cta,
.nav-cta:hover {
  background: var(--orange-dark);
  color: #fff;
}

main {
  overflow: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-hero {
  position: relative;
  min-height: 560px;
  padding: 4.4rem 0 3rem;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(37, 28, 20, .62), rgba(90, 57, 23, .22)),
    linear-gradient(180deg, rgba(24, 20, 16, .18), rgba(24, 20, 16, .28)),
    #211a15;
}

.search-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(37, 28, 20, .62), rgba(90, 57, 23, .22)),
    linear-gradient(180deg, rgba(24, 20, 16, .18), rgba(24, 20, 16, .28));
  pointer-events: none;
}

.search-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}

.search-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.search-hero > .container {
  position: relative;
  z-index: 2;
}

.search-hero h1 {
  margin: 0 auto;
  max-width: 980px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(40, 25, 9, .22);
}

.title-short {
  display: none;
}

.search-subtitle {
  max-width: 780px;
  margin: 1rem auto 1.7rem;
  color: rgba(255, 255, 255, .9);
  font-size: 1.04rem;
  line-height: 1.6;
}

.finder-search {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px 230px;
  align-items: center;
  min-height: 86px;
  background: #fff;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(60, 34, 13, .28);
}

.finder-search svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-icon {
  display: grid;
  place-items: center;
  color: #a8a8a8;
}

.finder-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: #222;
  font: inherit;
  font-size: 1.25rem;
  background: transparent;
}

.finder-search input::placeholder {
  color: #aaa;
  opacity: 1;
}

.image-search-link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  justify-self: center;
  border: 1px dashed #d2d2d2;
  border-radius: 7px;
  color: #777;
}

.image-search-link:hover {
  color: #ff5a12;
  border-color: #ffb08a;
}

.finder-search button {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #ff4f0f;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.finder-search button:hover {
  background: #ee4206;
}

.finder-search button:active {
  transform: scale(.99);
}

.search-flow {
  width: min(100%, 920px);
  margin: 2.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
}

.search-flow::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 11px;
  height: 2px;
  background: rgba(255, 255, 255, .7);
}

.search-flow div {
  position: relative;
  display: grid;
  gap: .3rem;
  justify-items: center;
  color: #fff;
}

.search-flow span {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(206, 222, 245, .9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
}

.search-flow strong {
  margin-top: .4rem;
  font-size: 1.02rem;
}

.search-flow small {
  color: rgba(255, 255, 255, .84);
  font-size: .9rem;
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.5rem;
}

.quick-searches a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .35rem .78rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: .9rem;
}

.quick-searches a:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

section {
  padding: 3.6rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.section-head h2,
.article h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-head p,
.page-hero p {
  color: var(--muted);
  margin: .75rem 0 0;
  font-size: 1.02rem;
}

.category-showcase {
  padding: 4.1rem 0 4.4rem;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 90, 18, .12), transparent 34rem),
    linear-gradient(180deg, #fff8f2 0%, #f7f8f6 82%);
  color: var(--ink);
  border-block: 1px solid #eadfd5;
}

.category-showcase-head {
  max-width: 980px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.category-showcase-head span {
  display: block;
  margin-bottom: .55rem;
  color: var(--orange);
  font-size: .94rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.category-showcase-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.category-showcase-head p {
  margin: 1.05rem auto 0;
  max-width: 620px;
  color: #5e6a66;
  font-size: clamp(.98rem, 1.2vw, 1.06rem);
  line-height: 1.55;
  font-weight: 650;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.05rem;
}

.directory-card {
  min-height: 178px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .9rem;
  padding: 1.25rem .85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(56, 39, 23, .08);
  border: 1px solid #eadfd5;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.directory-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(56, 39, 23, .13);
  border-color: #ffb285;
}

.directory-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, #fff 0 34%, rgba(255, 255, 255, .72) 35% 49%, transparent 50%),
    linear-gradient(145deg, #fff4eb, #ffdfbf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 10px 24px rgba(255, 107, 23, .14);
  font-size: 1.9rem;
  line-height: 1;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.directory-card strong {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .7fr);
  gap: 2rem;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .62rem;
  height: .62rem;
  border-radius: 2px;
  background: var(--accent);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: .9rem;
}

.step {
  counter-increment: step;
  border-left: 3px solid #b7d0c5;
  padding: .2rem 0 .35rem 1rem;
}

.step h3 {
  margin: 0 0 .25rem;
  font-size: 1.04rem;
}

.step h3::before {
  content: counter(step) ". ";
  color: var(--accent);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.read-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 1.1rem;
}

.read-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.read-card p {
  margin: .55rem 0 .85rem;
  color: var(--muted);
}

.read-card a {
  color: var(--accent);
  font-weight: 700;
}

.soft-band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.faq {
  display: grid;
  gap: .8rem;
  max-width: 880px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
}

.faq p {
  margin: .65rem 0 0;
  color: var(--muted);
}

.cta-band {
  padding: 2.6rem 0;
  background: var(--accent-dark);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.16;
}

.cta-inner p {
  margin: .4rem 0 0;
  color: #c9dbd4;
}

.cta-inner .button {
  background: #fff;
  color: var(--accent-dark);
}

.site-footer {
  background: #101715;
  color: #d6e0dc;
  padding: 2.4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, .7fr);
  gap: 1.4rem;
}

.site-footer h3 {
  margin: 0 0 .65rem;
  color: #fff;
  font-size: .98rem;
}

.site-footer p,
.site-footer a {
  color: #aebdb8;
  font-size: .94rem;
}

.footer-links {
  display: grid;
  gap: .35rem;
}

.page-hero {
  padding: 3.6rem 0 2rem;
}

.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.2rem 1rem 4rem;
}

.article p,
.article li {
  color: #44534e;
}

.article-intro {
  margin: 1rem 0 1.4rem;
  font-size: 1.08rem;
  color: #34433e;
}

.article-toc {
  display: grid;
  gap: .45rem;
  margin: 1.4rem 0 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-toc strong {
  color: var(--ink);
}

.article-toc a {
  text-decoration: none;
  font-weight: 650;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 1rem;
}

.mini-card h3 {
  margin-top: 0;
}

.do-dont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}

.do-dont .mini-card:first-child {
  border-color: #bad3c7;
  background: #f6fbf8;
}

.do-dont .mini-card:last-child {
  border-color: #e1c8b4;
  background: #fff8f3;
}

.article h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.article h3 {
  margin-top: 1.5rem;
  font-size: 1.12rem;
}

.article a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-box {
  border: 1px solid #d9c7a7;
  background: #fff8eb;
  border-radius: 8px;
  padding: 1rem;
  color: #564427;
}

@media (max-width: 700px) {
  .article-grid,
  .do-dont {
    grid-template-columns: 1fr;
  }
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.directory-table th,
.directory-table td {
  padding: .9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.directory-table th {
  background: #eef4f1;
  font-size: .9rem;
}

.directory-table tr:last-child td {
  border-bottom: 0;
}

.directory-table a {
  color: var(--accent);
  font-weight: 750;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-wrap {
    justify-content: flex-start;
  }

  .nav-cta {
    display: none;
  }

  .split,
  .footer-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    display: grid;
  }

  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directory-card {
    min-height: 150px;
  }

  .directory-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 1.65rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .search-hero {
    min-height: auto;
    padding: 3.4rem 0 2.6rem;
  }

  .search-hero h1 {
    max-width: 20rem;
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .search-subtitle {
    max-width: 21rem;
    font-size: .98rem;
  }

  .finder-search {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    grid-template-rows: 64px 58px;
    min-height: 122px;
    border-radius: 26px;
  }

  .finder-search input {
    font-size: 1rem;
  }

  .finder-search button {
    grid-column: 1 / -1;
    font-size: 1.12rem;
  }

  .finder-search svg {
    width: 28px;
    height: 28px;
  }

  .image-search-link {
    width: 40px;
    height: 40px;
  }

  .search-flow {
    grid-template-columns: 1fr;
    gap: .8rem;
    text-align: left;
  }

  .search-flow::before {
    display: none;
  }

  .search-flow div {
    grid-template-columns: 22px 1fr;
    column-gap: .65rem;
    justify-items: start;
    align-items: center;
  }

  .search-flow small {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    align-items: flex-start;
  }

  .category-showcase {
    padding: 3rem 0 3.2rem;
  }

  .category-showcase-head span {
    letter-spacing: .2em;
    font-size: .76rem;
  }

  .category-showcase-head h2 {
    font-size: 1.9rem;
  }

  .category-showcase-head p {
    font-size: 1rem;
    font-weight: 700;
  }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .78rem;
  }

  .directory-card {
    min-height: 128px;
    border-radius: 12px;
    gap: .65rem;
  }

  .directory-icon {
    width: 64px;
    height: 64px;
    border-radius: 19px;
    font-size: 1.55rem;
  }

  .directory-card strong {
    font-size: 1.08rem;
  }

  section {
    padding: 2.7rem 0;
  }

  .finder-search {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .image-search-link {
    display: none;
  }

  .finder-search input {
    font-size: .96rem;
  }

  .title-full {
    display: none;
  }

  .title-short {
    display: inline;
  }

  .search-hero h1 {
    width: calc(100vw - 32px);
    max-width: 18rem;
    font-size: 2.15rem;
  }

  .search-subtitle {
    width: calc(100vw - 32px);
    max-width: 16.5rem;
    font-size: .88rem;
  }

  .quick-searches {
    width: calc(100vw - 32px);
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .finder-search {
    width: calc(100vw - 32px);
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
