body { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 11pt; line-height: 1.45;
       max-width: 52em; margin: 2em auto; padding: 0 1em; color: #1f2328; }
h1, h2 { border-bottom: 1px solid #d0d7de; padding-bottom: .3em; }
img { max-width: 100%; max-height: 15cm; width: auto; display: block; margin: 1em auto; }
code, pre { font-family: "DejaVu Sans Mono", Consolas, monospace; font-size: 9.5pt; background: #f6f8fa; }
pre { font-size: 9pt; padding: .8em; border-radius: 6px; overflow-x: auto; white-space: pre-wrap; line-height: 1.2; }
table { border-collapse: collapse; margin: 1em 0; font-size: 10pt; }
th, td { border: 1px solid #d0d7de; padding: .35em .6em; vertical-align: top; }
th { background: #f6f8fa; }
blockquote { border-left: .25em solid #d0d7de; margin: 0; padding: 0 1em; color: #59636e; }
a { color: #0969da; }
/* page.css -- a House of cards page on top of readme.css (cpu/dist): the board's green as the accent, the gold of an
   edge connector under the title, code blocks never wrapped.  No inline style anywhere: the site's CSP. */
pre, pre code { white-space: pre; }
body { max-width: 62em; }
a { color: #0b6e4f; }
h1 { border-bottom: 4px solid #0b6e4f; box-shadow: 0 3px 0 #d4a72c; letter-spacing: -0.01em; }
h2 { border-bottom: 1px solid #c6c6c6; }
blockquote { border-left: .3em solid #0b6e4f; background: #eef7f2; color: #161616; padding: .6em 1em; }
th { background: #f4f4f4; }
.num { text-align: right; }
.mid { text-align: center; }
td strong { color: #0b6e4f; }
img[src="network_card.svg"] { max-height: none; }   /* the network card inside: tall, legible at full width */
img[src="system_rtp_avb.svg"] { max-height: none; width: 100%; }   /* the soundcard system: wide */
img[src="board_network.jpg"] { max-height: 6cm; width: auto; border: 1px solid #c6c6c6; }   /* the board photo: small */
img[src="soundcard_card.svg"] { max-height: none; width: 100%; }   /* the soundcard inside: wide */
img[src^="fp_"] { max-height: none; max-width: 100%; }              /* the fine-phase chapter's figures */
img[src="wireguard.svg"] { max-height: none; width: 100%; }   /* the WireGuard appliance: wide */

/* ---- Solarized dark: the default colour scheme of the House of cards pages ---- */
html, body { background: #002b36; color: #839496; }
h1, h2, h3, h4, h5, h6, strong, b { color: #93a1a1; }
h1, h2 { border-bottom-color: #586e75; }
a { color: #268bd2; }
a:visited { color: #6c71c4; }
code, pre { background: #073642; color: #93a1a1; }
pre code { background: none; }
th, td { border-color: #586e75; }
th { background: #073642; color: #93a1a1; }
blockquote { background: #073642; color: #93a1a1; border-left-color: #2aa198; }
::selection { background: #073642; color: #93a1a1; }
/* House of cards accents, in Solarized */
h1 { border-bottom-color: #859900; box-shadow: 0 3px 0 #b58900; }
blockquote { border-left-color: #859900; }
td strong { color: #859900; }
/* deck.css -- the House of cards landing page on top of readme.css + page.css: a card table (green felt), a face-down
   pile, three face-up cards fanned that are PCIe cards too (the gold edge connector at their foot).  CSS and inline
   SVG only: no script, no image file, no inline style (the site's CSP). */
.kick { font-size: 1.15em; color: #3d4148; margin-top: -.4em; }
.table { position: relative; margin: 1.5em 0 2em; padding: 2.2em 1em 1.2em; border-radius: 22px; overflow: hidden;
         background-color: #0b5d3b;
         background-image: radial-gradient(ellipse at 50% 35%, #138a57 0%, #0b5d3b 55%, #073d27 100%);
         box-shadow: inset 0 0 0 6px #5a3a1a, inset 0 0 0 9px #8a5a2b, inset 0 0 40px rgba(0, 0, 0, .55); }
.pick { text-align: center; color: #e9f5ee; font-style: italic; letter-spacing: .05em; margin: .6em 0 0; }

/* the pile: five backs, a pixel apart */
.pile { position: absolute; left: 2.2em; top: 2.4em; width: 120px; height: 180px; }
.back { position: absolute; width: 120px; height: 180px; border-radius: 10px; border: 4px solid #fff;
        background-color: #7a1424;
        background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 4px, transparent 4px 10px),
                          repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 4px, transparent 4px 10px);
        box-shadow: 1px 2px 3px rgba(0, 0, 0, .45); }
.b1 { left: 0; top: 0; } .b2 { left: 2px; top: -2px; } .b3 { left: 4px; top: -4px; } .b4 { left: 6px; top: -6px; }
.b5 { left: 8px; top: -8px; }

/* the fan: three cards on one pivot below the table's middle */
.fan { position: relative; height: 520px; }   /* room above the cards for the aces */
.card { position: absolute; left: 50%; top: 190px; width: 200px; height: 300px; margin-left: -100px; display: block;
        transform-origin: 50% 100%; transition: transform .25s ease, filter .25s ease; filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, .5)); }
.card svg { display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; }
.c1 { transform: translateX(-190px) rotate(-10deg); z-index: 1; }
.c2 { transform: translateY(-14px);                  z-index: 2; }
.c3 { transform: translateX(190px) rotate(10deg);   z-index: 3; }
.c1:hover, .c1:focus-visible { transform: translateX(-190px) rotate(-10deg) translateY(-30px); z-index: 4; }
.c2:hover, .c2:focus-visible { transform: translateY(-44px); z-index: 4; }
.c3:hover, .c3:focus-visible { transform: translateX(190px) rotate(10deg) translateY(-30px); z-index: 4; }
.card:hover, .card:focus-visible { filter: drop-shadow(4px 10px 8px rgba(0, 0, 0, .6)); outline: none; }
.card:focus-visible .face { stroke: #d4a72c; stroke-width: 4; }

/* the card's face */
.face { fill: #fffdf7; stroke: #c9c2b0; stroke-width: 1.5; }
.idx { font: bold 26px Georgia, "Times New Roman", serif; }
.suit { font: 22px Georgia, "Times New Roman", serif; }
.black { fill: #1f2328; } .red { fill: #b3122e; }
.name { font: bold 25px Georgia, "Times New Roman", serif; fill: #1f2328; text-anchor: middle; }
.chip { font: 13px -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; fill: #59636e; text-anchor: middle; }
.ink { fill: #0b6e4f; stroke: #074a35; stroke-width: 1.5; }
.top { fill: #13a072; stroke: #074a35; stroke-width: 1.5; }
.hole { fill: #fffdf7; }
.pins rect { fill: #d4a72c; }
.wave { fill: none; stroke: #0b6e4f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.led1 { fill: #3fb950; } .led2 { fill: #d29922; }
.gold rect { fill: #0b6e4f; }
.fingers rect { fill: #d4a72c; }
.c2 .ink, .c3 .ink { fill: #0b6e4f; }
.card:hover .led1 { fill: #7ee787; }

@media (max-width: 640px) {
  .pile { display: none; }
  .fan { height: 380px; }
  .card { width: 120px; height: 180px; margin-left: -60px; top: 170px; }
  .c1 { transform: translateX(-100px) rotate(-10deg); }
  .c3 { transform: translateX(100px) rotate(10deg); }
  .c1:hover, .c1:focus-visible { transform: translateX(-100px) rotate(-10deg) translateY(-20px); }
  .c3:hover, .c3:focus-visible { transform: translateX(100px) rotate(10deg) translateY(-20px); }
}
@media (min-width: 641px) and (max-width: 1000px) { .pile { display: none; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.hw { border: 2px solid #0b6e4f; background: #eef7f2; padding: .5em 1em; border-radius: 6px; font-size: 1.05em; }
.hw a { font-weight: bold; }

/* the ace behind a card: hidden behind it, it slides out on hover (CSS only, the site's CSP) */
.ace { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; transition: transform .35s ease; }
.ace svg { display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; }
.aceface { fill: #fffdf6; stroke: #d4a72c; stroke-width: 4; }
.acecorner { font: bold 26px Georgia, serif; text-anchor: start; }
.acesuit { font: 84px Georgia, serif; text-anchor: middle; }
.acetitle { font: bold 17px Georgia, serif; text-anchor: middle; fill: #161616; }
.acesub { font: 12px sans-serif; text-anchor: middle; fill: #555; }
.red { fill: #b3261e; }  .blk { fill: #161616; }
.c1:hover .ace, .c1:focus-visible .ace { transform: translate(-40px, -140px) rotate(-8deg); }
.c2:hover .ace, .c2:focus-visible .ace { transform: translate(0, -140px); }
@media (prefers-reduced-motion: reduce) { .ace { transition: none; } }
@media (max-width: 640px) {
  .c1:hover .ace, .c1:focus-visible .ace { transform: translate(-25px, -90px) rotate(-8deg); }
  .c2:hover .ace, .c2:focus-visible .ace { transform: translate(0, -90px); }
}

/* ---- Solarized dark (see page.css): the landing page's own elements ---- */
.kick { color: #93a1a1; }
.hw { border-color: #859900; background: #073642; }
