/* Raised Bed Forum — raisedbed.egazer.com
   XenForo/Discourse-flavoured community theme: soil brown + growth green,
   dense topic-list typography for the forum side, a calmer editorial
   treatment for staff guides. Hand-tuned, not a stock theme. */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,500;0,600;0,700;1,500&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --soil-900: #2c2017;
  --soil-800: #3c2c1f;
  --soil-700: #4e3a28;
  --soil-600: #6b5138;
  --soil-400: #a98a68;
  --soil-200: #e4d6c3;
  --soil-100: #f1e8da;
  --paper: #faf6ee;
  --leaf-800: #22411f;
  --leaf-700: #2e5c2a;
  --leaf-600: #3f7a38;
  --leaf-500: #568f4d;
  --leaf-100: #e3ecdd;
  --clay: #b5581f;
  --clay-dark: #8c4216;
  --gold: #c08a2e;
  --ink: #2a241d;
  --ink-soft: #5c5345;
  --line: #ddd0ba;
  --line-soft: #ebe1cf;
  --best-bg: #e6f0e0;
  --best-line: #6f9a5c;
  --shadow: 0 1px 2px rgba(44, 32, 23, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--soil-100);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
}

a { color: var(--leaf-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: 'Zilla Slab', Georgia, serif;
  color: var(--soil-800);
  line-height: 1.2;
  margin: 0.5em 0 0.5em;
}

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

table { border-collapse: collapse; width: 100%; margin: 1em 0 1.4em; font-size: 0.95em; }
th, td { border: 1px solid var(--line); padding: 0.5em 0.7em; text-align: left; }
th { background: var(--soil-200); color: var(--soil-900); font-weight: 600; }
tr:nth-child(even) td { background: rgba(0,0,0,0.015); }

code, pre { font-family: 'SFMono-Regular', Consolas, monospace; }

/* ---------- Top utility bar + header ---------- */
.top-bar {
  background: var(--soil-900);
  color: var(--soil-200);
  font-size: 12.5px;
}
.top-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--soil-200); opacity: 0.85; }
.top-bar a:hover { opacity: 1; text-decoration: underline; }
.top-bar .sep { opacity: 0.4; margin: 0 6px; }

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--leaf-700);
}
.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(160deg, var(--leaf-600), var(--leaf-800));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 19px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
}
.site-title {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 23px;
  color: var(--soil-900);
  letter-spacing: -0.01em;
}
.site-title span { color: var(--leaf-700); }
.site-description {
  margin: 0; font-size: 12.5px; color: var(--ink-soft); font-style: italic;
}
.site-search {
  flex: 1 1 260px; max-width: 360px;
}
.site-search input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px;
  background: #fff; font-size: 13.5px; color: var(--ink);
}
.header-actions { display: flex; gap: 8px; }
.btn {
  display: inline-block; padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--leaf-700);
}
.btn-ghost { color: var(--leaf-700); background: transparent; }
.btn-solid { color: #fff; background: var(--leaf-700); border-color: var(--leaf-700); }
.btn-ghost:hover, .btn-solid:hover { text-decoration: none; filter: brightness(1.05); }

.site-nav {
  background: var(--soil-800);
}
.site-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap;
}
.site-nav a {
  display: block; padding: 10px 14px; color: var(--soil-200); font-size: 13.5px; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: #fff; text-decoration: none; border-bottom-color: var(--leaf-500); background: rgba(255,255,255,0.04);
}

/* ---------- Ad slots ---------- */
.ad-space {
  max-width: 1180px;
  margin: 14px auto;
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #efe6d4, #efe6d4 10px, #e8dcc3 10px, #e8dcc3 20px);
  border: 1px dashed var(--soil-400);
  color: var(--ink-soft);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}
.ad-space::before { content: "Advertisement"; }
.ad-space#ad-header { min-height: 90px; }
.ad-space#ad-sidebar { min-height: 250px; margin: 0 0 16px; }
.ad-space#ad-between-posts { min-height: 110px; }
.guide-content .ad-space { margin: 1.6em auto; max-width: 100%; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  max-width: 1180px; margin: 10px auto 0; padding: 0 16px;
  font-size: 12.5px; color: var(--ink-soft);
}
.breadcrumbs a { color: var(--soil-700); }
.breadcrumbs span { color: var(--ink-soft); }

