/* The Security page and the articles (site_security.py). Loaded after site.css and scenes.css. */
.sx-hero .sc { max-width: 390px; }
/* The one sentence about security: big and calm */
.hero.first .sx-safe.sx-safe { font-size: clamp(20px, 2.1vw, 25px); line-height: 1.75; max-width: 30em; margin-inline: auto; text-wrap: pretty; }
html[data-script="latin"] .hero.first .sx-safe.sx-safe { line-height: 1.5; }
.sx-fine a { color: var(--accent); font-weight: 600; }
.sx-hero .jump { justify-content: center; margin: 4px 0 0; }
@media (min-width: 900px) {
  .sx-hero .sc.sc { max-width: 400px; }
  .hero.first .sx-safe.sx-safe { margin-inline: 0; }
  .sx-hero .jump { display: grid; grid-template-columns: repeat(4, max-content); text-align: center; }
}
@media (min-width: 1200px) { .sx-hero .sc.sc { max-width: min(560px, calc((100vh - 150px) * .74)); } }
.sx-facts { border-block: 1px solid var(--line); }
.sx-facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; gap: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-facts li { display: grid; gap: 8px; align-content: start; font-size: 14px; line-height: 1.6; color: var(--muted); }
.sx-facts .ic { width: 26px; height: 26px; color: var(--accent); }
.sx-facts strong { display: block; font-size: 16px; color: var(--text); text-wrap: balance; }
@media (min-width: 860px) { .sx-facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 30px 0; } }

/* The four steps: numbered rows (the rows themselves: .sc-feats, scenes.css) */
.sx-steps { counter-reset: sx; }
.sx-steps .sec-head { margin-bottom: -20px; }
.sx-steps .sc-block { counter-increment: sx; }
.sx-steps .sc-say::before {
  content: counter(sx); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%;
  font-weight: 800; font-size: 17px; line-height: 1; color: #fff; background: linear-gradient(150deg, #2a8f84, #18324c);
}
html[lang="fa"] .sx-steps .sc-say::before { content: counter(sx, persian); }
.sx-steps .sc { width: 100%; }

.sx-pair { display: grid; gap: 18px; }
.sx-pair .sc-block { padding: 22px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); grid-template-rows: auto auto 1fr; }
.sx-pair .sc { grid-row: 1; max-width: 480px; }
.sx-pair .sc-say { grid-row: 2; }
@media (min-width: 860px) { .sx-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sx-pair .sc-block { padding: 28px; } }
@media (max-width: 400px) { .sx-pair .sc-block { padding: 16px; } }

