/* The reference pages: /privacy, /terms, /security, /relay. What site.css lacks. */
.page-head a, .prose a code { color:var(--link); }
.page-head a { text-decoration:underline; text-underline-offset:3px; }
.page-head a:hover { color:var(--link-hover); }
.page-head .meta { color:var(--muted); font-size:14px; margin-top:14px; overflow-wrap:anywhere; }
.prose p, .prose li { overflow-wrap:break-word; }
/* Legal drafts: the banner above the text. */
/* /privacy: what the relay keeps. Scrolls inside itself on a phone. */
.table-scroll { margin-top:18px; overflow-x:auto; }
.table-scroll table { border-collapse:collapse; width:100%; min-width:560px; font-size:14px; line-height:1.5; }
.table-scroll th, .table-scroll td { text-align:left; vertical-align:top; padding:10px 12px 10px 0; border-bottom:1px solid var(--line); }
.table-scroll thead th { color:var(--muted); font-weight:600; border-bottom-color:var(--line2); }
.table-scroll tbody th { font-weight:600; }
.table-scroll tbody td { color:var(--muted); }
/* /relay: the three paths, drawn under the page's opening lines. */
.paths { margin:44px 0 0; }
.paths ul { list-style:none; padding:0; margin:0; display:grid; gap:18px; }
.paths .path { display:grid; grid-template-columns:7em 9.5em minmax(0,1fr) 9.5em 15em; align-items:center; margin:0; font-size:14.5px; }
.path .dev { background:var(--card2); border:1.5px solid var(--line2); border-radius:10px; padding:.7em .6em; font-weight:700; text-align:center; line-height:1.2; }
.path .dev.hub { background:var(--chip); border-color:var(--accent); padding-left:1.1em; padding-right:1.1em; }
.path .mid { display:flex; align-items:center; }
.path .wire { flex:1; min-width:1.2em; height:1.5px; background:var(--line2); position:relative; }
.path .wire i { position:absolute; top:50%; left:0; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%; background:var(--ok); animation:path-go 2.4s linear infinite; }
.path.via .wire i { background:var(--accent); animation-name:path-first; }
.path.via .wire.late i { animation-name:path-second; }
.path .wire em { position:absolute; left:0; right:0; bottom:.55em; text-align:center; font-style:normal; font-size:13px; color:var(--muted); }
/* What the path costs: the same meter on each row, and only the relayed one fills. */
.path .cost { padding-left:1.6em; font-size:14px; display:grid; gap:7px; }
.path .cost.ok { color:var(--ok); }
.path .cost.a { color:var(--accent); }
.path .meter { height:6px; border-radius:3px; background:var(--line2); overflow:hidden; }
.path .meter i { display:block; height:100%; width:0; border-radius:3px; background:var(--accent); }
.path.via .meter i { width:45%; animation:meter-fill 12s steps(5,end) infinite; }
@keyframes path-go { 0% { left:0; opacity:0; } 10%, 90% { opacity:1; } 100% { left:100%; opacity:0; } }
@keyframes path-first { 0% { left:0; opacity:0; } 5%, 45% { opacity:1; } 50%, 100% { left:100%; opacity:0; } }
@keyframes path-second { 0%, 50% { left:0; opacity:0; } 55%, 95% { opacity:1; } 100% { left:100%; opacity:0; } }
@keyframes meter-fill { from { width:30%; } to { width:60%; } }
@media (prefers-reduced-motion:reduce) { .path .wire i { display:none; } .path.via .meter i { animation:none; } }
@media (max-width:820px) {
  .paths ul { gap:24px; }
  .paths .path { grid-template-columns:auto minmax(0,1fr) auto; row-gap:10px; font-size:13px; }
  .path b { grid-column:1; grid-row:1; font-size:15px; align-self:start; }
  .path .cost { grid-column:2 / -1; grid-row:1; justify-self:end; padding-left:1em; text-align:right; }
  .path .meter { width:9em; justify-self:end; }
  .path .dev { max-width:6.2em; }
  .path .dev.hub { padding-left:.6em; padding-right:.6em; }
}
