/* Guide pages with the in-browser steganography tool (/hide-text-in-image, /ru/steganografiya-onlajn) */
.article { max-width: 760px; margin: 0 auto; padding: 120px 20px 64px; position: relative; z-index: 2; overflow-wrap: break-word; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 1rem; }
.article h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; color: var(--neon-cyan); }
.article h3 { font-size: 1.1rem; margin: 1.4rem 0 0.5rem; }
.article p, .article li { color: var(--text); font-size: 1.05rem; margin-bottom: 0.9rem; }
.article ul, .article ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article .lead { font-size: 1.2rem; color: var(--muted); }
.article a { color: var(--neon-cyan); }
.article code { font-family: 'JetBrains Mono', monospace; font-size: 0.95em; }
.article .note { border-left: 3px solid var(--neon-violet); padding: 0.6rem 1rem; background: rgba(139, 92, 246, 0.08); border-radius: 6px; }
.article .cta { margin: 2.5rem 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.article .faq-item h3 { color: var(--text); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.lang-link { color: var(--muted); }
.article table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.98rem; }
.article th, .article td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); vertical-align: top; }
.article th { color: var(--muted); font-weight: 600; }

/* Tool */
.st { margin: 1.8rem 0 2.4rem; padding: 1.25rem; border: 1px solid rgba(8, 247, 254, 0.25); border-radius: 14px; background: rgba(10, 6, 30, 0.75); box-shadow: 0 0 32px rgba(139, 92, 246, 0.12); }
.st-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.1rem; }
.st-tabs [role="tab"] { min-height: 44px; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid rgba(139, 92, 246, 0.35); background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.st-tabs [role="tab"][aria-selected="true"] { background: rgba(139, 92, 246, 0.22); color: var(--text); border-color: var(--neon-cyan); }
.st-tabs [role="tab"]:focus-visible, .st-drop:focus-within, .st textarea:focus-visible, .st-mode input:focus-visible + span { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

.st-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; min-height: 120px; padding: 1rem; border: 2px dashed rgba(8, 247, 254, 0.35); border-radius: 10px; text-align: center; cursor: pointer; color: var(--muted); transition: border-color 0.2s, background 0.2s; }
.st-drop:hover, .st-drop.st-drag { border-color: var(--neon-cyan); background: rgba(8, 247, 254, 0.05); }
.st-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.st-drop strong { color: var(--text); }
.st-drop img { max-width: 100%; max-height: 220px; border-radius: 6px; }
.st-drop.st-has-file .st-drop-text { font-size: 0.9rem; }

.st-label { display: block; margin: 1rem 0 0.4rem; font-weight: 600; }
.st textarea { width: 100%; min-height: 110px; padding: 0.75rem; border-radius: 8px; border: 1px solid rgba(139, 92, 246, 0.4); background: rgba(0, 0, 0, 0.45); color: var(--text); font: inherit; font-size: 1rem; resize: vertical; }
.st-counter { font-size: 0.85rem; color: var(--muted); text-align: right; margin-top: 0.25rem; }
.st-counter.st-over { color: var(--neon-pink); }

.st-modes { border: 0; margin: 0.8rem 0 1rem; display: grid; gap: 0.5rem; min-width: 0; }
.st-modes legend { font-weight: 600; margin-bottom: 0.4rem; }
.st-mode { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem 0.75rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; cursor: pointer; font-size: 0.97rem; }
.st-mode input { margin-top: 0.3rem; accent-color: var(--neon-cyan); flex-shrink: 0; }
.st-mode:has(input:checked) { border-color: rgba(8, 247, 254, 0.5); background: rgba(8, 247, 254, 0.05); }

.st .btn { border: 0; font: inherit; font-weight: 600; }
.st .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.st-status { margin: 0.9rem 0 0; min-height: 1.4em; font-size: 0.98rem; }
.st-status.st-ok { color: #6ee7b7; }
.st-status.st-error { color: var(--neon-pink); }
.st-status.st-busy { color: var(--muted); }
.st-result { margin-top: 1rem; display: grid; gap: 0.75rem; justify-items: start; }
.st-result img { max-width: 100%; max-height: 360px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); }
.st-read-box { margin-top: 1rem; }
.st-read-box pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: 'JetBrains Mono', monospace; font-size: 0.98rem; padding: 0.9rem; border-radius: 8px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(8, 247, 254, 0.3); margin: 0.4rem 0 0.6rem; max-height: 360px; overflow-y: auto; }
.st-read-source { font-size: 0.9rem; color: var(--muted); }
.st-copy { min-height: 44px; padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid rgba(8, 247, 254, 0.4); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.st-hint { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.st-privacy { margin: 1.1rem 0 0; font-size: 0.9rem; color: var(--muted); }
.st [hidden] { display: none !important; }

@media (max-width: 480px) {
    .article { padding: 96px 16px 48px; }
    .st { padding: 1rem 0.85rem; margin-left: -0.25rem; margin-right: -0.25rem; }
    .st .btn, .st-copy { width: 100%; }
    .st-result { justify-items: stretch; }
    .article table { font-size: 0.9rem; }
}
