/* Nuri from the text (lead 18.11.2026): a parent's question inside an article or a page; a tap opens Nuri's chat with it and
   sends it (assets/assistant.js). tools/tatako_postbuild.py links this file on the pages that hold such a question. A file of its
   own and not theme.css: theme.css goes into every share card and pin, and any change there draws them all again. */
:root { --nuri-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231d1b4c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3.5h12A1.5 1.5 0 0 1 17.5 5v7a1.5 1.5 0 0 1-1.5 1.5H9.5L6 16.5v-3H4A1.5 1.5 0 0 1 2.5 12V5A1.5 1.5 0 0 1 4 3.5z' fill='%23fffaf1'/%3E%3Cpath d='M6.5 7.5h7M6.5 10h4.5'/%3E%3C/svg%3E"); }

/* a line of its own between the paragraphs: the question as a parent's message, Ask Nuri at its end */
p.ask-nuri { margin: var(--s5) 0; }
.ask-nuri button {
  display: flex; align-items: center; gap: var(--s3); width: 100%; margin: 0; padding: var(--s3) var(--s4);
  font: 600 var(--text)/1.4 var(--body); color: var(--ink); text-align: start;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r); border-end-end-radius: var(--r-sharp);
  box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, transform .15s var(--ease);
}
.ask-nuri button::before, .ask-nuri-inline::after {
  content: ""; flex: none; border-radius: 50%; background: var(--tomato) var(--nuri-chat) center / 62% no-repeat;
}
.ask-nuri button::before { width: 32px; height: 32px; }
.ask-nuri-q { flex: 1; min-width: 0; }
.ask-nuri-go { flex: none; font-size: var(--small); font-weight: 700; color: var(--tomato-text); white-space: nowrap; }
.ask-nuri-go::after { content: "\00a0\2192"; }
[dir="rtl"] .ask-nuri-go::after { content: "\00a0\2190"; }
.ask-nuri button:hover { border-color: var(--ink); transform: translateY(-1px); }
@media (max-width: 560px) {
  .ask-nuri button { flex-wrap: wrap; row-gap: var(--s1); }
  .ask-nuri-q { flex-basis: calc(100% - 44px); }
  .ask-nuri-go { margin-inline-start: 44px; }
}

/* two or three questions before the last block of an article (19.11, lead 18.11.2026 13:41, P's point 8; tools/tatako_blog.py,
   with_nuri_end): the block's line to Nuri, then the questions one under another; on a phone the arrow stays at the end of its row,
   as in the block's card */
.post-body .nuri-end { margin: var(--s7) 0 0; }
.post-body .nuri-end p.nuri-end-h { margin: 0 0 var(--s3); font-size: var(--small); font-weight: 600; color: var(--ink-2); }
.post-body .nuri-end p.ask-nuri { margin: var(--s3) 0 0; }
@media (max-width: 560px) {
  .nuri-end .ask-nuri button { flex-wrap: nowrap; }
  .nuri-end .ask-nuri-q { flex-basis: auto; }
  .nuri-end .ask-nuri-go { margin-inline-start: 0; }
}

/* inside a sentence, the words themselves: the home page's «Another language at home? Perfect.» */
.ask-nuri-inline {
  display: inline; margin: 0; padding: 0; font: inherit; color: var(--ink); text-align: inherit; background: none; border: 0; cursor: pointer;
  text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--tomato-text);
  text-decoration-thickness: 2px; text-underline-offset: 0.22em;
}
.ask-nuri-inline:hover { text-decoration-style: solid; }
.ask-nuri-inline::after { display: inline-block; width: 1.3em; height: 1.3em; margin-inline-start: 0.35em; vertical-align: -0.28em; }

.ask-nuri button:focus-visible, .ask-nuri-inline:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* busy until the chat opens */
[data-nuri-ask][aria-busy="true"] { cursor: progress; }
.ask-nuri button[aria-busy="true"]::before, .ask-nuri-inline[aria-busy="true"]::after { animation: nuri-wait 0.6s ease-in-out infinite alternate; }
@keyframes nuri-wait { to { transform: scale(0.8); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .ask-nuri button { transition: none; }
  .ask-nuri button:hover { transform: none; }
  .ask-nuri button[aria-busy="true"]::before, .ask-nuri-inline[aria-busy="true"]::after { animation: none; opacity: 0.55; }
}
