/* cheatsheet.life hub: page layout only (goal 3406). The look (type, buttons by role, pill tabs, #EEE tiles, list rows) is
   /css-lib/cheatsheet-life.css, ONE sheet shared with the product sites; never restyle any of it here. */
/* Every hub page 880px from 1024px, todo's width, the one every product keeps (goal 5435, Ian 2026-11-23: "The todo product has the standard width
   that I'd like all other products to stick to. I'm noticing this main site is thinner"): a plain .container, never the family's 640px .narrow. */
@media (min-width: 1024px) { .section > .container:not(.narrow):not(.is-fluid) { max-width: 880px; } }   /* beats Bulma's :not() widths */
.productName:not(.button) { font-weight: 600; }
.fieldName { flex: 0 0 7rem; color: var(--mid-gray); }
.notSet { font-style: italic; color: var(--mid-gray); }
/* Leave a comment, every page's last line: the family sheet draws it (.pageFooter, centred on every product since goal 4386). */

/* The trust barker (goal 3847): a #EEE tile at the top of the signed-in home and /profile, filled by js/www.js loadTrust only for a member
   cheatsheet.life does not trust yet. Hidden, it must not move the page: the family's tile-to-list gap stays off the profile's fields. */
#trustBarker.is-hidden + ul.rows { margin-top: 0; }

/* The home's header (goal 4369, Ian 2026-10-27): no Home pill; the page title at the left of the account pills' row, sharing it ("The Profile
   and Sign Out bar can be on the same level as the cheatsheet life title"). Too narrow for both, the pills wrap under it, at the right. */
.headerNavs > h1.homeTitle { flex: 1 1 auto; min-width: 0; margin-bottom: 0; overflow-wrap: break-word; }

/* The products' icons and the Your order grip (goal 4369, Ian: "a font-based monotone, line-drawing icon for each product, in the style found
   on the schedule product for sessions"): Lucide's (ISC, font/LICENSE-lucide.txt), cut down to the glyphs js/www.js ICONS names and the grip
   (e0eb, unused since goal 4733: the family sheet draws the grip). An icon is the TEXT of <span class="lc"> (a private-use character), drawn in
   the text colour at the size its rule gives it.
   Font holds: e082 e0eb e102 e10f e129 e134 e14a e1c2 e1d0 e1d1 e1ff e216 e29b e2f6 e304 e40d e4d2 e54e e568 e5c0 e76f */
@font-face { font-family: 'Lucide Products'; font-style: normal; font-weight: 400; font-display: block; src: url(/font/lucide-products.woff) format('woff'); }
.lc { display: inline-block; font-family: 'Lucide Products'; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; }

/* The Products list (goal 4369): the tab bar over it picks the order (Starred since goal 4737, Your order, Recently used, Alphabetical); a row =
   the grip (Your order only), the product's icon (26px, as schedule's session rows), its name (a white .button link, opening it in a new tab, the
   family arrow in it, goal 4580), its line and its star (not on Starred). Every name button is one width so the lines start on one edge, 14px from the button; on a phone the line goes
   under the button. The grip drags the row (a finger too: touch-action none) and takes the arrow keys. */
/* Since goal 5405 the bar sits under the home's Dashboard | Problems | Products tab bar (or the trust barker): the tabs' 24px gap over it. The
   Dashboard button that shared its row (goal 5176) is now that bar's Dashboard tab. */
.productSortPill { margin-top: 24px; margin-bottom: 12px; }
#productOrder { margin: 0; }
#products > li { flex-wrap: wrap; column-gap: 14px; }
#products .productIcon { flex: 0 0 28px; width: 28px; text-align: center; font-size: 26px; }
#products .productName { flex: 0 0 9rem; justify-content: flex-start; }
#products .where { flex: 1 1 12rem; min-width: 0; }
/* The grip is the family's (css-lib/cheatsheet-life.css .dragHandle, goal 4733: drawn there from this page's look, 20px on the 14px row); placed
   here: shown in Your order only, and as wide as the icon font's grip was (its dots at the left of a 1em glyph), so the icons stay where they were. */
