/* toolkit-home.css: the Toolkit home, design A "One Box" (toolkit-home.js, Ryan 2026-11-10).
   Colors come from the portal v2 tokens (--text, --muted, --border, --u2-*); the soft tile tints
   are the iPhone app's "Soft tints" (fellowship-app/src/lib/theme.ts), light and dark, every ink
   passing AA on its tint. Every class starts with tkh. */
html.u2 {
  --tkh-orange-bg: #FFEBE3; --tkh-orange-ink: #B7351A; --tkh-lime-bg: #F5F7CF; --tkh-lime-ink: #5A5F12;
  --tkh-pink-bg: #FFE8F5; --tkh-pink-ink: #8A2E78; --tkh-lav-bg: #EDECFF; --tkh-lav-ink: #45449A;
  --tkh-rose-bg: #F9E8EA; --tkh-rose-ink: #602D36; --tkh-mag-bg: #FBE3F7; --tkh-mag-ink: #8E2A7E;
  --tkh-warn-bg: #FCEDE8; --tkh-warn-line: #F0B8A8; --tkh-warn-text: #9E2A14;
  --tkh-hit-bg: #F5F7CF; --tkh-hit-line: #C9CF4E;
}
html.u2[data-theme="dark"] {
  --tkh-orange-bg: #33170F; --tkh-orange-ink: #FF9B7A; --tkh-lime-bg: #262810; --tkh-lime-ink: #E1E782;
  --tkh-pink-bg: #331629; --tkh-pink-ink: #FFB8E2; --tkh-lav-bg: #1D1C38; --tkh-lav-ink: #C5C4FF;
  --tkh-rose-bg: #2C171B; --tkh-rose-ink: #F2C2C9; --tkh-mag-bg: #311534; --tkh-mag-ink: #F2A4E6;
  --tkh-warn-bg: rgba(242,104,64,.13); --tkh-warn-line: rgba(242,104,64,.45); --tkh-warn-text: #F2A08C;
  --tkh-hit-bg: rgba(225,231,130,.10); --tkh-hit-line: rgba(225,231,130,.45);
}

.tkh { max-width: 880px; margin: 0 auto; padding: 6px 0 40px; color: var(--text); }
.tkh .tkhIc, .tkhDock .tkhIc { flex: none; }
.tkhSr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tkhHead { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; }
.tkhHead h1 { font: 800 44px/1.02 'EC', serif; margin: 0; color: var(--text); }

/* the box */
.tkhBox { position: relative; display: flex; align-items: center; margin: 0; }
.tkhBoxIn { display: flex; align-items: center; gap: 12px; width: 100%; height: 62px; padding: 0 56px 0 18px; border: 2px solid var(--text);
  border-radius: 18px; background: var(--bg); color: var(--text); box-shadow: var(--u2-shadow); cursor: text; }
.tkhBoxIn input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink, var(--text));
  font: 400 18px Poppins, sans-serif; padding: 0; margin: 0; box-shadow: none; }
html.u2[data-theme="dark"] .tkhBoxIn input { color: var(--text); }
.tkhBoxIn input::placeholder { color: var(--muted); opacity: 1; }
.tkhBoxIn input::-webkit-search-cancel-button { display: none; }
.tkhBoxIn:focus-within { box-shadow: 0 0 0 4px var(--u2-ring), var(--u2-shadow); }
.tkhClear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--u2-surf); color: var(--text); cursor: pointer; }

/* the moments (ready-made searches) */
.tkhMoments { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; max-width: none; }
.tkhMo { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--text); font: 500 14px Poppins, sans-serif; cursor: pointer; }
.tkhMo:hover { border-color: var(--text); }
.tkhMo.is-on { background: var(--u2-chipOn); color: var(--u2-chipOnText); border-color: var(--u2-chipOn); }

