.dir {
  --paper: #fbf6f2;
  --ink: #191817;
  --muted: #727174;
  --line: rgba(34, 28, 25, 0.1);
  --accent: #995547;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

.dir-wrap { width: min(var(--cdb-page-max), calc(100% - var(--cdb-page-gutter))); margin: 0 auto; padding: 1.4rem 0 2rem; }
.cdb-icon { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dir-kicker { margin: 0 0 0.7rem; color: var(--accent); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; }
.dir h1, .dir h2 { margin: 0; font-family: var(--serif); font-weight: 460; letter-spacing: -0.04em; line-height: 0.98; }
.dir h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); max-width: 16ch; }
.dir-product h1 { max-width: 18ch; font-size: clamp(2.8rem, 4vw, 4.4rem); }
.dir h1 em { color: var(--accent); font-style: italic; font-weight: 450; }
.dir-lede { max-width: 38rem; margin: 1rem 0 0; color: var(--muted); font-size: 1.02rem; }

.dir-hero {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.6rem;
}
.dir-hero img { width: 100%; height: 18rem; object-fit: cover; border-radius: 1.6rem; background: #f3e7df; }
.dir-search, .dir-account form {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.3rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(69, 52, 33, 0.1);
}
.dir-search input, .dir-account input {
  flex: 1;
  min-width: 0;
  height: 2.8rem;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}
.dir-search button, .dir-account button, .dir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.8rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 0.88rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.dir-sections, .dir-grid { display: grid; gap: 0.8rem; }
.dir-sections { grid-template-columns: repeat(2, 1fr); margin: 0.4rem 0 1.8rem; }
.dir-section, .dir-card, .dir-panel {
  display: block;
  padding: 1rem 1.1rem;
  background: #fff;
  border-radius: 1.25rem;
  color: inherit;
  text-decoration: none;
}
.dir-section { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.dir-section .cdb-icon { color: var(--accent); }
.dir-section strong, .dir-card h2 { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.dir-search .cdb-icon { color: var(--muted); }
.dir-section small, .dir-card p, .dir-meta { color: var(--muted); font-size: 0.88rem; }
.dir-card h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; margin-bottom: 0.35rem; }
.dir-card img, .dir-photo {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 11rem;
  padding: 0.55rem;
  margin: 0 0 0.85rem;
  object-fit: contain;
  background: radial-gradient(ellipse at 50% 75%, rgba(225, 205, 184, 0.42), transparent 64%), linear-gradient(140deg, #f3ebe4, #fbf7f2);
  border-radius: 1rem;
}
.dir-meta { display: flex; align-items: center; gap: 0.35rem; }
.dir-card p { margin: 0.35rem 0 0; line-height: 1.45; }
.dir-grid { grid-template-columns: minmax(0, 1fr); }
.dir-crumb { display: flex; gap: 0.45rem; margin: 0 0 1rem; color: var(--muted); font-size: 0.84rem; }
.dir-crumb a { color: inherit; text-decoration: none; }
.dir-copy { max-width: 42rem; font-size: 1.05rem; line-height: 1.6; color: #3c3835; }
.dir-block { margin-top: 2rem; }
.dir-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.7rem; }
.dir-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.dir-fact { padding: 0.85rem 1rem; background: #fff; border-radius: 1rem; }
.dir-fact small { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dir-fact strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em; }
.dir-chips a, .dir-facet a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #f3e7df;
  color: #3c3835;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.3;
}
.dir-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.8rem; }
.dir-facet { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dir-facet small, .dir-chips small { color: var(--accent); font-weight: 700; }
.dir-docs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.dir-docs li { padding: 0.35rem 0.7rem; border-radius: 999px; background: #f6efe8; font-size: 0.82rem; }
.dir-layout { display: grid; gap: 1rem; }
.dir-panel h2 { font-size: 1.7rem; margin-bottom: 0.45rem; }
.dir-account { width: min(460px, 100%); margin: 8vh auto; }
.dir-account h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.dir-prose p { margin: 0 0 0.9rem; color: #3d3936; }

.dir-stage { display: grid; gap: 1.6rem; align-items: center; }
.dir-photo { height: 18rem; border-radius: 1.6rem; }
.dir-product .dir-copy { margin: 0.8rem 0 0; }
.dir-product .dir-facts { margin-top: 1rem; }
.dir-label { margin: 0.85rem 0 0.4rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dir-chart { height: 13.5rem; margin-top: 0.4rem; }
.dir-chart-note { margin: 0.35rem 0 0; color: #5c5754; font-size: 0.95rem; line-height: 1.45; }
.dir-supplier-line, .dir-actions, .dir-record, .dir-block h2, .dir-panel h2, .dir-fact {
  display: flex; align-items: center; gap: 0.45rem;
}
.dir-supplier-line { margin: 0.7rem 0 0; color: var(--muted); font-weight: 700; }
.dir-supplier-line a { color: inherit; }
.dir-actions { flex-wrap: wrap; margin-top: 1.1rem; }
.dir-btn .cdb-icon, .dir-btn-ghost .cdb-icon { stroke: currentColor; }
.dir-btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(25, 24, 23, 0.12); }
.dir-block h2 .cdb-icon, .dir-panel h2 .cdb-icon { width: 1.35rem; height: 1.35rem; color: var(--accent); }
.dir-docgrid { display: grid; gap: 0.7rem; }
.dir-doc {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1rem; background: #fff; border-radius: 1.1rem;
  color: inherit; text-decoration: none;
}
.dir-doc .cdb-icon { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.dir-doc strong { display: block; }
.dir-doc small, .dir-fact small { color: var(--muted); }
.dir-split { display: grid; gap: 0.8rem; margin-top: 0.8rem; align-items: stretch; }
.dir-panel { display: flex; flex-direction: column; }
.dir-panel .dir-chips:last-child, .dir-panel .dir-record { margin-top: auto; }
.dir-fold { margin-top: 1rem; background: #fff; border-radius: 1.2rem; padding: 0.2rem 1rem 0.2rem; }
.dir-fold summary { display: flex; align-items: center; gap: 0.45rem; padding: 0.9rem 0; cursor: pointer; font-weight: 700; }
.dir-fold p { margin: 0 0 0.8rem; color: #3c3835; line-height: 1.55; }
.dir-fold a { color: var(--accent); }
.dir-record { flex-wrap: wrap; margin-top: 0.8rem; }
.dir-record span { display: inline-flex; align-items: center; gap: 0.3rem; }

.land h1 { max-width: 16ch; font-size: clamp(3rem, 4.4vw, 4.5rem); line-height: 0.96; }
.land-hero { display: grid; gap: 1.6rem; align-items: center; margin-bottom: 1.6rem; }
.land-hero img { width: 100%; height: 22rem; object-fit: cover; border-radius: 1.8rem; background: #f3e7df; }
.land-ask {
  display: flex; align-items: center; gap: 0.45rem;
  max-width: 40rem; margin-top: 1.4rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  background: #fff; border-radius: 999px;
  box-shadow: 0 16px 40px rgba(69, 52, 33, 0.1);
}
.land-ask input { flex: 1; min-width: 0; height: 2.8rem; border: 0; background: transparent; font: inherit; outline: none; }
.land-ask button {
  height: 2.8rem; padding: 0 1.15rem; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font: 700 0.88rem/1 var(--sans); cursor: pointer;
}
.land-ask .cdb-icon { color: var(--muted); }
.land-prompts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.land-prompts a {
  padding: 0.35rem 0.7rem; border-radius: 999px; background: #fff; color: inherit;
  text-decoration: none; font-size: 0.82rem;
}
.land-paths { display: grid; gap: 0.7rem; margin: 0.4rem 0 1.6rem; }
.land-paths a, .land-companies a, .land-next {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  padding: 1.1rem 1.15rem; background: #fff; border-radius: 1.25rem;
  color: inherit; text-decoration: none;
}
.land-paths .cdb-icon, .land-companies .cdb-icon { color: var(--accent); }
.land-paths strong, .land-companies strong, .land-next strong { font-size: 1.05rem; letter-spacing: -0.03em; }
.land-paths span, .land-next small, .land-companies small { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.land-block { margin-top: 1.8rem; }
.land-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.land-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.land-head a { color: var(--accent); font-weight: 700; text-decoration: none; }
.land-companies { display: grid; gap: 0.6rem; }
.land-companies a { flex-direction: row; align-items: center; }
.land-companies small { margin-left: auto; color: var(--accent); font-weight: 700; }
.land-companies .land-company-card { min-width: 0; flex-direction: column; align-items: stretch; gap: .8rem; padding: 1rem 1.05rem; border: 1px solid rgba(34, 28, 25, .07); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.land-companies .land-company-card:hover { transform: translateY(-2px); border-color: rgba(153, 85, 71, .25); box-shadow: 0 12px 28px rgba(55, 39, 31, .07); }
.land-company-head, .land-company-name { display: flex; min-width: 0; align-items: center; gap: .45rem; }
.land-company-head { justify-content: space-between; gap: .8rem; }
.land-company-name strong { min-width: 0; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.3; }
.land-company-name .cdb-icon { color: var(--accent); }
.land-company-head small { flex: none; margin: 0; color: var(--accent); font-size: .72rem; }
.land-company-offerings { display: flex; min-width: 0; flex-direction: column; gap: .28rem; padding-top: .62rem; border-top: 1px solid var(--line); }
.land-company-label { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.land-company-grade { overflow: hidden; color: #4a413c; font-size: .78rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.land-next { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 1.6rem; }
.land-next em { font-style: normal; font-size: 1.4rem; }
.land-answer { margin-bottom: 1.4rem; }
.land-answer h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.8rem; }

.sup h1 { max-width: 16ch; }
.sup-hero { display: grid; min-width: 0; gap: 1.2rem; align-items: center; margin-bottom: 1.4rem; }
.sup-hero > * { min-width: 0; }
.sup-mark {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; min-width: 0; min-height: 16rem; height: auto;
  flex-direction: column; align-items: flex-start; justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2.1rem); border: 1px solid rgba(153, 85, 71, .12); border-radius: 1.8rem;
  background: radial-gradient(circle at 83% 18%, rgba(197, 146, 113, .2), transparent 35%), linear-gradient(140deg, #f0e5dc, #fffaf6);
  color: var(--ink); font-family: var(--sans);
}
.sup-mark::after { position: absolute; z-index: -1; right: -3.5rem; bottom: -6rem; width: 16rem; height: 16rem; border: 1px solid rgba(153, 85, 71, .16); border-radius: 50%; box-shadow: 0 0 0 1.25rem rgba(153, 85, 71, .035), 0 0 0 2.5rem rgba(153, 85, 71, .025); content: ""; }
.sup-mark-kicker { position: relative; z-index: 1; max-width: 100%; color: var(--accent); font: 800 .68rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.sup-mark strong { position: relative; z-index: 1; max-width: 15ch; font: 750 clamp(1.8rem, 3vw, 3rem)/.98 var(--sans); letter-spacing: -.07em; overflow-wrap: anywhere; }
.sup-mark-orbit { position: absolute; z-index: 0; top: 18%; right: 13%; width: 7.5rem; height: 7.5rem; border: 1px solid rgba(153, 85, 71, .18); border-radius: 50%; }
.sup-mark-orbit::before, .sup-mark-orbit::after { position: absolute; inset: .9rem -.9rem; border: 1px solid rgba(153, 85, 71, .12); border-radius: 50%; content: ""; transform: rotate(38deg); }
.sup-mark-orbit::after { inset: -.9rem .9rem; transform: rotate(-38deg); }
.sup-mark-orbit i { position: absolute; z-index: 1; width: .52rem; height: .52rem; border: 2px solid #fffaf5; border-radius: 50%; background: var(--accent); }
.sup-mark-orbit i:nth-child(1) { top: -.2rem; left: 48%; }
.sup-mark-orbit i:nth-child(2) { right: .1rem; bottom: 1.2rem; background: #84947e; }
.sup-mark-orbit i:nth-child(3) { bottom: .25rem; left: .7rem; background: #d7a675; }
.sup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.2rem; max-width: 32rem; }
.sup-stats div { padding: 0.8rem 0.9rem; background: #fff; border-radius: 1rem; }
.sup-stats small { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.sup-stats strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.sup-list { display: grid; gap: 0.55rem; margin-top: 1.2rem; }
.sup-list a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 0.9rem; background: #fff; border-radius: 1rem;
  color: inherit; text-decoration: none;
}
.sup-list b {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: 999px; background: #f3e7df; color: var(--accent); font-size: 0.95rem;
}
.sup-list span { display: flex; flex-direction: column; min-width: 0; }
.sup-list strong { font-size: 0.98rem; }
.sup-list small { color: var(--muted); }
.sup-list em { margin-left: auto; font-style: normal; color: var(--accent); }
.sup-list .sup-list-copy { flex: 1; gap: .45rem; }
.sup-list .sup-list-head { display: flex; min-width: 0; flex-direction: row; align-items: baseline; justify-content: space-between; gap: .6rem; }
.sup-list-head strong { min-width: 0; overflow-wrap: anywhere; }
.sup-list-head small { flex: none; color: var(--accent); font-weight: 750; }
.sup-list .sup-list-offerings { display: flex; flex-direction: row; flex-wrap: wrap; gap: .3rem; }
.sup-list-offerings span { display: block; max-width: 100%; overflow: hidden; padding: .22rem .5rem; border-radius: 999px; background: #f7eee8; color: #635a55; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

.dir-empty-state {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 52rem;
  margin: 1.1rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(153, 85, 71, .14);
  border-radius: 1.25rem;
  background: linear-gradient(120deg, #f4ebe4, #fffdfa 78%);
}
.dir-empty-icon { display: grid; width: 3.1rem; height: 3.1rem; place-items: center; border-radius: 50%; background: #f0e0d6; color: var(--accent); }
.dir-empty-icon .cdb-icon { width: 1.3rem; height: 1.3rem; }
.dir-empty-state h2 { margin: 0; color: var(--ink); font: 750 1.18rem/1.25 var(--sans); letter-spacing: -.045em; }
.dir-empty-state p { max-width: 40rem; margin: .35rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.dir-empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; margin-top: .85rem; }
.dir-empty-actions a { color: var(--accent); font-size: .82rem; font-weight: 750; text-decoration: none; }
.dir-empty-actions a:hover { text-decoration: underline; text-underline-offset: .2em; }
.dir-empty-actions .dir-empty-primary { display: inline-flex; min-height: 2.45rem; align-items: center; gap: .55rem; padding: 0 .9rem; border-radius: 999px; background: var(--ink); color: #fff; }
.dir-empty-actions .dir-empty-primary:hover { background: var(--accent); text-decoration: none; }
.dir-missing-state { max-width: 45rem; margin: clamp(2rem, 7vw, 5rem) 0; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 1.5rem; background: linear-gradient(135deg, #f3e9e2, #fffdfa 78%); }
.dir-missing-state h1 { max-width: 16ch; margin: 0; }
.dir-missing-state .dir-lede { margin-bottom: 0; }

@media (min-width: 860px) {
  .land-hero { grid-template-columns: 1.05fr 0.95fr; }
  .land-paths { grid-template-columns: repeat(3, 1fr); }
  .land-companies { grid-template-columns: 1fr 1fr; }
  .sup-hero { grid-template-columns: 1.2fr 0.8fr; }
  .sup-list { grid-template-columns: 1fr 1fr; }
  .dir-hero { grid-template-columns: 1.15fr 0.85fr; }
  .dir-hero img { height: 22rem; }
  .dir-sections { grid-template-columns: repeat(5, 1fr); }
  .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dir-layout { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
  .dir-stage { grid-template-columns: 0.82fr 1.18fr; }
  .dir-split { grid-template-columns: 1fr 1fr; align-items: start; }
  .dir-docgrid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 859px) {
  .sup-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sup-stats div { min-width: 0; padding: .65rem .55rem; }
  .sup-stats small { font-size: .58rem; letter-spacing: .04em; }
  .sup-mark { min-height: 13rem; border-radius: 1.35rem; }
  .sup-mark-orbit { width: 6rem; height: 6rem; right: 9%; }
  .sup-list .sup-list-head { align-items: flex-start; flex-direction: column; gap: .12rem; }
  .land-company-head { align-items: flex-start; }
  .land-company-head small { white-space: nowrap; }
}

@media (min-width: 640px) and (max-width: 859px) {
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .dir-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Directory page titles share the same restrained display scale. */
.dir h1,
.dir .land h1,
.dir .sup h1,
.dir .dir-account h1,
.dir .dir-product h1 {
  font-size: clamp(3.2rem, 4.4vw, 4rem);
}

/* Keep page and section headlines on the same sans display face as the homepage. */
.dir h1,
.dir .dir-block > h2,
.dir .land-head h2,
.dir .land-answer > h2,
.dir .dir-panel h2,
.dir .dir-empty-state h2 {
  font-family: var(--sans);
  font-weight: 750;
  letter-spacing: -.06em;
}

@media (max-width: 600px) {
  .dir-empty-state { grid-template-columns: 1fr; align-items: start; gap: .7rem; padding: 1rem; border-radius: 1rem; }
  .dir-empty-icon { width: 2.7rem; height: 2.7rem; }
}

@media (max-width: 859px) {
  .dir h1,
  .dir .land h1,
  .dir .sup h1,
  .dir .dir-account h1,
  .dir .dir-product h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }
}
