/* Liriko guides and tools: the rhyme finder, the rhyme pages and the
   songwriting guide. Built on liriko.css tokens; nothing here repaints them. */

.g-main { padding-bottom: 2rem; }
.crumbs { margin: 2rem 0 0; font-size: .875rem; color: var(--text-tertiary); }
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.g-head { padding: 1.25rem 0 .5rem; }
.g-head h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.g-head .tl { margin: .6rem 0 0; font-family: var(--font-serif); font-size: 1.25rem; color: var(--text-secondary); font-style: italic; }
.byline { margin: .9rem 0 0; font-size: .875rem; color: var(--text-tertiary); }
.byline a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }

.g-prose { max-width: var(--prose); }
.g-prose h2 { margin: 3rem 0 .75rem; font-size: clamp(1.5rem, 3.4vw, 1.875rem); letter-spacing: -.02em; line-height: 1.15; }
.g-prose h3 { margin: 2rem 0 .5rem; font-size: 1.125rem; letter-spacing: -.01em; }
.g-prose p, .g-prose li { color: #c5ccd6; font-size: 1.0625rem; }
.g-prose p { margin: 0 0 1rem; }
.g-prose ul, .g-prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.g-prose li { margin-bottom: .45rem; }
.g-prose strong { color: var(--text-primary); }
.g-prose a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.g-prose em.ex { font-family: var(--font-serif); color: var(--text-primary); }
.g-prose blockquote { margin: 1.25rem 0; padding: 1rem 1.25rem; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; font-family: var(--font-serif); font-size: 1.125rem; color: var(--text-primary); }
.g-prose blockquote p { color: inherit; margin: 0; }

.answer-box { margin: 1.5rem 0; padding: 1.25rem 1.4rem; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.answer-box p { margin: 0; color: var(--text-primary); font-size: 1.125rem; line-height: 1.55; }
.answer-box p + p { margin-top: .6rem; color: #c5ccd6; font-size: 1rem; }

/* Rhyme chips: the words are the content, so they read at body size. */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 1.25rem; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a, .chips span {
  display: inline-block; padding: .35rem .75rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 1rem; color: var(--text-primary); text-decoration: none;
}
.chips a:hover { border-color: var(--accent); }
.chips.strong a, .chips.strong span { background: rgba(41,171,226,.14); border-color: rgba(41,171,226,.45); }
.chips.dim span { color: var(--text-secondary); }
.count { font-size: .875rem; color: var(--text-tertiary); font-weight: 400; margin-left: .4rem; }

/* The finder. */
.finder { margin: 1.75rem 0 0; padding: 1.25rem; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; }
.finder form { display: flex; gap: .6rem; }
.finder input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.25rem; color: var(--text-primary);
  background: #000; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem;
}
.finder input:focus { outline: none; border-color: var(--accent); }
.finder button {
  font: inherit; font-weight: 600; font-size: 1rem; border: 0; cursor: pointer;
  background: var(--text-primary); color: #000; border-radius: 14px; padding: 0 1.2rem;
}
.finder .hint { margin: .7rem 0 0; font-size: .875rem; color: var(--text-tertiary); }
.finder .hint button { background: none; color: var(--accent-light); padding: 0; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.results { margin-top: 1.25rem; }
.results h3 { margin: 1.25rem 0 .25rem; font-size: 1rem; color: var(--text-secondary); font-weight: 600; letter-spacing: .01em; }
.results .empty { color: var(--text-secondary); }
.syl { font-family: var(--font-mono); font-size: .875rem; color: var(--text-tertiary); }

/* Tables. */
.g-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9375rem; }
.g-table th, .g-table td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.g-table thead th { color: var(--text-tertiary); font-weight: 500; font-size: .8125rem; letter-spacing: .02em; }
.g-table tbody th { font-weight: 600; color: var(--text-primary); }
.g-table td { color: #c5ccd6; }
.table-scroll { overflow-x: auto; }

/* Calls to action. */
.inline-cta { margin: 2.25rem 0; padding: 1.25rem; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }
.inline-cta img { width: 52px; height: 52px; border-radius: 12px; }
.inline-cta .t { flex: 1; min-width: 200px; }
.inline-cta .t b { display: block; color: var(--text-primary); font-size: 1.0625rem; }
.inline-cta .t span { color: var(--text-secondary); font-size: .9375rem; }
.inline-cta .btns { display: flex; gap: .5rem; flex-wrap: wrap; }

.word-index { columns: 3 9rem; column-gap: 1.5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.word-index li { margin: 0 0 .35rem; break-inside: avoid; }
.word-index a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.word-index a:hover { text-decoration-color: var(--accent); }

.more-guides { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .more-guides { grid-template-columns: 1fr 1fr; } }
.more-guides a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; }
.more-guides a b { display: block; color: var(--text-primary); }
.more-guides a span { font-size: .875rem; color: var(--text-secondary); }
.more-guides a:hover { border-color: var(--accent); }

/* Desktop visitors get a code to scan; phones get the store buttons. */
.qr { display: none; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: .9rem 1.1rem .9rem .9rem; max-width: 22rem; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.qr img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 5px; flex: none; }
.qr p { margin: 0; font-size: .875rem; line-height: 1.4; color: var(--text-secondary); }
.qr p b { display: block; color: var(--text-primary); font-size: .9375rem; }
@media (min-width: 900px) and (hover: hover) { .qr { display: flex; } }

.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: .75rem; padding: .6rem .6rem .6rem .75rem; border-radius: 18px;
  background: rgba(20,20,26,.92); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line); transform: translateY(140%); transition: transform .25s ease;
}
.dock img { width: 40px; height: 40px; border-radius: 10px; }
.dock p { margin: 0; flex: 1; font-size: .8125rem; line-height: 1.3; color: var(--text-secondary); }
.dock p b { display: block; font-size: .9375rem; color: var(--text-primary); }
.dock a.get { font-weight: 700; font-size: .9375rem; background: var(--text-primary); color: #000; padding: .6rem 1rem; border-radius: 999px; }
.dock.show { transform: none; }
@media (max-width: 760px) { .dock { display: flex; } body { padding-bottom: 84px; } }
