/* Ringtail Raiders reference pages (guns, raiders, world, port, hounds, FAQ): the game's look, built to read. */
.rr-ref { background: #FFF7E8; color: var(--rr-ink); }
.rr-ref main { display: block; }

/* page head on the game's water */
.rr-band { position: relative; overflow: hidden; background: #2FB8CC url("../img/zone-home.webp") 0 0 / 240px repeat; color: #fff; }
.rr-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,51,.0) 40%, rgba(14,26,51,.28)); pointer-events: none; }
.rr-band .wrap { position: relative; z-index: 1; display: grid; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.rr-band .wrap > div { display: grid; gap: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font: 800 var(--fs-label) var(--game-body); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.crumbs a { color: #fff; }
.rr-band h1 { font-size: var(--fs-d1); line-height: .95; }
.rr-band .lede { font: 800 var(--fs-lede)/1.5 var(--game-body); max-width: 34em; text-shadow: 0 1px 0 var(--rr-ink), 0 0 8px rgba(14,21,38,.55); }
.rr-band .art { justify-self: center; }
.rr-band .art img { width: min(220px, 56vw); height: auto; filter: drop-shadow(4px 8px 0 rgba(14,21,38,.3)); }
@media (min-width: 900px) {
  .rr-band .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 32px; padding-bottom: 56px; }
  .rr-band .wrap > .crumbs { grid-column: 1 / -1; }
  .rr-band .art img { width: 260px; }
}

/* body copy */
.ref { padding: 56px 0 16px; }
.ref .wrap { display: grid; gap: 64px; }
.ref section { display: grid; gap: 16px; }
@media (min-width: 900px) { .ref { padding-top: 80px; } .ref .wrap { gap: 88px; } }
.ref h2 { font: 400 var(--fs-d2)/1.05 var(--game); color: var(--rr-navy); letter-spacing: .01em; }
.ref h3 { font: 400 var(--fs-d3)/1.1 var(--game); color: var(--rr-navy); }
.ref p, .ref li { font: 400 var(--fs-body)/1.6 var(--game-body); max-width: 40em; }
.ref ul, .ref ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.ref a { color: #1B5FAE; font-weight: 800; }
.ref .note { font-size: var(--fs-small); color: #4A5A72; }
.later { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--rr-ink); color: var(--gold); font: 800 var(--fs-label)/1.6 var(--game-body); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }

/* image cards: art, a name, a line or two. No boxes: the art is the card. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.tiles > li { display: block; max-width: none; }
.tile { position: relative; display: grid; gap: 8px; align-content: start; height: 100%; color: var(--rr-ink) !important; text-decoration: none; font-weight: 400 !important; }
.tile img { width: 100%; height: auto; transition: transform .25s ease; filter: drop-shadow(0 6px 0 rgba(14,21,38,.14)); }
a.tile:hover img { transform: translateY(-4px); }
a.tile:hover b { color: #1B5FAE; }
.tile b { margin-top: 6px; font: 400 var(--fs-d4)/1.1 var(--game); color: var(--rr-navy); }
.tile span { font: 400 var(--fs-small)/1.5 var(--game-body); color: #34445E; }
.tile span strong { font-weight: 800; }
.tile b .later { position: absolute; z-index: 1; top: 10px; left: 10px; }
.tile.dim img { opacity: .6; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; } }
@media (min-width: 1000px) { .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* facts: the Logbook panel, on parchment */
.facts-rr { display: grid; margin: 0; padding: 8px 24px; max-width: 44em; background: #F3E2BF; border-radius: 16px; box-shadow: inset 0 0 0 2px #E0C995, 0 5px 0 rgba(14,21,38,.12); }
.facts-rr div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #DCC28C; }
.facts-rr div:last-child { border-bottom: 0; }
.facts-rr dt { font: 400 var(--fs-d4)/1.3 var(--game); color: #7A4E1E; }
.facts-rr dd { margin: 0; font: 700 var(--fs-body)/1.5 var(--game-body); color: var(--rr-ink); }
@media (max-width: 500px) { .facts-rr { padding: 4px 18px; } .facts-rr div { grid-template-columns: 1fr; gap: 2px; } }

/* a gun's two paths */
.paths-rr { display: grid; gap: 24px; }
.path-col { display: grid; gap: 16px; align-content: start; padding-top: 16px; border-top: 3px solid var(--rr-navy); }
.path-col header { display: flex; align-items: center; gap: 10px; }
.path-col header img { width: 34px; height: 34px; }
.path-col header b { font: 400 var(--fs-d3) var(--game); color: var(--rr-navy); }
.path-col p { font-size: var(--fs-body); }
.levels-rr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.levels-rr li { display: grid; gap: 4px; justify-items: center; text-align: center; font: 800 var(--fs-small)/1.3 var(--game-body); max-width: none; }
.levels-rr li small { font: 700 var(--fs-label) var(--game-body); color: #526078; }
.levels-rr .noart { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border: 2px dashed #B9A988; border-radius: 12px; color: #526078; font-size: var(--fs-label); padding: 6px; }
@media (min-width: 800px) { .paths-rr { grid-template-columns: 1fr 1fr; } }

/* gun color stripe */
.g-long { --gc: var(--c-long); } .g-rapid { --gc: var(--c-rapid); } .g-splash { --gc: var(--c-splash); } .g-missile { --gc: var(--c-missile); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--gc); border: 2px solid var(--rr-ink); vertical-align: -1px; margin-right: 6px; }

/* poster + text */
.split { display: grid; gap: 22px; align-items: start; }
.split .poster-big img { width: min(340px, 100%); height: auto; transform: rotate(-1.5deg); filter: drop-shadow(4px 8px 0 rgba(14,21,38,.22)); }
@media (min-width: 800px) { .split { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; } }

/* wide art */
.wide-art { border: 3px solid var(--rr-ink); border-radius: 16px; overflow: hidden; background: var(--rr-navy-2); }
.wide-art img { width: 100%; height: auto; display: block; }

/* prev / next */
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 2px solid #E7D9BE; }
.pager a { font: 400 var(--fs-d4) var(--game) !important; color: var(--rr-navy) !important; text-decoration: none; padding: 10px 0; }

/* the launch alert, at the foot of every page */
.alert-band { margin-top: 64px; background: var(--rr-navy); color: #fff; border-top: 3px solid var(--rr-ink); }
.alert-band .wrap { display: grid; gap: 18px; padding-top: 34px; padding-bottom: 40px; }
.alert-band h2 { font: 400 var(--fs-d2)/1.05 var(--game); color: #fff; }
.alert-band .signup label { color: #fff; }
.alert-band .signup input[type=email] { border-color: var(--rr-ink); }
.alert-band .signup button, .rr .signup button { background: #47B33A; border: 3px solid var(--rr-ink); color: #fff; font: 400 var(--fs-d4) var(--game); letter-spacing: .02em; box-shadow: inset 0 -5px 0 #2E8A26, 0 3px 0 var(--rr-ink); text-shadow: 0 2px 0 var(--rr-ink), 1px 0 0 var(--rr-ink), -1px 0 0 var(--rr-ink); }
.alert-band .signup button:hover, .rr .signup button:hover { background: #52C244; }
.alert-band .signup .consent, .alert-band .signup .consent a { color: #C9D6EE; }
.alert-band .signup .done { color: var(--gold); }
@media (min-width: 900px) { .alert-band .wrap { grid-template-columns: minmax(0, 1fr) 460px; align-items: center; } }

/* FAQ */
.rr-ref details.faq { border-top: 2px solid #E7D9BE; max-width: 46em; }
.rr-ref details.faq summary { cursor: pointer; font: 400 var(--fs-d4)/1.25 var(--game); color: var(--rr-navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.rr-ref details.faq summary::after { content: "+"; font: 400 24px/1 var(--game); color: var(--c-long); }
.rr-ref details.faq[open] summary::after { content: "\2013"; }
.rr-ref details.faq p { margin: 0 0 14px; }

/* routes table */
.table-wrap { overflow-x: auto; border: 3px solid var(--rr-ink); border-radius: 14px; background: #fff; }
.routes-rr { width: 100%; border-collapse: collapse; font: 700 var(--fs-small)/1.4 var(--game-body); min-width: 560px; }
.routes-rr th, .routes-rr td { padding: 10px 12px; text-align: left; border-bottom: 2px solid #EFE3CB; vertical-align: top; }
.routes-rr thead th { font: 400 var(--fs-small) var(--game); color: #fff; background: var(--rr-navy); }
.routes-rr tbody th { font: 400 var(--fs-d4) var(--game); color: var(--rr-navy); }
.routes-rr tr:last-child th, .routes-rr tr:last-child td { border-bottom: 0; }
.routes-rr tbody tr.zone th { padding: 8px 12px; font: 400 var(--fs-label) var(--game); letter-spacing: .06em; text-transform: uppercase; color: #5A3A22; background: var(--sand); }
.alert-band .kick { margin-top: 8px; font: 700 var(--fs-body)/1.5 var(--game-body); color: #C9D6EE; }

/* one "Coming later" tag, on the art */
.tile .later { color: var(--gold); font: 800 var(--fs-label)/1.6 var(--game-body); letter-spacing: .08em; }
.notes-rr { display: grid; gap: 40px; }
.notes-rr section { gap: 8px; }
@media (max-width: 899px) { .rr-band .art { justify-self: start; } .rr-band .art img { width: 140px; } }
.facts-rr.wide { max-width: 52em; }
/* response ship and rank pages */
.rr-band .art.ship img { width: min(420px, 84vw); }
.rr-band .art.chest img { max-width: 240px; }   /* a 240 px file */
.tiles.ships { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .tiles.ships { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot-wide { margin: 4px 0 0; }
.shot-wide img { display: block; width: 100%; max-width: 720px; height: auto; border-radius: 14px; box-shadow: 0 5px 0 rgba(14,21,38,.12); }
.titles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; max-width: 680px; margin: 4px 0 0; padding: 0; list-style: none; }
@media (min-width: 480px) { .titles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.titles li { display: grid; justify-items: center; gap: 2px; text-align: center; }
.titles img { width: 66px; height: 66px; }
.titles b { font: 400 var(--fs-body)/1.2 var(--game); color: var(--rr-navy); }
.titles span { font: 700 var(--fs-label)/1.4 var(--game-body); color: #4A5A72; }
/* the collection's cards: 240 x 307 files, never shown much over 190 px wide, so they stay sharp */
.loot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 600px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 1000px) { .loot { grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 1320px; } }
.loot.four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 400px; }
@media (min-width: 600px) { .loot.four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 780px; } }
.loot li { max-width: none; }
.loot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(14,21,38,.14)); }
/* the chests are 240 px files: shown at 170 px at most */
.tiles.chests .tile img { width: min(100%, 170px); }
.callout { max-width: 44em; padding: 14px 18px; border-radius: 14px; background: #F3E2BF; box-shadow: inset 0 0 0 2px #E0C995; }
.scroll-hint { display: none; }
@media (max-width: 700px) { .scroll-hint { display: block; } }
