/* DogFoodBuyer Social: one design system.
   Layer order: legacy.css (structural base) then this file.
   Token overrides here recolor every legacy component; dfbs-* classes are the
   new chrome and community surfaces; .dfb-comm-* / .dfb-qa-* rules restyle the
   plugin-rendered items under the same selectors brand responses target. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --c-bg:        #faf8f4;
    --c-surface:   #ffffff;
    --c-surface-2: #f3f0e9;
    --c-text:      #211f1a;
    --c-text-2:    #5c574c;
    --c-text-3:    #8d867a;
    --c-border:    #e7e2d7;
    --c-border-2:  #d6cfc0;

    --c-brand:       #2d6b3a;
    --c-brand-dark:  #1f4d28;
    --c-brand-light: #e9f3ea;
    --c-accent:      #d97706;   /* amber: ratings + highlights */
    --c-warn:        #b91c1c;   /* red: recalls + alerts only */
    --c-warn-bg:     #fdf1f1;
    --c-info:        #1e4ed8;
    --c-info-bg:     #eef2ff;

    --dfbs-star:  #e8a020;
    --dfbs-good:  #1a7f4b;
    --dfbs-shell: 64px;
}

body { background: var(--c-bg); }

/* ── Top bar ────────────────────────────────────────────────────────────── */
.dfbs-topbar { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); }
.dfbs-topbar-inner { max-width: var(--w-max, 1200px); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.dfbs-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-text); white-space: nowrap; }
.dfbs-logo-img { height: 36px; width: auto; }
.dfbs-logo-mark { font-size: 22px; }
.dfbs-logo-text { font-size: 18px; letter-spacing: -.01em; }
.dfbs-logo-text strong { color: var(--c-brand); }

.dfbs-search { flex: 1; max-width: 460px; position: relative; }
.dfbs-search-input, .dfb-search-input { width: 100%; padding: 9px 14px; border: 1px solid var(--c-border-2); border-radius: 999px; background: var(--c-surface); font-size: 14px; }
.dfbs-search-input:focus { outline: 2px solid var(--c-brand-light); border-color: var(--c-brand); }

.dfbs-nav { display: none; gap: 4px; }
.dfbs-nav a { padding: 8px 12px; border-radius: 8px; color: var(--c-text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.dfbs-nav a:hover { background: var(--c-surface-2); color: var(--c-text); }
.dfbs-nav-recalls { color: var(--c-warn) !important; }

.dfbs-member { display: none; align-items: center; gap: 10px; margin-left: auto; }
.dfbs-login { color: var(--c-text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.dfbs-join { border-radius: 999px !important; white-space: nowrap; }
.dfbs-me { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-text); font-weight: 600; font-size: 14px; }
.dfbs-avatar { border-radius: 50%; border: 2px solid var(--c-brand-light); }

.dfbs-menu-btn { margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.dfbs-menu-btn span { width: 18px; height: 2px; background: var(--c-text); border-radius: 2px; }

@media (min-width: 900px) {
    .dfbs-nav, .dfbs-member { display: flex; }
    .dfbs-menu-btn { display: none; }
}

/* ── Drawer (mobile) ────────────────────────────────────────────────────── */
.dfbs-drawer { position: fixed; inset: 0; z-index: 950; background: rgba(20,18,14,.45); }
.dfbs-drawer-inner { position: absolute; top: 0; right: 0; width: min(320px, 88vw); height: 100%; background: var(--c-surface); padding: 18px; overflow: auto; box-shadow: -12px 0 32px rgba(0,0,0,.12); }
.dfbs-drawer-search { position: relative; margin-bottom: 14px; }
.dfbs-drawer nav { display: flex; flex-direction: column; }
.dfbs-drawer nav a { padding: 12px 6px; border-bottom: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-weight: 600; }
.dfbs-drawer-join { color: var(--c-brand) !important; }

/* ── Bottom tab bar (mobile) ────────────────────────────────────────────── */
.dfbs-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 930; display: flex; align-items: center; justify-content: space-around; background: rgba(255,255,255,.97); border-top: 1px solid var(--c-border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.dfbs-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--c-text-2); text-decoration: none; min-width: 56px; }
.dfbs-tabbar a.is-on { color: var(--c-brand); }
.dfbs-tab-ic { font-size: 18px; line-height: 1; }
.dfbs-tab-plus { width: 48px; height: 48px; margin-top: -22px; border-radius: 50%; border: 0; background: var(--c-brand); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(45,107,58,.35); }
@media (min-width: 900px) { .dfbs-tabbar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 76px; } }

/* ── Compose sheet ──────────────────────────────────────────────────────── */
.dfbs-sheet { position: fixed; inset: 0; z-index: 960; background: rgba(20,18,14,.45); display: flex; align-items: flex-end; }
.dfbs-sheet[hidden], .dfbs-drawer[hidden] { display: none !important; }
.dfbs-sheet-panel { width: 100%; background: var(--c-surface); border-radius: 18px 18px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); }
.dfbs-sheet-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--c-border-2); margin: 6px auto 12px; }
.dfbs-sheet-panel h3 { margin: 0 0 10px; font-size: 16px; }
.dfbs-sheet-panel a { display: block; padding: 12px 12px; border: 1px solid var(--c-border); border-radius: 12px; margin: 0 0 8px; text-decoration: none; color: var(--c-text); }
.dfbs-sheet-panel a strong { display: block; }
.dfbs-sheet-panel a span { display: block; color: var(--c-text-2); font-size: 12.5px; }

