/* ============================================================
   Brain Dump - shared styles (v1, MVP). Calm, capture-first.
   softDev23 ADHD tools. Plain CSS, no build step.
   Heading font (Nunito) loaded via the brand/suite snippet <link>.
   ============================================================ */
:root {
  --paper:       #FAF7F0;
  --surface:     #FFFFFF;
  --ink:         #2E3B33;
  --muted:       #5C6670;
  --soft-muted:  #7C868F;
  --accent:      #4F86A8;
  --accent-dark: #3A6580;
  --accent-darker:#2E5168;
  --accent-soft: #E4EEF4;
  --chip-line:   #E7E0D3;
  --border:      #E7E0D3;
  --danger:      #9C3F2C;
  --shadow:      0 1px 2px rgba(40,48,41,.04), 0 5px 16px rgba(40,48,41,.06);
  --radius:      18px;
  --radius-sm:   13px;
  --radius-pill: 999px;
  --maxw:        680px;
  --font-sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display:"Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease:        cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; }

.bd-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 18px 40px;
  font-family: var(--font-sans); color: var(--ink); line-height: 1.5;
}

/* theme integration (only matters embedded in WordPress) */
.entry-header, h1.page-title, .hero-section { display: none !important; }
.bd-wrap h1, .bd-wrap h2, .bd-wrap h3 { color: var(--ink) !important; }

/* header */
.bd-head { margin: 6px 0 18px; }
.bd-h1 { font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 5px; }
.bd-sub { color: var(--muted); font-size: 15px; margin: 0; }

/* capture box - the one thing in front of the user */
.bd-capture { display: flex; gap: 10px; align-items: flex-end; margin: 0 0 8px; }
.bd-input {
  flex: 1; min-width: 0; resize: none; overflow: hidden;
  font-family: inherit; font-size: 16px; line-height: 1.45;
  border: 1.5px solid var(--chip-line); border-radius: var(--radius-sm);
  padding: 13px 14px; min-height: 52px;
  /* the Blocksy theme styles textareas (especially on focus) with a gray fill + light
     text; force a readable white field with dark text everywhere. */
  background: var(--surface) !important; color: var(--ink) !important; -webkit-text-fill-color: var(--ink);
}
.bd-input::placeholder { color: var(--soft-muted) !important; opacity: 1; }
.bd-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface) !important; color: var(--ink) !important; }
.bd-input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; caret-color: var(--ink); }
.bd-add {
  flex: none; width: 52px; height: 50px; border: none; border-radius: var(--radius-sm);
  background: var(--accent-dark); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s var(--ease), background .15s;
}
.bd-add:hover { background: var(--accent-darker); }
.bd-add:active { transform: scale(.94); }
.bd-add svg { width: 22px; height: 22px; }
.bd-hint { font-size: 12.5px; color: var(--soft-muted); margin: 0 0 18px; padding-left: 2px; }

/* the list */
.bd-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bd-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper); border: 1px solid var(--chip-line); border-radius: var(--radius-sm);
  padding: 12px 12px 12px 14px;
}
.bd-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.bd-text { flex: 1; min-width: 0; font-size: 15.5px; overflow-wrap: anywhere; cursor: text; }
.bd-edit {
  flex: 1; min-width: 0; font-family: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--accent); border-radius: 9px; padding: 7px 9px;
}
.bd-edit:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.bd-x {
  flex: none; border: none; background: transparent; color: var(--soft-muted); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.bd-x:hover { background: #F0EBE0; color: var(--ink); }
.bd-x svg { width: 17px; height: 17px; }

/* empty state */
.bd-empty { color: var(--soft-muted); font-size: 15px; text-align: center; padding: 22px 10px; margin: 0 0 14px; }

/* footer: count + tools */
.bd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.bd-count { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-dark); font-size: 13.5px; font-weight: 600; }
.bd-count svg { width: 16px; height: 16px; }
.bd-count.is-zero { color: var(--soft-muted); font-weight: 400; }
.bd-actions { display: flex; gap: 8px; }
.bd-btn {
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--chip-line); border-radius: var(--radius-pill);
  padding: 9px 15px; cursor: pointer; min-height: 42px; transition: border-color .15s, background .15s;
}
.bd-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.bd-btn:disabled { opacity: .45; cursor: default; }
.bd-btn svg { width: 16px; height: 16px; }

