/* Nafplio Board — utilitarian styling. No shadows, no gradients, no rounded corners. */

* { box-sizing: border-box; }

html { font-size: 14px; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.4;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

/* ---- header ---- */

header.site-header {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 16px;
  border-bottom: 3px solid #000;
}

header.site-header .title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

header.site-header h1 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.5px;
}

header.site-header .subtitle {
  font-size: 0.78rem;
  color: #bbb;
}

nav.site-nav {
  margin-top: 6px;
  font-size: 0.85rem;
}

nav.site-nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 14px;
  border-bottom: 1px solid transparent;
}

nav.site-nav a:hover {
  border-bottom: 1px solid #fff;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px 60px;
}

footer.site-footer {
  border-top: 1px solid #999;
  margin-top: 30px;
  padding: 10px 16px;
  font-size: 0.75rem;
  color: #555;
  text-align: center;
}

/* ---- toolbar / filters ---- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #999;
  background: #f2f2f2;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.toolbar label {
  font-size: 0.8rem;
  font-weight: bold;
}

select, input[type="text"], textarea, button {
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid #666;
  padding: 5px 7px;
  background: #fff;
  color: #000;
}

button {
  background: #e6e6e6;
  cursor: pointer;
  font-weight: bold;
}

button:hover { background: #d6d6d6; }
button:active { background: #c2c2c2; }
button:disabled { color: #888; cursor: not-allowed; }

button.primary {
  background: #1a1a1a;
  color: #fff;
  border-color: #000;
}
button.primary:hover { background: #333; }

button.danger {
  background: #fff;
  color: #900;
  border-color: #900;
}
button.danger:hover { background: #fde8e8; }

/* ---- table (note list) ---- */

table.note-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #999;
  font-size: 0.85rem;
}

table.note-table th {
  background: #d9d9d9;
  border: 1px solid #999;
  text-align: left;
  padding: 6px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

table.note-table td {
  border: 1px solid #ccc;
  padding: 7px 8px;
  vertical-align: top;
}

table.note-table tr:nth-child(even) { background: #fafafa; }
table.note-table tr:hover { background: #eef6ff; }

.col-cat { width: 16%; white-space: nowrap; font-size: 0.78rem; color: #333; }
.col-date { width: 16%; white-space: nowrap; font-size: 0.78rem; color: #333; }
.excerpt { color: #444; font-size: 0.8rem; margin-top: 2px; }
.empty-row { text-align: center; color: #777; padding: 20px; }

/* ---- status messages ---- */

.status {
  font-size: 0.8rem;
  padding: 6px 8px;
  margin: 6px 0;
  border: 1px solid transparent;
}
.status-info { color: #333; }
.status-error { color: #900; border-color: #900; background: #fdeaea; }
.status-success { color: #175a17; border-color: #175a17; background: #eaf7ea; }

/* ---- forms ---- */

.field-group { margin-bottom: 12px; }
.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 3px;
}
.field-group input[type="text"],
.field-group textarea,
.field-group select {
  width: 100%;
}
.hint {
  font-size: 0.72rem;
  color: #666;
  margin-top: 2px;
}

fieldset {
  border: 1px solid #999;
  margin-bottom: 14px;
  padding: 10px 12px;
}
legend {
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0 4px;
}

/* ---- map containers ---- */

.map-box {
  border: 1px solid #999;
  height: 340px;
  margin-bottom: 4px;
}

.map-box.small { height: 220px; }

/* ---- note detail ---- */

.note-header {
  border: 1px solid #999;
  border-bottom: none;
  background: #f2f2f2;
  padding: 8px 12px;
}
.note-header h2 { margin: 0 0 4px; font-size: 1.1rem; }
.note-meta { font-size: 0.78rem; color: #444; }
.note-meta .cat-tag {
  display: inline-block;
  border: 1px solid #666;
  padding: 1px 6px;
  margin-right: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.note-body-box {
  border: 1px solid #999;
  padding: 12px;
  white-space: pre-wrap;
  margin-bottom: 14px;
}

/* ---- comments ---- */

ul.comment-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #999;
}
.comment {
  border-bottom: 1px solid #ddd;
  padding: 8px 10px;
}
.comment:last-child { border-bottom: none; }
.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 2px;
}
.comment-nick { font-weight: bold; color: #000; }
.comment-message { font-size: 0.85rem; white-space: pre-wrap; }

/* ---- keyphrase dialog ---- */

.dialog-box {
  border: 2px solid #000;
  background: #fffef0;
  padding: 16px;
  max-width: 520px;
  margin: 20px auto;
}
.dialog-box h2 { margin-top: 0; font-size: 1rem; }
.keyphrase-display {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  border: 1px dashed #666;
  background: #fff;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  letter-spacing: 0.5px;
}
.warning-box {
  border: 1px solid #900;
  background: #fdeaea;
  color: #900;
  padding: 8px 10px;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

/* ---- manage panel ---- */

#manage-panel {
  border: 1px dashed #999;
  padding: 10px 12px;
  margin-top: 8px;
  background: #fbfbfb;
}

@media (max-width: 640px) {
  .col-cat, .col-date { display: none; }
}
