/* Csatlakozás: magyar útmutató + az Atomy oldala egymás mellett */
.cs-wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.cs-wide { max-width: 1480px; margin: 0 auto; padding: 0 clamp(12px, 2.4vw, 32px); }
.cs-card { background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: 0 24px 56px rgba(120,80,40,.14), inset 0 1px 0 #fff; padding: clamp(22px, 3.4vw, 40px); }
.cs-sec { margin-top: clamp(30px, 4.5vw, 54px); }
.cs-sec > h2 { font: 500 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--serif); margin-bottom: 18px; }
.cs-safe { display: flex; gap: 16px; align-items: flex-start; background: #fff7e6; border: 1px solid #f0dcae; border-radius: 22px; padding: 16px 22px; color: #5b3f12; line-height: 1.6; font-size: .92rem; }
.cs-safe b { display: block; margin-bottom: 3px; color: #3b2a1c; }
.cs-safe i { flex: none; font-style: normal; font-size: 1.4rem; line-height: 1; }

/* két ablak */
.cs-split { display: grid; grid-template-columns: minmax(340px, 38%) 1fr; gap: 20px; margin-top: 22px; align-items: start; }
.cs-guide, .cs-guide { overflow: auto; overscroll-behavior: contain; padding: clamp(20px, 2.4vw, 32px); }
.cs-guide h2 { font: 600 1.5rem/1.15 var(--serif); margin-bottom: 4px; }
.cs-guide > p.cs-sub { color: #6b5544; font-size: .86rem; margin-bottom: 18px; }

/* lépések */
.cs-steps { list-style: none; counter-reset: st; display: grid; gap: 18px; padding: 0; margin: 0; }
.cs-steps > li { counter-increment: st; position: relative; padding-left: 50px; line-height: 1.6; font-size: .92rem; }
.cs-steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 1.1rem/1 var(--serif); color: #5b3f12; background: linear-gradient(180deg, #fbe9b7, #e7c66f 72%, #d9b25a); box-shadow: 0 5px 12px rgba(167,123,47,.28); }
.cs-steps strong { display: block; font: 600 1.1rem/1.3 var(--serif); margin-bottom: 2px; }
.cs-steps em { color: #6b4a14; }
.cs-steps .cs-hint { display: block; margin-top: 6px; padding: 9px 12px; border-radius: 12px; background: #fdf3df; border: 1px solid #f0dcae; font-size: .82rem; color: #6b4a14; }
.cs-types { display: grid; gap: 10px; margin-top: 8px; }
.cs-types div { background: #fff; border: 1px solid #f3dcd5; border-radius: 14px; padding: 10px 13px; font-size: .84rem; }
.cs-types b { display: block; color: #26170b; }
.cs-types span { color: #6b5544; font-style: italic; }

.cs-gloss { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cs-gloss th, .cs-gloss td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #f0dfd2; vertical-align: top; }
.cs-gloss th { font: 700 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b4566a; }
.cs-gloss td:first-child { font-weight: 600; white-space: nowrap; color: #26170b; }
.cs-gloss caption { text-align: left; font: 600 1.1rem/1.3 var(--serif); padding: 0 0 8px; }
.cs-gloss + .cs-gloss { margin-top: 26px; }
.cs-faq details { border-bottom: 1px solid #f0dfd2; padding: 14px 4px; }
.cs-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary::after { content: "+"; color: #a77b2f; font-size: 1.3rem; line-height: 1; }
.cs-faq details[open] summary::after { content: "–"; }
.cs-faq p { margin-top: 10px; line-height: 1.65; color: #3b2a1c; }
.cs-disc { margin-top: 22px; font-size: .8rem; line-height: 1.65; color: #6b5544; }

@media (max-width: 1000px) {
  .cs-split { display: block; margin-top: 12px; }
  .cs-guide { height: auto; min-height: 0; }
}
@media (max-width: 640px) {
  .cs-card { backdrop-filter: none; background: rgba(255,255,255,.85); border-radius: 24px; }
  .cs-gloss td:first-child { white-space: normal; }
  .cs-safe { padding: 14px; }
}

/* Atomy megnyitása külön ablakban */
.cs-open { height: min(86vh, 860px); min-height: 520px; display: grid; place-items: center; border-radius: 30px; background: radial-gradient(ellipse at 50% 40%, #fff, #fff4f1 70%, #fde7df); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 24px 56px rgba(120,80,40,.18); padding: clamp(22px, 3vw, 44px); text-align: center; }
.cs-open__in { max-width: 520px; display: grid; justify-items: center; gap: 14px; }
.cs-open__k { font: 700 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #b4566a; }
.cs-open h2 { font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--serif); }
.cs-open p { font-size: .92rem; line-height: 1.65; color: #4a3626; }
.cs-open .button { margin-top: 6px; }
.cs-open__st { padding: 10px 14px; border-radius: 14px; background: #fdf3df; border: 1px solid #f0dcae; color: #6b4a14 !important; font-size: .84rem !important; }
.cs-open__alt { font-size: .84rem; color: #8a621c; font-weight: 600; }
.cs-open small { font-size: .76rem; line-height: 1.55; color: #6b5544; }
@media (max-width: 1000px) { .cs-open { height: auto; min-height: 0; margin-top: 16px; } .cs-open h2 { font-size: 1.4rem; } }

.cs-open__in .button { margin-top: 4px; }
.cs-tr { text-align: left; list-style: none; display: grid; gap: 8px; padding: 14px 16px; margin: 4px 0 0; background: #fff; border: 1px solid #f3dcd5; border-radius: 16px; font-size: .84rem; line-height: 1.55; color: #3b2a1c; }
.cs-tr strong { color: #26170b; }
button.cs-open__alt { background: none; border: 0; cursor: pointer; font: 600 .84rem/1.4 var(--sans); color: #8a621c; text-decoration: underline; padding: 4px; }

/* kísérleti beágyazott nézet */
.cs-open { position: relative; }
.cs-open.is-embed { padding: 0; place-items: stretch; overflow: hidden; }
.cs-open.is-embed .cs-open__in { display: none; }
.cs-embed { display: none; flex-direction: column; width: 100%; height: 100%; background: #fff; }
.cs-open.is-embed .cs-embed { display: flex; }
.cs-embed__bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 16px; background: #f7efe3; border-bottom: 1px solid #ecdcc3; font-size: .78rem; line-height: 1.45; color: #4a3626; text-align: left; }
.cs-embed__act { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.cs-embed__act a, .cs-embed__act button { color: #8a621c; font: 600 .8rem/1.2 var(--sans); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
.cs-embed iframe { flex: 1; width: 100%; border: 0; background: #fff; min-height: 420px; }
@media (max-width: 1000px) { .cs-open.is-embed { height: 80vh; min-height: 460px; } }
