/* Gujo Tools — cream light anime-inspired UI. System fonts only, no external requests. */
.gujotools-generator,
.gujotools-quiz,
.gujotools-tool,
.gujotools-toc {
  --gujotools-bg: #fffdf8;
  --gujotools-surface: #ffffff;
  --gujotools-surface-2: #faf3e8;
  --gujotools-border: #eadfc9;
  --gujotools-text: #2e2438;
  --gujotools-muted: #6e637e;
  --gujotools-purple: #7c3aed;
  --gujotools-pink: #db2777;
  --gujotools-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --gujotools-radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gujotools-text);
}

/* ---------- Controls ---------- */
.gujotools-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
  background: var(--gujotools-surface);
  border: 1px solid var(--gujotools-border);
  border-radius: var(--gujotools-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.gujotools-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.gujotools-label { font-size: 0.78rem; color: var(--gujotools-muted); font-weight: 600; }
.gujotools-select {
  background: var(--gujotools-surface-2);
  color: var(--gujotools-text);
  border: 1px solid var(--gujotools-border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  max-width: 100%;
}
.gujotools-select:focus-visible { outline: 2px solid var(--gujotools-pink); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.gujotools-btn {
  background: var(--gujotools-surface-2);
  color: var(--gujotools-text);
  border: 1px solid var(--gujotools-border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.gujotools-btn:hover { transform: translateY(-1px); }
.gujotools-btn:focus-visible { outline: 2px solid var(--gujotools-pink); outline-offset: 2px; }
.gujotools-btn-primary {
  background: var(--gujotools-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.28), 0 2px 6px rgba(219, 39, 119, 0.22);
}
.gujotools-btn-small { padding: 0.35rem 0.8rem; font-size: 0.82rem; }
.gujotools-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.gujotools-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

/* ---------- Results ---------- */
.gujotools-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 560px) {
  .gujotools-results { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .gujotools-results { grid-template-columns: repeat(3, 1fr); }
}
.gujotools-card {
  background: var(--gujotools-surface);
  border: 1px solid var(--gujotools-border);
  border-radius: var(--gujotools-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gujotools-name { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.gujotools-meaning { margin: 0; font-size: 0.85rem; color: var(--gujotools-muted); font-style: italic; }
.gujotools-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.gujotools-chip {
  font-size: 0.74rem;
  background: var(--gujotools-surface-2);
  border: 1px solid var(--gujotools-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  color: var(--gujotools-muted);
}
.gujotools-profile { margin: 0; font-size: 0.9rem; color: var(--gujotools-muted); line-height: 1.5; }
.gujotools-card-actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; }
.gujotools-fav[aria-pressed="true"] {
  background: var(--gujotools-gradient);
  border: none;
  color: #fff;
}
.gujotools-empty { color: var(--gujotools-muted); }

/* ---------- Quiz ---------- */
.gujotools-quiz {
  background: var(--gujotools-bg);
  border: 1px solid var(--gujotools-border);
  border-radius: var(--gujotools-radius);
  padding: 1.25rem;
}
.gujotools-quiz-title { margin: 0 0 0.5rem; font-size: 1.35rem; }
.gujotools-quiz-meta, .gujotools-progress-label { color: var(--gujotools-muted); font-size: 0.85rem; }
.gujotools-progress {
  height: 10px;
  background: var(--gujotools-surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.4rem 0 1rem;
}
.gujotools-progress-fill {
  height: 100%;
  background: var(--gujotools-gradient);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.gujotools-quiz-question { font-size: 1.15rem; margin: 0 0 0.9rem; }
.gujotools-quiz-answers { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.gujotools-quiz-answer {
  text-align: left;
  background: var(--gujotools-surface);
  border: 1px solid var(--gujotools-border);
  color: var(--gujotools-text);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.98rem;
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.gujotools-quiz-answer:hover { border-color: var(--gujotools-purple); transform: translateY(-1px); }
.gujotools-quiz-answer:focus-visible { outline: 2px solid var(--gujotools-pink); outline-offset: 2px; }
.gujotools-quiz-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--gujotools-pink);
  margin: 0 0 0.3rem;
  font-weight: 700;
}
.gujotools-quiz-desc { line-height: 1.65; color: var(--gujotools-text); }

/* ---------- TOC ---------- */
.gujotools-toc {
  background: var(--gujotools-surface);
  border: 1px solid var(--gujotools-border);
  border-radius: var(--gujotools-radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.gujotools-toc-title { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.95rem; }
.gujotools-toc ul { margin: 0; padding-left: 1.1rem; }
.gujotools-toc li { margin: 0.3rem 0; }
.gujotools-toc a { color: var(--gujotools-text); text-decoration: none; }
.gujotools-toc a:hover { color: var(--gujotools-pink); text-decoration: underline; }

/* ---------- Related cards ---------- */
.gujotools-related { margin: 2rem 0; }
.gujotools-related-title { font-size: 1.2rem; margin-bottom: 0.8rem; }
.gujotools-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .gujotools-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.gujotools-related-card {
  display: block;
  background: var(--gujotools-surface);
  border: 1px solid var(--gujotools-border);
  border-radius: var(--gujotools-radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--gujotools-text);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.gujotools-related-card:hover { transform: translateY(-2px); border-color: var(--gujotools-purple); }
.gujotools-related-card h4 { margin: 0; font-size: 1rem; }
.gujotools-related-card span { font-size: 0.82rem; color: var(--gujotools-pink); }

/* ---------- Byline ---------- */
.gujotools-byline {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gujotools-border);
  color: var(--gujotools-muted);
  font-size: 0.85rem;
}

/* ---------- Print: results only ---------- */
@media print {
  .gujotools-controls, .gujotools-toolbar, .gujotools-card-actions { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .gujotools-btn, .gujotools-quiz-answer, .gujotools-related-card, .gujotools-pill { transition: none; }
}

/* ---------- Generator header + step hints ---------- */
.gujotools-gen-header { margin-bottom: 0.75rem; }
.gujotools-gen-title { margin: 0 0 0.25rem; font-size: 1.4rem; line-height: 1.25; }
.gujotools-gen-howto { margin: 0; color: var(--gujotools-muted); font-size: 0.95rem; line-height: 1.55; }
.gujotools-steps {
  list-style: none;
  counter-reset: gujotools-step;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--gujotools-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.gujotools-steps li { display: inline-flex; align-items: center; gap: 0.45rem; }
.gujotools-steps li::before {
  counter-increment: gujotools-step;
  content: counter(gujotools-step);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--gujotools-gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Pill toggles (radio behavior) ---------- */
.gujotools-pill-group { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.gujotools-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gujotools-pill {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--gujotools-border);
  background: var(--gujotools-surface-2);
  color: var(--gujotools-text);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.gujotools-pill:hover { transform: translateY(-1px); }
.gujotools-pill:focus-visible { outline: 2px solid var(--gujotools-pink); outline-offset: 2px; }
.gujotools-pill[aria-pressed="true"] {
  background: var(--gujotools-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.28);
}

/* ---------- Big primary Generate / Start button ---------- */
.gujotools-btn-generate {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
@media (min-width: 560px) {
  .gujotools-btn-generate { width: auto; min-width: 240px; }
}

/* ---------- Result cards: whole-card click-to-copy ---------- */
.gujotools-card { position: relative; cursor: pointer; }
button.gujotools-name {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
button.gujotools-name:hover { color: var(--gujotools-purple); }
button.gujotools-name:focus-visible {
  outline: 2px solid var(--gujotools-pink);
  outline-offset: 3px;
  border-radius: 6px;
}
.gujotools-copied { border-color: #16a34a; }
.gujotools-copied::after {
  content: 'Copied!';
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.gujotools-copy-failed { border-color: #dc2626; }
.gujotools-fav { font-size: 1rem; line-height: 1; }

/* ---------- Quiz refinements ---------- */
.gujotools-quiz-intro-text { line-height: 1.65; }
.gujotools-quiz-answer { min-height: 44px; }
.gujotools-quiz-answer:disabled { cursor: default; opacity: 1; }
.gujotools-quiz-answer-correct {
  border-color: #16a34a;
  border-width: 2px;
  background: #f0fdf4;
}
.gujotools-quiz-answer-wrong {
  border-color: #dc2626;
  border-width: 2px;
  background: #fef2f2;
}
.gujotools-quiz-mark { font-weight: 800; margin-right: 0.45rem; }
.gujotools-quiz-answer-correct .gujotools-quiz-mark { color: #16a34a; }
.gujotools-quiz-answer-wrong .gujotools-quiz-mark { color: #dc2626; }
.gujotools-quiz-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}
.gujotools-quiz-score {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

/* ------------------------------------------------------------------ */
/* Page Designer (v1.2.0): designed landing layout for content pages   */
/* ------------------------------------------------------------------ */
.gtd-hero {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  margin: 0 0 2rem;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: #241d33;
}
.gtd-hero-media { position: absolute; inset: 0; }
.gtd-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtd-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,18,50,.88) 0%, rgba(30,18,50,.45) 45%, rgba(30,18,50,.05) 75%);
}
.gtd-hero-inner { position: relative; z-index: 2; padding: 2rem; width: 100%; }
.gtd-crumb { font-size: .8rem; margin: 0 0 .75rem; color: rgba(255,255,255,.75); }
.gtd-crumb a { color: #fff; text-decoration: none; font-weight: 600; }
.gtd-crumb a:hover { text-decoration: underline; }
.gtd-crumb-sep { margin: 0 .45rem; opacity: .6; }
.gtd-crumb-here { color: rgba(255,255,255,.85); }
.gtd-hero-title { color: #fff !important; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -0.01em; }
.gtd-hero-sub { color: rgba(255,255,255,.92); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1.25rem; max-width: 46rem; }
.gtd-hero-cta { margin: 0; }
.gtd-hero-cta a {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff !important;
  font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(124,58,237,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gtd-hero-cta a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(219,39,119,.4); color: #fff !important; }
.gtd-anchor { scroll-margin-top: 90px; }
.gtd-body { font-size: 1.02rem; line-height: 1.75; color: #2e2438; }
.gtd-body h2 {
  font-size: 1.55rem; line-height: 1.3; margin: 2.4rem 0 1rem; padding-left: .9rem;
  border-left: 4px solid #7c3aed; color: #2e2438; letter-spacing: -0.01em;
}
.gtd-body h3 { font-size: 1.2rem; margin: 1.8rem 0 .7rem; color: #2e2438; }
.gtd-body p { margin: 0 0 1.1rem; }
.gtd-body ul, .gtd-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.gtd-body li { margin: .45rem 0; }
.gtd-body li::marker { color: #7c3aed; }
.gtd-body a { color: #7c3aed; }
.gtd-body a:hover { color: #db2777; }
.gtd-body table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.gtd-body th { background: #f3eefe; color: #2e2438; text-align: left; padding: .7rem .9rem; border: 1px solid #e6ddf7; }
.gtd-body td { padding: .65rem .9rem; border: 1px solid #efe9fb; }
.gtd-body tr:nth-child(even) td { background: #fffdf8; }
.gtd-body blockquote {
  margin: 1.4rem 0; padding: 1rem 1.25rem; border-radius: .75rem;
  background: #faf5ff; border-left: 4px solid #db2777; color: #2e2438;
}
.gtd-faq-heading { margin-top: 2.6rem; }
.gtd-faq-wrap { margin: 0 0 1.5rem; }
.gtd-faq {
  border: 1px solid #e9e0f8; border-radius: .8rem; margin: 0 0 .7rem;
  background: #fff; overflow: hidden;
}
.gtd-faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .95rem 1.15rem; cursor: pointer; font-weight: 700; color: #2e2438; list-style: none;
}
.gtd-faq-q::-webkit-details-marker { display: none; }
.gtd-faq-q:hover { color: #7c3aed; }
.gtd-faq-icon {
  flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1; transition: transform .2s ease;
}
.gtd-faq[open] .gtd-faq-icon { transform: rotate(45deg); }
.gtd-faq-a { padding: 0 1.15rem 1.1rem; color: #4a3f5e; }
.gtd-faq-a p { margin: 0; }
.gtd-faq-wrap > p { font-size: .85rem; color: #8a7fa3; margin-top: 1rem; }
.gtd-author {
  display: flex; gap: 1rem; align-items: flex-start; margin: 2.2rem 0 0;
  padding: 1.3rem 1.4rem; border-radius: 1rem;
  background: linear-gradient(135deg, #faf5ff, #fff7f0); border: 1px solid #e9e0f8;
}
.gtd-author-avatar {
  flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
}
.gtd-author-name { margin: 0 0 .25rem !important; font-weight: 800; color: #2e2438; }
.gtd-author-bio { margin: 0 !important; font-size: .92rem; color: #6b5f86; }
@media (max-width: 640px) {
  .gtd-hero { min-height: 300px; border-radius: .9rem; }
  .gtd-hero-inner { padding: 1.4rem; }
  .gtd-hero-sub { font-size: .95rem; }
  .gtd-body h2 { font-size: 1.35rem; }
}

/* ---------- Interactive guide tools (v1.3.0) ---------- */
.gujotools-tool {
  background: var(--gujotools-bg);
  border: 1px solid var(--gujotools-border);
  border-radius: var(--gujotools-radius);
  padding: 1.25rem;
  margin: 0 0 1.5rem;
}
.gujotools-input {
  background: var(--gujotools-surface-2);
  color: var(--gujotools-text);
  border: 1px solid var(--gujotools-border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  min-height: 44px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.gujotools-input:focus-visible { outline: 2px solid var(--gujotools-pink); outline-offset: 2px; }
.gujotools-input-narrow { width: 7rem; }
.gujotools-field-grow { flex: 1 1 12rem; }
.gujotools-checklist {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--gujotools-text);
  line-height: 1.6;
}
.gujotools-checklist li { margin: 0.3rem 0; }
.gujotools-checklist li::marker { color: var(--gujotools-purple); }

/* Watchlist tracker */
.gujotools-stats {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gujotools-muted);
  margin: 0 0 0.9rem;
}
.gujotools-watchlist { display: grid; gap: 0.7rem; }
.gujotools-watch-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: var(--gujotools-surface);
  border: 1px solid var(--gujotools-border);
  border-radius: var(--gujotools-radius);
  padding: 0.85rem 1rem;
}
.gujotools-watch-info { flex: 1 1 auto; min-width: 0; }
.gujotools-watch-title { margin: 0 0 0.15rem; font-weight: 700; font-size: 1rem; overflow-wrap: anywhere; }
.gujotools-watch-eps { margin: 0 0 0.4rem; font-size: 0.82rem; color: var(--gujotools-muted); }
.gujotools-stepper { display: flex; gap: 0.35rem; flex: 0 0 auto; align-items: center; }
.gujotools-stepper .gujotools-btn-small { min-width: 44px; }
.gujotools-del { color: var(--gujotools-pink); }

@media (max-width: 480px) {
  .gujotools-tool { padding: 1rem; }
  .gujotools-watch-row { flex-wrap: wrap; }
  .gujotools-stepper { width: 100%; justify-content: flex-start; }
}

/* ------------------------------------------------------------------ */
/* Contact form (v1.4.0)                                               */
/* ------------------------------------------------------------------ */
.gtd-contact { margin: 1.5rem 0 2rem; }
.gtd-contact-ok, .gtd-contact-err {
  border-radius: .8rem; padding: 1rem 1.2rem; margin: 0 0 1.2rem; font-size: .95rem;
}
.gtd-contact-ok { background: #eefbf0; border: 1px solid #bfe6c8; color: #1f6b33; }
.gtd-contact-err { background: #fef1f4; border: 1px solid #f3c2cf; color: #a11c40; }
.gtd-contact-form { background: #fff; border: 1px solid #e9e0f8; border-radius: 1rem; padding: 1.5rem; }
.gtd-field { margin: 0 0 1rem !important; }
.gtd-field label { display: block; font-weight: 700; margin-bottom: .35rem; color: #2e2438; font-size: .95rem; }
.gtd-field input[type="text"], .gtd-field input[type="email"], .gtd-field select, .gtd-field textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid #d9cdf2; border-radius: .6rem;
  font-size: 1rem; background: #fffdf9; color: #2e2438; font-family: inherit;
}
.gtd-field input:focus, .gtd-field select:focus, .gtd-field textarea:focus {
  outline: 2px solid #7c3aed; outline-offset: 1px; border-color: #7c3aed;
}
.gtd-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.gtd-contact-btn {
  display: inline-block; padding: .8rem 1.8rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(124,58,237,.35);
}
.gtd-contact-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(219,39,119,.4); }