/* ---------- Page layout ---------- */
.page-wrap {
  max-width: 1180px; margin: 16px auto 40px; padding: 0 16px;
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px;
  align-items: start;
}
@media (max-width: 880px) {
  .page-wrap { grid-template-columns: 1fr; }
}

/* ---------- Category pills ---------- */
.category-pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 9px; border-radius: 4px; margin-bottom: 10px;
}
.pill-guide { background: var(--leaf-100); color: var(--leaf-800); }
.pill-talk { background: #f2e3cf; color: var(--clay-dark); }
.pill-diagnose { background: #f6e2de; color: #943a28; }
.pill-show { background: #e8e1f3; color: #4c3b7a; }

/* ---------- Home: forum topic list ---------- */
.hero-strip {
  max-width: 1180px; margin: 0 auto; padding: 18px 16px 6px;
}
.hero-strip p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.hero-strip .hero-img {
  border-radius: 10px; overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow);
}

.board-section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--soil-600); margin: 22px 0 8px; font-family: 'Inter', sans-serif; font-weight: 700;
}

.topic-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.topic-row {
  display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-top: 1px solid var(--line-soft);
}
.topic-row:first-child { border-top: none; }
.topic-row:hover { background: var(--soil-100); }
.topic-main h2 { font-size: 16px; margin: 0 0 3px; font-family: 'Inter', sans-serif; font-weight: 700; }
.topic-main h2 a { color: var(--ink); }
.topic-main .excerpt { margin: 0; font-size: 13px; color: var(--ink-soft); }
.topic-main .topic-tags { margin-bottom: 4px; }
.topic-stats { text-align: center; font-size: 12.5px; color: var(--ink-soft); min-width: 58px; }
.topic-stats strong { display: block; font-size: 14px; color: var(--soil-700); }
.topic-activity { font-size: 12px; color: var(--ink-soft); text-align: right; min-width: 92px; }

/* ---------- Avatars ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.avatar-sm {
  width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: -5px; margin-right: 4px; font-family: 'Inter', sans-serif;
}
.avatar-lg {
  width: 56px; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 20px; flex-shrink: 0;
}

/* ---------- Guide article ---------- */
.guide { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 30px 10px; }
.guide-header h1 {
  font-size: 30px; margin-top: 2px;
}
.byline {
  font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.byline a { color: var(--soil-700); font-weight: 600; }
.byline .dot { opacity: 0.5; }
.guide-hero { margin: 0 0 20px; }
.guide-hero img { border-radius: 8px; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
figcaption { font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; }

.guide-content h2 {
  font-size: 21px; margin-top: 1.5em; padding-bottom: 5px; border-bottom: 2px solid var(--leaf-100);
}
.guide-content h2.supplies-head { border-bottom-color: var(--soil-200); }
.guide-content ul.supplies-list { list-style: none; padding-left: 0; }
.guide-content ul.supplies-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft);
  font-size: 14.5px;
}
.guide-content ul.supplies-list li .qty { color: var(--soil-700); font-weight: 700; min-width: 86px; }
.guide-content ul.supplies-list li .price { color: var(--leaf-700); font-weight: 700; white-space: nowrap; }
.guide-content .supplies-total {
  display: flex; justify-content: space-between; font-weight: 700; padding: 10px 0 0; margin-top: 4px;
  border-top: 2px solid var(--soil-300, var(--soil-400));
}
.inline-figure { margin: 1.4em 0; }
.inline-figure img { border-radius: 8px; aspect-ratio: 3/2; object-fit: cover; }

