/* Crypto Ledger Setup - Multilingual Site Styles */
:root {
  --color1: #3e1c06;
  --color2: #623613;
  --color3: #935b1f;
  --color4: #cf8d2d;
  --color5: #ffce3d;
  --bg-light: #fdf8f0;
  --bg-card: #fff9ed;
  --text: #2a1a0a;
  --text-muted: #5c4a3a;
  --border: rgba(147, 91, 31, 0.25);
  --shadow: 0 4px 20px rgba(62, 28, 6, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 900px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--color1) 0%, var(--color2) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color5);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-logo:hover { color: #fff; }
.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-main a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.nav-main a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switcher a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  background: rgba(255,206,61,0.25);
  color: var(--color5);
}

/* Main */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 48px;
  width: 100%;
}

/* Typography */
h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color1);
  margin: 0 0 1.25em;
  line-height: 1.25;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  color: var(--color2);
  margin: 2em 0 0.75em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  color: var(--color3);
  margin: 1.5em 0 0.5em;
  font-weight: 600;
}
p { margin: 0 0 1em; }
a.content-link {
  color: var(--color4);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.content-link:hover { color: var(--color2); }

/* Blocks */
.block-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 2em;
  box-shadow: var(--shadow);
}
.block-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin: 1.5em 0;
  box-shadow: var(--shadow);
}
.block-highlight {
  background: linear-gradient(90deg, rgba(207,141,45,0.12) 0%, transparent 100%);
  border-left: 4px solid var(--color4);
  padding: 16px 20px;
  margin: 1.25em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25em 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--color2);
  color: #fff;
  font-weight: 600;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: rgba(255,249,237,0.6); }

/* Images */
.content-img {
  max-width: 100%;
  height: auto;
  width: 420px;
  display: block;
  margin: 1.25em auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Lists */
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin: 0.35em 0; }
.step-list { list-style: none; padding-left: 0; }
.step-list li {
  position: relative;
  padding-left: 1.75em;
  margin: 0.6em 0;
}
.step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--color4);
  border-radius: 50%;
}

/* FAQ */
.faq-section {
  margin: 2.5em 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(62,28,6,0.06);
}
.faq-question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color2);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-card); }
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color4);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px 16px;
  display: none;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.faq-answer-inner { padding-top: 12px; }
.faq-item.is-open .faq-answer { display: block; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--color2) 0%, var(--color1) 100%);
  color: rgba(255,255,255,0.9);
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-col h4 {
  color: var(--color5);
  font-size: 0.95rem;
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color5); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

/* Utility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color4);
  color: var(--color1);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { height: auto; padding: 14px 16px; }
  .nav-main { order: 3; width: 100%; }
  main { padding: 24px 16px 40px; }
  .block-hero, .block-card { padding: 18px 16px; }
  th, td { padding: 10px 12px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .lang-switcher a { padding: 6px 8px; font-size: 0.85rem; }
  h1 { font-size: 1.5rem; }
}
