:root {
  --sigcolor: #F2B1C7;
  --sigbcolor: #9782A0;
}

* {
  padding: 0;
  margin: 0;
  border-collapse: collapse;
  box-sizing: border-box;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

html, body {
  width: 100%;
  height: auto;
}

.root {
  width: 100%;
  height: auto;
  min-height: 100vh;
}

header {
  width: 100%;
}

header .sign {
  position: absolute;
  top: 18px;
  left: 20px;
}

header .writenew {
  position: absolute;
  top: 18px;
  right: 20px;
}

.logo a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1rem 1.5rem;
  text-align: center;
  text-decoration: none;
}

.logo h1 {
  color: var(--sigcolor);
  font-size: 28px;
  font-weight: bold;
  text-shadow: 1px 1px 1px var(--sigbcolor);
}

.searchwraps {
  width: 100%;
  height: 44px;
  background-color: transparent;
  padding: 0 .25rem;
}

.searchwraps .search {
  width: 100%;
  height: 100%;
  display: flex;
  margin: 0;
  border-radius: .25rem;
  border: 1px solid var(--sigbcolor);
  overflow: hidden;
}

.searchwraps .search input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0 .5rem;
}

.searchwraps .search > * {
  display: block;
  height: 100%;
  outline: none;
  border: 0;
}

.searchwraps .search select,
.searchwraps .search input[type="submit"] {
  flex: 0 0 auto;
}

.searchwraps .search select {
  width: 80px;
  padding: 0 .25rem 0 0;
  background-color: transparent;
  text-overflow: ellipsis;
  border-right: 1px solid var(--sigbcolor);
}

.searchwraps .search input[type="submit"] {
  padding: 0 .75rem;
  background-color: transparent;
  border-left: 1px solid var(--sigbcolor);
}

.content {
  width: 100%;
  height: auto;
  min-height: 60vh;
  padding-bottom: 2rem;
}

.listofac {
  width: 100%;
  height: auto;
  list-style: none;
  margin-top: 1rem;
}

.listofac li {
  width: 100%;
  height: auto;
  border-top: 1px solid #d7d7d7;
}

.listofac li a {
  padding: .75rem;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  overflow: hidden;
  color: #000;
}

.listofac .ac .headofac {
  font-size: 16px;
  display: flex;
  gap: 5px;
}

.listofac .ac .headofac img {
  height: 20px;
}

.listofac .ac .bodyofac {
  margin-top: 5px;
  font-size: 12px;
  color: #888;
}

.listofac .ac .bodyofac span {
  margin-right: 5px;
}

.listofac > li:last-child {
  border-bottom: 1px solid #d7d7d7;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 1rem 0;
}

.pager a {
  display: block;
  padding: .25rem .6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.pager a.active {
  background: var(--sigcolor);
  border-color: var(--sigcolor);
  color: #fff;
}

footer {
  text-align: center;
  color: #797979;
  padding: 2rem 0;
}

footer > * {
  margin-bottom: .25rem;
  font-size: 14px;
}

footer a {
  text-decoration: none;
  color: #797979;
  font-size: 12px;
}

footer .links {
  display: flex;
  gap: .5rem;
  justify-content: center;
}

footer .links .bold {
  font-weight: bold;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 200px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: .5rem 1rem;
  background: var(--sigcolor);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #6c757d;
}

.article-detail {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.article-header {
  border-bottom: 2px solid var(--sigcolor);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: .5rem;
}

.article-meta {
  font-size: 12px;
  color: #888;
}

.article-meta span {
  margin-right: 1rem;
}

.article-body {
  line-height: 1.6;
  margin: 2rem 0;
  min-height: 200px;
}

.article-actions {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.comment-section {
  margin-top: 2rem;
}

.comment-item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.comment-author {
  font-weight: bold;
  margin-bottom: .5rem;
}

.comment-content {
  margin: .5rem 0;
}

.comment-time {
  font-size: 12px;
  color: #888;
}

.error-message {
  color: #d32f2f;
  background: #ffebee;
  padding: .75rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.success-message {
  color: #388e3c;
  background: #e8f5e9;
  padding: .75rem;
  border-radius: 4px;
  margin: 1rem 0;
}