ul.shop-list { list-style: none; padding-left: 0; }
ul.shop-list li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--soil-100); }
ul.shop-list .shop-name { font-weight: 700; color: var(--ink); }
ul.shop-list .shop-sub { display: block; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
ul.shop-list a.shop-btn {
  background: var(--clay); color: #fff; padding: 6px 12px; border-radius: 5px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
ul.shop-list a.shop-btn:hover { background: var(--clay-dark); text-decoration: none; }

.guide-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 18px 0; }
.post-tags a {
  display: inline-block; background: var(--soil-200); color: var(--soil-800); font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 4px; margin: 0 6px 6px 0;
}
.author-box {
  display: flex; gap: 14px; background: var(--soil-100); border-radius: 8px; padding: 14px; margin-top: 10px;
}
.author-box h3 { margin: 0 0 4px; font-size: 16px; }
.author-box p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- Forum thread ---------- */
.thread { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thread-header { padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.thread-header h1 { font-size: 26px; margin: 2px 0 8px; }
.thread-meta { font-size: 13px; color: var(--ink-soft); }
.thread-meta strong { color: var(--soil-700); }

.post { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line-soft); }
.post:first-child { border-top: none; }
.post.op { background: var(--soil-100); }
.post.best-answer { background: var(--best-bg); }
.post-avatar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 2px; }
.post-avatar .op-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clay-dark); font-weight: 700; }
.post-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.username { font-weight: 700; color: var(--soil-800); font-size: 14.5px; }
.user-title { font-size: 11.5px; color: var(--ink-soft); font-style: italic; }
.post-date { font-size: 12px; color: var(--ink-soft); margin-left: auto; }
.post-content p { margin: 0 0 0.85em; font-size: 14.5px; }
.post-content h2 { font-size: 17px; margin: 0.9em 0 0.4em; border: none; }
.post-content ul { font-size: 14.5px; }
.post-content blockquote {
  border-left: 3px solid var(--leaf-500); background: var(--leaf-100); margin: 0 0 0.9em; padding: 8px 12px;
  font-size: 13.5px; color: var(--soil-800); border-radius: 0 6px 6px 0;
}
.post-content blockquote cite {
  display: block; font-style: normal; font-weight: 700; font-size: 11.5px; color: var(--leaf-800); margin-bottom: 3px;
}
.best-answer-badge {
  display: inline-flex; align-items: center; gap: 4px; background: var(--leaf-700); color: #fff; font-size: 11px;
  font-weight: 700; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px;
}
.user-signature {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-soft); font-style: italic;
}
.post-reactions { margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.post-reactions span { margin-right: 10px; }

.thread-footer { padding: 16px 24px 20px; background: var(--soil-100); border-top: 1px solid var(--line); }

/* ---------- Sidebar widgets ---------- */
.widget-area { position: sticky; top: 14px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.widget-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--soil-700); margin: 0 0 10px; font-family: 'Inter', sans-serif; }
.widget-about img { border-radius: 8px; margin-bottom: 10px; }
.widget-popular ol, .widget-related ul, .widget-categories ul { padding-left: 1.1em; margin: 0; font-size: 13px; }
.widget-popular li, .widget-related li { margin-bottom: 7px; }
.widget-categories ul { list-style: none; padding: 0; }
.widget-categories li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.widget-categories li:last-child { border-bottom: none; }
.widget-categories .count { color: var(--ink-soft); font-size: 12px; }
.widget-newsletter form { display: flex; flex-direction: column; gap: 8px; }
.widget-newsletter input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
.widget-newsletter button, .comment-respond button {
  background: var(--leaf-700); color: #fff; border: none; padding: 8px 12px; border-radius: 5px; font-weight: 700; cursor: pointer;
}
.fine-print { font-size: 11px; color: var(--ink-soft); margin: 0; }

/* related posts (guides) */
.related-posts { margin-top: 18px; }
.related-posts h2 { font-size: 15px; border: none; margin-bottom: 8px; }
.related-posts ul { list-style: none; padding: 0; }
.related-posts li { margin-bottom: 8px; font-size: 13.5px; }
.rp-kicker { display: block; font-size: 10.5px; text-transform: uppercase; color: var(--leaf-700); font-weight: 700; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--soil-900); color: var(--soil-200); padding: 24px 16px; font-size: 13px;
}
.site-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer a { color: var(--soil-200); }
.site-footer nav a { margin-left: 14px; }
.site-footer .fp { opacity: 0.75; }

/* ---------- About page ---------- */
.about-page .page-wrap { grid-template-columns: 1fr; max-width: 820px; }
.about-page .about-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 30px; }
.about-page h1 { font-size: 28px; }
.staff-grid { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.staff-card { flex: 1 1 200px; background: var(--soil-100); border-radius: 8px; padding: 14px; text-align: center; }
.staff-card .avatar-lg { margin: 0 auto 8px; }
.staff-card h3 { margin: 0; font-size: 14.5px; }
.staff-card p { margin: 2px 0 0; font-size: 12px; color: var(--ink-soft); }

/* ---------- Comments compat on guides (reuse forum-post styling) ---------- */
#comments .comment-list { list-style: none; padding: 0; }
