/* archive.soyjak.org — imageboard aesthetic */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #FFFFEE;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #000;
  min-height: 100vh;
}

a {
  color: #34345C;
  text-decoration: underline;
}
a:visited { color: #6633CC; }
a:hover { text-decoration: none; }

/* ── Header ── */
#header {
  background: #FFFFEE;
  border-bottom: 3px solid #AF0A0F;
  padding: 6px 12px;
  text-align: center;
}

#header-inner {
  margin-bottom: 4px;
}

#site-title {
  font-size: 20px;
  font-weight: bold;
  color: #AF0A0F;
  font-family: 'Courier New', monospace;
  letter-spacing: -0.5px;
}

#site-subtitle {
  font-size: 12px;
  color: #555;
  margin-left: 10px;
}

#nav {
  font-size: 12px;
  margin-top: 4px;
}

#nav a {
  color: #34345C;
  margin: 0 4px;
  text-decoration: none;
  font-weight: bold;
}
#nav a:hover { text-decoration: underline; }

/* ── Content ── */
#content {
  max-width: 960px;
  margin: 16px auto;
  padding: 0 12px;
}

/* ── Board Header ── */
.board-header {
  text-align: center;
  margin-bottom: 16px;
}

.board-header h1 {
  font-size: 18px;
  color: #AF0A0F;
  margin-bottom: 4px;
}

.board-header .subtitle {
  font-size: 12px;
  color: #555;
}

/* ── Post Form ── */
.post-form-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.post-form-table {
  background: #D6DAF0;
  border: 1px solid #B7C5D9;
  border-collapse: collapse;
  padding: 8px;
}

.post-form-table caption {
  font-weight: bold;
  font-size: 13px;
  background: #AFBFE0;
  border: 1px solid #B7C5D9;
  border-bottom: none;
  padding: 4px 8px;
  text-align: left;
}

.post-form-table th {
  text-align: right;
  padding: 5px 8px;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  vertical-align: top;
  padding-top: 8px;
}

.post-form-table td {
  padding: 5px 8px;
}

.field-hint {
  font-size: 10px;
  color: #777;
  margin-left: 6px;
}

/* ── Inputs ── */
input[type="text"],
input[type="url"],
input[type="password"] {
  border: 1px solid #aaa;
  font-size: 13px;
  font-family: Arial, sans-serif;
  padding: 3px 5px;
  background: #fff;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="password"]:focus {
  outline: 1px solid #34345C;
  border-color: #34345C;
}

.submit-btn {
  background: #D6DAF0;
  border: 1px solid #B7C5D9;
  padding: 4px 16px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  color: #000;
}
.submit-btn:hover { background: #AFBFE0; }
.submit-btn:active { background: #8898C8; }

/* ── Search Form ── */
.search-form-wrapper {
  text-align: center;
  margin-bottom: 16px;
}

.search-input {
  border: 1px solid #aaa;
  font-size: 13px;
  font-family: Arial, sans-serif;
  padding: 4px 8px;
  width: 320px;
  max-width: 80%;
}

/* ── Archive Table ── */
.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}

.archive-table thead tr {
  background: #AFBFE0;
}

.archive-table th {
  padding: 5px 8px;
  text-align: left;
  border: 1px solid #B7C5D9;
  font-size: 12px;
}

.archive-table td {
  padding: 4px 8px;
  border: 1px solid #D6DAF0;
  vertical-align: middle;
}

.row-even { background: #FFFFF5; }
.row-odd  { background: #F0F0E0; }

.row-even:hover, .row-odd:hover {
  background: #E8EAF6;
}

.url-cell {
  font-size: 11px;
  color: #555;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-cell {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}

.row-num {
  font-size: 11px;
  color: #888;
  text-align: right;
  width: 30px;
}

.view-link {
  font-size: 11px;
  white-space: nowrap;
}

/* ── Status ── */
.status-done   { color: #155724; font-weight: bold; }
.status-pending { color: #856404; }
.status-failed  { color: #721c24; font-weight: bold; }

/* ── Section ── */
.section {
  margin-top: 20px;
}
.section-title {
  font-size: 14px;
  font-weight: bold;
  color: #34345C;
  border-bottom: 1px solid #B7C5D9;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

/* ── Error Banner ── */
.error-banner {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* ── Result Count ── */
.result-count {
  font-size: 12px;
  color: #333;
  margin-bottom: 10px;
}

/* ── No Results ── */
.no-results {
  font-size: 13px;
  color: #555;
  text-align: center;
  margin: 20px 0;
}

/* ── Pagination ── */
.pagination {
  text-align: center;
  font-size: 12px;
  margin: 12px 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* ── Archive Meta Box ── */
.archive-meta-box {
  background: #D6DAF0;
  border: 1px solid #B7C5D9;
  display: inline-block;
  margin-bottom: 14px;
  width: 100%;
}

.archive-meta-box table {
  width: 100%;
  border-collapse: collapse;
}

.archive-meta-box th {
  text-align: right;
  padding: 5px 10px;
  font-size: 12px;
  color: #333;
  width: 120px;
  white-space: nowrap;
  background: #AFBFE0;
  border-bottom: 1px solid #B7C5D9;
}

.archive-meta-box td {
  padding: 5px 10px;
  font-size: 12px;
  border-bottom: 1px solid #D6DAF0;
}

/* ── Iframe ── */
.iframe-wrapper {
  border: 2px solid #B7C5D9;
  margin-top: 8px;
  background: #fff;
}

.iframe-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 800px;
  border: none;
}

/* ── Pending Box ── */
.pending-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 16px;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
}

/* ── Footer ── */
#footer {
  text-align: center;
  font-size: 11px;
  color: #777;
  padding: 10px;
  margin-top: 20px;
}

#footer hr {
  border: none;
  border-top: 1px solid #B7C5D9;
  margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .post-form-table { font-size: 12px; }
  input[type="url"] { width: 220px !important; }
  .archive-table .url-cell { display: none; }
  #site-subtitle { display: none; }
}
