/* "How it works" on the front page: the three steps, then the rest, as
   cards on a pale blue band. The mini demos copy the directory's real
   controls (colors, shapes, labels) so they look like what users will tap.
   Colors match frontend/styles/tokens.css. Phone sizes follow the
   owner's iPhone mockup; from 900 px wide, the desktop mockup. */
.how {
  --how-blue: #33658a;
  --how-navy: #284a63;
  --how-ink: #2f4858;
  --how-soft: rgba(47, 72, 88, 0.72);
  --how-yellow: #f6ae2d;
  --how-cyan: #55dde0;
  --how-cyan-dark: #3ec9cc;
  --how-orange: #f26419;
  --how-rule: rgba(51, 101, 138, 0.18);
  --how-band: #f2f7fb;

  width: 100%;
  padding: 44px 20px 48px;
  background: var(--how-band);
  scroll-margin-top: 64px;
}
.how-inner {
  max-width: 1236px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.how-heading {
  font-family: "Work Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--how-navy);
  text-align: center;
  margin-bottom: 26px;
}
.how-heading::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 10px auto 0;
  background: var(--how-yellow);
  border-radius: 3px;
}
/* "See more features": closed at first (a <details> box). */
.how-more { margin-top: 32px; }
.how-more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 48px;
  margin: 0 auto 4px;
  padding: 8px 10px 8px 22px;
  border: 1px solid rgba(40, 74, 99, 0.35);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(47, 72, 88, 0.08);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap */
  font-family: "Work Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--how-navy);
}
.how-more-toggle::-webkit-details-marker { display: none; }
.how-more-toggle:focus-visible { outline: 2px solid var(--how-blue); outline-offset: 4px; border-radius: 6px; }
.how-more-toggle:hover { border-color: var(--how-navy); }
/* A round orange button with a thick down arrow; it turns over when open. */
.how-more-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--how-orange);
  color: #ffffff;
  transition: transform 0.2s ease;
}
.how-more-arrow svg { width: 20px; height: 20px; }
.how-more[open] .how-more-arrow { transform: rotate(180deg); }
.how-more[open] > .how-grid { margin-top: 16px; }

.how-grid { display: grid; gap: 16px; }

.how-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  background: #ffffff;
  border: 1px solid var(--how-rule);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(47, 72, 88, 0.08);
}
.how-card--center { position: relative; align-items: center; text-align: center; }
/* A tilted yellow "Free" sticker hanging off the corner of each of the three steps. */
.how-free {
  position: absolute;
  top: -10px;
  right: -6px;
  padding: 4px 12px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  background: var(--how-yellow);
  box-shadow: 0 3px 8px rgba(47, 72, 88, 0.22);
  transform: rotate(8deg);
  font-family: "Work Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--how-navy);
}

.how-card-title {
  font-family: "Work Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  color: var(--how-navy);
}
.how-text { font-size: 18px; line-height: 1.5; color: var(--how-soft); }
.how-text b { color: var(--how-ink); }
/* The three steps' text is set in short lines (<br> in index.html); bigger
   on phones, where Safari made 14px hard to read. */
.how-card--center .how-text { font-size: 20px; }
/* No icons on the three steps: the title starts just under the sticker,
   bigger than the other cards' titles. */
.how-card--center { padding-top: 46px; padding-bottom: 34px; }
.how-card--center .how-card-title { font-size: 28px; color: var(--how-orange); }

