/* The help pages (the Interlude download, the manual's front page, /support/ and its articles):
   doc.css's calm company look, plus what those pages need on top: a product lockup, buttons,
   commands to copy, file checksums and release notes. Loaded after doc.css. */

/* A product page's lockup: its own icon and name instead of the company C. */
.lockup.product img { border-radius: 7px; }
.crumbs { font: 500 12px/1 var(--mono); letter-spacing: calc(.08em * var(--mono-tk)); text-transform: uppercase; color: var(--mute); }
.crumbs a { color: var(--text2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.top .crumbs { margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line2); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 18px; border-radius: 999px; background: var(--gold); color: #1A1206; font: 600 15.5px/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: #FFC766; color: #1A1206; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: rgba(var(--gold-rgb), .6); color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* What the page is waiting for, or what went wrong (the feed, a copy). */
.status { margin-top: 22px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); color: var(--text2); font-size: 15px; }
.status.err { border-color: rgba(255, 120, 110, .5); background: rgba(255, 92, 92, .08); color: #FFC9C2; }
.status strong { color: inherit; }
.release { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.release b { font: 700 22px/1.2 var(--display); color: var(--text); letter-spacing: -.01em; }

/* A platform's card: what it needs, the file, its checksum. */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 24px; }
.platforms .card { margin-top: 0; display: flex; flex-direction: column; }
.platforms .card ul { margin-top: 8px; color: var(--text2); font-size: 15px; }
.platforms .card .actions { margin-top: auto; padding-top: 18px; }
.card.absent { opacity: .62; }
.file { margin-top: 12px; display: grid; gap: 4px; font-size: 14px; color: var(--text2); }
.file .name { font: 500 13px/1.5 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.hash { font: 400 11.5px/1.6 var(--mono); color: var(--mute); overflow-wrap: anywhere; word-break: break-all; }

/* Commands and code. */
code { font: 400 .86em/1.5 var(--mono); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.cmd { position: relative; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0B0F17; }
.cmd pre { margin: 0; padding: 13px 16px; overflow-x: auto; font: 400 13px/1.6 var(--mono); color: var(--text); white-space: pre; }
.cmd .label { display: block; padding: 10px 16px 0; font: 500 11px/1 var(--mono); letter-spacing: calc(.1em * var(--mono-tk)); text-transform: uppercase; color: var(--mute); }

/* Address tables: an address never breaks; on a phone the table scrolls sideways instead. */
.table-scroll { -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 600px; }
.table-scroll td code { white-space: nowrap; overflow-wrap: normal; }

/* Release notes from the feed. */
.notes { margin-top: 14px; }
.notes h3 { margin-top: 26px; }
.notes h4 { margin: 16px 0 4px; font: 600 15px/1.3 var(--body); color: var(--text); }
.notes .when { color: var(--mute); font: 500 12px/1 var(--mono); letter-spacing: calc(.08em * var(--mono-tk)); margin-left: 8px; text-transform: uppercase; }
details.older { margin-top: 18px; }
details.older summary { cursor: pointer; color: var(--gold); }

/* Lists of articles and documents. */
.links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.links li { margin: 0; }
.links a { display: block; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(255, 255, 255, .025); color: var(--text); text-decoration: none; }
.links a:hover { border-color: rgba(var(--gold-rgb), .55); }
.links a b { display: block; font: 700 17px/1.3 var(--display); }
.links a span { display: block; margin-top: 4px; color: var(--text2); font-size: 15px; }
.links .tag { display: inline-block; margin-top: 8px; font: 500 11px/1 var(--mono); letter-spacing: calc(.1em * var(--mono-tk)); text-transform: uppercase; color: var(--mute); }

.note { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(var(--gold-rgb), .06); border-radius: 0 10px 10px 0; color: var(--text2); font-size: 15px; }
.note strong { color: var(--text); }

@media print {
  .btn, .actions, details.older summary { display: none; }
  .cmd { background: none; }
}
