/* RELIO website: Support, Tips and What's New (site_support.py, site_news.py). Loaded after site.css by those pages only. */

/* A picture beside its words; on a phone the picture stands between the sentence and the list */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 34px; }
.duo:last-child { margin-bottom: 0; }
.duo-say h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; margin: 0 0 10px; text-wrap: balance; }
html[data-script="arab"] .duo-say h2 { line-height: 1.5; }
.duo-say .sec-lead { text-wrap: pretty; }
.duo-more .steps { margin-bottom: 10px; }
.duo .sc { max-width: 440px; }
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 22px 60px; align-items: start; }
  .duo .sc { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .duo.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .duo.flip .sc { grid-column: 1; }
  .duo.flip .duo-say, .duo.flip .duo-more { grid-column: 2; }
}
.sup-jump .jump { margin: 0; }

/* What is it about? */
.sup-jump + .sec { padding-top: 32px; }
.topics, .tcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
@media (min-width: 760px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .tcol { gap: 16px; }
}
.topic { margin: 0; padding: 0; border-radius: 20px; overflow: hidden; transition: box-shadow var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-spring); }
.topic:not([open]):hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.topic > summary { align-items: center; justify-content: flex-start; gap: 14px; padding: 14px 18px; min-height: 78px; }
.topic > summary:focus-visible { outline-offset: -4px; border-radius: 20px; }
.topic .tp { display: grid; flex: 1; min-width: 0; }
.topic .tp b { font-size: 17px; }
.topic .tp span { font-size: 14px; font-weight: 400; color: var(--muted); }
.topic > summary::after, .topic[open] > summary::after {
  content: ""; width: 9px; height: 9px; margin-inline-end: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
  transition: transform var(--d-base) var(--ease-out);
}
.topic[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.topic .answer { padding: 0 18px 16px; }
.topic .answer ul { list-style: none; margin: 0; padding: 0; }
.topic .answer li { padding: 12px 0; border-top: 1px solid var(--line); }
.topic .answer h3 { font-size: 16px; color: var(--text); margin: 0 0 2px; }
.topic .answer li p { margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.topic .answer li a { color: var(--accent); white-space: nowrap; }
.topic .plinks { margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.topic .plinks a { min-height: 28px; }
html.js .topic.reveal.is-done { transition: box-shadow var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-spring); }

/* A small question under the steps */
.aside { margin: 6px 0 0; padding: 0; background: none; box-shadow: none; }
.aside > summary { justify-content: flex-start; align-items: center; gap: 8px; padding: 6px 0; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent); }
.aside .answer p { margin: 0 0 6px; padding: 0; font-size: 15px; color: var(--muted); }

/* What a report holds and never holds */
.holds { border-radius: 22px; padding: 22px 24px; }
.holds ul, .checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.holds li { display: flex; gap: 10px; align-items: flex-start; }
.holds li .ic { margin-top: .28em; width: 19px; height: 19px; color: var(--accent); }
html[data-script="latin"] .holds li .ic { margin-top: .18em; }
.hasnt li .ic { padding: 2px; border-radius: 50%; color: var(--muted); background: var(--chip); }
.rfacts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px 28px; font-size: 14px; color: var(--muted); }
.rfacts li { display: flex; gap: 10px; align-items: flex-start; }
.rfacts li > .ic { margin-top: 2px; color: var(--accent); }
.rfacts p { margin: 0; }
@media (min-width: 820px) { .rfacts { grid-template-columns: repeat(3, 1fr); } }