#products .dragHandle { display: none; padding-right: 0.6833em; }
#products.byYou .dragHandle { display: inline-flex; }
#products > li.isDragging { background: var(--paper); border-radius: 12px; box-shadow: var(--card-shadow); cursor: grabbing; -webkit-user-select: none; user-select: none; }
/* The stars (goal 4737, Ian 2026-11-06: "for each row, add a star icon on the far right. By default it's highlighted, which means the star is filled
   in. Clicking on it ... now the icon is just an outline of a star"): last in the row, at its right edge; filled in the ink while starred, a grey
   outline once taken off; links' star (its path, 18px in a 32px round target that turns white under the pointer). The Starred tab (.starredOnly)
   shows neither stars nor grips. On a phone the line goes under the name, so the star stays on the name's line. */
#products .starToggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; margin-left: auto; border-radius: 18px; color: var(--mid-gray); cursor: pointer; }
#products .starToggle:hover, #products .starToggle:focus-visible { color: var(--ink); background: var(--paper); }
#products .starToggle.isStarred { color: var(--ink); }
#products .starIcon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
#products .starToggle.isStarred .starIcon { fill: currentColor; }
#products.starredOnly .starToggle { display: none; }
@media (max-width: 600px) { #products .where { order: 1; flex-basis: 100%; } }

/* The profile's names (goal 4369, Ian: "make the first and last name sneaky edits, so we don't need an edit button or edit page anymore"): each
   box reads as the row's text (no border, no fill) until pointed at (a line) or typed in (a line, the paper behind it); green for a moment once
   the account has it, red when refused (js/www.js saveName), as the village's villager cards. A row is a .field (so a refusal goes under it):
   no field gap inside the list. */
#profileFields > li.field { margin-bottom: 0; }
#profileFields .sneaky, .commentName .sneaky { flex: 1 1 10em; width: auto; min-width: 0; height: auto; padding: 2px 6px; margin-left: -7px; font: inherit; color: inherit;
  background: transparent; border: 1px solid transparent; border-radius: 6px; box-shadow: none; transition: background-color 0.4s ease, border-color 0.4s ease; }
#profileFields .sneaky::placeholder, .commentName .sneaky::placeholder { color: var(--mid-gray); font-style: italic; }
#profileFields .sneaky:hover, .commentName .sneaky:hover { border-color: var(--rule); }
#profileFields .sneaky:focus, .commentName .sneaky:focus { border-color: var(--mid-gray); background: var(--paper); }
#profileFields .sneaky.saved, .commentName .sneaky.saved { background-color: #e6f4ea; border-color: #1f8a3b; }
#profileFields .sneaky.refused, .commentName .sneaky.refused { background-color: #fdecea; border-color: var(--ember); }

/* Profile > Comments (goal 4369, as novemberpapa.org's /comments, its goal 4366): each comment its own tile; the product's host at the left of its
   first row, the date and state at the right of it; then the comment (newlines kept, a long word wraps at 390px); Shown as (a sneaky box while it
   waits); its buttons at the right, and a question's buttons in their place. Over them, the products' search box and one line of controls, the
   Show pill at the left and the Product pill (a box narrowing its drop-down) at the right, as the products' lists (links', todo's). */