/* The session's three words, as the slot machine gives them. */
/* Shrinks to the text's widest line; the word boxes then fill that width. */
.how-fit { display: flex; flex-direction: column; gap: inherit; max-width: 100%; }
/* Tags don't widen the box: they fit inside the text's width. */
.how-fit .how-chips { width: 0; min-width: 100%; gap: 6px; }
.how-fit .how-chip { padding: 4px 9px; font-size: 13px; white-space: nowrap; }
/* The Tags card's orange tags match those blue tags' size. */
.how-more .how-chips { gap: 6px; }
.how-more .how-chip { padding: 4px 9px; font-size: 13px; }
.how-key {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
/* Card one's key pill: a cyan border, rounded like the tags on card three. */
.how-card--center .key-pill { border: 1.5px solid var(--color-cyan); border-radius: 999px; }
/* One word: blue outline and text on the white card. */
.how-key-word {
  min-width: 0;
  padding: 4px 6px;
  border-radius: 4px;
  border: 2px solid var(--how-blue);
  /* The tags' light cyan behind each word. */
  background: var(--tag-bg);
  color: var(--how-blue);
  font-family: "Work Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "+ Create" card: the header's "New lists" pill and the add circle's taps. */
/* "See more features" titles in the palette's blue. */
.how-more .how-card-title { color: var(--how-blue); }
.how-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.how-taps { list-style: none; }
.how-taps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 18px;
  color: var(--how-ink);
}
.how-taps li + li { border-top: 1px solid var(--how-rule); }


/* Small uppercase button, the site's label style. */
.how-newlist {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Personal tags are orange, like everything that's yours. */
.how-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.how-chips--center { justify-content: center; }
.how-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--how-orange);
  background: rgba(242, 100, 25, 0.14);
  color: var(--how-ink);
  font-size: 15px;
}
/* The admin's directory tags: the site's blue tag colors. */
.how-chip--directory {
  border-color: var(--tag-border);
  background: var(--tag-bg);
  text-decoration: none;
}

/* The add circle, in its three states. */
.how-circle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--how-blue);
  font-size: 17px;
  font-weight: 500;
  color: var(--how-blue);
}
.how-circle svg { width: 14px; height: 14px; }
.how-circle--queued { background: var(--how-yellow); border-color: var(--color-yellow-dark); color: var(--how-ink); }
.how-circle--primary { background: var(--how-cyan); border-color: var(--how-cyan-dark); color: var(--how-ink); }

/* The header's yellow "New list" pill with its queue count. */
.how-newlist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 12px;
  border-radius: 999px;
  background: var(--how-yellow);
  color: var(--how-ink);
}
/* Same height as the tags (25px): smaller text and count. */
.how-newlist--inline { margin-left: 4px; padding: 3px 3px 3px 10px; gap: 6px; font-size: 11px; vertical-align: middle; }
.how-newlist--inline .how-count { min-width: 19px; height: 19px; }
.how-nowrap { white-space: nowrap; }
.how-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  letter-spacing: 0;
}

/* Lists card: "Your lists" as the lists page shows them; the check marks
   the primary list. */
.how-lists {
  align-self: stretch;
  border: 1px solid var(--divider-light);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.how-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  font-size: 16px;
  color: var(--how-ink);
}
.how-list-row + .how-list-row { border-top: 1px solid var(--divider-light); }
.how-list-row--primary {
  background: var(--accent-pale);
  box-shadow: inset 3px 0 0 var(--how-blue);
}
.how-list-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}
.how-list-row--primary .how-list-check {
  border-color: var(--how-cyan);
  background: var(--how-cyan);
}
.how-list-name { flex: 1; min-width: 0; font-weight: 700; }
.how-list-count { font-weight: 600; color: var(--how-soft); }

/* Notes card: a listing's notes as the listing shows them; each note has
   the orange line under it and the × on the right. */
.how-notes {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.how-notes-label {
  margin-bottom: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--how-blue);
}
.how-notes-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--how-orange);
  font-size: 16px;
  color: var(--how-ink);
}
.how-notes-x { flex: none; padding: 0 4px; font-size: 18px; line-height: 1; }
.how-notes-box {
  margin-top: 10px;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  /* Placeholder text: very light, small and italic, like an empty field. */
  font-size: 12px;
  font-style: italic;
  color: #c3cad0;
}
.how-notes-add {
  align-self: flex-end;
  margin-top: 8px;
  /* 25px tall, like the tags. */
  padding: 0 12px;
  line-height: 25px;
  border-radius: 4px;
  background: var(--how-cyan);
  font-weight: 700;
  font-size: 13px;
  color: var(--how-ink);
}

/* Track card: one approved row from Session info's "Sent for admin
   review" list (colors from styles/session-info.css). */
.how-track { display: flex; flex-direction: column; text-align: left; }
.how-track-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.how-track-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 16px; color: var(--ink); }
.how-track-listing { font-weight: 700; }
.how-track-section { font-weight: 600; color: var(--color-blue); }
.how-track-status {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 10px;
  border: 1px solid var(--color-status-phone-dark);
  border-radius: 999px;
  background: rgba(58, 171, 106, 0.16);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-status-phone-dark);
}
.how-track-x {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
}

