/* ============================================================
   DXN1 legacy content compatibility layer
   Restyles old markup classes inside the new corporate theme
   ============================================================ */

/* generic content card */
.doc .card, .page-shell .card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 26px; margin: 1.3em 0;
}
.doc .card h3:first-child { margin-top: 0; }

/* lead paragraph */
.doc .lead, .page-shell .lead { font-size: 1.08rem; color: var(--grey-600); }

/* badges: default grey; modifiers if present */
.badge { background: var(--grey-100); color: var(--grey-600); }
.badge.ok, .ok.badge, .badge-green { background: var(--green-bg); color: var(--green); }
.badge.info, .badge-blue { background: var(--blue-bg); color: var(--blue-dark); }
.badge.warn, .badge-yellow { background: var(--yellow-bg); color: #b26a00; }
.badge.danger, .badge-red { background: var(--red-bg); color: var(--red); }

/* buttons: default tonal look; primary variant */
.doc .btn, .page-shell .btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 22px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: .93rem;
  background: var(--blue-bg); color: var(--blue-dark); transition: background .15s;
}
.doc .btn:hover, .page-shell .btn:hover { text-decoration: none; background: #d2e3fc; }
.doc .btn.primary, .doc .btn.btn-primary, .page-shell .btn.primary { background: var(--blue); color: #fff; }
.doc .btn.primary:hover { background: var(--blue-hover); }
.doc .btn.danger { background: var(--red); color: #fff; }
.doc .btn.green, .doc .btn.btn-green { background: var(--green); color: #fff; }

/* steps */
.steps, .page-shell .steps { margin: 1.6em 0; }
.step, .page-shell .step {
  display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--grey-200);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-bg); color: var(--blue-dark); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.step-body h4 { margin-bottom: 3px; }
.step-body p { margin: 0; font-size: .93rem; color: var(--grey-600); }

/* FAQ */
.faq, .page-shell .faq {
  border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; background: #fff; overflow: hidden;
}
.faq summary, .page-shell .faq summary {
  cursor: pointer; padding: 15px 20px; font-weight: 600; color: var(--grey-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker, .page-shell .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 700; font-size: 1.2rem; }
.faq[open] summary::after { content: "–"; }
.faq-body { padding: 0 20px 16px; border-top: 1px solid var(--grey-200); padding-top: 12px; font-size: .95rem; color: var(--grey-800); }

/* notice / callout */
.notice, .page-shell .notice {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; margin: 1.3em 0;
  font-size: .95rem; background: var(--blue-bg); border-left: 4px solid var(--blue);
}
.notice.info { background: var(--blue-bg); border-left-color: var(--blue); }
.notice.warn { background: var(--yellow-bg); border-left-color: var(--yellow); }
.notice.danger { background: var(--red-bg); border-left-color: var(--red); }
.notice.ok { background: var(--green-bg); border-left-color: var(--green); }

/* check / cross lists */
.check, .cross { font-weight: 600; }
.check::before { content: "✓ "; color: var(--green); font-weight: 800; }
.cross::before { content: "✕ "; color: var(--red); font-weight: 800; }

/* announcement cards */
.ann-card, .page-shell .ann-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; margin: 1em 0; display: block; transition: box-shadow .18s;
}
.ann-card:hover { box-shadow: var(--shadow-1); text-decoration: none; }
.ann-date { font-size: .82rem; color: var(--grey-600); font-weight: 600; display: block; margin-bottom: 6px; }
.ann-readmore { color: var(--blue); font-weight: 600; font-size: .9rem; display: inline-block; margin-top: 10px; }

/* pill rows / tags */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0; }
.pill-row .tag, .tag {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 12px;
  background: var(--grey-100); color: var(--grey-800); border-radius: var(--radius-pill);
}

/* product card (legacy markup) */
.product-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:24px; margin:1.2em 0; }
.product-header { display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.product-icon { width:46px; height:46px; border-radius:12px; background:var(--blue-bg); display:inline-flex; align-items:center; justify-content:center; font-size:1.3rem; }
.product-features { margin: .8em 0; padding-left: 1.2em; }
.product-features li { margin-bottom: .3em; }
.product-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }

/* forms */
.lbl { display:block; font-weight:600; font-size:.9rem; margin:14px 0 6px; }
.inp, .page-shell input[type="text"], .page-shell input[type="email"], .page-shell input[type="url"], .page-shell textarea {
  width:100%; max-width:520px; border:1px solid var(--border); border-radius:10px;
  padding:11px 14px; font-family:var(--font); font-size:.95rem; background:#fff; outline:none;
}
.inp:focus, .page-shell textarea:focus { border-color: var(--blue); box-shadow: 0 1px 6px rgba(32,33,36,.15); }
.req { color: var(--red); }
.hint { font-size:.84rem; color:var(--grey-600); margin-top:4px; }

/* grids & misc */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; margin:1.4em 0; }
.divider { border:none; border-top:1px solid var(--grey-200); margin:2.2em 0; }
.back-link { display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:.9rem; margin-bottom:18px; }
.ann-detail-header { margin-bottom:1em; }
.ann-detail-content img { max-width:100%; }
.n-ico { font-style: normal; margin-right: 4px; }
.age-blur { filter: blur(6px); pointer-events: none; user-select: none; }
.cta-btn { margin-top: 8px; }

/* n-ico usage inside h/p where emoji icons sat */
h2 .n-ico, h3 .n-ico { margin-right: 6px; }