.field.searchBar { margin-bottom: 16px; }
.searchBar .input { background: var(--paper); border-color: var(--hairline); }
.listControls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin-bottom: 12px; }   /* Goal 4502, Ian 2026-11-01: "The sort and filter panels will always appear like they're resting on the same level" */
.listControls .tabs { margin-bottom: 0; }
.controlPill { display: inline-flex; align-items: center; min-height: 36px; padding: 3px 12px 3px 0; background: var(--paper); border: 1px solid var(--hairline); border-radius: 18px; }
.controlPill .pillLabel { align-self: stretch; margin: 5px 10px 5px 0; padding: 0 10px 0 14px; line-height: 20px; border-right: 1px solid var(--rule); font-size: 11px; font-weight: 500; }
.sortPill { padding: 0; }
.sortPill .pillLabel { margin-top: 8px; margin-bottom: 8px; }
.sortPill .tabs { min-width: 0; }
.sortPill .tabs.pills ul { padding-left: 0; border-color: transparent; }
.productPill { margin-left: auto; gap: 6px; flex-wrap: wrap; }
.productPill .pillLabel { margin-right: 4px; }
.productPill .input { width: 7rem; height: 30px; padding-top: 0; padding-bottom: 0; background: var(--paper); border-color: var(--rule); }
.productPill .select select { height: 30px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 768px) { .productPill { flex: 1 1 100%; margin-left: 0; } }
/* /comments (goal 4407, Ian 2026-10-27: "Move the “waiting” and “private” down to the next line to make more room"): the Show tabs sit two by two,
   All | Public over Waiting | Private, so the Product pill fits beside the Show pill on one line. */