/* ── Homepage ───────────────────────────────────────────────────────────── */
.dfbs-hero { background: radial-gradient(900px 420px at 50% -80px, #e4efe2 0%, #f4f1e7 55%, var(--c-bg) 100%); padding: 46px 0 30px; text-align: center; }
.dfbs-hero h1 { font-size: clamp(26px, 4.4vw, 44px); letter-spacing: -.02em; margin: 0 auto 10px; max-width: 720px; }
.dfbs-hero-sub { color: var(--c-text-2); max-width: 560px; margin: 0 auto 20px; font-size: 16px; }
.dfbs-hero-search { position: relative; display: flex; gap: 8px; max-width: 560px; margin: 0 auto 18px; }
.dfbs-hero-search .dfb-search-input { flex: 1; padding: 13px 18px; font-size: 16px; }
.dfbs-pulse { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--c-text-2); font-size: 13.5px; }
.dfbs-pulse-item b { color: var(--c-text); font-size: 15px; }

.dfbs-compose-row { padding: 8px 0 4px; }
.dfbs-compose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dfbs-compose-card { display: block; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--c-text); transition: transform .12s ease, box-shadow .12s ease; }
.dfbs-compose-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.06)); border-color: var(--c-border-2); }
.dfbs-cc-ic { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--c-brand-light); color: var(--c-brand); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dfbs-compose-card strong { display: block; margin-bottom: 2px; }
.dfbs-compose-card span:last-child { color: var(--c-text-2); font-size: 12.5px; line-height: 1.45; display: block; }

.dfbs-home-body { padding: 26px 0 40px; }
.dfbs-home-cols { display: grid; gap: 28px; }
@media (min-width: 960px) { .dfbs-home-cols { grid-template-columns: minmax(0, 1fr) 340px; } }

