/* /prompts 페이지 전용 스타일. 색·그림자·버튼은 사이트 기본 스타일의 변수와 클래스를 그대로 쓴다. */

.mobile-nav[hidden] {
  display: none;
}

.mobile-menu-button .icon-close,
.mobile-menu-button[aria-expanded="true"] .icon-menu {
  display: none;
}

.mobile-menu-button[aria-expanded="true"] .icon-close {
  display: block;
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  background: var(--lime);
}

.prompt-shell {
  padding: 28px 0 0;
}

.prompt-article {
  max-width: 860px;
  margin-inline: auto;
}

.prompt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  max-width: 860px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.prompt-breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
}

.prompt-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.prompt-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow-wrap: anywhere;
}

.prompt-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 5.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.prompt-summary {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.7;
  word-break: keep-all;
}

.prompt-meta,
.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.prompt-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.prompt-tag.subtle {
  background: var(--paper);
}

.prompt-source,
.prompt-count {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.prompt-source a,
.prompt-section a:not(.button) {
  color: var(--desk-cobalt);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prompt-section {
  margin-top: 46px;
}

.prompt-section h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.3;
  letter-spacing: -.035em;
  word-break: keep-all;
}

.prompt-section p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.prompt-section code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: .9em;
  overflow-wrap: anywhere;
}

.prompt-section .prompt-note {
  margin-top: 14px;
}

.prompt-note {
  color: var(--muted);
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.prompt-words,
.prompt-settings {
  display: grid;
  gap: 10px;
  margin: 0;
}

.prompt-words > div,
.prompt-settings > div {
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
}

.prompt-words dt,
.prompt-settings dt {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 850;
}

.prompt-words dd,
.prompt-settings dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.prompt-settings {
  padding: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--lime-wash);
  box-shadow: var(--shadow-hard-sm);
}

.prompt-settings > div {
  border-color: var(--line-strong);
}

.prompt-gallery,
.prompt-list,
.prompt-steps,
.prompt-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.prompt-gallery li,
.prompt-gallery figure {
  min-width: 0;
  margin: 0;
}

.prompt-gallery img,
.prompt-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-deep);
}

.prompt-gallery figcaption {
  display: grid;
  gap: 2px;
  padding: 8px 2px 0;
  font-size: 14px;
  line-height: 1.5;
  word-break: keep-all;
}

.prompt-gallery figcaption span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.prompt-table-scroll {
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

.prompt-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.65;
}

.prompt-table th,
.prompt-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}

.prompt-table thead th {
  background: var(--paper-deep);
  font-size: 14px;
  white-space: nowrap;
}

.prompt-table td:nth-child(2) {
  white-space: nowrap;
}

.prompt-table tbody th {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14px;
}

.prompt-table tbody tr:last-child th,
.prompt-table tbody tr:last-child td {
  border-bottom: 0;
}

.prompt-scroll-hint {
  display: none;
}

.prompt-steps {
  display: grid;
  gap: 12px;
  counter-reset: prompt-step;
}

.prompt-steps li {
  position: relative;
  padding: 16px 18px 16px 62px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  counter-increment: prompt-step;
}

.prompt-steps li::before {
  content: counter(prompt-step);
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 850;
}

.prompt-steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.45;
  word-break: keep-all;
}

.prompt-steps p {
  margin: 0;
  font-size: 16px;
}

.prompt-checks {
  display: grid;
  gap: 8px;
}

.prompt-checks li {
  position: relative;
  padding: 12px 14px 12px 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.prompt-checks li::before {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--desk-verified);
  font-weight: 900;
}

.prompt-copy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 6px 0 12px;
}

.prompt-copy {
  min-width: 220px;
  min-height: 56px;
  font-size: 18px;
}

.prompt-copy-status {
  color: var(--desk-verified);
  font-size: 15px;
  font-weight: 750;
}

/* 긴 글이라 접지 않고, 상자 안에서 스크롤한다. */
.prompt-code {
  max-height: 440px;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--dark);
  color: #f2efe8;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-code code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.prompt-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  margin-top: 28px;
}

.prompt-card {
  display: grid;
  height: 100%;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
  color: var(--ink);
}

.prompt-card:hover {
  transform: translate(-2px, -2px);
}

.prompt-card img {
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
}

.prompt-card-body {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.prompt-card-title {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -.03em;
  word-break: keep-all;
}

.prompt-card-summary {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

@media (max-width: 820px) {
  .prompt-scroll-hint {
    display: block;
  }
}

@media (max-width: 960px) {
  .prompt-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .prompt-shell {
    padding-top: 14px;
  }

  .prompt-section {
    margin-top: 36px;
  }

  .prompt-section p {
    font-size: 16px;
    line-height: 1.8;
  }

  .prompt-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .prompt-steps li {
    padding: 14px 14px 14px 56px;
  }

  .prompt-copy {
    width: 100%;
  }

  .prompt-code {
    max-height: 360px;
    font-size: 13px;
  }
}
