/* Nusenda login guides — instruction layout */
:root {
  --text: #1c2433;
  --muted: #5c6478;
  --border: #dde3ed;
  --bg: #f7f8fa;
  --link: #c41230;
  --link-hover: #a00e26;
  --max: 44rem;
  --font: "Source Serif 4", Georgia, "Times New Roman", Times, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 2px solid var(--border);
  padding: 1rem 0;
  background: #fff;
}

.site-header .brand {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-header .brand:hover { color: var(--link); }

.site-header .tagline {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

.notice {
  background: #fff4f4;
  border-bottom: 1px solid #f0c8ce;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  color: #7a3040;
}

main { padding: 2rem 0 3rem; }

.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs span { margin: 0 0.35rem; }

h1 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem;
}

h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.35;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
li { margin-bottom: 0.45rem; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1.15rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--border); border-radius: 50%;
  font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--link);
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem; font-weight: 600;
  font-family: var(--font-sans);
  color: #fff; background: var(--link);
  border: 1px solid var(--link);
  text-decoration: none; border-radius: 6px;
  margin: 0.25rem 0.5rem 0.25rem 0;
}
.btn:hover { background: var(--link-hover); border-color: var(--link-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); color: var(--text); }
.cta-row { margin: 1.5rem 0; }

.box {
  border: 1px solid #f0c8ce;
  background: #fff8f9;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  border-radius: 6px;
}
.box p:last-child { margin-bottom: 0; }

.guide-links { list-style: none; padding: 0; margin: 1.25rem 0; }
.guide-links li { border-bottom: 1px solid var(--border); margin: 0; }
.guide-links a { display: block; padding: 0.85rem 0; text-decoration: none; color: var(--text); font-weight: 600; }
.guide-links a:hover { color: var(--link); }
.guide-links span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }

.faq details { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--muted); }
.faq details[open] summary::before { content: "− "; }
.faq .answer { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--link); }
.site-footer .fine { margin: 0; max-width: 36rem; }