.tkhBody { margin-top: 26px; }
.tkhCols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tkhCard h2, .tkhBrowse h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 13px Poppins, sans-serif; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); }
.tkhNone { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 6px 0 0; max-width: 46ch; }
.tkhList { display: flex; flex-direction: column; }
.tkhRow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 6px; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; border-radius: 0; }
.tkhRow:hover { background: var(--u2-surf); }
.tkhRow > .tkhIc:last-child { color: var(--muted); }
.tkhRowB { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tkhRowB b { font-weight: 600; color: var(--ink, var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.u2[data-theme="dark"] .tkhRowB b { color: var(--text); }
.tkhRowB small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkhTile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tkhTile.sm { width: 22px; height: 22px; border-radius: 6px; }
.tkhTile.t-orange { background: var(--tkh-orange-bg); color: var(--tkh-orange-ink); } .tkhTile.t-lime { background: var(--tkh-lime-bg); color: var(--tkh-lime-ink); }
.tkhTile.t-pink { background: var(--tkh-pink-bg); color: var(--tkh-pink-ink); } .tkhTile.t-lav { background: var(--tkh-lav-bg); color: var(--tkh-lav-ink); }
.tkhTile.t-rose { background: var(--tkh-rose-bg); color: var(--tkh-rose-ink); } .tkhTile.t-mag { background: var(--tkh-mag-bg); color: var(--tkh-mag-ink); }
.tkhBadge { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tkh-lime-bg); color: var(--tkh-lime-ink); flex: none; }
.tkhBrowse { margin-top: 30px; }
.tkhBGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tkhB { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--text); min-width: 0; }
.tkhB:hover { border-color: var(--text); }
.tkhB b { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.tkhB em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* results */
.tkhResults { display: flex; flex-direction: column; gap: 22px; }
.tkhAns { border-radius: 18px; padding: 18px 20px 16px; background: var(--bg); box-shadow: 0 0 0 2px var(--tkh-hit-line), var(--u2-shadow); }
.tkhAnsH { position: relative; padding-right: 110px; }
.tkhKick { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 12px Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tkhAnsH h2 { font: 800 30px/1.05 'EC', serif; margin: 6px 0 0; color: var(--text); }
.tkhSub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.tkhPin { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); font: 600 13px Poppins, sans-serif; cursor: pointer; }
.tkhPin.is-on { background: var(--tkh-lime-bg); color: var(--tkh-lime-ink); border-color: transparent; }
.tkhLoad { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.tkhSeg { display: flex; gap: 4px; margin: 14px 0 4px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; }
.tkhSeg::-webkit-scrollbar { display: none; }
.tkhSegB { flex: none; min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 13px Poppins, sans-serif; cursor: pointer; }
.tkhSegB.is-on { background: var(--u2-chipOn); color: var(--u2-chipOnText); }
.tkhG { padding: 10px 0; border-top: 1px solid var(--border); }
.tkhSeg + .tkhG, .tkhAnsH + .tkhG { border-top: 0; }
.tkhGK { display: flex; align-items: center; gap: 6px; margin: 0 0 3px; font: 700 13px Poppins, sans-serif; color: var(--text); }
.tkhGV { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink, var(--text)); max-width: 72ch; }
html.u2[data-theme="dark"] .tkhGV { color: var(--text); }
.tkhAns > .tkhGV { margin-top: 10px; }
.tkhG.is-warn { background: var(--tkh-warn-bg); border: 1px solid var(--tkh-warn-line); border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
.tkhG.is-warn .tkhGK { color: var(--tkh-warn-text); }
.tkhG.is-hit { background: var(--tkh-hit-bg); border: 1px solid var(--tkh-hit-line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.tkhCodes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tkhCode { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: 600 13px ui-monospace, Menlo, monospace; cursor: pointer; }
.tkhCode.is-done { background: var(--tkh-lime-bg); color: var(--tkh-lime-ink); border-color: transparent; }
.tkhCode.is-11 { font-family: Poppins, sans-serif; font-weight: 500; color: var(--muted); cursor: default; }
.tkhChips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tkhChip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--text); font: 500 14px Poppins, sans-serif; text-decoration: none; cursor: pointer; }
.tkhChip:hover { border-color: var(--text); }
.tkhSteps { margin: 10px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.55; }
.tkhBubble { border-radius: 14px; padding: 10px 14px; margin-top: 10px; }
.tkhBubble small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tkhBubble p { margin: 2px 0 0; font-size: 15px; line-height: 1.55; }
.tkhBubble.is-pt { background: var(--u2-surf); margin-right: 40px; }
.tkhBubble.is-you { background: var(--tkh-lime-bg); color: var(--ink, #1A1A1A); margin-left: 40px; }
html.u2[data-theme="dark"] .tkhBubble.is-you { color: var(--text); }
.tkhActs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tkhBtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 0; border-radius: 12px;
  background: var(--u2-btn); color: #FFFFFF; font: 600 14px Poppins, sans-serif; text-decoration: none; cursor: pointer; }
.tkhBtn:hover { background: var(--u2-btnHover); color: #FFFFFF; }
.tkhBtn.is-2 { background: var(--u2-surf); color: var(--text); border: 1px solid var(--border); }
.tkhBtn.is-2:hover { background: var(--u2-raised); color: var(--text); }
.tkhBtn[disabled] { opacity: .6; cursor: progress; }
.tkhGroup h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font: 600 13px Poppins, sans-serif; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.tkhGroup h3 em { font-style: normal; font-weight: 500; }
.tkhMore { min-height: 40px; padding: 8px 6px; border: 0; background: none; color: var(--u2-link); font: 600 14px Poppins, sans-serif; cursor: pointer; }
.tkhEmpty { color: var(--muted); font-size: 15px; line-height: 1.6; }
.tkhEmpty p { margin: 0 0 4px; }
.tkhPanel { display: flex; flex-direction: column; gap: 8px; }
.tkhHint { margin: 0; color: var(--muted); font-size: 15px; }
.tkhAlert { margin: 8px 0 0; color: var(--tkh-warn-text); font-size: 14px; font-weight: 500; }

/* the slim bar on every other Toolkit page (it replaces the 11-icon row) */
.tkhDockIn { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; max-width: none; }
.tkhHomeL { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px 0 4px; border-radius: 10px; color: var(--text);
  font: 600 15px Poppins, sans-serif; text-decoration: none; white-space: nowrap; }
.tkhHomeL:hover { background: var(--u2-surf); }
.tkhMini { flex: 1; max-width: 420px; margin: 0; }
.tkhMini label { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--muted); cursor: text; }
.tkhMini input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 15px Poppins, sans-serif; padding: 0; margin: 0; box-shadow: none; }
.tkhMini input::placeholder { color: var(--muted); opacity: 1; }
.tkhMini label:focus-within { border-color: var(--text); }

@media (max-width: 899px) {
  .tkh { padding-top: 0; }
  .tkhHead h1 { font-size: 32px; }
  .tkhBoxIn { height: 54px; padding-left: 14px; border-radius: 16px; }
  .tkhBoxIn input { font-size: 16px; }
  .tkhMoments { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px; }
  .tkhMoments::-webkit-scrollbar { display: none; }
  .tkhMo { flex: none; }
  .tkhCols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tkhBGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tkhAns { padding: 16px 14px 14px; }
  .tkhAnsH { padding-right: 0; }
  .tkhPin { position: static; margin: 0 0 6px; }
  .tkhAnsH h2 { font-size: 26px; }
  .tkhBubble.is-pt { margin-right: 16px; } .tkhBubble.is-you { margin-left: 16px; }
  .tkhMini { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .tkh * { transition: none !important; } }

/* Wide screens: "Wider One Box" (Ryan, 2026-11-11). The box sits beside the title, the Browse tiles come
   first and list three real entries each, and Pinned and Recent sit side by side underneath.
   Narrow screens keep the layout above (the entry lists stay hidden). */
.tkhBW { display: flex; flex-direction: column; min-width: 0; }
.tkhBW > .tkhB { flex: 1; }
.tkhBEnts { display: none; }
.tkhShelves { display: flex; flex-direction: column; }
@media (min-width: 1200px) {
  html.u2.u2WidePage .tkh { max-width: 1480px; }
  html.u2.u2WidePage .tkhTop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: end; }
  html.u2.u2WidePage .tkhTop .tkhHead { margin: 0; }
  html.u2.u2WidePage .tkhBrowse { order: -1; margin-top: 0; }
  html.u2.u2WidePage .tkhCols { margin-top: 26px; }
  html.u2.u2WidePage .tkhCard { padding: 16px 18px 10px; border-radius: 16px; background: var(--u2-surf); }
  html.u2.u2WidePage .tkhCard .tkhRow:last-child { border-bottom: 0; }
  html.u2.u2WidePage .tkhBGrid { gap: 12px; }
  html.u2.u2WidePage .tkhBW { border: 1px solid var(--border); border-radius: 16px; padding: 6px 6px 12px; }
  html.u2.u2WidePage .tkhBW:hover { border-color: var(--u2-ring); }
  html.u2.u2WidePage .tkhBW > .tkhB { border: 0; flex: none; }
  html.u2.u2WidePage .tkhBW > .tkhB b { font-size: 15px; }
  html.u2.u2WidePage .tkhBEnts { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
  html.u2.u2WidePage .tkhBEnts a { display: block; padding: 3px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font-size: 13px; color: var(--muted); text-decoration: none; }
  html.u2.u2WidePage .tkhBEnts a:hover { color: var(--text); text-decoration: underline; }
  html.u2.u2WidePage .tkhResults { max-width: 1040px; }
}
