/* Alvea Hubs — shared theme for all tool pages (index/about/privacy keep their own <style>) */

:root {
  --ink: #1f2421;
  --paper: #fbfaf6;
  --line: #dcd8cc;
  --accent: #2e5339;
  --accent-soft: #e8efe6;
  --danger: #a8532f;
  --mono: 'SF Mono', 'Consolas', monospace;
  --sans: -apple-system, 'Segoe UI', 'Hiragino Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
}

.shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 15px;
}

.brand span {
  color: #9fc2a8;
}

.tagline {
  font-weight: 400;
}

/* Language nav — links to the per-language URL of the current page (no JS, no buttons) */
.lang-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-nav a,
.lang-nav .active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 12px 16px;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  line-height: 1;
}

.lang-nav .active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.card {
  background: var(--paper);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.page-title {
  font-size: 20px;
  margin: 0 0 18px;
  font-weight: 600;
  color: var(--ink);
}

.btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9fc2a8;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid #444;
  padding: 4px 9px;
  border-radius: 4px;
  margin-right: 8px;
}

.home-link:hover {
  background: rgba(159, 194, 168, 0.15);
}

.privacy-note {
  font-size: 12px;
  color: #8a8a80;
  margin-top: 20px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.toast.show {
  opacity: 1;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .shell {
    padding: 20px 14px 60px;
  }

  .card {
    padding: 20px;
  }

  .topbar {
    gap: 10px;
  }
}

.tool-info-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.tool-info-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tool-info-section p,
.tool-info-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}

.tool-info-section ol,
.tool-info-section ul {
  padding-left: 1.25rem;
}

.tool-info-section details {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.tool-info-section details:last-child {
  border-bottom: none;
}

.tool-info-section summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.tool-info-section summary::before {
  content: "+ ";
  color: var(--accent);
}

.tool-info-section details[open] summary::before {
  content: "− ";
}