/* Contribute card: the directory's "Do you want to share this?" pop-up,
   as a still picture (colors from styles/confirm-dialog.css). */
.how-dialog {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border: 1px solid var(--how-rule);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.how-dialog-title {
  margin-bottom: 6px;
  font-family: "Work Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.how-dialog-message { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.how-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.how-dialog-cancel,
.how-dialog-ok {
  /* 25px tall with the border, like the tags. */
  padding: 0 10px;
  line-height: 23px;
  border-radius: 6px;
  font-family: "Work Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.how-dialog-cancel { border: 1px solid var(--rule-strong); color: var(--ink); }
/* The pop-up's red button (confirm-dialog.css .confirm-ok). */
.how-dialog-ok { border: 1px solid #b3261e; background: #c62828; color: #ffffff; }


@media (min-width: 700px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .how { padding: 64px 48px 56px; }
  .how-heading { margin-bottom: 40px; font-size: clamp(42px, 4.2vw, 56px); }
  .how-heading::after { width: 64px; height: 6px; margin-top: 8px; }
  .how-more { margin-top: 44px; }
  .how-more-toggle { font-size: clamp(24px, 2.4vw, 30px); }
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .how-card { gap: 14px; padding: 40px 26px 22px; }
  .how-free { top: -12px; right: -8px; padding: 5px 14px; font-size: 15px; }
  .how-card-title { font-size: clamp(24px, 2.2vw, 30px); }
  .how-card--center { padding-top: 58px; padding-bottom: 40px; }
  .how-card--center .how-card-title { font-size: clamp(26px, 2.6vw, 34px); }
  .how-text { font-size: clamp(20px, 1.9vw, 25px); }
  .how-card--center .how-text { font-size: clamp(18px, 1.6vw, 23px); }
  .how-key-word { font-size: 15px; }
  .how-create { gap: 18px; font-size: clamp(30px, 2.7vw, 36px); }
  .how-taps li { padding: 18px 4px 18px 6px; font-size: clamp(20px, 1.9vw, 25px); }
  .how-taps li + li { border-top: none; }
  .how-circle { width: 34px; height: 34px; font-size: 24px; }
  .how-circle svg { width: 17px; height: 17px; }
  .how-newlist { font-size: 15px; }
  .how-newlist { padding: 7px 7px 7px 16px; }
  .how-count { min-width: 28px; height: 28px; }
  .how-newlist--inline { padding: 3px 3px 3px 10px; font-size: 11px; }
  .how-newlist--inline .how-count { min-width: 19px; height: 19px; }
  .how-chip { font-size: 17px; }
  .how-fit .how-chip,
  .how-more .how-chip { font-size: clamp(12px, 1.02vw, 15px); }
  .how-list-row { padding: 10px 14px; font-size: 18px; }
  .how-list-check { width: 30px; height: 30px; font-size: 15px; }
  .how-notes-row { font-size: 18px; }
  .how-notes-box { font-size: 14px; }
  .how-dialog-title { font-size: 18px; }
  .how-track-text { font-size: 18px; }
  .how-track-status { font-size: 14px; }
  .how-dialog-message { font-size: 15px; }
}

/* "+ Info" card (app/index.html): a listing's rows, italic when fresh. */
.how-info .how-notes-label { margin-top: 10px; }
.how-info .how-notes-label:first-child { margin-top: 0; }
.how-info-value {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--how-orange);
  font-size: 16px;
  color: var(--how-ink);
}
.how-info-tag {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--how-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: 2px;
}
.how-info-tag--old { background: #9aa3a8; }
.how-chip.how-chip--fresh { font-style: italic; }

/* The three steps' icons (owner, 2026-10-08). */
.how-icon { width: 36px; height: 36px; margin-bottom: 10px; color: var(--how-blue); }
.how-more + .how-more { margin-top: 20px; }
/* What is private / What is public: as wide as the cards (owner, 2026-10-08). */
.how-more-toggle--full { position: relative; width: 100%; }
/* The arrow sits at the right end inside the button; the text stays centred. */
.how-more-toggle--full .how-more-arrow { position: absolute; top: 50%; right: 10px; margin-top: -16px; }
