/* /vp/obblemon - styled after 4chan's Yotsuba B theme (the blue theme /vp/ uses) */
:root {
  --bg: #EEF2FF;
  --bg-top: #D1D5EE;
  --post: #D6DAF0;
  --border: #B7C5D9;
  --title: #AF0A0F;
  --subject: #0F0C5D;
  --name: #117743;
  --text: #000000;
  --link: #34345C;
  --link-hover: #DD0000;
  --green: #789922;
  --dim: #707070;
  --navtext: #89A;
}

* { box-sizing: border-box; }

html { background: var(--bg); }
body {
  margin: 0;
  padding: 0 16px 24px;
  background: linear-gradient(var(--bg-top), var(--bg) 200px) no-repeat, var(--bg);
  color: var(--text);
  font: 13px arial, helvetica, sans-serif;   /* 4chan's body font */
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

/* ---- top-left board list = site navigation, like "[a / b / c]" ---- */
.boardlist {
  font-size: 10pt;
  color: var(--navtext);
  padding: 6px 0;
}
.boardlist a { color: var(--link); padding: 0 1px; }
.boardlist a:hover { color: var(--link-hover); }
.boardlist a.current { color: var(--title); font-weight: bold; }

/* ---- banner + board title ---- */
.banner { display: block; margin: 8px auto 0; width: 300px; max-width: 100%; height: auto; border: 1px solid var(--border); }
.boardBanner { text-align: center; }
.boardTitle {
  font-family: Tahoma, sans-serif;           /* 4chan's board title font */
  font-size: 28px;
  font-weight: bold;
  letter-spacing: -2px;
  color: var(--title);
  margin: 6px 0 0;
  line-height: 1.1;
}
.boardSubtitle { font-size: 10px; color: var(--text); margin-top: 2px; }

hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; clear: both; }

/* ---- posts ---- */
.thread { max-width: 900px; margin: 0 auto; }
.post {
  background: var(--post);
  border: 1px solid var(--border);
  border-left: none;
  border-top: none;
  display: table;
  padding: 4px 8px 8px;
  margin: 4px 0;
  max-width: 100%;
}
.post.op { background: transparent; border: none; display: block; padding: 4px 0; }
.sideArrows { color: var(--border); float: left; margin-right: 4px; }
.postInfo { margin-bottom: 4px; }
.subject { color: var(--subject); font-weight: bold; }
.name { color: var(--name); font-weight: bold; }
.dateTime, .postNum { color: var(--text); }
.postNum a { color: var(--text); }
.postMessage { margin: 6px 0 0 16px; line-height: 1.4; }
.postMessage p { margin: 0 0 8px; }
.quote { color: var(--green); }                /* >greentext */
.quotelink { color: var(--link-hover); text-decoration: underline; }
.dim { color: var(--dim); }

.postMessage ol { margin: 4px 0 8px; padding-left: 22px; }
.postMessage li { margin: 3px 0; }
.postMessage code {
  font-family: monospace;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0 3px;
}

.button {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: bold;
}

table.cmds { border-collapse: collapse; margin: 4px 0 8px; }
table.cmds td { padding: 2px 10px 2px 0; vertical-align: top; }
table.cmds td:first-child { white-space: nowrap; }

.footer { text-align: center; font-size: 11px; color: var(--dim); margin-top: 16px; }

@media (max-width: 600px) {
  .postMessage { margin-left: 4px; }
  .boardTitle { font-size: 24px; }
}

/* greentext lines sit tight together like on 4chan */
.postMessage p.quote { margin: 0; }
.postMessage p.quote + p:not(.quote), .postMessage p.quote + ol, .postMessage p.quote + table { margin-top: 8px; }
.postMessage p + p.quote { margin-top: 0; }

/* Map page (BlueMap) */
.mapFrame {
  max-width: 900px;
  margin: 8px auto 0;
  border: 1px solid var(--border);
  background: var(--post);
  padding: 4px;
}
.mapFrame iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border: none;
  background: var(--bg);
}
.mapPlaceholder {
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--green);
  font-size: 15px;
}
.mapPlaceholder[hidden] { display: none; }


/* ---- home page polish ---- */
.thread { max-width: 760px; }
.file { margin-bottom: 2px; }
.fileText { font-size: 11px; color: var(--text); display: block; margin-bottom: 2px; }
.thumb { float: left; width: 96px; height: 96px; margin: 2px 16px 8px 0; border: 1px solid var(--border); background: var(--post); padding: 6px; }
.post.op::after { content: ""; display: block; clear: both; }
.postMessage p.lead { font-weight: bold; color: var(--subject); font-size: 14px; margin-bottom: 4px; }
ol.steps { margin: 0 0 10px; padding-left: 22px; }
ol.steps li { margin: 6px 0; padding-left: 2px; }
ol.steps .button { margin: 6px 0 0; }
code.ip { font-size: 13px; padding: 1px 5px; }
@media (max-width: 600px) { .thumb { width: 64px; height: 64px; margin-right: 10px; } }