.sortPill #commentShows { display: inline-grid; grid-template-columns: repeat(2, auto); }
.commentCards > .commentCard + .commentCard { margin-top: 12px; }
.commentCard.is-hidden { display: none; }
.commentHead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.commentHost { font-weight: 600; overflow-wrap: anywhere; }
.commentMeta { margin-left: auto; text-align: right; }
.commentText { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.commentName { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0 0; }
.commentName > label { flex: 0 0 auto; }
.commentCard > .buttons { justify-content: flex-end; margin: 12px 0 0; }
.commentCard > .buttons .button { margin-bottom: 0; }
.commentConfirm .askText { margin-right: auto; }
.commentCard .refusal { flex: 1 0 100%; text-align: right; }
#noMatch { margin-top: 0; }

/* The Dashboard (goal 5176): Waiting on you and Coming up, each row as the home's product rows (the icon, the product's name as a white button
   with the family arrow, opening that product's page in a new tab), then what it is and, at the right, when. An overdue row says so in red.
   On a phone the words go under the button and the when under them. */
.dashRows { margin-bottom: 24px; }
.dashRows > li { flex-wrap: wrap; column-gap: 14px; }
.dashRows .productIcon { flex: 0 0 28px; width: 28px; text-align: center; font-size: 26px; }
.dashRows .productName { flex: 0 0 9rem; justify-content: flex-start; }
.dashRows .dashWords { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.dashRows .dashWhen { flex: 0 0 auto; margin-left: auto; text-align: right; }
.dashRows .dashWhen:empty { display: none; }   /* a row with no time (a prompt) draws no empty line under it on a phone (goal 5280) */
.dashRows > li.isLate .dashWhen { color: var(--ember); }
/* Goal 5295: a routine row = its name, then todo's Complete and Skip (family .rowActions, at the right); the name stays first on a phone, the buttons wrap under it only when it is long. */
.dashRows > li.dashRoutine .dashWords { order: 0; flex: 1 1 8rem; }
.dashNone { margin-bottom: 24px; }
/* Goal 5400: Headlines to compare is RSS's Compare: a first row (RSS's icon and link, the question, how many are left), then each headline as RSS draws
   it: its title across the row, under it its feed and day with a black Pick this one at the right (the button shares its line with words, not the title). */
.dashRows > li.dashHeadline { row-gap: 4px; }
.dashRows > li.dashHeadline .dashWords { order: 0; flex: 1 1 100%; }
.dashHeadline .articleTitle { display: block; }
.dashRows > li.dashHeadline .dashFeed { order: 1; flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
.dashRows > li.dashHeadline .dashActs { order: 2; margin-left: auto; }
.dashRows > li.dashHeadline > .refusal { order: 3; flex: 1 1 100%; }   /* a refused pick says why under the row, not between the title and its line */
.dashCompareNote { display: block; }
@media (max-width: 600px) { .dashRows .dashWords { order: 1; flex-basis: 100%; } .dashRows .dashWhen { order: 2; flex-basis: 100%; margin-left: 0; text-align: left; } }

/* The tab bar under the title (goal 5405, Ian 2026-11-23: "move the dashboard button into a tab bar below the page title. It should contain
   “dashboard”, “problems”, and “products”"): on /, /problems and the dashboard's pages, signed in; each tab a route. On the dashboard its View | Edit
   (goal 5202: "right aligned on the same level as the page title", the lit Dashboard tab now naming the page) sit at the right end of the row; too
   narrow, they wrap under it, still at the right. The Problems tab beckons while the member has ticked nothing (Ian: "a special highlight on that tab
   when it's not selected to help users navigate to it"): a highlighter yellow behind its word with a darker ring and an ink dot after it, so it reads
   as a call and never as the tab shown (#EEE). */
#homeTabs { margin-bottom: 24px; }
.homeTabsRow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 24px; }
.homeTabsRow > #homeTabs { flex: 0 1 auto; min-width: 0; margin-bottom: 0; }
.homeTabsRow > #dashTabs { flex: 0 0 auto; margin-left: auto; margin-bottom: 0; }
#homeTabs li.beckons:not(.is-active) a { background: #fff1a6; color: var(--ink); box-shadow: inset 0 0 0 1px #e2bf2e; }
#homeTabs li.beckons:not(.is-active) a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 3px; background: var(--ink); vertical-align: middle; }
/* Edit: the Your order | By product bar (as the home's), then the items; a row = (Your order) the grip and the product's icon, the item's label,
   its product or what it gathers, and its star at the right edge (the home's star). On a phone the second words go under the label. */
#dashSort { margin-top: 0; margin-bottom: 12px; }
/* The title's gap is the family's 12px on every hub page: the row breaks the family's title + subtitle pairing, so View's first section heading drops its own. */
.dashSections > h2.subtitle:first-child { margin-top: 0; }
/* Routines due (goal 5289): Include past due at the right of the section's heading (as .linkPanel's linkHead: the row takes the heading's gaps),
   then a table per time block, headed by the session's glyph (todo's Lucide subset, font/lucide-sessions.woff2), its name and its start. */
.dashSectionHead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 32px; margin-bottom: 12px; }
.dashSections > .dashSectionHead:first-child { margin-top: 0; }
.dashSectionHead h2.subtitle { margin: 0; }
.dashPastDue { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@font-face { font-family: 'Lucide Sessions'; font-style: normal; font-weight: 400; font-display: block; src: url(/font/lucide-sessions.woff2) format('woff2'); }
.lcs { display: inline-block; font-family: 'Lucide Sessions'; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; }
.dashBlockHead { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink); margin: 16px 0 8px; }
.dashBlocks > .dashBlockHead:first-child { margin-top: 0; }
.dashBlockHead .lcs { flex: 0 0 auto; font-size: 22px; }
.dashBlockNote { margin: -4px 0 8px; }
.dashBlocks .dashRows { margin-bottom: 16px; }
.dashBlocks .dashRows:last-child { margin-bottom: 24px; }
.dashEditRows > li { column-gap: 14px; }
.dashEditRows .dragHandle { padding-right: 0.6833em; }
.dashEditRows .productIcon { flex: 0 0 28px; width: 28px; text-align: center; font-size: 26px; }
.dashEditRows .dashLabel { flex: 0 0 13rem; min-width: 0; font-weight: 600; }
.dashEditRows .where { flex: 1 1 8rem; min-width: 0; }
#dashItems > li.isDragging { background: var(--paper); border-radius: 12px; box-shadow: var(--card-shadow); cursor: grabbing; -webkit-user-select: none; user-select: none; }
.dashEditRows .starToggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; margin-left: auto; border-radius: 18px; color: var(--mid-gray); cursor: pointer; }
.dashEditRows .starToggle:hover, .dashEditRows .starToggle:focus-visible { color: var(--ink); background: var(--paper); }
.dashEditRows .starToggle.isStarred { color: var(--ink); }
.dashEditRows .starIcon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dashEditRows .starToggle.isStarred .starIcon { fill: currentColor; }
.dashProductHead .productIcon { margin-right: 10px; }
@media (max-width: 600px) { .dashEditRows .dashLabel { flex: 1 1 auto; } .dashEditRows .where { order: 1; flex-basis: 100%; } }

