/* BuildShare — one stylesheet, no framework. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #1b221e;
  --ink-2: #39443e;
  --muted: #64706a;
  --line: #e5ded2;
  --line-2: #d6cdbf;
  --brand: #1f4d36;
  --brand-2: #2b6a4b;
  --brand-tint: #e5efe8;
  --accent: #d9822b;
  --accent-ink: #8f4c0e;
  --accent-tint: #fbefe1;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --ok: #1d7a46;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 34, 30, .06), 0 4px 16px rgba(27, 34, 30, .06);
  --shadow-lg: 0 2px 6px rgba(27, 34, 30, .08), 0 14px 36px rgba(27, 34, 30, .12);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; word-break: break-all; }
blockquote { margin: .5em 0; padding: .5em 1em; border-left: 3px solid var(--line-2); color: var(--ink-2); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.1em; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-secondary.is-on { background: var(--brand-tint); border-color: var(--brand-2); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--accent-tint); color: var(--brand); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-sm { padding: .4em .75em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn .count { margin-left: auto; font-weight: 500; opacity: .8; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike.danger, .danger { color: var(--danger); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 1rem; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
form.inline, .inline-form { display: inline; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0 6px 6px 0; }
.inline-form input { width: 220px; padding: .4em .6em; }

/* Header */
.announcement { background: var(--accent); color: #fff; text-align: center; padding: 6px 16px; font-size: .9rem; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font: 700 1.25rem/1 var(--sans); letter-spacing: -.02em; }
.logo:hover { color: var(--brand); }
.logo-mark { width: 32px; height: 32px; color: var(--brand); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.header-search { flex: 1; display: flex; max-width: 440px; position: relative; }
.header-search input { width: 100%; padding: 9px 42px 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font: inherit; font-size: .95rem; }
.header-search input:focus { background: #fff; border-color: var(--brand-2); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; display: grid; z-index: 40; }
.user-menu .menu a, .user-menu .menu button { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; text-align: left; width: 100%; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--surface-2); }
.user-menu .menu-name { padding: 8px 12px 10px; margin: 0 0 4px; border-bottom: 1px solid var(--line); font-weight: 650; display: grid; }
.user-menu .menu-name small { color: var(--muted); font-weight: 400; }
@media (max-width: 899px) {
  .header-inner { gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
  .btn-publish span { display: none; }
  .btn-publish { padding: .55em .7em; }
}
@media (max-width: 520px) {
  .main-nav { display: none; }
  .header-inner { flex-wrap: wrap; }
  .site-header .logo { font-size: 1.02rem; gap: 8px; letter-spacing: -.03em; }
  .site-header .logo-mark { width: 28px; height: 28px; }
  .header-actions { gap: 2px; }
  .header-actions .btn-ghost { padding: .5em .6em; }
}

.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--h) 38% 88%); color: hsl(var(--h) 45% 28%); font-weight: 700; }