/* toast */
.bd-toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: #fff; font-size: 14px; padding: 11px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9000;
}
.bd-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* screen-reader live region */
.bd-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, .bd-add, .bd-x, .bd-btn, .bd-toast { transition: none !important; animation: none !important; }
}

/* print: a clean dump sheet (hide everything but the list) */
@media print {
  body { background: #fff !important; }
  .bd-capture, .bd-hint, .bd-actions, .bd-x, .bd-toast, .entry-header, .hero-section,
  .bd-brandbar, .bd-below, .bd-pagefoot { display: none !important; }
  .bd-wrap { max-width: 100%; }
  .bd-item { border: none; background: #fff; padding: 4px 0; border-bottom: 1px solid #ddd; border-radius: 0; }
  .bd-h1 { font-size: 22px; }
}

/* ============================================================
   Enriched page sections (static HTML in the WordPress page).
   Capture tool stays first; this is the "alive" content around it.
   ============================================================ */
.bd-brandbar { max-width: var(--maxw); margin: 0 auto; padding: 16px 18px 2px; display: flex; align-items: center; gap: 9px; }
.bd-brandbar .bd-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bd-brandbar .bd-mark svg { width: 18px; height: 18px; }
.bd-brandbar .bd-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.bd-brandbar .bd-by { margin-left: auto; font-size: 12px; color: var(--muted); text-decoration: none; }
.bd-brandbar .bd-by:hover { color: var(--accent-dark); }

.bd-below { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.bd-rule { height: 1px; background: var(--chip-line); margin: 16px 0; border: 0; }
.bd-sec-h { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink) !important; margin: 0 0 3px; }
.bd-sec-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 13px; }

.bd-explain { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px 17px; }
.bd-explain h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink) !important; margin: 0 0 5px; }
.bd-explain p { font-size: 14.5px; line-height: 1.55; color: #3A4550; margin: 0; }

.bd-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 4px; }
.bd-feat { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); }
.bd-feat svg { width: 19px; height: 19px; color: var(--accent-dark); flex: none; }

.bd-suite { margin-top: 24px; }
.bd-suite-card { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--chip-line); border-radius: var(--radius-sm); padding: 13px 15px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .12s var(--ease); }
.bd-suite-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.bd-suite-card .bd-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.bd-suite-card .bd-ic.is-pluck { background: #3F6E5C; }
.bd-suite-card .bd-ic img { width: 100%; height: 100%; object-fit: cover; }
.bd-suite-card .bd-ct { flex: 1; min-width: 0; }
.bd-suite-card .bd-ct b { font-weight: 700; font-size: 15px; display: block; }
.bd-suite-card .bd-ct span { font-size: 12.5px; color: var(--muted); }
.bd-suite-card .bd-arrow { color: var(--accent-dark); flex: none; }
.bd-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.bd-app { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--chip-line); border-radius: var(--radius-sm); padding: 10px 12px; text-decoration: none; color: var(--ink); }
.bd-app:hover { border-color: var(--accent); }
.bd-app img { width: 34px; height: 34px; border-radius: 9px; flex: none; object-fit: cover; }
.bd-app b { font-weight: 600; font-size: 13px; }
.bd-app small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }

.bd-faq { margin-top: 24px; }
.bd-q { border-top: 1px solid var(--chip-line); padding: 12px 2px; }
.bd-q:last-child { border-bottom: 1px solid var(--chip-line); }
.bd-q b { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.bd-q p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.bd-pagefoot { max-width: var(--maxw); margin: 26px auto 32px; background: #F1ECE2; border-radius: var(--radius-sm); }
.bd-pagefoot-in { padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.bd-pagefoot-in a { color: var(--muted); text-decoration: none; }
.bd-pagefoot-in a:hover { color: var(--accent-dark); }
.bd-pagefoot-brand { display: flex; align-items: center; gap: 7px; }
.bd-pagefoot-brand .bd-fmark { width: 18px; height: 18px; border-radius: 5px; background: var(--accent-dark); }