.dfbs-sidebox { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; }
.dfbs-sidebox h3 { margin: 0 0 10px; font-size: 15px; }
.dfbs-sidebox--recalls { border-left: 4px solid var(--c-warn); }
.dfbs-sidebox--recalls ul { list-style: none; margin: 0 0 8px; padding: 0; }
.dfbs-sidebox--recalls li { padding: 5px 0; font-size: 13.5px; border-bottom: 1px solid var(--c-border); }
.dfbs-sidebox--recalls li:last-child { border-bottom: 0; }
.dfbs-link { color: var(--c-brand); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.dfbs-link:hover { text-decoration: underline; }

.dfbs-join-band { background: var(--c-brand-dark); color: #fff; text-align: center; padding: 42px 16px; }
.dfbs-join-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.dfbs-join-band p { color: #d7e6da; max-width: 560px; margin: 0 auto 18px; }
.dfbs-join-big { font-size: 16px; padding: 13px 26px; border-radius: 999px; }

/* ── Feed cards ─────────────────────────────────────────────────────────── */
.dfbs-feed { display: flex; flex-direction: column; gap: 10px; }
.dfbs-fc { display: flex; gap: 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 14px 16px; }
.dfbs-fc-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; background: var(--c-surface-2); color: var(--c-text-2); }
.dfbs-fc--review .dfbs-fc-avatar { background: #fdf3e2; color: var(--dfbs-star); }
.dfbs-fc--question .dfbs-fc-avatar { background: var(--c-info-bg); color: var(--c-info); }
.dfbs-fc--dog .dfbs-fc-avatar { background: var(--c-brand-light); }
.dfbs-fc--recall .dfbs-fc-avatar { background: var(--c-warn-bg); color: var(--c-warn); }
.dfbs-fc-main { min-width: 0; }
.dfbs-fc-line { margin: 0; font-size: 14px; }
.dfbs-fc-badge { display: inline-block; margin-left: 4px; background: var(--c-brand-light); color: var(--dfbs-good); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.dfbs-fc--recall .dfbs-fc-badge { background: var(--c-warn-bg); color: var(--c-warn); }
.dfbs-fc-body { margin: 4px 0 0; color: var(--c-text-2); font-size: 13.5px; }
.dfbs-fc-meta { margin: 6px 0 0; font-size: 12px; color: var(--c-text-3); }
.dfbs-fc-meta a { color: var(--c-brand); text-decoration: none; font-weight: 600; }
.dfbs-feed-empty { background: var(--c-surface); border: 1px dashed var(--c-border-2); border-radius: 14px; padding: 26px; text-align: center; color: var(--c-text-2); }
.dfbs-feed-empty .dfb-btn { margin-top: 10px; }

/* ── Product hero ───────────────────────────────────────────────────────── */
.dfbs-phero { display: grid; gap: 22px; margin: 12px 0 20px; }
@media (min-width: 800px) { .dfbs-phero { grid-template-columns: 300px minmax(0, 1fr); } }
.dfbs-phero-media img { width: 100%; border-radius: 16px; border: 1px solid var(--c-border); background: #fff; }
.dfbs-phero-placeholder { width: 100%; aspect-ratio: 1; border-radius: 16px; border: 1px dashed var(--c-border-2); background: var(--c-surface-2); display: flex; align-items: center; justify-content: center; font-size: 54px; opacity: .5; }
.dfbs-phero-main h1 { margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.01em; }
.dfbs-phero-lede { color: var(--c-text-2); margin: 0 0 14px; }
.dfbs-phero-lede a { color: var(--c-brand); font-weight: 600; }
.dfbs-buy { margin-top: 12px; border-radius: 12px; }

.dfbs-verdict { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.dfbs-vc { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; padding: 10px 14px; min-width: 118px; }
.dfbs-vc b { display: block; font-size: 18px; line-height: 1.15; }
.dfbs-vc span { color: var(--c-text-2); font-size: 11.5px; }
.dfbs-vc--ok b { color: var(--dfbs-good); }
.dfbs-vc--warn { border-color: #f0d9b5; background: #fffaf1; }
.dfbs-vc--warn b { color: #a9761f; }
.dfbs-vc--danger { border-color: #f3c9c9; background: var(--c-warn-bg); }
.dfbs-vc--danger b { color: var(--c-warn); }

.dfbs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dfbs-act { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--c-border-2); background: var(--c-surface); color: var(--c-text); font-weight: 700; font-size: 14px; text-decoration: none; }
.dfbs-act:hover { border-color: var(--c-brand); color: var(--c-brand); }
.dfbs-act--primary { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.dfbs-act--primary:hover { background: var(--c-brand-dark); color: #fff; }

/* ── Blocks ─────────────────────────────────────────────────────────────── */
.dfbs-block { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; padding: 22px; margin: 0 0 20px; }
.dfbs-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.dfbs-block-head h2 { margin: 0; font-size: 20px; }
.dfbs-sub { color: var(--c-text-2); font-size: 13.5px; margin: -6px 0 14px; }
.dfbs-empty { color: var(--c-text-2); background: var(--c-surface-2); border-radius: 10px; padding: 14px; }
.dfbs-fine { color: var(--c-text-3); font-size: 12px; }
.dfbs-note { font-size: 12.5px; color: var(--c-text-2); }
.dfbs-note.is-ok { color: var(--dfbs-good); }
.dfbs-note.is-err { color: var(--c-warn); }
.dfbs-btn-sm { padding: 7px 14px !important; font-size: 13px !important; }
.dfbs-btn-ghost { background: transparent !important; color: var(--c-brand) !important; border: 1px solid var(--c-border-2) !important; margin-top: 12px; }

/* aggregate + outcome bars */
.dfbs-agg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.dfbs-agg-avg { font-size: 34px; font-weight: 800; line-height: 1; }
.dfbs-agg-count { color: var(--c-text-2); font-size: 13px; }
.dfbs-agg-rec { background: var(--c-brand-light); color: var(--dfbs-good); font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.dfbs-outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 16px; }
.dfbs-outcome-top { display: flex; justify-content: space-between; font-size: 12.5px; }
.dfbs-outcome-top strong { color: var(--dfbs-good); }
.dfbs-bar { height: 8px; background: var(--c-surface-2); border-radius: 5px; overflow: hidden; margin: 4px 0; }
.dfbs-bar span { display: block; height: 100%; background: var(--dfbs-good); }
.dfbs-outcome-n { color: var(--c-text-3); font-size: 11px; }

/* join nudges + composers */
.dfbs-join-nudge { background: var(--c-surface-2); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dfbs-join-nudge p { margin: 0; flex: 1; min-width: 180px; font-size: 14px; }
.dfbs-composer { border: 1px solid var(--c-border); border-radius: 14px; padding: 16px; margin: 0 0 18px; background: #fffdf8; }
.dfbs-composer h3 { margin: 0 0 10px; font-size: 15px; }
.dfbs-composer textarea, .dfbs-composer input[type="text"] { width: 100%; padding: 9px 12px; border: 1px solid var(--c-border-2); border-radius: 10px; font: inherit; font-size: 14px; }
.dfbs-field { display: block; margin: 0 0 12px; }
.dfbs-field > span { display: block; font-size: 12px; font-weight: 700; color: var(--c-text-2); margin-bottom: 4px; }
.dfbs-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 12px; }
.dfbs-outgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.dfbs-outgrid label span { display: block; font-size: 11.5px; font-weight: 700; color: var(--c-text-2); margin-bottom: 3px; }
.dfbs-outgrid select { width: 100%; padding: 8px; border: 1px solid var(--c-border-2); border-radius: 8px; font-size: 13px; }
@media (max-width: 560px) { .dfbs-outgrid { grid-template-columns: 1fr; } }
.dfbs-composer-actions { display: flex; align-items: center; gap: 12px; }
.dfbs-starpick { display: flex; gap: 4px; margin: 0 0 10px; }
.dfbs-starbtn { background: none; border: 0; cursor: pointer; font-size: 30px; line-height: 1; color: #ddd6c8; padding: 0; }
.dfbs-starbtn.on { color: var(--dfbs-star); }
.dfbs-composer--ask textarea { margin-bottom: 10px; }

/* ── Plugin-rendered items, restyled under the same selectors ───────────── */
.dfbs-review-list, .dfbs-qa-list { display: block; }
.dfb-comm-review { padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.dfb-comm-review:last-child { border-bottom: 0; }
.dfb-comm-review-head { display: flex; align-items: center; gap: 10px; }
.dfb-comm-stars { display: inline-flex; gap: 1px; }
.dfb-comm-star { color: #ddd6c8; font-size: 16px; line-height: 1; }
.dfb-comm-star.on { color: var(--dfbs-star); }
.dfb-comm-badge { background: var(--c-brand-light); color: var(--dfbs-good); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.dfb-comm-review-title { margin: 6px 0 2px; font-size: 15.5px; }
.dfb-comm-review-meta { color: var(--c-text-3); font-size: 12px; margin: 2px 0 8px; }
.dfb-comm-review-body { margin: 4px 0; font-size: 14.5px; }
.dfb-comm-review-photo { max-width: 200px; border-radius: 10px; margin: 6px 0; }
.dfb-comm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.dfb-comm-chip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--c-border); }
.dfb-comm-chip.good { background: var(--c-brand-light); color: var(--dfbs-good); border-color: #cfe6d4; }
.dfb-comm-chip.bad { background: var(--c-warn-bg); color: var(--c-warn); border-color: #f0d2d2; }
.dfb-comm-link, .dfb-qa-link { background: none; border: 0; color: var(--c-text-3); cursor: pointer; padding: 0; font: inherit; font-size: 12.5px; text-decoration: underline; }
.dfb-comm-link.voted, .dfb-qa-link.voted { color: var(--dfbs-good); text-decoration: none; }

.dfb-qa-q { padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.dfb-qa-q:last-child { border-bottom: 0; }
.dfb-qa-q-body { display: flex; gap: 8px; font-weight: 700; font-size: 15px; }
.dfb-qa-q-mark, .dfb-qa-a-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.dfb-qa-q-mark { background: var(--c-info); }
.dfb-qa-a-mark { background: var(--dfbs-good); }
.dfb-qa-q-meta { color: var(--c-text-3); font-size: 12px; margin: 4px 0 4px 30px; }
.dfb-qa-answers { margin: 6px 0 6px 30px; }
.dfb-qa-a { display: flex; gap: 8px; padding: 8px 0; }
.dfb-qa-a-main { flex: 1; }
.dfb-qa-a-body { font-size: 14px; }
.dfb-qa-a-meta { color: var(--c-text-3); font-size: 12px; margin-top: 3px; }
.dfb-qa-badge { background: var(--c-brand-light); color: var(--dfbs-good); font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.dfb-qa-form { margin: 8px 0 0 30px; }
.dfb-qa-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--c-border-2); border-radius: 10px; font: inherit; font-size: 13.5px; }
.dfb-qa-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.dfb-qa-note { font-size: 12.5px; color: var(--c-text-2); }
.dfb-qa-note.is-ok { color: var(--dfbs-good); }
.dfb-qa-note.is-err { color: var(--c-warn); }
.dfb-qa-btn { display: inline-block; background: var(--c-brand); color: #fff; border: 1px solid var(--c-brand); border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ── Specs + guide + related ────────────────────────────────────────────── */
.dfbs-specs { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; margin: 0 0 20px; overflow: hidden; }
.dfbs-specs summary { display: flex; align-items: baseline; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; }
.dfbs-specs summary::-webkit-details-marker { display: none; }
.dfbs-specs summary::after { content: "＋"; margin-left: auto; color: var(--c-text-3); font-size: 18px; }
.dfbs-specs[open] summary::after { content: "－"; }
.dfbs-specs summary h2 { margin: 0; font-size: 20px; display: inline; }
.dfbs-specs-hint { color: var(--c-text-3); font-size: 12.5px; }
.dfbs-specs-body { padding: 0 22px 22px; }
.dfbs-specs-body h3 { font-size: 15px; margin: 18px 0 8px; }

.dfbs-block--guide .dfb-generated h2 { font-size: 18px; }
.dfbs-rel-cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .dfbs-rel-cols { grid-template-columns: 1fr 1fr; } }
.dfbs-rel-h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-3); margin: 0 0 8px; }
.dfbs-rel-list { list-style: none; margin: 0; padding: 0; }
.dfbs-rel-list li { padding: 4px 0; font-size: 14px; }
.dfbs-rel-list a { color: var(--c-brand); text-decoration: none; font-weight: 600; }
.dfbs-rel-cmp { font-size: 11.5px; color: var(--c-text-3) !important; font-weight: 400 !important; margin-left: 4px; }
.dfbs-rel-hub { font-size: 13.5px; margin: 0 0 6px; }
.dfbs-rel-hub span { font-weight: 700; color: var(--c-text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.dfbs-rel-hub a { color: var(--c-brand); text-decoration: none; }

/* dog-profile widget lands here; give it breathing room */
#dfbs-dogp-anchor { display: block; }
#dfbs-dogp-anchor .dfb-dogp, #dfbs-dogp-anchor > * { margin-bottom: 20px; }

/* footer join */
.dfbs-footer-join { margin-top: 10px; border-radius: 999px !important; }

/* suggestion dropdown (legacy autocomplete) */
.dfb-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.1); display: none; z-index: 980; text-align: left; overflow: hidden; }
.dfb-suggest.is-open { display: block; }

/* inline SVG icons */
.dfbs-ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.dfbs-cc-ic .dfbs-ic { width: 18px; height: 18px; }
.dfbs-tab-ic .dfbs-ic { width: 20px; height: 20px; }
.dfbs-fc-avatar .dfbs-ic { width: 17px; height: 17px; }
.dfbs-act .dfbs-ic { width: 16px; height: 16px; }
.dfbs-phero-placeholder .dfbs-ic { width: 74px; height: 74px; stroke-width: 1.4; opacity: .55; }

/* ── Community hub + topic hubs + pulse (v1.2) ─────────────────────────── */
.dfbs-page-head { padding: 26px 0 6px; }
.dfbs-page-head h1 { margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.01em; }
.dfbs-comm-cols { padding: 14px 0 40px; }

.dfbs-feed-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.dfbs-feed-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--c-border-2); background: var(--c-surface); color: var(--c-text-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.dfbs-feed-tabs a.is-on { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

.dfbs-topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.dfbs-topic-rating { margin: 6px 0 0; font-size: 12.5px; color: var(--c-text-2); }
.dfbs-topic-rating, .dfbs-topic-item { text-align: left; }
.dfbs-topic-q { padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.dfbs-topic-q:last-child { border-bottom: 0; }
.dfbs-topic-q-body { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.dfbs-topic-q-meta { margin: 0; font-size: 12.5px; color: var(--c-text-3); }
.dfbs-topic-q-meta a { color: var(--c-brand); text-decoration: none; font-weight: 600; }
.dfbs-tax-pulse { margin: 0 0 20px; }

/* owner pulse card */
.dfb-pulse { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px 18px; }
.dfbs-sidebox--pulse { padding: 0; border: 0; background: none; }
.dfbs-tax-pulse .dfb-pulse, .dfbs-block .dfb-pulse { border: 1px solid var(--c-border); }
.dfb-pulse-kicker { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 4px; }
.dfb-pulse-q { margin: 0 0 12px; font-size: 15.5px; }
.dfb-pulse-opts { display: flex; flex-direction: column; gap: 8px; }
.dfb-pulse-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 10px 14px; border: 1px solid var(--c-border-2); border-radius: 10px; background: var(--c-surface); font: inherit; font-size: 14px; cursor: pointer; }
.dfb-pulse-opt:hover:not(.is-done) { border-color: var(--c-brand); }
.dfb-pulse-opt.is-done { cursor: default; }
.dfb-pulse-opt.is-mine { border-color: var(--c-brand); font-weight: 700; }
.dfb-pulse-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--c-brand-light); transition: width .5s ease; z-index: 0; }
.dfb-pulse-label, .dfb-pulse-pct { position: relative; z-index: 1; }
.dfb-pulse-pct { font-weight: 700; font-size: 12.5px; color: var(--c-text-2); }
.dfb-pulse-meta { margin-top: 10px; font-size: 12px; color: var(--c-text-3); }

/* ── Dog pages (v1.4) ──────────────────────────────────────────────────── */
.dfbs-dogpage { padding: 16px 0 32px; }
.dfbs-doghero { display: grid; gap: 22px; margin: 8px 0 22px; align-items: center; }
@media (min-width: 720px) { .dfbs-doghero { grid-template-columns: 260px minmax(0, 1fr); } }
.dfbs-dog-photo { width: 100%; border-radius: 18px; border: 1px solid var(--c-border); object-fit: cover; aspect-ratio: 1; }
.dfbs-doghero-main h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.dfbs-dog-lede { color: var(--c-text-2); font-weight: 600; margin: 0 0 4px; }
.dfbs-dog-meta { color: var(--c-text-3); font-size: 13px; margin: 0 0 14px; }
.dfbs-dog-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dfbs-dog-bowl { max-width: 360px; }
.dfbs-dog-journey, .dfbs-dog-peers { list-style: none; margin: 0; padding: 0; }
.dfbs-dog-journey li, .dfbs-dog-peers li { padding: 8px 0; border-bottom: 1px solid var(--c-border); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dfbs-dog-journey li:last-child, .dfbs-dog-peers li:last-child { border-bottom: 0; }
.dfbs-dog-journey a, .dfbs-dog-peers a { color: var(--c-brand); font-weight: 700; text-decoration: none; }
.dfbs-dog-review-for { margin: 12px 0 2px; font-size: 13px; color: var(--c-text-2); }
.dfbs-dog-review-for a { color: var(--c-brand); font-weight: 600; }
.dfbs-join-band--inline { border-radius: 18px; }

/* ── Guides hub (v1.4.1) ───────────────────────────────────────────────── */
.dfbs-guides-list { max-width: 760px; padding-bottom: 36px; }
.dfbs-guide-card { padding: 22px 0; border-bottom: 1px solid var(--c-border); }
.dfbs-guide-card:last-child { border-bottom: 0; }
.dfbs-guide-card h2 { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -.01em; }
.dfbs-guide-card h2 a { color: var(--c-text); text-decoration: none; }
.dfbs-guide-card h2 a:hover { color: var(--c-brand); }
.dfbs-guide-lede { margin: 0 0 8px; color: var(--c-text-2); font-size: 15.5px; line-height: 1.55; }
.dfbs-guide-meta { margin: 0; font-size: 12.5px; color: var(--c-text-3); }
