/* 양식 자료 페이지 전용 스타일. 색과 글꼴은 site.css의 값을 그대로 쓴다. */
.forms-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.forms-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 700;
}

.forms-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.forms-nav img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.forms-nav .crumb {
  color: #625b71;
  font-weight: 500;
}

.forms-shell h1 {
  font-size: clamp(26px, 5vw, 34px);
}

.lead {
  margin: 14px 0 0;
  color: #625b71;
  line-height: 1.7;
  word-break: keep-all;
}

.form-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.form-card,
.panel {
  border: 1px solid #ded8e8;
  border-radius: 20px;
  background: #fffbff;
}

.form-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.form-card h2 {
  margin: 0;
  font-size: 20px;
}

.form-card p {
  flex: 1;
  margin: 10px 0 20px;
  color: #625b71;
  line-height: 1.65;
  word-break: keep-all;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ece6f0;
  color: #49454f;
  font-size: 12px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--theme-color);
  border-radius: 24px;
  background: var(--theme-color);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--theme-color);
}

.button:focus-visible,
.forms-nav a:focus-visible,
.text-link:focus-visible {
  outline: 3px solid var(--theme-color);
  outline-offset: 3px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 24px;
}

.file-note {
  color: #625b71;
  font-size: 13px;
}

.panel {
  margin-top: 28px;
  padding: 24px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.panel ul,
.panel ol {
  margin: 0;
  padding-left: 20px;
  color: #49454f;
  line-height: 1.8;
  word-break: keep-all;
}

.preview {
  overflow-x: auto;
}

.preview table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  color: #1d1b20;
  font-size: 12px;
}

.preview th,
.preview td {
  padding: 6px 8px;
  border: 1px solid #9e9e9e;
  text-align: center;
  white-space: nowrap;
}

.preview th {
  background: #e7e6e6;
  font-weight: 700;
}

.preview td.left {
  text-align: left;
}

.preview .sheet-title {
  background: #fff;
  font-size: 16px;
  letter-spacing: 0.4em;
}

.preview .bar {
  background: #8fa9c9;
}

.preview .done {
  background: #1b3a5c;
}

.preview .day {
  min-width: 18px;
  padding: 6px 0;
}

.preview caption {
  caption-side: bottom;
  padding-top: 10px;
  color: #625b71;
  font-size: 12px;
  text-align: left;
}

.app-panel {
  display: grid;
  gap: 16px;
}

.app-panel p {
  margin: 0;
  color: #49454f;
  line-height: 1.7;
  word-break: keep-all;
}

.app-panel .store-actions {
  justify-content: flex-start;
}

.text-link {
  color: var(--theme-color);
  font-weight: 700;
}

.forms-footer {
  margin-top: 32px;
  color: #625b71;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .forms-shell {
    padding: 20px 16px 40px;
  }

  .panel,
  .form-card {
    padding: 20px;
  }

  .download-row .button {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --theme-color: #e8c9a0;
  }

  .form-card,
  .panel {
    border-color: #49454f;
    background: #211f26;
  }

  .lead,
  .file-note,
  .forms-footer,
  .preview caption,
  .form-card p,
  .forms-nav .crumb,
  .panel ul,
  .panel ol,
  .app-panel p {
    color: #cac4d0;
  }

  .tags li {
    background: #36343b;
    color: #e6e0e9;
  }

  .button {
    color: #1b140d;
  }

  .button.secondary {
    color: var(--theme-color);
  }
}
