/* Promptkits — layered on top of the homepage /styles.css. Only kit components live here. */

.main-nav a[aria-current="page"] {
  color: var(--blue);
  border-color: var(--blue);
}

.prompt-page main {
  padding-bottom: 5rem;
}

.prompt-page h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.prompt-page h2 {
  color: var(--navy);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prompt-page em {
  font-style: normal;
  font-weight: 600;
}

/* Shared top edge for the overview headline and detail navigation. */
.prompt-page {
  --prompt-top-spacing: 3.55rem;
}

/* Overview */

.prompt-hero {
  max-width: calc(760px * var(--site-scale));
  /* Match the homepage hero + copy + empty eyebrow spacing. */
  padding: var(--prompt-top-spacing) 0 2.5rem;
}

.prompt-hero h1 {
  margin-bottom: 1rem;
}

.prompt-hero .lede {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 440;
  line-height: 1.4;
}

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

.kit-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.5rem;
  border: calc(1px * var(--site-scale)) solid #dce5f2;
  border-radius: calc(12px * var(--site-scale));
  background: #f2f6fc;
  color: var(--ink);
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.kit-card span {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.kit-card strong {
  margin-top: .8rem;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.kit-card small {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}

.kit-card p {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

.kit-card:hover,
.kit-card:focus-visible {
  border-color: #bfd0e9;
  background: #eaf2ff;
  transform: translateY(calc(-2px * var(--site-scale)));
  outline: none;
}

/* Kit detail */

.kit-page > * {
  max-width: calc(860px * var(--site-scale));
}

.kit-nav {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding-top: var(--prompt-top-spacing);
}

.kit-nav.bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: calc(1px * var(--site-scale)) solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: calc(45px * var(--site-scale));
  padding: 0 1.25rem;
  border: calc(1px * var(--site-scale)) solid #b9c7de;
  border-radius: calc(4px * var(--site-scale));
  color: var(--navy);
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.kit-nav .button.primary {
  margin-left: auto;
  border-color: #dce5f2;
  background: #f2f6fc;
  color: var(--navy);
}

.button:hover,
.button:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  outline: none;
}

.kit-nav .button.primary:hover,
.kit-nav .button.primary:focus-visible {
  border-color: #bfd0e9;
  background: #eaf2ff;
  color: var(--navy);
}

.kit-title {
  padding: 2.5rem 0 1.5rem;
}

.kit-content > p {
  margin: 2rem 0 .5rem;
  color: var(--navy);
}

.kit-purpose {
  padding: 1.5rem;
  border: calc(1px * var(--site-scale)) solid #dce5f2;
  border-radius: calc(12px * var(--site-scale));
  background: #f2f6fc;
}

.kit-purpose > span {
  display: none;
}

.kit-purpose p {
  margin: 0;
}

/* Numbered Promptkit instructions match the circular number markers in blog To-dos. */
.kit-notes {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: todo;
}

.kit-notes > li {
  position: relative;
  margin-bottom: .45rem;
  padding-left: 2.25rem;
  counter-increment: todo;
}

.kit-notes > li::before {
  content: counter(todo);
  position: absolute;
  left: 0;
  top: .2em;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
}

.prompt-block {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: calc(1px * var(--site-scale)) solid var(--line);
}

.prompt-block h2 {
  margin-bottom: 1rem;
}

.prompt-meta {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.prompt-meta li {
  margin-bottom: .6rem;
}

.prompt-meta strong {
  color: var(--navy);
}

.prompt-code {
  position: relative;
  border: calc(1px * var(--site-scale)) solid #dce5f2;
  border-radius: calc(12px * var(--site-scale));
  background: #f2f6fc;
}

.prompt-code pre {
  max-height: calc(460px * var(--site-scale));
  margin: 0;
  padding: 3.75rem 1.5rem 1.5rem;
  overflow: auto;
  color: var(--ink);
  font: .85rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.copy-button {
  position: absolute;
  top: .75rem;
  right: .75rem;
  min-height: calc(38px * var(--site-scale));
  padding: 0 1rem;
  border: 0;
  border-radius: calc(4px * var(--site-scale));
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  transition: background .16s ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: #0c347f;
  outline: none;
}

@media (max-width: 1155px) {
  .kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 902px) {
  .prompt-page {
    --prompt-top-spacing: 1.35rem;
  }
}

@media (max-width: 560px) {
  .kit-grid {
    grid-template-columns: 1fr;
  }

  .prompt-code pre {
    padding-inline: 1rem;
  }
}

/* Generated kits (scripts/build-promptkits.js) */

.kit-title .lede {
  max-width: calc(760px * var(--site-scale));
  margin: 1rem 0 0;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.4;
}

.kit-content > h2 {
  margin: 2.5rem 0 .75rem;
  font-size: 1.3rem;
}

.kit-content > h2 + p,
.kit-content > ol + p {
  margin-top: .75rem;
}

.prompt-block .prompt-meta-line {
  margin: 0 0 .6rem;
}

.prompt-block .prompt-meta-line + .prompt-code {
  margin-top: 1.5rem;
}

.prompt-block .prompt-meta-line strong {
  color: var(--navy);
}


/* Keep the two-line overview label compact in both kit navigations. */
.kit-nav a[href="/promptkits/"] { line-height: 1.15; }

/* Round outlined arrows, matching the supplied reference. */
.kit-nav .kit-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(48px * var(--site-scale));
  height: calc(48px * var(--site-scale));
  border: calc(1px * var(--site-scale)) solid #b9c9e5;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  transition: border-color .16s ease, background-color .16s ease;
}
.kit-nav .kit-arrow:hover,
.kit-nav .kit-arrow:focus-visible {
  border-color: #b9c9e5;
  background: #fff;
  outline-offset: 2px;
}
.kit-nav .kit-arrow:last-child { margin-left: auto; }

/* Keep both arrows adjacent, aligned as in the table of contents. */
.kit-nav-arrows {
  display: flex;
  align-items: center;
  gap: calc(10px * var(--site-scale));
  margin-left: auto;
}
.kit-nav-arrows .kit-arrow:last-child { margin-left: 0; }

/* Never stack the previous/next arrows at any viewport width. */
.kit-nav .kit-nav-arrows {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  gap: calc(10px * var(--site-scale));
  margin-left: auto;
}
.kit-nav .kit-nav-arrows > .kit-arrow {
  display: inline-grid;
  flex: 0 0 calc(48px * var(--site-scale));
  margin: 0;
}