/* ================= layout polish: centred column ================= */
body { font-size: 14px; }
.boardBanner { margin-top: 6px; }
.banner { box-shadow: 0 1px 0 var(--border); }
.boardTitle { font-size: 34px; margin-top: 10px; }
.boardSubtitle { font-size: 12px; color: var(--subject); margin-top: 4px; }
body > hr { max-width: 760px; margin: 14px auto; }

.thread { max-width: 720px; margin: 0 auto; }
.post {
  display: block;                 /* full column width instead of shrink-to-fit */
  margin: 10px 0 10px 18px;
  padding: 8px 14px 12px;
  position: relative;
}
.post.op { margin-left: 0; padding: 4px 2px 8px; }
.sideArrows { float: none; position: absolute; margin: 12px 0 0 -18px; }
.postMessage { margin: 8px 0 0 0; line-height: 1.55; }
.postMessage p { margin: 0 0 10px; }

/* how-to-join steps with round numbers */
ol.steps { list-style: none; counter-reset: step; padding-left: 0; margin: 8px 0 12px; }
ol.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 36px; margin: 8px 0; }
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--subject); color: #fff;
  font-weight: bold; font-size: 13px; line-height: 24px; text-align: center;
}
.button.primary {
  background: var(--title); color: #fff; border: 1px solid #8a080c;
  padding: 6px 14px; border-radius: 3px; margin-top: 8px;
}
.button.primary:hover { background: #c8141a; color: #fff; }

.ipBox { display: inline-flex; align-items: stretch; margin-top: 6px; }
code.ip { font-size: 14px; padding: 4px 8px; background: #fff; border: 1px solid var(--border); border-right: none; }
button.copy {
  font: bold 12px arial, helvetica, sans-serif; color: var(--link); cursor: pointer;
  background: var(--bg); border: 1px solid var(--border); padding: 0 8px;
}
button.copy:hover { color: var(--link-hover); }

@media (max-width: 600px) {
  .post { margin-left: 0; }
  .sideArrows { display: none; }
  .boardTitle { font-size: 28px; }
}

/* tighten post bottoms (no empty gap under the last line) */
blockquote.postMessage { margin-bottom: 0; }
.postMessage > :last-child { margin-bottom: 0; }
.postMessage .mapFrame { margin-bottom: 0; }

/* 4chan "[Start a New Thread]"-style link instead of a modern red button */
.button.primary {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 8px 0 2px;
  font-size: 18px;
  font-weight: bold;
  color: var(--link);
}
.button.primary::before { content: "["; color: var(--text); font-weight: normal; margin-right: 1px; }
.button.primary::after  { content: "]"; color: var(--text); font-weight: normal; margin-left: 1px; }
.button.primary:hover { background: none; color: var(--link-hover); text-decoration: underline; }
ol.steps li .button.primary { margin: 0; line-height: 24px; }

/* Discord link: top-right like 4chan's board-list extras, plus the footer */
.boardlist { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.navRight a { font-weight: bold; }
.footer .discordLink { display: inline-block; font-size: 14px; font-weight: bold; margin-bottom: 6px; }

/* --- ads (4chan-style slots) --- */
.promoSlot { text-align: center; margin: 10px auto; max-width: 728px; }
.promoSlot a { display: inline-block; line-height: 0; background: var(--post); border: 1px solid var(--border); padding: 2px; max-width: 100%; }
.promoSlot img { display: block; max-width: 100%; height: auto; }
.promoTop img { width: 728px; }
.promoBottom { margin-top: 14px; }
.eventImg { float: left; max-width: 230px; height: auto; margin: 2px 16px 8px 8px; border: 1px solid var(--border); background: var(--post); padding: 4px; }
@media (max-width: 600px) { .eventImg { max-width: 140px; margin-right: 10px; } }

.st-on { color: #117743; font-weight: bold; }
.st-off { color: #AF0A0F; font-weight: bold; }

.roster { list-style: none; margin: 0; padding: 0; }
.roster li { padding: 2px 0; }
.vacant { color: var(--dim); font-style: italic; }

.substeps { margin: 4px 0 4px 18px; padding: 0; list-style: disc; }
.substeps li { padding: 1px 0; }

.bugform label { display: block; margin: 0 0 10px; font-weight: bold; color: var(--subject); }
.bugform .req { color: var(--title); font-weight: normal; font-size: 12px; }
.bugform input, .bugform select, .bugform textarea, .bugout textarea { display: block; width: 100%; max-width: 560px; margin-top: 3px; padding: 5px 7px; font: 14px/1.4 arial, helvetica, sans-serif; color: var(--text); background: #fff; border: 1px solid var(--border); box-sizing: border-box; }
.bugform textarea, .bugout textarea { resize: vertical; }
.bugout textarea { font-family: Consolas, monospace; font-size: 13px; }
.bugout[hidden] { display: none; }

.hpWrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
