*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: #EADCBE;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -5%, #F4EAD1, transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 108%, #DECDA4, transparent 60%);
  background-attachment: fixed;
  color: #33240E;
  font-family: 'Lora', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(234,220,190,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #D2BE8A;
}
.nav-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: #5C4524; transition: color .2s; text-decoration: none;
}
.nav-link:hover { color: #8A5E16; }
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, #D2BE8A 30%, #B8912E 50%, #D2BE8A 70%, transparent);
}
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #C4A35A, #D9B96A);
  color: #0C0A0E;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212,168,67,.3);
}
.btn-outline {
  display: inline-block;
  border: 1.5px solid #B8912E;
  color: #8A5E16;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  padding: .55rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: #8A5E16; background: rgba(138,94,22,.07); }
.badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 999px;
  border: 1px solid #CBB683;
  background: #F2E7CB;
  color: #8A5E16;
}
.badge-draft {
  border-color: #C9A040;
  background: #FFF3D0;
  color: #7A5618;
}
.card {
  background: linear-gradient(160deg, #F6EED8, #EFE4C7);
  border: 1px solid #CBB683;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: #B8912E; box-shadow: 0 6px 24px rgba(138,94,22,.12); }
.card-link { text-decoration: none; color: inherit; display: block; }
.guide-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #33240E;
  margin: 2rem 0 .75rem;
}
.guide-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #33240E;
  margin: 1.5rem 0 .5rem;
}
.guide-body p { color: #5C4524; margin-bottom: 1rem; }
.guide-body ul, .guide-body ol {
  color: #5C4524;
  margin: 0 0 1rem 1.25rem;
}
.guide-body li { margin-bottom: .35rem; }
.guide-body a { color: #8A5E16; }
.guide-body a:hover { text-decoration: underline; }
.guide-body strong { color: #33240E; }
.guide-body code {
  font-family: 'Inter', monospace;
  font-size: .85em;
  background: #F2E7CB;
  padding: .1rem .35rem;
  border-radius: 4px;
}
.help-screenshot {
  margin: 1.5rem 0;
  text-align: center;
}
.help-screenshot img {
  max-width: 100%;
  height: auto;
  border: 1px solid #CBB683;
  border-radius: 10px;
  background: #F6EED8;
}
.help-screenshot figcaption {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  color: #8A7044;
  margin-top: .5rem;
  font-style: italic;
}
.callout {
  background: #F2E7CB;
  border-left: 3px solid #B8912E;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
}
.callout-warn {
  background: #FFF3D0;
  border-left-color: #C9A040;
}
.draft-banner {
  background: #FFF3D0;
  border: 1px solid #C9A040;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: #7A5618;
}
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0 2rem;
}
footer.site-footer {
  border-top: 1px solid #D2BE8A;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: .875rem;
  color: #8A7044;
}
footer.site-footer a { color: #8A7044; text-decoration: none; }
footer.site-footer a:hover { color: #8A5E16; }
.legal-footer-note {
  max-width: 48rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  line-height: 1.55;
  color: #8A7044;
}
.legal-footer-note a { color: #8A5E16; text-decoration: none; }
.legal-footer-note a:hover { text-decoration: underline; }

/* Report-a-problem form */
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: #5C4524;
  margin-bottom: .4rem;
}
.form-input, .form-textarea {
  display: block;
  width: 100%;
  font-family: 'Lora', Georgia, serif;
  font-size: .95rem;
  color: #33240E;
  background: #F6EED8;
  border: 1px solid #CBB683;
  border-radius: 8px;
  padding: .6rem .8rem;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #8A5E16;
  box-shadow: 0 0 0 3px rgba(138,94,22,.12);
}
.form-textarea { resize: vertical; min-height: 6.5rem; }
.chip {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #CBB683;
  background: #F6EED8;
  color: #5C4524;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: #B8912E; }
.chip.selected {
  background: linear-gradient(135deg, #C4A35A, #D9B96A);
  border-color: #B8912E;
  color: #2A1206;
  font-weight: 600;
}
.screenshot-attach {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.screenshot-preview {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #CBB683;
}
.form-error {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: #B33A2E;
  margin-top: .4rem;
}
.form-success {
  font-family: 'Inter', sans-serif;
  color: #5C4524;
}

@media print {
  nav, .guide-actions, .draft-banner, footer.site-footer, .legal-footer-note { display: none !important; }
  body { background: white; color: black; }
  body::after { display: none; }
  .help-screenshot img { max-width: 80%; page-break-inside: avoid; }
  .guide-body a { color: black; text-decoration: underline; }
  .guide-body h2 { page-break-after: avoid; }
}
