:root {
  --ink: #111;
  --bg: #2ecc71;
  --border: #111;
  --card: #fff;
  --wrap-max: 1160px;
}

/* =============== Reset =============== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
        "Apple Color Emoji", "Segoe UI Emoji";
}

/* =============== Page Shell =============== */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 28px auto 56px;
  padding: 0 14px;
}

.masthead {
  border: 2px solid var(--border);
  background: var(--card);
  padding: 18px 16px 14px;
  text-align: center;
}
.title { margin: 0 0 6px; font-size: 28px; line-height: 1.25; }
.subtitle { margin: 0; font-size: 12px; opacity: .85; }

/* =============== Bars =============== */
.mini-nav {
  margin: 10px 0 8px;
  border: 2px solid var(--border);
  background: var(--card);
  padding: 6px 8px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.mini-link { font-size: 12px; color: #0059b2; text-decoration: none; }
.mini-link:hover { text-decoration: underline; }

.stats {
  border: 2px solid var(--border);
  background: var(--card);
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 14px;
}

/* =============== Panels (generic) =============== */
.panel { border: 2px solid var(--border); background: var(--card); }

/* ===== Archive header inside panel ===== */
.panel-head {
  padding: 6px 14px 10px;
  border-bottom: 2px solid var(--border);
}
.panel-title { margin: 8px 0 4px; font-weight: 700; font-size: 14px; }
.panel-note { margin: 0; font-size: 12px; opacity: .9; }

/* =============== Archive Grid =============== */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 14px;
}
.thumb {
  background: #fff;
  border: 1px solid #bdbdbd;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.06);
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
}
.thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* =============== Thread / Post Block =============== */
.thread { margin-top: 18px; }

.post {
  background: #ececec;              
  border: 2px solid #000;           
  margin: 14px;
  padding: 14px;
}

.post-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #999;
  padding-bottom: 8px; margin-bottom: 10px;
}
.post-author .author { color: #0a640a; font-weight: 700; } 
.post-author .badge {
  margin-left: 6px;
  font-weight: 700;
  color: #0a640a;
  background: #dff3df;
  border: 1px solid #0a640a;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 12px;
}
.post-meta {
  font-size: 12px; color: #111;
  display: flex; gap: 8px; align-items: center;
}
.post-meta .action { color: #003c7a; text-decoration: none; }
.post-meta .action:hover { text-decoration: underline; }
.post-meta .pin { opacity: .9; }

.post-title { margin: 8px 0 10px; font-size: 18px; font-weight: 800; }
.post-body .lead { margin-top: 0; }
.post-body h4 {
  margin: 16px 0 6px; font-size: 14px; text-transform: uppercase;
}
.post-body ul,
.post-body ol { margin: 6px 0 10px 18px; }
.post-body li { margin: 4px 0; }

.post-foot {
  margin-top: 8px;
  border-top: 1px solid #999;
  padding-top: 8px;
  text-align: right;
}
.post-foot small { opacity: .85; }

/* =============== Footer =============== */
.footer {
  text-align: center;
  margin: 18px 0 0;
  font-size: 12px;
  opacity: .8;
}

/* =============== Responsive =============== */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}


.thread-discussion {
  padding: 0;
  margin-top: 20px;          
  background: #e5e5e5;
}

.disc-post {
  background: #D6F0DA;
  border-top: 1px solid #bdbdbd;
  padding: 14px;
}
.disc-post:first-child {
  border-top: none;
}

/* Header meta */
.disc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #9a9a9a;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.disc-user {
  color: #111;
  font-weight: 700;
}
.disc-user--named { color: #0a640a; } 
.disc-meta-right {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #111;
}
.disc-action { color: #003c7a; text-decoration: none; }
.disc-action:hover { text-decoration: underline; }

.disc-title {
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.disc-body { position: relative; }
.disc-quote { color: #789922; margin: 0 0 6px; } /* greentext/quote */

.disc-media {
  border: 1px solid #777;
  background: #efefef;
  padding: 8px;
  max-width: 320px;
  margin: 8px auto;          
}

.disc-media img {
  width: 100%;
  height: auto;
  display: block;
}

.disc-media--right {
  float: none;
  margin: 8px auto;
}

@media (max-width: 720px) {
  .disc-media--right {
    margin: 10px auto;
    width: 100%;
    max-width: 100%;
  }
}
/* Footer kecil */
.disc-foot {
  border-top: 1px solid #9a9a9a;
  margin-top: 8px;
  padding-top: 6px;
  text-align: left;
}
.disc-foot small { opacity: .85; }

@media (max-width: 720px) {
  .disc-media--right {
    float: none;
    margin: 10px 0;
    max-width: 100%;
    width: 100%;
  }
}

.disc-post::after { 
  content: ""; 
  display: table; 
  clear: both; 
}

.disc-body::after {
  content: "";
  display: table;
  clear: both;
}

.disc-foot { 
  clear: both; 
}

.disc-media { 
  width: 320px;          
  max-width: 100%; 
}

@media (max-width: 720px) {
  .disc-media--right { float: none; margin: 10px 0; width: 100%; }
}


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}

.wrap {
  flex: 1; 
  padding-bottom: 40px; 
}

.footer-box {
  border: 1px solid #000;
  background: #fff;
  padding: 8px 12px 12px;
  margin: 30px auto 40px; 
  max-width: 800px;
  text-align: center;
  font-size: 12px;
}




.footer-links {
  margin-bottom: 4px;
}

.footer-links a {
  color: #0000ee;         
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-desc {
  font-size: 11px;
  color: #000;
}


.stats a {
  color: #0000ee; 
  text-decoration: none;
}

.stats a:hover {
  text-decoration: underline;
}

.mini-link {
  font-size: 12px;
  color: #0000ee; 
  text-decoration: none;
}

.mini-link:hover {
  text-decoration: underline;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.lightbox .close:hover {
  color: #bbb;
}
