/* about.css 2.0 — the hidden menu behind the logo ("About"), shared by the DATAROSS file-transfer sites.
 * Layout: a list of sections on a soft rail (icon and word per row; one white highlight that slides to the chosen
 * row) and the chosen section beside it. It opens on the logo's side (left); on a phone it rises from the bottom
 * and the list runs sideways.
 * The page supplies the colours and type through these names:
 *   --ab-paper --ab-soft --ab-ink --ab-ink2 --ab-ink3 --ab-line --ab-accent --ab-on-accent --ab-chip --ab-on-chip
 *   --ab-ok --ab-bad --ab-font --ab-mono --ab-head-weight --ab-r */
.about-back { position: fixed; inset: 0; z-index: 300; background: rgba(8, 11, 24, .5); animation: ab-fade .16s ease; }
.about { position: fixed; z-index: 301; top: 0; left: 0; bottom: 0; width: min(100%, 800px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
  background: var(--ab-paper); color: var(--ab-ink); font-family: var(--ab-font); font-size: 15px; line-height: 1.5; text-align: left;
  padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px);
  box-shadow: 24px 0 60px -30px rgba(0, 0, 0, .55); animation: ab-slide .22s cubic-bezier(0, 0, .2, 1); }
.about[hidden], .about-back[hidden], .about-pane[hidden] { display: none; }
.about *, .about *::before, .about *::after { box-sizing: border-box; }
.about h2, .about h3, .about h4, .about p, .about ul, .about ol, .about dl, .about dd { margin: 0; padding: 0; }
.about svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.about-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px 22px; border-bottom: 1px solid var(--ab-line); }
.about-head h2 { font-size: 22px; line-height: 1.2; font-weight: var(--ab-head-weight, 800); letter-spacing: -.02em; }
.about-x { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--ab-line); border-radius: 50%; background: var(--ab-paper); color: var(--ab-ink2); cursor: pointer; font-size: 18px; padding: 0; }
.about-x:hover { color: var(--ab-ink); border-color: var(--ab-ink3); }

/* the list: one highlight, moved behind the chosen row */
.about-main { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 0; }
.about-rail { background: var(--ab-soft); border-right: 1px solid var(--ab-line); padding: 12px; overflow: auto; min-height: 0; }
.about-nav { position: relative; display: grid; }
.about-pill { position: absolute; left: 0; top: 0; width: 100%; height: 40px; border-radius: 10px; background: var(--ab-paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .07); pointer-events: none; }
.about-nav.is-ready .about-pill { transition: transform .2s cubic-bezier(0, 0, .2, 1), width .2s cubic-bezier(0, 0, .2, 1), height .2s cubic-bezier(0, 0, .2, 1); }
.about-tab { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ab-ink2); text-align: left; white-space: nowrap; cursor: pointer; transition: color .2s cubic-bezier(0, 0, .2, 1); }
.about-tab svg { font-size: 18px; color: var(--ab-ink3); transition: color .2s cubic-bezier(0, 0, .2, 1); }
.about-tab:hover { color: var(--ab-ink); }
.about-tab[aria-selected="true"], .about-tab[aria-selected="true"] svg { color: var(--ab-accent); }
.about-tab:focus-visible, .about-x:focus-visible, .about-thumb:focus-visible, .about-btn:focus-visible, .about select:focus-visible, .about textarea:focus-visible, .about a:focus-visible { outline: 3px solid var(--ab-accent); outline-offset: 2px; }
.about-tab:focus-visible { outline-offset: -3px; }

/* the chosen section */
.about-panes { overflow: auto; overscroll-behavior: contain; min-height: 0; padding: 18px 22px 24px; }
.about-pane { display: grid; gap: 14px; align-content: start; color: var(--ab-ink2); animation: ab-in .2s cubic-bezier(0, 0, .2, 1); }
.about-pane > h3 { font-size: 20px; line-height: 1.25; font-weight: var(--ab-head-weight, 800); letter-spacing: -.01em; color: var(--ab-ink); }
.about-pane b, .about-pane dt, .about-pane h4 { color: var(--ab-ink); }
.about-intro { font-size: 16px; }
.about-steps { list-style: none; display: grid; gap: 14px; }
.about-steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.about-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ab-chip); color: var(--ab-on-chip); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.about-steps h4 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.about-steps .mono-chip, .about-steps .hs-code { font-family: var(--ab-mono, monospace); font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--ab-soft); color: var(--ab-ink); border: 1px solid var(--ab-line); }
.about-facts { list-style: none; display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--ab-soft); border: 1px solid var(--ab-line); }
.about-facts li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; }
.about-facts svg { font-size: 18px; color: var(--ab-ok); margin-top: 2px; }
.about-facts b { display: block; font-size: 15px; }
.about-dl dt { font-weight: 700; margin-top: 14px; }
.about-dl dt:first-child { margin-top: 0; }
.about-dl dd { margin-top: 2px; }
.about-list { list-style: none; display: grid; gap: 10px; }
.about-list li { position: relative; padding-left: 16px; }
.about-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ab-ink3); }
.about a { color: var(--ab-accent); text-underline-offset: 2px; }
.about-small { font-size: 13px; color: var(--ab-ink3); }
.about-parts { list-style: none; display: grid; gap: 4px; font-size: 14px; }
.about-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--ab-line); }
.about-parts li:last-child { border-bottom: 0; }

.about-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.about-rate-q { font-weight: 600; color: var(--ab-ink); margin-right: 2px; }
.about-thumb { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--ab-line); background: var(--ab-paper); color: var(--ab-ink2); cursor: pointer; font-size: 18px; padding: 0; }
.about-thumb:hover { border-color: var(--ab-ink3); color: var(--ab-ink); }
.about-thumb[aria-pressed="true"] { background: var(--ab-chip); border-color: var(--ab-chip); color: var(--ab-on-chip); }
.about-thumb:disabled, .about-btn:disabled { opacity: .55; cursor: default; }
.about-note { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.about-note.is-ok { color: var(--ab-ok); }
.about-note.is-bad { color: var(--ab-bad); }
.about-form { display: grid; gap: 8px; }
.about-lab { font-weight: 600; color: var(--ab-ink); }
.about select, .about textarea { width: 100%; font: inherit; color: var(--ab-ink); background: var(--ab-paper); border: 1.5px solid var(--ab-line); border-radius: 10px; padding: 9px 10px; }
.about select { height: 42px; }
.about textarea { resize: vertical; min-height: 92px; max-height: 40vh; }
.about-send { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.about-btn { min-height: 42px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--ab-accent); color: var(--ab-on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.about-foot { font-size: 12.5px; color: var(--ab-ink3); text-align: center; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ab-line); }

@keyframes ab-fade { from { opacity: 0; } }
@keyframes ab-slide { from { transform: translateX(-24px); opacity: 0; } }
@keyframes ab-rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes ab-in { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 720px) {
  .about { top: auto; width: 100%; height: min(88%, 760px); border-radius: 22px 22px 0 0; padding-top: 0; box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .55); animation: ab-rise .22s cubic-bezier(0, 0, .2, 1); }
  .about-head { padding: 12px 12px 10px 18px; }
  .about-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .about-rail { border-right: 0; border-bottom: 1px solid var(--ab-line); padding: 8px 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .about-rail::-webkit-scrollbar { display: none; }
  .about-nav { display: flex; width: max-content; gap: 2px; }
  .about-tab { width: auto; height: 38px; padding: 0 12px; gap: 8px; }
  .about-panes { padding: 16px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { .about, .about-back, .about-pane { animation: none; } .about-nav.is-ready .about-pill, .about-tab, .about-tab svg { transition: none; } }
