/* =========================================================
   WHAT ARE YOU BUILDING? the search box (Systems and What fits here)
   It takes the colour of the page it sits on.
   ========================================================= */

.bsearch { position: relative; max-width: 760px; }
.bs-label { display: block; margin-bottom: 0.4rem; font-size: 0.7rem; letter-spacing: 0.2rem; text-transform: uppercase; opacity: 0.75; }
.bsearch .bs-input {
    width: 100%;
    padding: 0.8rem 0.2rem;
    font: inherit;
    font-size: 1.15rem;
    color: inherit;
    background: transparent;
    border: none;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
}
.bsearch .bs-input:focus { outline: none; border-bottom-width: 3px; }
.bsearch .bs-input::placeholder { color: inherit; opacity: 0.45; }

.bs-list { list-style: none; margin-top: 0.4rem; border: 1px solid currentColor; }
.bs-list[hidden] { display: none; }
.bs-list li { padding: 0.65rem 0.8rem; font-size: 0.92rem; line-height: 1.45; cursor: pointer; }
.bs-list li + li { border-top: 1px solid currentColor; }
.bs-list li.on, .bs-list li:hover { text-decoration: underline; text-underline-offset: 0.2rem; }
.bs-list small { display: inline-block; margin-left: 0.4rem; padding: 0 0.4rem; border: 1px solid currentColor; font-size: 0.72rem; }

.bs-none { margin-top: 0.6rem; font-size: 0.9rem; }
.bs-none[hidden] { display: none; }
.bsearch .bs-quick { margin-left: 0.3rem; padding: 0; border: none; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2rem; cursor: pointer; }

.bs-picked { margin-top: 0.7rem; font-size: 0.88rem; line-height: 1.5; }