/* The other help pages: two in a row on a phone */
@media (max-width: 819px) {
  .small-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .small-cards .link-card { padding: 16px; }
  .small-cards h3 { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .small-cards p { font-size: 14px; }
}

/* Write to us */
.write { align-items: start; }
.write .card { border-radius: 22px; padding: 24px; }
.write .chat { background: radial-gradient(90% 90% at 100% 0, var(--teal-soft), transparent 70%), var(--card); }
.apath { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 14px; font-weight: 700; }
.apath span { padding: 5px 13px; border-radius: 999px; background: var(--chip); font-size: 15px; }
.apath span:last-child { color: var(--accent); background: var(--teal-soft); }
.apath .chev { width: 12px; height: 12px; color: var(--muted); }
.chat p:last-child { margin-bottom: 0; }
.checks li { position: relative; padding-inline-start: 28px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: .45em; width: 7px; height: 13px; border: solid var(--accent);
  border-width: 0 2.4px 2.4px 0; transform: rotate(40deg);
}
.write .note { margin: 18px 0 0; }

/* Tips */
.tips .grow { align-items: flex-start; margin: 0; }
.tips .grow .t { font-weight: 500; line-height: 1.6; }
.tips .grow > .ic:first-child { margin-top: .16em; color: var(--ok); }
.tips .grow > .chev { margin-top: .5em; }
.tips p.grow:hover { background: none; }
.tips .beta-mark { margin-top: .2em; }
.duo-more .gap { margin: 22px 0 8px; font-size: 16px; }

/* What's new */
.news { list-style: none; margin: 0; padding: 0; position: relative; max-width: 800px; margin-inline: auto; }
.news::before {
  content: ""; position: absolute; inset-inline-start: 8px; top: 34px; bottom: 60px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--teal), var(--line) 30%, transparent);
}
.nentry { position: relative; padding-inline-start: 36px; margin-bottom: 16px; scroll-margin-top: 84px; }
.nentry::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--page);
  box-shadow: inset 0 0 0 3px var(--muted);
}
.nentry.is-latest::before { background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }
.nentry .card { margin: 0; border-radius: 22px; padding: 20px 22px; }
.nentry.is-latest .card { box-shadow: var(--shadow-lift); }
.nentry h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 18px; margin: 0; }
.nlatest { padding: 1px 12px; border-radius: 999px; font-size: 13px; color: var(--on-primary); background: var(--primary); }
.nvers { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.nver { display: inline-flex; align-items: center; gap: 6px; }
.nver .ic { width: 17px; height: 17px; }
.nlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nlines li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; }
.nkind { display: inline-flex; align-items: center; justify-self: start; gap: 5px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--accent); background: var(--teal-soft); }
.nkind .ic { width: 15px; height: 15px; }
.k-better .nkind { color: var(--part); background: var(--part-soft); }
.k-fixed .nkind { color: var(--ok); background: var(--ok-soft); }
.nmarks { display: flex; gap: 6px; align-items: center; padding-top: 2px; }
.older { max-width: 800px; margin: 6px auto 0; padding: 0; background: none; box-shadow: none; }
.older > summary { justify-content: center; gap: 10px; padding: 12px 22px; margin: 0 auto 16px; width: max-content; border-radius: 999px; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
@media (max-width: 519px) {
  .nentry { padding-inline-start: 26px; }
  .news::before { inset-inline-start: 6px; }
  .nentry::before { inset-inline-start: 0; }
  .nentry .card { padding: 18px; }
  .nlines li { grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; }
  .nline { grid-column: 1 / -1; grid-row: 2; }
}
.nnow { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.nnow li { display: flex; gap: 12px; align-items: center; }
.nnow > li > .ic { width: 26px; height: 26px; color: var(--accent); }
.nnow div { display: grid; }
.nnow span { color: var(--muted); font-size: 15px; }

/* The pictures (site_scenes_support.py): a report's form and code, setting rows, a wall, locks. The kit is scenes.css. */
.sc-h-form { background: var(--ui2); color: var(--ink); z-index: 2; }
.sc-h-form > u { display: block; width: 46%; height: .65em; margin: .6em auto 1.1em; border-radius: .4em; background: var(--ink); opacity: .8; }
.sc-h-grp { display: grid; margin: 0 .7em 1em; padding: 0 .9em; border-radius: 1.2em; background: var(--ui); }
.sc-h-grp > span { display: flex; align-items: center; justify-content: space-between; height: 2.3em; }
.sc-h-grp > span + span { border-top: 1px solid var(--ui2); }
.sc-h-grp b { width: var(--w); height: .5em; border-radius: .3em; background: var(--ink); opacity: .6; }
.sc-h-grp .sc-i { color: #0a7cff; font-size: 1.4em; }
.sc-h-btn { position: relative; display: grid; place-items: center; margin: 0 .7em; min-height: 2.5em; border-radius: 99px; font-size: max(.75rem, 1.2em); font-weight: 700; color: #fff; background: #0a6cff; }
.sc-h-btn .sc-press { inset: 0; width: 2.6em; height: 2.6em; margin: auto; }
.sc-h-dim { z-index: 4; background: rgba(0, 0, 0, .2); }
.sc-h-alert { position: absolute; inset-inline: .5em; top: 30%; display: grid; gap: .8em; padding: 1.1em .4em .6em; border-radius: 1.7em; background: var(--ui); color: var(--ink); box-shadow: 0 0 0 1px var(--edge), 0 1em 2em -.6em rgba(0, 0, 0, .5); }
.sc-h-alert .sc-code { font-size: max(.75rem, 1.45em); }
.sc-h-alert .sc-h-btn { margin: 0 .3em; }
.sc-p1 .sc-bub .sc-code, .sc-p1 .sc-field .sc-code { font-weight: 600; font-size: max(.75rem, 1em); letter-spacing: -.02em; }
.sc-p1 .sc-field { padding-inline: .55em; }
.sc-h-case { padding: .35em .8em .35em .7em; font-size: max(.9375rem, calc(16 * var(--u))); }
.sc-h-case .sc-in .sc-i { display: block; color: var(--ok-c); }
.sc-h-case .sc-h-ok2 { margin-inline-start: -.75em; }
.sc-h-set { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: calc(18 * var(--u)); text-align: start; color: var(--ink); background: var(--ui); box-shadow: 0 0 0 1px var(--edge), 0 calc(8 * var(--u)) calc(18 * var(--u)) calc(-12 * var(--u)) var(--fall); }
.sc-h-set > i, .sc-h-set > em { flex: none; display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: calc(11 * var(--u)); font-size: calc(21 * var(--u)); color: #fff; background: #a35f00; }
.sc-h-set > b { flex: 1; min-width: 0; font-size: max(.75rem, calc(13 * var(--u))); font-weight: 700; line-height: 1.4; }
.sc-h-set > em { width: calc(24 * var(--u)); height: calc(24 * var(--u)); border-radius: 50%; font-size: calc(15 * var(--u)); background: none; box-shadow: inset 0 0 0 1.5px var(--ui3); }
.sc-h-set-ok { display: grid; place-items: center; width: calc(24 * var(--u)); height: calc(24 * var(--u)); border-radius: 50%; background: var(--ok-c); }
.sc-h-wall { border-radius: 4px; background: linear-gradient(var(--ui3), var(--mut)); opacity: .5; }
.sc-h-walk { position: absolute; inset-inline-start: calc(-33 * var(--u)); top: calc(-67.3 * var(--u)); width: calc(358 * var(--u)); height: calc(260 * var(--u)); }
.sc-h-home { background: linear-gradient(170deg, var(--ui), var(--ui2)); }
.sc-h-mid { position: absolute; inset: 0; display: grid; place-items: center; }
.sc-h-mid > * { grid-area: 1 / 1; }
.sc-h-app .sc-i { width: 4.2em; height: 4.2em; border-radius: 26%; box-shadow: 0 .5em 1em -.4em var(--fall); }
.sc-h-face { margin-top: 8em; color: #fff; }
.sc-h-face .sc-i { width: 2.6em; height: 2.6em; }

@media (forced-colors: active), (prefers-contrast: more) {
  .sc-h-set, .sc-h-alert, .sc-h-btn, .sc-h-case { outline: 2px solid currentColor; outline-offset: -1px; }
  .topic, .holds, .nentry .card { outline: 1px solid currentColor; }
}