/* What stays, what reaches us */
.sx-two { display: grid; gap: 18px; margin-bottom: 18px; }
.sx-col { padding: 22px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.sx-col h3 { display: flex; gap: 12px; align-items: center; font-size: 20px; margin: 0 0 14px; }
.sx-col h3 .ic { box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border-radius: 12px; color: #fff; background: linear-gradient(150deg, #2a8f84, #18324c); }
.sx-gets h3 .ic { background: linear-gradient(150deg, #2f80e0, #0d3f80); }
.sx-col ul { list-style: none; margin: 0; padding: 0; }
.sx-col li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; }
.sx-col li > .ic { margin-top: 2px; color: var(--accent); }
.sx-col li > div { min-width: 0; }
.sx-col li { color: var(--muted); }
.sx-col strong { display: block; color: var(--text); }
.sx-col small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
.sx-fine { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
/* Help improve call sound: words, where to turn it off, and the picture beside them */
.sx-imp { display: grid; gap: 22px; }
.sx-imp h2 { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.4; text-wrap: balance; }
.sx-imp-say p { margin: 0 0 12px; font-size: 17px; line-height: 1.85; color: var(--muted); text-wrap: pretty; }
html[data-script="latin"] .sx-imp-say p { line-height: 1.65; }
.sx-imp .sc { width: 100%; max-width: 520px; margin-inline: auto; }
.sx-imp-say p.sx-fine { margin: 16px 0 0; font-size: 14px; line-height: 1.7; }
@media (min-width: 900px) {
  .sx-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sx-col { padding: 28px; }
  .sx-imp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px 56px; align-items: center; }
  .sx-imp .sc { grid-column: 2; max-width: none; }
}

/* Debugging: one calm card */
.sx-debug { padding: 24px 22px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.sx-debug h2 { margin: 0 0 14px; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.4; }
.sx-debug > div { display: grid; gap: 18px; }
.sx-debug h3 { display: flex; gap: 10px; align-items: center; font-size: 16px; margin: 0 0 4px; }
.sx-debug h3 .ic { color: var(--accent); }
.sx-debug p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
@media (min-width: 860px) { .sx-debug { padding: 32px; } .sx-debug > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* What if: the question and the short answer stand; the rest opens */
.sx-if { display: grid; gap: 12px; align-items: start; }
.sx-if details { margin: 0; border-radius: 22px; }
.sx-if summary { align-items: center; justify-content: flex-start; gap: 14px; padding: 16px 0; }
.sx-if summary::after { margin-inline-start: auto; }
.sx-if b { display: block; font-size: 16px; line-height: 1.55; text-wrap: balance; }
.sx-answer { display: block; margin-top: 3px; font-size: 15px; font-weight: 500; line-height: 1.65; color: var(--accent); }
.sx-if .answer { padding-bottom: 14px; }
.sx-if .answer p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
@media (min-width: 860px) { .sx-if { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .sx-if details { padding-inline: 24px; } .sx-if summary { min-height: 108px; } }

/* Permissions */
.sx-first, .sx-perms ul { list-style: none; margin: 0; padding: 0; }
.sx-first { display: grid; gap: 14px; margin-bottom: 18px; }
.sx-first li { display: flex; gap: 14px; padding: 18px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.sx-first .tile-icon { font-size: 24px; }
.sx-first h3 { font-size: 16px; line-height: 1.5; }
.sx-first p { margin: 0 0 2px; font-size: 15px; }
.sx-first em, .sx-perms em { font-style: normal; font-size: 14px; color: var(--accent); }
@media (min-width: 680px) { .sx-first { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-lists { display: grid; gap: 10px; align-items: start; }
.sx-lists details { margin: 0; border-radius: 20px; }
.sx-lists summary { align-items: center; min-height: 56px; font-size: 16px; }
.sx-perms li { display: grid; gap: 1px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; }
.sx-perms li > span { color: var(--muted); }
.sx-perms .answer > p { font-size: 14px; color: var(--muted); padding: 0; margin: 0 0 12px; }
.sx-perms ul + p { margin-top: 12px; }
@media (min-width: 860px) { .sx-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.sx-never { margin-top: 34px; }
.sx-never h3 { font-size: 20px; margin: 0 0 14px; }
.sx-never h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.sx-never-in { display: grid; gap: 18px; }
.sx-never ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-never li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 11px; border-radius: 99px; background: var(--chip); font-size: 14px; font-weight: 600; line-height: 1.5; }
.sx-never li .ic { width: 14px; height: 14px; stroke-width: 2.6; color: var(--bad); }
@media (min-width: 860px) { .sx-never-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }

/* The right file */
.sx-file { display: grid; gap: 20px; }
.sx-file > div { min-width: 0; }
.sx-file p { margin: 0 0 12px; text-wrap: pretty; }
.sx-print { padding: 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.sx-file .sx-label { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.sx-cert, .sx-cmd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.sx-cert { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: 6px 12px; font-size: clamp(16px, 4.6vw, 20px); font-weight: 600; line-height: 1.4; }
.sx-cmd { display: block; padding: 12px 14px; border-radius: 12px; background: var(--alt); font-size: 14px; overflow-wrap: anywhere; }
.sx-copy { margin: 14px 0 20px; min-height: 44px; font-size: 15px; }
.sx-copy[hidden] ~ .sx-label { margin-top: 20px; }
@media (min-width: 860px) {
  .sx-file { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 46px; align-items: center; }
  .sx-print { padding: 28px; }
  .sx-cert { grid-template-columns: repeat(8, max-content); font-size: 18px; }
}

/* Articles */
.sx-article { padding: clamp(28px, 5vw, 60px) 0 clamp(44px, 7vw, 80px); }
.sx-article .eyebrow a { text-decoration: none; }
.sx-article h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.3; margin: 4px 0 18px; }
.sx-article h2 { font-size: clamp(20px, 2.6vw, 24px); margin: 34px 0 8px; line-height: 1.5; }
.sx-article p { font-size: 17px; line-height: 1.9; text-wrap: pretty; }
html[data-script="latin"] .sx-article p { line-height: 1.7; }
.sx-article .eyebrow { font-size: 15px; }
.sx-short { padding: 20px 22px; border-radius: 22px; background: var(--teal-soft); }
.sx-short h2 { margin: 0 0 6px; font-size: 15px; color: var(--accent); }
.sx-short p { margin: 0; }
.sx-art { max-width: 330px; margin: 26px auto 10px; }
@media print { .sx-perms > .answer { display: block; } }

/* Download (site_pages.download). On a computer the two codes stand on the first screen, right under the title; the moving rail comes after the cards. */
[data-device="other"] .dl-top { padding: clamp(20px, 2.2vw, 30px) 0 0; }
[data-device="other"] .dl-top h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 4px; }
[data-device="other"] .dl-top .beta { margin: 6px 0 0; }
[data-device="other"] .dl-top .hero-free { margin-block: 6px 0; margin-inline: 0 14px; }
[data-device="other"] .dl-top + .dl-cards.dl-cards { padding-top: 16px; }
[data-device="other"] .dl-grid > .dl { padding-top: 20px; }
[data-device="other"] .dl-n { margin-bottom: 8px; }
[data-device="other"] .get-card { margin-top: 14px; }
.dl-show { padding-top: 0; }
.dl-show .sc { margin-inline: auto; }