/* Problems (goal 5405): a line saying what the page is for, the search box and one line of controls as /comments' (the Sort and Show pills at the
   left, the Product pill at the right); then a row per problem: the member's box, the problem's words, and under them, lined up with the words, its
   product (a link opening it in a new tab, the family arrow), how far the member's use of it goes and, while short of the aim, what to do next. */
.problemsIntro { margin-bottom: 12px; }
.problemFilterPill { margin-left: auto; }
.problemRows > li { align-items: flex-start; column-gap: 10px; row-gap: 4px; }
.problemRows .problemBox { flex: 0 0 auto; margin: 3px 0 0; }
.problemRows .problemWords { flex: 1 1 0; min-width: 0; font-weight: 600; cursor: pointer; }
.problemRows .problemHow { flex: 1 1 100%; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 23px; }
.problemRows .problemStatus .toProduct { margin-right: 4px; }
.problemRows .problemAdvice { overflow-wrap: anywhere; }

/* One problem's page and the Community tab (goal 5406, Ian 2026-11-23: "they can click on the problem to see a page dedicated to it ... a new page called
   "Community" that sits to the right of problems"). On /problems a ticked problem's words are a link to its page (underlined: a link in running text).
   The page: the problem's words as its heading, a tile with its box and its product, then What you can do (numbered steps), What others can do for
   you, and Ask others to help: a row per villager, neighborhood or route asked (its name, its kind, a black Remove at the right), how many see it,
   and the drop-down with a black Ask. Community: a row per ask, who asks and the problem on one line, what they ask under it, then the product. */
.problemRows a.problemLink { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.problemRows .problemWords[hidden] { display: none; }   /* the label or the link, whichever the tick does not show (an attribute, so Help's key for the link is plain) */
h2.subtitle.problemTitle { margin-top: 0; }
.problemFacts .field:not(:last-child) { margin-bottom: 8px; }
.problemFacts .checkbox { display: inline-flex; align-items: center; gap: 8px; }
.problemFacts .problemStatus .toProduct { margin-right: 4px; }
.problemSteps { margin: 0; padding-left: 1.4em; list-style: decimal; }
.problemSteps > li + li { margin-top: 6px; }
.problemOthers { overflow-wrap: anywhere; }
.askRows > li { column-gap: 12px; }
.askRows .askWho { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }   /* the name, then its kind, wrapping as words: Remove keeps the row's right end */
.askRows .askName { font-weight: 600; margin-right: 4px; }
.askRows .askName.askGone { font-weight: 400; font-style: italic; color: var(--mid-gray); }
.askRows > li > .button { flex: 0 0 auto; margin-left: auto; }
.askReach { margin-top: 8px; }
.askAddCard { margin-top: 16px; }   /* on a tile: a drop-down on the page itself has no edge (the family styles a tile's) */
.askAdd > .control:first-child { flex: 0 1 auto; min-width: 0; }
.askAdd .select, .askAdd .select select { max-width: 100%; }
#askNobody { margin-top: 8px; }
ul.rows.communityRows > li { flex-direction: column; align-items: flex-start; row-gap: 4px; }   /* the family's ul.rows > li centres a row's items */
.communityRows .askFrom, .communityRows .askHow { overflow-wrap: anywhere; }
.communityRows .askWhere .toProduct { margin-right: 4px; }