/* Flash & notices */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); font-weight: 550; border: 1px solid #c7dccf; }
.flash-error { background: var(--danger-tint); color: var(--danger); border-color: #f5c6c1; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-tint); border: 1px solid #f1d6b5; color: var(--accent-ink); }
.admin-bar { padding: 8px 14px; border-radius: var(--radius-sm); background: #eef2f7; font-size: .9rem; }
.form-errors { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--danger-tint); border: 1px solid #f5c6c1; color: var(--danger); margin-bottom: 20px; }
.form-errors p { margin: 0 0 4px; font-weight: 650; }
.form-errors ul { margin: 0; padding-left: 20px; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(217, 130, 43, .28), transparent 60%), linear-gradient(160deg, #173b29 0%, #1f4d36 55%, #24573d 100%); color: #f6efe2; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 120px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 40px; padding: 56px 16px 60px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.25fr 1fr; padding: 80px 24px; } }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); max-width: 14ch; margin-bottom: .4em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.hero .eyebrow { color: #f0b67a; }
.hero-lead { font-size: 1.1rem; max-width: 56ch; color: #e3dccd; }
.hero-search { display: flex; gap: 8px; margin: 24px 0 18px; max-width: 560px; background: #fff; padding: 6px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: 1.02rem; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-cats a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 600; transition: background .15s, transform .15s; }
.hero-cats a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); color: #fff; }
.hero-cats .icon { width: 28px; height: 28px; color: #f0b67a; }
.hero-cats span { flex: 1; line-height: 1.25; }
.hero-cats small { display: block; font-weight: 400; color: #cfc6b4; font-size: .8rem; }
@media (max-width: 420px) { .hero-cats { grid-template-columns: 1fr; } }

/* Sections */
.section { margin: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--line-2); }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card-link:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); }
.card-noimg .icon { width: 40px; height: 40px; }
.badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.badge-featured { background: var(--accent); color: #fff; }
.badge-version { left: auto; right: 10px; }
.card-body { padding: 14px 16px 6px; flex: 1; }
.card-cat { margin: 0 0 4px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.card-title { font-size: 1.04rem; font-weight: 650; margin: 0 0 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta li { font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px 14px; font-size: .85rem; }
.card-author { color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-author:hover { color: var(--brand); text-decoration: underline; }
.card-stats { display: flex; gap: 10px; color: var(--muted); white-space: nowrap; }
.card-stats span { display: inline-flex; align-items: center; gap: 3px; }
.card-stats .icon { width: 14px; height: 14px; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.cat-tile:hover { box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.cat-tile-img { width: 88px; height: 66px; border-radius: 8px; overflow: hidden; flex: none; background: var(--brand-tint); display: grid; place-items: center; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-icon .icon { width: 34px; height: 34px; color: var(--brand-2); }
.cat-tile-text { display: grid; line-height: 1.3; }
.cat-tile-text small { color: var(--muted); }

.founding, .how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.founding { background: var(--accent-tint); border-color: #f1d6b5; }
.how-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: how; }
.how-steps li .icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 8px; }
.how-steps p { color: var(--ink-2); margin: 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; margin: 48px 0; border-radius: var(--radius); background: var(--brand); color: #f6efe2; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #d9e6dd; max-width: 60ch; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: #c4711f; }
.cta-band.small { padding: 22px 26px; }

/* Lists, filters, pagination */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 20px 0 12px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.list-head { margin: 8px 0 20px; }
.list-head .lead, .list-head p { color: var(--ink-2); font-size: 1.06rem; max-width: 70ch; }
.cat-head { display: flex; gap: 18px; align-items: flex-start; }
.cat-head-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand); }
.cat-head-icon .icon { width: 36px; height: 36px; }
@media (max-width: 600px) { .cat-head-icon { display: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; align-items: center; }
.chips-label { color: var(--muted); font-size: .9rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 550; }
.chip span { color: var(--muted); font-weight: 400; }
.chip:hover, .chip.is-current { border-color: var(--brand-2); background: var(--brand-tint); color: var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin: 0 0 24px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: grid; gap: 4px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.filters .f-q { flex: 1 1 220px; }
.filters .f-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); font-weight: 500; padding-bottom: 8px; }
.filters select, .filters input[type=search] { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); font: inherit; font-size: .95rem; background: #fff; color: var(--ink); min-width: 140px; }
.js .filters[data-autosubmit] .btn { display: none; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0; }
.page-num, .page-step, .page-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.page-num, .page-step { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.page-num:hover, .page-step:hover { border-color: var(--brand-2); color: var(--brand); }
.page-num.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); margin: 16px 0 32px; }
.empty > .icon { width: 44px; height: 44px; color: var(--accent); margin: 0 auto 12px; display: block; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }
.empty .btn + .btn { margin-left: 8px; }
.empty-inline { display: flex; align-items: center; gap: 8px; padding: 16px; background: var(--brand-tint); border-radius: var(--radius-sm); color: var(--brand); font-weight: 600; }
.cat-guide { margin: 40px 0; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 820px; }
.cat-index { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 48px; }
.cat-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cat-group-head { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); margin-bottom: 12px; }
.cat-group-head .icon { width: 36px; height: 36px; color: var(--brand-2); }
.cat-group-head span { display: grid; }
.cat-group-head strong { font-size: 1.15rem; }
.cat-group-head small { color: var(--muted); }
.cat-group ul { list-style: none; margin: 0; padding: 0; }
.cat-group li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }
.cat-group li span { color: var(--muted); }

/* Ads (reserved space so nothing jumps when they load) */
.ad { margin: 36px auto; text-align: center; clear: both; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad ins, .ad .ad-box { min-height: 280px; }
.ad-article ins, .ad-article .ad-box { min-height: 320px; }
.ad-feed ins, .ad-feed .ad-box { min-height: 250px; }
@media (max-width: 600px) { .ad-h ins, .ad-h .ad-box { min-height: 360px; } }
.ad-preview .ad-box { display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 8px; background: repeating-linear-gradient(45deg, var(--accent-tint) 0 10px, #fff 10px 20px); color: var(--accent-ink); font-weight: 700; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.steps .step-ad { list-style: none; }
.steps .step-ad::before { display: none; }

/* Project page */
.project-head { margin: 4px 0 24px; max-width: 880px; }
.project-head .lead { font-size: 1.15rem; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.byline-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); text-decoration: none; }
.byline-rating { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.byline-version { display: inline-flex; align-items: center; gap: 6px; }
.project-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .project-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
@media (max-width: 999px) {
  .project-layout { display: flex; flex-direction: column; gap: 28px; }
  .project-main { display: contents; }
  .project-main > * { order: 3; }
  .project-main > .gallery { order: 1; }
  .project-side { order: 2; }
  .project-main > section { margin-bottom: 0; }
}
.project-main > section { margin-bottom: 36px; }
.gallery-main { margin: 0; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; max-height: 70vh; object-fit: contain; background: #e9e3d8; }
.gallery-main figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.gallery-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.gallery-thumbs a { display: block; border-radius: 8px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 4 / 3; }
.gallery-thumbs a[aria-current] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.variation { padding: 18px 22px; background: var(--accent-tint); border-radius: var(--radius); border: 1px solid #f1d6b5; }
.variation h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.lists { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lists h2 { font-size: 1.2rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 7px 0 7px 26px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 12px; border: 2px solid var(--line-2); border-radius: 3px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps h3 { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; }
.step-n { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; font-weight: 700; }
.steps .prose { padding-left: 44px; }
@media (max-width: 600px) { .steps .prose { padding-left: 0; } }
.tips { padding: 20px 24px; background: var(--brand-tint); border-radius: var(--radius); }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.files li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file-icon .icon { width: 28px; height: 28px; color: var(--brand-2); }
.file-name { flex: 1; display: grid; font-weight: 600; word-break: break-word; }
.file-name small { color: var(--muted); font-weight: 400; }
.license { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.license p { color: var(--muted); }
.safety { display: flex; gap: 8px; align-items: flex-start; }
.safety .icon { margin-top: 3px; color: var(--accent); }
.versions .grid { margin-bottom: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.project-side { display: grid; gap: 16px; }
@media (min-width: 1000px) { .project-side { position: sticky; top: 84px; } }
.facts dl { margin: 0 0 16px; display: grid; gap: 2px; }
.facts dl > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.facts dt .icon { color: var(--brand-2); }
.facts dd { margin: 0; font-weight: 650; text-align: right; }
.facts dd small { display: block; font-weight: 400; color: var(--muted); }
.actions { display: grid; gap: 8px; }
.share { position: relative; }
.share summary { list-style: none; }
.share summary::-webkit-details-marker { display: none; }
.share-menu { display: grid; gap: 2px; margin-top: 6px; padding: 6px; background: var(--surface-2); border-radius: var(--radius-sm); }
.share-menu a, .share-menu button { padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); text-align: left; }
.share-menu a:hover, .share-menu button:hover { background: #fff; }
.rate { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rate-head { margin: 0 0 6px; }
.rate fieldset { border: 0; padding: 0; margin: 0; }
.rate legend { font-size: .9rem; color: var(--muted); padding: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.js [data-nojs] { display: none; }
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; }
.stars-sm { font-size: .9rem; }
.stars-bg { color: var(--line-2); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent); }
.stat-line { margin: 14px 0 0; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.builder-head { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); margin-bottom: 10px; }
.builder-head span { display: grid; }
.builder-head small { color: var(--muted); }
.builder p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.report-link { font-size: .85rem; text-align: center; }
.report-link a { color: var(--muted); }
.comments { border-top: 1px solid var(--line); padding-top: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment > div { flex: 1; min-width: 0; }
.comment.is-held { opacity: .75; }
.comment-meta { margin: 0 0 2px; font-size: .9rem; }
.comment-meta a { font-weight: 650; color: var(--ink); text-decoration: none; }
.comment-body p { margin: 0 0 .5em; overflow-wrap: anywhere; }
.comment-actions { margin: 0; font-size: .82rem; display: flex; gap: 14px; }
.comment-actions a { color: var(--muted); }
.comment-form { display: grid; gap: 10px; }
.comment-form .btn { justify-self: start; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: .74rem; font-weight: 700; margin-left: 6px; vertical-align: 1px; }
.tag-warn { background: var(--accent-tint); color: var(--accent-ink); }

/* Profiles & account */
.profile-head { display: flex; gap: 28px; align-items: flex-start; margin: 8px 0 24px; flex-wrap: wrap; }
.profile-head > div { flex: 1; min-width: 260px; }
.profile-head h1 { margin-bottom: 4px; }
.profile-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 12px 0 16px; }
.profile-stats strong { font-size: 1.2rem; margin-right: 4px; }
.account-head { display: flex; align-items: center; gap: 16px; margin: 28px 0 12px; flex-wrap: wrap; }
.account-head > div { flex: 1; }
.account-head h1 { margin: 0; font-size: 1.9rem; }
.account-head p { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.stat-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 0; margin: 0 0 24px; }
.stat-tiles li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: .9rem; display: grid; }
.stat-tiles li a { color: inherit; text-decoration: none; display: grid; }
.stat-tiles strong { font-size: 1.7rem; color: var(--ink); font-family: var(--serif); line-height: 1.1; }
.stat-tiles small { color: var(--muted); }
.stat-tiles.small strong { font-size: 1.3rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.t-project { display: flex; align-items: center; gap: 12px; }
.t-project img, .t-noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.t-noimg { display: grid; place-items: center; background: var(--surface-2); color: var(--line-2); }
.t-actions { white-space: nowrap; }
.t-actions > * { margin-right: 10px; }
.t-user { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-details { font-size: .8rem; color: var(--muted); max-width: 360px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .my-projects thead { display: none; }
  .my-projects tr { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .my-projects td { border: 0; padding: 4px 12px; }
  .my-projects .t-project, .my-projects .t-actions { grid-column: 1 / -1; }
}
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.status-published { background: var(--brand-tint); color: var(--ok); }
.status-pending { background: var(--accent-tint); color: var(--accent-ink); }
.status-rejected, .status-removed { background: var(--danger-tint); color: var(--danger); }
.notes { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.notes li { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notes li:last-child { border-bottom: 0; }
.notes li.is-new { background: var(--accent-tint); }
.notes .icon { color: var(--brand-2); margin-top: 3px; }
.notes p { margin: 0; }
.notes small { display: block; color: var(--muted); }
.settings-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; margin-bottom: 48px; }
.settings-grid h3 { margin-top: 24px; }
.avatar-edit { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.avatar-edit > div { display: grid; gap: 6px; }

/* Forms */
.form-page { max-width: 460px; margin: 40px auto 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-page.wide { max-width: 720px; }
.form-page h1 { font-size: 1.8rem; }
.form { display: grid; gap: 16px; }
.form label, .publish-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.form label small, .publish-form label small, fieldset > small { font-weight: 400; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-tint); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.form .check span { display: grid; }
.form-foot { margin: 18px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or span { flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.row-4 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.row-tight { display: flex; gap: 8px; }
.row-tight .grow { flex: 1; }

/* Publish */
.publish-head { margin: 28px 0 20px; max-width: 760px; }
.publish-layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .publish-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .publish-side { position: sticky; top: 84px; } }
.publish-main { display: grid; gap: 20px; }
.publish-main .panel { display: grid; gap: 16px; padding: 24px; }
.publish-main h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.3rem; }
.sec-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font: 700 .95rem var(--sans); }
.publish-main .muted { margin: 0; }
.dropzone { display: grid !important; place-items: center; gap: 6px; padding: 30px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--bg); text-align: center; cursor: pointer; color: var(--ink-2); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-2); background: var(--brand-tint); }
.dropzone .icon { width: 36px; height: 36px; color: var(--brand-2); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.image-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.image-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; display: grid; gap: 6px; position: relative; }
.image-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.image-item input[type=text], .image-item input:not([type]) { padding: 6px 8px !important; font-size: .85rem !important; }
.image-item.is-uploading { opacity: .6; }
.image-item.is-error { border-color: var(--danger); }
.cover-pick { display: flex !important; flex-direction: row; align-items: center; gap: 6px; font-size: .82rem !important; font-weight: 500 !important; }
.image-tools { display: flex; justify-content: flex-end; }
.image-tools .icon-btn, .step-tools .icon-btn { width: 30px; height: 30px; }
.upload-status { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.upload-status.is-error { color: var(--danger); }
.file-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.file-list li span { flex: 1; word-break: break-word; }
.steps-edit { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step-edit { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 8px; }
.step-edit-head { display: flex; align-items: center; gap: 10px; }
.step-edit-head input { flex: 1; }
.step-tools { display: flex; }
.licenses { display: grid; gap: 8px; }
.radio-card { display: flex !important; flex-direction: row; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400 !important; }
.radio-card:has(input:checked) { border-color: var(--brand-2); background: var(--brand-tint); }
.radio-card input { margin-top: 4px; accent-color: var(--brand); }
.radio-card span { display: grid; }
.radio-card small { color: var(--muted); }
.rights { padding: 12px; background: var(--accent-tint); border-radius: var(--radius-sm); }
.responsibility { font-size: .92rem; line-height: 1.5; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); }
.quality h2 { font-size: 1.15rem; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; font-size: .9rem; }
.checks li { padding-left: 24px; position: relative; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); }
.checks li.done { color: var(--ink); }
.checks li.done::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.meter { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); transition: width .3s; }
.meter-label { font-size: .85rem; margin: 6px 0 0; color: var(--muted); }
.publish-bar { position: sticky; bottom: 0; z-index: 20; margin-top: 24px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .05); }
.publish-bar-inner { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.publish-bar-inner .muted { margin-right: auto; font-size: .9rem; }
.page-publish .site-footer { margin-top: 0; }

/* Info pages */
.info-page { max-width: 780px; margin: 0 auto 64px; }
.info-page h2 { margin-top: 1.6em; }
.info-page .lead { font-size: 1.15rem; color: var(--ink-2); }

/* Admin */
.admin { display: grid; gap: 24px; margin: 24px auto 64px; }
@media (min-width: 1000px) { .admin { grid-template-columns: 210px minmax(0, 1fr); } }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 999px) { .admin-nav { flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--line); } }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.admin-nav a:hover { background: var(--surface-2); }
.admin-nav a[aria-current] { background: var(--brand); color: #fff; }
.pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.admin-body h1 { font-size: 1.8rem; }
.admin-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); margin-bottom: 20px; align-items: start; }
.admin-body .panel { margin-bottom: 20px; }
.chart { margin: 0 0 18px; }
.chart svg { width: 100%; height: auto; }
.chart rect { fill: var(--brand-2); }
.chart text { font-size: 11px; fill: var(--muted); }
.chart figcaption { font-size: .85rem; color: var(--muted); }
.setup { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.setup li { display: flex; gap: 10px; }
.setup li span { display: grid; }
.setup li small { color: var(--muted); }
.setup .ok .icon { color: var(--ok); }
.setup .todo .icon { color: var(--danger); }
.rank { margin: 0; padding-left: 22px; }
.rank li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.rank li { display: list-item; }
.rank li > span:last-child, .rank li > a + span { float: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.queue-item { display: flex; gap: 18px; align-items: flex-start; }
.queue-item > img, .queue-item > .t-noimg { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; flex: none; }
@media (max-width: 640px) { .queue-item { flex-direction: column; } }
.queue-main { flex: 1; min-width: 0; }
.queue-main h2 { font-size: 1.2rem; margin-bottom: 4px; }
.queue-actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.flags { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flags li { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); }
.flags .sev-2 { background: var(--accent-tint); color: var(--accent-ink); }
.flags .sev-3 { background: var(--danger-tint); color: var(--danger); }
.report-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.report-details { white-space: pre-wrap; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.settings-form .panel { display: grid; gap: 14px; }

/* Footer */
.site-footer { background: #17271f; color: #c9d3cc; margin-top: 72px; padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-brand { grid-column: span 1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo-mark { color: var(--brand-2); }
.site-footer h2 { font: 700 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #8fa397; margin-bottom: 12px; }
.site-footer nav { display: grid; gap: 6px; align-content: start; }
.site-footer nav a, .site-footer .linklike { color: #dfe7e1; text-decoration: none; text-align: left; font-size: .92rem; }
.site-footer nav a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8fa397; font-size: .82rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 100; box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Editorial guides */
.badge-guide { background: var(--brand, #1f4d36); color: #fff; }
.badge-guide .icon { width: 13px; height: 13px; }
.guide-card .card-img { aspect-ratio: 8 / 5; }
.guide-card .card-img img { width: 100%; height: 100%; aspect-ratio: 8 / 5; object-fit: contain; background: #1f4d36; }
.guide-figure { margin: 0 0 28px; }
.guide-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.guide-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.guide .lead p { margin: 0 0 .6em; }
.callout { border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; border: 1px solid var(--line); }
.callout h2 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.callout-warn { background: var(--accent-tint); border-color: #f1d6b5; }
.callout-safety { background: #eef4f0; border-color: #cfe3d4; }
.toc { margin: 18px 0; border-top: 1px solid var(--line); padding-top: 14px; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .92rem; }
.section-title { font-size: 1.35rem; margin: 32px 0 16px; }
.founding.small { padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.founding.small p { margin: 0; flex: 1 1 320px; }
.guide-filters .guide-count { margin: 0 0 8px auto; font-size: .9rem; color: var(--muted); }
.guide-about { font-size: .92rem; }
[data-guide][hidden] { display: none; }
@media print {
  .site-header, .site-footer, .project-side .actions, .cta-band, .section, .ad, .breadcrumbs, [data-flash] { display: none !important; }
  .project-layout { display: block; }
  .guide-figure img { max-width: 520px; }
}
.guide-card .card-img.has-photo img { object-fit: cover; background: none; }
.real-builds { margin: 32px 0; }
.real-builds .muted { margin-top: -4px; }
.photo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm, 8px); display: block; }
.photo-grid figcaption { font-size: .88rem; margin-top: 6px; color: var(--ink-2, #333); }
.photo-grid figcaption small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.badge-build { background: var(--accent, #e0913f); color: #fff; }
.badge-build .icon { width: 13px; height: 13px; }
.source-line { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink-2, #333); background: #eef4f0; border: 1px solid #cfe3d4; border-radius: var(--radius-sm, 8px); padding: 10px 14px; margin: 12px 0 0; }
.source-line .icon { flex: none; margin-top: 3px; color: var(--ok, #2e7d4f); }
.build-hero { margin: 0 0 28px; }
.build-hero img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius); display: block; }
.build-hero figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.build-hero figcaption small { display: block; }