/* quick picks and Browse by use */
.bs-quicks { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.bs-chip, .bs-use { padding: 0.4rem 0.8rem; font: inherit; font-size: 0.85rem; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.bs-use[aria-pressed="true"] { background: currentColor; }
.bs-use[aria-pressed="true"] { color: var(--ask-flip, #111); }
.bs-browse-link { margin-top: 0.9rem; padding: 0; border: none; background: none; color: inherit; font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 0.2rem; cursor: pointer; }
.bs-browse[hidden] { display: none; }
.bs-uses, .bs-words { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.bs-browse .bs-words { max-height: 14rem; overflow: auto; }

/* the three questions */
.ask { max-width: 760px; margin-top: 0.8rem; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ask-chip { display: inline-flex; gap: 0.5rem; align-items: baseline; padding: 0.3rem 0.7rem; font: inherit; font-size: 0.8rem; color: inherit; background: transparent; border: 1px dashed currentColor; opacity: 0.6; cursor: pointer; }
.ask-chip span { font-size: 0.65rem; letter-spacing: 0.15rem; text-transform: uppercase; }
.ask-chip.has { border-style: solid; opacity: 1; }
.ask-chip.now { opacity: 1; border-width: 2px; }
.ask-chip:disabled { cursor: default; }
.ask-sentence { min-height: 1.6rem; margin: 0.9rem 0 0.2rem; font-size: 1.05rem; line-height: 1.5; }
.ask-panel { min-height: 11rem; padding-top: 0.6rem; animation: ask-in 0.25s ease both; }
.ask-panel.from-left { animation-name: ask-in-l; }
@keyframes ask-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes ask-in-l { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ask-panel { animation: none; } }
.ask-q { font-size: 1.35rem; line-height: 1.3; margin-bottom: 0.6rem; }
.ask-q i { font-style: normal; font-size: 0.75rem; letter-spacing: 0.15rem; margin-right: 0.6rem; opacity: 0.7; }
.ask .ask-input { width: 100%; padding: 0.8rem 0.2rem; font: inherit; font-size: 1.15rem; color: inherit; background: transparent; border: none; border-bottom: 2px solid currentColor; border-radius: 0; }
.ask .ask-input:focus { outline: none; border-bottom-width: 3px; }
.ask-says { margin-top: 0.8rem; font-size: 0.88rem; line-height: 1.5; min-height: 1.3rem; }
.ask-date { display: flex; flex-wrap: wrap; gap: 1rem; }
.ask-date label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.7rem; letter-spacing: 0.15rem; text-transform: uppercase; }
.ask-date select { min-width: 9rem; padding: 0.55rem 0.5rem; font: inherit; font-size: 1rem; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 0; text-transform: none; letter-spacing: 0; }
.ask-date select option { color: #111; }
.ask-warn { margin-top: 0.7rem; font-size: 0.88rem; }
.ask-warn[hidden] { display: none; }
.ask-nav { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.ask-nav button { padding: 0.55rem 1.4rem; font: inherit; font-size: 0.9rem; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.ask-nav .ask-next:not(:disabled) { background: currentColor; color: var(--ask-flip, #111); }
.ask-nav .ask-next:disabled { opacity: 0.35; cursor: not-allowed; }
.ask-nav [hidden] { display: none; }
@media (max-width: 600px) { .ask-q { font-size: 1.15rem; } .ask-panel { min-height: 0; } .ask-date select { min-width: 7.5rem; } }

/* the small questions: chips with the assumed answer on them */
.sm-group { margin-top: 1rem; }
.sm-group h4 { font-size: 0.7rem; letter-spacing: 0.2rem; text-transform: uppercase; opacity: 0.75; font-weight: 400; margin-bottom: 0.4rem; }
.sm-lead { font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.5rem; }
.sm-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.sm { position: relative; max-width: 100%; }
.sm-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.45rem 0.9rem 0.45rem 0.7rem; min-width: 8rem; max-width: 100%; text-align: left; font: inherit; color: inherit; background: transparent; border: 1px dashed currentColor; cursor: pointer; }
.sm-chip small { font-size: 0.72rem; opacity: 0.75; }
.sm-chip b { font-weight: 400; font-size: 0.98rem; }
.sm-chip em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.12rem; text-transform: uppercase; opacity: 0.65; }
.sm.g .sm-chip { border-style: solid; padding-right: 2rem; }
.sm.n .sm-chip { border-style: dotted; opacity: 0.75; }
.sm-x { position: absolute; top: 0.2rem; right: 0.25rem; width: 1.4rem; height: 1.4rem; padding: 0; font: inherit; line-height: 1; color: inherit; background: transparent; border: none; cursor: pointer; }
.sm-x:hover { text-decoration: underline; }
.sm-pick { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.4rem; padding: 0.5rem; border: 1px solid currentColor; }
.sm-pick[hidden] { display: none; }
.sm-pick .bs-chip.is { background: currentColor; color: var(--ask-flip, #111); }
.sm-pick input, .sm-pick select { padding: 0.4rem; font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 0; max-width: 9rem; }
.sm-pick select option { color: #111; }
.sm-unit { font-size: 0.85rem; }
.sm-ok { padding: 0.4rem 0.9rem; font: inherit; font-size: 0.85rem; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.sm-more-link { margin-top: 1rem; padding: 0; border: none; background: none; color: inherit; font: inherit; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 0.2rem; cursor: pointer; }
.sm-more[hidden] { display: none; }
.sm-checks .sm { flex: 1 1 100%; }
.sm-checks .sm-chip { width: 100%; }
.sm-help { margin: 0.3rem 0 0.4rem; font-size: 0.8rem; line-height: 1.5; opacity: 0.8; }
.sm-help span { display: block; }
.ask-skip { padding: 0.55rem 1.4rem; font: inherit; font-size: 0.9rem; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.ask-skip[hidden] { display: none; }
.ask-panel { min-height: 0; }

/* mixed use: What is in it? */
.mix-wrap { display: flex; gap: 1rem; align-items: stretch; margin-top: 0.6rem; }
.mix-bar { display: flex; flex-direction: column-reverse; width: 4.2rem; min-height: 12rem; flex: none; border: 1px solid currentColor; }
.mix-bar i { display: flex; align-items: center; justify-content: center; min-height: 1.3rem; overflow: hidden; border-top: 1px solid currentColor; font-style: normal; font-size: 0.62rem; line-height: 1.1; text-align: center; padding: 0 0.1rem; }
.mix-bar i:first-child { border-top: none; }
.mix-bar i:nth-child(odd) { background: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 5px); }
.mix-bar i span { background: var(--paper, #fff); color: var(--ink, #111); padding: 0 0.15rem; }
.mix-uses { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.mix-use { padding: 0.7rem; border: 1px dashed currentColor; }
.mix-use .bsearch .bs-input { font-size: 1rem; padding: 0.4rem 0.2rem; }
.mix-share { display: block; margin-top: 0.6rem; font-size: 0.8rem; }
.mix-share b { font-weight: 400; margin-left: 0.4rem; }
.mix-share input[type=range] { display: block; width: 100%; height: 2rem; margin: 0.2rem 0 0; accent-color: currentColor; touch-action: pan-y; }
.mix-sits { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.mix-remove, .mix-add, .mix-single { margin-top: 0.6rem; padding: 0.35rem 0.8rem; font: inherit; font-size: 0.82rem; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.mix-single { border: none; padding-left: 0; text-decoration: underline; text-underline-offset: 0.2rem; display: block; }
.mix-derived { list-style: none; margin-top: 0.8rem; font-size: 0.85rem; line-height: 1.5; }
.mix-derived li { margin-top: 0.3rem; }
.mix-derived em { font-style: normal; font-size: 0.6rem; letter-spacing: 0.12rem; text-transform: uppercase; opacity: 0.7; margin-right: 0.3rem; }
.mix-link { display: block; }
@media (max-width: 600px) { .mix-bar { width: 3rem; } .mix-bar i span { font-size: 0.55rem; } }
