* { box-sizing: border-box; }

:root {
  --green: #03c75a;
  --green-dark: #02a84c;
  --bg: #f5f6f7;
  --line: #e3e5e8;
  --text: #222;
  --sub: #767678;
}

html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1130px; margin: 0 auto; padding: 36px 20px 20px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
}
.logo { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.logo a { color: var(--green); }
.search {
  flex: 0 1 640px; display: flex; align-items: center;
  border: 2px solid var(--green); border-radius: 32px; height: 58px; padding: 0 8px 0 24px;
  box-shadow: 0 2px 6px rgba(3, 199, 90, .12);
}
.search-input {
  flex: 1; border: 0; outline: 0; font-size: 18px; height: 100%; background: transparent;
}
.search-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
}
.search-btn:hover { background: var(--green-dark); }

.shortcuts {
  max-width: 760px; margin: 0 auto; padding: 4px 20px 20px;
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.shortcut {
  width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; color: #444;
}
.ico {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  font-size: 22px; background: #fff; border: 1px solid var(--line);
}
.ico-mail { color: var(--green); }
.shortcut:hover .ico { border-color: var(--green); }

/* Layout */
.container {
  max-width: 1130px; margin: 24px auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 350px; gap: 20px; align-items: start;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px;
}
.content .card:last-child, .side .card:last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font-size: 17px; margin: 0; }

.tabs { display: flex; gap: 4px; }
.tab {
  border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 5px 12px; font-size: 13px; color: #555;
}
.tab.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid #f0f1f3; }
.news-list li:first-child { border-top: 0; }
.news-press { flex: 0 0 72px; color: var(--green); font-weight: 700; font-size: 13px; }
.news-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-title:hover { text-decoration: underline; }

.feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feed-item { display: flex; flex-direction: column; gap: 8px; }
.feed-thumb { aspect-ratio: 16 / 9; border-radius: 8px; }
.feed-tag { font-size: 12px; color: var(--green); font-weight: 700; }
.feed-title { font-weight: 600; line-height: 1.4; }
.feed-desc { color: var(--sub); font-size: 13px; line-height: 1.45; margin: 0; }

/* Side */
.login-box { text-align: center; }
.login-desc { color: #555; font-size: 13px; margin: 0 0 12px; }
.login-btn {
  display: block; background: var(--green); color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px; border-radius: 8px;
}
.login-btn:hover { background: var(--green-dark); }
.login-links { margin-top: 12px; font-size: 12px; color: var(--sub); display: flex; justify-content: center; gap: 6px; }

.widget-row { display: flex; justify-content: space-between; align-items: center; }
.clock { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.date { color: var(--sub); font-size: 13px; margin-top: 2px; }
.weather { display: flex; align-items: center; gap: 8px; }
.weather-ico { font-size: 34px; }
.temp { font-size: 22px; font-weight: 700; }
.weather-desc { font-size: 12px; color: var(--sub); }

/* Guestbook */
.gb-total { font-size: 12px; color: var(--sub); }
.gb-form { display: flex; flex-direction: column; gap: 8px; }
.gb-form input, .gb-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; resize: vertical;
}
.gb-form input:focus, .gb-form textarea:focus { outline: 0; border-color: var(--green); }
.gb-actions { display: flex; justify-content: space-between; align-items: center; }
.gb-count { font-size: 12px; color: var(--sub); }
.gb-actions button {
  border: 0; background: var(--green); color: #fff; font-weight: 700; padding: 8px 18px; border-radius: 8px;
}
.gb-actions button:disabled { opacity: .5; cursor: default; }
.gb-status { min-height: 1em; margin: 0; font-size: 12px; color: var(--sub); }
.gb-status.is-error { color: #e0393e; }

.gb-list { list-style: none; margin: 12px 0 0; padding: 0; }
.gb-item { padding: 10px 0; border-top: 1px solid #f0f1f3; }
.gb-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); margin-bottom: 4px; }
.gb-name { color: var(--text); font-weight: 700; }
.gb-msg { margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.gb-empty { color: var(--sub); font-size: 13px; padding: 10px 0; }
.gb-more {
  width: 100%; margin-top: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; color: #555;
}

.footer { text-align: center; color: var(--sub); font-size: 12px; padding: 24px 0 40px; }

/* Responsive */
@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
  .side { order: -1; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 14px; padding-top: 20px; }
  .logo { font-size: 28px; }
  .search { width: 100%; flex-basis: auto; height: 50px; }
  .shortcut { width: 64px; }
  .feed { grid-template-columns: 1fr; }
  .tabs { display: none; }
}
